Type Alias atsame54n::pdec::intenset::W

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

Register INTENSET writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn ovf(&mut self) -> OVF_W<'_, INTENSET_SPEC, 0>

Bit 0 - Overflow/Underflow Interrupt Enable

source

pub fn err(&mut self) -> ERR_W<'_, INTENSET_SPEC, 1>

Bit 1 - Error Interrupt Enable

source

pub fn dir(&mut self) -> DIR_W<'_, INTENSET_SPEC, 2>

Bit 2 - Direction Interrupt Enable

source

pub fn vlc(&mut self) -> VLC_W<'_, INTENSET_SPEC, 3>

Bit 3 - Velocity Interrupt Enable

source

pub fn mc0(&mut self) -> MC0_W<'_, INTENSET_SPEC, 4>

Bit 4 - Channel 0 Compare Match Enable

source

pub fn mc1(&mut self) -> MC1_W<'_, INTENSET_SPEC, 5>

Bit 5 - Channel 1 Compare Match Enable

source

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

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual