Type Alias atsame54n::qspi::instrframe::W

source ·
pub type W = W<INSTRFRAME_SPEC>;
Expand description

Register INSTRFRAME writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

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

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

source

pub fn instren(&mut self) -> INSTREN_W<'_, INSTRFRAME_SPEC, 4>

Bit 4 - Instruction Enable

source

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

Bit 5 - Address Enable

source

pub fn optcodeen(&mut self) -> OPTCODEEN_W<'_, INSTRFRAME_SPEC, 6>

Bit 6 - Option Enable

source

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

Bit 7 - Data Enable

source

pub fn optcodelen(&mut self) -> OPTCODELEN_W<'_, INSTRFRAME_SPEC, 8>

Bits 8:9 - Option Code Length

source

pub fn addrlen(&mut self) -> ADDRLEN_W<'_, INSTRFRAME_SPEC, 10>

Bit 10 - Address Length

source

pub fn tfrtype(&mut self) -> TFRTYPE_W<'_, INSTRFRAME_SPEC, 12>

Bits 12:13 - Data Transfer Type

source

pub fn crmode(&mut self) -> CRMODE_W<'_, INSTRFRAME_SPEC, 14>

Bit 14 - Continuous Read Mode

source

pub fn ddren(&mut self) -> DDREN_W<'_, INSTRFRAME_SPEC, 15>

Bit 15 - Double Data Rate Enable

source

pub fn dummylen(&mut self) -> DUMMYLEN_W<'_, INSTRFRAME_SPEC, 16>

Bits 16:20 - Dummy Cycles Length

source

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

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual