PreviousNext
DpaApiI2CwaitForACK
Help > Custom DPA Handler > DPA API > DpaApiI2CwaitForACK

void DpaApiI2CwaitForACK( uns8 address )

 

Waits till ACK is received from the specified I2C slave device. It internally executes the following code:

 

do {

  DpaApiI2Cstart( address );

  DpaApiI2CwaitForIdle();

} while ( ACKSTAT && !I2CwasTimeout );

DpaApiI2Cstop();