#[repr(transparent)]pub struct Mcfgr1(pub u32);Expand description
Controller Configuration 1.
Tuple Fields§
§0: u32Implementations§
Source§impl Mcfgr1
impl Mcfgr1
Sourcepub const fn set_prescale(&mut self, val: Prescale)
pub const fn set_prescale(&mut self, val: Prescale)
Prescaler.
Sourcepub const fn set_autostop(&mut self, val: bool)
pub const fn set_autostop(&mut self, val: bool)
Automatic Stop Generation.
Sourcepub const fn set_ignack(&mut self, val: bool)
pub const fn set_ignack(&mut self, val: bool)
Ignore NACK.
Sourcepub const fn timecfg(&self) -> bool
pub const fn timecfg(&self) -> bool
Timeout Configuration. Raw bit values: false (0) = IfSclLow: SCL.; true (1) = IfSclOrSdaLow: SCL or SDA.
Sourcepub const fn set_timecfg(&mut self, val: bool)
pub const fn set_timecfg(&mut self, val: bool)
Timeout Configuration. Raw bit values: false (0) = IfSclLow: SCL.; true (1) = IfSclOrSdaLow: SCL or SDA.
Sourcepub const fn stopcfg(&self) -> bool
pub const fn stopcfg(&self) -> bool
Stop Configuration. Raw bit values: false (0) = AnyStop: Any Stop condition.; true (1) = LastStop: Last Stop condition.
Sourcepub const fn set_stopcfg(&mut self, val: bool)
pub const fn set_stopcfg(&mut self, val: bool)
Stop Configuration. Raw bit values: false (0) = AnyStop: Any Stop condition.; true (1) = LastStop: Last Stop condition.
Sourcepub const fn startcfg(&self) -> bool
pub const fn startcfg(&self) -> bool
Start Configuration. Raw bit values: false (0) = BothI2cAndLpi2cIdle: Sets when both I2C bus and LPI2C controller are idle.; true (1) = I2cIdle: Sets when I2C bus is idle.
Sourcepub const fn set_startcfg(&mut self, val: bool)
pub const fn set_startcfg(&mut self, val: bool)
Start Configuration. Raw bit values: false (0) = BothI2cAndLpi2cIdle: Sets when both I2C bus and LPI2C controller are idle.; true (1) = I2cIdle: Sets when I2C bus is idle.
Sourcepub const fn set_matcfg(&mut self, val: Matcfg)
pub const fn set_matcfg(&mut self, val: Matcfg)
Match Configuration.
Sourcepub const fn set_pincfg(&mut self, val: Pincfg)
pub const fn set_pincfg(&mut self, val: Pincfg)
Pin Configuration.