blob: 3a7126d5dee87866b434af60b214e1250cb78297 [file] [log] [blame]
Paul Brook3cd035d2009-11-20 23:37:15 +00001#ifndef BITBANG_I2C_H
2#define BITBANG_I2C_H
3
Paolo Bonzini0d09e412013-02-05 17:06:20 +01004#include "hw/i2c/i2c.h"
Paul Brook3cd035d2009-11-20 23:37:15 +00005
6typedef struct bitbang_i2c_interface bitbang_i2c_interface;
7
8#define BITBANG_I2C_SDA 0
9#define BITBANG_I2C_SCL 1
10
Andreas Färbera5c82852013-08-03 00:18:51 +020011bitbang_i2c_interface *bitbang_i2c_init(I2CBus *bus);
Paul Brook3cd035d2009-11-20 23:37:15 +000012int bitbang_i2c_set(bitbang_i2c_interface *i2c, int line, int level);
13
14#endif