-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgcio.h
47 lines (35 loc) · 1023 Bytes
/
gcio.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
// gcio.h
#ifndef _GCIO_h
#define _GCIO_h
#if defined(ARDUINO) && ARDUINO >= 100
#include "arduino.h"
#else
#include "WProgram.h"
#endif
#include "stdint.h"
class GC {
private:
public:
struct DATA {
uint8_t speakerState;
uint8_t loggingState;
//uint8_t alarmState;
uint8_t geigerTube;
uint8_t logInterval;
//uint8_t wifiState;
uint8_t wifiMode;
char ssid[17];
char password[17];
uint32_t unitID = 0x20AA0001;
//uint16_t batteryVoltage; // voltage on battery in millivolts
uint16_t inverterVoltage; // high voltage produced by the inverter in volts
//uint16_t inverterDuty; // inverter driver signal duty cycle in percents per millivolt
uint16_t geigerCPS;
uint32_t geigerCPM; // radiation in Counts Per Minute CPM
double geigerDose; // radiation dose approximated to equivalent dose based on Geiger tube factor
};
DATA gcdata;
void handleMonitor();
void handleConfig();
};
#endif