Type Alias atsame54n::nvmctrl::ctrla::W

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

Register CTRLA writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn autows(&mut self) -> AUTOWS_W<'_, CTRLA_SPEC, 2>

Bit 2 - Auto Wait State Enable

source

pub fn suspen(&mut self) -> SUSPEN_W<'_, CTRLA_SPEC, 3>

Bit 3 - Suspend Enable

source

pub fn wmode(&mut self) -> WMODE_W<'_, CTRLA_SPEC, 4>

Bits 4:5 - Write Mode

source

pub fn prm(&mut self) -> PRM_W<'_, CTRLA_SPEC, 6>

Bits 6:7 - Power Reduction Mode during Sleep

source

pub fn rws(&mut self) -> RWS_W<'_, CTRLA_SPEC, 8>

Bits 8:11 - NVM Read Wait States

source

pub fn ahbns0(&mut self) -> AHBNS0_W<'_, CTRLA_SPEC, 12>

Bit 12 - Force AHB0 access to NONSEQ, burst transfers are continuously rearbitrated

source

pub fn ahbns1(&mut self) -> AHBNS1_W<'_, CTRLA_SPEC, 13>

Bit 13 - Force AHB1 access to NONSEQ, burst transfers are continuously rearbitrated

source

pub fn cachedis0(&mut self) -> CACHEDIS0_W<'_, CTRLA_SPEC, 14>

Bit 14 - AHB0 Cache Disable

source

pub fn cachedis1(&mut self) -> CACHEDIS1_W<'_, CTRLA_SPEC, 15>

Bit 15 - AHB1 Cache Disable

source

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

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual