trikRuntime
trikI2c.cpp File Reference
#include "trikI2c.h"
#include <fcntl.h>
#include <sys/ioctl.h>
#include <linux/i2c-dev.h>
#include <linux/i2c.h>
#include <unistd.h>
#include <QsLog.h>
Include dependency graph for trikI2c.cpp:

Functions

static __s32 i2c_smbus_access (int file, __u8 read_write, __u8 command, __u32 size, union i2c_smbus_data *data)
 
static __s32 i2c_smbus_read_word_data (int file, __u8 command)
 
static __s32 i2c_smbus_read_i2c_block_data (int file, __u8 command, __u8 length, __u8 *values)
 
static __s32 i2c_smbus_write_word_data (int file, __u8 command, __u16 value)
 
static __s32 i2c_smbus_write_byte_data (int file, __u8 command, __u8 value)
 

Function Documentation

static __s32 i2c_smbus_access ( int  file,
__u8  read_write,
__u8  command,
__u32  size,
union i2c_smbus_data *  data 
)
inlinestatic
static __s32 i2c_smbus_read_i2c_block_data ( int  file,
__u8  command,
__u8  length,
__u8 *  values 
)
inlinestatic
static __s32 i2c_smbus_read_word_data ( int  file,
__u8  command 
)
inlinestatic
static __s32 i2c_smbus_write_byte_data ( int  file,
__u8  command,
__u8  value 
)
inlinestatic
static __s32 i2c_smbus_write_word_data ( int  file,
__u8  command,
__u16  value 
)
inlinestatic