STSW-STLKT01: USBD_CDC_Private_Functions

STSW-STLKT01

STSW-STLKT01
USBD_CDC_Private_Functions

Functions

uint8_t USBD_CDC_RegisterInterface (USBD_HandleTypeDef *pdev, USBD_CDC_ItfTypeDef *fops)
 USBD_CDC_RegisterInterface. More...
 
uint8_t USBD_CDC_SetTxBuffer (USBD_HandleTypeDef *pdev, uint8_t *pbuff, uint16_t length)
 USBD_CDC_SetTxBuffer. More...
 
uint8_t USBD_CDC_SetRxBuffer (USBD_HandleTypeDef *pdev, uint8_t *pbuff)
 USBD_CDC_SetRxBuffer. More...
 
uint8_t USBD_CDC_TransmitPacket (USBD_HandleTypeDef *pdev)
 USBD_CDC_DataOut Data received on non-control Out endpoint. More...
 
uint8_t USBD_CDC_ReceivePacket (USBD_HandleTypeDef *pdev)
 USBD_CDC_ReceivePacket prepare OUT Endpoint for reception. More...
 
static uint8_t USBD_CDC_Init (USBD_HandleTypeDef *pdev, uint8_t cfgidx)
 USBD_CDC_Init Initialize the CDC interface. More...
 
static uint8_t USBD_CDC_DeInit (USBD_HandleTypeDef *pdev, uint8_t cfgidx)
 USBD_CDC_Init DeInitialize the CDC layer. More...
 
static uint8_t USBD_CDC_Setup (USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req)
 USBD_CDC_Setup Handle the CDC specific requests. More...
 
static uint8_t USBD_CDC_DataIn (USBD_HandleTypeDef *pdev, uint8_t epnum)
 USBD_CDC_DataIn Data sent on non-control IN endpoint. More...
 
static uint8_t USBD_CDC_DataOut (USBD_HandleTypeDef *pdev, uint8_t epnum)
 USBD_CDC_DataOut Data received on non-control Out endpoint. More...
 
static uint8_t USBD_CDC_EP0_RxReady (USBD_HandleTypeDef *pdev)
 USBD_CDC_DataOut Data received on non-control Out endpoint. More...
 
static uint8_t * USBD_CDC_GetFSCfgDesc (uint16_t *length)
 USBD_CDC_GetFSCfgDesc Return configuration descriptor. More...
 
static uint8_t * USBD_CDC_GetHSCfgDesc (uint16_t *length)
 USBD_CDC_GetHSCfgDesc Return configuration descriptor. More...
 
static uint8_t * USBD_CDC_GetOtherSpeedCfgDesc (uint16_t *length)
 USBD_CDC_GetCfgDesc Return configuration descriptor. More...
 
uint8_t * USBD_CDC_GetDeviceQualifierDescriptor (uint16_t *length)
 DeviceQualifierDescriptor return Device Qualifier descriptor. More...
 

Detailed Description

Function Documentation

◆ USBD_CDC_DataIn()

static uint8_t USBD_CDC_DataIn ( USBD_HandleTypeDef *  pdev,
uint8_t  epnum 
)
static

USBD_CDC_DataIn Data sent on non-control IN endpoint.

Parameters
pdevdevice instance
epnumendpoint number
Return values
status

Definition at line 664 of file usbd_cdc.c.

◆ USBD_CDC_DataOut()

static uint8_t USBD_CDC_DataOut ( USBD_HandleTypeDef *  pdev,
uint8_t  epnum 
)
static

USBD_CDC_DataOut Data received on non-control Out endpoint.

Parameters
pdevdevice instance
epnumendpoint number
Return values
status

Definition at line 688 of file usbd_cdc.c.

◆ USBD_CDC_DeInit()

static uint8_t USBD_CDC_DeInit ( USBD_HandleTypeDef *  pdev,
uint8_t  cfgidx 
)
static

USBD_CDC_Init DeInitialize the CDC layer.

Parameters
pdevdevice instance
cfgidxConfiguration index
Return values
status

Definition at line 563 of file usbd_cdc.c.

◆ USBD_CDC_EP0_RxReady()

static uint8_t USBD_CDC_EP0_RxReady ( USBD_HandleTypeDef *  pdev)
static

