class IMU nucleo

Dependents:   Coupe-Robotique-FIP-Main

Fork of IMU_FIP by Robotique FIP

Committer:
quentin9696
Date:
Thu Apr 09 17:08:14 2015 +0000
Revision:
0:528e23a13fb7
Child:
1:eb79df94d147
bug pointeur :(

Who changed what in which revision?

UserRevisionLine numberNew contents of line
quentin9696 0:528e23a13fb7 1 #include "mbed.h"
quentin9696 0:528e23a13fb7 2 #include "x_cube_mems.h"
quentin9696 0:528e23a13fb7 3 #include "x_cube_mems_i2c.h"
quentin9696 0:528e23a13fb7 4
quentin9696 0:528e23a13fb7 5 class Imu : public X_CUBE_MEMS {
quentin9696 0:528e23a13fb7 6 public:
quentin9696 0:528e23a13fb7 7 Imu();
quentin9696 0:528e23a13fb7 8 float getHUM();
quentin9696 0:528e23a13fb7 9 float getTEMP();
quentin9696 0:528e23a13fb7 10 float getPRES();
quentin9696 0:528e23a13fb7 11 AxesRaw_TypeDef* getMAG();
quentin9696 0:528e23a13fb7 12 AxesRaw_TypeDef* getACC();
quentin9696 0:528e23a13fb7 13 AxesRaw_TypeDef* getGYR();
quentin9696 0:528e23a13fb7 14
quentin9696 0:528e23a13fb7 15 private:
quentin9696 0:528e23a13fb7 16 volatile float TEMPERATURE_Value_C;
quentin9696 0:528e23a13fb7 17 volatile float HUMIDITY_Value;
quentin9696 0:528e23a13fb7 18 volatile float PRESSURE_Value;
quentin9696 0:528e23a13fb7 19 volatile AxesRaw_TypeDef *MAG_Value;
quentin9696 0:528e23a13fb7 20 volatile AxesRaw_TypeDef *ACC_Value;
quentin9696 0:528e23a13fb7 21 volatile AxesRaw_TypeDef *GYR_Value;
quentin9696 0:528e23a13fb7 22 };