#[repr(C)]pub struct usbd_ctlreq {
pub bmRequestType: u8,
pub bRequest: u8,
pub wValue: u16,
pub wIndex: u16,
pub wLength: u16,
pub data: __IncompleteArrayField<u8>,
}Expand description
Represents generic USB control request.
Fields§
§bmRequestType: u8<This bitmapped field identifies the characteristics of the specific request.
bRequest: u8<This field specifies the particular request.
wValue: u16<It is used to pass a parameter to the device, specific to the request.
wIndex: u16<It is used to pass a parameter to the device, specific to the request.
wLength: u16<This field specifies the length of the data transferred during the second phase of the control transfer.
data: __IncompleteArrayField<u8><Data payload.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for usbd_ctlreq
impl RefUnwindSafe for usbd_ctlreq
impl Send for usbd_ctlreq
impl Sync for usbd_ctlreq
impl Unpin for usbd_ctlreq
impl UnwindSafe for usbd_ctlreq
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more