class IMU nucleo

Dependents:   Coupe-Robotique-FIP-Main

Fork of IMU_FIP by Robotique FIP

Imu.h

Committer:
quentin9696
Date:
2015-04-09
Revision:
1:eb79df94d147
Parent:
0:528e23a13fb7
Child:
2:3088586fe88c

File content as of revision 1:eb79df94d147:

#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;
        volatile AxesRaw_TypeDef *MAG_Value;
        volatile AxesRaw_TypeDef *ACC_Value;
        volatile AxesRaw_TypeDef *GYR_Value;  
};