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

Functions

USBD_StatusTypeDef USBD_CtlSendData (USBD_HandleTypeDef *pdev, uint8_t *pbuf, uint32_t len)
 USBD_CtlSendData send data on the ctl pipe.
USBD_StatusTypeDef USBD_CtlContinueSendData (USBD_HandleTypeDef *pdev, uint8_t *pbuf, uint32_t len)
 USBD_CtlContinueSendData continue sending data on the ctl pipe.
USBD_StatusTypeDef USBD_CtlPrepareRx (USBD_HandleTypeDef *pdev, uint8_t *pbuf, uint32_t len)
 USBD_CtlPrepareRx receive data on the ctl pipe.
USBD_StatusTypeDef USBD_CtlContinueRx (USBD_HandleTypeDef *pdev, uint8_t *pbuf, uint32_t len)
 USBD_CtlContinueRx continue receive data on the ctl pipe.
USBD_StatusTypeDef USBD_CtlSendStatus (USBD_HandleTypeDef *pdev)
 USBD_CtlSendStatus send zero lzngth packet on the ctl pipe.
USBD_StatusTypeDef USBD_CtlReceiveStatus (USBD_HandleTypeDef *pdev)
 USBD_CtlReceiveStatus receive zero lzngth packet on the ctl pipe.
uint32_t USBD_GetRxCount (USBD_HandleTypeDef *pdev, uint8_t ep_addr)
 USBD_GetRxCount returns the received data length.

Detailed Description

Function Documentation

◆ USBD_CtlContinueRx()

USBD_StatusTypeDef USBD_CtlContinueRx ( USBD_HandleTypeDef * pdev,
uint8_t * pbuf,
uint32_t len )

USBD_CtlContinueRx continue receive data on the ctl pipe.

Parameters
pdevdevice instance
buffpointer to data buffer
lenlength of data to be received
Return values
status

Definition at line 159 of file usbd_ioreq.c.

References USBD_LL_PrepareReceive(), and USBD_OK.

Referenced by USBD_LL_DataOutStage().

◆ USBD_CtlContinueSendData()

USBD_StatusTypeDef USBD_CtlContinueSendData ( USBD_HandleTypeDef * pdev,
uint8_t * pbuf,
uint32_t len )

USBD_CtlContinueSendData continue sending data on the ctl pipe.

Parameters
pdevdevice instance
buffpointer to data buffer
lenlength of data to be sent
Return values
status

Definition at line 114 of file usbd_ioreq.c.

References USBD_LL_Transmit(), and USBD_OK.

Referenced by USBD_LL_DataInStage().

◆ USBD_CtlPrepareRx()

USBD_StatusTypeDef USBD_CtlPrepareRx ( USBD_HandleTypeDef * pdev,
uint8_t * pbuf,
uint32_t len )

USBD_CtlPrepareRx receive data on the ctl pipe.

Parameters
pdevdevice instance
buffpointer to data buffer
lenlength of data to be received
Return values
status

Definition at line 131 of file usbd_ioreq.c.

References _USBD_HandleTypeDef::ep0_state, _USBD_HandleTypeDef::ep_out, USBD_EndpointTypeDef::pbuffer, USBD_EndpointTypeDef::rem_length, USBD_EndpointTypeDef::total_length, USBD_EP0_DATA_OUT, USBD_LL_PrepareReceive(), and USBD_OK.

Referenced by USBD_CDC_Setup().

◆ USBD_CtlReceiveStatus()

USBD_StatusTypeDef USBD_CtlReceiveStatus ( USBD_HandleTypeDef * pdev)

USBD_CtlReceiveStatus receive zero lzngth packet on the ctl pipe.

Parameters
pdevdevice instance
Return values
status

Definition at line 190 of file usbd_ioreq.c.

References _USBD_HandleTypeDef::ep0_state, NULL, USBD_EP0_STATUS_OUT, USBD_LL_PrepareReceive(), and USBD_OK.

Referenced by USBD_LL_DataInStage().

◆ USBD_CtlSendData()

USBD_StatusTypeDef USBD_CtlSendData ( USBD_HandleTypeDef * pdev,
uint8_t * pbuf,
uint32_t len )

USBD_CtlSendData send data on the ctl pipe.

Parameters
pdevdevice instance
buffpointer to data buffer
lenlength of data to be sent
Return values
status

Definition at line 86 of file usbd_ioreq.c.

References _USBD_HandleTypeDef::ep0_state, _USBD_HandleTypeDef::ep_in, USBD_EndpointTypeDef::pbuffer, USBD_EndpointTypeDef::rem_length, USBD_EndpointTypeDef::total_length, USBD_EP0_DATA_IN, USBD_LL_Transmit(), and USBD_OK.

Referenced by USBD_CDC_Setup(), USBD_GetConfig(), USBD_GetDescriptor(), USBD_GetStatus(), and USBD_StdEPReq().

◆ USBD_CtlSendStatus()

USBD_StatusTypeDef USBD_CtlSendStatus ( USBD_HandleTypeDef * pdev)

USBD_CtlSendStatus send zero lzngth packet on the ctl pipe.

Parameters
pdevdevice instance
Return values
status

Definition at line 173 of file usbd_ioreq.c.

References _USBD_HandleTypeDef::ep0_state, NULL, USBD_EP0_STATUS_IN, USBD_LL_Transmit(), and USBD_OK.

Referenced by USBD_ClrFeature(), USBD_GetDescriptor(), USBD_LL_DataOutStage(), USBD_SetAddress(), USBD_SetConfig(), USBD_SetFeature(), USBD_StdEPReq(), and USBD_StdItfReq().

◆ USBD_GetRxCount()

uint32_t USBD_GetRxCount ( USBD_HandleTypeDef * pdev,
uint8_t ep_addr )

USBD_GetRxCount returns the received data length.

Parameters
pdevdevice instance
ep_addrendpoint address
Return values
RxData blength

Definition at line 208 of file usbd_ioreq.c.

References USBD_LL_GetRxDataSize().