Type Alias atsame54n::pdec::intflag::W

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

Register INTFLAG writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

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

Bit 0 - Overflow/Underflow

source

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

Bit 1 - Error

source

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

Bit 2 - Direction Change

source

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

Bit 3 - Velocity

source

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

Bit 4 - Channel 0 Compare Match

source

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

Bit 5 - Channel 1 Compare Match

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