Module capsules::usb [] [src]

Platform-independent USB 2.0 protocol library

Reexports

use core::cell::Cell;
use core::convert::From;
use core::fmt;
use kernel::common::VolatileCell;

Structs

ConfigurationAttributes
ConfigurationDescriptor
DeviceDescriptor
DeviceRequestType
InterfaceDescriptor
LanguagesDescriptor
SetupData

The datastructure sent in a SETUP handshake

StringDescriptor

Enums

DescriptorType
FeatureSelector
Recipient
RequestType
StandardDeviceRequest
TransferDirection

Traits

Descriptor

Functions

get_descriptor_type
get_set_descriptor_type

Get a descriptor type that is legal in a SetDescriptor request

get_u16

Parse a u16 from two bytes as received on the bus

put_u16

Write a u16 to a buffer for transmission on the bus