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

#include <bsp.hpp>

Inheritance diagram for satnogs::comms::adc_bsp:
satnogs::comms::lib::bsp::adc

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.

Detailed Description

Definition at line 289 of file bsp.hpp.

Constructor & Destructor Documentation

◆ adc_bsp()

satnogs::comms::adc_bsp::adc_bsp ( const struct adc_dt_spec & adc_channel)

Definition at line 159 of file bsp.cpp.

Member Function Documentation

◆ read()

uint32_t satnogs::comms::adc_bsp::read ( )
virtual

Get the ADC value.

Returns
uint32_t the ADC latest conversion

Implements satnogs::comms::lib::bsp::adc.

Definition at line 194 of file bsp.cpp.

◆ start()

void satnogs::comms::adc_bsp::start ( )
virtual

Starts the ADC.

Implements satnogs::comms::lib::bsp::adc.

Definition at line 184 of file bsp.cpp.

◆ stop()

void satnogs::comms::adc_bsp::stop ( )
virtual

Stops the ADC.

Implements satnogs::comms::lib::bsp::adc.

Definition at line 189 of file bsp.cpp.

◆ voltage()

float satnogs::comms::adc_bsp::voltage ( )
virtual

Get the ADC voltage.

Returns
float the ADC latest voltage in V

Reimplemented from satnogs::comms::lib::bsp::adc.

Definition at line 201 of file bsp.cpp.


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