Struct Ccr
#[repr(transparent)]pub struct Ccr(pub u32);Expand description
Common control register. On STM32H72x/H73x ADC3_COMMON only CKMODE, PRESC, VREFEN, TSEN and VBATEN exist.
Tuple Fields§
§0: u32Implementations§
§impl Ccr
impl Ccr
pub const fn set_ckmode(&mut self, val: Ckmode)
pub const fn set_ckmode(&mut self, val: Ckmode)
ADC clock mode (not on STM32U5/U3/C5/N6/G5/H7P)
pub const fn presc(&self) -> Presc
pub const fn presc(&self) -> Presc
ADC prescaler (asynchronous clock only). Not on STM32U3/C5/N6/G5/H7P.
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 STM32U3/C5/N6/G5/H7P.
pub const fn vrefen(&self) -> bool
pub const fn vrefen(&self) -> bool
VREFINT enable. Not in ADC12_COMMON of STM32H72x/H73x (only in ADC3_COMMON).
pub const fn set_vrefen(&mut self, val: bool)
pub const fn set_vrefen(&mut self, val: bool)
VREFINT enable. Not in ADC12_COMMON of STM32H72x/H73x (only in ADC3_COMMON).
pub const fn tsen(&self) -> bool
pub const fn tsen(&self) -> bool
Temperature sensor enable (VSENSESEL in RM0456). Not on STM32N6, and not in ADC12_COMMON of STM32H72x/H73x (only in ADC3_COMMON).
pub const fn set_tsen(&mut self, val: bool)
pub const fn set_tsen(&mut self, val: bool)
Temperature sensor enable (VSENSESEL in RM0456). Not on STM32N6, and not in ADC12_COMMON of STM32H72x/H73x (only in ADC3_COMMON).
pub const fn vbaten(&self) -> bool
pub const fn vbaten(&self) -> bool
VBAT enable. Not on STM32C5/G5, and not in ADC12_COMMON of STM32H72x/H73x (only in ADC3_COMMON).
pub const fn set_vbaten(&mut self, val: bool)
pub const fn set_vbaten(&mut self, val: bool)
VBAT enable. Not on STM32C5/G5, and not in ADC12_COMMON of STM32H72x/H73x (only in ADC3_COMMON).