diff options
Diffstat (limited to 'firmware/x300/include/wb_i2c.h')
-rw-r--r-- | firmware/x300/include/wb_i2c.h | 18 |
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 */ |