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

Functions

uint8_t USBD_CDC_RegisterInterface (USBD_HandleTypeDef *pdev, USBD_CDC_ItfTypeDef *fops)
 USBD_CDC_RegisterInterface.
uint8_t USBD_CDC_SetTxBuffer (USBD_HandleTypeDef *pdev, uint8_t *pbuff, uint32_t length)
 USBD_CDC_SetTxBuffer.
uint8_t USBD_CDC_TransmitPacket (USBD_HandleTypeDef *pdev)
 USBD_CDC_TransmitPacket Transmit packet on IN endpoint.
uint8_t USBD_CDC_SetRxBuffer (USBD_HandleTypeDef *pdev, uint8_t *pbuff)
 USBD_CDC_SetRxBuffer.
uint8_t USBD_CDC_ReceivePacket (USBD_HandleTypeDef *pdev)
 USBD_CDC_ReceivePacket prepare OUT Endpoint for reception.

Detailed Description

Function Documentation

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

References CDC_DATA_FS_OUT_PACKET_SIZE, CDC_DATA_HS_OUT_PACKET_SIZE, CDCOutEpAdd, _USBD_HandleTypeDef::classId, _USBD_HandleTypeDef::dev_speed, NULL, _USBD_HandleTypeDef::pClassDataCmsit, USBD_CDC_HandleTypeDef::RxBuffer, USBD_EP_TYPE_BULK, USBD_FAIL, USBD_LL_PrepareReceive(), USBD_OK, and USBD_SPEED_HIGH.

Referenced by CDC_Receive_HS().

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

References _USBD_HandleTypeDef::classId, NULL, _USBD_HandleTypeDef::pUserData, USBD_FAIL, and USBD_OK.

Referenced by MX_USB_DEVICE_Init().

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

References _USBD_HandleTypeDef::classId, NULL, _USBD_HandleTypeDef::pClassDataCmsit, USBD_CDC_HandleTypeDef::RxBuffer, USBD_FAIL, and USBD_OK.

Referenced by CDC_Init_HS(), and CDC_Receive_HS().

◆ USBD_CDC_SetTxBuffer()

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

USBD_CDC_SetTxBuffer.

Parameters
pdevdevice instance
pbuffTx Buffer
lengthlength of data to be sent
ClassIdThe Class ID
Return values
status

Definition at line 766 of file usbd_cdc.c.

References _USBD_HandleTypeDef::classId, NULL, _USBD_HandleTypeDef::pClassDataCmsit, USBD_CDC_HandleTypeDef::TxBuffer, USBD_CDC_HandleTypeDef::TxLength, USBD_FAIL, and USBD_OK.

Referenced by CDC_Init_HS(), and CDC_Transmit_HS().

◆ USBD_CDC_TransmitPacket()

uint8_t USBD_CDC_TransmitPacket ( USBD_HandleTypeDef * pdev)

USBD_CDC_TransmitPacket Transmit packet on IN endpoint.

Parameters
pdevdevice instance
ClassIdThe Class ID
Return values
status

Definition at line 816 of file usbd_cdc.c.

References CDCInEpAdd, _USBD_HandleTypeDef::classId, _USBD_HandleTypeDef::ep_in, NULL, _USBD_HandleTypeDef::pClassDataCmsit, USBD_EndpointTypeDef::total_length, USBD_CDC_HandleTypeDef::TxBuffer, USBD_CDC_HandleTypeDef::TxLength, USBD_CDC_HandleTypeDef::TxState, USBD_BUSY, USBD_EP_TYPE_BULK, USBD_FAIL, USBD_LL_Transmit(), and USBD_OK.

Referenced by CDC_Transmit_HS().