Struct daisy::pac::flash::bank::cr::W

pub struct W(/* private fields */);
Expand description

Register CR writer

Implementations§

§

impl W

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>

Bit 1 - Bank 1 program enable bit

pub fn ser(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 2>

Bit 2 - Bank 1 sector erase request

pub fn ber(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 3>

Bit 3 - Bank 1 erase request

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>

Bit 6 - Bank 1 write forcing control bit

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>

Bits 8:10 - Bank 1 sector erase selection number

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>

Bit 16 - Bank 1 end-of-program interrupt control bit

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>

Bit 18 - Bank 1 programming sequence error interrupt enable bit

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>

Bit 21 - Bank 1 inconsistency error interrupt enable bit

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>

Bit 23 - Bank 1 read protection error interrupt enable bit

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>

Bit 25 - Bank 1 ECC single correction error interrupt enable bit

pub fn dbeccerrie(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 26>

Bit 26 - Bank 1 ECC double detection error interrupt enable bit

pub fn crcendie(&mut self) -> BitWriterRaw<'_, u32, CR_SPEC, bool, BitM, 27>

Bit 27 - Bank 1 end of CRC calculation interrupt enable bit

pub unsafe fn bits(&mut self, bits: u32) -> &mut W

Writes raw bits to the register.

Methods from Deref<Target = W<CR_SPEC>>§

pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>

Writes raw bits to the register.

Trait Implementations§

§

impl Deref for W

§

type Target = W<CR_SPEC>

The resulting type after dereferencing.
§

fn deref(&self) -> &<W as Deref>::Target

Dereferences the value.
§

impl DerefMut for W

§

fn deref_mut(&mut self) -> &mut <W as Deref>::Target

Mutably dereferences the value.
§

impl From<W<CR_SPEC>> for W

§

fn from(writer: W<CR_SPEC>) -> W

Converts to this type from the input type.

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.