imu.h 280 B

12345678910111213141516171819202122
  1. #pragma once
  2. #include <stdbool.h>
  3. #include <furi_hal.h>
  4. #include "imu_lsm6dso.h"
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8. #define ACC_DATA_READY (1 << 0)
  9. #define GYR_DATA_READY (1 << 1)
  10. bool imu_begin();
  11. void imu_end();
  12. int imu_read(double* vec);
  13. #ifdef __cplusplus
  14. }
  15. #endif