OpenEFI  v2

Usb VCP device module. More...

Modules

 USBD_CDC_IF_Private_TypesDefinitions
 Private types.
 
 USBD_CDC_IF_Private_Defines
 Private defines.
 
 USBD_CDC_IF_Private_Macros
 Private macros.
 
 USBD_CDC_IF_Private_Variables
 Private variables.
 
 USBD_CDC_IF_Exported_Variables
 Public variables.
 
 USBD_CDC_IF_Private_FunctionPrototypes
 Private functions declaration.
 
 USBD_CDC_IF_Exported_Defines
 Defines.
 
 USBD_CDC_IF_Exported_Types
 Types.
 
 USBD_CDC_IF_Exported_Macros
 Aliases.
 
 USBD_CDC_IF_Exported_FunctionsPrototype
 Public functions declaration.
 

Functions

uint8_t CDC_Transmit_FS (uint8_t *Buf, uint16_t Len)
 CDC_Transmit_FS Data to send over USB IN endpoint are sent over CDC interface through this function. More...
 
uint8_t CDC_ReadRxBuffer_FS (uint8_t *Buf, uint16_t Len)
 
uint8_t CDC_PeekRxBuffer_FS (uint8_t *Buf, uint16_t Len)
 
uint16_t CDC_GetRxBufferBytesAvailable_FS ()
 
void CDC_FlushRxBuffer_FS ()
 

Variables

USBD_CDC_ItfTypeDef USBD_Interface_fops_FS
 

Detailed Description

Usb VCP device module.

Function Documentation

◆ CDC_Transmit_FS()

uint8_t CDC_Transmit_FS ( uint8_t *  Buf,
uint16_t  Len 
)

CDC_Transmit_FS Data to send over USB IN endpoint are sent over CDC interface through this function.

Note
Parameters
BufBuffer of data to be sent
LenNumber of data to be sent (in bytes)
Return values
USBD_OKif all operations are OK else USBD_FAIL or USBD_BUSY

Variable Documentation

◆ USBD_Interface_fops_FS

USBD_CDC_ItfTypeDef USBD_Interface_fops_FS
Initial value:
=
{
CDC_Init_FS,
CDC_DeInit_FS,
CDC_Control_FS,
CDC_Receive_FS,
CDC_TransmitCplt_FS}

CDC Interface callback.