Struct stm32_metapac::adc::regs::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.
Trait Implementations§
impl Copy for Pwr
impl Eq for Pwr
impl StructuralPartialEq for Pwr
Auto Trait Implementations§
impl Freeze for Pwr
impl RefUnwindSafe for Pwr
impl Send for Pwr
impl Sync for Pwr
impl Unpin for Pwr
impl UnwindSafe for Pwr
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
)