![]() |
ACwing FC firmware
STM32WB55: attitude IEKF, altitude Kalman filter, flight core, protocol v2
|
USB descriptors of the ACwing FC (CDC virtual COM port). More...
Go to the source code of this file.
Macros | |
| #define | USBD_VID 0x0483u |
| #define | USBD_PID 0x5740u |
| #define | USBD_LANGID 0x0409u |
| #define | STR_MANUFACTURER "ACwing" |
| #define | STR_PRODUCT "ACwing FC" |
| #define | STR_CONFIG "CDC Config" |
| #define | STR_INTERFACE "CDC Interface" |
| #define | USB_SIZ_STRING_SERIAL 0x1Au |
Functions | |
| static uint8_t * | dev_desc (USBD_SpeedTypeDef s, uint16_t *len) |
| static uint8_t * | lang_desc (USBD_SpeedTypeDef s, uint16_t *len) |
| static uint8_t * | mfr_desc (USBD_SpeedTypeDef s, uint16_t *len) |
| static uint8_t * | prod_desc (USBD_SpeedTypeDef s, uint16_t *len) |
| static uint8_t * | serial_desc (USBD_SpeedTypeDef s, uint16_t *len) |
| static uint8_t * | config_desc (USBD_SpeedTypeDef s, uint16_t *len) |
| static uint8_t * | itf_desc (USBD_SpeedTypeDef s, uint16_t *len) |
| static void | hex_unicode (uint32_t v, uint8_t *p, uint8_t n) |
Variables | |
| USBD_DescriptorsTypeDef | ACW_FS_Desc |
| static uint8_t | s_dev [USB_LEN_DEV_DESC] |
| static uint8_t | s_lang [USB_LEN_LANGID_STR_DESC] |
| static uint8_t | s_str [USBD_MAX_STR_DESC_SIZ] |
| static uint8_t | s_serial [USB_SIZ_STRING_SERIAL] = { USB_SIZ_STRING_SERIAL, USB_DESC_TYPE_STRING } |
USB descriptors of the ACwing FC (CDC virtual COM port).
VID/PID: 0x0483/0x5740, ST's "Virtual COM Port" pair used by the STM32Cube CDC examples, so the standard CDC-ACM drivers bind on every OS. It is fine for development; a product needs its own VID/PID. Written after the ST template usbd_desc_template.c.
Definition in file usbd_desc.c.
| #define USBD_VID 0x0483u |
Definition at line 14 of file usbd_desc.c.
| #define USBD_PID 0x5740u |
Definition at line 15 of file usbd_desc.c.
| #define USBD_LANGID 0x0409u |
Definition at line 16 of file usbd_desc.c.
| #define STR_MANUFACTURER "ACwing" |
Definition at line 17 of file usbd_desc.c.
| #define STR_PRODUCT "ACwing FC" |
Definition at line 18 of file usbd_desc.c.
| #define STR_CONFIG "CDC Config" |
Definition at line 19 of file usbd_desc.c.
| #define STR_INTERFACE "CDC Interface" |
Definition at line 20 of file usbd_desc.c.
| #define USB_SIZ_STRING_SERIAL 0x1Au |
Definition at line 21 of file usbd_desc.c.
|
static |
Definition at line 55 of file usbd_desc.c.
|
static |
Definition at line 56 of file usbd_desc.c.
|
static |
Definition at line 57 of file usbd_desc.c.
References s, s_str, and STR_MANUFACTURER.
|
static |
Definition at line 58 of file usbd_desc.c.
References s, s_str, and STR_PRODUCT.
|
static |
Definition at line 73 of file usbd_desc.c.
References hex_unicode(), s, s_serial, and USB_SIZ_STRING_SERIAL.
|
static |
Definition at line 59 of file usbd_desc.c.
References s, s_str, and STR_CONFIG.
|
static |
Definition at line 60 of file usbd_desc.c.
References s, s_str, and STR_INTERFACE.
|
static |
Definition at line 62 of file usbd_desc.c.
References n.
Referenced by serial_desc().
| USBD_DescriptorsTypeDef ACW_FS_Desc |
Definition at line 31 of file usbd_desc.c.
Referenced by usb_cdc_init().
|
static |
Definition at line 38 of file usbd_desc.c.
Referenced by dev_desc().
|
static |
Definition at line 48 of file usbd_desc.c.
Referenced by lang_desc().
|
static |
Definition at line 52 of file usbd_desc.c.
Referenced by config_desc(), itf_desc(), mfr_desc(), and prod_desc().
|
static |
Definition at line 53 of file usbd_desc.c.
Referenced by serial_desc().