File:  [Qemu by Fabrice Bellard] / qemu / hw / bitbang_i2c.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:40:15 2018 UTC (16 months, 3 weeks ago) by root
Branches: qemu, MAIN
CVS tags: qemu1101, qemu1001, qemu1000, qemu0151, qemu0150, qemu0141, qemu0140, qemu0130, qemu0125, qemu0124, qemu0123, qemu0122, qemu0121, qemu0120, HEAD
qemu 0.12.0

#ifndef BITBANG_I2C_H
#define BITBANG_I2C_H

#include "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

unix.superglobalmegacorp.com