Struct stm32_metapac::adc::regs::Cr1
#[repr(transparent)]pub struct Cr1(pub u32);
Expand description
control register 1
Tuple Fields§
§0: u32
Implementations§
§impl Cr1
impl Cr1
pub fn set_jeocie(&mut self, val: bool)
pub fn set_jeocie(&mut self, val: bool)
Interrupt enable for injected channels
pub fn set_awdsgl(&mut self, val: bool)
pub fn set_awdsgl(&mut self, val: bool)
Enable the watchdog on a single channel in scan mode
pub fn set_discen(&mut self, val: bool)
pub fn set_discen(&mut self, val: bool)
Discontinuous mode on regular channels
pub fn set_jdiscen(&mut self, val: bool)
pub fn set_jdiscen(&mut self, val: bool)
Discontinuous mode on injected channels
pub fn set_discnum(&mut self, val: u8)
pub fn set_discnum(&mut self, val: u8)
Discontinuous mode channel count
pub fn set_dualmod(&mut self, val: Dualmod)
pub fn set_dualmod(&mut self, val: Dualmod)
Dual mode selection
pub fn set_jawden(&mut self, val: bool)
pub fn set_jawden(&mut self, val: bool)
Analog watchdog enable on injected channels
Trait Implementations§
impl Copy for Cr1
impl Eq for Cr1
impl StructuralPartialEq for Cr1
Auto Trait Implementations§
impl Freeze for Cr1
impl RefUnwindSafe for Cr1
impl Send for Cr1
impl Sync for Cr1
impl Unpin for Cr1
impl UnwindSafe for Cr1
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
Mutably borrows from an owned value. Read more