Struct flipper0::ffi::usbd_driver

source ·
pub struct usbd_driver {
Show 13 fields pub getinfo: Option<unsafe extern "C" fn() -> u32>, pub enable: Option<unsafe extern "C" fn(bool)>, pub connect: Option<unsafe extern "C" fn(bool) -> u8>, pub setaddr: Option<unsafe extern "C" fn(u8)>, pub ep_config: Option<unsafe extern "C" fn(u8, u8, u16) -> bool>, pub ep_deconfig: Option<unsafe extern "C" fn(u8)>, pub ep_read: Option<unsafe extern "C" fn(u8, *mut c_void, u16) -> i32>, pub ep_write: Option<unsafe extern "C" fn(u8, *mut c_void, u16) -> i32>, pub ep_setstall: Option<unsafe extern "C" fn(u8, bool)>, pub ep_isstalled: Option<unsafe extern "C" fn(u8) -> bool>, pub poll: Option<unsafe extern "C" fn(*mut _usbd_device, Option<unsafe extern "C" fn(*mut _usbd_device, u8, u8)>)>, pub frame_no: Option<unsafe extern "C" fn() -> u16>, pub get_serialno_desc: Option<unsafe extern "C" fn(*mut c_void) -> u16>,
}
Expand description

\brief Represents a hardware USB driver call table.

Fields

getinfo: Option<unsafe extern "C" fn() -> u32>

<\copybrief usbd_hw_getinfo

enable: Option<unsafe extern "C" fn(bool)>

<\copybrief usbd_hw_enable

connect: Option<unsafe extern "C" fn(bool) -> u8>

<\copybrief usbd_hw_connect

setaddr: Option<unsafe extern "C" fn(u8)>

<\copybrief usbd_hw_setaddr

ep_config: Option<unsafe extern "C" fn(u8, u8, u16) -> bool>

<\copybrief usbd_hw_ep_config

ep_deconfig: Option<unsafe extern "C" fn(u8)>

<\copybrief usbd_hw_ep_deconfig

ep_read: Option<unsafe extern "C" fn(u8, *mut c_void, u16) -> i32>

<\copybrief usbd_hw_ep_read

ep_write: Option<unsafe extern "C" fn(u8, *mut c_void, u16) -> i32>

<\copybrief usbd_hw_ep_write

ep_setstall: Option<unsafe extern "C" fn(u8, bool)>

<\copybrief usbd_hw_ep_setstall

ep_isstalled: Option<unsafe extern "C" fn(u8) -> bool>

<\copybrief usbd_hw_ep_isstalled

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

<\copybrief usbd_hw_poll

frame_no: Option<unsafe extern "C" fn() -> u16>

<\copybrief usbd_hw_get_frameno

get_serialno_desc: Option<unsafe extern "C" fn(*mut c_void) -> u16>

<\copybrief usbd_hw_get_serialno

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.