aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/x300/include/wb_i2c.h
blob: cb307f37301f956e3f77e366d1b9001fdb841ad7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 */