Struct stm32_metapac::adc::regs::Awd2cr
#[repr(transparent)]pub struct Awd2cr(pub u32);
Expand description
ADC Analog Watchdog 2 Configuration register.
Tuple Fields§
§0: u32
Implementations§
§impl Awd2cr
impl Awd2cr
pub const fn awd2ch(&self, n: usize) -> bool
pub const fn awd2ch(&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 2 (AWD2). Note: The channels selected through AWD2CR 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_awd2ch(&mut self, n: usize, val: bool)
pub fn set_awd2ch(&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 2 (AWD2). Note: The channels selected through AWD2CR 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).
Trait Implementations§
impl Copy for Awd2cr
impl Eq for Awd2cr
impl StructuralPartialEq for Awd2cr
Auto Trait Implementations§
impl Freeze for Awd2cr
impl RefUnwindSafe for Awd2cr
impl Send for Awd2cr
impl Sync for Awd2cr
impl Unpin for Awd2cr
impl UnwindSafe for Awd2cr
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)