[−][src]Trait mcp794xx::interface::WriteData
Write data
Associated Types
type Error
Error type
Required methods
fn write_register(&mut self, register: u8, data: u8) -> Result<(), Self::Error>
Write to an u8 register
fn write_data(&mut self, payload: &[u8]) -> Result<(), Self::Error>
Write data. The first element corresponds to the starting address.
fn write_eeprom_byte(
&mut self,
address: u8,
data: u8
) -> Result<(), Self::Error>
&mut self,
address: u8,
data: u8
) -> Result<(), Self::Error>
Write byte to EEPROM
fn write_eeprom_data(&mut self, payload: &[u8]) -> Result<(), Self::Error>
Write data to EEPROM. The first element corresponds to the starting address.
Implementors
impl<I2C, E> WriteData for I2cInterface<I2C> where
I2C: Write<Error = E>,
[src]
I2C: Write<Error = E>,
type Error = Error<E>
fn write_register(&mut self, register: u8, data: u8) -> Result<(), Self::Error>
[src]
fn write_data(&mut self, payload: &[u8]) -> Result<(), Self::Error>
[src]
fn write_eeprom_byte(
&mut self,
address: u8,
data: u8
) -> Result<(), Self::Error>
[src]
&mut self,
address: u8,
data: u8
) -> Result<(), Self::Error>