Private
Public Access
2
0

i2c: internal structure to mraa_internal_types

* For use in hooks

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
This commit is contained in:
Thomas Ingleby
2014-07-14 17:52:08 +01:00
parent dc7dde857b
commit 00f188c235
2 changed files with 11 additions and 8 deletions

View File

@@ -46,3 +46,14 @@ struct _gpio {
unsigned int reg_bit_pos;
/*@}*/
};
/**
* A structure representing a I2C bus
*/
struct _i2c {
/*@{*/
int hz; /**< frequency of communication */
int fh; /**< the file handle to the /dev/i2c-* device */
int addr; /**< the address of the i2c slave */
/*@}*/
};