 |
m2mb API docs
25.21.002
m2mb API sets documentation
|
Go to the documentation of this file.
31 #ifndef M2M_M2MB_I2C_API_H
32 #define M2M_M2MB_I2C_API_H
41 #define I2C_M_WR 0x0000
42 #define I2C_M_RD 0x0001
46 enum M2MB_I2C_IOCTL_REQUEST
48 M2MB_I2C_IOCTL_SET_CFG,
49 M2MB_I2C_IOCTL_GET_CFG,
282 SSIZE_T
m2mb_i2c_write( INT32 fd,
const void *buf, SIZE_T nbyte );
SSIZE_T m2mb_i2c_write(INT32 fd, const void *buf, SIZE_T nbyte)
write to an I2C device
INT32 m2mb_i2c_close(INT32 fd)
close an I2C device
Definition: m2mb_i2c.h:63
Definition: m2mb_i2c.h:55
INT32 m2mb_i2c_open(const CHAR *path, INT32 flags,...)
open an I2C device
INT32 m2mb_i2c_ioctl(INT32 fd, INT32 request,...)
configure, read from and/or write to an I2C device
Definition: m2mb_i2c.h:70
SSIZE_T m2mb_i2c_read(INT32 fd, void *buf, SIZE_T nbyte)
read from an I2C device