Type Alias esp32s3::i2c0::comd::W

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

Register COMD%s writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn command(&mut self) -> COMMAND_W<'_, COMD_SPEC>

Bits 0:13 - This is the content of command 0. It consists of three parts: op_code is the command, 0: RSTART; 1: WRITE; 2: READ; 3: STOP; 4: END. Byte_num represents the number of bytes that need to be sent or received. ack_check_en, ack_exp and ack are used to control the ACK bit. See I2C cmd structure for more Information.

source

pub fn command_done(&mut self) -> COMMAND_DONE_W<'_, COMD_SPEC>

Bit 31 - When command 0 is done in I2C Master mode, this bit changes to high level.

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