1.1.11.35 I2CSMBx_TargetBufferRead Function

C

/* x = I2C SMBUS peripheral instance number */

/* I2C SMBUS Target mode */

uint32_t I2CSMBx_TargetBufferRead(void* pBuffer)

Summary

Reads the received data from internal buffer into the application buffer

Description

Reads the received data from internal buffer into the application buffer

Precondition

I2CSMBx_Initialize must have been called for the associated I2C instance.

Parameters

None.

Returns

Number of bytes copied to the application buffer

Example

volatile uint8_t targetRxBuffer[100];

uint32_t nBytesRead = I2CSMB0_TargetBufferRead((void*)targetRxBuffer);

Remarks

None.