Struct capsules::usb::ConfigurationDescriptor [] [src]

pub struct ConfigurationDescriptor {
    pub num_interfaces: u8,
    pub configuration_value: u8,
    pub string_index: u8,
    pub attributes: ConfigurationAttributes,
    pub max_power: u8,
    pub related_descriptor_length: usize,
}

Fields

Trait Implementations

impl Default for ConfigurationDescriptor
[src]

[src]

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

impl Descriptor for ConfigurationDescriptor
[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