diff options
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_ |