aboutsummaryrefslogtreecommitdiff
path: root/example-cdc/tty.h
diff options
context:
space:
mode:
Diffstat (limited to 'example-cdc/tty.h')
-rw-r--r--example-cdc/tty.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/example-cdc/tty.h b/example-cdc/tty.h
new file mode 100644
index 0000000..a2cee4e
--- /dev/null
+++ b/example-cdc/tty.h
@@ -0,0 +1,7 @@
+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, uint8_t *buf, int count);
+int tty_recv (struct tty *tty, uint8_t *buf, uint32_t *timeout);