summaryrefslogtreecommitdiff
path: root/src/system.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/system.h')
-rw-r--r--src/system.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/system.h b/src/system.h
index 7c0ab80..a2aad25 100644
--- a/src/system.h
+++ b/src/system.h
@@ -10,8 +10,24 @@ class System {
private:
uint16_t want_shutdown;
void shutdown(void);
+ void receive(void);
+
+ enum RxExpect : uint8_t {
+ START1,
+ START2,
+ PATTERN1,
+ PATTERN2,
+ HEADER1,
+ HEADER2,
+ META1,
+ META2,
+ DATA
+ };
+
+ RxExpect rxExpect;
+
public:
- System() { want_shutdown = 0; };
+ System() { want_shutdown = 0; rxExpect = START1; };
/**
* Initial MCU setup. Turns off unused peripherals to save power