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

Endpoint Buffer for Writing and Reading. More...

Macros

#define USB_DATA_BUFFER_TEM_LENGTH   512
 

Variables

uint8_t usb_data_buffer []
 
uint8_t usb_data_buffer_IN []
 
uint8_t usb_data_buffer_OUT []
 
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 endpointhandle []
 

Detailed Description

Endpoint Buffer for Writing and Reading.

Macro Definition Documentation

#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 endpointhandle[]

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

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[]

Share memory buffer.

uint8_t usb_data_buffer_IN[]
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[]
volatile uint32_t usb_data_buffer_OUT_index
volatile uint32_t usb_data_buffer_OUT_size
volatile int32_t usb_data_buffer_size