Type Alias atsame54n::tcc0::ctrlbset::IDXCMD_W

source ·
pub type IDXCMD_W<'a, REG, const O: u8> = FieldWriterSafe<'a, REG, 2, O, IDXCMDSELECT_A>;
Expand description

Field IDXCMD writer - Ramp Index Command

Aliased Type§

struct IDXCMD_W<'a, REG, const O: u8> { /* private fields */ }

Implementations§

source§

impl<'a, REG, const O: u8> IDXCMD_W<'a, REG, O>
where REG: Writable + RegisterSpec, REG::Ux: From<u8>,

source

pub fn disable(self) -> &'a mut W<REG>

Command disabled: Index toggles between cycles A and B

source

pub fn set(self) -> &'a mut W<REG>

Set index: cycle B will be forced in the next cycle

source

pub fn clear(self) -> &'a mut W<REG>

Clear index: cycle A will be forced in the next cycle

source

pub fn hold(self) -> &'a mut W<REG>

Hold index: the next cycle will be the same as the current cycle