Struct stm32_metapac::rtc::regs::Alrmssr
#[repr(transparent)]pub struct Alrmssr(pub u32);
Expand description
Alarm sub second register
Tuple Fields§
§0: u32
Implementations§
§impl Alrmssr
impl Alrmssr
pub const fn ss(&self) -> u16
pub const fn ss(&self) -> u16
Subseconds value. This value is compared with the contents of the synchronous prescaler counter to determine if alarm is to be activated. Only bits 0 up MASKSS-1 are compared. This field is the mirror of SS[14:0] in the ALRBINR, and so can also be read or written through ALRBINR.
pub fn set_ss(&mut self, val: u16)
pub fn set_ss(&mut self, val: u16)
Subseconds value. This value is compared with the contents of the synchronous prescaler counter to determine if alarm is to be activated. Only bits 0 up MASKSS-1 are compared. This field is the mirror of SS[14:0] in the ALRBINR, and so can also be read or written through ALRBINR.
pub const fn maskss(&self) -> u8
pub const fn maskss(&self) -> u8
Mask the most-significant bits starting at this bit … From 32 to 63: All 32 SS bits are compared and must match to activate alarm. Note: In BCD mode (BIN=00) the overflow bits of the synchronous counter (bits 31:15) are never compared. These bits can be different from 0 only after a shift operation.
pub fn set_maskss(&mut self, val: u8)
pub fn set_maskss(&mut self, val: u8)
Mask the most-significant bits starting at this bit … From 32 to 63: All 32 SS bits are compared and must match to activate alarm. Note: In BCD mode (BIN=00) the overflow bits of the synchronous counter (bits 31:15) are never compared. These bits can be different from 0 only after a shift operation.
pub const fn ssclr(&self) -> AlrmssrSsclr
pub const fn ssclr(&self) -> AlrmssrSsclr
Clear synchronous counter on alarm (Binary mode only)
pub fn set_ssclr(&mut self, val: AlrmssrSsclr)
pub fn set_ssclr(&mut self, val: AlrmssrSsclr)
Clear synchronous counter on alarm (Binary mode only)
Trait Implementations§
impl Copy for Alrmssr
impl Eq for Alrmssr
impl StructuralPartialEq for Alrmssr
Auto Trait Implementations§
impl Freeze for Alrmssr
impl RefUnwindSafe for Alrmssr
impl Send for Alrmssr
impl Sync for Alrmssr
impl Unpin for Alrmssr
impl UnwindSafe for Alrmssr
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
)