Type Alias gd32f1::gd32f130::i2c0::ctl0::W

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

Register CTL0 writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn i2cen(&mut self) -> I2cenW<'_, Ctl0Spec>

Bit 0 - I2C peripheral enable

source

pub fn smben(&mut self) -> SmbenW<'_, Ctl0Spec>

Bit 1 - SMBus/I2C mode switch

source

pub fn smbsel(&mut self) -> SmbselW<'_, Ctl0Spec>

Bit 3 - SMBusType Selection

source

pub fn arpen(&mut self) -> ArpenW<'_, Ctl0Spec>

Bit 4 - ARP protocol in SMBus switch

source

pub fn pecen(&mut self) -> PecenW<'_, Ctl0Spec>

Bit 5 - PEC Calculation Switch

source

pub fn gcen(&mut self) -> GcenW<'_, Ctl0Spec>

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

source

pub fn ss(&mut self) -> SsW<'_, Ctl0Spec>

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

source

pub fn start(&mut self) -> StartW<'_, Ctl0Spec>

Bit 8 - Generate a START condition on I2C bus

source

pub fn stop(&mut self) -> StopW<'_, Ctl0Spec>

Bit 9 - Generate a STOP condition on I2C bus

source

pub fn acken(&mut self) -> AckenW<'_, Ctl0Spec>

Bit 10 - Whether or not to send an ACK

source

pub fn poap(&mut self) -> PoapW<'_, Ctl0Spec>

Bit 11 - Position of ACK meaning

source

pub fn pectrans(&mut self) -> PectransW<'_, Ctl0Spec>

Bit 12 - PEC Transfer

source

pub fn salt(&mut self) -> SaltW<'_, Ctl0Spec>

Bit 13 - SMBus alert

source

pub fn sreset(&mut self) -> SresetW<'_, Ctl0Spec>

Bit 15 - Software reset I2C