Home
last modified time | relevance | path

Searched refs:rhall (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/drivers/sensor/bosch/bmc150_magn/
Dbmc150_magn.c235 int16_t xy, uint16_t rhall, bool is_x) in bmc150_magn_compensate_xy() argument
244 if (!rhall) { in bmc150_magn_compensate_xy()
245 rhall = tregs->xyz1; in bmc150_magn_compensate_xy()
256 val = ((int16_t)(((uint16_t)((((int32_t)tregs->xyz1) << 14) / rhall)) - in bmc150_magn_compensate_xy()
268 int16_t z, uint16_t rhall) in bmc150_magn_compensate_z() argument
277 ((int32_t)(((int16_t)rhall) - ((int16_t)tregs->xyz1)))) >> 2)) / in bmc150_magn_compensate_z()
279 ((((int16_t)rhall) << 1))) + (1 << 15)) >> 16)))); in bmc150_magn_compensate_z()
291 uint16_t rhall; in bmc150_magn_sample_fetch() local
309 rhall = sys_le16_to_cpu(values[BMC150_MAGN_RHALL]) >> in bmc150_magn_sample_fetch()
312 data->sample_x = bmc150_magn_compensate_xy(&data->tregs, raw_x, rhall, in bmc150_magn_sample_fetch()
[all …]
/Zephyr-latest/drivers/sensor/bosch/bmm150/
Dbmm150.c241 int16_t xy, uint16_t rhall, bool is_x) in bmm150_compensate_xy() argument
252 if (!rhall) { in bmm150_compensate_xy()
253 rhall = tregs->xyz1; in bmm150_compensate_xy()
264 prevalue = (uint16_t)((((int32_t)tregs->xyz1) << 14) / rhall); in bmm150_compensate_xy()
282 int16_t z, uint16_t rhall) in bmm150_compensate_z() argument
294 ((int32_t)(((int16_t)rhall) - ((int16_t)tregs->xyz1)))) >> 2); in bmm150_compensate_z()
297 ((((int16_t)rhall) << 1))) + (1 << 15)) >> 16)); in bmm150_compensate_z()
311 uint16_t rhall; in bmm150_sample_fetch() local
328 rhall = sys_le16_to_cpu(values[BMM150_RHALL]) >> in bmm150_sample_fetch()
332 raw_x, rhall, true); in bmm150_sample_fetch()
[all …]