STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
USBD_CDC_Private_FunctionPrototypes
Collaboration diagram for USBD_CDC_Private_FunctionPrototypes:

Functions

static uint8_t USBD_CDC_Init (USBD_HandleTypeDef *pdev, uint8_t cfgidx)
 USBD_CDC_Init Initialize the CDC interface.
static uint8_t USBD_CDC_DeInit (USBD_HandleTypeDef *pdev, uint8_t cfgidx)
 USBD_CDC_Init DeInitialize the CDC layer.
static uint8_t USBD_CDC_Setup (USBD_HandleTypeDef *pdev, USBD_SetupReqTypedef *req)
 USBD_CDC_Setup Handle the CDC specific requests.
static uint8_t USBD_CDC_DataIn (USBD_HandleTypeDef *pdev, uint8_t epnum)
 USBD_CDC_DataIn Data sent on non-control IN endpoint.
static uint8_t USBD_CDC_DataOut (USBD_HandleTypeDef *pdev, uint8_t epnum)
 USBD_CDC_DataOut Data received on non-control Out endpoint.
static uint8_t USBD_CDC_EP0_RxReady (USBD_HandleTypeDef *pdev)
 USBD_CDC_EP0_RxReady Handle EP0 Rx Ready event.
static uint8_t * USBD_CDC_GetFSCfgDesc (uint16_t *length)
 USBD_CDC_GetFSCfgDesc Return configuration descriptor.
static uint8_t * USBD_CDC_GetHSCfgDesc (uint16_t *length)
 USBD_CDC_GetHSCfgDesc Return configuration descriptor.
static uint8_t * USBD_CDC_GetOtherSpeedCfgDesc (uint16_t *length)
 USBD_CDC_GetOtherSpeedCfgDesc Return configuration descriptor.
uint8_t * USBD_CDC_GetDeviceQualifierDescriptor (uint16_t *length)
 USBD_CDC_GetDeviceQualifierDescriptor return Device Qualifier descriptor.

Variables

static __ALIGN_BEGIN uint8_t USBD_CDC_DeviceQualifierDesc[USB_LEN_DEV_QUALIFIER_DESC] __ALIGN_END

Detailed Description

Function Documentation

◆ USBD_CDC_DataIn()

uint8_t USBD_CDC_DataIn ( USBD_HandleTypeDef * pdev,
uint8_t epnum )
static

◆ USBD_CDC_DataOut()

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 580 of file usbd_cdc.c.

References _USBD_HandleTypeDef::classId, NULL, _USBD_HandleTypeDef::pClassDataCmsit, _USBD_HandleTypeDef::pUserData, USBD_CDC_HandleTypeDef::RxBuffer, USBD_CDC_HandleTypeDef::RxLength, USBD_FAIL, USBD_LL_GetRxDataSize(), and USBD_OK.

◆ USBD_CDC_DeInit()

uint8_t USBD_CDC_DeInit ( USBD_HandleTypeDef * pdev,
uint8_t cfgidx )
static

◆ USBD_CDC_EP0_RxReady()

uint8_t USBD_CDC_EP0_RxReady ( USBD_HandleTypeDef * pdev)
static

USBD_CDC_EP0_RxReady Handle EP0 Rx Ready event.

Parameters
pdevdevice instance
Return values
status

Definition at line 606 of file usbd_cdc.c.

References _USBD_HandleTypeDef::classId, USBD_CDC_HandleTypeDef::CmdLength, USBD_CDC_HandleTypeDef::CmdOpCode, USBD_CDC_HandleTypeDef::data, NULL, _USBD_HandleTypeDef::pClassDataCmsit, _USBD_HandleTypeDef::pUserData, USBD_FAIL, and USBD_OK.

◆ USBD_CDC_GetDeviceQualifierDescriptor()

uint8_t * USBD_CDC_GetDeviceQualifierDescriptor ( uint16_t * length)

USBD_CDC_GetDeviceQualifierDescriptor return Device Qualifier descriptor.

Parameters
length: pointer data length
Return values
pointerto descriptor buffer

Definition at line 725 of file usbd_cdc.c.

◆ USBD_CDC_GetFSCfgDesc()

uint8_t * USBD_CDC_GetFSCfgDesc ( uint16_t * length)
static

USBD_CDC_GetFSCfgDesc Return configuration descriptor.

Parameters
length: pointer data length
Return values
pointerto descriptor buffer

Definition at line 632 of file usbd_cdc.c.

References CDC_CMD_EP, CDC_DATA_FS_MAX_PACKET_SIZE, CDC_FS_BINTERVAL, CDC_IN_EP, CDC_OUT_EP, NULL, and USBD_GetEpDesc().

◆ USBD_CDC_GetHSCfgDesc()

uint8_t * USBD_CDC_GetHSCfgDesc ( uint16_t * length)
static

USBD_CDC_GetHSCfgDesc Return configuration descriptor.

Parameters
length: pointer data length
Return values
pointerto descriptor buffer

Definition at line 663 of file usbd_cdc.c.

References CDC_CMD_EP, CDC_DATA_HS_MAX_PACKET_SIZE, CDC_HS_BINTERVAL, CDC_IN_EP, CDC_OUT_EP, NULL, and USBD_GetEpDesc().

◆ USBD_CDC_GetOtherSpeedCfgDesc()

uint8_t * USBD_CDC_GetOtherSpeedCfgDesc ( uint16_t * length)
static

USBD_CDC_GetOtherSpeedCfgDesc Return configuration descriptor.

Parameters
length: pointer data length
Return values
pointerto descriptor buffer

Definition at line 694 of file usbd_cdc.c.

References CDC_CMD_EP, CDC_DATA_FS_MAX_PACKET_SIZE, CDC_FS_BINTERVAL, CDC_IN_EP, CDC_OUT_EP, NULL, and USBD_GetEpDesc().

◆ USBD_CDC_Init()

◆ USBD_CDC_Setup()

Variable Documentation

◆ __ALIGN_END

__ALIGN_BEGIN uint8_t USBD_CDC_CfgDesc [USB_CDC_CONFIG_DESC_SIZ] __ALIGN_END
static
Initial value:
=
{
0x00,
0x02,
0x00,
0x00,
0x00,
0x40,
0x01,
0x00,
}
#define USB_LEN_DEV_QUALIFIER_DESC
Definition usbd_def.h:93
#define USB_DESC_TYPE_DEVICE_QUALIFIER
Definition usbd_def.h:136

Definition at line 117 of file usbd_cdc.c.