![]() |
SatNOGS-COMMS
4.1.0
A COMMS subsystem for CubeSats
|
ADC device abstraction. More...
#include <adc.hpp>
Public Member Functions | |
| adc (uint16_t resolution, float vref) | |
| Construct a new ADC object. | |
| virtual void | start ()=0 |
| Starts the ADC. | |
| virtual void | stop ()=0 |
| Stops the ADC. | |
| virtual uint32_t | read ()=0 |
| Get the ADC value. | |
| virtual float | voltage () |
| Get the ADC voltage. | |
| uint32_t | resolution () const |
| Get the ADC resolution. | |
| float | vref () const |
| Get the ADC voltage reference. | |
ADC device abstraction.
This class provides a generic ADC (Analog-to-Digital Converter) abstraction.
|
inline |
|
pure virtual |
Get the ADC value.
Implemented in satnogs::comms::adc_bsp.
|
inline |
|
pure virtual |
Starts the ADC.
Implemented in satnogs::comms::adc_bsp.
|
pure virtual |
Stops the ADC.
Implemented in satnogs::comms::adc_bsp.
|
inlinevirtual |
Get the ADC voltage.
Reimplemented in satnogs::comms::adc_bsp.
|
inline |