Type Alias atsame54n::qspi::ctrlb::W

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

Register CTRLB writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn mode(&mut self) -> MODE_W<'_, CTRLB_SPEC, 0>

Bit 0 - Serial Memory Mode

source

pub fn loopen(&mut self) -> LOOPEN_W<'_, CTRLB_SPEC, 1>

Bit 1 - Local Loopback Enable

source

pub fn wdrbt(&mut self) -> WDRBT_W<'_, CTRLB_SPEC, 2>

Bit 2 - Wait Data Read Before Transfer

source

pub fn smemreg(&mut self) -> SMEMREG_W<'_, CTRLB_SPEC, 3>

Bit 3 - Serial Memory reg

source

pub fn csmode(&mut self) -> CSMODE_W<'_, CTRLB_SPEC, 4>

Bits 4:5 - Chip Select Mode

source

pub fn datalen(&mut self) -> DATALEN_W<'_, CTRLB_SPEC, 8>

Bits 8:11 - Data Length

source

pub fn dlybct(&mut self) -> DLYBCT_W<'_, CTRLB_SPEC, 16>

Bits 16:23 - Delay Between Consecutive Transfers

source

pub fn dlycs(&mut self) -> DLYCS_W<'_, CTRLB_SPEC, 24>

Bits 24:31 - Minimum Inactive CS Delay

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