Struct Awd3cr
#[repr(transparent)]pub struct Awd3cr(pub u32);
Expand description
ADC Analog Watchdog 3 Configuration register.
Tuple Fields§
§0: u32
Implementations§
§impl Awd3cr
impl Awd3cr
pub const fn awd3ch(&self, n: usize) -> bool
pub const fn awd3ch(&self, n: usize) -> bool
Analog watchdog channel selection These bits are set and cleared by software. They enable and select the input channels to be guarded by analog watchdog 3 (AWD3). Note: The channels selected through AWD3CR must be also configured into the ADC_CHSELR registers. Refer to SQ8[3:0] for a definition of channel selection. The software is allowed to write this bit only when ADSTART is cleared to 0 by writing ADSTP to 1 (which ensures that no conversion is ongoing).
pub fn set_awd3ch(&mut self, n: usize, val: bool)
pub fn set_awd3ch(&mut self, n: usize, val: bool)
Analog watchdog channel selection These bits are set and cleared by software. They enable and select the input channels to be guarded by analog watchdog 3 (AWD3). Note: The channels selected through AWD3CR must be also configured into the ADC_CHSELR registers. Refer to SQ8[3:0] for a definition of channel selection. The software is allowed to write this bit only when ADSTART is cleared to 0 by writing ADSTP to 1 (which ensures that no conversion is ongoing).