Home
last modified time | relevance | path

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

12

/Zephyr-latest/drivers/sensor/tdk/icm42688/
Dicm42688_decoder.c19 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 …]
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()
/Zephyr-latest/drivers/sensor/tdk/icm45686/
Dicm45686_decoder.c22 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 …]
Dicm45686.c83 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), \
Dicm45686.h70 uint8_t gyro_fs : 4; member
Dicm45686_stream.c187 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/
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/icm42x70/
Dicm42x70.c400 (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 …]
Dicm42x70.h69 uint16_t gyro_fs; member
107 uint16_t gyro_fs; member
Dicm42670.c67 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/
Dlsm6dsv16x_rtio.c126 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.h151 uint8_t gyro_fs; member
Dlsm6dsv16x_rtio_stream.c322 .gyro_fs = lsm6dsv16x->gyro_fs, in lsm6dsv16x_read_fifo_cb()
/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), \

12