LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Endpoint Data Reading and Writing (LPC18xx)

Endpoint data read/write definitions for the LPC architecture. More...

Functions

static uint16_t Endpoint_BytesInEndpoint (void) ATTR_WARN_UNUSED_RESULT ATTR_ALWAYS_INLINE
 Indicates the number of bytes currently stored in the current endpoint's selected bank.
 
uint8_t Endpoint_WaitUntilReady (void)
 Spin-loops until the currently selected non-control endpoint is ready for the next packet of data to be read or written to it.
 

Detailed Description

Endpoint data read/write definitions for the LPC architecture.

Functions, macros, variables, enums and types related to data reading and writing from and to endpoints.

Function Documentation

static uint16_t Endpoint_BytesInEndpoint ( void  )
inlinestatic

Indicates the number of bytes currently stored in the current endpoint's selected bank.

Note
The return width of this function may differ, depending on the maximum endpoint bank size of the selected LPC model.
Returns
Total number of bytes in the currently selected Endpoint's FIFO buffer

Definition at line 445 of file Endpoint_LPC18xx.h.

uint8_t Endpoint_WaitUntilReady ( void  )

Spin-loops until the currently selected non-control endpoint is ready for the next packet of data to be read or written to it.

Note
This routine should not be called on CONTROL type endpoints.
Returns
A value from the Endpoint_WaitUntilReady_ErrorCodes_t enum.

Definition at line 133 of file Endpoint_LPC.c.