repo.or.cz
/
ExpressLRS.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Silence unused-variable warning (#2872)
[ExpressLRS.git]
/
src
/
lib
/
DAC
/
DAC.h
blob
b97d66606c042e63240f0fb43f13d91c42f4a2c2
1
#pragma once
2
3
#include
"targets.h"
4
5
#if defined(POWER_OUTPUT_DAC)
6
7
typedef
enum
8
{
9
UNKNOWN
=
0
,
10
RUNNING
=
1
,
11
STANDBY
=
2
12
}
DAC_STATE_
;
13
14
//////////////////////////////////////////////////////
15
16
class
DAC
17
{
18
public
:
19
void
init
();
20
void
standby
();
21
void
resume
();
22
void
setVoltageRegDirect
(
uint8_t
voltReg
);
23
void
setPower
(
uint32_t
milliVolts
);
24
25
private
:
26
DAC_STATE_ m_state
;
27
uint8_t
m_currVoltageRegVal
;
28
};
29
30
extern
DAC TxDAC
;
31
#endif
// defined(POWER_OUTPUT_DAC)