diff options
Diffstat (limited to 'include/accelgyro.h')
-rw-r--r-- | include/accelgyro.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/accelgyro.h b/include/accelgyro.h index ea7b3efa6c..85e4bcc04a 100644 --- a/include/accelgyro.h +++ b/include/accelgyro.h @@ -101,6 +101,20 @@ struct accelgyro_drv { */ int (*irq_handler)(struct motion_sensor_t *s, uint32_t *event); #endif +#ifdef CONFIG_ACCEL_FIFO + /** + * Retrieve hardware FIFO from sensor, + * - put data in Sensor Hub fifo. + * - update sensor raw_xyz vector with the last information. + * We put raw data in hub fifo and process data from there. + * @s Pointer to sensor data. + * + * NOTE: If a new driver supports this function, be sure to add a check + * for spoof_mode in order to load the sensor stack with the spoofed + * data. See accelgyro_bmi160.c::load_fifo for an example. + */ + int (*load_fifo)(struct motion_sensor_t *s); +#endif #ifdef CONFIG_GESTURE_DETECTION /** * handler for setting/getting activity information. |