* For use in hooks
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
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 */
+ /*@}*/
+};
#include "smbus.h"
#include "mraa_internal.h"
-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 */
- /*@}*/
-};
-
mraa_i2c_context
mraa_i2c_init(int bus)
{