Type Alias atsame54n::wdt::ctrla::W

source ·
pub type W = W<CTRLA_SPEC>;
Expand description

Register CTRLA writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn enable(&mut self) -> ENABLE_W<'_, CTRLA_SPEC, 1>

Bit 1 - Enable

source

pub fn wen(&mut self) -> WEN_W<'_, CTRLA_SPEC, 2>

Bit 2 - Watchdog Timer Window Mode Enable

source

pub fn alwayson(&mut self) -> ALWAYSON_W<'_, CTRLA_SPEC, 7>

Bit 7 - Always-On

source

pub unsafe fn bits(&mut self, bits: u8) -> &mut Self

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual