UserTypes.h 420 B

1234567891011121314151617
  1. #ifndef UserTypes_h
  2. #define UserTypes_h
  3. #include "Arduino.h"
  4. #include "SPI.h"
  5. #define USE_SHARED_SPI 1
  6. #define FILE_BASE_NAME "ADXL4G"
  7. // User data types. Modify for your data items.
  8. const uint8_t ACCEL_DIM = 3;
  9. struct data_t {
  10. uint32_t time;
  11. int16_t accel[ACCEL_DIM];
  12. };
  13. void acquireData(data_t* data);
  14. void printData(Print* pr, data_t* data);
  15. void printHeader(Print* pr);
  16. void userSetup();
  17. #endif // UserTypes_h