-
Notifications
You must be signed in to change notification settings - Fork 1
Readregion api change #29
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
Conversation
Push changes to working branch.
Merge over.
merge main to adderr
Returns a proper error code now. ReadBytes returns number of bytes read.
…parkFun_Toolkit into readregion_api_change
This matches most implementations of modern I2C devices. By sending a stop command after sending the device register address rather than a repeat start, you end the transaction early and leave the bus in an odd state. This corrects this and also corrects how the continued read of values in the In my experience this is the default behavior, and less capable devices should |
Add include directive.
Add to docs for pointing out enabling repeat start.
Should we use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good!
Should we use region in byte? Nah... ;-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Adds in gitignore and gitattributes files.
Rework readRegisterRegion to return error type and have an output argument for the number of bytes read.
Makes default stop value false so as to not send a stop mid-read.
Make readRegisterRegion take in a reference rather than a pointer.
Rev to 0.9.0.