Type Alias atsame54n::ccl::lutctrl::W

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

Register LUTCTRL[%s] writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn enable(&mut self) -> ENABLE_W<'_, LUTCTRL_SPEC, 1>

Bit 1 - LUT Enable

source

pub fn filtsel(&mut self) -> FILTSEL_W<'_, LUTCTRL_SPEC, 4>

Bits 4:5 - Filter Selection

source

pub fn edgesel(&mut self) -> EDGESEL_W<'_, LUTCTRL_SPEC, 7>

Bit 7 - Edge Selection

source

pub fn insel0(&mut self) -> INSEL0_W<'_, LUTCTRL_SPEC, 8>

Bits 8:11 - Input Selection 0

source

pub fn insel1(&mut self) -> INSEL1_W<'_, LUTCTRL_SPEC, 12>

Bits 12:15 - Input Selection 1

source

pub fn insel2(&mut self) -> INSEL2_W<'_, LUTCTRL_SPEC, 16>

Bits 16:19 - Input Selection 2

source

pub fn invei(&mut self) -> INVEI_W<'_, LUTCTRL_SPEC, 20>

Bit 20 - Inverted Event Input Enable

source

pub fn lutei(&mut self) -> LUTEI_W<'_, LUTCTRL_SPEC, 21>

Bit 21 - LUT Event Input Enable

source

pub fn luteo(&mut self) -> LUTEO_W<'_, LUTCTRL_SPEC, 22>

Bit 22 - LUT Event Output Enable

source

pub fn truth(&mut self) -> TRUTH_W<'_, LUTCTRL_SPEC, 24>

Bits 24:31 - Truth Value

source

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

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual