pub struct W(/* private fields */);
Expand description
Register CR
writer
Implementations§
§impl W
impl W
pub fn lock(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 0>
pub fn lock(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 0>
Bit 0 - Bank 1 configuration lock bit
pub fn pg(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 1>
pub fn pg(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 1>
Bit 1 - Bank 1 program enable bit
pub fn ser(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 2>
pub fn ser(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 2>
Bit 2 - Bank 1 sector erase request
pub fn psize(
&mut self
) -> FieldWriterRaw<'_, u32, CR_SPEC, u8, u8, Unsafe, 2, 4>
pub fn psize( &mut self ) -> FieldWriterRaw<'_, u32, CR_SPEC, u8, u8, Unsafe, 2, 4>
Bits 4:5 - Bank 1 program size
pub fn fw(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 6>
pub fn fw(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 6>
Bit 6 - Bank 1 write forcing control bit
pub fn start(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 7>
pub fn start(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 7>
Bit 7 - Bank 1 bank or sector erase start control bit
pub fn snb(&mut self) -> FieldWriterRaw<'_, u32, CR_SPEC, u8, u8, Unsafe, 3, 8>
pub fn snb(&mut self) -> FieldWriterRaw<'_, u32, CR_SPEC, u8, u8, Unsafe, 3, 8>
Bits 8:10 - Bank 1 sector erase selection number
pub fn crc_en(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 15>
pub fn crc_en(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 15>
Bit 15 - Bank 1 CRC control bit
pub fn eopie(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 16>
pub fn eopie(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 16>
Bit 16 - Bank 1 end-of-program interrupt control bit
pub fn wrperrie(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 17>
pub fn wrperrie(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 17>
Bit 17 - Bank 1 write protection error interrupt enable bit
pub fn pgserrie(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 18>
pub fn pgserrie(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 18>
Bit 18 - Bank 1 programming sequence error interrupt enable bit
pub fn strberrie(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 19>
pub fn strberrie(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 19>
Bit 19 - Bank 1 strobe error interrupt enable bit
pub fn incerrie(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 21>
pub fn incerrie(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 21>
Bit 21 - Bank 1 inconsistency error interrupt enable bit
pub fn operrie(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 22>
pub fn operrie(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 22>
Bit 22 - Bank 1 write/erase error interrupt enable bit
pub fn rdperrie(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 23>
pub fn rdperrie(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 23>
Bit 23 - Bank 1 read protection error interrupt enable bit
pub fn rdserrie(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 24>
pub fn rdserrie(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 24>
Bit 24 - Bank 1 secure error interrupt enable bit
pub fn sneccerrie(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 25>
pub fn sneccerrie(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 25>
Bit 25 - Bank 1 ECC single correction error interrupt enable bit
pub fn dbeccerrie(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 26>
pub fn dbeccerrie(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 26>
Bit 26 - Bank 1 ECC double detection error interrupt enable bit
Methods from Deref<Target = W<CR_SPEC>>§
pub 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.