#[repr(transparent)]pub struct Cfg(pub u32);Expand description
Configuration Register.
Tuple Fields§
§0: u32Implementations§
Source§impl Cfg
impl Cfg
Sourcepub const fn set_tprictrl(&mut self, val: Tprictrl)
pub const fn set_tprictrl(&mut self, val: Tprictrl)
ADC Trigger Priority Control.
Sourcepub const fn pwrsel(&self) -> bool
pub const fn pwrsel(&self) -> bool
Power Configuration Select. Raw bit values: false (0) = Lowest: Low power.; true (1) = Highest: High power.
Sourcepub const fn set_pwrsel(&mut self, val: bool)
pub const fn set_pwrsel(&mut self, val: bool)
Power Configuration Select. Raw bit values: false (0) = Lowest: Low power.; true (1) = Highest: High power.
Sourcepub const fn set_refsel(&mut self, val: Refsel)
pub const fn set_refsel(&mut self, val: Refsel)
Voltage Reference Selection.
Sourcepub const fn set_tcmdres(&mut self, val: bool)
pub const fn set_tcmdres(&mut self, val: bool)
Trigger Command Resume.
Sourcepub const fn hpt_exdi(&self) -> bool
pub const fn hpt_exdi(&self) -> bool
High Priority Trigger Exception Disable. Raw bit values: false (0) = Enabled: High priority trigger exceptions are enabled.; true (1) = Disabled: High priority trigger exceptions are disabled.
Sourcepub const fn set_hpt_exdi(&mut self, val: bool)
pub const fn set_hpt_exdi(&mut self, val: bool)
High Priority Trigger Exception Disable. Raw bit values: false (0) = Enabled: High priority trigger exceptions are enabled.; true (1) = Disabled: High priority trigger exceptions are disabled.
Trait Implementations§
impl Copy for Cfg
impl Eq for Cfg
impl StructuralPartialEq for Cfg
Auto Trait Implementations§
impl Freeze for Cfg
impl RefUnwindSafe for Cfg
impl Send for Cfg
impl Sync for Cfg
impl Unpin for Cfg
impl UnwindSafe for Cfg
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