SAIT ARIS / Custom_LSM303

Dependents:   LRAT-example-lorawan-REFACTOR-and-CLEAN-Branch

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers accelerometer.h Source File

accelerometer.h

00001 #ifndef ACCELEROMETER_H_
00002 #define ACCELEROMETER_H_
00003 
00004 #include "mbed.h"
00005 
00006 class Accelerometer
00007 {
00008     public:
00009     
00010         /**
00011          */
00012         Accelerometer();
00013         
00014         /**
00015          */
00016         virtual ~Accelerometer();
00017         
00018         /**
00019          */
00020         void setters(I2C *_i2c, char *_buf);
00021         
00022         /**
00023          */
00024         void dumpCfg();
00025         
00026         /**
00027          */
00028         void onIRQ();
00029         
00030         /**
00031          */
00032         void init();
00033         
00034         /**
00035          */
00036         //void read();
00037         
00038         /**
00039          */
00040         char *buf;
00041         
00042     private:
00043         /**
00044          */
00045         I2C *i2c;
00046         
00047         InterruptIn accPin;
00048 };
00049 
00050 #endif