summaryrefslogtreecommitdiffstats
path: root/watch-library/watch/watch.h
diff options
context:
space:
mode:
authorJoey Castillo <joeycastillo@utexas.edu>2021-12-21 10:01:33 -0600
committerJoey Castillo <joeycastillo@utexas.edu>2021-12-21 10:01:33 -0600
commitb3412277972ef520199e61f42157202114a63438 (patch)
treedc549b795902f4f61bc7bca7ba96ba77d5a7f1e3 /watch-library/watch/watch.h
parent1a4612f25972621b6c2f5f3b477f55b815f4dc84 (diff)
downloadSensor-Watch-b3412277972ef520199e61f42157202114a63438.tar.gz
Sensor-Watch-b3412277972ef520199e61f42157202114a63438.tar.bz2
Sensor-Watch-b3412277972ef520199e61f42157202114a63438.zip
add utility function to check if TCC is enabled
Diffstat (limited to 'watch-library/watch/watch.h')
-rw-r--r--watch-library/watch/watch.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/watch-library/watch/watch.h b/watch-library/watch/watch.h
index 669a5ed1..064f90ec 100644
--- a/watch-library/watch/watch.h
+++ b/watch-library/watch/watch.h
@@ -73,4 +73,11 @@
*/
bool watch_is_battery_low(void);
+/** @brief Returns true if either the buzzer or the LED driver is enabled.
+ * @details Both the buzzer and the LED use the TCC peripheral to drive their behavior. This function returns true if that
+ * peripheral is enabled. You can use this function to determine whether you need to call the watch_disable_leds or
+ * or watch_enable_buzzer functions before using these peripherals.
+ */
+bool watch_is_buzzer_or_led_enabled(void);
+
#endif /* WATCH_H_ */ \ No newline at end of file