Type Alias rp2040_pac::i2c0::ic_sda_hold::W

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

Register IC_SDA_HOLD writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn ic_sda_tx_hold(&mut self) -> IC_SDA_TX_HOLD_W<'_, IC_SDA_HOLD_SPEC>

Bits 0:15 - Sets the required SDA hold time in units of ic_clk period, when DW_apb_i2c acts as a transmitter.

Reset value: IC_DEFAULT_SDA_HOLD[15:0].

source

pub fn ic_sda_rx_hold(&mut self) -> IC_SDA_RX_HOLD_W<'_, IC_SDA_HOLD_SPEC>

Bits 16:23 - Sets the required SDA hold time in units of ic_clk period, when DW_apb_i2c acts as a receiver.

Reset value: IC_DEFAULT_SDA_HOLD[23:16].

source

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual