|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Public functions declaration. More...
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) |
Public functions declaration.
| 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.
| Buf | Buffer of data to be sent |
| Len | Number of data to be sent (in bytes) |
| Result | of 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.
| void usb_bootloader_check | ( | void | ) |
Definition at line 343 of file usbd_cdc_if.c.
References __HAL_RCC_RTC_CLK_ENABLE, __set_MSP(), BOOTLOADER_ADDR, BOOTLOADER_MAGIC, HAL_PWR_EnableBkUpAccess(), and RTC.
Referenced by main().
| 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().
| 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().