APM:Libraries
Functions
Usbd_cdc_Private_Functions
Collaboration diagram for Usbd_cdc_Private_Functions:

Functions

static uint32_t last_tx_packet_size (void *pdev, uint8_t epnum)
 
static uint32_t last_rx_data_size (void *pdev, uint8_t epnum)
 
static int try_start_rx (void *pdev)
 
static void schedule_cdc_out (void *pdev)
 
static void schedule_cdc_in (void *pdev)
 
static uint8_t usbd_cdc_Init (void *pdev, uint8_t cfgidx)
 usbd_cdc_Init Initilaize the CDC interface More...
 
static uint8_t usbd_cdc_DeInit (void *pdev, uint8_t cfgidx)
 usbd_cdc_Init DeInitialize the CDC layer More...
 
static uint8_t usbd_cdc_Setup (void *pdev, USB_SETUP_REQ *req)
 usbd_cdc_Setup Handle the CDC specific requests More...
 
static uint8_t usbd_cdc_EP0_RxReady (void *pdev)
 usbd_cdc_EP0_RxReady Data received on control endpoint More...
 
static uint8_t usbd_cdc_DataIn (void *pdev, uint8_t epnum)
 usbd_audio_DataIn Data sent on non-control IN endpoint More...
 
static uint8_t usbd_cdc_DataOut (void *pdev, uint8_t epnum)
 usbd_cdc_DataOut Data received on non-control Out endpoint More...
 
static uint8_t usbd_cdc_SOF (void *pdev)
 usbd_audio_SOF Start Of Frame event management More...
 
static uint8_t * USBD_cdc_GetCfgDesc (uint8_t speed, uint16_t *length)
 USBD_cdc_GetCfgDesc Return configuration descriptor. More...
 

Detailed Description

Function Documentation

◆ last_rx_data_size()

static uint32_t last_rx_data_size ( void *  pdev,
uint8_t  epnum 
)
inlinestatic

Definition at line 633 of file usbd_cdc_core.c.

Referenced by usbd_cdc_DataOut().

Here is the caller graph for this function:

◆ last_tx_packet_size()

static uint32_t last_tx_packet_size ( void *  pdev,
uint8_t  epnum 
)
inlinestatic

Definition at line 628 of file usbd_cdc_core.c.

Referenced by usbd_cdc_DataIn().

Here is the caller graph for this function:

◆ schedule_cdc_in()

static void schedule_cdc_in ( void *  pdev)
static

Definition at line 727 of file usbd_cdc_core.c.

Referenced by usbd_cdc_SOF().

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

◆ schedule_cdc_out()

static void schedule_cdc_out ( void *  pdev)
static

Definition at line 721 of file usbd_cdc_core.c.

Referenced by usbd_cdc_SOF().

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

◆ try_start_rx()

static int try_start_rx ( void *  pdev)
inlinestatic

Definition at line 670 of file usbd_cdc_core.c.

Referenced by schedule_cdc_out(), and usbd_cdc_DataOut().

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

◆ usbd_cdc_DataIn()

static uint8_t usbd_cdc_DataIn ( void *  pdev,
uint8_t  epnum 
)
static

usbd_audio_DataIn Data sent on non-control IN endpoint

Parameters
pdevdevice instance
epnumendpoint number
Return values
status

Definition at line 645 of file usbd_cdc_core.c.

Here is the call graph for this function:

◆ usbd_cdc_DataOut()

static uint8_t usbd_cdc_DataOut ( void *  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 712 of file usbd_cdc_core.c.

Here is the call graph for this function:

◆ usbd_cdc_DeInit()

static uint8_t usbd_cdc_DeInit ( void *  pdev,
uint8_t  cfgidx 
)
static

usbd_cdc_Init DeInitialize the CDC layer

Parameters
pdevdevice instance
cfgidxConfiguration index
Return values
status

Definition at line 486 of file usbd_cdc_core.c.

Here is the call graph for this function:

◆ usbd_cdc_EP0_RxReady()

static uint8_t usbd_cdc_EP0_RxReady ( void *  pdev)
static

usbd_cdc_EP0_RxReady Data received on control endpoint

Parameters
pdevdevice device instance
Return values
status

Definition at line 614 of file usbd_cdc_core.c.

◆ USBD_cdc_GetCfgDesc()

static uint8_t * USBD_cdc_GetCfgDesc ( uint8_t  speed,
uint16_t *  length 
)
static

USBD_cdc_GetCfgDesc Return configuration descriptor.

Parameters
speed: current device speed
length: pointer data length
Return values
pointerto descriptor buffer

Definition at line 781 of file usbd_cdc_core.c.

◆ usbd_cdc_Init()

static uint8_t usbd_cdc_Init ( void *  pdev,
uint8_t  cfgidx 
)
static

usbd_cdc_Init Initilaize the CDC interface

Parameters
pdevdevice instance
cfgidxConfiguration index
Return values
status

Definition at line 438 of file usbd_cdc_core.c.

Here is the call graph for this function:

◆ usbd_cdc_Setup()

static uint8_t usbd_cdc_Setup ( void *  pdev,
USB_SETUP_REQ req 
)
static

usbd_cdc_Setup Handle the CDC specific requests

Parameters
pdevinstance
requsb requests
Return values
status

Definition at line 514 of file usbd_cdc_core.c.

Here is the call graph for this function:

◆ usbd_cdc_SOF()

static uint8_t usbd_cdc_SOF ( void *  pdev)
static

usbd_audio_SOF Start Of Frame event management

Parameters
pdevinstance
epnumendpoint number
Return values
status

Definition at line 757 of file usbd_cdc_core.c.

Here is the call graph for this function: