Type Alias gd32f1::gd32f190::i2c0::stat1::R

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

Register STAT1 reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

source§

impl R

source

pub fn master(&self) -> MasterR

Bit 0 - A flag indicating whether I2C block is in master or slave mode

source

pub fn i2cbsy(&self) -> I2cbsyR

Bit 1 - Busy flag

source

pub fn tr(&self) -> TrR

Bit 2 - Whether the I2C is a transmitter or a receiver

source

pub fn rxgc(&self) -> RxgcR

Bit 4 - General call address (00h) received

source

pub fn defsmb(&self) -> DefsmbR

Bit 5 - SMBus host header in slave mode

source

pub fn hstsmb(&self) -> HstsmbR

Bit 6 - SMBus Host Header detected in slave mode

source

pub fn dumodf(&self) -> DumodfR

Bit 7 - Dual Flag in slave mode

source

pub fn pecv(&self) -> PecvR

Bits 8:15 - Packet Error Checking Value