k210_pac::i2c0::con

Type Alias W

Source
pub type W = W<u32, CON>;
Expand description

Writer for register con

Aliased Type§

struct W { /* private fields */ }

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