2019-07-21 03:06 PM
I just want to send an I2C address byte to see if there is a device on the bus that will ACK it. I don't want to send any data bytes after the address byte.
Is there any way to do this? I tried setting NBYTES[7:0] to 0 in the CR2 register but I just get an immediate NAK without any I2C bus activity.
2019-07-21 04:09 PM
The HAL_I2C_IsDeviceReady library function does exactly this.