Type Alias atsame54n::rtc::mode2::ctrla::MODE_W

source ·
pub type MODE_W<'a, REG, const O: u8> = FieldWriter<'a, REG, 2, O, MODESELECT_A>;
Expand description

Field MODE writer - Operating Mode

Aliased Type§

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

Implementations§

source§

impl<'a, REG, const O: u8> MODE_W<'a, REG, O>
where REG: Writable + RegisterSpec, REG::Ux: From<u8>,

source

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

Mode 0: 32-bit Counter

source

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

Mode 1: 16-bit Counter

source

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

Mode 2: Clock/Calendar