aboutsummaryrefslogtreecommitdiff
path: root/arduino/ace/ace.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/ace.h
downloadace-e15a7e1267a6f733d734c5d3b59f3acc28bb4b29.tar.gz
ace-e15a7e1267a6f733d734c5d3b59f3acc28bb4b29.tar.bz2
ace-e15a7e1267a6f733d734c5d3b59f3acc28bb4b29.zip
initial commit
Diffstat (limited to 'arduino/ace/ace.h')
-rw-r--r--arduino/ace/ace.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/arduino/ace/ace.h b/arduino/ace/ace.h
new file mode 100644
index 0000000..75b178c
--- /dev/null
+++ b/arduino/ace/ace.h
@@ -0,0 +1,27 @@
+#ifndef ACE_H
+#define ACE_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <stdbool.h>
+#include <inttypes.h>
+#include "framing.h"
+#include "arq.h"
+
+#define SERIAL_BUFFER_SIZE 64
+
+void init_ace0(uint32_t baud, uint32_t extra_time);
+void ace_send0(uint8_t size, const uint8_t* const message);
+void ace_event0(message_event event, int16_t size, const uint8_t* const message);
+
+#define init_ace init_ace0
+#define ace_send ace_send0
+#define ace_event ace_event0
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
+
+#endif /* ACE_H */