Type Alias atsame54n::pdec::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:1 - Event Action

source

pub fn evinv(&mut self) -> EVINV_W<'_, EVCTRL_SPEC, 2>

Bits 2:4 - Inverted Event Input Enable

source

pub fn evei(&mut self) -> EVEI_W<'_, EVCTRL_SPEC, 5>

Bits 5:7 - Event Input Enable

source

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

Bit 8 - Overflow/Underflow Output Event Enable

source

pub fn erreo(&mut self) -> ERREO_W<'_, EVCTRL_SPEC, 9>

Bit 9 - Error Output Event Enable

source

pub fn direo(&mut self) -> DIREO_W<'_, EVCTRL_SPEC, 10>

Bit 10 - Direction Output Event Enable

source

pub fn vlceo(&mut self) -> VLCEO_W<'_, EVCTRL_SPEC, 11>

Bit 11 - Velocity Output Event Enable

source

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

Bit 12 - Match Channel 0 Event Output Enable

source

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

Bit 13 - Match Channel 1 Event Output Enable

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