Init repo
This commit is contained in:
commit
f37f200792
31 changed files with 1341 additions and 0 deletions
21
GEOLOC/app/frame.h
Normal file
21
GEOLOC/app/frame.h
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue