aboutsummaryrefslogtreecommitdiffstats
path: root/source/adc.hpp
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2021-03-10 19:42:18 -0500
committerClyne Sullivan <clyne@bitgloo.com>2021-03-10 19:42:18 -0500
commit1a7d45b9130251119874df8b15424ec41306d8f2 (patch)
tree6eadd9d6ef2f6ff3e4cf1854088deb8f882a0542 /source/adc.hpp
parenteeeb04fa1a202c68279d4b4ee0a1e3ff34c62c7f (diff)
support H7 and L4; use second ADC for input
Diffstat (limited to 'source/adc.hpp')
-rw-r--r--source/adc.hpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/source/adc.hpp b/source/adc.hpp
index d9a435a..24a7fff 100644
--- a/source/adc.hpp
+++ b/source/adc.hpp
@@ -27,16 +27,19 @@ public:
static void start(adcsample_t *buffer, size_t count, Operation operation);
static void stop();
+ static adcsample_t readAlt(unsigned int id);
+
static void setRate(SClock::Rate rate);
static void setOperation(Operation operation);
private:
static ADCDriver *m_driver;
+ static ADCDriver *m_driver2;
static const ADCConfig m_config;
+ static const ADCConfig m_config2;
static ADCConversionGroup m_group_config;
-
- static std::array<std::array<uint32_t, 2>, 6> m_rate_presets;
+ static ADCConversionGroup m_group_config2;
static adcsample_t *m_current_buffer;
static size_t m_current_buffer_size;