Lines Matching full:out
30 static inline void icm42688_accel_reg_to_fs(uint8_t fs, struct sensor_value *out) in icm42688_accel_reg_to_fs() argument
34 sensor_g_to_ms2(16, out); in icm42688_accel_reg_to_fs()
37 sensor_g_to_ms2(8, out); in icm42688_accel_reg_to_fs()
40 sensor_g_to_ms2(4, out); in icm42688_accel_reg_to_fs()
43 sensor_g_to_ms2(2, out); in icm42688_accel_reg_to_fs()
69 static inline void icm42688_gyro_reg_to_fs(uint8_t fs, struct sensor_value *out) in icm42688_gyro_reg_to_fs() argument
73 sensor_degrees_to_rad(2000, out); in icm42688_gyro_reg_to_fs()
76 sensor_degrees_to_rad(1000, out); in icm42688_gyro_reg_to_fs()
79 sensor_degrees_to_rad(500, out); in icm42688_gyro_reg_to_fs()
82 sensor_degrees_to_rad(250, out); in icm42688_gyro_reg_to_fs()
85 sensor_degrees_to_rad(125, out); in icm42688_gyro_reg_to_fs()
88 sensor_10udegrees_to_rad(6250000, out); in icm42688_gyro_reg_to_fs()
91 sensor_10udegrees_to_rad(3125000, out); in icm42688_gyro_reg_to_fs()
94 sensor_10udegrees_to_rad(1562500, out); in icm42688_gyro_reg_to_fs()
134 static inline void icm42688_accel_reg_to_hz(uint8_t odr, struct sensor_value *out) in icm42688_accel_reg_to_hz() argument
138 out->val1 = 32000; in icm42688_accel_reg_to_hz()
139 out->val2 = 0; in icm42688_accel_reg_to_hz()
142 out->val1 = 1600; in icm42688_accel_reg_to_hz()
143 out->val2 = 0; in icm42688_accel_reg_to_hz()
146 out->val1 = 8000; in icm42688_accel_reg_to_hz()
147 out->val2 = 0; in icm42688_accel_reg_to_hz()
150 out->val1 = 4000; in icm42688_accel_reg_to_hz()
151 out->val2 = 0; in icm42688_accel_reg_to_hz()
154 out->val1 = 2000; in icm42688_accel_reg_to_hz()
155 out->val2 = 0; in icm42688_accel_reg_to_hz()
158 out->val1 = 1000; in icm42688_accel_reg_to_hz()
159 out->val2 = 0; in icm42688_accel_reg_to_hz()
162 out->val1 = 500; in icm42688_accel_reg_to_hz()
163 out->val2 = 0; in icm42688_accel_reg_to_hz()
166 out->val1 = 200; in icm42688_accel_reg_to_hz()
167 out->val2 = 0; in icm42688_accel_reg_to_hz()
170 out->val1 = 100; in icm42688_accel_reg_to_hz()
171 out->val2 = 0; in icm42688_accel_reg_to_hz()
174 out->val1 = 50; in icm42688_accel_reg_to_hz()
175 out->val2 = 0; in icm42688_accel_reg_to_hz()
178 out->val1 = 25; in icm42688_accel_reg_to_hz()
179 out->val2 = 0; in icm42688_accel_reg_to_hz()
182 out->val1 = 12; in icm42688_accel_reg_to_hz()
183 out->val2 = 500000; in icm42688_accel_reg_to_hz()
186 out->val1 = 6; in icm42688_accel_reg_to_hz()
187 out->val2 = 250000; in icm42688_accel_reg_to_hz()
190 out->val1 = 3; in icm42688_accel_reg_to_hz()
191 out->val2 = 125000; in icm42688_accel_reg_to_hz()
194 out->val1 = 1; in icm42688_accel_reg_to_hz()
195 out->val2 = 562500; in icm42688_accel_reg_to_hz()
229 static inline void icm42688_gyro_reg_to_odr(uint8_t odr, struct sensor_value *out) in icm42688_gyro_reg_to_odr() argument
233 out->val1 = 32000; in icm42688_gyro_reg_to_odr()
234 out->val2 = 0; in icm42688_gyro_reg_to_odr()
237 out->val1 = 16000; in icm42688_gyro_reg_to_odr()
238 out->val2 = 0; in icm42688_gyro_reg_to_odr()
241 out->val1 = 8000; in icm42688_gyro_reg_to_odr()
242 out->val2 = 0; in icm42688_gyro_reg_to_odr()
245 out->val1 = 4000; in icm42688_gyro_reg_to_odr()
246 out->val2 = 0; in icm42688_gyro_reg_to_odr()
249 out->val1 = 2000; in icm42688_gyro_reg_to_odr()
250 out->val2 = 0; in icm42688_gyro_reg_to_odr()
253 out->val1 = 1000; in icm42688_gyro_reg_to_odr()
254 out->val2 = 0; in icm42688_gyro_reg_to_odr()
257 out->val1 = 500; in icm42688_gyro_reg_to_odr()
258 out->val2 = 0; in icm42688_gyro_reg_to_odr()
261 out->val1 = 200; in icm42688_gyro_reg_to_odr()
262 out->val2 = 0; in icm42688_gyro_reg_to_odr()
265 out->val1 = 100; in icm42688_gyro_reg_to_odr()
266 out->val2 = 0; in icm42688_gyro_reg_to_odr()
269 out->val1 = 50; in icm42688_gyro_reg_to_odr()
270 out->val2 = 0; in icm42688_gyro_reg_to_odr()
273 out->val1 = 25; in icm42688_gyro_reg_to_odr()
274 out->val2 = 0; in icm42688_gyro_reg_to_odr()
277 out->val1 = 12; in icm42688_gyro_reg_to_odr()
278 out->val2 = 500000; in icm42688_gyro_reg_to_odr()