pub struct Ewm { /* private fields */ }Expand description
External watchdog monitor. Configure write-once registers before enabling.
Implementations§
Source§impl Ewm
impl Ewm
pub const unsafe fn from_ptr(ptr: *mut ()) -> Self
pub const fn as_ptr(&self) -> *mut ()
Sourcepub const fn ctrl(self) -> Reg<Ctrl, RW>
pub const fn ctrl(self) -> Reg<Ctrl, RW>
Control. Write EWMEN, ASSIN, and INEN only once after CPU reset; modifying them again generates a bus transfer error. INTEN remains writable. Configure compare bounds, clock and prescaler before enabling. Loss of BUS_CLK prevents output assertion and refresh.
Sourcepub const fn serv(self) -> Reg<Serv, RW>
pub const fn serv(self) -> Reg<Serv, RW>
Refresh by writing 0xB4 followed by 0x2C within 15 peripheral bus clocks, inside the compare window. Mask all interrupts before refreshing. Reads as zero. After Stop-mode interrupt recovery, the pending refresh resumes and the second byte is still required within 15 bus clocks.
Sourcepub const fn cmpl(self) -> Reg<Cmpl, RW>
pub const fn cmpl(self) -> Reg<Cmpl, RW>
Lower refresh-window bound. Write once after CPU reset, even when using zero, before enabling; a second write generates a bus transfer error. Must differ from CMPH. Request service after one period of the slowest clock when updating CMPL.
Sourcepub const fn cmph(self) -> Reg<Cmph, RW>
pub const fn cmph(self) -> Reg<Cmph, RW>
Upper refresh-window bound. Write once after CPU reset before enabling; a second write generates a bus transfer error. Must differ from CMPL. Values up to 0xFE permit expiration; the reset value 0xFF prevents expiration.
Sourcepub const fn clkctrl(self) -> Reg<Clkctrl, RW>
pub const fn clkctrl(self) -> Reg<Clkctrl, RW>
Select the low-power clock. Write once after CPU reset before enabling; a second write generates a bus transfer error. Only ordinal 0 is connected.
Sourcepub const fn clkprescaler(self) -> Reg<Clkprescaler, RW>
pub const fn clkprescaler(self) -> Reg<Clkprescaler, RW>
Divide the selected clock by CLK_DIV + 1. Write once after CPU reset before enabling; a second write generates a bus transfer error. The divided counter clock must not exceed half the bus clock frequency.