43 #include <px4_platform_common/defines.h> 45 #include <sys/ioctl.h> 55 #define DRV_MAG_DEVTYPE_HMC5883 0x01 56 #define DRV_MAG_DEVTYPE_LSM303D 0x02 57 #define DRV_MAG_DEVTYPE_MAGSIM 0x03 58 #define DRV_MAG_DEVTYPE_MPU9250 0x04 59 #define DRV_MAG_DEVTYPE_LIS3MDL 0x05 60 #define DRV_MAG_DEVTYPE_IST8310 0x06 61 #define DRV_MAG_DEVTYPE_RM3100 0x07 62 #define DRV_MAG_DEVTYPE_QMC5883 0x08 63 #define DRV_MAG_DEVTYPE_AK09916 0x09 64 #define DRV_DEVTYPE_ICM20948 0x0A 65 #define DRV_ACC_DEVTYPE_LSM303D 0x11 66 #define DRV_ACC_DEVTYPE_BMA180 0x12 67 #define DRV_ACC_DEVTYPE_MPU6000 0x13 68 #define DRV_ACC_DEVTYPE_ACCELSIM 0x14 69 #define DRV_ACC_DEVTYPE_MPU9250 0x16 70 #define DRV_ACC_DEVTYPE_BMI160 0x17 71 #define DRV_GYR_DEVTYPE_MPU6000 0x21 72 #define DRV_GYR_DEVTYPE_L3GD20 0x22 73 #define DRV_GYR_DEVTYPE_GYROSIM 0x23 74 #define DRV_GYR_DEVTYPE_MPU9250 0x24 75 #define DRV_GYR_DEVTYPE_BMI160 0x25 76 #define DRV_RNG_DEVTYPE_MB12XX 0x31 77 #define DRV_RNG_DEVTYPE_LL40LS 0x32 78 #define DRV_ACC_DEVTYPE_MPU6050 0x33 79 #define DRV_ACC_DEVTYPE_MPU6500 0x34 80 #define DRV_GYR_DEVTYPE_MPU6050 0x35 81 #define DRV_GYR_DEVTYPE_MPU6500 0x36 82 #define DRV_ACC_DEVTYPE_ICM20602 0x37 83 #define DRV_GYR_DEVTYPE_ICM20602 0x38 84 #define DRV_ACC_DEVTYPE_ICM20608 0x39 85 #define DRV_GYR_DEVTYPE_ICM20608 0x3A 86 #define DRV_ACC_DEVTYPE_ICM20689 0x3B 87 #define DRV_GYR_DEVTYPE_ICM20689 0x3C 88 #define DRV_BARO_DEVTYPE_MS5611 0x3D 89 #define DRV_BARO_DEVTYPE_MS5607 0x3E 90 #define DRV_BARO_DEVTYPE_BMP280 0x3F 91 #define DRV_BARO_DEVTYPE_LPS25H 0x40 92 #define DRV_ACC_DEVTYPE_BMI055 0x41 93 #define DRV_GYR_DEVTYPE_BMI055 0x42 94 #define DRV_MAG_DEVTYPE_BMM150 0x43 95 #define DRV_BARO_DEVTYPE_BMP285 0x44 96 #define DRV_DIFF_PRESS_DEVTYPE_ETS3 0x45 97 #define DRV_DIFF_PRESS_DEVTYPE_MS4525 0x46 98 #define DRV_DIFF_PRESS_DEVTYPE_MS5525 0x47 99 #define DRV_DIFF_PRESS_DEVTYPE_SDP31 0x48 100 #define DRV_DIFF_PRESS_DEVTYPE_SDP32 0x49 101 #define DRV_DIFF_PRESS_DEVTYPE_SDP33 0x50 102 #define DRV_BARO_DEVTYPE_MPL3115A2 0x51 103 #define DRV_ACC_DEVTYPE_FXOS8701C 0x52 105 #define DRV_GYR_DEVTYPE_FXAS2100C 0x54 106 #define DRV_ACC_DEVTYPE_ADIS16448 0x55 107 #define DRV_MAG_DEVTYPE_ADIS16448 0x56 108 #define DRV_GYR_DEVTYPE_ADIS16448 0x57 109 #define DRV_BARO_DEVTYPE_LPS22HB 0x58 110 #define DRV_ACC_DEVTYPE_ADIS16477 0x59 111 #define DRV_GYR_DEVTYPE_ADIS16477 0x60 112 #define DRV_ACC_DEVTYPE_LSM303AGR 0x61 113 #define DRV_MAG_DEVTYPE_LSM303AGR 0x62 114 #define DRV_ACC_DEVTYPE_ADIS16497 0x63 115 #define DRV_GYR_DEVTYPE_ADIS16497 0x64 116 #define DRV_BARO_DEVTYPE_BAROSIM 0x65 117 #define DRV_DEVTYPE_BMI088 0x66 118 #define DRV_DEVTYPE_BMP388 0x67 127 #define _SENSORIOCBASE (0x2000) 128 #define _SENSORIOC(_n) (_PX4_IOC(_SENSORIOCBASE, _n)) 134 #define SENSORIOCSPOLLRATE _SENSORIOC(0) 136 #define SENSOR_POLLRATE_DEFAULT 1000003 141 #define SENSORIOCRESET _SENSORIOC(4) Generic device / sensor interface.