Zephyr C++ Toolkit
Loading...
Searching...
No Matches
zct::IAdc Class Referenceabstract

#include <IAdc.hpp>

Inheritance diagram for zct::IAdc:

Public Member Functions

 IAdc (const char *name)
 
 ~IAdc ()
 
virtual int32_t readMv ()=0
 

Protected Attributes

const char * m_name
 

Constructor & Destructor Documentation

◆ IAdc()

zct::IAdc::IAdc ( const char *  name)

◆ ~IAdc()

zct::IAdc::~IAdc ( )

Member Function Documentation

◆ readMv()

virtual int32_t zct::IAdc::readMv ( )
pure virtual

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

Returns
The result of the ADC conversion in mV.

Implemented in zct::AdcMock, and zct::AdcReal.

Member Data Documentation

◆ m_name

const char* zct::IAdc::m_name
protected

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