Type Alias atsamd51n::ac::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 compeo0(&mut self) -> COMPEO0_W<'_, EVCTRL_SPEC, 0>

Bit 0 - Comparator 0 Event Output Enable

source

pub fn compeo1(&mut self) -> COMPEO1_W<'_, EVCTRL_SPEC, 1>

Bit 1 - Comparator 1 Event Output Enable

source

pub fn wineo0(&mut self) -> WINEO0_W<'_, EVCTRL_SPEC, 4>

Bit 4 - Window 0 Event Output Enable

source

pub fn compei0(&mut self) -> COMPEI0_W<'_, EVCTRL_SPEC, 8>

Bit 8 - Comparator 0 Event Input Enable

source

pub fn compei1(&mut self) -> COMPEI1_W<'_, EVCTRL_SPEC, 9>

Bit 9 - Comparator 1 Event Input Enable

source

pub fn invei0(&mut self) -> INVEI0_W<'_, EVCTRL_SPEC, 12>

Bit 12 - Comparator 0 Input Event Invert Enable

source

pub fn invei1(&mut self) -> INVEI1_W<'_, EVCTRL_SPEC, 13>

Bit 13 - Comparator 1 Input Event Invert 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