 |
m2mb API docs
25.30.004.0
m2mb API sets documentation
|
Go to the documentation of this file.
32 #ifndef M2M_M2MB_I2C_API_H
33 #define M2M_M2MB_I2C_API_H
42 #define I2C_M_WR 0x0000
43 #define I2C_M_RD 0x0001
363 SSIZE_T
m2mb_i2c_write( INT32 fd,
const void *buf, SIZE_T nbyte );
UINT8 * buf
Definition: m2mb_i2c.h:69
SSIZE_T m2mb_i2c_write(INT32 fd, const void *buf, SIZE_T nbyte)
Write data to a connected I2C device.
M2MB_I2C_RDWR_IOCTL_DATA * rw_param
Definition: m2mb_i2c.h:91
INT32 m2mb_i2c_close(INT32 fd)
Close an I2C device.
M2MB_I2C_IOCTL_REQUEST
enum used to access I2C configuration
Definition: m2mb_i2c.h:50
Definition: m2mb_i2c.h:52
UINT16 len
Definition: m2mb_i2c.h:68
Definition: m2mb_i2c.h:54
M2MB_I2C_MSG * msgs
Definition: m2mb_i2c.h:78
UINT8 sdaPin
Definition: m2mb_i2c.h:87
Structure to be used with the M2MB_I2C_IOCTL_RDWR option in m2mb_i2c_ioctl call.
Definition: m2mb_i2c.h:76
Structure to be used as container for a write or read operation in I2C Combined mode (M2MB_I2C_IOCTL_...
Definition: m2mb_i2c.h:65
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:53
I2C device configuration structure.
Definition: m2mb_i2c.h:85
UINT8 sclPin
Definition: m2mb_i2c.h:88
UINT8 registerId
Definition: m2mb_i2c.h:89
UINT32 nmsgs
Definition: m2mb_i2c.h:79
SSIZE_T m2mb_i2c_read(INT32 fd, void *buf, SIZE_T nbyte)
Read data from a connected I2C device.
UINT16 flags
Definition: m2mb_i2c.h:67