SatNOGS-COMMS  4.1.0
A COMMS subsystem for CubeSats
Loading...
Searching...
No Matches
satnogs::comms::dac_bsp Class Reference

#include <bsp.hpp>

Inheritance diagram for satnogs::comms::dac_bsp:
satnogs::comms::lib::bsp::dac

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)

Detailed Description

Definition at line 312 of file bsp.hpp.

Constructor & Destructor Documentation

◆ dac_bsp()

satnogs::comms::dac_bsp::dac_bsp ( const struct device * dac_dev,
uint8_t channel,
uint8_t resolution )
inline

Definition at line 315 of file bsp.hpp.

Member Function Documentation

◆ start()

void satnogs::comms::dac_bsp::start ( )
inlinevirtual

A virtual method to start the DAC.

Prepares the DAC for operation.

Note
This method must be implemented by the inherited class to configure the DAC and must be invoked before operation.

Implements satnogs::comms::lib::bsp::dac.

Definition at line 325 of file bsp.hpp.

◆ stop()

void satnogs::comms::dac_bsp::stop ( )
inlinevirtual

A virtual method to stop the DAC.

This method must be provided by the child class.

Implements satnogs::comms::lib::bsp::dac.

Definition at line 329 of file bsp.hpp.

◆ write()

void satnogs::comms::dac_bsp::write ( uint32_t x)
inlineprotectedvirtual

Implements satnogs::comms::lib::bsp::dac.

Definition at line 336 of file bsp.hpp.


The documentation for this class was generated from the following file: