Type Alias rp2040_pac::spi0::sspdr::W

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

Register SSPDR writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn data(&mut self) -> DATA_W<'_, SSPDR_SPEC>

Bits 0:15 - Transmit/Receive FIFO: Read Receive FIFO. Write Transmit FIFO. You must right-justify data when the PrimeCell SSP is programmed for a data size that is less than 16 bits. Unused bits at the top are ignored by transmit logic. The receive logic automatically right-justifies.

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