The DCMD_I2C_RECV command executes a master receive transaction. It returns when the transaction is complete.
The i2c_recv_t structure is defined as:
typedef struct { i2c_addr_t slave; /* slave address */ uint32_t len; /* length of receive data in bytes */ uint32_t stop; /* send stop when complete? (0=no, 1=yes) */ } i2c_recv_t;
If an error occurs, the command returns: