Zephyr C++ Toolkit
Loading...
Searching...
No Matches
zct::AdcReal Class Reference

#include <AdcReal.hpp>

Inheritance diagram for zct::AdcReal:
Collaboration diagram for zct::AdcReal:

Public Member Functions

 AdcReal (const char *name, const struct adc_dt_spec *adcSpec)
 
 ~AdcReal ()
 
int32_t readMv () override
 
- Public Member Functions inherited from zct::IAdc
 IAdc (const char *name)
 
 ~IAdc ()
 

Protected Attributes

const struct adc_dt_spec * m_adcSpec
 
- Protected Attributes inherited from zct::IAdc
const char * m_name
 

Constructor & Destructor Documentation

◆ AdcReal()

zct::AdcReal::AdcReal ( const char *  name,
const struct adc_dt_spec *  adcSpec 
)

◆ ~AdcReal()

zct::AdcReal::~AdcReal ( )

Member Function Documentation

◆ readMv()

int32_t zct::AdcReal::readMv ( )
overridevirtual

Perform a single ADC conversion on the channel and return the result in mV.

Returns
The result of the ADC conversion in mV.

Implements zct::IAdc.

Member Data Documentation

◆ m_adcSpec

const struct adc_dt_spec* zct::AdcReal::m_adcSpec
protected

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