Type Alias d1_pac::generic::FieldWriterSafe

source ·
pub type FieldWriterSafe<'a, U, REG, N, FI, const WI: u8, const O: u8> = FieldWriterRaw<'a, U, REG, N, FI, Safe, WI, O>;
Expand description

Write field Proxy with safe bits

Aliased Type§

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

Implementations§

source§

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

source

pub const WIDTH: u8 = WI

Field width

source§

impl<'a, U, REG, N, FI, const WI: u8, const OF: u8> FieldWriterSafe<'a, U, REG, N, FI, WI, OF>
where REG: Writable + RegisterSpec<Ux = U>, U: RawReg + From<N>, N: From<FI>,

source

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

Writes raw bits to the field

source

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

Writes variant to the field