Type Alias rp2040_pac::spi0::sspcpsr::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