Module comd

Source
Expand description

I2C command register %s

Structs§

COMD_SPEC
I2C command register %s

Type Aliases§

COMMAND_DONE_R
Field COMMAND_DONE reader - When command 0 is done in I2C Master mode, this bit changes to high level.
COMMAND_DONE_W
Field COMMAND_DONE writer - When command 0 is done in I2C Master mode, this bit changes to high level.
COMMAND_R
Field COMMAND reader - 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.
COMMAND_W
Field COMMAND writer - 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.
R
Register COMD%s reader
W
Register COMD%s writer