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
Auto Trait Implementations
impl RefUnwindSafe for usbd_driver
impl Send for usbd_driver
impl Sync for usbd_driver
impl Unpin for usbd_driver
impl UnwindSafe for usbd_driver
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more