summaryrefslogtreecommitdiffstats
path: root/watch-library/driver/lis2dh.h
diff options
context:
space:
mode:
authorJoey Castillo <joeycastillo@utexas.edu>2021-12-05 23:49:26 -0600
committerJoey Castillo <joeycastillo@utexas.edu>2021-12-05 23:49:26 -0600
commite202c48b0a1a9838e91d020ca2b71214119b3c3d (patch)
treeadb63f4f22179d5d28599a6902ba6a91f52c5deb /watch-library/driver/lis2dh.h
parented94efcb8559d21820e8a06214e95191eed4c9b3 (diff)
downloadSensor-Watch-e202c48b0a1a9838e91d020ca2b71214119b3c3d.tar.gz
Sensor-Watch-e202c48b0a1a9838e91d020ca2b71214119b3c3d.tar.bz2
Sensor-Watch-e202c48b0a1a9838e91d020ca2b71214119b3c3d.zip
fix missing prototype warnings
Diffstat (limited to 'watch-library/driver/lis2dh.h')
-rw-r--r--watch-library/driver/lis2dh.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/watch-library/driver/lis2dh.h b/watch-library/driver/lis2dh.h
index ddd42126..68831519 100644
--- a/watch-library/driver/lis2dh.h
+++ b/watch-library/driver/lis2dh.h
@@ -84,31 +84,31 @@ typedef enum {
LIS2DH_INTERRUPT_STATE_X_LOW = 0b00000001, // X down
} lis2dh_interrupt_state;
-bool lis2dh_begin();
+bool lis2dh_begin(void);
-uint8_t lis2dh_get_device_id();
+uint8_t lis2dh_get_device_id(void);
-bool lis2dh_have_new_data();
+bool lis2dh_have_new_data(void);
-lis2dh_reading lis2dh_get_raw_reading();
+lis2dh_reading lis2dh_get_raw_reading(void);
lis2dh_acceleration_measurement lis2dh_get_acceleration_measurement(lis2dh_reading *out_reading);
void lis2dh_set_range(lis2dh_range_t range);
-lis2dh_range_t lis2dh_get_range();
+lis2dh_range_t lis2dh_get_range(void);
void lis2dh_set_data_rate(lis2dh_data_rate_t dataRate);
-lis2dh_data_rate_t lis2dh_get_data_rate();
+lis2dh_data_rate_t lis2dh_get_data_rate(void);
void lis2dh_configure_aoi_int1(lis2dh_interrupt_configuration configuration, uint8_t threshold, uint8_t duration, bool latch);
-lis2dh_interrupt_state lis2dh_get_int1_state();
+lis2dh_interrupt_state lis2dh_get_int1_state(void);
void lis2dh_configure_aoi_int2(lis2dh_interrupt_configuration configuration, uint8_t threshold, uint8_t duration, bool latch);
-lis2dh_interrupt_state lis2dh_get_int2_state();
+lis2dh_interrupt_state lis2dh_get_int2_state(void);
// Assumes SA0 is high; if low, its 0x18
#define LIS2DH_ADDRESS (0x19)