Type Alias atsame54n::sercom0::spis::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 chsize(&mut self) -> CHSIZE_W<'_, CTRLB_SPEC, 0>

Bits 0:2 - Character Size

source

pub fn ploaden(&mut self) -> PLOADEN_W<'_, CTRLB_SPEC, 6>

Bit 6 - Data Preload Enable

source

pub fn ssde(&mut self) -> SSDE_W<'_, CTRLB_SPEC, 9>

Bit 9 - Slave Select Low Detect Enable

source

pub fn mssen(&mut self) -> MSSEN_W<'_, CTRLB_SPEC, 13>

Bit 13 - Master Slave Select Enable

source

pub fn amode(&mut self) -> AMODE_W<'_, CTRLB_SPEC, 14>

Bits 14:15 - Address Mode

source

pub fn rxen(&mut self) -> RXEN_W<'_, CTRLB_SPEC, 17>

Bit 17 - Receiver Enable

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