class IMU nucleo

Dependents:   Coupe-Robotique-FIP-Main

Fork of IMU_FIP by Robotique FIP

Imu.h

Committer:
quentin9696
Date:
2015-04-10
Revision:
2:3088586fe88c
Parent:
1:eb79df94d147
Child:
3:89e327e1217f

File content as of revision 2:3088586fe88c:

#include "mbed.h"
#include "x_cube_mems.h"
#include "x_cube_mems_i2c.h"

class Imu : public X_CUBE_MEMS {
    public:
        Imu();
        float getHUM();
        float getTEMP();
        float getPRES();
        AxesRaw_TypeDef* getMAG();
        AxesRaw_TypeDef* getACC();
        AxesRaw_TypeDef* getGYR();       
        
    private: 
        volatile float TEMPERATURE_Value_C;
        volatile float HUMIDITY_Value;
        volatile float PRESSURE_Value;
        AxesRaw_TypeDef *MAG_Value;
        AxesRaw_TypeDef *ACC_Value;
        AxesRaw_TypeDef *GYR_Value;  
};