Project

General

Profile

Raspberry PI GPIO Scol plugin
rpii2c.h
1
2#ifndef RPII2C_H
3#define RPII2C_H
4
5class RpiI2C
6{
7public:
8 RpiI2C();
9
10 RpiI2C(int deviceId);
11
12 ~RpiI2C();
13
14 int Read();
15
16 void Write(int value);
17
18 void WriteReg8(int reg, int value);
19
20 int ReadReg8(int reg);
21
22 void WriteReg16(int reg, int value);
23
24 int ReadReg16(int reg);
25
26private:
27 int mDeviceId;
28 int mFileHandler;
29};
30
31#endif //RPII2C_H
Definition rpii2c.h:6