pub struct I2cInterfaceConfig {
pub max_read_attempts: u16,
pub timeout_transaction: u32,
}Expand description
Holds the configuration data for the I2C interface. The configuration is loaded from the .toml configuration file. This struct does not contain any implementation. Struct is intentionally placed here instead of creating i2c_interface.
Fields§
§max_read_attempts: u16maximum number of read attempts
timeout_transaction: u32timeout for transactions in milliseconds
Trait Implementations§
Source§impl Debug for I2cInterfaceConfig
impl Debug for I2cInterfaceConfig
Source§impl<'de> Deserialize<'de> for I2cInterfaceConfig
impl<'de> Deserialize<'de> for I2cInterfaceConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for I2cInterfaceConfig
impl RefUnwindSafe for I2cInterfaceConfig
impl Send for I2cInterfaceConfig
impl Sync for I2cInterfaceConfig
impl Unpin for I2cInterfaceConfig
impl UnwindSafe for I2cInterfaceConfig
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