# W in k210_pac::i2c0::con - Rust
Writer for register con
Keywords: rust, rustlang, rust-lang, W

# Type Definition k210_pac::i2c0::con::W

source · [−]

    pub type W = W<u32, CON>;

Expand description

Writer for register con

## Implementations

source

### impl W

source

#### pub fn master_mode(&mut self) -> MASTER_MODE_W<'_>

Bit 0 - Master Mode

source

#### pub fn speed(&mut self) -> SPEED_W<'_>

Bits 1:2 - Speed

source

#### pub fn addr_slave_width(&mut self) -> ADDR_SLAVE_WIDTH_W<'_>

Bit 3 - Slave address width

source

#### pub fn restart_en(&mut self) -> RESTART_EN_W<'_>

Bit 5 - Enable Restart

source

#### pub fn slave_disable(&mut self) -> SLAVE_DISABLE_W<'_>

Bit 6 - Disable Slave

source

#### pub fn stop_det(&mut self) -> STOP_DET_W<'_>

Bit 7 - STOP_DET_IFADDRESSED

source

#### pub fn tx_empty(&mut self) -> TX_EMPTY_W<'_>

Bit 8 - TX_EMPTY_CTRL