libxr
Embedded C++ framework for bare-metal, RTOS and Linux
Loading...
Searching...
No Matches
dac.hpp
1#pragma once
2
3#include "libxr.hpp"
4
5namespace LibXR
6{
7
17class DAC
18{
19 public:
23 DAC() = default;
24
35 virtual ErrorCode Write(float voltage) = 0;
36};
37
38} // namespace LibXR
数字模拟转换器(DAC)基类 Abstract base class for Digital-to-Analog Converter (DAC)
Definition dac.hpp:18
virtual ErrorCode Write(float voltage)=0
输出 DAC 电压 / Outputs the DAC voltage
DAC()=default
默认构造函数 / Default constructor
LibXR 命名空间 / LibXR namespace.
Definition ch32_can.hpp:14
ErrorCode
定义错误码枚举 / Defines an enumeration for error codes