LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Pipe Management

Pipe management definitions. More...

Modules

 Pipe Control Request Management
 Pipe control request definitions.
 
 Pipe Data Reading and Writing
 Pipe data read/write definitions.
 
 Pipe Management (LPC)
 Pipe management definitions for the NXP LPC architecture.
 
 Pipe Packet Management
 Pipe packet management definitions.
 

Macros

#define PIPE_CONTROLPIPE   0
 
#define PIPE_PIPENUM_MASK   0x0F
 
#define PIPE_EPNUM_MASK   0x0F
 
#define PIPE_EPDIR_MASK   0x80
 

Detailed Description

Pipe management definitions.

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

Macro Definition Documentation

#define PIPE_CONTROLPIPE   0

Pipe address for the default control pipe, which always resides in address 0. This is defined for convenience to give more readable code when used with the pipe macros.

Definition at line 98 of file Pipe.h.

#define PIPE_EPDIR_MASK   0x80

Endpoint direction mask, for masking against endpoint addresses to retrieve the endpoint's direction for comparing with the ENDPOINT_DESCRIPTOR_DIR_* masks.

Definition at line 113 of file Pipe.h.

#define PIPE_EPNUM_MASK   0x0F

Endpoint number mask, for masking against endpoint addresses to retrieve the endpoint's numerical address in the attached device.

Definition at line 108 of file Pipe.h.

#define PIPE_PIPENUM_MASK   0x0F

Pipe number mask, for masking against pipe addresses to retrieve the pipe's numerical address in the device.

Definition at line 103 of file Pipe.h.