Jump to main content

##

# 2.112.17 I2CSMBx_HostReadWord Function

## C

    /* x = I2C SMBUS peripheral instance number */

    /* I2C SMBUS Host mode */

    void I2CSMBx_HostReadWord(uint8_t address, uint8_t cmd)

## Summary

Reads a data word from slave

## Description

This function forms a read word 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_WORD 4

    I2CSMB0_HostReadWord(I2C_SLAVE_ADDR, HOST_CMD_READ_WORD);

## Remarks

None