diff options
author | Clyne Sullivan <clyne@bitgloo.com> | 2020-08-20 17:00:55 -0400 |
---|---|---|
committer | Clyne Sullivan <clyne@bitgloo.com> | 2020-08-20 17:00:55 -0400 |
commit | 2ceb20f4d48a8f163528f86fda484e977438bc80 (patch) | |
tree | 66555959fc0597a7ef2284c8eb3cec4b0d717d3a /source/adc.hpp | |
parent | 7f59ca704b6f3c0ad254d391a123961aa0a86284 (diff) |
added adc stream framework
Diffstat (limited to 'source/adc.hpp')
-rw-r--r-- | source/adc.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/adc.hpp b/source/adc.hpp index 4c3836e..15e343a 100644 --- a/source/adc.hpp +++ b/source/adc.hpp @@ -25,8 +25,12 @@ enum class ADCRate { R640P5 }; +using adc_operation_t = void (*)(adcsample_t *buffer, size_t count); + void adc_init(); adcsample_t *adc_read(adcsample_t *buffer, size_t count); +void adc_read_start(adc_operation_t operation_func, adcsample_t *buffer, size_t count); +void adc_read_stop(); void adc_set_rate(ADCRate rate); #endif // STMDSP_ADC_HPP_ |