Home
last modified time | relevance | path

Searched refs:magn_x (Results 1 – 9 of 9) sorted by relevance

/Zephyr-latest/drivers/sensor/st/lsm303dlhc_magn/
Dlsm303dlhc_magn.c44 drv_data->magn_x = (magn_buf[0] << 8) | magn_buf[1]; in lsm303dlhc_sample_fetch()
73 lsm303dlhc_convert_xy(val, drv_data->magn_x); in lsm303dlhc_channel_get()
82 lsm303dlhc_convert_xy(val, drv_data->magn_x); in lsm303dlhc_channel_get()
Dlsm303dlhc_magn.h77 int16_t magn_x; member
/Zephyr-latest/samples/boards/96boards/argonkey/sensors/src/
Dmain.c44 struct sensor_value magn_x, magn_y, magn_z; in lsm6dsl_trigger_handler() local
78 sensor_channel_get(dev, SENSOR_CHAN_MAGN_X, &magn_x); in lsm6dsl_trigger_handler()
82 sprintf(out_str, "magn (%f %f %f) gauss", (double)out_ev(&magn_x), in lsm6dsl_trigger_handler()
271 struct sensor_value magn_x, magn_y, magn_z; in main() local
330 sensor_channel_get(accel_dev, SENSOR_CHAN_MAGN_X, &magn_x); in main()
333 sprintf(out_str, "magn (%f %f %f) gauss", (double)out_ev(&magn_x), in main()
/Zephyr-latest/samples/sensor/lsm6dsl/src/
Dmain.c32 static struct sensor_value magn_x, magn_y, magn_z; in lsm6dsl_trigger_handler() local
53 sensor_channel_get(dev, SENSOR_CHAN_MAGN_X, &magn_x); in lsm6dsl_trigger_handler()
79 magn_x_out = magn_x; in lsm6dsl_trigger_handler()
/Zephyr-latest/drivers/sensor/memsic/mmc56x3/
Dmmc56x3_decoder.c97 out->readings[0].value = data->magn_x * MMC56X3_MAGN_CONV_Q5_26_20B; in mmc56x3_decoder_decode()
135 out_3->readings[0].v[0] = data->magn_x * MMC56X3_MAGN_CONV_Q5_26_20B; in mmc56x3_decoder_decode()
Dmmc56x3.h109 int32_t magn_x; member
Dmmc56x3.c280 data->magn_x = raw_magn_x; in mmc56x3_sample_fetch_helper()
319 convert_double_to_sensor_val(data->magn_x * MMC56X3_MAGN_GAUSS_RES, val); in mmc56x3_channel_get()
328 convert_double_to_sensor_val(data->magn_x * MMC56X3_MAGN_GAUSS_RES, val); in mmc56x3_channel_get()
/Zephyr-latest/drivers/sensor/tdk/mpu9250/
Dmpu9250.h31 int16_t magn_x; member
Dmpu9250.c150 ret = ak8963_convert_magn(val, drv_data->magn_x, in mpu9250_channel_get()
167 return ak8963_convert_magn(val, drv_data->magn_x, in mpu9250_channel_get()
213 drv_data->magn_x = sys_le16_to_cpu(buf[7]); in mpu9250_sample_fetch()