UserTypes.h 361 B

123456789101112131415161718
  1. #ifndef UserTypes_h
  2. #define UserTypes_h
  3. #include "Arduino.h"
  4. #define FILE_BASE_NAME "mpuraw"
  5. struct data_t {
  6. unsigned long time;
  7. int16_t ax;
  8. int16_t ay;
  9. int16_t az;
  10. int16_t gx;
  11. int16_t gy;
  12. int16_t gz;
  13. };
  14. void acquireData(data_t* data);
  15. void printData(Print* pr, data_t* data);
  16. void printHeader(Print* pr);
  17. void userSetup();
  18. #endif // UserTypes_h