From f37f200792444fee2f74e807acfd5be7c9180cd7 Mon Sep 17 00:00:00 2001 From: Votre Nom Date: Wed, 30 Aug 2017 10:48:11 +0400 Subject: Init repo --- GEOLOC/app/frame.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 GEOLOC/app/frame.h (limited to 'GEOLOC/app/frame.h') 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 -- cgit v1.2.3