maa: Initial commit of maa, a python and nodejs I2C skeleton only
This commit is contained in:
16
src/maa.i
Normal file
16
src/maa.i
Normal 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);
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user