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.
Trait Implementations§
impl Copy for Apbsmenr2
impl Eq for Apbsmenr2
impl StructuralPartialEq for Apbsmenr2
Auto Trait Implementations§
impl Freeze for Apbsmenr2
impl RefUnwindSafe for Apbsmenr2
impl Send for Apbsmenr2
impl Sync for Apbsmenr2
impl Unpin for Apbsmenr2
impl UnwindSafe for Apbsmenr2
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
)