k210_pac::i2c0::con

Type Alias R

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

Reader of register con

Aliased Type§

struct R { /* private fields */ }

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