![]() |
SatNOGS-COMMS
4.1.0
A COMMS subsystem for CubeSats
|
#include <bsp.hpp>
Public Member Functions | |
| adc_bsp (const struct adc_dt_spec &adc_channel) | |
| void | start () |
| Starts the ADC. | |
| void | stop () |
| Stops the ADC. | |
| uint32_t | read () |
| Get the ADC value. | |
| float | voltage () |
| Get the ADC voltage. | |
| Public Member Functions inherited from satnogs::comms::lib::bsp::adc | |
| adc (uint16_t resolution, float vref) | |
| Construct a new ADC object. | |
| uint32_t | resolution () const |
| Get the ADC resolution. | |
| float | vref () const |
| Get the ADC voltage reference. | |
| satnogs::comms::adc_bsp::adc_bsp | ( | const struct adc_dt_spec & | adc_channel | ) |
|
virtual |
Get the ADC value.
Implements satnogs::comms::lib::bsp::adc.
|
virtual |
|
virtual |
|
virtual |
Get the ADC voltage.
Reimplemented from satnogs::comms::lib::bsp::adc.