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
interface_number: u8
alternate_setting: u8
num_endpoints: u8
interface_class: u8
interface_subclass: u8
interface_protocol: u8
string_index: u8
Trait Implementations
impl Default for InterfaceDescriptor
[src]
impl Descriptor for InterfaceDescriptor
[src]
fn size(&self) -> usize
[src]
Serialized size of Descriptor
fn write_to_unchecked(&self, buf: &[Cell<u8>]) -> usize
[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
fn write_to(&self, buf: &[Cell<u8>]) -> usize
[src]
Serialize the descriptor to a buffer for transmission on the bus