Type Alias atsamd51p::tc0::count16::evctrl::W

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

Register EVCTRL writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn evact(&mut self) -> EVACT_W<'_, EVCTRL_SPEC, 0>

Bits 0:2 - Event Action

source

pub fn tcinv(&mut self) -> TCINV_W<'_, EVCTRL_SPEC, 4>

Bit 4 - TC Event Input Polarity

source

pub fn tcei(&mut self) -> TCEI_W<'_, EVCTRL_SPEC, 5>

Bit 5 - TC Event Enable

source

pub fn ovfeo(&mut self) -> OVFEO_W<'_, EVCTRL_SPEC, 8>

Bit 8 - Event Output Enable

source

pub fn mceo0(&mut self) -> MCEO0_W<'_, EVCTRL_SPEC, 12>

Bit 12 - MC Event Output Enable 0

source

pub fn mceo1(&mut self) -> MCEO1_W<'_, EVCTRL_SPEC, 13>

Bit 13 - MC Event Output Enable 1

source

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

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual