pihwm
A lightweight C library for Raspberry Pi hardware modules.
 All Data Structures Files Functions Groups Pages
pi_i2c.h
Go to the documentation of this file.
1 
28 #ifndef PI_I2C_H
29 #define PI_I2C_H
30 
31 int i2c_init ();
32 int i2c_init_name (char *devname);
33 int i2c_select_device (unsigned int fd, unsigned int addr);
34 int i2c_write (unsigned int fd, unsigned int addr, unsigned char *data, unsigned int len);
35 int i2c_read (unsigned int fd, unsigned int addr, unsigned char *data, unsigned int len);
36 
37 #endif