![]() |
SatNOGS-COMMS
4.1.0
A COMMS subsystem for CubeSats
|
#include <bsp.hpp>
Public Member Functions | |
| dac_bsp (const struct device *dac_dev, uint8_t channel, uint8_t resolution) | |
| void | start () |
| A virtual method to start the DAC. | |
| void | stop () |
| A virtual method to stop the DAC. | |
| Public Member Functions inherited from satnogs::comms::lib::bsp::dac | |
| dac (uint16_t resolution, float vref) | |
| Construct a new DAC object. | |
| virtual float | voltage () const |
| Retrieves the latest output voltage of the DAC. | |
| virtual void | set_voltage (float volts) |
| Sets the output voltage of the DAC. | |
| virtual float | vref () const |
| Retrieves the reference voltage of the DAC. | |
Protected Member Functions | |
| void | write (uint32_t x) |
|
inline |
|
inlinevirtual |
A virtual method to start the DAC.
Prepares the DAC for operation.
Implements satnogs::comms::lib::bsp::dac.
|
inlinevirtual |
A virtual method to stop the DAC.
This method must be provided by the child class.
Implements satnogs::comms::lib::bsp::dac.
|
inlineprotectedvirtual |
Implements satnogs::comms::lib::bsp::dac.