Wombat Environmental Node 1.0
An environmental node for SDI-12 and digital sensors.
Loading...
Searching...
No Matches
CAT_M1.h
Go to the documentation of this file.
1#ifndef ESP32_DEBUGGER_CAT_M1_H
2#define ESP32_DEBUGGER_CAT_M1_H
3
4#include <Wire.h>
5#include <TCA9534.h>
6
7#define LTE_VCC 0x83
8#define LTE_PWR_ON 0x80
9
10#define LTE_Serial Serial1
11
12class CAT_M1 {
14
15public:
16 CAT_M1() = default;
17 ~CAT_M1() = default;
18
19 void begin(TCA9534& tca9534);
20 void power_supply(bool state);
21 void device_on();
22 void device_off();
23 bool restart();
24 void interface();
25
26 bool make_ready(void);
27
28 bool is_powered(void) { return power_on; }
29
30private:
32};
33
34extern CAT_M1 cat_m1;
35
36#endif //ESP32_DEBUGGER_CAT_M1_H
CAT_M1 cat_m1
Definition: CAT_M1.cpp:8
Definition: CAT_M1.h:12
bool power_on
Definition: CAT_M1.h:31
void device_off()
Definition: CAT_M1.cpp:40
void power_supply(bool state)
Definition: CAT_M1.cpp:26
~CAT_M1()=default
bool make_ready(void)
Definition: CAT_M1.cpp:82
void device_on()
Definition: CAT_M1.cpp:33
CAT_M1()=default
TCA9534 * io_expander
Definition: CAT_M1.h:13
void interface()
Definition: CAT_M1.cpp:69
bool restart()
Definition: CAT_M1.cpp:47
bool is_powered(void)
Definition: CAT_M1.h:28
void begin(TCA9534 &tca9534)
Definition: CAT_M1.cpp:10
Definition: TCA9534.h:9