LPCOpen Platform  v1.03
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Endpoint Buffer for Writing and Reading

Detailed Description

Endpoint Buffer for Writing and Reading.

Macros

#define USB_DATA_BUFFER_TEM_LENGTH   512
 
#define endpointhandle(corenum)   ((corenum) ? endpointhandle1 : endpointhandle0)
 

Variables

uint8_t usb_data_buffer [][USB_DATA_BUFFER_TEM_LENGTH]
 
uint8_t usb_data_buffer_IN [][USB_DATA_BUFFER_TEM_LENGTH]
 
uint8_t usb_data_buffer_OUT [][USB_DATA_BUFFER_TEM_LENGTH]
 
volatile int32_t usb_data_buffer_size []
 
volatile uint32_t usb_data_buffer_OUT_size []
 
volatile uint32_t usb_data_buffer_index []
 
volatile uint32_t usb_data_buffer_IN_index []
 
volatile uint32_t usb_data_buffer_OUT_index []
 
uint8_t endpointselected []
 
uint8_t endpointhandle0 []
 
uint8_t endpointhandle1 []
 

Macro Definition Documentation

#define endpointhandle (   corenum)    ((corenum) ? endpointhandle1 : endpointhandle0)

Definition at line 79 of file EndpointCommon.h.

#define USB_DATA_BUFFER_TEM_LENGTH   512

Size of share memory buffer that a device uses to communicate with host.

Definition at line 48 of file EndpointCommon.h.

Variable Documentation

uint8_t endpointhandle0[]

Array to store the physical endpoint number or the actual endpoint number that need to be configured for any USB transactions.

uint8_t endpointhandle1[]
uint8_t endpointselected[]

Store the current selected endpoint number, always the logical endpint number. Usually used as index of endpointhandle array.

uint8_t usb_data_buffer[][USB_DATA_BUFFER_TEM_LENGTH]

Share memory buffer.

uint8_t usb_data_buffer_IN[][USB_DATA_BUFFER_TEM_LENGTH]
volatile uint32_t usb_data_buffer_IN_index[]
volatile uint32_t usb_data_buffer_index[]

Indexer rolling along the share memory buffer. Used to determine the offset of next read/write activities on share memory buffer or the total amount of data ready to be sent.

uint8_t usb_data_buffer_OUT[][USB_DATA_BUFFER_TEM_LENGTH]
volatile uint32_t usb_data_buffer_OUT_index[]
volatile uint32_t usb_data_buffer_OUT_size[]
volatile int32_t usb_data_buffer_size[]