pub struct InterfaceConfig {
pub i2c1: Option<I2cBusConfig>,
pub i2c2: Option<I2cBusConfig>,
}Expand description
Optional interface configurations (e.g. I2C1, I2C2).
Fields§
§i2c1: Option<I2cBusConfig>I2C1 configuration, if used.
i2c2: Option<I2cBusConfig>I2C2 configuration, if used.
Trait Implementations§
Source§impl Debug for InterfaceConfig
impl Debug for InterfaceConfig
Source§impl Default for InterfaceConfig
impl Default for InterfaceConfig
Source§fn default() -> InterfaceConfig
fn default() -> InterfaceConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InterfaceConfig
impl<'de> Deserialize<'de> for InterfaceConfig
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 InterfaceConfig
impl RefUnwindSafe for InterfaceConfig
impl Send for InterfaceConfig
impl Sync for InterfaceConfig
impl Unpin for InterfaceConfig
impl UnwindSafe for InterfaceConfig
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