Skip to main content

W

Struct W 

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

Register FM_CODE_MARGIN writer

Implementations§

Source§

impl W

Source

pub fn margin_dcs_trim( &mut self, ) -> FieldWriterRaw<'_, u32, FM_CODE_MARGIN_SPEC, u16, u16, Unsafe, 9, 0>

Bits 0:8 - see above table to set the DCS reference current value to be used during Margin mode. (default set to 5uS = 0x143) which gives a Margin to the Erase side. 7uA would probably be used for Margin to the PGM side

Source

pub fn margin_dcs_trim_en( &mut self, ) -> BitWriterRaw<'_, u32, FM_CODE_MARGIN_SPEC, bool, BitM, 9>

Bit 9 - 0: internal device defaults used from Margin reads reference current 1: MARGIN_DCS_TRIM configuration is used during Margin read

Source

pub fn margin_rdreg_trim( &mut self, ) -> FieldWriterRaw<'_, u32, FM_CODE_MARGIN_SPEC, u8, u8, Unsafe, 6, 10>

Bits 10:15 - rdreg_c trim to be used in Margin mode if enabled by MARGIN_MODE_RDREG_CHNG_EN

Source

pub fn margin_pgm_ers_b( &mut self, ) -> BitWriterRaw<'_, u32, FM_CODE_MARGIN_SPEC, bool, BitM, 29>

Bit 29 - 0: ERS Margin is checked 1: PGM Margin is checked

Source

pub fn margin_mode_rdreg_chng_en( &mut self, ) -> BitWriterRaw<'_, u32, FM_CODE_MARGIN_SPEC, bool, BitM, 30>

Bit 30 - when set will also use the MARGIN_RDREG_TRIM from above. Default is not to use

Source

pub fn margin_mode_en( &mut self, ) -> BitWriterRaw<'_, u32, FM_CODE_MARGIN_SPEC, bool, BitM, 31>

Bit 31 - when set puts the s40ect Flash IP In Margin mode

Source

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

Writes raw bits to the register.

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

Source

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

Writes raw bits to the register.

§Safety

Read datasheet or reference manual to find what values are allowed to pass.

Trait Implementations§

Source§

impl Deref for W

Source§

type Target = W<FM_CODE_MARGIN_SPEC>

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl DerefMut for W

Source§

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

Mutably dereferences the value.
Source§

impl From<W<FM_CODE_MARGIN_SPEC>> for W

Source§

fn from(writer: W<FM_CODE_MARGIN_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 UnsafeUnpin 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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

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

Source§

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>,

Source§

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.