drv_lsm6ds3tr.h 597 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #ifndef __drv_lsm6ds3tr_h__
  2. #define __drv_lsm6ds3tr_h__
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. /*Includes ------------------------------------------------------*/
  7. #include <stdint.h>
  8. #include <stdio.h>
  9. #include <stdbool.h>
  10. #include "lsm6ds3tr-c_reg.h"
  11. typedef void (*lsm6ds3tr_c_callback)(void*);
  12. typedef struct
  13. {
  14. int16_t gry[3];
  15. int16_t acc[3];
  16. int16_t mag[3];
  17. uint16_t timestamp;
  18. } lsm6ds3tr_c_handle_t;
  19. int LSM6DS3TR_C_Initialize(void);
  20. void LSM6DS3TR_C_Get_9Dof_Data(void);
  21. void LSM6DS3TR_C_Regist(lsm6ds3tr_c_callback cb);
  22. #ifdef __cplusplus
  23. }
  24. #endif
  25. #endif