# R in k210_pac::i2c0::con - Rust
Reader of register con
Keywords: rust, rustlang, rust-lang, R

# Type Definition k210_pac::i2c0::con::R

source · [−]

    pub type R = R<u32, CON>;

Expand description

Reader of register con

## Implementations

source

### impl R

source

#### pub fn master_mode(&self) -> MASTER_MODE_R

Bit 0 - Master Mode

source

#### pub fn speed(&self) -> SPEED_R

Bits 1:2 - Speed

source

#### pub fn addr_slave_width(&self) -> ADDR_SLAVE_WIDTH_R

Bit 3 - Slave address width

source

#### pub fn restart_en(&self) -> RESTART_EN_R

Bit 5 - Enable Restart

source

#### pub fn slave_disable(&self) -> SLAVE_DISABLE_R

Bit 6 - Disable Slave

source

#### pub fn stop_det(&self) -> STOP_DET_R

Bit 7 - STOP_DET_IFADDRESSED

source

#### pub fn tx_empty(&self) -> TX_EMPTY_R

Bit 8 - TX_EMPTY_CTRL