Type Alias rp2040_pac::generic::BitWriter1T

source ·
pub type BitWriter1T<'a, REG, FI = bool> = BitWriter<'a, REG, FI, Bit1T>;
Expand description

Bit-wise write field proxy

Aliased Type§

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

Implementations§

source§

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

source

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

Toggle the field bit by passing one