Struct atmega_hal::pac::TWI
source · [−]pub struct TWI { /* private fields */ }
Expand description
Two Wire Serial Interface
Implementations
sourceimpl TWI
impl TWI
sourcepub const PTR: *const RegisterBlock = {0xb8 as *const avr_device::atmega328p::twi::RegisterBlock}
pub const PTR: *const RegisterBlock = {0xb8 as *const avr_device::atmega328p::twi::RegisterBlock}
Pointer to the register block
sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
Trait Implementations
sourceimpl I2cOps<Atmega, Pin<Input<AnyInput>, PC4>, Pin<Input<AnyInput>, PC5>> for TWI
impl I2cOps<Atmega, Pin<Input<AnyInput>, PC4>, Pin<Input<AnyInput>, PC5>> for TWI
sourcefn raw_setup<CLOCK: Clock>(&mut self, speed: u32)
fn raw_setup<CLOCK: Clock>(&mut self, speed: u32)
Setup the bus for operation at a certain speed. Read more
sourcefn raw_start(&mut self, address: u8, direction: Direction) -> Result<(), Error>
fn raw_start(&mut self, address: u8, direction: Direction) -> Result<(), Error>
Start a bus transaction to a certain address
in either read or write mode. Read more
sourcefn raw_write(&mut self, bytes: &[u8]) -> Result<(), Error>
fn raw_write(&mut self, bytes: &[u8]) -> Result<(), Error>
Write some bytes to the bus. Read more
impl Send for TWI
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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