DCMD_I2C_MASTER_RECV (deprecated)

The DCMD_I2C_MASTER_RECV command executes a master receive transaction, using the slave device address and bus speed specified for the current connection.

Input
i2c_messagehdr_t — the message header
Output
uint8_t[] — the receive data
Note: The message header is overwritten.

If an error occurs, the command returns:

EIO
The master receive failed. Causes include: bad slave address, bad bus speed, bus is busy.
EINVAL
Bad message format.
ENOMEM
Insufficient memory.
EPERM
The master is locked by another connection.