aboutsummaryrefslogtreecommitdiff
path: root/GEOLOC/app/frame.h
diff options
context:
space:
mode:
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