Type Definition ht32f1yyy::BitWriter0S

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

Bit-wise write field proxy

Implementations§

source§

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

source

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

Writes bit to the field

source

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

Writes variant to the field

source§

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

source

pub fn set_bit_by_zero(self) -> &'a mut REG::Writer

Sets the field bit by passing zero