atsamd21g::i2s::serctrl

Type Alias ExtendW

Source
pub type ExtendW<'a, REG> = FieldWriter<'a, REG, 2, Extendselect, Safe>;
Expand description

Field EXTEND writer - Data Formatting Bit Extension

Aliased Type§

struct ExtendW<'a, REG> { /* private fields */ }

Implementations§

Source§

impl<'a, REG> ExtendW<'a, REG>
where REG: Writable + RegisterSpec, REG::Ux: From<u8>,

Source

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

Extend with zeroes

Source

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

Extend with ones

Source

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

Extend with Most Significant Bit

Source

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

Extend with Least Significant Bit