SAIT ARIS / Custom_LSM303

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

accelerometer.h

Committer:
Huot87
Date:
2018-09-13
Revision:
1:d33940a636b0
Parent:
0:252a026cb80b

File content as of revision 1:d33940a636b0:

#ifndef ACCELEROMETER_H_
#define ACCELEROMETER_H_

#include "mbed.h"

class Accelerometer
{
    public:
    
        /**
         */
        Accelerometer();
        
        /**
         */
        virtual ~Accelerometer();
        
        /**
         */
        void setters(I2C *_i2c, char *_buf);
        
        /**
         */
        void dumpCfg();
        
        /**
         */
        void onIRQ();
        
        /**
         */
        void init();
        
        /**
         */
        //void read();
        
        /**
         */
        char *buf;
        
    private:
        /**
         */
        I2C *i2c;
        
        InterruptIn accPin;
};

#endif