Added i2c buffer size to Wire interface#2292
Added i2c buffer size to Wire interface#2292perotom wants to merge 2 commits intoparticle-iot:developfrom
Conversation
If a custom buffer for i2c is used these functions will give libraries a better ability to determin the i2c buffer size.
| Without getting into the wider PR, lock usage in your |
| @jlovinger-particle Should I close the pull request and open another one? |
I'm actually not on the engineering team so am not sure on the process. Just saw it pop up on my feed and had a quick comment. |
| @perotom You can just update your branch that is the source of this PR at any time while the PR is open. I'll take a look at this later in more detail, but one suggestion is to potentially have a single HAL getter method that would fill in |
Also removed unnecessary locks as a read with no modify is already atomic
Problem
If a custom buffer for i2c is used these functions will give libraries a better ability to determin the i2c buffer size.
Solution
Added two functions to return the assigned buffer size.
Example App
Tested on B-Som platform.
References
Adds to #1112
Completeness