Lines Matching full:hz

99 static inline uint8_t icm42688_accel_hz_to_reg(uint16_t hz)  in icm42688_accel_hz_to_reg()  argument
101 if (hz >= 32000) { in icm42688_accel_hz_to_reg()
103 } else if (hz >= 16000) { in icm42688_accel_hz_to_reg()
105 } else if (hz >= 8000) { in icm42688_accel_hz_to_reg()
107 } else if (hz >= 4000) { in icm42688_accel_hz_to_reg()
109 } else if (hz >= 2000) { in icm42688_accel_hz_to_reg()
111 } else if (hz >= 1000) { in icm42688_accel_hz_to_reg()
113 } else if (hz >= 500) { in icm42688_accel_hz_to_reg()
115 } else if (hz >= 200) { in icm42688_accel_hz_to_reg()
117 } else if (hz >= 100) { in icm42688_accel_hz_to_reg()
119 } else if (hz >= 50) { in icm42688_accel_hz_to_reg()
121 } else if (hz >= 25) { in icm42688_accel_hz_to_reg()
123 } else if (hz >= 12) { in icm42688_accel_hz_to_reg()
125 } else if (hz >= 6) { in icm42688_accel_hz_to_reg()
127 } else if (hz >= 3) { in icm42688_accel_hz_to_reg()
200 static inline uint8_t icm42688_gyro_odr_to_reg(uint16_t hz) in icm42688_gyro_odr_to_reg() argument
202 if (hz >= 32000) { in icm42688_gyro_odr_to_reg()
204 } else if (hz >= 16000) { in icm42688_gyro_odr_to_reg()
206 } else if (hz >= 8000) { in icm42688_gyro_odr_to_reg()
208 } else if (hz >= 4000) { in icm42688_gyro_odr_to_reg()
210 } else if (hz >= 2000) { in icm42688_gyro_odr_to_reg()
212 } else if (hz >= 1000) { in icm42688_gyro_odr_to_reg()
214 } else if (hz >= 500) { in icm42688_gyro_odr_to_reg()
216 } else if (hz >= 200) { in icm42688_gyro_odr_to_reg()
218 } else if (hz >= 100) { in icm42688_gyro_odr_to_reg()
220 } else if (hz >= 50) { in icm42688_gyro_odr_to_reg()
222 } else if (hz >= 25) { in icm42688_gyro_odr_to_reg()