summaryrefslogtreecommitdiff
path: root/include/accelgyro.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/accelgyro.h')
-rw-r--r--include/accelgyro.h20
1 files changed, 7 insertions, 13 deletions
diff --git a/include/accelgyro.h b/include/accelgyro.h
index 699fcda6df..f78af2bb90 100644
--- a/include/accelgyro.h
+++ b/include/accelgyro.h
@@ -91,23 +91,13 @@ struct accelgyro_drv {
int (*perform_calib)(const struct motion_sensor_t *s);
#ifdef CONFIG_ACCEL_INTERRUPTS
/**
- * Setup a one-time accel interrupt. If the threshold is low enough, the
- * interrupt may trigger due simply to noise and not any real motion.
- * If the threshold is 0, the interrupt will fire immediately.
- * @s Pointer to sensor data.
- * @threshold Threshold for interrupt in units of counts.
- */
- int (*set_interrupt)(const struct motion_sensor_t *s,
- unsigned int threshold);
-
- /**
* handler for interrupts triggered by the sensor: it runs in task and
* process the events that triggered an interrupt.
* @s Pointer to sensor data.
* @event Event to process. May add other events for the next processor.
*
* Return EC_SUCCESS when one event is handled, EC_ERROR_NOT_HANDLED
- * when no events have been proccessed.
+ * when no events have been processed.
*/
int (*irq_handler)(struct motion_sensor_t *s, uint32_t *event);
#endif
@@ -116,8 +106,12 @@ struct accelgyro_drv {
* 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 theres.
+ * 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
@@ -128,7 +122,7 @@ struct accelgyro_drv {
* @s Pointer to sensor data.
* @activity activity to work on
* @enable 1 to enable, 0 to disable
- * @data addtional data if needed, activity dependant.
+ * @data additional data if needed, activity dependent.
*/
int (*manage_activity)(const struct motion_sensor_t *s,
enum motionsensor_activity activity,