diff options
Diffstat (limited to 'include/motion_sense.h')
-rw-r--r-- | include/motion_sense.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/include/motion_sense.h b/include/motion_sense.h index 9d727a62de..07687feb5a 100644 --- a/include/motion_sense.h +++ b/include/motion_sense.h @@ -180,15 +180,18 @@ extern unsigned int motion_min_interval; extern struct queue motion_sense_fifo; /** - * Interrupt function for lid accelerometer. + * Add new actual data to the fifo, including a timestamp. * * @param data data to insert in the FIFO * @param sensor sensor the data comes from - * @valid_data data should be copied into the public sensor vector + * @param valid_data data should be copied into the public sensor vector + * @param time accurate time (ideally measured in an interrupt) the sample + * was taken at */ -void motion_sense_fifo_add_unit(struct ec_response_motion_sensor_data *data, +void motion_sense_fifo_add_data(struct ec_response_motion_sensor_data *data, struct motion_sensor_t *sensor, - int valid_data); + int valid_data, + uint32_t time); #endif |