aboutsummaryrefslogtreecommitdiff
path: root/arduino/ace_old/link.h
diff options
context:
space:
mode:
authorJakob Odersky <jodersky@gmail.com>2013-02-25 19:39:53 +0100
committerJakob Odersky <jodersky@gmail.com>2013-02-25 19:39:53 +0100
commite15a7e1267a6f733d734c5d3b59f3acc28bb4b29 (patch)
tree9d9c513492939c4467c0932a25291a63d787a7ca /arduino/ace_old/link.h
downloadace-e15a7e1267a6f733d734c5d3b59f3acc28bb4b29.tar.gz
ace-e15a7e1267a6f733d734c5d3b59f3acc28bb4b29.tar.bz2
ace-e15a7e1267a6f733d734c5d3b59f3acc28bb4b29.zip
initial commit
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 */