View previous topic :: View next topic |
Author |
Message |
kcessac
Joined: 28 Aug 2008 Posts: 2
|
USB CDC parity error support for virtual serial port |
Posted: Wed Oct 19, 2011 12:15 pm |
|
|
I use the CCS usb_cdc.h library in a virtual serial port device and need to report parity errors. I believe parity errors are reported using CDC SERIAL_STATE notifications (notification code 20). SERIAL_STATE also reports DCD, DSR, break, RI, frame error, and overrun error.
Does anyone have an example of how to access these bits in the SERIAL_STATE service? How do I report parity errors to the USB port?
Thanks. |
|
|
Darren Rook
Joined: 06 Sep 2003 Posts: 287 Location: Milwaukee, WI
|
|
Posted: Fri Oct 28, 2011 9:17 am |
|
|
Did you e-mail me about this? If so I e-mailed you an update of the code that has an API for sending SERIAL_STATE to the host.
For reference, the next version of the compiler (4.126?) should have an update to the USB code. See ex_usb_serial.c for an example of this API. _________________ I came, I saw, I compiled. |
|
|
|