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