#include "i2cps.h"
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
#include <unistd.h>
Go to the source code of this file.
|
int | setI2C (unsigned int index, long slave_addr) |
|
int | unsetI2C (int i2c_fd) |
|
int | writeI2C_asFile (int i2c_fd, unsigned char writebuffer[], unsigned char bytes) |
|
int | readI2C_asFile (int i2c_fd, unsigned char readbuffer[], unsigned char bytes) |
|
◆ readI2C_asFile()
int readI2C_asFile |
( |
int |
i2c_fd, |
|
|
unsigned char |
readbuffer[], |
|
|
unsigned char |
bytes |
|
) |
| |
◆ setI2C()
int setI2C |
( |
unsigned int |
index, |
|
|
long |
slave_addr |
|
) |
| |
◆ unsetI2C()
int unsetI2C |
( |
int |
i2c_fd | ) |
|
◆ writeI2C_asFile()
int writeI2C_asFile |
( |
int |
i2c_fd, |
|
|
unsigned char |
writebuffer[], |
|
|
unsigned char |
bytes |
|
) |
| |