#[repr(C)]pub struct IOUSBDevRequestTO {
pub bmRequestType: u8,
pub bRequest: u8,
pub wValue: u16,
pub wIndex: u16,
pub wLength: u16,
pub pData: *mut c_void,
pub wLenDone: u32,
pub noDataTimeout: u32,
pub completionTimeout: u32,
}USB only.Expand description
Parameter block for control requests with timeouts, using a simple pointer for the data to be transferred. Same as a IOUSBDevRequest except for the two extra timeout fields. Field: bmRequestType Request type: kUSBStandard, kUSBClass or kUSBVendor Field: bRequest Request code Field: wValue 16 bit parameter for request, host endianess Field: wIndex 16 bit parameter for request, host endianess Field: wLength Length of data part of request, 16 bits, host endianess Field: pData Pointer to data for request - data returned in bus endianess Field: wLenDone Set by standard completion routine to number of data bytes actually transferred Field: noDataTimeout Specifies a time value in milliseconds. Once the request is queued on the bus, if no data is transferred in this amount of time, the request will be aborted and returned. Field: completionTimeout Specifies a time value in milliseconds. Once the request is queued on the bus, if the entire request is not completed in this amount of time, the request will be aborted and returned
See also Apple’s documentation
Fields§
§bmRequestType: u8§bRequest: u8§wValue: u16§wIndex: u16§wLength: u16§pData: *mut c_void§wLenDone: u32§noDataTimeout: u32§completionTimeout: u32Trait Implementations§
Source§impl Clone for IOUSBDevRequestTO
Available on crate feature usb only.
impl Clone for IOUSBDevRequestTO
usb only.Source§fn clone(&self) -> IOUSBDevRequestTO
fn clone(&self) -> IOUSBDevRequestTO
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for IOUSBDevRequestTO
Available on crate feature usb only.
impl Debug for IOUSBDevRequestTO
usb only.Source§impl Encode for IOUSBDevRequestTO
Available on crate features usb and objc2 only.
impl Encode for IOUSBDevRequestTO
usb and objc2 only.Source§impl PartialEq for IOUSBDevRequestTO
Available on crate feature usb only.
impl PartialEq for IOUSBDevRequestTO
usb only.Source§impl RefEncode for IOUSBDevRequestTO
Available on crate features usb and objc2 only.
impl RefEncode for IOUSBDevRequestTO
usb and objc2 only.Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
impl Copy for IOUSBDevRequestTO
usb only.impl StructuralPartialEq for IOUSBDevRequestTO
usb only.