Type Alias nrf52840_pac::generic::BitWriter1C

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

Bit-wise write field proxy

Aliased Type§

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

Implementations§

source§

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

source

pub const WIDTH: u8 = 1u8

Field width

source

pub const OFFSET: u8 = OF

Field offset

source§

impl<'a, REG, FI, const OF: u8> BitWriter1C<'a, u32, REG, FI, OF>
where REG: Writable + RegisterSpec<Ux = u32>, FI: Into<bool>,

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, FI, const OF: u8> BitWriter1C<'a, u32, REG, FI, OF>
where REG: Writable + RegisterSpec<Ux = u32>, FI: Into<bool>,

source

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

Clears the field bit by passing one