Struct Ccr
#[repr(transparent)]pub struct Ccr(pub u32);Expand description
Common control register. On single-ADC devices (STM32F301/F302x6-8/F318, WB, H503) and STM32H5 ADC3_COMMON the dual-mode fields (DUAL, DELAY, DMACFG, MDMA) are reserved.
Tuple Fields§
§0: u32Implementations§
§impl Ccr
impl Ccr
pub const fn set_dmacfg(&mut self, val: Dmacfg)
pub const fn set_dmacfg(&mut self, val: Dmacfg)
Direct memory access configuration for dual ADC mode
pub const fn set_ckmode(&mut self, val: Ckmode)
pub const fn set_ckmode(&mut self, val: Ckmode)
ADC clock mode
pub const fn presc(&self) -> Presc
pub const fn presc(&self) -> Presc
ADC prescaler (asynchronous clock only). Not on STM32F3, whose ADC prescaler is in RCC.
pub const fn set_presc(&mut self, val: Presc)
pub const fn set_presc(&mut self, val: Presc)
ADC prescaler (asynchronous clock only). Not on STM32F3, whose ADC prescaler is in RCC.
pub const fn set_vrefen(&mut self, val: bool)
pub const fn set_vrefen(&mut self, val: bool)
VREFINT enable
pub const fn tsen(&self) -> bool
pub const fn tsen(&self) -> bool
Temperature sensor enable (CH17SEL on L4/L5/WB, VSENSESEL on G4 in the RM)
pub const fn set_tsen(&mut self, val: bool)
pub const fn set_tsen(&mut self, val: bool)
Temperature sensor enable (CH17SEL on L4/L5/WB, VSENSESEL on G4 in the RM)
pub const fn set_vbaten(&mut self, val: bool)
pub const fn set_vbaten(&mut self, val: bool)
VBAT enable (CH18SEL on L4/L5/WB, VBATSEL on G4 in the RM)
Trait Implementations§
impl Copy for Ccr
impl Eq for Ccr
impl StructuralPartialEq for Ccr
Auto Trait Implementations§
impl Freeze for Ccr
impl RefUnwindSafe for Ccr
impl Send for Ccr
impl Sync for Ccr
impl Unpin for Ccr
impl UnsafeUnpin for Ccr
impl UnwindSafe for Ccr
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