/Zephyr-latest/drivers/sensor/tdk/icm42688/ |
D | icm42688_decoder.c | 17 static int icm42688_get_shift(enum sensor_channel channel, int accel_fs, int gyro_fs, int8_t *shift) in icm42688_get_shift() argument 44 switch (gyro_fs) { in icm42688_get_shift() 89 rc = icm42688_get_shift(chan, cfg->accel_fs, cfg->gyro_fs, &shift); in icm42688_convert_raw_to_q31() 195 edata->header.gyro_fs = data->cfg.gyro_fs; in icm42688_encode() 410 edata->header.gyro_fs, &data->shift); in icm42688_fifo_decode() 431 edata->header.gyro_fs, &data->shift); in icm42688_fifo_decode() 434 rc = icm42688_read_imu_from_packet(buffer, false, edata->header.gyro_fs, 0, in icm42688_fifo_decode() 436 rc |= icm42688_read_imu_from_packet(buffer, false, edata->header.gyro_fs, 1, in icm42688_fifo_decode() 438 rc |= icm42688_read_imu_from_packet(buffer, false, edata->header.gyro_fs, 2, in icm42688_fifo_decode() 460 .gyro_fs = edata->header.gyro_fs, in icm42688_one_shot_decode() [all …]
|
D | icm42688_decoder.h | 16 uint8_t gyro_fs: 3; member
|
D | icm42688.c | 153 new_config.gyro_fs = icm42688_gyro_fs_to_reg(sensor_rad_to_degrees(val)); in icm42688_attr_set() 212 icm42688_gyro_reg_to_fs(cfg->gyro_fs, val); in icm42688_attr_get() 308 .gyro_fs = DT_INST_PROP(inst, gyro_fs), \
|
D | icm42688.h | 293 uint8_t gyro_fs; member 459 switch (cfg->gyro_fs) { in icm42688_gyro_dps() 551 switch (cfg->gyro_fs) { in icm42688_gyro_rads()
|
D | icm42688_rtio_stream.c | 114 .gyro_fs = drv_data->cfg.gyro_fs, in icm42688_fifo_count_cb()
|
D | icm42688_common.c | 180 FIELD_PREP(MASK_GYRO_UI_FS_SEL, cfg->gyro_fs); in icm42688_configure()
|
/Zephyr-latest/drivers/sensor/tdk/mpu9250/ |
D | mpu9250.c | 282 if (cfg->gyro_fs > MPU9250_GYRO_FS_MAX) { in mpu9250_init() 283 LOG_ERR("Gyro FS is too big: %d", cfg->gyro_fs); in mpu9250_init() 288 cfg->gyro_fs << MPU9250_GYRO_FS_SHIFT); in mpu9250_init() 326 mpu9250_gyro_sensitivity_x10[cfg->gyro_fs]; in mpu9250_init() 354 .gyro_fs = DT_INST_ENUM_IDX(inst, gyro_fs), \
|
D | mpu9250.h | 62 uint8_t gyro_fs; member
|
/Zephyr-latest/drivers/sensor/tdk/icm42670/ |
D | icm42670.c | 410 convert_gyr_fs_to_bitfield(val->val1, &drv_data->gyro_fs)); in icm42670_set_gyro_fs() 411 LOG_DBG("Set gyro fullscale to: %d dps", drv_data->gyro_fs); in icm42670_set_gyro_fs() 494 (cfg->gyro_fs << GYRO_CONFIG0_GYRO_UI_FS_SEL_POS)); in icm42670_turn_on_sensor() 495 data->gyro_fs = in icm42670_turn_on_sensor() 496 convert_bitfield_to_gyr_fs((cfg->gyro_fs << GYRO_CONFIG0_GYRO_UI_FS_SEL_POS)); in icm42670_turn_on_sensor() 497 if ((err < 0) || (data->gyro_fs == 0)) { in icm42670_turn_on_sensor() 501 LOG_DBG("Set gyro full scale to: %d dps", data->gyro_fs); in icm42670_turn_on_sensor() 607 icm42670_convert_gyro(&val[0], data->gyro_x, data->gyro_fs); in icm42670_channel_get() 608 icm42670_convert_gyro(&val[1], data->gyro_y, data->gyro_fs); in icm42670_channel_get() 609 icm42670_convert_gyro(&val[2], data->gyro_z, data->gyro_fs); in icm42670_channel_get() [all …]
|
D | icm42670.h | 68 uint16_t gyro_fs; member 103 uint16_t gyro_fs; member
|
/Zephyr-latest/drivers/sensor/st/lsm6dsv16x/ |
D | lsm6dsv16x_rtio.c | 117 edata->header.gyro_fs = data->gyro_fs; in lsm6dsv16x_submit_sample()
|
D | lsm6dsv16x_decoder.h | 18 uint8_t gyro_fs: 4; member
|
D | lsm6dsv16x_decoder.c | 352 const int32_t scale = gyro_scaler[header->gyro_fs]; in lsm6dsv16x_decode_fifo() 373 out->shift = gyro_range[header->gyro_fs]; in lsm6dsv16x_decode_fifo() 587 const int32_t scale = gyro_scaler[header->gyro_fs]; in lsm6dsv16x_decode_sample() 598 out->shift = gyro_range[header->gyro_fs]; in lsm6dsv16x_decode_sample()
|
D | lsm6dsv16x.h | 149 uint8_t gyro_fs; member
|
D | lsm6dsv16x_rtio_stream.c | 321 .gyro_fs = lsm6dsv16x->gyro_fs, in lsm6dsv16x_read_fifo_cb()
|
D | lsm6dsv16x.c | 172 data->gyro_fs = fs; in lsm6dsv16x_gyro_set_fs_raw() 467 sensor_degrees_to_rad(lsm6dsv16x_gyro_fs_map[data->gyro_fs], val); in lsm6dsv16x_gyro_get_config()
|
/Zephyr-latest/drivers/sensor/tdk/icm42605/ |
D | icm42605.h | 72 uint16_t gyro_fs; member
|
D | icm42605.c | 381 data->gyro_sf = cfg->gyro_fs; in icm42605_data_init() 441 .gyro_fs = DT_INST_ENUM_IDX(index, gyro_fs), \
|
/Zephyr-latest/drivers/sensor/st/ism330dhcx/ |
D | ism330dhcx.h | 91 uint8_t gyro_fs; member
|
/Zephyr-latest/drivers/sensor/st/lsm6dso/ |
D | lsm6dso.h | 98 uint8_t gyro_fs; member
|
/Zephyr-latest/drivers/sensor/st/lsm6dso16is/ |
D | lsm6dso16is.h | 98 uint8_t gyro_fs; member
|
/Zephyr-latest/drivers/sensor/bosch/bmi08x/ |
D | bmi08x_gyro.c | 393 ret = bmi08x_gyr_range_set(dev, config->gyro_fs); in bmi08x_gyro_init() 475 BMI08X_GYRO_TRIGGER_PINS(inst).gyro_fs = DT_INST_PROP(inst, gyro_fs), \
|
D | bmi08x.h | 499 uint16_t gyro_fs; member
|