Type Alias atsame54n::tcc0::ctrlbset::W

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

Register CTRLBSET writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn dir(&mut self) -> DIR_W<'_, CTRLBSET_SPEC, 0>

Bit 0 - Counter Direction

source

pub fn lupd(&mut self) -> LUPD_W<'_, CTRLBSET_SPEC, 1>

Bit 1 - Lock Update

source

pub fn oneshot(&mut self) -> ONESHOT_W<'_, CTRLBSET_SPEC, 2>

Bit 2 - One-Shot

source

pub fn idxcmd(&mut self) -> IDXCMD_W<'_, CTRLBSET_SPEC, 3>

Bits 3:4 - Ramp Index Command

source

pub fn cmd(&mut self) -> CMD_W<'_, CTRLBSET_SPEC, 5>

Bits 5:7 - TCC Command

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