Struct capsules::usb::InterfaceDescriptor [] [src]

pub struct InterfaceDescriptor {
    pub interface_number: u8,
    pub alternate_setting: u8,
    pub num_endpoints: u8,
    pub interface_class: u8,
    pub interface_subclass: u8,
    pub interface_protocol: u8,
    pub string_index: u8,
}

Fields

Trait Implementations

impl Default for InterfaceDescriptor
[src]

[src]

Returns the "default value" for a type. Read more

impl Descriptor for InterfaceDescriptor
[src]

[src]

Serialized size of Descriptor

[src]

Same as write_to(), but doesn't check that buf is long enough before indexing into it. This should be used only if the result of size() is first consulted. Read more

[src]

Serialize the descriptor to a buffer for transmission on the bus