4 * Copyright (c) 2012 Andreas Färber
6 * This work is licensed under the terms of the GNU GPL, version 2 or later.
7 * See the COPYING file in the top-level directory.
14 typedef struct I2CAdapter I2CAdapter
;
16 void (*send
)(I2CAdapter
*adapter
, uint8_t addr
,
17 const uint8_t *buf
, uint16_t len
);
18 void (*recv
)(I2CAdapter
*adapter
, uint8_t addr
,
19 uint8_t *buf
, uint16_t len
);
22 void i2c_send(I2CAdapter
*i2c
, uint8_t addr
,
23 const uint8_t *buf
, uint16_t len
);
24 void i2c_recv(I2CAdapter
*i2c
, uint8_t addr
,
25 uint8_t *buf
, uint16_t len
);
28 I2CAdapter
*omap_i2c_create(uint64_t addr
);