Struct stm32_metapac::adc::regs::Tr2
#[repr(transparent)]pub struct Tr2(pub u32);
Expand description
watchdog threshold register 2
Tuple Fields§
§0: u32
Implementations§
§impl Tr2
impl Tr2
pub const fn lt2(&self) -> u8
pub const fn lt2(&self) -> u8
Analog watchdog 2 lower threshold These bits are written by software to define the lower threshold for the analog watchdog 2. Refer to AWD2CH, AWD3CH, AWD_HTx, AWD_LTx, AWDx) Note: The software is allowed to write these bits only when ADSTART = 0 and JADSTART = 0 (which ensures that no conversion is ongoing).
pub fn set_lt2(&mut self, val: u8)
pub fn set_lt2(&mut self, val: u8)
Analog watchdog 2 lower threshold These bits are written by software to define the lower threshold for the analog watchdog 2. Refer to AWD2CH, AWD3CH, AWD_HTx, AWD_LTx, AWDx) Note: The software is allowed to write these bits only when ADSTART = 0 and JADSTART = 0 (which ensures that no conversion is ongoing).
pub const fn ht2(&self) -> u8
pub const fn ht2(&self) -> u8
Analog watchdog 2 higher threshold These bits are written by software to define the higher threshold for the analog watchdog 2. Refer to AWD2CH, AWD3CH, AWD_HTx, AWD_LTx, AWDx) Note: The software is allowed to write these bits only when ADSTART = 0 and JADSTART = 0 (which ensures that no conversion is ongoing).
pub fn set_ht2(&mut self, val: u8)
pub fn set_ht2(&mut self, val: u8)
Analog watchdog 2 higher threshold These bits are written by software to define the higher threshold for the analog watchdog 2. Refer to AWD2CH, AWD3CH, AWD_HTx, AWD_LTx, AWDx) Note: The software is allowed to write these bits only when ADSTART = 0 and JADSTART = 0 (which ensures that no conversion is ongoing).