APM:Libraries
Functions
USBD_IOREQ_Private_Functions
Collaboration diagram for USBD_IOREQ_Private_Functions:

Functions

USBD_Status USBD_CtlSendData (USB_OTG_CORE_HANDLE *pdev, const uint8_t *pbuf, uint16_t len)
 USBD_CtlSendData send data on the ctl pipe. More...
 
USBD_Status USBD_CtlContinueSendData (USB_OTG_CORE_HANDLE *pdev, uint8_t *pbuf, uint16_t len)
 USBD_CtlContinueSendData continue sending data on the ctl pipe. More...
 
USBD_Status USBD_CtlPrepareRx (USB_OTG_CORE_HANDLE *pdev, uint8_t *pbuf, uint16_t len)
 USBD_CtlPrepareRx receive data on the ctl pipe. More...
 
USBD_Status USBD_CtlContinueRx (USB_OTG_CORE_HANDLE *pdev, uint8_t *pbuf, uint16_t len)
 USBD_CtlContinueRx continue receive data on the ctl pipe. More...
 
USBD_Status USBD_CtlSendStatus (USB_OTG_CORE_HANDLE *pdev)
 USBD_CtlSendStatus send zero lzngth packet on the ctl pipe. More...
 
USBD_Status USBD_CtlReceiveStatus (USB_OTG_CORE_HANDLE *pdev)
 USBD_CtlReceiveStatus receive zero lzngth packet on the ctl pipe. More...
 
uint16_t USBD_GetRxCount (USB_OTG_CORE_HANDLE *pdev, uint8_t epnum)
 USBD_GetRxCount returns the received data length. More...
 

Detailed Description

Function Documentation

◆ USBD_CtlContinueRx()

USBD_Status USBD_CtlContinueRx ( USB_OTG_CORE_HANDLE pdev,
uint8_t *  pbuf,
uint16_t  len 
)

USBD_CtlContinueRx continue receive data on the ctl pipe.

Parameters
pdevUSB OTG device instance
buffpointer to data buffer
lenlength of data to be received
Return values
status

Definition at line 165 of file usbd_ioreq.c.

Referenced by USBD_DataOutStage().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ USBD_CtlContinueSendData()

USBD_Status USBD_CtlContinueSendData ( USB_OTG_CORE_HANDLE pdev,
uint8_t *  pbuf,
uint16_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 118 of file usbd_ioreq.c.

Referenced by USBD_DataInStage().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ USBD_CtlPrepareRx()

USBD_Status USBD_CtlPrepareRx ( USB_OTG_CORE_HANDLE pdev,
uint8_t *  pbuf,
uint16_t  len 
)

USBD_CtlPrepareRx receive data on the ctl pipe.

Parameters
pdevUSB OTG device instance
buffpointer to data buffer
lenlength of data to be received
Return values
status

Definition at line 138 of file usbd_ioreq.c.

Referenced by usbd_cdc_Setup().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ USBD_CtlReceiveStatus()

USBD_Status USBD_CtlReceiveStatus ( USB_OTG_CORE_HANDLE pdev)

USBD_CtlReceiveStatus receive zero lzngth packet on the ctl pipe.

Parameters
pdevUSB OTG device instance
Return values
status

Definition at line 203 of file usbd_ioreq.c.

Referenced by USBD_DataInStage().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ USBD_CtlSendData()

USBD_Status USBD_CtlSendData ( USB_OTG_CORE_HANDLE pdev,
const uint8_t *  pbuf,
uint16_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 95 of file usbd_ioreq.c.

Referenced by usbd_cdc_Setup(), USBD_GetConfig(), USBD_GetDescriptor(), USBD_GetStatus(), USBD_MSC_Setup(), and USBD_StdEPReq().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ USBD_CtlSendStatus()

USBD_Status USBD_CtlSendStatus ( USB_OTG_CORE_HANDLE pdev)

USBD_CtlSendStatus send zero lzngth packet on the ctl pipe.

Parameters
pdevUSB OTG device instance
Return values
status

Definition at line 183 of file usbd_ioreq.c.

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

Here is the call graph for this function:
Here is the caller graph for this function:

◆ USBD_GetRxCount()

uint16_t USBD_GetRxCount ( USB_OTG_CORE_HANDLE pdev,
uint8_t  epnum 
)

USBD_GetRxCount returns the received data length.

Parameters
pdevUSB OTG device instance epnum: endpoint index
Return values
RxData blength

Definition at line 225 of file usbd_ioreq.c.

Referenced by MSC_BOT_CBW_Decode().

Here is the caller graph for this function: