Detecting change in baud rate for the USBUART Component- CDC COM port - KBA233881
Employee
Sep 28, 2021
12:45 AM
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Sep 28, 2021
12:45 AM
Version: **
The baud rate for the USBUART Component is theoretically limited by the USBFS data rate (12 Mbps) for Full-Speed devices like PSoC™ family of devices.
The USBUART baud rate can be changed using the serial terminal.
Do the following with the predefined APIs and macros in the USBUART Component to detect change in baud rate:
- Receive the SET_LINE_CODING request when the host sends the coding information to the device such as for setting up the baud rate through the serial terminal.
- Call the USBUART_IsLineChanged() API, which returns a non-zero (USBUART_LINE_CODING_CHANGED) value if the SET_LINE_CHANGED request is received.
- Check the set baud rate using the USBUART_GetDTERate() API, which returns the data terminal rate set for this port in bits per second (bps) and is called to read the data coding information.
Labels
Rate this article: