4 #ifndef __M5_IMU_BASE_H__
5 #define __M5_IMU_BASE_H__
7 #include "../I2C_Class.hpp"
56 float value[3] = { 8.0f / 32768.0f, 2000.0f / 32768.0f, 10.0f * 4912.0f / 32768.0f };
73 virtual bool getTempAdc(int16_t* adc)
const {
return false; };
virtual imu_spec_t getImuRawData(imu_raw_data_t *data) const =0
virtual bool getTempAdc(int16_t *adc) const
virtual imu_spec_t begin(I2C_Class *i2c=nullptr)=0
IMU_Base(std::uint8_t i2c_addr, std::uint32_t freq=400000, I2C_Class *i2c=&In_I2C)
virtual void getConvertParam(imu_convert_param_t *param) const =0
virtual bool setINTPinActiveLogic(bool level)
struct __attribute__((packed)) rtc_time_t
I2C_Class In_I2C
for internal I2C device
struct m5::IMU_Base::point3d_i16_t::@9::@10 __attribute__