-
Notifications
You must be signed in to change notification settings - Fork 7
/
ddm.h
48 lines (39 loc) · 1.34 KB
/
ddm.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
ddm.h - Test library for digital diagnostic monitoring - description
Copyright (c) 2017 OAKKAR7. All right reserved.
By : oakkar7, Myanmar
blog ; okelectronic.wordpress.com
code : https://github.com/oakkar7
*/
// ensure this library description is only included once
#ifndef Test_h
#define Test_h
// include types & constants of Wiring core API
#include <Arduino.h>
//#include "WConstants.h"
//#define byte uint8_t
// library interface description
class ddm
{
// user-accessible "public" interface
public:
float getRX();
float getTX();
float getTemp();
float getVolts();
void getALM(boolean & _temp_hi, boolean & _temp_low, boolean & _vcc_hi, boolean & _vcc_low,boolean & _tx_hi, boolean & _tx_low,boolean & _rx_hi, boolean & _rx_low );
void getWARN(boolean & _temp_hi_warn, boolean & _temp_low_warn, boolean & _vcc_hi_warn, boolean & _vcc_low_warn,boolean & _tx_hi_warn, boolean & _tx_low_warn,boolean & _rx_hi_warn, boolean & _rx_low_warn );
uint16_t calibrateRXpower();
void getINFO();
void debugDDM();
//uint8_t DDM_Read(unsigned int address);
void DDM_All_Read(void);
//Test(int);
//void doSomething(void);
// library-accessible "private" interface
private:
//int value;
//void doSomethingSecret(void);
uint8_t DDM_Read(unsigned int address);
};
#endif