aboutsummaryrefslogtreecommitdiff
path: root/GEOLOC/app/frame.h
diff options
context:
space:
mode:
authorVotre Nom <git-account@loicguegan.fr>2017-08-30 10:48:11 +0400
committerVotre Nom <git-account@loicguegan.fr>2017-08-30 10:48:11 +0400
commitf37f200792444fee2f74e807acfd5be7c9180cd7 (patch)
tree135975e83d27a144d56f27e1ee4dc6fe0fe91af0 /GEOLOC/app/frame.h
Init repo
Diffstat (limited to 'GEOLOC/app/frame.h')
-rw-r--r--GEOLOC/app/frame.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/GEOLOC/app/frame.h b/GEOLOC/app/frame.h
new file mode 100644
index 0000000..27a76cf
--- /dev/null
+++ b/GEOLOC/app/frame.h
@@ -0,0 +1,21 @@
+#ifndef frame_h
+#define frame_h
+
+#define FRAME_SIZE 10
+#define FRAME_DATA_SIZE 8
+
+#include "../lib/types.h"
+#include "../lib/dragino.h"
+#include "../lib/config.h"
+
+typedef struct Frame Frame;
+struct Frame {
+ byte id;
+ byte stamp;
+ byte data[FRAME_DATA_SIZE];
+};
+
+void pushFrame(Frame frame);
+Frame pullFrame();
+
+#endif