Type Alias atsame54n::tc0::count16::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 on Counter

source

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

Bits 5:7 - 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