28 #ifndef M2M_M2MB_I2C_API_H 29 #define M2M_M2MB_I2C_API_H 55 #define I2C_FLAG_START 0x00000001 56 #define I2C_FLAG_STOP 0x00000002 57 #define I2C_FLAG_WRITE 0x00000004 58 #define I2C_FLAG_READ 0x00000008
SSIZE_T m2mb_i2c_read(INT32 fd, void *buf, SIZE_T nbyte)
Read the I2C device.
INT32 m2mb_i2c_ioctl(INT32 fd, M2MB_I2C_IOCTL_REQUEST_T request,...)
Configure the I2C device.
INT32 m2mb_i2c_open(const CHAR *path, INT32 flags,...)
Open an I2C device.
SSIZE_T m2mb_i2c_write(INT32 fd, const void *buf, SIZE_T nbyte)
Write to I2C device.
INT32 m2mb_i2c_close(INT32 fd)
Closes an I2C device.
UINT32 core_Configuration2
UINT32 core_Configuration1
enum M2MB_I2C_IOCTL_REQUEST M2MB_I2C_IOCTL_REQUEST_T
UINT32 slave_Max_Clock_Stretch_Us