pub struct Twi { /* private fields */ }Expand description
I2C compatible Two-Wire Interface.
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 TWI receive sequence.
Sourcepub const fn tasks_starttx(self) -> Reg<u32, W>
pub const fn tasks_starttx(self) -> Reg<u32, W>
Start TWI transmit sequence.
Sourcepub const fn tasks_stop(self) -> Reg<u32, W>
pub const fn tasks_stop(self) -> Reg<u32, W>
Stop TWI transaction.
Sourcepub const fn tasks_suspend(self) -> Reg<u32, W>
pub const fn tasks_suspend(self) -> Reg<u32, W>
Suspend TWI transaction.
Sourcepub const fn tasks_resume(self) -> Reg<u32, W>
pub const fn tasks_resume(self) -> Reg<u32, W>
Resume TWI transaction.
Sourcepub const fn events_stopped(self) -> Reg<u32, RW>
pub const fn events_stopped(self) -> Reg<u32, RW>
TWI stopped.
Sourcepub const fn events_rxdready(self) -> Reg<u32, RW>
pub const fn events_rxdready(self) -> Reg<u32, RW>
TWI RXD byte received.
Sourcepub const fn events_txdsent(self) -> Reg<u32, RW>
pub const fn events_txdsent(self) -> Reg<u32, RW>
TWI TXD byte sent.
Sourcepub const fn events_error(self) -> Reg<u32, RW>
pub const fn events_error(self) -> Reg<u32, RW>
TWI error.
Sourcepub const fn events_bb(self) -> Reg<u32, RW>
pub const fn events_bb(self) -> Reg<u32, RW>
TWI byte boundary, generated before each byte that is sent or received.
Sourcepub const fn events_suspended(self) -> Reg<u32, RW>
pub const fn events_suspended(self) -> Reg<u32, RW>
TWI entered the suspended state.
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