Type Alias W

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

Register spi_config writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

Source§

impl W

Source

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

Bits 0:4 - Peripheral clock divide factor

Source

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

Bit 8 - Peripheral level clock gate enable

Source

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

Bit 9 - Peripheral clock source register

Source

pub fn pin_swap(&mut self) -> PIN_SWAP_W<'_, SPI_CONFIG_SPEC>

Bits 16:19 - Swap Serial Peripheral Interface pin signals

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