diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2011-07-03 15:34:29 +0200 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2011-07-03 15:35:28 +0200 |
commit | 0f390b743634ef4cdda03da8cb3f175524d59bd0 (patch) | |
tree | 829dd7907fdf11190cb8b153d76bab0a3e8d1c1a /i2csensor.h | |
parent | 1a8771c5d0e23fb91cb926614933405f39049d63 (diff) |
Removed old stuff.
Diffstat (limited to 'i2csensor.h')
-rw-r--r-- | i2csensor.h | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/i2csensor.h b/i2csensor.h deleted file mode 100644 index 1878e16..0000000 --- a/i2csensor.h +++ /dev/null @@ -1,26 +0,0 @@ -#ifndef I2CSENSOR_H -#define I2CSENSOR_H - -#include <stdint.h> - -#include <ch.h> -#include <hal.h> - -class I2CSensor { - private: - static I2CSlaveConfig i2c_slave_conf; - - public: - static void enable_bus(); - - protected: - uint8_t i2c_address; - - void write(uint8_t reg, uint8_t value); - void read(uint8_t reg, size_t len); - - static uint8_t rxdata[8]; - static uint8_t txdata[2]; -}; - -#endif |