diff options
Diffstat (limited to 'driver/accel_kxcj9.h')
-rw-r--r-- | driver/accel_kxcj9.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/driver/accel_kxcj9.h b/driver/accel_kxcj9.h index 9451421be5..e35386d330 100644 --- a/driver/accel_kxcj9.h +++ b/driver/accel_kxcj9.h @@ -129,4 +129,16 @@ int accel_write_resolution(const enum accel_id id, const int res); */ int accel_write_datarate(const enum accel_id id, const int rate); +#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. + * + * @param id Target accelerometer + * @param threshold Threshold for interrupt in units of counts. + */ +int accel_set_interrupt(const enum accel_id id, unsigned int threshold); +#endif + #endif /* __CROS_EC_ACCEL_KXCJ9_H */ |