Type Alias nrf52840_pac::wdt::config::SLEEP_W

source ·
pub type SLEEP_W<'a, const O: u8> = BitWriter<'a, u32, CONFIG_SPEC, SLEEP_A, O>;
Expand description

Field SLEEP writer - Configure the watchdog to either be paused, or kept running, while the CPU is sleeping

Aliased Type§

struct SLEEP_W<'a, const O: u8> { /* private fields */ }

Implementations§

source§

impl<'a, const O: u8> SLEEP_W<'a, O>

source

pub fn pause(self) -> &'a mut W

Pause watchdog while the CPU is sleeping

source

pub fn run(self) -> &'a mut W

Keep the watchdog running while the CPU is sleeping