aboutsummaryrefslogtreecommitdiff
path: root/example-cdc-gnu-linux/tty.h
diff options
context:
space:
mode:
Diffstat (limited to 'example-cdc-gnu-linux/tty.h')
-rw-r--r--example-cdc-gnu-linux/tty.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/example-cdc-gnu-linux/tty.h b/example-cdc-gnu-linux/tty.h
new file mode 100644
index 0000000..77e7f46
--- /dev/null
+++ b/example-cdc-gnu-linux/tty.h
@@ -0,0 +1,9 @@
+#define LINEBUFSIZE 128
+
+struct tty;
+
+struct tty *tty_open (void);
+void tty_wait_configured (struct tty *tty);
+void tty_wait_connection (struct tty *tty);
+int tty_send (struct tty *tty, const char *buf, int count);
+int tty_recv (struct tty *tty, char *buf, uint32_t *timeout);