app_imu.h 939 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * app_imu.h
  3. *
  4. * Created on: Nov 23, 2023
  5. * Author: juraj
  6. */
  7. #ifndef INC_APP_IMU_H_
  8. #define INC_APP_IMU_H_
  9. #include "app_bridge.h"
  10. #if MODULE == MODULE_IMU
  11. #include "icm_datatypes.h"
  12. #endif
  13. #ifdef __cplusplus
  14. extern "C"
  15. {
  16. #endif
  17. nBusAppInterface_t *getImuDriver();
  18. void mcu_spi_init(void *hw_interface, void *hw_config);
  19. void mcu_spi_reset();
  20. void mcu_spi_start();
  21. void mcu_spi_stop();
  22. nBus_sensorType_t mcu_spi_getType(uint8_t sensor_index);
  23. uint8_t mcu_spi_getSensorCount();
  24. uint8_t mcu_spi_getData(uint8_t sensor_index, uint8_t *data);
  25. uint8_t mcu_spi_setData(uint8_t *data);
  26. int32_t mcu_spi_getParam(uint8_t sensor_index, nBus_param_t param);
  27. uint8_t mcu_spi_hasParam(uint8_t sensor_index, nBus_param_t param);
  28. nBus_param_t mcu_spi_setParam(uint8_t sensor_index, nBus_param_t param, int32_t value);
  29. void mcu_spi_readData(void);
  30. //uint8_t mcu_spi_store(void);
  31. #ifdef __cplusplus
  32. }
  33. #endif
  34. #endif /* INC_APP_IMU_H_ */