usb-descriptor-decoder 0.1.0

A no-std extensible USB Descriptor Decoder, support organize Descriptors as tree structure
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use num_derive::FromPrimitive;

pub mod uvc_endpoints;
pub mod uvc_interfaces;

#[derive(FromPrimitive, Copy, Clone, Debug, PartialEq)]
#[allow(non_camel_case_types)]
#[repr(u8)]
pub enum UVCDescriptorTypes {
    UVCClassSpecUnderfined = 0x20,
    UVCClassSpecDevice = 0x21,
    UVCClassSpecConfiguration = 0x22,
    UVCClassSpecString = 0x23,
    UVCClassSpecInterface = 0x24,
    UVCClassSpecVideoControlInterruptEndpoint = 0x25,
}