Type Alias esp32c6_lp::lp_i2c::comd1::R
source · pub type R = R<COMD1_SPEC>;
Expand description
Register COMD1
reader
Aliased Type§
struct R { /* private fields */ }
Implementations§
source§impl R
impl R
sourcepub fn command1(&self) -> COMMAND1_R
pub fn command1(&self) -> COMMAND1_R
Bits 0:13 - This is the content of command 1. 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 command1_done(&self) -> COMMAND1_DONE_R
pub fn command1_done(&self) -> COMMAND1_DONE_R
Bit 31 - When command 1 is done in I2C Master mode, this bit changes to high level.