|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
: Usb device for Virtual Com Port. More...
#include "usbd_cdc_if.h"#include <string.h>#include <stdbool.h>#include "stm32h7xx.h"#include "mode.h"Go to the source code of this file.
Macros | |
| #define | BOOTLOADER_ADDR 0x1FF09800UL /* ST's H723 example; confirm in AN2606 */ |
| #define | BOOTLOADER_MAGIC 0xB007100DUL /* RTC->BKP0R, survives the reset */ |
Functions | |
| static int8_t | CDC_Init_HS (void) |
| Initializes the CDC media low layer over the USB HS IP. | |
| static int8_t | CDC_DeInit_HS (void) |
| DeInitializes the CDC media low layer. | |
| static int8_t | CDC_Control_HS (uint8_t cmd, uint8_t *pbuf, uint16_t length) |
| Manage the CDC class requests. | |
| static int8_t | CDC_Receive_HS (uint8_t *Buf, uint32_t *Len) |
| Data received over USB OUT endpoint are sent over CDC interface through this function. | |
| static int8_t | CDC_TransmitCplt_HS (uint8_t *Buf, uint32_t *Len, uint8_t epnum) |
| CDC_TransmitCplt_HS Data transmitted callback. | |
| static bool | is_bootloader_cmd (const uint8_t *b, uint32_t n) |
| 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) |
Variables | |
| volatile bool | g_usb_terminal_connected = false |
| static uint8_t | line_coding [7] = {0x00, 0xC2, 0x01, 0x00, 0, 0, 8} |
| uint8_t | UserRxBufferHS [APP_RX_DATA_SIZE] |
| Received data over USB are stored in this buffer. | |
| uint8_t | UserTxBufferHS [APP_TX_DATA_SIZE] |
| Data to send over USB CDC are stored in this buffer. | |
| USBD_HandleTypeDef | hUsbDeviceHS |
| USBD_CDC_ItfTypeDef | USBD_Interface_fops_HS |
| CDC Interface callback. | |
: Usb device for Virtual Com Port.
Copyright (c) 2026 STMicroelectronics. All rights reserved.
This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
Definition in file usbd_cdc_if.c.
|
static |
Definition at line 38 of file usbd_cdc_if.c.
Referenced by CDC_Control_HS().