Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I2C slave library : Restart sequence when a register address writes is done before reading #792

Open
fchaxel opened this issue Sep 22, 2023 · 0 comments
Labels

Comments

@fchaxel
Copy link

fchaxel commented Sep 22, 2023

Hi,

Using Wire for I2C slave implementation one can see that when a master is using the classical register Write adress followed by a restart and a write sequence, we cannot get back the writen adress !

In
void TwoWire::onService(void)

if (_p_twis->EVENTS_READ)

if the amount of receive data is copied into the rx RingBuffer header it will be available for the end user to get back theise data in it's read event handler

**rxBuffer._iHead = _p_twis->RXD.AMOUNT;**

I don't see any side effect of this small addition.

Bye.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant