summaryrefslogtreecommitdiff
path: root/src/stream_i2c.h
diff options
context:
space:
mode:
authorAditya Naik2020-07-30 14:16:20 -0400
committerAditya Naik2020-07-30 14:16:20 -0400
commitc8c06aea5199e555235f71acc8547ed2ef0706cf (patch)
treee1d72f836873c9fc99dd200dd8829c6f0046b96f /src/stream_i2c.h
parent70f623d66439a826927b7d2fc9d64ae0cb631b92 (diff)
Stream abstraction
Diffstat (limited to 'src/stream_i2c.h')
-rw-r--r--src/stream_i2c.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/stream_i2c.h b/src/stream_i2c.h
new file mode 100644
index 0000000..beba717
--- /dev/null
+++ b/src/stream_i2c.h
@@ -0,0 +1,11 @@
+#include <stdint.h>
+#include <stddef.h>
+
+typedef enum {
+ DEVICE,
+ TIMEOUT,
+ AF_LIMIT
+} I2C_PROPS;
+
+int i2c_read(uint8_t* buf, size_t count, void **vptr, void *sptr);
+int i2c_write(uint8_t* buf, size_t count, void **vptr, void *sptr);