Type Alias esp32s3::spi1::user2::W

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

Register USER2 writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn usr_command_value(&mut self) -> USR_COMMAND_VALUE_W<'_, USER2_SPEC>

Bits 0:15 - The value of user defined(USR) command.

source

pub fn usr_command_bitlen(&mut self) -> USR_COMMAND_BITLEN_W<'_, USER2_SPEC>

Bits 28:31 - The length in bits of CMD phase. The register value shall be (bit_num-1)

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