Type Alias esp32c6_lp::lp_i2c::comd4::W
source · pub type W = W<COMD4_SPEC>;
Expand description
Register COMD4
writer
Aliased Type§
struct W { /* private fields */ }
Implementations§
source§impl W
impl W
sourcepub fn command4(&mut self) -> COMMAND4_W<'_, COMD4_SPEC>
pub fn command4(&mut self) -> COMMAND4_W<'_, COMD4_SPEC>
Bits 0:13 - This is the content of command 4. 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.
sourcepub fn command4_done(&mut self) -> COMMAND4_DONE_W<'_, COMD4_SPEC>
pub fn command4_done(&mut self) -> COMMAND4_DONE_W<'_, COMD4_SPEC>
Bit 31 - When command 4 is done in I2C Master mode, this bit changes to high level.