![]() |
LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
|
Pipe data read/write definitions for the NXP LPC architecture. More...
Enumerations | |
enum | Pipe_WaitUntilReady_ErrorCodes_t { PIPE_READYWAIT_NoError = 0, PIPE_READYWAIT_PipeStalled = 1, PIPE_READYWAIT_DeviceDisconnected = 2, PIPE_READYWAIT_Timeout = 3 } |
Functions | |
static uint16_t | Pipe_BytesInPipe (const uint8_t corenum) ATTR_WARN_UNUSED_RESULT ATTR_ALWAYS_INLINE |
Indicates the number of bytes currently stored in the current pipes's selected bank. | |
uint8_t | Pipe_WaitUntilReady (const uint8_t corenum) |
Spin-loops until the currently selected non-control pipe is ready for the next packed of data to be read or written to it, aborting in the case of an error condition (such as a timeout or device disconnect). | |
Pipe data read/write definitions for the NXP LPC architecture.
Functions, macros, variables, enums and types related to data reading and writing from and to pipes.
Enum for the possible error return codes of the Pipe_WaitUntilReady() function.
PIPE_READYWAIT_NoError |
Pipe ready for next packet, no error. |
PIPE_READYWAIT_PipeStalled |
The device stalled the pipe while waiting. |
PIPE_READYWAIT_DeviceDisconnected |
Device was disconnected from the host while waiting. |
PIPE_READYWAIT_Timeout |
The device failed to accept or send the next packet within the software timeout period set by the USB_STREAM_TIMEOUT_MS macro. |
Definition at line 178 of file Pipe_LPC.h.
|
inlinestatic |
Indicates the number of bytes currently stored in the current pipes's selected bank.
corenum | : USB port number |
Definition at line 217 of file Pipe_LPC.h.
uint8_t Pipe_WaitUntilReady | ( | const uint8_t | corenum | ) |
Spin-loops until the currently selected non-control pipe is ready for the next packed of data to be read or written to it, aborting in the case of an error condition (such as a timeout or device disconnect).
Definition at line 102 of file Pipe_LPC.c.