Type Alias R

Source
pub type R = R<CR1rs>;
Expand description

Register CR1 reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

Source§

impl R

Source

pub fn cpha(&self) -> CPHA_R

Bit 0 - Clock phase

Source

pub fn cpol(&self) -> CPOL_R

Bit 1 - Clock polarity

Source

pub fn mstr(&self) -> MSTR_R

Bit 2 - Master selection

Source

pub fn br(&self) -> BR_R

Bits 3:5 - Baud rate control

Source

pub fn spe(&self) -> SPE_R

Bit 6 - SPI enable

Source

pub fn lsbfirst(&self) -> LSBFIRST_R

Bit 7 - Frame format

Source

pub fn ssi(&self) -> SSI_R

Bit 8 - Internal slave select

Source

pub fn ssm(&self) -> SSM_R

Bit 9 - Software slave management

Source

pub fn rxonly(&self) -> RXONLY_R

Bit 10 - Receive only

Source

pub fn dff(&self) -> DFF_R

Bit 11 - Data frame format

Source

pub fn crcnext(&self) -> CRCNEXT_R

Bit 12 - CRC transfer next

Source

pub fn crcen(&self) -> CRCEN_R

Bit 13 - Hardware CRC calculation enable

Source

pub fn bidioe(&self) -> BIDIOE_R

Bit 14 - Output enable in bidirectional mode

Source

pub fn bidimode(&self) -> BIDIMODE_R

Bit 15 - Bidirectional data mode enable

Trait Implementations§

Source§

impl Debug for R

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more