aboutsummaryrefslogtreecommitdiff
path: root/hw/bitbang_i2c.h
blob: e86062742c6f810037df10ab6ab54e3cf0414515 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef BITBANG_I2C_H
#define BITBANG_I2C_H

#include "hw/i2c.h"

typedef struct bitbang_i2c_interface bitbang_i2c_interface;

#define BITBANG_I2C_SDA 0
#define BITBANG_I2C_SCL 1

bitbang_i2c_interface *bitbang_i2c_init(i2c_bus *bus);
int bitbang_i2c_set(bitbang_i2c_interface *i2c, int line, int level);

#endif