![]() |
SatNOGS-COMMS
4.1.0
A COMMS subsystem for CubeSats
|
Sensor device abstraction. More...
#include <sensor.hpp>
Public Member Functions | |
| sensor () | |
| Construct a new sensor object. | |
| ~sensor () | |
| virtual float | vbat ()=0 |
| Get the VBAT from SoCs designated internal ADC channel. | |
| virtual float | vref ()=0 |
| Get the VREF from SoCs designated internal ADC channel. | |
Sensor device abstraction.
This class provides a generic abstraction for accessing internal ADC channel sensor readings of the SoC(e.g.STM32H743XI), such as internal VBAT (battery voltage) and VREF (reference voltage).
Definition at line 40 of file sensor.hpp.
|
inline |
Construct a new sensor object.
Definition at line 47 of file sensor.hpp.
|
inline |
Definition at line 48 of file sensor.hpp.
|
pure virtual |
Get the VBAT from SoCs designated internal ADC channel.
Implemented in satnogs::comms::sensor_bsp.
|
pure virtual |
Get the VREF from SoCs designated internal ADC channel.
Implemented in satnogs::comms::sensor_bsp.