Type Alias pac25::BitWriter

source ·
pub type BitWriter<'a, REG, const O: u8, FI = bool> = BitWriter<'a, REG, O, FI, BitM>;
Expand description

Bit-wise write field proxy

Aliased Type§

struct BitWriter<'a, REG, const O: u8, FI = bool> { /* private fields */ }

Implementations§

source§

impl<'a, REG, const OF: u8, FI> BitWriter<'a, REG, OF, FI>
where REG: Writable + RegisterSpec, bool: From<FI>,

source

pub const WIDTH: u8 = 1u8

Field width

source§

impl<'a, REG, const OF: u8, FI> BitWriter<'a, REG, OF, FI>
where REG: Writable + RegisterSpec, bool: From<FI>,

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, const OF: u8, FI> BitWriter<'a, REG, OF, FI>
where REG: Writable + RegisterSpec, bool: From<FI>,

source

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

Sets the field bit

source

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

Clears the field bit