CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

USB CDC parity error support for virtual serial port

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
kcessac



Joined: 28 Aug 2008
Posts: 2

View user's profile Send private message

USB CDC parity error support for virtual serial port
PostPosted: Wed Oct 19, 2011 12:15 pm     Reply with quote

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

View user's profile Send private message Send e-mail

PostPosted: Fri Oct 28, 2011 9:17 am     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group