Type Alias atsamd51p::tcc0::evctrl::CNTSEL_W

source ·
pub type CNTSEL_W<'a, REG, const O: u8> = FieldWriterSafe<'a, REG, 2, O, CNTSELSELECT_A>;
Expand description

Field CNTSEL writer - Timer/counter Output Event Mode

Aliased Type§

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

Implementations§

source§

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

source

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

An interrupt/event is generated when a new counter cycle starts

source

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

An interrupt/event is generated when a counter cycle ends

source

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

An interrupt/event is generated when a counter cycle ends, except for the first and last cycles

source

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

An interrupt/event is generated when a new counter cycle starts or a counter cycle ends