Struct stm32_metapac::rcc::regs::Apb2smenr
#[repr(transparent)]pub struct Apb2smenr(pub u32);
Expand description
APB2 peripheral clocks enable in Sleep mode register
Tuple Fields§
§0: u32
Implementations§
§impl Apb2smenr
impl Apb2smenr
pub fn set_adcsmen(&mut self, val: bool)
pub fn set_adcsmen(&mut self, val: bool)
ADC clocks enable during CPU1 Csleep and CStop modes
pub fn set_tim1smen(&mut self, val: bool)
pub fn set_tim1smen(&mut self, val: bool)
TIM1 timer clock enable during CPU1 CSleep mode.
pub fn set_spi1smen(&mut self, val: bool)
pub fn set_spi1smen(&mut self, val: bool)
SPI1 clock enable during CPU1 CSleep mode.
pub const fn usart1smen(&self) -> bool
pub const fn usart1smen(&self) -> bool
USART1 clock enable during CPU1 Csleep and CStop modes.
pub fn set_usart1smen(&mut self, val: bool)
pub fn set_usart1smen(&mut self, val: bool)
USART1 clock enable during CPU1 Csleep and CStop modes.
pub fn set_tim16smen(&mut self, val: bool)
pub fn set_tim16smen(&mut self, val: bool)
TIM16 timer clock enable during CPU1 CSleep mode.
pub fn set_tim17smen(&mut self, val: bool)
pub fn set_tim17smen(&mut self, val: bool)
TIM17 timer clock enable during CPU1 CSleep mode.
Trait Implementations§
impl Copy for Apb2smenr
impl Eq for Apb2smenr
impl StructuralPartialEq for Apb2smenr
Auto Trait Implementations§
impl Freeze for Apb2smenr
impl RefUnwindSafe for Apb2smenr
impl Send for Apb2smenr
impl Sync for Apb2smenr
impl Unpin for Apb2smenr
impl UnwindSafe for Apb2smenr
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
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)