circuitpython/shared-module/usb/core/Device.h
2024-05-19 20:40:44 -04:00

18 lines
534 B
C

// This file is part of the CircuitPython project: https://circuitpython.org
//
// SPDX-FileCopyrightText: Copyright (c) 2022 Scott Shawcroft for Adafruit Industries
//
// SPDX-License-Identifier: MIT
#pragma once
#include "py/obj.h"
typedef struct {
mp_obj_base_t base;
uint8_t device_number;
uint8_t configuration_index; // not bConfigurationValue
uint8_t *configuration_descriptor; // Contains the length of the all descriptors.
uint8_t open_endpoints[8];
uint16_t first_langid;
} usb_core_device_obj_t;