Struct stm32_metapac::rtc::regs::Smcr
#[repr(transparent)]pub struct Smcr(pub u32);
Expand description
RTC secure mode control register
Tuple Fields§
§0: u32
Implementations§
§impl Smcr
impl Smcr
pub fn set_alrdprot(&mut self, n: usize, val: bool)
pub fn set_alrdprot(&mut self, n: usize, val: bool)
Alarm x protection
pub fn set_wutdprot(&mut self, val: bool)
pub fn set_wutdprot(&mut self, val: bool)
Wakeup timer protection
pub fn set_tsdprot(&mut self, val: bool)
pub fn set_tsdprot(&mut self, val: bool)
Timestamp protection
pub const fn caldprot(&self) -> bool
pub const fn caldprot(&self) -> bool
Shift register, daylight saving, calibration and reference clock protection
pub fn set_caldprot(&mut self, val: bool)
pub fn set_caldprot(&mut self, val: bool)
Shift register, daylight saving, calibration and reference clock protection
pub fn set_initdprot(&mut self, val: bool)
pub fn set_initdprot(&mut self, val: bool)
Initialization protection
pub fn set_decprot(&mut self, val: bool)
pub fn set_decprot(&mut self, val: bool)
RTC global protection
Trait Implementations§
impl Copy for Smcr
impl Eq for Smcr
impl StructuralPartialEq for Smcr
Auto Trait Implementations§
impl Freeze for Smcr
impl RefUnwindSafe for Smcr
impl Send for Smcr
impl Sync for Smcr
impl Unpin for Smcr
impl UnwindSafe for Smcr
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
)