Searched refs:rhall (Results 1 – 1 of 1) sorted by relevance
46 static int32_t bmm150TempCompensateX(struct MagTask *magTask, int16_t mag_x, uint16_t rhall) in bmm150TempCompensateX() argument55 if ((rhall != 0) && (magTask->dig_xyz1 != 0)) { in bmm150TempCompensateX()58 / (rhall != 0 ? rhall : magTask->dig_xyz1))) - ((uint16_t)0x4000))); in bmm150TempCompensateX()82 static int32_t bmm150TempCompensateY(struct MagTask *magTask, int16_t mag_y, uint16_t rhall) in bmm150TempCompensateY() argument91 if ((rhall != 0) && (magTask->dig_xyz1 != 0)) { in bmm150TempCompensateY()94 / (rhall != 0 ? rhall : magTask->dig_xyz1))) - ((uint16_t)0x4000))); in bmm150TempCompensateY()118 static int32_t bmm150TempCompensateZ(struct MagTask *magTask, int16_t mag_z, uint16_t rhall) in bmm150TempCompensateZ() argument122 if ((rhall != 0) && (magTask->dig_z2 != 0) && (magTask->dig_z1 != 0)) { in bmm150TempCompensateZ()125 …- ((((int32_t)magTask->dig_z3) * ((int32_t)(((int16_t)rhall) - ((int16_t)magTask->dig_xyz1)))) >> … in bmm150TempCompensateZ()128 … + ((int16_t)(((((int32_t)magTask->dig_z1) * ((((int16_t)rhall) << 1))) + (1 << 15)) >> 16))); in bmm150TempCompensateZ()