bebenlebricolo / bebenlebricolo/LabBenchPowerSupply

I2C driver : add a function to retrieve last transaction result

Open
#20 0 comments 0 reactions 1 assignee Claimed by @bebenlebricolo View on GitHub
enhancement
Dominant language
C
Stars
4
Forks
0
PR merge metrics
No merged PRs in 30d

Description

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)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.