|
| virtual | ~BaseAdc () noexcept=default |
| | Virtual destructor.
|
| |
| | BaseAdc (const BaseAdc &)=delete |
| |
| BaseAdc & | operator= (const BaseAdc &)=delete |
| |
| | BaseAdc (BaseAdc &&) noexcept=default |
| |
| BaseAdc & | operator= (BaseAdc &&) noexcept=default |
| |
| bool | EnsureInitialized () noexcept |
| | Ensures that the ADC is initialized (lazy initialization).
|
| |
| bool | EnsureDeinitialized () noexcept |
| | Ensures that the ADC is initialized (lazy initialization).
|
| |
| bool | IsInitialized () const noexcept |
| | Checks if the class is initialized.
|
| |
| virtual bool | Initialize () noexcept=0 |
| | Initializes the ADC peripheral (must be implemented by derived classes).
|
| |
| virtual bool | Deinitialize () noexcept=0 |
| | Deinitializes the ADC peripheral (must be implemented by derived classes)..
|
| |
| virtual hf_u8_t | GetMaxChannels () const noexcept=0 |
| | Get the maximum number of channels supported by this ADC.
|
| |
| virtual bool | IsChannelAvailable (hf_channel_id_t channel_id) const noexcept=0 |
| | Check if a specific channel is available.
|
| |
| virtual hf_adc_err_t | ReadChannelV (hf_channel_id_t channel_id, float &channel_reading_v, hf_u8_t numOfSamplesToAvg=1, hf_time_t timeBetweenSamples=0) noexcept=0 |
| | Read channel voltage.
|
| |
| virtual hf_adc_err_t | ReadChannelCount (hf_channel_id_t channel_id, hf_u32_t &channel_reading_count, hf_u8_t numOfSamplesToAvg=1, hf_time_t timeBetweenSamples=0) noexcept=0 |
| | Read channel count (raw ADC value).
|
| |
| virtual hf_adc_err_t | ReadChannel (hf_channel_id_t channel_id, hf_u32_t &channel_reading_count, float &channel_reading_v, hf_u8_t numOfSamplesToAvg=1, hf_time_t timeBetweenSamples=0) noexcept=0 |
| | Read both channel count and voltage.
|
| |
| virtual hf_adc_err_t | ReadMultipleChannels (const hf_channel_id_t *channel_ids, hf_u8_t num_channels, hf_u32_t *readings, float *voltages) noexcept |
| | Read multiple channels simultaneously.
|
| |
| virtual hf_adc_err_t | ResetStatistics () noexcept |
| | Reset ADC operation statistics.
|
| |
| virtual hf_adc_err_t | ResetDiagnostics () noexcept |
| | Reset ADC diagnostic information.
|
| |
| virtual hf_adc_err_t | GetStatistics (hf_adc_statistics_t &statistics) noexcept |
| | Get ADC operation statistics.
|
| |
| virtual hf_adc_err_t | GetDiagnostics (hf_adc_diagnostics_t &diagnostics) noexcept |
| | Get ADC diagnostic information.
|
| |
Base class for ADCs.
This class provides a common interface for all ADC implementations in the HardFOC system. It supports lazy initialization, robust error handling, and consistent API across different ADC hardware.