| 12345678910111213141516171819202122232425 |
- #ifndef IMU_LSM6DS3TRC_H
- #define IMU_LSM6DS3TRC_H
- #include "../../lib/lsm6ds3tr-api/lsm6ds3tr-c_reg.h"
- #include <furi_hal.h>
- #include "imu.h"
- #define LSM6DS3_TAG "LSM6DS3TR-C"
- #define LSM6DS3_ADDRESS (0x6A << 1)
- // External variable declaration
- extern stmdev_ctx_t lsm6ds3trc_ctx;
- // Function declarations
- int32_t lsm6ds3trc_write_i2c(void* handle, uint8_t reg_addr, const uint8_t* data, uint16_t len);
- int32_t lsm6ds3trc_read_i2c(void* handle, uint8_t reg_addr, uint8_t* read_data, uint16_t len);
- bool lsm6ds3trc_begin(void);
- void lsm6ds3trc_end(void);
- int lsm6ds3trc_read(double* vec);
- #endif // LSM6DS3TRC_H
|