summaryrefslogtreecommitdiffstats
path: root/watch-library/driver/lis2dh.h
diff options
context:
space:
mode:
authorJoey Castillo <joeycastillo@utexas.edu>2021-12-01 09:41:11 -0500
committerJoey Castillo <joeycastillo@utexas.edu>2021-12-01 09:41:48 -0500
commit36be251e893a0f9c186e409952c06e93d1031f7d (patch)
treee6298b80704d1e7f9756241d788aa899d0983c16 /watch-library/driver/lis2dh.h
parentb60d63f2634358e50de4aa77aa2f3b567c94f7aa (diff)
downloadSensor-Watch-36be251e893a0f9c186e409952c06e93d1031f7d.tar.gz
Sensor-Watch-36be251e893a0f9c186e409952c06e93d1031f7d.tar.bz2
Sensor-Watch-36be251e893a0f9c186e409952c06e93d1031f7d.zip
lis2dh: add support for interrupt latching (stays active until cleared)
Diffstat (limited to 'watch-library/driver/lis2dh.h')
-rw-r--r--watch-library/driver/lis2dh.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/watch-library/driver/lis2dh.h b/watch-library/driver/lis2dh.h
index f3e7ec84..ddd42126 100644
--- a/watch-library/driver/lis2dh.h
+++ b/watch-library/driver/lis2dh.h
@@ -102,11 +102,11 @@ void lis2dh_set_data_rate(lis2dh_data_rate_t dataRate);
lis2dh_data_rate_t lis2dh_get_data_rate();
-void lis2dh_configure_aoi_int1(lis2dh_interrupt_configuration configuration, uint8_t threshold, uint8_t duration);
+void lis2dh_configure_aoi_int1(lis2dh_interrupt_configuration configuration, uint8_t threshold, uint8_t duration, bool latch);
lis2dh_interrupt_state lis2dh_get_int1_state();
-void lis2dh_configure_aoi_int2(lis2dh_interrupt_configuration configuration, uint8_t threshold, uint8_t duration);
+void lis2dh_configure_aoi_int2(lis2dh_interrupt_configuration configuration, uint8_t threshold, uint8_t duration, bool latch);
lis2dh_interrupt_state lis2dh_get_int2_state();