|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
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 |
|
static |
USBD_CDC_DataIn Data sent on non-control IN endpoint.
| pdev | device instance |
| epnum | endpoint number |
| status |
Definition at line 539 of file usbd_cdc.c.
References _USBD_HandleTypeDef::classId, _USBD_HandleTypeDef::ep_in, NULL, _USBD_HandleTypeDef::pClassDataCmsit, _USBD_HandleTypeDef::pData, _USBD_HandleTypeDef::pUserData, USBD_EndpointTypeDef::total_length, USBD_CDC_HandleTypeDef::TxBuffer, USBD_CDC_HandleTypeDef::TxLength, USBD_CDC_HandleTypeDef::TxState, USBD_FAIL, USBD_LL_Transmit(), and USBD_OK.
|
static |
USBD_CDC_DataOut Data received on non-control Out endpoint.
| pdev | device instance |
| epnum | endpoint number |
| 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.
|
static |
USBD_CDC_Init DeInitialize the CDC layer.
| pdev | device instance |
| cfgidx | Configuration index |
| status |
Definition at line 391 of file usbd_cdc.c.
References USBD_EndpointTypeDef::bInterval, CDCCmdEpAdd, CDCInEpAdd, CDCOutEpAdd, _USBD_HandleTypeDef::classId, _USBD_HandleTypeDef::ep_in, _USBD_HandleTypeDef::ep_out, USBD_EndpointTypeDef::is_used, NULL, _USBD_HandleTypeDef::pClassData, _USBD_HandleTypeDef::pClassDataCmsit, _USBD_HandleTypeDef::pUserData, UNUSED, USBD_EP_TYPE_BULK, USBD_EP_TYPE_INTR, USBD_free, USBD_LL_CloseEP(), and USBD_OK.
|
static |
USBD_CDC_EP0_RxReady Handle EP0 Rx Ready event.
| pdev | device instance |
| 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.
| uint8_t * USBD_CDC_GetDeviceQualifierDescriptor | ( | uint16_t * | length | ) |
USBD_CDC_GetDeviceQualifierDescriptor return Device Qualifier descriptor.
| length | : pointer data length |
| pointer | to descriptor buffer |
Definition at line 725 of file usbd_cdc.c.
|
static |
USBD_CDC_GetFSCfgDesc Return configuration descriptor.
| length | : pointer data length |
| pointer | to 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().
|
static |
USBD_CDC_GetHSCfgDesc Return configuration descriptor.
| length | : pointer data length |
| pointer | to 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().
|
static |
USBD_CDC_GetOtherSpeedCfgDesc Return configuration descriptor.
| length | : pointer data length |
| pointer | to 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().
|
static |
USBD_CDC_Init Initialize the CDC interface.
| pdev | device instance |
| cfgidx | Configuration index |
| status |
Definition at line 290 of file usbd_cdc.c.
References USBD_EndpointTypeDef::bInterval, CDC_CMD_PACKET_SIZE, CDC_DATA_FS_IN_PACKET_SIZE, CDC_DATA_FS_OUT_PACKET_SIZE, CDC_DATA_HS_IN_PACKET_SIZE, CDC_DATA_HS_OUT_PACKET_SIZE, CDC_FS_BINTERVAL, CDC_HS_BINTERVAL, CDCCmdEpAdd, CDCInEpAdd, CDCOutEpAdd, _USBD_HandleTypeDef::classId, _USBD_HandleTypeDef::dev_speed, _USBD_HandleTypeDef::ep_in, _USBD_HandleTypeDef::ep_out, USBD_EndpointTypeDef::is_used, NULL, _USBD_HandleTypeDef::pClassData, _USBD_HandleTypeDef::pClassDataCmsit, _USBD_HandleTypeDef::pUserData, USBD_CDC_HandleTypeDef::RxBuffer, USBD_CDC_HandleTypeDef::RxState, USBD_CDC_HandleTypeDef::TxState, UNUSED, USBD_EMEM, USBD_EP_TYPE_BULK, USBD_EP_TYPE_INTR, USBD_LL_OpenEP(), USBD_LL_PrepareReceive(), USBD_malloc, USBD_memset, USBD_OK, and USBD_SPEED_HIGH.
|
static |
USBD_CDC_Setup Handle the CDC specific requests.
| pdev | instance |
| req | usb requests |
| status |
Definition at line 435 of file usbd_cdc.c.
References CDC_REQ_MAX_DATA_SIZE, _USBD_HandleTypeDef::classId, USBD_CDC_HandleTypeDef::CmdLength, USBD_CDC_HandleTypeDef::CmdOpCode, USBD_CDC_HandleTypeDef::data, _USBD_HandleTypeDef::dev_state, MIN, NULL, _USBD_HandleTypeDef::pClassDataCmsit, _USBD_HandleTypeDef::pUserData, USB_MAX_EP0_SIZE, USB_REQ_CLEAR_FEATURE, USB_REQ_GET_INTERFACE, USB_REQ_GET_STATUS, USB_REQ_SET_INTERFACE, USB_REQ_TYPE_CLASS, USB_REQ_TYPE_MASK, USB_REQ_TYPE_STANDARD, USBD_CtlError(), USBD_CtlPrepareRx(), USBD_CtlSendData(), USBD_FAIL, USBD_OK, and USBD_STATE_CONFIGURED.
|
static |
Definition at line 117 of file usbd_cdc.c.