Type Alias gd32e1::gd32e103::fwdgt::ctl::CmdW

source ·
pub type CmdW<'a, REG> = FieldWriter<'a, REG, 16, Cmd>;
Expand description

Field CMD writer - Key value

Aliased Type§

struct CmdW<'a, REG> { /* private fields */ }

Implementations§

source§

impl<'a, REG> CmdW<'a, REG>
where REG: Writable + RegisterSpec, REG::Ux: From<u16>,

source

pub fn enable(self) -> &'a mut W<REG>

Enable access to PR, RLR and WINR registers (0x5555)

source

pub fn reset(self) -> &'a mut W<REG>

Reset the watchdog value (0xAAAA)

source

pub fn start(self) -> &'a mut W<REG>

Start the watchdog (0xCCCC)