1 /*
2  * SPDX-FileCopyrightText: 2019-2022 Espressif Systems (Shanghai) CO LTD
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #pragma once
8 
9 #include <stdint.h>
10 #include <stdbool.h>
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 #define USB_DESCRIPTOR_TYPE_ACM 0
17 #define USB_DESCRIPTOR_TYPE_DFU 1
18 
19 void usb_set_current_descriptor(int descriptor_type);
20 
21 bool usb_get_descriptor(uint16_t type_index, uint16_t lang_id,
22                         int32_t *len, uint8_t **data);
23 
24 #ifdef __cplusplus
25 }
26 #endif
27