Struct stm32_metapac::rcc::regs::Apb2smenr
#[repr(transparent)]pub struct Apb2smenr(pub u32);
Expand description
APB2 peripheral clock enable in sleep mode register
Tuple Fields§
§0: u32
Implementations§
§impl Apb2smenr
impl Apb2smenr
pub const fn syscfgsmen(&self) -> bool
pub const fn syscfgsmen(&self) -> bool
System configuration controller clock enable during sleep mode
pub fn set_syscfgsmen(&mut self, val: bool)
pub fn set_syscfgsmen(&mut self, val: bool)
System configuration controller clock enable during sleep mode
pub fn set_tim21smen(&mut self, val: bool)
pub fn set_tim21smen(&mut self, val: bool)
TIM21 timer clock enable during sleep mode
pub fn set_tim22smen(&mut self, val: bool)
pub fn set_tim22smen(&mut self, val: bool)
TIM22 timer clock enable during sleep mode
pub fn set_adcsmen(&mut self, val: bool)
pub fn set_adcsmen(&mut self, val: bool)
ADC clock enable during sleep mode
pub fn set_spi1smen(&mut self, val: bool)
pub fn set_spi1smen(&mut self, val: bool)
SPI1 clock enable during sleep mode
pub const fn usart1smen(&self) -> bool
pub const fn usart1smen(&self) -> bool
USART1 clock enable during sleep mode
pub fn set_usart1smen(&mut self, val: bool)
pub fn set_usart1smen(&mut self, val: bool)
USART1 clock enable during sleep mode
pub fn set_dbgsmen(&mut self, val: bool)
pub fn set_dbgsmen(&mut self, val: bool)
DBG clock enable during sleep 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
)