aboutsummaryrefslogtreecommitdiff
path: root/arduino/ace_old/link.h
diff options
context:
space:
mode:
Diffstat (limited to 'arduino/ace_old/link.h')
-rw-r--r--arduino/ace_old/link.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/arduino/ace_old/link.h b/arduino/ace_old/link.h
new file mode 100644
index 0000000..797145e
--- /dev/null
+++ b/arduino/ace_old/link.h
@@ -0,0 +1,24 @@
+#ifndef LINK_H
+#define LINK_H
+
+#include <inttypes.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define MAX_PACKET_SIZE 256
+
+typedef struct {
+ uint8_t* data;
+ uint16_t length;
+} packet;
+
+void to_link_layer(packet* s); //implemented in link
+void from_link_layer(packet* r); //should be implemented in transport
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
+
+#endif /* LINK_H */