1.1.11.24 I2CSMBx_HostReadBlock Function
C
/* x = I2C SMBUS peripheral instance number */
/* I2C SMBUS Host mode */
void I2CSMBx_HostReadBlock(uint8_t address, uint8_t cmd)
Summary
Reads a block of data from the slave
Description
This function forms a read block packet and initiates the transfer
Precondition
I2CSMBx_Initialize must have been called for the associated I2C instance.
Parameters
Param | Description |
---|---|
address | 7-bit / 10-bit slave address. |
cmd | command byte |
Returns
None
Example
#define HOST_CMD_READ_BLOCK 5 I2CSMB0_HostReadBlock(I2C_SLAVE_ADDR, HOST_CMD_READ_BLOCK);
Remarks
None