Type Alias atsame51j::pdec::status::W

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

Register STATUS writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn qerr(&mut self) -> QERR_W<'_, STATUS_SPEC, 0>

Bit 0 - Quadrature Error Flag

source

pub fn idxerr(&mut self) -> IDXERR_W<'_, STATUS_SPEC, 1>

Bit 1 - Index Error Flag

source

pub fn mperr(&mut self) -> MPERR_W<'_, STATUS_SPEC, 2>

Bit 2 - Missing Pulse Error flag

source

pub fn winerr(&mut self) -> WINERR_W<'_, STATUS_SPEC, 4>

Bit 4 - Window Error Flag

source

pub fn herr(&mut self) -> HERR_W<'_, STATUS_SPEC, 5>

Bit 5 - Hall Error Flag

source

pub fn stop(&mut self) -> STOP_W<'_, STATUS_SPEC, 6>

Bit 6 - Stop

source

pub fn dir(&mut self) -> DIR_W<'_, STATUS_SPEC, 7>

Bit 7 - Direction Status Flag

source

pub fn prescbufv(&mut self) -> PRESCBUFV_W<'_, STATUS_SPEC, 8>

Bit 8 - Prescaler Buffer Valid

source

pub fn filterbufv(&mut self) -> FILTERBUFV_W<'_, STATUS_SPEC, 9>

Bit 9 - Filter Buffer Valid

source

pub fn ccbufv0(&mut self) -> CCBUFV0_W<'_, STATUS_SPEC, 12>

Bit 12 - Compare Channel 0 Buffer Valid

source

pub fn ccbufv1(&mut self) -> CCBUFV1_W<'_, STATUS_SPEC, 13>

Bit 13 - Compare Channel 1 Buffer Valid

source

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

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual