Lines Matching refs:fifo_data

132 		result = inv_spi_read(&cfg->spi, REG_INT_STATUS3, drv_data->fifo_data, 1);  in icm42605_tap_fetch()
133 if (drv_data->fifo_data[0] & BIT_INT_STATUS_TAP_DET) { in icm42605_tap_fetch()
135 drv_data->fifo_data, 1); in icm42605_tap_fetch()
136 if (drv_data->fifo_data[0] & APEX_TAP) { in icm42605_tap_fetch()
147 } else if (drv_data->fifo_data[0] & APEX_DOUBLE_TAP) { in icm42605_tap_fetch()
176 result = inv_spi_read(&cfg->spi, REG_INT_STATUS, drv_data->fifo_data, 3); in icm42605_sample_fetch()
178 if (drv_data->fifo_data[0] & BIT_INT_STATUS_DRDY) { in icm42605_sample_fetch()
179 fifo_count = (drv_data->fifo_data[1] << 8) in icm42605_sample_fetch()
180 + (drv_data->fifo_data[2]); in icm42605_sample_fetch()
181 result = inv_spi_read(&cfg->spi, REG_FIFO_DATA, drv_data->fifo_data, in icm42605_sample_fetch()
192 if (drv_data->fifo_data[0] & BIT_FIFO_HEAD_ACCEL) { in icm42605_sample_fetch()
194 if (!(drv_data->fifo_data[1] == FIFO_ACCEL0_RESET_VALUE in icm42605_sample_fetch()
195 && drv_data->fifo_data[2] == in icm42605_sample_fetch()
198 (drv_data->fifo_data[1] << 8) in icm42605_sample_fetch()
199 + (drv_data->fifo_data[2]); in icm42605_sample_fetch()
201 (drv_data->fifo_data[3] << 8) in icm42605_sample_fetch()
202 + (drv_data->fifo_data[4]); in icm42605_sample_fetch()
204 (drv_data->fifo_data[5] << 8) in icm42605_sample_fetch()
205 + (drv_data->fifo_data[6]); in icm42605_sample_fetch()
207 if (!(drv_data->fifo_data[0] & BIT_FIFO_HEAD_GYRO)) { in icm42605_sample_fetch()
209 (int16_t)(drv_data->fifo_data[7]); in icm42605_sample_fetch()
211 if (!(drv_data->fifo_data[7] == in icm42605_sample_fetch()
213 drv_data->fifo_data[8] == in icm42605_sample_fetch()
216 (drv_data->fifo_data[7] << 8) in icm42605_sample_fetch()
217 + (drv_data->fifo_data[8]); in icm42605_sample_fetch()
219 (drv_data->fifo_data[9] << 8) in icm42605_sample_fetch()
220 + (drv_data->fifo_data[10]); in icm42605_sample_fetch()
222 (drv_data->fifo_data[11] << 8) in icm42605_sample_fetch()
223 + (drv_data->fifo_data[12]); in icm42605_sample_fetch()
226 (int16_t)(drv_data->fifo_data[13]); in icm42605_sample_fetch()
229 if (drv_data->fifo_data[0] & BIT_FIFO_HEAD_GYRO) { in icm42605_sample_fetch()
230 if (!(drv_data->fifo_data[1] == in icm42605_sample_fetch()
232 drv_data->fifo_data[2] == in icm42605_sample_fetch()
235 (drv_data->fifo_data[1] << 8) in icm42605_sample_fetch()
236 + (drv_data->fifo_data[2]); in icm42605_sample_fetch()
238 (drv_data->fifo_data[3] << 8) in icm42605_sample_fetch()
239 + (drv_data->fifo_data[4]); in icm42605_sample_fetch()
241 (drv_data->fifo_data[5] << 8) in icm42605_sample_fetch()
242 + (drv_data->fifo_data[6]); in icm42605_sample_fetch()
245 (int16_t)(drv_data->fifo_data[7]); in icm42605_sample_fetch()