Home
last modified time | relevance | path

Searched refs:tregs (Results 1 – 4 of 4) sorted by relevance

/Zephyr-latest/drivers/sensor/bosch/bmc150_magn/
Dbmc150_magn.c234 static int32_t bmc150_magn_compensate_xy(struct bmc150_magn_trim_regs *tregs, in bmc150_magn_compensate_xy() argument
245 rhall = tregs->xyz1; in bmc150_magn_compensate_xy()
249 txy1 = tregs->x1; in bmc150_magn_compensate_xy()
250 txy2 = tregs->x2; in bmc150_magn_compensate_xy()
252 txy1 = tregs->y1; in bmc150_magn_compensate_xy()
253 txy2 = tregs->y2; in bmc150_magn_compensate_xy()
256 val = ((int16_t)(((uint16_t)((((int32_t)tregs->xyz1) << 14) / rhall)) - in bmc150_magn_compensate_xy()
258 val = ((int16_t)((((int32_t)xy) * ((((((((int32_t)tregs->xy2) * in bmc150_magn_compensate_xy()
260 ((int32_t)(((int16_t)tregs->xy1) << 7)))) >> 9) + in bmc150_magn_compensate_xy()
267 static int32_t bmc150_magn_compensate_z(struct bmc150_magn_trim_regs *tregs, in bmc150_magn_compensate_z() argument
[all …]
Dbmc150_magn.h127 struct bmc150_magn_trim_regs tregs; member
/Zephyr-latest/drivers/sensor/bosch/bmm150/
Dbmm150.c240 static int32_t bmm150_compensate_xy(struct bmm150_trim_regs *tregs, in bmm150_compensate_xy() argument
253 rhall = tregs->xyz1; in bmm150_compensate_xy()
257 txy1 = tregs->x1; in bmm150_compensate_xy()
258 txy2 = tregs->x2; in bmm150_compensate_xy()
260 txy1 = tregs->y1; in bmm150_compensate_xy()
261 txy2 = tregs->y2; in bmm150_compensate_xy()
264 prevalue = (uint16_t)((((int32_t)tregs->xyz1) << 14) / rhall); in bmm150_compensate_xy()
268 temp1 = (((int32_t)tregs->xy2) * ((((int32_t)val) * ((int32_t)val)) >> 7)); in bmm150_compensate_xy()
270 temp2 = ((int32_t)val) * ((int32_t)(((int16_t)tregs->xy1) << 7)); in bmm150_compensate_xy()
281 static int32_t bmm150_compensate_z(struct bmm150_trim_regs *tregs, in bmm150_compensate_z() argument
[all …]
Dbmm150.h167 struct bmm150_trim_regs tregs; member