]> Git Repo - qemu.git/blob - tests/libi2c.c
Merge remote-tracking branch 'kraxel/chardev.1' into staging
[qemu.git] / tests / libi2c.c
1 /*
2  * QTest I2C driver
3  *
4  * Copyright (c) 2012 Andreas Färber
5  *
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.
8  */
9 #include "libi2c.h"
10 #include "libqtest.h"
11
12 void i2c_send(I2CAdapter *i2c, uint8_t addr,
13               const uint8_t *buf, uint16_t len)
14 {
15     i2c->send(i2c, addr, buf, len);
16 }
17
18 void i2c_recv(I2CAdapter *i2c, uint8_t addr,
19               uint8_t *buf, uint16_t len)
20 {
21     i2c->recv(i2c, addr, buf, len);
22 }
This page took 0.025377 seconds and 4 git commands to generate.