aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/x300/include/wb_i2c.h
diff options
context:
space:
mode:
authorBen Hilburn <ben.hilburn@ettus.com>2014-02-04 11:04:07 -0800
committerBen Hilburn <ben.hilburn@ettus.com>2014-02-04 11:04:07 -0800
commit178ac3f1c9950d383c8f64b3df464c0f943c4a23 (patch)
tree318ed621a7b59b7d34d4ce6e4a92f73f0bcef509 /firmware/x300/include/wb_i2c.h
parent2718ac110fa931cc29daf7cb3dc5ab6230ee02ab (diff)
downloaduhd-178ac3f1c9950d383c8f64b3df464c0f943c4a23.tar.gz
uhd-178ac3f1c9950d383c8f64b3df464c0f943c4a23.tar.bz2
uhd-178ac3f1c9950d383c8f64b3df464c0f943c4a23.zip
Merging USRP X300 and X310 support!!
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 */