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 driver : add a function to retrieve last transaction result #20

Open
bebenlebricolo opened this issue Jun 5, 2020 · 0 comments
Open
Assignees
Labels
enhancement New feature or request

Comments

@bebenlebricolo
Copy link
Owner

When a transaction is performed (in master and slave mode), internal state is set to I2C_STATE_READY once the transaction completes.

However, we'll never know if that transaction went fine, maybe it has stopped because the device could not identify any slave, so there could be many reasons why a transaction would stop/complete.
For instance, (non-exhaustive list), those reasons may be implemented :

  • I2C_TRANSACTION_COMPLETED_FINE (everything went fine)
  • I2C_TRANSACTION_COMPLETED_NO_SLAVE_FOUND (target slave did not respond, master mode only)
  • I2C_TRANSACTION_COMPLETED_MAX_RETRIES_HIT (too much nack sent/received)
@bebenlebricolo bebenlebricolo added the enhancement New feature or request label Jun 5, 2020
@bebenlebricolo bebenlebricolo self-assigned this Jun 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant