Type Alias R

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

Reader of register ISR

Aliased Type§

pub struct R { /* private fields */ }

Implementations§

Source§

impl R

Source

pub fn addcode(&self) -> ADDCODE_R

Bits 17:23 - Address match code (Slave mode)

Source

pub fn dir(&self) -> DIR_R

Bit 16 - Transfer direction (Slave mode)

Source

pub fn busy(&self) -> BUSY_R

Bit 15 - Bus busy

Source

pub fn alert(&self) -> ALERT_R

Bit 13 - SMBus alert

Source

pub fn timeout(&self) -> TIMEOUT_R

Bit 12 - Timeout or t_low detection flag

Source

pub fn pecerr(&self) -> PECERR_R

Bit 11 - PEC Error in reception

Source

pub fn ovr(&self) -> OVR_R

Bit 10 - Overrun/Underrun (slave mode)

Source

pub fn arlo(&self) -> ARLO_R

Bit 9 - Arbitration lost

Source

pub fn berr(&self) -> BERR_R

Bit 8 - Bus error

Source

pub fn tcr(&self) -> TCR_R

Bit 7 - Transfer Complete Reload

Source

pub fn tc(&self) -> TC_R

Bit 6 - Transfer Complete (master mode)

Source

pub fn stopf(&self) -> STOPF_R

Bit 5 - Stop detection flag

Source

pub fn nackf(&self) -> NACKF_R

Bit 4 - Not acknowledge received flag

Source

pub fn addr(&self) -> ADDR_R

Bit 3 - Address matched (slave mode)

Source

pub fn rxne(&self) -> RXNE_R

Bit 2 - Receive data register not empty (receivers)

Source

pub fn txis(&self) -> TXIS_R

Bit 1 - Transmit interrupt status (transmitters)

Source

pub fn txe(&self) -> TXE_R

Bit 0 - Transmit data register empty (transmitters)