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

Add optional conversion complete callback to AdcHandle::Start() #632

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TheSlowGrowth
Copy link
Contributor

@TheSlowGrowth TheSlowGrowth commented Jul 29, 2024

This PR adds a "conversion complete" callback to the AdcHandle similar to the ones found in other drivers.
This would allow users to actually know when a conversion is complete, as opposed to blindly reading the data off the AdcHandle without knowing if it's actually new.
A different solution would be to provide a "running counter" that increments on each completed conversion, as a means of identifying from the outside that new data is available.
This PR is just a proposal, of course. Happy to discuss other approaches!

Copy link

github-actions bot commented Jul 29, 2024

Test Results

151 tests  ±0   151 ✅ ±0   0s ⏱️ ±0s
 16 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 29be422. ± Comparison against base commit f7727ed.

♻️ This comment has been updated with latest results.

@TheSlowGrowth TheSlowGrowth force-pushed the feature/TSG/adc-conversion-complete-callback branch from 4fdf54c to 29be422 Compare July 29, 2024 17:52
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.

1 participant