ADC basic functionality finished

This commit is contained in:
Ea-r-th
2025-09-22 19:47:15 -07:00
parent f980e62407
commit 8214617e3a
4 changed files with 21 additions and 5 deletions

View File

@@ -31,7 +31,7 @@ public:
/// \param numChannels Number of channels to convert
/// \param result Pointer to store converted channel results in
/// \param time ADC_SampleTime - amount of clock cycles per conversion
void singleConvertSingle(ADC_Channel* channels, const int numChannels, uint16_t* result, ADC_SampleTime time = ADC_SampleTime::C239);
void multiConvertSingle(ADC_Channel* channels, const int numChannels, uint16_t* result, ADC_SampleTime time = ADC_SampleTime::C239);
@@ -44,8 +44,7 @@ private:
};
#define SHAL_ADC(x) ADCManager::getByIndex(x-1)
class ADCManager{
@@ -53,6 +52,9 @@ public:
static SHAL_ADC& get(ADC_Key key);
static SHAL_ADC& getByIndex(int index);
ADCManager() = delete;
private: