Type Alias rp2040_pac::i2c0::ic_sda_setup::W

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

Register IC_SDA_SETUP writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn sda_setup(&mut self) -> SDA_SETUP_W<'_, IC_SDA_SETUP_SPEC>

Bits 0:7 - SDA Setup. It is recommended that if the required delay is 1000ns, then for an ic_clk frequency of 10 MHz, IC_SDA_SETUP should be programmed to a value of 11. IC_SDA_SETUP must be programmed with a minimum value of 2.

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