1.1.11.25 I2CSMBx_HostBufferRead Function

C

/* x = I2C SMBUS peripheral instance number */

/* I2C SMBUS Host mode */
uint32_t I2CSMBx_HostBufferRead(void* pBuffer)

Summary

Reads data from the internal buffer and into the application buffer

Description

Reads data from the internal buffer and into the application buffer

Precondition

I2CSMBx_Initialize must have been called for the associated I2C instance.

Parameters

Param Description
pBuffer pointer to the application buffer where the data needs to be copied

Returns

Number of bytes copied to the application buffer

Example

uint8_t rdBuffer[50] = {0};
volatile uint32_t nBytesRead = 0;

nBytesRead = I2CSMB0_HostBufferRead(rdBuffer);

Remarks

None