Type Definition ht32f1yyy::FieldWriterSafe

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

Write field Proxy with safe bits

Implementations§

source§

impl<'a, REG, const WI: u8, const OF: u8, FI> FieldWriterSafe<'a, REG, WI, OF, FI>where REG: Writable + RegisterSpec, FI: FieldSpec,

source

pub const WIDTH: u8 = WI

Field width

source§

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

source

pub fn bits(self, value: FI::Ux) -> &'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