R

Type Alias R 

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

Reader of register CR1

Aliased Type§

pub struct R { /* private fields */ }

Implementations§

Source§

impl R

Source

pub fn pe(&self) -> PE_R

Bit 0 - Peripheral enable

Source

pub fn txie(&self) -> TXIE_R

Bit 1 - TX Interrupt enable

Source

pub fn rxie(&self) -> RXIE_R

Bit 2 - RX Interrupt enable

Source

pub fn addrie(&self) -> ADDRIE_R

Bit 3 - Address match interrupt enable (slave only)

Source

pub fn nackie(&self) -> NACKIE_R

Bit 4 - Not acknowledge received interrupt enable

Source

pub fn stopie(&self) -> STOPIE_R

Bit 5 - STOP detection Interrupt enable

Source

pub fn tcie(&self) -> TCIE_R

Bit 6 - Transfer Complete interrupt enable

Source

pub fn errie(&self) -> ERRIE_R

Bit 7 - Error interrupts enable

Source

pub fn dnf(&self) -> DNF_R

Bits 8:11 - Digital noise filter

Source

pub fn anfoff(&self) -> ANFOFF_R

Bit 12 - Analog noise filter OFF

Source

pub fn txdmaen(&self) -> TXDMAEN_R

Bit 14 - DMA transmission requests enable

Source

pub fn rxdmaen(&self) -> RXDMAEN_R

Bit 15 - DMA reception requests enable

Source

pub fn sbc(&self) -> SBC_R

Bit 16 - Slave byte control

Source

pub fn nostretch(&self) -> NOSTRETCH_R

Bit 17 - Clock stretching disable

Source

pub fn wupen(&self) -> WUPEN_R

Bit 18 - Wakeup from STOP enable

Source

pub fn gcen(&self) -> GCEN_R

Bit 19 - General call enable

Source

pub fn smbhen(&self) -> SMBHEN_R

Bit 20 - SMBus Host address enable

Source

pub fn smbden(&self) -> SMBDEN_R

Bit 21 - SMBus Device Default address enable

Source

pub fn alerten(&self) -> ALERTEN_R

Bit 22 - SMBUS alert enable

Source

pub fn pecen(&self) -> PECEN_R

Bit 23 - PEC enable