pub type I2cTransferStart = i2c_transfer_start_t;

Implementations§

source§

impl I2cTransferStart

source

pub fn new(address: u8, content: &[u8], stop: bool) -> Self

source

pub fn execute_read<F>(&self, uart: &dyn Uart, f: F) -> Result<()>where F: FnOnce() -> Result<()>,

source

pub fn execute_write<F>(uart: &dyn Uart, f: F) -> Result<Self>where F: FnOnce() -> Result<()>,

source

pub fn execute_write_slow<F>(uart: &dyn Uart, f: F) -> Result<Self>where F: FnOnce() -> Result<()>,

source

pub fn execute_write_read<F>(&self, uart: &dyn Uart, f: F) -> Result<Self>where F: FnOnce() -> Result<()>,