#[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 and 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
impl Clone for IOUSBDevRequestTO
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
impl Debug for IOUSBDevRequestTO
Source§impl Encode for IOUSBDevRequestTO
Available on crate feature objc2 only.
impl Encode for IOUSBDevRequestTO
objc2 only.Source§impl PartialEq for IOUSBDevRequestTO
impl PartialEq for IOUSBDevRequestTO
Source§impl RefEncode for IOUSBDevRequestTO
Available on crate feature objc2 only.
impl RefEncode for IOUSBDevRequestTO
objc2 only.