AnsweredAssumed Answered

Querying A Device on the TWI

Question asked by spflanze on Jun 14, 2012
Latest reply on Jun 19, 2012 by mjohnson

I am using the BF547's TWI interface to control a AD5272 digital potentiometer. There is a setting I need to read back from the AD5272. This requires a command be sent to the AD5272 for the setting I need to read back, and then I need to read the AD5272 output.


If I send the command using adi_dev_Write() and immediately follow it with adi_dev_Read() will adi_dev_Read() block until adi_dev_Write() has finished writing?. Or do I need to execute adi_dev_Read() in a call back that is triggered when the hardware completes the write?