Struct 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)