STSW-STLKT01
|
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 |
USBD_CDC_DataIn Data sent on non-control IN endpoint.
- Parameters
-
pdev device instance epnum endpoint number
- Return values
-
status
Definition at line 664 of file usbd_cdc.c.
◆ USBD_CDC_DataOut()
|
static |
USBD_CDC_DataOut Data received on non-control Out endpoint.
- Parameters
-
pdev device instance epnum endpoint number
- Return values
-
status
Definition at line 688 of file usbd_cdc.c.
◆ USBD_CDC_DeInit()
|
static |
USBD_CDC_Init DeInitialize the CDC layer.
- Parameters
-
pdev device instance cfgidx Configuration index
- Return values
-
status
Definition at line 563 of file usbd_cdc.c.
◆ USBD_CDC_EP0_RxReady()
|
static |
USBD_CDC_DataOut Data received on non-control Out endpoint.
- Parameters
-
pdev device instance epnum endpoint 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
-
pointer to descriptor buffer
Definition at line 778 of file usbd_cdc.c.
◆ USBD_CDC_GetFSCfgDesc()
|
static |
USBD_CDC_GetFSCfgDesc Return configuration descriptor.
- Parameters
-
speed : current device speed length : pointer data length
- Return values
-
pointer to descriptor buffer
Definition at line 740 of file usbd_cdc.c.
◆ USBD_CDC_GetHSCfgDesc()
|
static |
USBD_CDC_GetHSCfgDesc Return configuration descriptor.
- Parameters
-
speed : current device speed length : pointer data length
- Return values
-
pointer to descriptor buffer
Definition at line 753 of file usbd_cdc.c.
◆ USBD_CDC_GetOtherSpeedCfgDesc()
|
static |
USBD_CDC_GetCfgDesc Return configuration descriptor.
- Parameters
-
speed : current device speed length : pointer data length
- Return values
-
pointer to descriptor buffer
Definition at line 766 of file usbd_cdc.c.
◆ USBD_CDC_Init()
|
static |
USBD_CDC_Init Initialize the CDC interface.
- Parameters
-
pdev device instance cfgidx Configuration 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
-
pdev device 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
-
pdev device instance fops CD 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
-
pdev device instance pbuff Rx 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
-
pdev device instance pbuff Tx Buffer
- Return values
-
status
Definition at line 810 of file usbd_cdc.c.
◆ USBD_CDC_Setup()
|
static |
USBD_CDC_Setup Handle the CDC specific requests.
- Parameters
-
pdev instance req usb 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
-
pdev device instance epnum endpoint number
- Return values
-
status
Definition at line 846 of file usbd_cdc.c.
Generated by
