Type Alias W

Source
pub type W = W<I2C_CONFIG_SPEC>;
Expand description

Register i2c_config writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

Source§

impl W

Source

pub fn clock_divide(&mut self) -> CLOCK_DIVIDE_W<'_, I2C_CONFIG_SPEC>

Bits 16:23 - Peripheral clock divide factor

Source

pub fn clock_enable(&mut self) -> CLOCK_ENABLE_W<'_, I2C_CONFIG_SPEC>

Bit 24 - Peripheral level clock gate enable

Source

pub fn clock_source(&mut self) -> CLOCK_SOURCE_W<'_, I2C_CONFIG_SPEC>

Bit 25 - Peripheral clock source register

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