Struct Pwr
#[repr(transparent)]pub struct Pwr(pub u32);
Expand description
ADC Power register.
Tuple Fields§
§0: u32
Implementations§
§impl Pwr
impl Pwr
pub const fn autoff(&self) -> bool
pub const fn autoff(&self) -> bool
Auto-off mode bit This bit is set and cleared by software. it is used to enable/disable the Auto-off mode. Note: The software is allowed to write this bit only when ADEN bit is cleared to 0 (this ensures that no conversion is ongoing).
pub fn set_autoff(&mut self, val: bool)
pub fn set_autoff(&mut self, val: bool)
Auto-off mode bit This bit is set and cleared by software. it is used to enable/disable the Auto-off mode. Note: The software is allowed to write this bit only when ADEN bit is cleared to 0 (this ensures that no conversion is ongoing).
pub const fn dpd(&self) -> bool
pub const fn dpd(&self) -> bool
Deep-power-down mode bit This bit is set and cleared by software. It is used to enable/disable Deep-power-down mode in Autonomous mode when the ADC is not used. Note: The software is allowed to write this bit only when ADEN bit is cleared to 0 (this ensures that no conversion is ongoing). Note: Setting DPD in Auto-off mode automatically disables the LDO.
pub fn set_dpd(&mut self, val: bool)
pub fn set_dpd(&mut self, val: bool)
Deep-power-down mode bit This bit is set and cleared by software. It is used to enable/disable Deep-power-down mode in Autonomous mode when the ADC is not used. Note: The software is allowed to write this bit only when ADEN bit is cleared to 0 (this ensures that no conversion is ongoing). Note: Setting DPD in Auto-off mode automatically disables the LDO.