pub struct I2cBusConfig {
pub speed_hz: Option<u32>,
}Expand description
I2C bus interface configuration (e.g. clock speed, pull-ups, muxes).
Fields§
§speed_hz: Option<u32>Clock speed in Hz (e.g. 100000 for 100 KHz).
Trait Implementations§
Source§impl Debug for I2cBusConfig
impl Debug for I2cBusConfig
Source§impl Default for I2cBusConfig
impl Default for I2cBusConfig
Source§fn default() -> I2cBusConfig
fn default() -> I2cBusConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for I2cBusConfig
impl<'de> Deserialize<'de> for I2cBusConfig
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 I2cBusConfig
impl RefUnwindSafe for I2cBusConfig
impl Send for I2cBusConfig
impl Sync for I2cBusConfig
impl Unpin for I2cBusConfig
impl UnwindSafe for I2cBusConfig
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