LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Endpoint Management (LPC17xx)

Endpoint management definitions for the LPC17xx architecture. More...

Functions

bool Endpoint_ConfigureEndpoint (const uint8_t Number, const uint8_t Type, const uint8_t Direction, const uint16_t Size, const uint8_t Banks)
 
static void Endpoint_ResetEndpoint (const uint8_t EndpointNumber) ATTR_ALWAYS_INLINE
 
static void Endpoint_EnableEndpoint (void) ATTR_ALWAYS_INLINE
 
static void Endpoint_DisableEndpoint (void) ATTR_ALWAYS_INLINE
 
static bool Endpoint_IsEnabled (void) ATTR_WARN_UNUSED_RESULT ATTR_ALWAYS_INLINE
 
static uint8_t Endpoint_GetBusyBanks (void) ATTR_ALWAYS_INLINE ATTR_WARN_UNUSED_RESULT
 
static void Endpoint_AbortPendingIN (void)
 
static bool Endpoint_IsConfigured (void) ATTR_WARN_UNUSED_RESULT ATTR_ALWAYS_INLINE
 
static uint8_t Endpoint_GetEndpointInterrupts (void) ATTR_WARN_UNUSED_RESULT ATTR_ALWAYS_INLINE
 
static bool Endpoint_HasEndpointInterrupted (const uint8_t EndpointNumber) ATTR_WARN_UNUSED_RESULT ATTR_ALWAYS_INLINE
 
static uint16_t Endpoint_BytesInEndpoint (void) ATTR_WARN_UNUSED_RESULT ATTR_ALWAYS_INLINE
 
static bool Endpoint_IsINReady (void) ATTR_WARN_UNUSED_RESULT ATTR_ALWAYS_INLINE
 
static bool Endpoint_IsOUTReceived (void) ATTR_WARN_UNUSED_RESULT ATTR_ALWAYS_INLINE
 
static bool Endpoint_IsSETUPReceived (void) ATTR_WARN_UNUSED_RESULT ATTR_ALWAYS_INLINE
 
static void Endpoint_ClearSETUP (void) ATTR_ALWAYS_INLINE
 
static void Endpoint_ClearIN (void) ATTR_ALWAYS_INLINE
 
static void Endpoint_ClearOUT (void) ATTR_ALWAYS_INLINE
 
void Endpoint_StallTransaction (void)
 
static void Endpoint_ClearStall (void) ATTR_ALWAYS_INLINE
 
static bool Endpoint_IsStalled (void) ATTR_WARN_UNUSED_RESULT ATTR_ALWAYS_INLINE
 
static void Endpoint_ResetDataToggle (void) ATTR_ALWAYS_INLINE
 
void Endpoint_ClearStatusStage (void)
 
uint8_t Endpoint_WaitUntilReady (void)
 

Variables

uint8_t USB_Device_ControlEndpointSize
 

Detailed Description

Endpoint management definitions for the LPC17xx architecture.

Functions, macros and enums related to endpoint management when in USB Device mode. This module contains the endpoint management macros, as well as endpoint interrupt and data send/receive functions for various data types.

Function Documentation

static void Endpoint_AbortPendingIN ( void  )
inlinestatic

Definition at line 145 of file Endpoint_LPC17xx.h.

static uint16_t Endpoint_BytesInEndpoint ( void  )
inlinestatic

Definition at line 172 of file Endpoint_LPC17xx.h.

static void Endpoint_ClearIN ( void  )
inlinestatic

Definition at line 241 of file Endpoint_LPC17xx.h.

static void Endpoint_ClearOUT ( void  )
inlinestatic

Definition at line 259 of file Endpoint_LPC17xx.h.

static void Endpoint_ClearSETUP ( void  )
inlinestatic

Definition at line 230 of file Endpoint_LPC17xx.h.

static void Endpoint_ClearStall ( void  )
inlinestatic

Definition at line 280 of file Endpoint_LPC17xx.h.

void Endpoint_ClearStatusStage ( void  )

Definition at line 122 of file Endpoint_LPC.c.

bool Endpoint_ConfigureEndpoint ( const uint8_t  Number,
const uint8_t  Type,
const uint8_t  Direction,
const uint16_t  Size,
const uint8_t  Banks 
)
static void Endpoint_DisableEndpoint ( void  )
inlinestatic

Definition at line 128 of file Endpoint_LPC17xx.h.

static void Endpoint_EnableEndpoint ( void  )
inlinestatic

Definition at line 123 of file Endpoint_LPC17xx.h.

static uint8_t Endpoint_GetBusyBanks ( void  )
inlinestatic

Definition at line 140 of file Endpoint_LPC17xx.h.

static uint8_t Endpoint_GetEndpointInterrupts ( void  )
inlinestatic

Definition at line 157 of file Endpoint_LPC17xx.h.

static bool Endpoint_HasEndpointInterrupted ( const uint8_t  EndpointNumber)
inlinestatic

Definition at line 165 of file Endpoint_LPC17xx.h.

static bool Endpoint_IsConfigured ( void  )
inlinestatic

Definition at line 150 of file Endpoint_LPC17xx.h.

static bool Endpoint_IsEnabled ( void  )
inlinestatic

Definition at line 133 of file Endpoint_LPC17xx.h.

static bool Endpoint_IsINReady ( void  )
inlinestatic

Definition at line 185 of file Endpoint_LPC17xx.h.

static bool Endpoint_IsOUTReceived ( void  )
inlinestatic

Definition at line 207 of file Endpoint_LPC17xx.h.

static bool Endpoint_IsSETUPReceived ( void  )
inlinestatic

Definition at line 223 of file Endpoint_LPC17xx.h.

static bool Endpoint_IsStalled ( void  )
inlinestatic

Definition at line 291 of file Endpoint_LPC17xx.h.

static void Endpoint_ResetDataToggle ( void  )
inlinestatic

Definition at line 305 of file Endpoint_LPC17xx.h.

static void Endpoint_ResetEndpoint ( const uint8_t  EndpointNumber)
inlinestatic

Definition at line 118 of file Endpoint_LPC17xx.h.

static void Endpoint_StallTransaction ( void  )
inline

Definition at line 573 of file Endpoint_LPC18xx.h.

uint8_t Endpoint_WaitUntilReady ( void  )

Definition at line 133 of file Endpoint_LPC.c.

Variable Documentation

uint8_t USB_Device_ControlEndpointSize