Nirvana Jay / Mbed 2 deprecated F7DISCO_Demo

Dependencies:   BSP_DISCO_F746NG_patch mbed-rtos mbed

Embed: (wiki syntax)

« Back to documentation index

USBH_PIPES_Private_Functions

USBH_PIPES_Private_Functions
[USBH_PIPES]

Functions

static uint16_t USBH_GetFreePipe (USBH_HandleTypeDef *phost)
 USBH_GetFreePipe.
USBH_StatusTypeDef USBH_OpenPipe (USBH_HandleTypeDef *phost, uint8_t pipe_num, uint8_t epnum, uint8_t dev_address, uint8_t speed, uint8_t ep_type, uint16_t mps)
 USBH_Open_Pipe Open a pipe.
USBH_StatusTypeDef USBH_ClosePipe (USBH_HandleTypeDef *phost, uint8_t pipe_num)
 USBH_ClosePipe Close a pipe.
uint8_t USBH_AllocPipe (USBH_HandleTypeDef *phost, uint8_t ep_addr)
 USBH_Alloc_Pipe Allocate a new Pipe.
USBH_StatusTypeDef USBH_FreePipe (USBH_HandleTypeDef *phost, uint8_t idx)
 USBH_Free_Pipe Free the USB Pipe.

Function Documentation

uint8_t USBH_AllocPipe ( USBH_HandleTypeDef *  phost,
uint8_t  ep_addr 
)

USBH_Alloc_Pipe Allocate a new Pipe.

Parameters:
phost,:Host Handle
ep_addr,:End point for which the Pipe to be allocated
Return values:
Pipenumber

Definition at line 138 of file usbh_pipes.c.

USBH_StatusTypeDef USBH_ClosePipe ( USBH_HandleTypeDef *  phost,
uint8_t  pipe_num 
)

USBH_ClosePipe Close a pipe.

Parameters:
phost,:Host Handle
pipe_num,:Pipe Number
Return values:
USBHStatus

Definition at line 121 of file usbh_pipes.c.

USBH_StatusTypeDef USBH_FreePipe ( USBH_HandleTypeDef *  phost,
uint8_t  idx 
)

USBH_Free_Pipe Free the USB Pipe.

Parameters:
phost,:Host Handle
idx,:Pipe number to be freed
Return values:
USBHStatus

Definition at line 158 of file usbh_pipes.c.

static uint16_t USBH_GetFreePipe ( USBH_HandleTypeDef *  phost ) [static]

USBH_GetFreePipe.

Parameters:
phost,:Host Handle Get a free Pipe number for allocation to a device endpoint
Return values:
idx,:Free Pipe number

Definition at line 173 of file usbh_pipes.c.

USBH_StatusTypeDef USBH_OpenPipe ( USBH_HandleTypeDef *  phost,
uint8_t  pipe_num,
uint8_t  epnum,
uint8_t  dev_address,
uint8_t  speed,
uint8_t  ep_type,
uint16_t  mps 
)

USBH_Open_Pipe Open a pipe.

Parameters:
phost,:Host Handle
pipe_num,:Pipe Number
dev_address,:USB Device address allocated to attached device
speed: USB device speed (Full/Low)
ep_type,:end point type (Bulk/int/ctl)
mps,:max pkt size
Return values:
USBHStatus

Definition at line 93 of file usbh_pipes.c.