Struct Cfgr
#[repr(transparent)]pub struct Cfgr(pub u32);Expand description
ADC configuration register.
Tuple Fields§
§0: u32Implementations§
§impl Cfgr
impl Cfgr
pub fn set_extsel(&mut self, val: u8)
pub fn set_extsel(&mut self, val: u8)
External trigger selection for regular group.
pub const fn exten(&self) -> Exten
pub const fn exten(&self) -> Exten
External trigger enable and polarity selection for regular channels.
pub fn set_exten(&mut self, val: Exten)
pub fn set_exten(&mut self, val: Exten)
External trigger enable and polarity selection for regular channels.
pub fn set_ovrmod(&mut self, val: bool)
pub fn set_ovrmod(&mut self, val: bool)
Overrun mode.
pub fn set_autdly(&mut self, val: bool)
pub fn set_autdly(&mut self, val: bool)
Delayed conversion mode.
pub fn set_discen(&mut self, val: bool)
pub fn set_discen(&mut self, val: bool)
Discontinuous mode for regular channels.
pub fn set_discnum(&mut self, val: u8)
pub fn set_discnum(&mut self, val: u8)
Discontinuous mode channel count.
pub fn set_jdiscen(&mut self, val: bool)
pub fn set_jdiscen(&mut self, val: bool)
Discontinuous mode on injected channels.
pub fn set_awd1sgl(&mut self, val: bool)
pub fn set_awd1sgl(&mut self, val: bool)
Enable the watchdog 1 on a single channel or on all channels.
pub fn set_awd1en(&mut self, val: bool)
pub fn set_awd1en(&mut self, val: bool)
Analog watchdog 1 enable on regular channels.
pub fn set_jawd1en(&mut self, val: bool)
pub fn set_jawd1en(&mut self, val: bool)
Analog watchdog 1 enable on injected channels.
pub fn set_awd1ch(&mut self, val: u8)
pub fn set_awd1ch(&mut self, val: u8)
Analog watchdog 1 channel selection.
Trait Implementations§
impl Copy for Cfgr
impl Eq for Cfgr
impl StructuralPartialEq for Cfgr
Auto Trait Implementations§
impl Freeze for Cfgr
impl RefUnwindSafe for Cfgr
impl Send for Cfgr
impl Sync for Cfgr
impl Unpin for Cfgr
impl UnwindSafe for Cfgr
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