Struct atmega_hal::pac::TWI
source · pub struct TWI { /* private fields */ }
Expand description
Two Wire Serial Interface
Implementations§
Trait Implementations§
source§impl I2cOps<Atmega, Pin<Input, PC4>, Pin<Input, PC5>> for TWI
impl I2cOps<Atmega, Pin<Input, PC4>, Pin<Input, PC5>> for TWI
source§fn 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
source§fn 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 moresource§fn 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§
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