diff options
| author | Votre Nom <git-account@loicguegan.fr> | 2017-08-30 10:48:11 +0400 |
|---|---|---|
| committer | Votre Nom <git-account@loicguegan.fr> | 2017-08-30 10:48:11 +0400 |
| commit | f37f200792444fee2f74e807acfd5be7c9180cd7 (patch) | |
| tree | 135975e83d27a144d56f27e1ee4dc6fe0fe91af0 /GEOLOC/app/frame.h | |
Init repo
Diffstat (limited to 'GEOLOC/app/frame.h')
| -rw-r--r-- | GEOLOC/app/frame.h | 21 |
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 |
