diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2011-07-03 17:11:47 +0200 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2011-07-03 17:11:47 +0200 |
commit | 865a74dd0f02b46c6cc37a5c33314baaf90fa6e2 (patch) | |
tree | 85ead7b9ae9dbbf476b587a31328530183550688 /i2c.h | |
parent | 4cdc0c7e9827b06ccb6ee96784b71d54b27017b3 (diff) |
Moved peripheral classes to seperate files.
Diffstat (limited to 'i2c.h')
-rw-r--r-- | i2c.h | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -0,0 +1,16 @@ +#ifndef I2C_H +#define I2C_H + +#include <stdint.h> + +class I2C { + public: + void enable(); + + void write_reg(uint8_t addr, uint8_t reg, uint8_t data); + void read_reg(uint8_t addr, uint8_t reg, uint8_t len, uint8_t* buf); +}; + + + +#endif |