Private
Public Access
2
0

maa: Initial commit of maa, a python and nodejs I2C skeleton only

This commit is contained in:
Brendan Le Foll
2014-04-08 18:43:26 +01:00
commit 00ba95bac0
31 changed files with 1055 additions and 0 deletions

16
src/maa.i Normal file
View File

@@ -0,0 +1,16 @@
// Now list ANSI C/C++ declarations
int get_version();
namespace maa {
class I2C {
public:
I2C(unsigned int sda, unsigned int scl);
void frequency(int hz);
int read(int address, char *data, int length, bool repeated = false);
int read(int ack);
int write(int address, const char *data, int length, bool repeated = false);
int write(int data);
void start(void);
void stop(void);
};
};