Home
last modified time | relevance | path

Searched refs:gyro_fs (Results 1 – 23 of 23) sorted by relevance

/Zephyr-latest/drivers/sensor/tdk/icm42688/
Dicm42688_decoder.c17 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 …]
Dicm42688_decoder.h16 uint8_t gyro_fs: 3; member
Dicm42688.c153 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), \
Dicm42688.h293 uint8_t gyro_fs; member
459 switch (cfg->gyro_fs) { in icm42688_gyro_dps()
551 switch (cfg->gyro_fs) { in icm42688_gyro_rads()
Dicm42688_rtio_stream.c114 .gyro_fs = drv_data->cfg.gyro_fs, in icm42688_fifo_count_cb()
Dicm42688_common.c180 FIELD_PREP(MASK_GYRO_UI_FS_SEL, cfg->gyro_fs); in icm42688_configure()
/Zephyr-latest/drivers/sensor/tdk/mpu9250/
Dmpu9250.c282 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), \
Dmpu9250.h62 uint8_t gyro_fs; member
/Zephyr-latest/drivers/sensor/tdk/icm42670/
Dicm42670.c410 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 …]
Dicm42670.h68 uint16_t gyro_fs; member
103 uint16_t gyro_fs; member
/Zephyr-latest/drivers/sensor/st/lsm6dsv16x/
Dlsm6dsv16x_rtio.c117 edata->header.gyro_fs = data->gyro_fs; in lsm6dsv16x_submit_sample()
Dlsm6dsv16x_decoder.h18 uint8_t gyro_fs: 4; member
Dlsm6dsv16x_decoder.c352 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()
Dlsm6dsv16x.h149 uint8_t gyro_fs; member
Dlsm6dsv16x_rtio_stream.c321 .gyro_fs = lsm6dsv16x->gyro_fs, in lsm6dsv16x_read_fifo_cb()
Dlsm6dsv16x.c172 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/
Dicm42605.h72 uint16_t gyro_fs; member
Dicm42605.c381 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/
Dism330dhcx.h91 uint8_t gyro_fs; member
/Zephyr-latest/drivers/sensor/st/lsm6dso/
Dlsm6dso.h98 uint8_t gyro_fs; member
/Zephyr-latest/drivers/sensor/st/lsm6dso16is/
Dlsm6dso16is.h98 uint8_t gyro_fs; member
/Zephyr-latest/drivers/sensor/bosch/bmi08x/
Dbmi08x_gyro.c393 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), \
Dbmi08x.h499 uint16_t gyro_fs; member