Struct capsules::usb::SetupData
[−]
[src]
pub struct SetupData {
pub request_type: DeviceRequestType,
pub request_code: u8,
pub value: u16,
pub index: u16,
pub length: u16,
}The datastructure sent in a SETUP handshake
Fields
request_type: DeviceRequestType
request_code: u8
value: u16
index: u16
length: u16
Methods
impl SetupData[src]
pub fn get(p: &[VolatileCell<u8>]) -> Option<Self>[src]
Create a SetupData structure from a packet received from the wire
pub fn get_standard_request(&self) -> Option<StandardDeviceRequest>[src]
If the SetupData represents a standard device request, return it
Trait Implementations
impl Debug for SetupData[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more