W

Type Alias W 

Source
pub type W = W<u32, CR1>;
Expand description

Writer for register CR1

Aliased Type§

pub struct W { /* private fields */ }

Implementations§

Source§

impl W

Source

pub fn bidimode(&mut self) -> BIDIMODE_W<'_>

Bit 15 - Bidirectional data mode enable

Source

pub fn bidioe(&mut self) -> BIDIOE_W<'_>

Bit 14 - Output enable in bidirectional mode

Source

pub fn crcen(&mut self) -> CRCEN_W<'_>

Bit 13 - Hardware CRC calculation enable

Source

pub fn crcnext(&mut self) -> CRCNEXT_W<'_>

Bit 12 - CRC transfer next

Source

pub fn crcl(&mut self) -> CRCL_W<'_>

Bit 11 - CRC length

Source

pub fn rxonly(&mut self) -> RXONLY_W<'_>

Bit 10 - Receive only

Source

pub fn ssm(&mut self) -> SSM_W<'_>

Bit 9 - Software slave management

Source

pub fn ssi(&mut self) -> SSI_W<'_>

Bit 8 - Internal slave select

Source

pub fn lsbfirst(&mut self) -> LSBFIRST_W<'_>

Bit 7 - Frame format

Source

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

Bit 6 - SPI enable

Source

pub fn br(&mut self) -> BR_W<'_>

Bits 3:5 - Baud rate control

Source

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

Bit 2 - Master selection

Source

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

Bit 1 - Clock polarity

Source

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

Bit 0 - Clock phase