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 writeto_then_readfrom in a single transaction on u2if #888

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ryanmesh-sd
Copy link

Implemented WRITE_THEN_READ on I2C interface in U2IF (associated PR: adafruit/u2if#12)

This allows reading from specific registers in I2C devices without sending two separate commands from the host, which significantly increases latency between the pointer write and read and causes timeouts in certain I2C devices (like the ones I've been using).

Previous commit failed CI due to changes made by formatter.
@ryanmesh-sd
Copy link
Author

Looks to now pass tests on my branch CI. Would it be better to do this with a fallback to the old (two separate HID reports) method to accommodate U2IF devices using older firmware?

@FoamyGuy
Copy link
Contributor

Looks to now pass tests on my branch CI. Would it be better to do this with a fallback to the old (two separate HID reports) method to accommodate U2IF devices using older firmware?

Yes, I think it would be best for this to have fallback for devices with the older firmware.

Thanks for working on this!

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

Successfully merging this pull request may close these issues.

2 participants