1.1.11.23 I2CSMBx_HostReadByte Function

C

/* x = I2C SMBUS peripheral instance number */

/* I2C SMBUS Host mode */

void I2CSMBx_HostReadByte(uint8_t address, uint8_t cmd)

Summary

Reads a data byte from slave

Description

This function forms a read byte 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_BYTE 3

I2CSMB0_HostReadByte(I2C_SLAVE_ADDR, HOST_CMD_READ_BYTE);

Remarks

None