Type Alias d1_pac::generic::BitWriter0S

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

Bit-wise write field proxy

Aliased Type§

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

Implementations§

source§

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

source

pub const WIDTH: u8 = 1u8

Field width

source§

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

source

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

Sets the field bit by passing zero