summaryrefslogtreecommitdiff
path: root/i/serialplot/serialplot_io.h
diff options
context:
space:
mode:
Diffstat (limited to 'i/serialplot/serialplot_io.h')
-rw-r--r--i/serialplot/serialplot_io.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/i/serialplot/serialplot_io.h b/i/serialplot/serialplot_io.h
new file mode 100644
index 0000000..f7780c6
--- /dev/null
+++ b/i/serialplot/serialplot_io.h
@@ -0,0 +1,21 @@
+#ifndef serialplot_io_h
+#define serialplot_io_h
+
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <termios.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
+
+#define BAUDRATE B115200
+
+extern struct termios oldconf;
+
+int init_serial (char *cvalue);
+void close_serial(int fd);
+int write_serial(int fd,char *command);
+
+#endif