Type Alias gd32f1::gd32f130::i2c0::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 i2cen(&self) -> I2cenR

Bit 0 - I2C peripheral enable

source

pub fn smben(&self) -> SmbenR

Bit 1 - SMBus/I2C mode switch

source

pub fn smbsel(&self) -> SmbselR

Bit 3 - SMBusType Selection

source

pub fn arpen(&self) -> ArpenR

Bit 4 - ARP protocol in SMBus switch

source

pub fn pecen(&self) -> PecenR

Bit 5 - PEC Calculation Switch

source

pub fn gcen(&self) -> GcenR

Bit 6 - Whether or not to response to a General Call (0x00)

source

pub fn ss(&self) -> SsR

Bit 7 - Whether to stretch SCL low when data is not ready in slave mode

source

pub fn start(&self) -> StartR

Bit 8 - Generate a START condition on I2C bus

source

pub fn stop(&self) -> StopR

Bit 9 - Generate a STOP condition on I2C bus

source

pub fn acken(&self) -> AckenR

Bit 10 - Whether or not to send an ACK

source

pub fn poap(&self) -> PoapR

Bit 11 - Position of ACK meaning

source

pub fn pectrans(&self) -> PectransR

Bit 12 - PEC Transfer

source

pub fn salt(&self) -> SaltR

Bit 13 - SMBus alert

source

pub fn sreset(&self) -> SresetR

Bit 15 - Software reset I2C