#[repr(C)]pub struct Params {
pub uart: usize,
pub event: usize,
pub handler_func: extern "C" fn(data: *const u8),
pub handler_data: *const u8,
}Expand description
Parameters of register
Fields§
§uart: usizeIndex of the UART to listen to.
event: usizeEvent to listen to.
handler_func: extern "C" fn(data: *const u8)Function pointer of the closure to call on events.
handler_data: *const u8Opaque data of the closure to call on events.
Trait Implementations§
Auto Trait Implementations§
impl !Send for Params
impl !Sync for Params
impl Freeze for Params
impl RefUnwindSafe for Params
impl Unpin for Params
impl UnsafeUnpin for Params
impl UnwindSafe for Params
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