1.8.7.63 1.25.6.63 1.26.5.63 1.27.5.63 1.28.6.63 1.36.7.61 1.41.5.63 1.42.3.63 FLEXCOMx_TWI_NACKDataPhase Function

C

/* x = FLEXCOM instance number */

/* TWI slave mode */

void FLEXCOMx_TWI_NACKDataPhase(bool isNACKEnable)

Summary

Configures the hardware to send ACK or NAK for the next byte that will be received from the TWI master

Description

This function lets the application send ACK or NAK for the next data from the I2C master

Precondition

FLEXCOMx_TWI_Initialize must have been called for the associated FLEXCOM TWI instance.

Parameters

Param Description
true Send NAK to the next data from I2C master
false Send ACK to the next data from I2C master

Returns

None

Example

// Send NAK for the next data from I2C master
FLEXCOM0_TWI_NACKDataPhase(true);

Remarks

None