pub struct W(/* private fields */);
Expand description
Register CR
writer
Implementations§
Source§impl W
impl W
Sourcepub fn mer(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, MER_A, BitM, 2>
pub fn mer(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, MER_A, BitM, 2>
Bit 2 - Mass Erase of sectors 0 to 11
Sourcepub fn snb(&mut self) -> FieldWriterRaw<'_, u32, CR_SPEC, u8, u8, Unsafe, 5, 3>
pub fn snb(&mut self) -> FieldWriterRaw<'_, u32, CR_SPEC, u8, u8, Unsafe, 5, 3>
Bits 3:7 - Sector number
Sourcepub fn psize(
&mut self,
) -> FieldWriterRaw<'_, u32, CR_SPEC, u8, PSIZE_A, Safe, 2, 8>
pub fn psize( &mut self, ) -> FieldWriterRaw<'_, u32, CR_SPEC, u8, PSIZE_A, Safe, 2, 8>
Bits 8:9 - Program size
Sourcepub fn mer1(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 15>
pub fn mer1(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 15>
Bit 15 - Mass Erase of sectors 12 to 23
Sourcepub fn eopie(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, EOPIE_A, BitM, 24>
pub fn eopie(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, EOPIE_A, BitM, 24>
Bit 24 - End of operation interrupt enable
Methods from Deref<Target = W<CR_SPEC>>§
Sourcepub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
Writes raw bits to the register.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for W
impl RefUnwindSafe for W
impl Send for W
impl Sync for W
impl Unpin for W
impl UnwindSafe for W
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more