Struct atsame70n21b::qspi::ifr::W

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

Register IFR writer

Implementations§

source§

impl W

source

pub fn width(&mut self) -> WIDTH_W<'_, 0>

Bits 0:2 - Width of Instruction Code, Address, Option Code and Data

source

pub fn insten(&mut self) -> INSTEN_W<'_, 4>

Bit 4 - Instruction Enable

source

pub fn addren(&mut self) -> ADDREN_W<'_, 5>

Bit 5 - Address Enable

source

pub fn opten(&mut self) -> OPTEN_W<'_, 6>

Bit 6 - Option Enable

source

pub fn dataen(&mut self) -> DATAEN_W<'_, 7>

Bit 7 - Data Enable

source

pub fn optl(&mut self) -> OPTL_W<'_, 8>

Bits 8:9 - Option Code Length

source

pub fn addrl(&mut self) -> ADDRL_W<'_, 10>

Bit 10 - Address Length

source

pub fn tfrtyp(&mut self) -> TFRTYP_W<'_, 12>

Bits 12:13 - Data Transfer Type

source

pub fn crm(&mut self) -> CRM_W<'_, 14>

Bit 14 - Continuous Read Mode

source

pub fn nbdum(&mut self) -> NBDUM_W<'_, 16>

Bits 16:20 - Number Of Dummy Cycles

source

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

Writes raw bits to the register.

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

source

pub unsafe fn bits(&mut self, bits: REG::Ux) -> &mut Self

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

§

type Target = W<IFR_SPEC>

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl DerefMut for W

source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
source§

impl From<W<IFR_SPEC>> for W

source§

fn from(original: W<IFR_SPEC>) -> W

Converts to this type from the input type.

Auto Trait Implementations§

§

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.