| /Zephyr-latest/drivers/sensor/tdk/icm42688/ |
| D | icm42688_decoder.c | 19 static int icm42688_get_shift(enum sensor_channel channel, int accel_fs, int gyro_fs, int8_t *shift) in icm42688_get_shift() argument 46 switch (gyro_fs) { in icm42688_get_shift() 91 rc = icm42688_get_shift(chan, cfg->accel_fs, cfg->gyro_fs, &shift); in icm42688_convert_raw_to_q31() 204 edata->header.gyro_fs = data->cfg.gyro_fs; in icm42688_encode() 371 edata->header.gyro_fs, &data->shift); in icm42688_fifo_decode() 392 edata->header.gyro_fs, &data->shift); in icm42688_fifo_decode() 395 rc = icm42688_read_imu_from_packet(buffer, false, edata->header.gyro_fs, 0, in icm42688_fifo_decode() 397 rc |= icm42688_read_imu_from_packet(buffer, false, edata->header.gyro_fs, 1, in icm42688_fifo_decode() 399 rc |= icm42688_read_imu_from_packet(buffer, false, edata->header.gyro_fs, 2, in icm42688_fifo_decode() 421 .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()
|
| /Zephyr-latest/drivers/sensor/tdk/icm45686/ |
| D | icm45686_decoder.c | 22 int gyro_fs, in icm45686_get_shift() argument 53 switch (gyro_fs) { in icm45686_get_shift() 100 rc = icm45686_get_shift(chan, edata->header.accel_fs, edata->header.gyro_fs, &shift); in icm45686_convert_raw_to_q31() 116 icm45686_gyro_rads(edata->header.gyro_fs, reading, false, &whole, &fraction); in icm45686_convert_raw_to_q31() 215 edata->header.gyro_fs = dev_config->settings.gyro.fs; in icm45686_encode() 336 edata->header.gyro_fs, in icm45686_one_shot_decode() 425 uint8_t gyro_fs = ICM45686_DT_GYRO_FS_4000; in icm45686_fifo_read_imu_from_packet() local 442 icm45686_get_shift(SENSOR_CHAN_GYRO_XYZ, accel_fs, gyro_fs, &shift); in icm45686_fifo_read_imu_from_packet() 443 icm45686_gyro_rads(gyro_fs, signed_value, true, &whole, &fraction); in icm45686_fifo_read_imu_from_packet() 445 icm45686_get_shift(SENSOR_CHAN_ACCEL_XYZ, accel_fs, gyro_fs, &shift); in icm45686_fifo_read_imu_from_packet() [all …]
|
| D | icm45686.c | 83 icm45686_gyro_rads(data->edata.header.gyro_fs, data->edata.payload.gyro.x, false, in icm45686_channel_get() 87 icm45686_gyro_rads(data->edata.header.gyro_fs, data->edata.payload.gyro.y, false, in icm45686_channel_get() 91 icm45686_gyro_rads(data->edata.header.gyro_fs, data->edata.payload.gyro.z, false, in icm45686_channel_get() 106 icm45686_gyro_rads(data->edata.header.gyro_fs, data->edata.payload.gyro.x, false, in icm45686_channel_get() 108 icm45686_gyro_rads(data->edata.header.gyro_fs, data->edata.payload.gyro.y, false, in icm45686_channel_get() 110 icm45686_gyro_rads(data->edata.header.gyro_fs, data->edata.payload.gyro.z, false, in icm45686_channel_get() 401 .fs = DT_INST_PROP(inst, gyro_fs), \ 412 .gyro_fs = DT_INST_PROP(inst, gyro_fs), \
|
| D | icm45686.h | 70 uint8_t gyro_fs : 4; member
|
| D | icm45686_stream.c | 187 buf->header.gyro_fs = ICM45686_DT_GYRO_FS_4000; in icm45686_handle_event_actions() 240 buf->header.gyro_fs = data->edata.header.gyro_fs; in icm45686_handle_event_actions()
|
| /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/icm42x70/ |
| D | icm42x70.c | 400 (cfg->gyro_fs << GYRO_CONFIG0_GYRO_UI_FS_SEL_POS)); in icm42x70_turn_on_sensor() 401 data->gyro_fs = convert_bitfield_to_gyr_fs( in icm42x70_turn_on_sensor() 402 (cfg->gyro_fs << GYRO_CONFIG0_GYRO_UI_FS_SEL_POS)); in icm42x70_turn_on_sensor() 403 if ((err < 0) || (data->gyro_fs == 0)) { in icm42x70_turn_on_sensor() 407 LOG_DBG("Set gyro full scale to: %d dps", data->gyro_fs); in icm42x70_turn_on_sensor() 519 icm42670_convert_gyro(&val[0], data->gyro_x, data->gyro_fs); in icm42x70_channel_get() 520 icm42670_convert_gyro(&val[1], data->gyro_y, data->gyro_fs); in icm42x70_channel_get() 521 icm42670_convert_gyro(&val[2], data->gyro_z, data->gyro_fs); in icm42x70_channel_get() 524 icm42670_convert_gyro(val, data->gyro_x, data->gyro_fs); in icm42x70_channel_get() 527 icm42670_convert_gyro(val, data->gyro_y, data->gyro_fs); in icm42x70_channel_get() [all …]
|
| D | icm42x70.h | 69 uint16_t gyro_fs; member 107 uint16_t gyro_fs; member
|
| D | icm42670.c | 67 convert_gyr_fs_to_bitfield(val_dps, &drv_data->gyro_fs)); in icm42670_set_gyro_fs() 68 LOG_DBG("Set gyro fullscale to: %d dps", drv_data->gyro_fs); in icm42670_set_gyro_fs()
|
| /Zephyr-latest/drivers/sensor/st/lsm6dsv16x/ |
| D | lsm6dsv16x_rtio.c | 126 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 | 151 uint8_t gyro_fs; member
|
| D | lsm6dsv16x_rtio_stream.c | 322 .gyro_fs = lsm6dsv16x->gyro_fs, in lsm6dsv16x_read_fifo_cb()
|
| /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), \
|