Content originally posted in LPCWare by tuong on Mon Mar 26 19:45:09 MST 2012
Dear mozmck,
You can search Endpoint_Read_Stream_LE() in the tree, then you can see that before Endpoint_Read_Stream_LE() there is always a checking for Endpoint_IsOUTReceived(), this makes sure that the host sent data.
In addition, whenever the host sends data to device, interrupts help put these data into the share buffer, then Endpoint_Read_Stream_LE() will read them out from this share buffer. So there is no feature that tells how many unread data left, but there is Endpoint_BytesInEndpoint() that can help you know how many data are there.
With best regards,
Tuong Nguyen