Is there a hardware agnostic way for a driver to poll an I2C bus and return the information whether or not a NACK was received?
This seems possible in the concrete HAL implementations (e.g. in the stm32l0xx-hal), but embedded-hal doesn't seem to offer any predefined errors.
Right now I'm simply using a blocking delay to wait the max duration until a sensor measurement is ready, but polling would be cleaner.
Is there a hardware agnostic way for a driver to poll an I2C bus and return the information whether or not a NACK was received?
This seems possible in the concrete HAL implementations (e.g. in the
stm32l0xx-hal), butembedded-haldoesn't seem to offer any predefined errors.Right now I'm simply using a blocking delay to wait the max duration until a sensor measurement is ready, but polling would be cleaner.