BusProviders icon indicating copy to clipboard operation
BusProviders copied to clipboard

Any ways to control ACK and NACK on I2C

Open AlexandrSurkov opened this issue 10 years ago • 2 comments

Hello! Is there any way to control ACK\NACK responses for I2C from C#? I need to simulate some device that respond NACK for START condition when device is busy...

AlexandrSurkov avatar Jul 27 '16 08:07 AlexandrSurkov

If the device fails to acknowledge its slave address, an exception will be thrown. If you wish to handle this in an exception-free way, use I2cDevice.WritePartial/ReadPartial/WriteReadPartial. They will return I2cTransferStatus.SlaveAddressNotAcknowledged if the slave address is not acknowledged.

It is not possible to simulate an I2C device on Windows because we support host mode only. We do not support I2C slave mode.

jordanrh1 avatar Jan 30 '17 20:01 jordanrh1

Answer given - Closing issue

IoTGirl avatar Jan 30 '17 20:01 IoTGirl