Struct stm32_metapac::i3c::regs::Timingr0
#[repr(transparent)]pub struct Timingr0(pub u32);
Expand description
I3C timing register 0.
Tuple Fields§
§0: u32
Implementations§
§impl Timingr0
impl Timingr0
pub const fn scll_pp(&self) -> u8
pub const fn scll_pp(&self) -> u8
SCL low duration in I3C push-pull phases, in number of kernel clocks cycles: tSCLL_PP = (SCLL_PP + 1) x tI3CCLK SCLL_PP is used to generate tLOW (I3C) timing.
pub fn set_scll_pp(&mut self, val: u8)
pub fn set_scll_pp(&mut self, val: u8)
SCL low duration in I3C push-pull phases, in number of kernel clocks cycles: tSCLL_PP = (SCLL_PP + 1) x tI3CCLK SCLL_PP is used to generate tLOW (I3C) timing.
pub const fn sclh_i3c(&self) -> u8
pub const fn sclh_i3c(&self) -> u8
SCL high duration, used for I3C messages (both in push-pull and open-drain phases), in number of kernel clocks cycles: tSCLH_I3C = (SCLH_I3C + 1) x tI3CCLK SCLH_I3C is used to generate both tHIGH (I3C) and tHIGH_MIXED timings.
pub fn set_sclh_i3c(&mut self, val: u8)
pub fn set_sclh_i3c(&mut self, val: u8)
SCL high duration, used for I3C messages (both in push-pull and open-drain phases), in number of kernel clocks cycles: tSCLH_I3C = (SCLH_I3C + 1) x tI3CCLK SCLH_I3C is used to generate both tHIGH (I3C) and tHIGH_MIXED timings.
pub const fn scll_od(&self) -> u8
pub const fn scll_od(&self) -> u8
SCL low duration in open-drain phases, used for legacy I2C commands and for I3C open-drain phases (address header phase following a START, not a Repeated START), in number of kernel clocks cycles: tSCLL_OD = (SCLL_OD + 1) x tI3CCLK SCLL_OD is used to generate both tLOW (I2C) and tLOW_OD timings (max. of the two).
pub fn set_scll_od(&mut self, val: u8)
pub fn set_scll_od(&mut self, val: u8)
SCL low duration in open-drain phases, used for legacy I2C commands and for I3C open-drain phases (address header phase following a START, not a Repeated START), in number of kernel clocks cycles: tSCLL_OD = (SCLL_OD + 1) x tI3CCLK SCLL_OD is used to generate both tLOW (I2C) and tLOW_OD timings (max. of the two).
pub const fn sclh_i2c(&self) -> u8
pub const fn sclh_i2c(&self) -> u8
SCL high duration, used for legacy I2C commands, in number of kernel clocks cycles: tSCLH_I2C = (SCLH_I2C + 1) x tI3CCLK SCLH_I2C is used to generate tHIGH (I2C) timing.
pub fn set_sclh_i2c(&mut self, val: u8)
pub fn set_sclh_i2c(&mut self, val: u8)
SCL high duration, used for legacy I2C commands, in number of kernel clocks cycles: tSCLH_I2C = (SCLH_I2C + 1) x tI3CCLK SCLH_I2C is used to generate tHIGH (I2C) timing.