USBD_CDC_DataOut Data received on non-control Out endpoint.

Parameters
pdevdevice instance
epnumendpoint number
Return values
status

Definition at line 718 of file usbd_cdc.c.

◆ USBD_CDC_GetDeviceQualifierDescriptor()

uint8_t * USBD_CDC_GetDeviceQualifierDescriptor ( uint16_t *  length)

DeviceQualifierDescriptor return Device Qualifier descriptor.

Parameters
length: pointer data length
Return values
pointerto descriptor buffer

Definition at line 778 of file usbd_cdc.c.

◆ USBD_CDC_GetFSCfgDesc()

static uint8_t * USBD_CDC_GetFSCfgDesc ( uint16_t *  length)
static

USBD_CDC_GetFSCfgDesc Return configuration descriptor.

Parameters
speed: current device speed
length: pointer data length
Return values
pointerto descriptor buffer

Definition at line 740 of file usbd_cdc.c.

◆ USBD_CDC_GetHSCfgDesc()

static uint8_t * USBD_CDC_GetHSCfgDesc ( uint16_t *  length)
static

USBD_CDC_GetHSCfgDesc Return configuration descriptor.

Parameters
speed: current device speed
length: pointer data length
Return values
pointerto descriptor buffer

Definition at line 753 of file usbd_cdc.c.

◆ USBD_CDC_GetOtherSpeedCfgDesc()

static uint8_t * USBD_CDC_GetOtherSpeedCfgDesc ( uint16_t *  length)
static

USBD_CDC_GetCfgDesc Return configuration descriptor.

Parameters
speed: current device speed
length: pointer data length
Return values
pointerto descriptor buffer

Definition at line 766 of file usbd_cdc.c.

◆ USBD_CDC_Init()

static uint8_t USBD_CDC_Init ( USBD_HandleTypeDef *  pdev,
uint8_t  cfgidx 
)
static

USBD_CDC_Init Initialize the CDC interface.

Parameters
pdevdevice instance
cfgidxConfiguration index
Return values
status

Definition at line 475 of file usbd_cdc.c.

◆ USBD_CDC_ReceivePacket()

uint8_t USBD_CDC_ReceivePacket ( USBD_HandleTypeDef *  pdev)

USBD_CDC_ReceivePacket prepare OUT Endpoint for reception.

Parameters
pdevdevice instance
Return values
status

Definition at line 883 of file usbd_cdc.c.

◆ USBD_CDC_RegisterInterface()

uint8_t USBD_CDC_RegisterInterface ( USBD_HandleTypeDef *  pdev,
USBD_CDC_ItfTypeDef fops 
)

USBD_CDC_RegisterInterface.

Parameters
pdevdevice instance
fopsCD Interface callback
Return values
status

Definition at line 790 of file usbd_cdc.c.

◆ USBD_CDC_SetRxBuffer()

uint8_t USBD_CDC_SetRxBuffer ( USBD_HandleTypeDef *  pdev,
uint8_t *  pbuff 
)

USBD_CDC_SetRxBuffer.

Parameters
pdevdevice instance
pbuffRx Buffer
Return values
status

Definition at line 829 of file usbd_cdc.c.

◆ USBD_CDC_SetTxBuffer()

uint8_t USBD_CDC_SetTxBuffer ( USBD_HandleTypeDef *  pdev,
uint8_t *  pbuff,
uint16_t  length 
)

USBD_CDC_SetTxBuffer.

Parameters
pdevdevice instance
pbuffTx Buffer
Return values
status

Definition at line 810 of file usbd_cdc.c.

◆ USBD_CDC_Setup()

static uint8_t USBD_CDC_Setup ( USBD_HandleTypeDef *  pdev,
USBD_SetupReqTypedef *  req 
)
static

USBD_CDC_Setup Handle the CDC specific requests.

Parameters
pdevinstance
requsb requests
Return values
status

Definition at line 599 of file usbd_cdc.c.

◆ USBD_CDC_TransmitPacket()

uint8_t USBD_CDC_TransmitPacket ( USBD_HandleTypeDef *  pdev)

USBD_CDC_DataOut Data received on non-control Out endpoint.

Parameters
pdevdevice instance
epnumendpoint number
Return values
status

Definition at line 846 of file usbd_cdc.c.

Generated by   doxygen 1.8.13