Modules | |
Read/Write of Primitive Data Types | |
Read/Write of Multi-Byte Streams | |
Enumerations | |
enum | Endpoint_WaitUntilReady_ErrorCodes_t { ENDPOINT_READYWAIT_NoError = 0, ENDPOINT_READYWAIT_EndpointStalled = 1, ENDPOINT_READYWAIT_DeviceDisconnected = 2, ENDPOINT_READYWAIT_Timeout = 3 } |
Functions | |
static uint16_t | Endpoint_BytesInEndpoint (void) |
uint8_t | Endpoint_WaitUntilReady (void) |
Enum for the possible error return codes of the Endpoint_WaitUntilReady() function.
ENDPOINT_READYWAIT_NoError | Endpoint is ready for next packet, no error. |
ENDPOINT_READYWAIT_EndpointStalled | The endpoint was stalled during the stream transfer by the host or device. |
ENDPOINT_READYWAIT_DeviceDisconnected | Device was disconnected from the host while waiting for the endpoint to become ready. |
ENDPOINT_READYWAIT_Timeout | The host failed to accept or send the next packet within the software timeout period set by the USB_STREAM_TIMEOUT_MS macro. |
static uint16_t Endpoint_BytesInEndpoint | ( | void | ) | [inline, static] |
Indicates the number of bytes currently stored in the current endpoint's selected bank.
uint8_t Endpoint_WaitUntilReady | ( | void | ) |
Spinloops until the currently selected non-control endpoint is ready for the next packet of data to be read or written to it.