Home
last modified time | relevance | path

Searched refs:accel_fs (Results 1 – 25 of 36) sorted by relevance

12

/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
24 switch (accel_fs) { in icm42688_get_shift()
89 rc = icm42688_get_shift(chan, cfg->accel_fs, cfg->gyro_fs, &shift); in icm42688_convert_raw_to_q31()
194 edata->header.accel_fs = data->cfg.accel_fs; in icm42688_encode()
409 icm42688_get_shift(SENSOR_CHAN_ACCEL_XYZ, edata->header.accel_fs, in icm42688_fifo_decode()
413 rc = icm42688_read_imu_from_packet(buffer, true, edata->header.accel_fs, 0, in icm42688_fifo_decode()
415 rc |= icm42688_read_imu_from_packet(buffer, true, edata->header.accel_fs, 1, in icm42688_fifo_decode()
417 rc |= icm42688_read_imu_from_packet(buffer, true, edata->header.accel_fs, 2, in icm42688_fifo_decode()
430 icm42688_get_shift(SENSOR_CHAN_GYRO_XYZ, edata->header.accel_fs, in icm42688_fifo_decode()
459 .accel_fs = edata->header.accel_fs, in icm42688_one_shot_decode()
[all …]
Dicm42688_decoder.h17 uint8_t accel_fs: 2; member
Dicm42688.c140 new_config.accel_fs = icm42688_accel_fs_to_reg(sensor_ms2_to_g(val)); in icm42688_attr_set()
199 icm42688_accel_reg_to_fs(cfg->accel_fs, val); in icm42688_attr_get()
305 .accel_fs = DT_INST_PROP(inst, accel_fs), \
Dicm42688.h288 uint8_t accel_fs; member
422 switch (cfg->accel_fs) { in icm42688_accel_g()
511 switch (cfg->accel_fs) { in icm42688_accel_ms()
Dicm42688_rtio_stream.c115 .accel_fs = drv_data->cfg.accel_fs, in icm42688_fifo_count_cb()
/Zephyr-latest/drivers/sensor/tdk/mpu9250/
Dmpu9250.c269 if (cfg->accel_fs > MPU9250_ACCEL_FS_MAX) { in mpu9250_init()
270 LOG_ERR("Accel FS is too big: %d", cfg->accel_fs); in mpu9250_init()
275 cfg->accel_fs << MPU9250_ACCEL_FS_SHIFT); in mpu9250_init()
280 drv_data->accel_sensitivity_shift = 14 - cfg->accel_fs; in mpu9250_init()
355 .accel_fs = DT_INST_ENUM_IDX(inst, accel_fs), \
Dmpu9250.h63 uint8_t accel_fs; member
/Zephyr-latest/drivers/sensor/tdk/icm42670/
Dicm42670.c343 convert_acc_fs_to_bitfield(val->val1, &drv_data->accel_fs)); in icm42670_set_accel_fs()
344 LOG_DBG("Set accel full scale to: %d G", drv_data->accel_fs); in icm42670_set_accel_fs()
484 (cfg->accel_fs << ACCEL_CONFIG0_ACCEL_UI_FS_SEL_POS)); in icm42670_turn_on_sensor()
485 data->accel_fs = in icm42670_turn_on_sensor()
486 convert_bitfield_to_acc_fs((cfg->accel_fs << ACCEL_CONFIG0_ACCEL_UI_FS_SEL_POS)); in icm42670_turn_on_sensor()
487 if ((err < 0) || (data->accel_fs == 0)) { in icm42670_turn_on_sensor()
491 LOG_DBG("Set accel full scale to: %d G", data->accel_fs); in icm42670_turn_on_sensor()
597 icm42670_convert_accel(&val[0], data->accel_x, data->accel_fs); in icm42670_channel_get()
598 icm42670_convert_accel(&val[1], data->accel_y, data->accel_fs); in icm42670_channel_get()
599 icm42670_convert_accel(&val[2], data->accel_z, data->accel_fs); in icm42670_channel_get()
[all …]
Dicm42670.h62 uint8_t accel_fs; member
99 uint8_t accel_fs; member
/Zephyr-latest/drivers/sensor/st/lsm6dsv16x/
Dlsm6dsv16x_rtio.c116 edata->header.accel_fs = data->accel_fs; in lsm6dsv16x_submit_sample()
Dlsm6dsv16x_decoder.h19 uint8_t accel_fs: 2; member
Dlsm6dsv16x_decoder.c321 const int32_t scale = accel_scaler[header->accel_fs]; in lsm6dsv16x_decode_fifo()
342 out->shift = accel_range[header->accel_fs]; in lsm6dsv16x_decode_fifo()
564 const int32_t scale = accel_scaler[header->accel_fs]; in lsm6dsv16x_decode_sample()
575 out->shift = accel_range[header->accel_fs]; in lsm6dsv16x_decode_sample()
Dlsm6dsv16x.h147 uint8_t accel_fs; member
Dlsm6dsv16x_rtio_stream.c320 .accel_fs = lsm6dsv16x->accel_fs, in lsm6dsv16x_read_fifo_cb()
/Zephyr-latest/drivers/sensor/st/lis2de12/
Dlis2de12.h68 uint8_t accel_fs; member
/Zephyr-latest/drivers/sensor/st/lis2du12/
Dlis2du12.h71 uint8_t accel_fs; member
/Zephyr-latest/drivers/sensor/tdk/icm42605/
Dicm42605.h71 uint16_t accel_fs; member
Dicm42605.c380 data->accel_sf = cfg->accel_fs; in icm42605_data_init()
440 .accel_fs = DT_INST_ENUM_IDX(index, accel_fs), \
/Zephyr-latest/drivers/sensor/st/iis2iclx/
Diis2iclx.h80 uint8_t accel_fs; member
/Zephyr-latest/drivers/sensor/st/ism330dhcx/
Dism330dhcx.h89 uint8_t accel_fs; member
/Zephyr-latest/drivers/sensor/bosch/bma4xx/
Dbma4xx.c368 edata->header.accel_fs = bma4xx->accel_fs_range; in bma4xx_submit_one_shot()
512 static int bma4xx_get_shift(struct sensor_chan_spec ch, uint8_t accel_fs, int8_t *shift) in bma4xx_get_shift() argument
519 switch (accel_fs) { in bma4xx_get_shift()
616 header->accel_fs, &out->shift); in bma4xx_one_shot_decode()
Dbma4xx.h219 uint8_t accel_fs: 2; member
/Zephyr-latest/drivers/sensor/st/lsm6dso/
Dlsm6dso.h96 uint8_t accel_fs; member
/Zephyr-latest/drivers/sensor/st/lsm6dso16is/
Dlsm6dso16is.h96 uint8_t accel_fs; member
/Zephyr-latest/drivers/sensor/bosch/bmi08x/
Dbmi08x_accel.c701 ret = bmi08x_acc_range_set(dev, config->accel_fs); in bmi08x_accel_init()
804 .accel_fs = DT_INST_PROP(inst, accel_fs), BMI08X_DATA_SYNC_REG(inst)}; \

12