Struct stm32_metapac::rcc::regs::Apbsmenr2
#[repr(transparent)]pub struct Apbsmenr2(pub u32);
Expand description
APB peripheral clock enable in Sleep/Stop mode register 2.
Tuple Fields§
§0: u32
Implementations§
§impl Apbsmenr2
impl Apbsmenr2
pub const fn syscfgsmen(&self) -> bool
pub const fn syscfgsmen(&self) -> bool
SYSCFG, COMP and VREFBUF clock enable during Sleep and Stop modes Set and cleared by software.
pub fn set_syscfgsmen(&mut self, val: bool)
pub fn set_syscfgsmen(&mut self, val: bool)
SYSCFG, COMP and VREFBUF clock enable during Sleep and Stop modes Set and cleared by software.
pub const fn tim1smen(&self) -> bool
pub const fn tim1smen(&self) -> bool
TIM1 timer clock enable during Sleep mode Set and cleared by software.
pub fn set_tim1smen(&mut self, val: bool)
pub fn set_tim1smen(&mut self, val: bool)
TIM1 timer clock enable during Sleep mode Set and cleared by software.
pub const fn spi1smen(&self) -> bool
pub const fn spi1smen(&self) -> bool
SPI1 clock enable during Sleep mode Set and cleared by software.
pub fn set_spi1smen(&mut self, val: bool)
pub fn set_spi1smen(&mut self, val: bool)
SPI1 clock enable during Sleep mode Set and cleared by software.
pub const fn usart1smen(&self) -> bool
pub const fn usart1smen(&self) -> bool
USART1 clock enable during Sleep and Stop modes Set and cleared by software.
pub fn set_usart1smen(&mut self, val: bool)
pub fn set_usart1smen(&mut self, val: bool)
USART1 clock enable during Sleep and Stop modes Set and cleared by software.
pub const fn tim15smen(&self) -> bool
pub const fn tim15smen(&self) -> bool
TIM15 timer clock enable during Sleep mode Set and cleared by software.
pub fn set_tim15smen(&mut self, val: bool)
pub fn set_tim15smen(&mut self, val: bool)
TIM15 timer clock enable during Sleep mode Set and cleared by software.
pub const fn tim16smen(&self) -> bool
pub const fn tim16smen(&self) -> bool
TIM16 timer clock enable during Sleep mode Set and cleared by software.
pub fn set_tim16smen(&mut self, val: bool)
pub fn set_tim16smen(&mut self, val: bool)
TIM16 timer clock enable during Sleep mode Set and cleared by software.
pub fn set_adcsmen(&mut self, val: bool)
pub fn set_adcsmen(&mut self, val: bool)
ADC clock enable during Sleep mode Set and cleared by software.