root / hw / bitbang_i2c.h @ bfb811ad
History | View | Annotate | Download (310 Bytes)
1 | 3cd035d8 | Paul Brook | #ifndef BITBANG_I2C_H
|
---|---|---|---|
2 | 3cd035d8 | Paul Brook | #define BITBANG_I2C_H
|
3 | 3cd035d8 | Paul Brook | |
4 | 3cd035d8 | Paul Brook | #include "i2c.h" |
5 | 3cd035d8 | Paul Brook | |
6 | 3cd035d8 | Paul Brook | typedef struct bitbang_i2c_interface bitbang_i2c_interface; |
7 | 3cd035d8 | Paul Brook | |
8 | 3cd035d8 | Paul Brook | #define BITBANG_I2C_SDA 0 |
9 | 3cd035d8 | Paul Brook | #define BITBANG_I2C_SCL 1 |
10 | 3cd035d8 | Paul Brook | |
11 | 3cd035d8 | Paul Brook | bitbang_i2c_interface *bitbang_i2c_init(i2c_bus *bus); |
12 | 3cd035d8 | Paul Brook | int bitbang_i2c_set(bitbang_i2c_interface *i2c, int line, int level); |
13 | 3cd035d8 | Paul Brook | |
14 | 3cd035d8 | Paul Brook | #endif |