W

Type Alias W 

Source
pub type W = W<SPCR_SPEC>;
Expand description

Register SPCR writer

Aliased Type§

pub struct W { /* private fields */ }

Implementations§

Source§

impl W

Source

pub fn spr(&mut self) -> SPR_W<'_, SPCR_SPEC>

Bits 0:1 - SPI Clock Rate Selects

Source

pub fn cpha(&mut self) -> CPHA_W<'_, SPCR_SPEC>

Bit 2 - Clock Phase

Source

pub fn cpol(&mut self) -> CPOL_W<'_, SPCR_SPEC>

Bit 3 - Clock polarity

Source

pub fn mstr(&mut self) -> MSTR_W<'_, SPCR_SPEC>

Bit 4 - Master/Slave Select

Source

pub fn dord(&mut self) -> DORD_W<'_, SPCR_SPEC>

Bit 5 - Data Order

Source

pub fn spe(&mut self) -> SPE_W<'_, SPCR_SPEC>

Bit 6 - SPI Enable

Source

pub fn spie(&mut self) -> SPIE_W<'_, SPCR_SPEC>

Bit 7 - SPI Interrupt Enable