pub struct Twi { /* private fields */ }
Expand description
Two-wire interface master 0.
Implementations§
Source§impl Twi
impl Twi
pub const unsafe fn from_ptr(ptr: *mut ()) -> Self
pub const fn as_ptr(&self) -> *mut ()
Sourcepub const fn tasks_startrx(self) -> Reg<u32, W>
pub const fn tasks_startrx(self) -> Reg<u32, W>
Start 2-Wire master receive sequence.
Sourcepub const fn tasks_starttx(self) -> Reg<u32, W>
pub const fn tasks_starttx(self) -> Reg<u32, W>
Start 2-Wire master transmit sequence.
Sourcepub const fn tasks_stop(self) -> Reg<u32, W>
pub const fn tasks_stop(self) -> Reg<u32, W>
Stop 2-Wire transaction.
Sourcepub const fn tasks_suspend(self) -> Reg<u32, W>
pub const fn tasks_suspend(self) -> Reg<u32, W>
Suspend 2-Wire transaction.
Sourcepub const fn tasks_resume(self) -> Reg<u32, W>
pub const fn tasks_resume(self) -> Reg<u32, W>
Resume 2-Wire transaction.
Sourcepub const fn events_stopped(self) -> Reg<u32, RW>
pub const fn events_stopped(self) -> Reg<u32, RW>
Two-wire stopped.
Sourcepub const fn events_rxdready(self) -> Reg<u32, RW>
pub const fn events_rxdready(self) -> Reg<u32, RW>
Two-wire ready to deliver new RXD byte received.
Sourcepub const fn events_txdsent(self) -> Reg<u32, RW>
pub const fn events_txdsent(self) -> Reg<u32, RW>
Two-wire finished sending last TXD byte.
Sourcepub const fn events_error(self) -> Reg<u32, RW>
pub const fn events_error(self) -> Reg<u32, RW>
Two-wire error detected.
Sourcepub const fn events_suspended(self) -> Reg<u32, RW>
pub const fn events_suspended(self) -> Reg<u32, RW>
Two-wire suspended.
Trait Implementations§
impl Copy for Twi
impl Eq for Twi
impl Send for Twi
impl StructuralPartialEq for Twi
impl Sync for Twi
Auto Trait Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)