Skip to content

periph/i2c: handle NACK #3366

@LudwigKnuepfer

Description

@LudwigKnuepfer

The I2C peripheral driver interface does not currently handle a slave NACK.

As there are I2C devices which have NACK as a valid part of the communication process, the current interface (which only returns -1 on undefined device given) can not cope with these devices.

I'd suggest adding a -2 for no ACK received to the interface documentation and changing the driver implementations accordingly.

Metadata

Metadata

Assignees

Labels

Area: driversArea: Device driversType: bugThe issue reports a bug / The PR fixes a bug (including spelling errors)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions