Struct stm32_metapac::rtc::regs::Wutr
#[repr(transparent)]pub struct Wutr(pub u32);
Expand description
Wakeup timer register
Tuple Fields§
§0: u32
Implementations§
§impl Wutr
impl Wutr
pub const fn wut(&self) -> u16
pub const fn wut(&self) -> u16
Wakeup auto-reload value bits. When the wakeup timer is enabled (WUTE set to 1), the WUTF flag is set every (WUT[15:0]
-
- ck_wut cycles. The ck_wut period is selected through WUCKSEL[2:0] bits of the CR register. When WUCKSEL[2] = 1, the wakeup timer becomes 17-bits and WUCKSEL[1] effectively becomes WUT[16] the most-significant bit to be reloaded into the timer. The first assertion of WUTF occurs between WUT and (WUT + 2) ck_wut cycles after WUTE is set. Setting WUT[15:0] to 0x0000 with WUCKSEL[2:0] = 011 (RTCCLK/2) is forbidden.
pub fn set_wut(&mut self, val: u16)
pub fn set_wut(&mut self, val: u16)
Wakeup auto-reload value bits. When the wakeup timer is enabled (WUTE set to 1), the WUTF flag is set every (WUT[15:0]
-
- ck_wut cycles. The ck_wut period is selected through WUCKSEL[2:0] bits of the CR register. When WUCKSEL[2] = 1, the wakeup timer becomes 17-bits and WUCKSEL[1] effectively becomes WUT[16] the most-significant bit to be reloaded into the timer. The first assertion of WUTF occurs between WUT and (WUT + 2) ck_wut cycles after WUTE is set. Setting WUT[15:0] to 0x0000 with WUCKSEL[2:0] = 011 (RTCCLK/2) is forbidden.
pub const fn wutoclr(&self) -> u16
pub const fn wutoclr(&self) -> u16
Wakeup auto-reload output clear value. When WUTOCLR[15:0] is different from 0x0000, WUTF is set by hardware when the auto-reload down-counter reaches 0 and is cleared by hardware when the auto-reload downcounter reaches WUTOCLR[15:0]. When WUTOCLR[15:0] = 0x0000, WUTF is set by hardware when the WUT down-counter reaches 0 and is cleared by software.
pub fn set_wutoclr(&mut self, val: u16)
pub fn set_wutoclr(&mut self, val: u16)
Wakeup auto-reload output clear value. When WUTOCLR[15:0] is different from 0x0000, WUTF is set by hardware when the auto-reload down-counter reaches 0 and is cleared by hardware when the auto-reload downcounter reaches WUTOCLR[15:0]. When WUTOCLR[15:0] = 0x0000, WUTF is set by hardware when the WUT down-counter reaches 0 and is cleared by software.
Trait Implementations§
impl Copy for Wutr
impl Eq for Wutr
impl StructuralPartialEq for Wutr
Auto Trait Implementations§
impl Freeze for Wutr
impl RefUnwindSafe for Wutr
impl Send for Wutr
impl Sync for Wutr
impl Unpin for Wutr
impl UnwindSafe for Wutr
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
)