aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/x300/include/wb_i2c.h
diff options
context:
space:
mode:
authormichael-west <michael.west@ettus.com>2014-03-25 15:59:03 -0700
committermichael-west <michael.west@ettus.com>2014-03-25 15:59:03 -0700
commit04292f9b109479b639add31f83fd240a6387f488 (patch)
tree4b8723a4ae63626029704f901ee0083bb23bc1e9 /firmware/x300/include/wb_i2c.h
parent09915aa57bc88099cbcbbe925946ae65bc0ad8f0 (diff)
parentff8a1252f3a51369abe0a165d963b781089ec66c (diff)
downloaduhd-04292f9b109479b639add31f83fd240a6387f488.tar.gz
uhd-04292f9b109479b639add31f83fd240a6387f488.tar.bz2
uhd-04292f9b109479b639add31f83fd240a6387f488.zip
Merge branch 'master' into mwest/b200_docs
Diffstat (limited to 'firmware/x300/include/wb_i2c.h')
-rw-r--r--firmware/x300/include/wb_i2c.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/firmware/x300/include/wb_i2c.h b/firmware/x300/include/wb_i2c.h
new file mode 100644
index 000000000..cb307f373
--- /dev/null
+++ b/firmware/x300/include/wb_i2c.h
@@ -0,0 +1,18 @@
+
+// Copyright 2012 Ettus Research LLC
+
+#ifndef INCLUDED_WB_I2C_H
+#define INCLUDED_WB_I2C_H
+
+#include <stdint.h>
+#include <stddef.h>
+#include <stdbool.h>
+
+void wb_i2c_init(const uint32_t base, const size_t clk_rate);
+
+bool wb_i2c_read(const uint32_t base, const uint8_t i2c_addr, uint8_t *buf, size_t len);
+
+bool wb_i2c_write(const uint32_t base, const uint8_t i2c_addr, const uint8_t *buf, size_t len);
+
+
+#endif /* INCLUDED_WB_I2C_H */