1.28.6.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