descriptors_control.h 483 B

1234567891011121314151617181920212223
  1. /*
  2. * SPDX-FileCopyrightText: 2020-2022 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #pragma once
  7. #include "tusb.h"
  8. #include "tinyusb_types.h"
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. void tusb_set_descriptor(const tusb_desc_device_t *dev_desc, const char **str_desc, const uint8_t *cfg_desc);
  13. tusb_desc_device_t *tusb_get_active_desc(void);
  14. char **tusb_get_active_str_desc(void);
  15. void tusb_clear_descriptor(void);
  16. #ifdef __cplusplus
  17. }
  18. #endif