bma253.h 555 B

123456789101112131415161718192021222324252627282930313233343536
  1. /**
  2. * @brief : this
  3. * @file : bma253.h
  4. * @version : v0.0.1
  5. * change logs :
  6. */
  7. #ifndef __BMA_253_H__
  8. #define __BMA_253_H__
  9. #include "bma253_defs.h"
  10. #define WATERMARK_COUNT (25u)
  11. typedef enum
  12. {
  13. BMA253_GET_FRAME_COUNT,
  14. BMA253_CLR_FRAME_COUNT,
  15. BMA253_GET_TEMPERATURE,
  16. } BMA253_CMD_E;
  17. typedef struct _bma253_context
  18. {
  19. uint8_t i2c_addr;
  20. // use the fifo
  21. bool_t use_fifo;
  22. // accelerationg scaling
  23. fp32_t acc_scale;
  24. } bma253_context_t;
  25. #define ACC_SENSOR_NAME "BMA253"
  26. #endif