rp2040_pac::spi0::sspcpsr

Type Alias W

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

Register SSPCPSR writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

Source§

impl W

Source

pub fn cpsdvsr(&mut self) -> CPSDVSR_W<'_, SSPCPSR_SPEC>

Bits 0:7 - Clock prescale divisor. Must be an even number from 2-254, depending on the frequency of SSPCLK. The least significant bit always returns zero on reads.

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