 |
m2mb API docs
25.30.003
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
362 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 data to a connected I2C device.
UINT8 sdaPin
Definition: m2mb_i2c.h:86
INT32 m2mb_i2c_close(INT32 fd)
Close an I2C device.
UINT32 nmsgs
Definition: m2mb_i2c.h:78
M2MB_I2C_IOCTL_REQUEST
enum used to access I2C configuration
Definition: m2mb_i2c.h:49
Definition: m2mb_i2c.h:51
UINT16 len
Definition: m2mb_i2c.h:67
M2MB_I2C_MSG * msgs
Definition: m2mb_i2c.h:77
Definition: m2mb_i2c.h:53
UINT16 flags
Definition: m2mb_i2c.h:66
UINT8 * buf
Definition: m2mb_i2c.h:68
UINT8 sclPin
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:75
Structure to be used as container for a write or read operation in I2C Combined mode (M2MB_I2C_IOCTL_...
Definition: m2mb_i2c.h:64
INT32 m2mb_i2c_open(const CHAR *path, INT32 flags,...)
open an I2C device
UINT8 registerId
Definition: m2mb_i2c.h:88
M2MB_I2C_RDWR_IOCTL_DATA * rw_param
Definition: m2mb_i2c.h:90
INT32 m2mb_i2c_ioctl(INT32 fd, INT32 request,...)
configure, read from and/or write to an I2C device
Definition: m2mb_i2c.h:52
I2C device configuration structure.
Definition: m2mb_i2c.h:84
SSIZE_T m2mb_i2c_read(INT32 fd, void *buf, SIZE_T nbyte)
Read data from a connected I2C device.