Type Alias atsamd51j::port::group::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 pid0(&mut self) -> PID0_W<'_, EVCTRL_SPEC, 0>

Bits 0:4 - PORT Event Pin Identifier 0

source

pub fn evact0(&mut self) -> EVACT0_W<'_, EVCTRL_SPEC, 5>

Bits 5:6 - PORT Event Action 0

source

pub fn portei0(&mut self) -> PORTEI0_W<'_, EVCTRL_SPEC, 7>

Bit 7 - PORT Event Input Enable 0

source

pub fn pid1(&mut self) -> PID1_W<'_, EVCTRL_SPEC, 8>

Bits 8:12 - PORT Event Pin Identifier 1

source

pub fn evact1(&mut self) -> EVACT1_W<'_, EVCTRL_SPEC, 13>

Bits 13:14 - PORT Event Action 1

source

pub fn portei1(&mut self) -> PORTEI1_W<'_, EVCTRL_SPEC, 15>

Bit 15 - PORT Event Input Enable 1

source

pub fn pid2(&mut self) -> PID2_W<'_, EVCTRL_SPEC, 16>

Bits 16:20 - PORT Event Pin Identifier 2

source

pub fn evact2(&mut self) -> EVACT2_W<'_, EVCTRL_SPEC, 21>

Bits 21:22 - PORT Event Action 2

source

pub fn portei2(&mut self) -> PORTEI2_W<'_, EVCTRL_SPEC, 23>

Bit 23 - PORT Event Input Enable 2

source

pub fn pid3(&mut self) -> PID3_W<'_, EVCTRL_SPEC, 24>

Bits 24:28 - PORT Event Pin Identifier 3

source

pub fn evact3(&mut self) -> EVACT3_W<'_, EVCTRL_SPEC, 29>

Bits 29:30 - PORT Event Action 3

source

pub fn portei3(&mut self) -> PORTEI3_W<'_, EVCTRL_SPEC, 31>

Bit 31 - PORT Event Input Enable 3

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