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

TWI: Improve asynchronous mode #401

Open
mikaelpatel opened this issue Aug 14, 2015 · 1 comment
Open

TWI: Improve asynchronous mode #401

mikaelpatel opened this issue Aug 14, 2015 · 1 comment

Comments

@mikaelpatel
Copy link
Owner

Current implementation will synchronize with driver on twi.end(). An Event handler is possible but could be a callback to the driver instead which would be responsible for events in asynchronous mode.

The TWI::Driver class would be extended with a new virtual member function on_completion() which is called by the TWI state machine. The default implementation would do an event push if a handler is defined.

@mikaelpatel mikaelpatel changed the title Improve TWI synchronous mode Improve TWI asynchronous mode Aug 14, 2015
@mikaelpatel
Copy link
Owner Author

Initial refactoring; see commit 173c3eb.

@mikaelpatel mikaelpatel changed the title Improve TWI asynchronous mode TWI: Improve asynchronous mode Oct 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant