Type Alias atsame54n::rtc::mode2::tampctrl::W

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

Register TAMPCTRL writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn in0act(&mut self) -> IN0ACT_W<'_, TAMPCTRL_SPEC, 0>

Bits 0:1 - Tamper Input 0 Action

source

pub fn in1act(&mut self) -> IN1ACT_W<'_, TAMPCTRL_SPEC, 2>

Bits 2:3 - Tamper Input 1 Action

source

pub fn in2act(&mut self) -> IN2ACT_W<'_, TAMPCTRL_SPEC, 4>

Bits 4:5 - Tamper Input 2 Action

source

pub fn in3act(&mut self) -> IN3ACT_W<'_, TAMPCTRL_SPEC, 6>

Bits 6:7 - Tamper Input 3 Action

source

pub fn in4act(&mut self) -> IN4ACT_W<'_, TAMPCTRL_SPEC, 8>

Bits 8:9 - Tamper Input 4 Action

source

pub fn tamlvl0(&mut self) -> TAMLVL0_W<'_, TAMPCTRL_SPEC, 16>

Bit 16 - Tamper Level Select 0

source

pub fn tamlvl1(&mut self) -> TAMLVL1_W<'_, TAMPCTRL_SPEC, 17>

Bit 17 - Tamper Level Select 1

source

pub fn tamlvl2(&mut self) -> TAMLVL2_W<'_, TAMPCTRL_SPEC, 18>

Bit 18 - Tamper Level Select 2

source

pub fn tamlvl3(&mut self) -> TAMLVL3_W<'_, TAMPCTRL_SPEC, 19>

Bit 19 - Tamper Level Select 3

source

pub fn tamlvl4(&mut self) -> TAMLVL4_W<'_, TAMPCTRL_SPEC, 20>

Bit 20 - Tamper Level Select 4

source

pub fn debnc0(&mut self) -> DEBNC0_W<'_, TAMPCTRL_SPEC, 24>

Bit 24 - Debouncer Enable 0

source

pub fn debnc1(&mut self) -> DEBNC1_W<'_, TAMPCTRL_SPEC, 25>

Bit 25 - Debouncer Enable 1

source

pub fn debnc2(&mut self) -> DEBNC2_W<'_, TAMPCTRL_SPEC, 26>

Bit 26 - Debouncer Enable 2

source

pub fn debnc3(&mut self) -> DEBNC3_W<'_, TAMPCTRL_SPEC, 27>

Bit 27 - Debouncer Enable 3

source

pub fn debnc4(&mut self) -> DEBNC4_W<'_, TAMPCTRL_SPEC, 28>

Bit 28 - Debouncer Enable 4

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