Home
last modified time | relevance | path

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

/device/google/contexthub/firmware/src/drivers/bosch_bmi160/
Dbosch_bmm150_slave.c48 static int32_t bmm150TempCompensateX(struct MagTask *magTask, int16_t mag_x, uint16_t rhall) in bmm150TempCompensateX() argument
57 if ((rhall != 0) && (magTask->dig_xyz1 != 0)) { in bmm150TempCompensateX()
60 / (rhall != 0 ? rhall : magTask->dig_xyz1))) - ((uint16_t)0x4000))); in bmm150TempCompensateX()
84 static int32_t bmm150TempCompensateY(struct MagTask *magTask, int16_t mag_y, uint16_t rhall) in bmm150TempCompensateY() argument
93 if ((rhall != 0) && (magTask->dig_xyz1 != 0)) { in bmm150TempCompensateY()
96 / (rhall != 0 ? rhall : magTask->dig_xyz1))) - ((uint16_t)0x4000))); in bmm150TempCompensateY()
120 static int32_t bmm150TempCompensateZ(struct MagTask *magTask, int16_t mag_z, uint16_t rhall) in bmm150TempCompensateZ() argument
124 if ((rhall != 0) && (magTask->dig_z2 != 0) && (magTask->dig_z1 != 0)) { in bmm150TempCompensateZ()
127 …- ((((int32_t)magTask->dig_z3) * ((int32_t)(((int16_t)rhall) - ((int16_t)magTask->dig_xyz1)))) >> … in bmm150TempCompensateZ()
130 … + ((int16_t)(((((int32_t)magTask->dig_z1) * ((((int16_t)rhall) << 1))) + (1 << 15)) >> 16))); in bmm150TempCompensateZ()