libxr 1.0
Want to be the best embedded framework
|
模拟数字转换器(ADC)基类 More...
#include <adc.hpp>
Public Member Functions | |
ADC ()=default | |
默认构造函数 | |
virtual float | Read ()=0 |
读取 ADC 值 | |
模拟数字转换器(ADC)基类
Abstract base class for Analog-to-Digital Converter (ADC)
该类定义了 ADC 设备的基本接口,所有 ADC 设备应继承此类并实现 Read
方法。 This class defines the basic interface for an ADC device. All ADC devices should inherit from this class and implement the Read
method.
|
default |
默认构造函数
Default constructor
读取 ADC 值
Reads the ADC value
该方法为纯虚函数,子类必须实现此方法以提供具体的 ADC 读取功能。 This is a pure virtual function. Subclasses must implement this method to provide specific ADC reading functionality.
Implemented in LibXR::STM32ADC::Channel.