STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
USBD_CDC_IF_Exported_FunctionsPrototype

Public functions declaration. More...

Collaboration diagram for USBD_CDC_IF_Exported_FunctionsPrototype:

Functions

uint8_t CDC_Transmit_HS (uint8_t *Buf, uint16_t Len)
 Data to send over USB IN endpoint are sent over CDC interface through this function.
bool usb_configured (void)
bool usb_terminal_open (void)
void usb_bootloader_check (void)

Detailed Description

Public functions declaration.

Function Documentation

◆ CDC_Transmit_HS()

uint8_t CDC_Transmit_HS ( uint8_t * Buf,
uint16_t Len )

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

Parameters
BufBuffer of data to be sent
LenNumber of data to be sent (in bytes)
Return values
Resultof the operation: USBD_OK if all operations are OK else USBD_FAIL or USBD_BUSY

Definition at line 283 of file usbd_cdc_if.c.

References hUsbDeviceHS, NULL, result, USBD_CDC_HandleTypeDef::TxState, usb_terminal_open(), USBD_BUSY, USBD_CDC_SetTxBuffer(), USBD_CDC_TransmitPacket(), USBD_FAIL, and USBD_OK.

◆ usb_bootloader_check()

void usb_bootloader_check ( void )

◆ usb_configured()

bool usb_configured ( void )

Definition at line 325 of file usbd_cdc_if.c.

References hUsbDeviceHS, and USBD_STATE_CONFIGURED.

Referenced by board_sleep(), and usb_terminal_open().

◆ usb_terminal_open()

bool usb_terminal_open ( void )

Definition at line 330 of file usbd_cdc_if.c.

References g_usb_terminal_connected, and usb_configured().

Referenced by CDC_Transmit_HS().