Type Alias TWI

Source
pub type TWI = Periph<RegisterBlock, 184>;
Expand description

Two Wire Serial Interface

Aliased Type§

struct TWI { /* private fields */ }

Trait Implementations§

Source§

impl I2cOps<Atmega, Pin<Input, PC4>, Pin<Input, PC5>> for TWI

Source§

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>

Start a bus transaction to a certain address in either read or write mode. Read more
Source§

fn raw_write(&mut self, bytes: &[u8]) -> Result<(), Error>

Write some bytes to the bus. Read more
Source§

fn raw_read(&mut self, buffer: &mut [u8], last_read: bool) -> Result<(), Error>

Read some bytes from the bus. Read more
Source§

fn raw_stop(&mut self) -> Result<(), Error>

Send a stop-condition and release the bus. Read more