Type Alias gd32f1::gd32f190::spi0::ctl0::R

source ·
pub type R = R<Ctl0Spec>;
Expand description

Register CTL0 reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

source§

impl R

source

pub fn ckph(&self) -> CkphR

Bit 0 - Clock Phase Selection

source

pub fn ckpl(&self) -> CkplR

Bit 1 - Clock Polarity Selection

source

pub fn mstmod(&self) -> MstmodR

Bit 2 - Master selection

source

pub fn psc(&self) -> PscR

Bits 3:5 - Master Clock Prescaler Selection

source

pub fn spien(&self) -> SpienR

Bit 6 - SPI enable

source

pub fn lf(&self) -> LfR

Bit 7 - LSB First Mode

source

pub fn swnss(&self) -> SwnssR

Bit 8 - NSS Pin Selection In NSS Software Mode

source

pub fn swnssen(&self) -> SwnssenR

Bit 9 - NSS Software Mode Selection

source

pub fn ro(&self) -> RoR

Bit 10 - Receive only

source

pub fn ff16(&self) -> Ff16R

Bit 11 - Data frame format

source

pub fn crcnt(&self) -> CrcntR

Bit 12 - CRC transfer next

source

pub fn crcen(&self) -> CrcenR

Bit 13 - Hardware CRC calculation enable

source

pub fn bdoen(&self) -> BdoenR

Bit 14 - Bidirectional Transmit output enable

source

pub fn bden(&self) -> BdenR

Bit 15 - Bidirectional enable