Silence unused-variable warning (#2872)
[ExpressLRS.git] / src / lib / DAC / DAC.h
blobb97d66606c042e63240f0fb43f13d91c42f4a2c2
1 #pragma once
3 #include "targets.h"
5 #if defined(POWER_OUTPUT_DAC)
7 typedef enum
9 UNKNOWN = 0,
10 RUNNING = 1,
11 STANDBY = 2
12 } DAC_STATE_;
14 //////////////////////////////////////////////////////
16 class DAC
18 public:
19 void init();
20 void standby();
21 void resume();
22 void setVoltageRegDirect(uint8_t voltReg);
23 void setPower(uint32_t milliVolts);
25 private:
26 DAC_STATE_ m_state;
27 uint8_t m_currVoltageRegVal;
30 extern DAC TxDAC;
31 #endif // defined(POWER_OUTPUT_DAC)