conn icon indicating copy to clipboard operation
conn copied to clipboard

I2C send nack

Open elamre opened this issue 3 years ago • 1 comments

Hello, is it possible to send a nack back after reading out data? it defaults on an ACK, but some project I'm working on expects a nack after reading out some bytes. I can't find any way to currently do this in Periph.

elamre avatar Apr 28 '22 12:04 elamre

Depends on the underlying device driver. For linux, I did:

git clone https://github.com/torvalds/linux
cd linux
git checkout v5.17
git grep -i nack -- "**i2c**" | grep -v "^driver"

I couldn't quickly figure out what's the trick.

maruel avatar Apr 28 '22 14:04 maruel