Struct flipper0::ffi::_usbd_device

source ·
pub struct _usbd_device {
    pub driver: *const usbd_driver,
    pub control_callback: Option<unsafe extern "C" fn(*mut _usbd_device, *mut usbd_ctlreq, *mut Option<unsafe extern "C" fn(*mut _usbd_device, *mut usbd_ctlreq)>) -> _usbd_respond>,
    pub complete_callback: Option<unsafe extern "C" fn(*mut _usbd_device, *mut usbd_ctlreq)>,
    pub config_callback: Option<unsafe extern "C" fn(*mut _usbd_device, u8) -> _usbd_respond>,
    pub descriptor_callback: Option<unsafe extern "C" fn(*mut usbd_ctlreq, *mut *mut c_void, *mut u16) -> _usbd_respond>,
    pub events: [Option<unsafe extern "C" fn(*mut _usbd_device, u8, u8)>; 8],
    pub endpoint: [Option<unsafe extern "C" fn(*mut _usbd_device, u8, u8)>; 8],
    pub status: usbd_status,
}
Expand description

\brief Represents a USB device data.

Fields

driver: *const usbd_driver

<\copybrief usbd_driver

control_callback: Option<unsafe extern "C" fn(*mut _usbd_device, *mut usbd_ctlreq, *mut Option<unsafe extern "C" fn(*mut _usbd_device, *mut usbd_ctlreq)>) -> _usbd_respond>

<\copybrief usbd_ctl_callback

complete_callback: Option<unsafe extern "C" fn(*mut _usbd_device, *mut usbd_ctlreq)>

<\copybrief usbd_rqc_callback

config_callback: Option<unsafe extern "C" fn(*mut _usbd_device, u8) -> _usbd_respond>

<\copybrief usbd_cfg_callback

descriptor_callback: Option<unsafe extern "C" fn(*mut usbd_ctlreq, *mut *mut c_void, *mut u16) -> _usbd_respond>

<\copybrief usbd_dsc_callback

events: [Option<unsafe extern "C" fn(*mut _usbd_device, u8, u8)>; 8]

<\brief array of the event callbacks.

endpoint: [Option<unsafe extern "C" fn(*mut _usbd_device, u8, u8)>; 8]

<\brief array of the endpoint callbacks.

status: usbd_status

<\copybrief usbd_status

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.