34 lines
No EOL
985 B
C
34 lines
No EOL
985 B
C
// Copyright 2019-2020 Espressif Systems (Shanghai) PTE LTD
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define USB_DESCRIPTOR_TYPE_ACM 0
|
|
#define USB_DESCRIPTOR_TYPE_DFU 1
|
|
|
|
void usb_set_current_descriptor(int descriptor_type);
|
|
|
|
bool usb_get_descriptor(uint16_t type_index, uint16_t lang_id,
|
|
int32_t *len, uint8_t **data);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif |