Skip to content

I²C Polling (detecting NACKs) #181

Closed
@dbrgn

Description

@dbrgn

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions