Type Alias BitWriter1C

Source
pub type BitWriter1C<'a, REG, FI = bool> = BitWriter<'a, REG, FI, Bit1C>;
Expand description

Bit-wise write field proxy

Aliased Type§

struct BitWriter1C<'a, REG, FI = bool> { /* private fields */ }

Implementations§

Source§

impl<'a, REG, FI> BitWriter1C<'a, REG, FI>
where REG: Writable + RegisterSpec, bool: From<FI>,

Source

pub const WIDTH: u8 = 1u8

Field width

Source

pub const fn width(&self) -> u8

Field width

Source

pub const fn offset(&self) -> u8

Field offset

Source

pub fn bit(self, value: bool) -> &'a mut W<REG>

Writes bit to the field

Source

pub fn variant(self, variant: FI) -> &'a mut W<REG>

Writes variant to the field

Source§

impl<'a, REG, FI> BitWriter1C<'a, REG, FI>
where REG: Writable + RegisterSpec, bool: From<FI>,

Source

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

Clears the field bit by passing one