#include <stdlib.h>
#include <stdio.h>
#include <fcntl.h>
+#include <stdint.h>
#include "maa.h"
#include "gpio.h"
*
* @return maa_result_t the maa result.
*/
-maa_result_t maa_i2c_read(maa_i2c_context dev, const char *data, int length);
+maa_result_t maa_i2c_read(maa_i2c_context dev, uint8_t *data, int length);
/** Read a single byte from the i2c context
*
*
* @return byte the result of the read or -1 if failed.
*/
-int maa_i2c_read_byte(maa_i2c_context dev);
+uint8_t maa_i2c_read_byte(maa_i2c_context dev);
/** Write to an i2c context
*
*
* @return maa_result_t the maa result.
*/
-maa_result_t maa_i2c_write(maa_i2c_context dev, char *data, int length);
+maa_result_t maa_i2c_write(maa_i2c_context dev, const uint8_t *data, int length);
/** Write a single byte to an i2c context
*
*
* @return maa_result_t the maa result.
*/
-maa_result_t maa_i2c_write_byte(maa_i2c_context dev, int data);
+maa_result_t maa_i2c_write_byte(maa_i2c_context dev, const uint8_t data);
/** Sets the i2c context address.
*