diff --git a/annotated.html b/annotated.html
index 51e87306..bc7f1ae4 100644
--- a/annotated.html
+++ b/annotated.html
@@ -69,6 +69,7 @@ $(function() {
Here are the data structures with brief descriptions:
diff --git a/classes.html b/classes.html
index 0bc6f8bb..7f8939dc 100644
--- a/classes.html
+++ b/classes.html
@@ -70,7 +70,7 @@ $(function() {
diff --git a/group__utility.html b/group__utility.html
index d182dd24..cab05ad3 100644
--- a/group__utility.html
+++ b/group__utility.html
@@ -64,7 +64,9 @@ $(function() {
@@ -72,6 +74,11 @@ $(function() {
This section covers various useful functions that don't fit anywhere else.
More...
|
const char * | watch_utility_get_weekday (watch_date_time date_time) |
@@ -83,6 +90,9 @@ Functions
uint32_t | watch_utility_date_time_to_unix_time (watch_date_time date_time, uint32_t utc_offset) |
| Returns the UNIX time (seconds since 1970) for a given watch_date_time struct. More...
|
|
+watch_duration_t | watch_utility_seconds_to_duration (uint32_t seconds) |
+ | Converts a duration in seconds to a watch_duration_t struct. More...
|
+ |
watch_date_time | watch_utility_date_time_from_unix_time (uint32_t timestamp, uint32_t utc_offset) |
| Returns the UNIX time (seconds since 1970) for a given watch_date_time struct. More...
|
|
@@ -95,6 +105,21 @@ Functions
float | watch_utility_thermistor_temperature (uint16_t value, bool highside, float b_coefficient, float nominal_temperature, float nominal_resistance, float series_resistance) |
| Returns a temperature in degrees Celsius for a given thermistor voltage divider circuit. More...
|
|
+
+ |
+
+uint8_t | watch_duration_t::seconds |
+ |
+
+uint8_t | watch_duration_t::minutes |
+ |
+
+uint8_t | watch_duration_t::hours |
+ |
+
+uint32_t | watch_duration_t::days |
+ |
This section covers various useful functions that don't fit anywhere else.
@@ -349,6 +374,33 @@ Functions
+
+
+
+◆ watch_utility_seconds_to_duration()
+
+
+
+
+
+ watch_duration_t watch_utility_seconds_to_duration |
+ ( |
+ uint32_t |
+ seconds | ) |
+ |
+
+
+
+
+
Converts a duration in seconds to a watch_duration_t struct.
+
- Parameters
-
+
+ seconds | A positive number of seconds that you wish to convert to a formatted duration. |
+
+
+
+
- Returns
- A populated struct with the number of days, hours, minutes and seconds elapsed.
+
diff --git a/search/all_a.js b/search/all_a.js
index 276b5f32..c490f74f 100644
--- a/search/all_a.js
+++ b/search/all_a.js
@@ -19,85 +19,87 @@ var searchData=
['watch_5fdisable_5fleds_16',['watch_disable_leds',['../group__led.html#ga883bf171196fb5a7a57ef727dca6e04a',1,'watch_led.h']]],
['watch_5fdisable_5fspi_17',['watch_disable_spi',['../group__spi.html#ga8ff6df67e49f90daec4c6456d8c07f22',1,'watch_spi.h']]],
['watch_5fdisplay_5fstring_18',['watch_display_string',['../group__slcd.html#ga1983cf1e6a7d8feb1c7193a182ff683d',1,'watch_display_string(char *string, uint8_t position): watch_private_display.c'],['../group__slcd.html#ga1983cf1e6a7d8feb1c7193a182ff683d',1,'watch_display_string(char *string, uint8_t position): watch_private_display.c']]],
- ['watch_5fenable_5fadc_19',['watch_enable_adc',['../group__adc.html#ga908b5334af677309b03d7679d77aaa02',1,'watch_adc.h']]],
- ['watch_5fenable_5fanalog_5finput_20',['watch_enable_analog_input',['../group__adc.html#ga30a491e9cab049a2812f75862a613aa8',1,'watch_adc.h']]],
- ['watch_5fenable_5fbuzzer_21',['watch_enable_buzzer',['../group__buzzer.html#ga84d2f603c4f87f2199ebc102439fb204',1,'watch_buzzer.h']]],
- ['watch_5fenable_5fdigital_5finput_22',['watch_enable_digital_input',['../group__gpio.html#ga8f6035dc4a5226fa34504e8a5a930e0c',1,'watch_gpio.h']]],
- ['watch_5fenable_5fdigital_5foutput_23',['watch_enable_digital_output',['../group__gpio.html#gaf73a6405eb90bc6de32fb66f512fe4a9',1,'watch_gpio.h']]],
- ['watch_5fenable_5fdisplay_24',['watch_enable_display',['../group__slcd.html#ga0bb83dc413aeb321daef90d93f258033',1,'watch_slcd.h']]],
- ['watch_5fenable_5fexternal_5finterrupts_25',['watch_enable_external_interrupts',['../group__buttons.html#ga9bcddd56ef2065183697b471a5fff6d2',1,'watch_extint.h']]],
- ['watch_5fenable_5fi2c_26',['watch_enable_i2c',['../group__i2c.html#gab9f25517d9dc3c32a707266dfd413e5b',1,'watch_i2c.h']]],
- ['watch_5fenable_5fleds_27',['watch_enable_leds',['../group__led.html#ga86ce31dc95137ed41983fb7c6af5502a',1,'watch_led.h']]],
- ['watch_5fenable_5fpull_5fdown_28',['watch_enable_pull_down',['../group__gpio.html#gae974fce4ac5d38ffe256186a84c63ff9',1,'watch_gpio.h']]],
- ['watch_5fenable_5fpull_5fup_29',['watch_enable_pull_up',['../group__gpio.html#ga55a16884f634ee0eb2c981d1b9a06a4d',1,'watch_gpio.h']]],
- ['watch_5fenable_5fspi_30',['watch_enable_spi',['../group__spi.html#ga77252649d1551483308f312131e80dec',1,'watch_spi.h']]],
- ['watch_5fenable_5fuart_31',['watch_enable_uart',['../group__uart.html#ga38e750d3e02939bf056fde77f4ef6235',1,'watch_uart.h']]],
- ['watch_5fenter_5fbackup_5fmode_32',['watch_enter_backup_mode',['../group__deepsleep.html#ga50dda38a8a83d7d957e3bb2bf13aa3ef',1,'watch_deepsleep.h']]],
- ['watch_5fenter_5fdeep_5fsleep_5fmode_33',['watch_enter_deep_sleep_mode',['../group__deepsleep.html#gaea469761889ff203385f3bfd88bb2451',1,'watch_deepsleep.h']]],
- ['watch_5fenter_5fsleep_5fmode_34',['watch_enter_sleep_mode',['../group__deepsleep.html#ga9f7a625290748f0df6ba2ceb27e0d81b',1,'watch_deepsleep.h']]],
- ['watch_5fget_5fanalog_5fpin_5flevel_35',['watch_get_analog_pin_level',['../group__adc.html#ga2064244f68cff87a1df08f6b07183069',1,'watch_adc.h']]],
- ['watch_5fget_5fbackup_5fdata_36',['watch_get_backup_data',['../group__deepsleep.html#ga2de1f1012475654c4741f60808581196',1,'watch_deepsleep.h']]],
- ['watch_5fget_5fpin_5flevel_37',['watch_get_pin_level',['../group__gpio.html#gacc7c5e867c05cd03f5955e8e8036b879',1,'watch_gpio.h']]],
- ['watch_5fget_5fvcc_5fvoltage_38',['watch_get_vcc_voltage',['../group__adc.html#ga465fcb058492d350d29fe4403df85b14',1,'watch_adc.h']]],
- ['watch_5fi2c_5fread16_39',['watch_i2c_read16',['../group__i2c.html#gaed749d3ca5e6e3aedcf1aefed3d7663e',1,'watch_i2c.h']]],
- ['watch_5fi2c_5fread24_40',['watch_i2c_read24',['../group__i2c.html#ga6732b5655fdada88d083e4b4d05d1ca8',1,'watch_i2c.h']]],
- ['watch_5fi2c_5fread32_41',['watch_i2c_read32',['../group__i2c.html#ga3d1c750d1b228b11333d10fc9647d651',1,'watch_i2c.h']]],
- ['watch_5fi2c_5fread8_42',['watch_i2c_read8',['../group__i2c.html#gac5644140ddda98198f9d5deabbeaf781',1,'watch_i2c.h']]],
- ['watch_5fi2c_5freceive_43',['watch_i2c_receive',['../group__i2c.html#ga426971387b87286c8decca7342c06b4b',1,'watch_i2c.h']]],
- ['watch_5fi2c_5fsend_44',['watch_i2c_send',['../group__i2c.html#ga8b44030f78c30dd4026b349fc0c8cf08',1,'watch_i2c.h']]],
- ['watch_5fi2c_5fwrite8_45',['watch_i2c_write8',['../group__i2c.html#gaf0a4c78215cbd85ab557fc6c786eb6ad',1,'watch_i2c.h']]],
- ['watch_5findicator_5f24h_46',['WATCH_INDICATOR_24H',['../group__slcd.html#gga37a28bfc539ea2bb83107d59f77b20d2aee02426fe8a094a399fe93de2f354e48',1,'watch_slcd.h']]],
- ['watch_5findicator_5fbell_47',['WATCH_INDICATOR_BELL',['../group__slcd.html#gga37a28bfc539ea2bb83107d59f77b20d2a44727968b16d73ca11e3d19795085ee3',1,'watch_slcd.h']]],
- ['watch_5findicator_5flap_48',['WATCH_INDICATOR_LAP',['../group__slcd.html#gga37a28bfc539ea2bb83107d59f77b20d2a98d272d879d473fb507a9fc27b6741c6',1,'watch_slcd.h']]],
- ['watch_5findicator_5fpm_49',['WATCH_INDICATOR_PM',['../group__slcd.html#gga37a28bfc539ea2bb83107d59f77b20d2a0d023567f536ace6ff82e5120729090f',1,'watch_slcd.h']]],
- ['watch_5findicator_5fsignal_50',['WATCH_INDICATOR_SIGNAL',['../group__slcd.html#gga37a28bfc539ea2bb83107d59f77b20d2a827a013c00782a143f13a4f88ce50292',1,'watch_slcd.h']]],
- ['watch_5finterrupt_5ftrigger_51',['watch_interrupt_trigger',['../group__buttons.html#ga0454ca577b6fcc7a7cb03039cb5150d8',1,'watch_interrupt_trigger(): watch_extint.h'],['../group__buttons.html#gadee2b304ce34a8aec5aedabd75934c1b',1,'watch_interrupt_trigger(): watch_extint.h']]],
- ['watch_5fis_5fbattery_5flow_52',['watch_is_battery_low',['../watch_8h.html#a16023aa6b668de61af59b40b2bee5d1d',1,'watch.h']]],
- ['watch_5fis_5fbuzzer_5for_5fled_5fenabled_53',['watch_is_buzzer_or_led_enabled',['../watch_8h.html#a6df21baf06b4a5392d95dd3cdde75d94',1,'watch.h']]],
- ['watch_5fregister_5fextwake_5fcallback_54',['watch_register_extwake_callback',['../group__deepsleep.html#gacad726423f5f38697c87474ab25244ca',1,'watch_deepsleep.h']]],
- ['watch_5fregister_5finterrupt_5fcallback_55',['watch_register_interrupt_callback',['../group__buttons.html#gae40d2f73d0412680d83c26b8a0e1d31c',1,'watch_extint.h']]],
- ['watch_5frtc_5fdisable_5falarm_5fcallback_56',['watch_rtc_disable_alarm_callback',['../group__rtc.html#ga836cade77c24e93c06bf534eaded55bf',1,'watch_rtc.h']]],
- ['watch_5frtc_5fdisable_5fall_5fperiodic_5fcallbacks_57',['watch_rtc_disable_all_periodic_callbacks',['../group__rtc.html#ga0150da34307ba61e44f1a00aa90a7f0f',1,'watch_rtc.h']]],
- ['watch_5frtc_5fdisable_5fmatching_5fperiodic_5fcallbacks_58',['watch_rtc_disable_matching_periodic_callbacks',['../group__rtc.html#gadccd826da474b5fe24cac8d8edc88ae6',1,'watch_rtc.h']]],
- ['watch_5frtc_5fdisable_5fperiodic_5fcallback_59',['watch_rtc_disable_periodic_callback',['../group__rtc.html#ga4e025485bb50e1c93abd4a185447705f',1,'watch_rtc.h']]],
- ['watch_5frtc_5fdisable_5ftick_5fcallback_60',['watch_rtc_disable_tick_callback',['../group__rtc.html#ga685f2afb2e99dfebf8d2ef058a5bc19d',1,'watch_rtc.h']]],
- ['watch_5frtc_5fget_5fdate_5ftime_61',['watch_rtc_get_date_time',['../group__rtc.html#ga166b575563d39a0061dc9a28ad0309a7',1,'watch_rtc.h']]],
- ['watch_5frtc_5fregister_5falarm_5fcallback_62',['watch_rtc_register_alarm_callback',['../group__rtc.html#gaa5220d0d7f542a0bc6c9bef176d6d83b',1,'watch_rtc.h']]],
- ['watch_5frtc_5fregister_5fperiodic_5fcallback_63',['watch_rtc_register_periodic_callback',['../group__rtc.html#gaeb4e67aa0062e39eaff465aeebc24f53',1,'watch_rtc.h']]],
- ['watch_5frtc_5fregister_5ftick_5fcallback_64',['watch_rtc_register_tick_callback',['../group__rtc.html#ga969ea57aaedf13d4950edbeacff3f2be',1,'watch_rtc.h']]],
- ['watch_5frtc_5fset_5fdate_5ftime_65',['watch_rtc_set_date_time',['../group__rtc.html#gadfcc143db9d71e95c2d2dc45732ab4e5',1,'watch_rtc.h']]],
- ['watch_5fset_5fanalog_5fnum_5fsamples_66',['watch_set_analog_num_samples',['../group__adc.html#ga90bac58a3fa935d8fd640f4b58c8037d',1,'watch_adc.h']]],
- ['watch_5fset_5fanalog_5freference_5fvoltage_67',['watch_set_analog_reference_voltage',['../group__adc.html#ga9ea7b8aef4573f02ff3adafcf891cd93',1,'watch_adc.h']]],
- ['watch_5fset_5fanalog_5fsampling_5flength_68',['watch_set_analog_sampling_length',['../group__adc.html#gae9f9ed34e8752e211c1692af473a88dc',1,'watch_adc.h']]],
- ['watch_5fset_5fbuzzer_5foff_69',['watch_set_buzzer_off',['../group__buzzer.html#ga803568f5bc5f6b77ea9efa5299c6d9f4',1,'watch_buzzer.h']]],
- ['watch_5fset_5fbuzzer_5fon_70',['watch_set_buzzer_on',['../group__buzzer.html#ga6a2d48712d70aff4a1ab463afe6fdd98',1,'watch_buzzer.h']]],
- ['watch_5fset_5fbuzzer_5fperiod_71',['watch_set_buzzer_period',['../group__buzzer.html#ga77f213418f48937de73bfe7ac5fc58c9',1,'watch_buzzer.h']]],
- ['watch_5fset_5fcolon_72',['watch_set_colon',['../group__slcd.html#ga021df8bd4ab27a78a812cbb0eadd26ee',1,'watch_set_colon(void): watch_private_display.c'],['../group__slcd.html#ga021df8bd4ab27a78a812cbb0eadd26ee',1,'watch_set_colon(void): watch_private_display.c']]],
- ['watch_5fset_5findicator_73',['watch_set_indicator',['../group__slcd.html#gaa6640c8b372933de978e1066aed7e7fd',1,'watch_set_indicator(WatchIndicatorSegment indicator): watch_private_display.c'],['../group__slcd.html#gaa6640c8b372933de978e1066aed7e7fd',1,'watch_set_indicator(WatchIndicatorSegment indicator): watch_private_display.c']]],
- ['watch_5fset_5fled_5fcolor_74',['watch_set_led_color',['../group__led.html#ga042bcc9220ab05d1de8389cf0067511b',1,'watch_led.h']]],
- ['watch_5fset_5fled_5fgreen_75',['watch_set_led_green',['../group__led.html#gab01a29900ddc5315c0e752e63d748f41',1,'watch_led.h']]],
- ['watch_5fset_5fled_5foff_76',['watch_set_led_off',['../group__led.html#ga8619f040ff7364285398412a4c420cae',1,'watch_led.h']]],
- ['watch_5fset_5fled_5fred_77',['watch_set_led_red',['../group__led.html#ga36d89031d8e8813dfab5f6cff9c6ee40',1,'watch_led.h']]],
- ['watch_5fset_5fled_5fyellow_78',['watch_set_led_yellow',['../group__led.html#ga51ba53c3281ad8724d98af27eacc3de0',1,'watch_led.h']]],
- ['watch_5fset_5fpin_5flevel_79',['watch_set_pin_level',['../group__gpio.html#ga2e781c7e15045d2270f0cb3f87d619d6',1,'watch_gpio.h']]],
- ['watch_5fset_5fpixel_80',['watch_set_pixel',['../group__slcd.html#ga47948dc2c7490b698810ef9914507e08',1,'watch_slcd.h']]],
- ['watch_5fspi_5fread_81',['watch_spi_read',['../group__spi.html#ga20b320293d43a867233b5bedeeab07b3',1,'watch_spi.h']]],
- ['watch_5fspi_5ftransfer_82',['watch_spi_transfer',['../group__spi.html#ga350791f4a5eb66d0725cd418d1cd1087',1,'watch_spi.h']]],
- ['watch_5fspi_5fwrite_83',['watch_spi_write',['../group__spi.html#ga9e1b869726dc01834ac9a365b32ec492',1,'watch_spi.h']]],
- ['watch_5fstart_5fcharacter_5fblink_84',['watch_start_character_blink',['../group__slcd.html#ga4c99ffbfa68aea0dce466db6e47879a5',1,'watch_slcd.h']]],
- ['watch_5fstart_5ftick_5fanimation_85',['watch_start_tick_animation',['../group__slcd.html#ga70918c1acc2ed21512b69b83397303a4',1,'watch_slcd.h']]],
- ['watch_5fstop_5fblink_86',['watch_stop_blink',['../group__slcd.html#ga5d29760dd0998de98f8578ed3de5b1e5',1,'watch_slcd.h']]],
- ['watch_5fstop_5ftick_5fanimation_87',['watch_stop_tick_animation',['../group__slcd.html#gaf2c52b4430b4e78a066b3a2b104d142a',1,'watch_slcd.h']]],
- ['watch_5fstore_5fbackup_5fdata_88',['watch_store_backup_data',['../group__deepsleep.html#ga385b36922ec76c5fe697772f97a05846',1,'watch_deepsleep.h']]],
- ['watch_5ftick_5fanimation_5fis_5frunning_89',['watch_tick_animation_is_running',['../group__slcd.html#ga3764fb499e056f9a45588268f11be8a0',1,'watch_slcd.h']]],
- ['watch_5fuart_5fgetc_90',['watch_uart_getc',['../group__uart.html#ga0c400bfcd52bb71e8de62c5ab2373db6',1,'watch_uart.h']]],
- ['watch_5fuart_5fputs_91',['watch_uart_puts',['../group__uart.html#ga5d62683298c511f24adaab4bf6615c50',1,'watch_uart.h']]],
- ['watch_5futility_5fconvert_5fto_5f12_5fhour_92',['watch_utility_convert_to_12_hour',['../group__utility.html#ga470a4c7199afac6319c259fc459881f4',1,'watch_utility_convert_to_12_hour(watch_date_time *date_time): watch_utility.c'],['../group__utility.html#ga470a4c7199afac6319c259fc459881f4',1,'watch_utility_convert_to_12_hour(watch_date_time *date_time): watch_utility.c']]],
- ['watch_5futility_5fconvert_5fto_5funix_5ftime_93',['watch_utility_convert_to_unix_time',['../group__utility.html#ga94f5cc404949bf4c0ac4bc4770ec8eda',1,'watch_utility_convert_to_unix_time(uint16_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t minute, uint8_t second, uint32_t utc_offset): watch_utility.c'],['../group__utility.html#ga94f5cc404949bf4c0ac4bc4770ec8eda',1,'watch_utility_convert_to_unix_time(uint16_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t minute, uint8_t second, uint32_t utc_offset): watch_utility.c']]],
- ['watch_5futility_5fdate_5ftime_5fconvert_5fzone_94',['watch_utility_date_time_convert_zone',['../group__utility.html#ga94f038ec0e1b8f3c48c4364b56566327',1,'watch_utility_date_time_convert_zone(watch_date_time date_time, uint32_t origin_utc_offset, uint32_t destination_utc_offset): watch_utility.c'],['../group__utility.html#ga94f038ec0e1b8f3c48c4364b56566327',1,'watch_utility_date_time_convert_zone(watch_date_time date_time, uint32_t origin_utc_offset, uint32_t destination_utc_offset): watch_utility.c']]],
- ['watch_5futility_5fdate_5ftime_5ffrom_5funix_5ftime_95',['watch_utility_date_time_from_unix_time',['../group__utility.html#ga396e56109234aaa00993c3dd84f3f43c',1,'watch_utility_date_time_from_unix_time(uint32_t timestamp, uint32_t utc_offset): watch_utility.c'],['../group__utility.html#ga396e56109234aaa00993c3dd84f3f43c',1,'watch_utility_date_time_from_unix_time(uint32_t timestamp, uint32_t utc_offset): watch_utility.c']]],
- ['watch_5futility_5fdate_5ftime_5fto_5funix_5ftime_96',['watch_utility_date_time_to_unix_time',['../group__utility.html#gaffafef58755ff2704cf93fe1a0849a27',1,'watch_utility_date_time_to_unix_time(watch_date_time date_time, uint32_t utc_offset): watch_utility.c'],['../group__utility.html#gaffafef58755ff2704cf93fe1a0849a27',1,'watch_utility_date_time_to_unix_time(watch_date_time date_time, uint32_t utc_offset): watch_utility.c']]],
- ['watch_5futility_5fget_5fweekday_97',['watch_utility_get_weekday',['../group__utility.html#gaad14860c068aeed7a60e57874cad92b4',1,'watch_utility_get_weekday(watch_date_time date_time): watch_utility.c'],['../group__utility.html#gaad14860c068aeed7a60e57874cad92b4',1,'watch_utility_get_weekday(watch_date_time date_time): watch_utility.c']]],
- ['watch_5futility_5fthermistor_5ftemperature_98',['watch_utility_thermistor_temperature',['../group__utility.html#ga2753ff031c28202d23b0f3e80de2c920',1,'watch_utility_thermistor_temperature(uint16_t value, bool highside, float b_coefficient, float nominal_temperature, float nominal_resistance, float series_resistance): watch_utility.c'],['../group__utility.html#ga2753ff031c28202d23b0f3e80de2c920',1,'watch_utility_thermistor_temperature(uint16_t value, bool highside, float b_coefficient, float nominal_temperature, float nominal_resistance, float series_resistance): watch_utility.c']]],
- ['watchindicatorsegment_99',['WatchIndicatorSegment',['../group__slcd.html#ga37a28bfc539ea2bb83107d59f77b20d2',1,'WatchIndicatorSegment(): watch_slcd.h'],['../group__slcd.html#ga12f90dd93f63366e5a08f161e5f6c9f5',1,'WatchIndicatorSegment(): watch_slcd.h']]]
+ ['watch_5fduration_5ft_19',['watch_duration_t',['../structwatch__duration__t.html',1,'']]],
+ ['watch_5fenable_5fadc_20',['watch_enable_adc',['../group__adc.html#ga908b5334af677309b03d7679d77aaa02',1,'watch_adc.h']]],
+ ['watch_5fenable_5fanalog_5finput_21',['watch_enable_analog_input',['../group__adc.html#ga30a491e9cab049a2812f75862a613aa8',1,'watch_adc.h']]],
+ ['watch_5fenable_5fbuzzer_22',['watch_enable_buzzer',['../group__buzzer.html#ga84d2f603c4f87f2199ebc102439fb204',1,'watch_buzzer.h']]],
+ ['watch_5fenable_5fdigital_5finput_23',['watch_enable_digital_input',['../group__gpio.html#ga8f6035dc4a5226fa34504e8a5a930e0c',1,'watch_gpio.h']]],
+ ['watch_5fenable_5fdigital_5foutput_24',['watch_enable_digital_output',['../group__gpio.html#gaf73a6405eb90bc6de32fb66f512fe4a9',1,'watch_gpio.h']]],
+ ['watch_5fenable_5fdisplay_25',['watch_enable_display',['../group__slcd.html#ga0bb83dc413aeb321daef90d93f258033',1,'watch_slcd.h']]],
+ ['watch_5fenable_5fexternal_5finterrupts_26',['watch_enable_external_interrupts',['../group__buttons.html#ga9bcddd56ef2065183697b471a5fff6d2',1,'watch_extint.h']]],
+ ['watch_5fenable_5fi2c_27',['watch_enable_i2c',['../group__i2c.html#gab9f25517d9dc3c32a707266dfd413e5b',1,'watch_i2c.h']]],
+ ['watch_5fenable_5fleds_28',['watch_enable_leds',['../group__led.html#ga86ce31dc95137ed41983fb7c6af5502a',1,'watch_led.h']]],
+ ['watch_5fenable_5fpull_5fdown_29',['watch_enable_pull_down',['../group__gpio.html#gae974fce4ac5d38ffe256186a84c63ff9',1,'watch_gpio.h']]],
+ ['watch_5fenable_5fpull_5fup_30',['watch_enable_pull_up',['../group__gpio.html#ga55a16884f634ee0eb2c981d1b9a06a4d',1,'watch_gpio.h']]],
+ ['watch_5fenable_5fspi_31',['watch_enable_spi',['../group__spi.html#ga77252649d1551483308f312131e80dec',1,'watch_spi.h']]],
+ ['watch_5fenable_5fuart_32',['watch_enable_uart',['../group__uart.html#ga38e750d3e02939bf056fde77f4ef6235',1,'watch_uart.h']]],
+ ['watch_5fenter_5fbackup_5fmode_33',['watch_enter_backup_mode',['../group__deepsleep.html#ga50dda38a8a83d7d957e3bb2bf13aa3ef',1,'watch_deepsleep.h']]],
+ ['watch_5fenter_5fdeep_5fsleep_5fmode_34',['watch_enter_deep_sleep_mode',['../group__deepsleep.html#gaea469761889ff203385f3bfd88bb2451',1,'watch_deepsleep.h']]],
+ ['watch_5fenter_5fsleep_5fmode_35',['watch_enter_sleep_mode',['../group__deepsleep.html#ga9f7a625290748f0df6ba2ceb27e0d81b',1,'watch_deepsleep.h']]],
+ ['watch_5fget_5fanalog_5fpin_5flevel_36',['watch_get_analog_pin_level',['../group__adc.html#ga2064244f68cff87a1df08f6b07183069',1,'watch_adc.h']]],
+ ['watch_5fget_5fbackup_5fdata_37',['watch_get_backup_data',['../group__deepsleep.html#ga2de1f1012475654c4741f60808581196',1,'watch_deepsleep.h']]],
+ ['watch_5fget_5fpin_5flevel_38',['watch_get_pin_level',['../group__gpio.html#gacc7c5e867c05cd03f5955e8e8036b879',1,'watch_gpio.h']]],
+ ['watch_5fget_5fvcc_5fvoltage_39',['watch_get_vcc_voltage',['../group__adc.html#ga465fcb058492d350d29fe4403df85b14',1,'watch_adc.h']]],
+ ['watch_5fi2c_5fread16_40',['watch_i2c_read16',['../group__i2c.html#gaed749d3ca5e6e3aedcf1aefed3d7663e',1,'watch_i2c.h']]],
+ ['watch_5fi2c_5fread24_41',['watch_i2c_read24',['../group__i2c.html#ga6732b5655fdada88d083e4b4d05d1ca8',1,'watch_i2c.h']]],
+ ['watch_5fi2c_5fread32_42',['watch_i2c_read32',['../group__i2c.html#ga3d1c750d1b228b11333d10fc9647d651',1,'watch_i2c.h']]],
+ ['watch_5fi2c_5fread8_43',['watch_i2c_read8',['../group__i2c.html#gac5644140ddda98198f9d5deabbeaf781',1,'watch_i2c.h']]],
+ ['watch_5fi2c_5freceive_44',['watch_i2c_receive',['../group__i2c.html#ga426971387b87286c8decca7342c06b4b',1,'watch_i2c.h']]],
+ ['watch_5fi2c_5fsend_45',['watch_i2c_send',['../group__i2c.html#ga8b44030f78c30dd4026b349fc0c8cf08',1,'watch_i2c.h']]],
+ ['watch_5fi2c_5fwrite8_46',['watch_i2c_write8',['../group__i2c.html#gaf0a4c78215cbd85ab557fc6c786eb6ad',1,'watch_i2c.h']]],
+ ['watch_5findicator_5f24h_47',['WATCH_INDICATOR_24H',['../group__slcd.html#gga37a28bfc539ea2bb83107d59f77b20d2aee02426fe8a094a399fe93de2f354e48',1,'watch_slcd.h']]],
+ ['watch_5findicator_5fbell_48',['WATCH_INDICATOR_BELL',['../group__slcd.html#gga37a28bfc539ea2bb83107d59f77b20d2a44727968b16d73ca11e3d19795085ee3',1,'watch_slcd.h']]],
+ ['watch_5findicator_5flap_49',['WATCH_INDICATOR_LAP',['../group__slcd.html#gga37a28bfc539ea2bb83107d59f77b20d2a98d272d879d473fb507a9fc27b6741c6',1,'watch_slcd.h']]],
+ ['watch_5findicator_5fpm_50',['WATCH_INDICATOR_PM',['../group__slcd.html#gga37a28bfc539ea2bb83107d59f77b20d2a0d023567f536ace6ff82e5120729090f',1,'watch_slcd.h']]],
+ ['watch_5findicator_5fsignal_51',['WATCH_INDICATOR_SIGNAL',['../group__slcd.html#gga37a28bfc539ea2bb83107d59f77b20d2a827a013c00782a143f13a4f88ce50292',1,'watch_slcd.h']]],
+ ['watch_5finterrupt_5ftrigger_52',['watch_interrupt_trigger',['../group__buttons.html#ga0454ca577b6fcc7a7cb03039cb5150d8',1,'watch_interrupt_trigger(): watch_extint.h'],['../group__buttons.html#gadee2b304ce34a8aec5aedabd75934c1b',1,'watch_interrupt_trigger(): watch_extint.h']]],
+ ['watch_5fis_5fbattery_5flow_53',['watch_is_battery_low',['../watch_8h.html#a16023aa6b668de61af59b40b2bee5d1d',1,'watch.h']]],
+ ['watch_5fis_5fbuzzer_5for_5fled_5fenabled_54',['watch_is_buzzer_or_led_enabled',['../watch_8h.html#a6df21baf06b4a5392d95dd3cdde75d94',1,'watch.h']]],
+ ['watch_5fregister_5fextwake_5fcallback_55',['watch_register_extwake_callback',['../group__deepsleep.html#gacad726423f5f38697c87474ab25244ca',1,'watch_deepsleep.h']]],
+ ['watch_5fregister_5finterrupt_5fcallback_56',['watch_register_interrupt_callback',['../group__buttons.html#gae40d2f73d0412680d83c26b8a0e1d31c',1,'watch_extint.h']]],
+ ['watch_5frtc_5fdisable_5falarm_5fcallback_57',['watch_rtc_disable_alarm_callback',['../group__rtc.html#ga836cade77c24e93c06bf534eaded55bf',1,'watch_rtc.h']]],
+ ['watch_5frtc_5fdisable_5fall_5fperiodic_5fcallbacks_58',['watch_rtc_disable_all_periodic_callbacks',['../group__rtc.html#ga0150da34307ba61e44f1a00aa90a7f0f',1,'watch_rtc.h']]],
+ ['watch_5frtc_5fdisable_5fmatching_5fperiodic_5fcallbacks_59',['watch_rtc_disable_matching_periodic_callbacks',['../group__rtc.html#gadccd826da474b5fe24cac8d8edc88ae6',1,'watch_rtc.h']]],
+ ['watch_5frtc_5fdisable_5fperiodic_5fcallback_60',['watch_rtc_disable_periodic_callback',['../group__rtc.html#ga4e025485bb50e1c93abd4a185447705f',1,'watch_rtc.h']]],
+ ['watch_5frtc_5fdisable_5ftick_5fcallback_61',['watch_rtc_disable_tick_callback',['../group__rtc.html#ga685f2afb2e99dfebf8d2ef058a5bc19d',1,'watch_rtc.h']]],
+ ['watch_5frtc_5fget_5fdate_5ftime_62',['watch_rtc_get_date_time',['../group__rtc.html#ga166b575563d39a0061dc9a28ad0309a7',1,'watch_rtc.h']]],
+ ['watch_5frtc_5fregister_5falarm_5fcallback_63',['watch_rtc_register_alarm_callback',['../group__rtc.html#gaa5220d0d7f542a0bc6c9bef176d6d83b',1,'watch_rtc.h']]],
+ ['watch_5frtc_5fregister_5fperiodic_5fcallback_64',['watch_rtc_register_periodic_callback',['../group__rtc.html#gaeb4e67aa0062e39eaff465aeebc24f53',1,'watch_rtc.h']]],
+ ['watch_5frtc_5fregister_5ftick_5fcallback_65',['watch_rtc_register_tick_callback',['../group__rtc.html#ga969ea57aaedf13d4950edbeacff3f2be',1,'watch_rtc.h']]],
+ ['watch_5frtc_5fset_5fdate_5ftime_66',['watch_rtc_set_date_time',['../group__rtc.html#gadfcc143db9d71e95c2d2dc45732ab4e5',1,'watch_rtc.h']]],
+ ['watch_5fset_5fanalog_5fnum_5fsamples_67',['watch_set_analog_num_samples',['../group__adc.html#ga90bac58a3fa935d8fd640f4b58c8037d',1,'watch_adc.h']]],
+ ['watch_5fset_5fanalog_5freference_5fvoltage_68',['watch_set_analog_reference_voltage',['../group__adc.html#ga9ea7b8aef4573f02ff3adafcf891cd93',1,'watch_adc.h']]],
+ ['watch_5fset_5fanalog_5fsampling_5flength_69',['watch_set_analog_sampling_length',['../group__adc.html#gae9f9ed34e8752e211c1692af473a88dc',1,'watch_adc.h']]],
+ ['watch_5fset_5fbuzzer_5foff_70',['watch_set_buzzer_off',['../group__buzzer.html#ga803568f5bc5f6b77ea9efa5299c6d9f4',1,'watch_buzzer.h']]],
+ ['watch_5fset_5fbuzzer_5fon_71',['watch_set_buzzer_on',['../group__buzzer.html#ga6a2d48712d70aff4a1ab463afe6fdd98',1,'watch_buzzer.h']]],
+ ['watch_5fset_5fbuzzer_5fperiod_72',['watch_set_buzzer_period',['../group__buzzer.html#ga77f213418f48937de73bfe7ac5fc58c9',1,'watch_buzzer.h']]],
+ ['watch_5fset_5fcolon_73',['watch_set_colon',['../group__slcd.html#ga021df8bd4ab27a78a812cbb0eadd26ee',1,'watch_set_colon(void): watch_private_display.c'],['../group__slcd.html#ga021df8bd4ab27a78a812cbb0eadd26ee',1,'watch_set_colon(void): watch_private_display.c']]],
+ ['watch_5fset_5findicator_74',['watch_set_indicator',['../group__slcd.html#gaa6640c8b372933de978e1066aed7e7fd',1,'watch_set_indicator(WatchIndicatorSegment indicator): watch_private_display.c'],['../group__slcd.html#gaa6640c8b372933de978e1066aed7e7fd',1,'watch_set_indicator(WatchIndicatorSegment indicator): watch_private_display.c']]],
+ ['watch_5fset_5fled_5fcolor_75',['watch_set_led_color',['../group__led.html#ga042bcc9220ab05d1de8389cf0067511b',1,'watch_led.h']]],
+ ['watch_5fset_5fled_5fgreen_76',['watch_set_led_green',['../group__led.html#gab01a29900ddc5315c0e752e63d748f41',1,'watch_led.h']]],
+ ['watch_5fset_5fled_5foff_77',['watch_set_led_off',['../group__led.html#ga8619f040ff7364285398412a4c420cae',1,'watch_led.h']]],
+ ['watch_5fset_5fled_5fred_78',['watch_set_led_red',['../group__led.html#ga36d89031d8e8813dfab5f6cff9c6ee40',1,'watch_led.h']]],
+ ['watch_5fset_5fled_5fyellow_79',['watch_set_led_yellow',['../group__led.html#ga51ba53c3281ad8724d98af27eacc3de0',1,'watch_led.h']]],
+ ['watch_5fset_5fpin_5flevel_80',['watch_set_pin_level',['../group__gpio.html#ga2e781c7e15045d2270f0cb3f87d619d6',1,'watch_gpio.h']]],
+ ['watch_5fset_5fpixel_81',['watch_set_pixel',['../group__slcd.html#ga47948dc2c7490b698810ef9914507e08',1,'watch_slcd.h']]],
+ ['watch_5fspi_5fread_82',['watch_spi_read',['../group__spi.html#ga20b320293d43a867233b5bedeeab07b3',1,'watch_spi.h']]],
+ ['watch_5fspi_5ftransfer_83',['watch_spi_transfer',['../group__spi.html#ga350791f4a5eb66d0725cd418d1cd1087',1,'watch_spi.h']]],
+ ['watch_5fspi_5fwrite_84',['watch_spi_write',['../group__spi.html#ga9e1b869726dc01834ac9a365b32ec492',1,'watch_spi.h']]],
+ ['watch_5fstart_5fcharacter_5fblink_85',['watch_start_character_blink',['../group__slcd.html#ga4c99ffbfa68aea0dce466db6e47879a5',1,'watch_slcd.h']]],
+ ['watch_5fstart_5ftick_5fanimation_86',['watch_start_tick_animation',['../group__slcd.html#ga70918c1acc2ed21512b69b83397303a4',1,'watch_slcd.h']]],
+ ['watch_5fstop_5fblink_87',['watch_stop_blink',['../group__slcd.html#ga5d29760dd0998de98f8578ed3de5b1e5',1,'watch_slcd.h']]],
+ ['watch_5fstop_5ftick_5fanimation_88',['watch_stop_tick_animation',['../group__slcd.html#gaf2c52b4430b4e78a066b3a2b104d142a',1,'watch_slcd.h']]],
+ ['watch_5fstore_5fbackup_5fdata_89',['watch_store_backup_data',['../group__deepsleep.html#ga385b36922ec76c5fe697772f97a05846',1,'watch_deepsleep.h']]],
+ ['watch_5ftick_5fanimation_5fis_5frunning_90',['watch_tick_animation_is_running',['../group__slcd.html#ga3764fb499e056f9a45588268f11be8a0',1,'watch_slcd.h']]],
+ ['watch_5fuart_5fgetc_91',['watch_uart_getc',['../group__uart.html#ga0c400bfcd52bb71e8de62c5ab2373db6',1,'watch_uart.h']]],
+ ['watch_5fuart_5fputs_92',['watch_uart_puts',['../group__uart.html#ga5d62683298c511f24adaab4bf6615c50',1,'watch_uart.h']]],
+ ['watch_5futility_5fconvert_5fto_5f12_5fhour_93',['watch_utility_convert_to_12_hour',['../group__utility.html#ga470a4c7199afac6319c259fc459881f4',1,'watch_utility_convert_to_12_hour(watch_date_time *date_time): watch_utility.c'],['../group__utility.html#ga470a4c7199afac6319c259fc459881f4',1,'watch_utility_convert_to_12_hour(watch_date_time *date_time): watch_utility.c']]],
+ ['watch_5futility_5fconvert_5fto_5funix_5ftime_94',['watch_utility_convert_to_unix_time',['../group__utility.html#ga94f5cc404949bf4c0ac4bc4770ec8eda',1,'watch_utility_convert_to_unix_time(uint16_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t minute, uint8_t second, uint32_t utc_offset): watch_utility.c'],['../group__utility.html#ga94f5cc404949bf4c0ac4bc4770ec8eda',1,'watch_utility_convert_to_unix_time(uint16_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t minute, uint8_t second, uint32_t utc_offset): watch_utility.c']]],
+ ['watch_5futility_5fdate_5ftime_5fconvert_5fzone_95',['watch_utility_date_time_convert_zone',['../group__utility.html#ga94f038ec0e1b8f3c48c4364b56566327',1,'watch_utility_date_time_convert_zone(watch_date_time date_time, uint32_t origin_utc_offset, uint32_t destination_utc_offset): watch_utility.c'],['../group__utility.html#ga94f038ec0e1b8f3c48c4364b56566327',1,'watch_utility_date_time_convert_zone(watch_date_time date_time, uint32_t origin_utc_offset, uint32_t destination_utc_offset): watch_utility.c']]],
+ ['watch_5futility_5fdate_5ftime_5ffrom_5funix_5ftime_96',['watch_utility_date_time_from_unix_time',['../group__utility.html#ga396e56109234aaa00993c3dd84f3f43c',1,'watch_utility_date_time_from_unix_time(uint32_t timestamp, uint32_t utc_offset): watch_utility.c'],['../group__utility.html#ga396e56109234aaa00993c3dd84f3f43c',1,'watch_utility_date_time_from_unix_time(uint32_t timestamp, uint32_t utc_offset): watch_utility.c']]],
+ ['watch_5futility_5fdate_5ftime_5fto_5funix_5ftime_97',['watch_utility_date_time_to_unix_time',['../group__utility.html#gaffafef58755ff2704cf93fe1a0849a27',1,'watch_utility_date_time_to_unix_time(watch_date_time date_time, uint32_t utc_offset): watch_utility.c'],['../group__utility.html#gaffafef58755ff2704cf93fe1a0849a27',1,'watch_utility_date_time_to_unix_time(watch_date_time date_time, uint32_t utc_offset): watch_utility.c']]],
+ ['watch_5futility_5fget_5fweekday_98',['watch_utility_get_weekday',['../group__utility.html#gaad14860c068aeed7a60e57874cad92b4',1,'watch_utility_get_weekday(watch_date_time date_time): watch_utility.c'],['../group__utility.html#gaad14860c068aeed7a60e57874cad92b4',1,'watch_utility_get_weekday(watch_date_time date_time): watch_utility.c']]],
+ ['watch_5futility_5fseconds_5fto_5fduration_99',['watch_utility_seconds_to_duration',['../group__utility.html#ga5d6af930688b240d0f075806b5730d21',1,'watch_utility_seconds_to_duration(uint32_t seconds): watch_utility.c'],['../group__utility.html#ga5d6af930688b240d0f075806b5730d21',1,'watch_utility_seconds_to_duration(uint32_t seconds): watch_utility.c']]],
+ ['watch_5futility_5fthermistor_5ftemperature_100',['watch_utility_thermistor_temperature',['../group__utility.html#ga2753ff031c28202d23b0f3e80de2c920',1,'watch_utility_thermistor_temperature(uint16_t value, bool highside, float b_coefficient, float nominal_temperature, float nominal_resistance, float series_resistance): watch_utility.c'],['../group__utility.html#ga2753ff031c28202d23b0f3e80de2c920',1,'watch_utility_thermistor_temperature(uint16_t value, bool highside, float b_coefficient, float nominal_temperature, float nominal_resistance, float series_resistance): watch_utility.c']]],
+ ['watchindicatorsegment_101',['WatchIndicatorSegment',['../group__slcd.html#ga37a28bfc539ea2bb83107d59f77b20d2',1,'WatchIndicatorSegment(): watch_slcd.h'],['../group__slcd.html#ga12f90dd93f63366e5a08f161e5f6c9f5',1,'WatchIndicatorSegment(): watch_slcd.h']]]
];
diff --git a/search/classes_0.js b/search/classes_0.js
index 2d1f517b..0d5424c6 100644
--- a/search/classes_0.js
+++ b/search/classes_0.js
@@ -1,4 +1,5 @@
var searchData=
[
- ['watch_5fdate_5ftime_0',['watch_date_time',['../unionwatch__date__time.html',1,'']]]
+ ['watch_5fdate_5ftime_0',['watch_date_time',['../unionwatch__date__time.html',1,'']]],
+ ['watch_5fduration_5ft_1',['watch_duration_t',['../structwatch__duration__t.html',1,'']]]
];
diff --git a/search/functions_2.js b/search/functions_2.js
index 77b5d8a8..9bae9dd3 100644
--- a/search/functions_2.js
+++ b/search/functions_2.js
@@ -90,5 +90,6 @@ var searchData=
['watch_5futility_5fdate_5ftime_5ffrom_5funix_5ftime_87',['watch_utility_date_time_from_unix_time',['../group__utility.html#ga396e56109234aaa00993c3dd84f3f43c',1,'watch_utility_date_time_from_unix_time(uint32_t timestamp, uint32_t utc_offset): watch_utility.c'],['../group__utility.html#ga396e56109234aaa00993c3dd84f3f43c',1,'watch_utility_date_time_from_unix_time(uint32_t timestamp, uint32_t utc_offset): watch_utility.c']]],
['watch_5futility_5fdate_5ftime_5fto_5funix_5ftime_88',['watch_utility_date_time_to_unix_time',['../group__utility.html#gaffafef58755ff2704cf93fe1a0849a27',1,'watch_utility_date_time_to_unix_time(watch_date_time date_time, uint32_t utc_offset): watch_utility.c'],['../group__utility.html#gaffafef58755ff2704cf93fe1a0849a27',1,'watch_utility_date_time_to_unix_time(watch_date_time date_time, uint32_t utc_offset): watch_utility.c']]],
['watch_5futility_5fget_5fweekday_89',['watch_utility_get_weekday',['../group__utility.html#gaad14860c068aeed7a60e57874cad92b4',1,'watch_utility_get_weekday(watch_date_time date_time): watch_utility.c'],['../group__utility.html#gaad14860c068aeed7a60e57874cad92b4',1,'watch_utility_get_weekday(watch_date_time date_time): watch_utility.c']]],
- ['watch_5futility_5fthermistor_5ftemperature_90',['watch_utility_thermistor_temperature',['../group__utility.html#ga2753ff031c28202d23b0f3e80de2c920',1,'watch_utility_thermistor_temperature(uint16_t value, bool highside, float b_coefficient, float nominal_temperature, float nominal_resistance, float series_resistance): watch_utility.c'],['../group__utility.html#ga2753ff031c28202d23b0f3e80de2c920',1,'watch_utility_thermistor_temperature(uint16_t value, bool highside, float b_coefficient, float nominal_temperature, float nominal_resistance, float series_resistance): watch_utility.c']]]
+ ['watch_5futility_5fseconds_5fto_5fduration_90',['watch_utility_seconds_to_duration',['../group__utility.html#ga5d6af930688b240d0f075806b5730d21',1,'watch_utility_seconds_to_duration(uint32_t seconds): watch_utility.c'],['../group__utility.html#ga5d6af930688b240d0f075806b5730d21',1,'watch_utility_seconds_to_duration(uint32_t seconds): watch_utility.c']]],
+ ['watch_5futility_5fthermistor_5ftemperature_91',['watch_utility_thermistor_temperature',['../group__utility.html#ga2753ff031c28202d23b0f3e80de2c920',1,'watch_utility_thermistor_temperature(uint16_t value, bool highside, float b_coefficient, float nominal_temperature, float nominal_resistance, float series_resistance): watch_utility.c'],['../group__utility.html#ga2753ff031c28202d23b0f3e80de2c920',1,'watch_utility_thermistor_temperature(uint16_t value, bool highside, float b_coefficient, float nominal_temperature, float nominal_resistance, float series_resistance): watch_utility.c']]]
];
diff --git a/structwatch__duration__t.html b/structwatch__duration__t.html
new file mode 100644
index 00000000..6fb36415
--- /dev/null
+++ b/structwatch__duration__t.html
@@ -0,0 +1,96 @@
+
+
+
+
+
+
+
+Sensor Watch: watch_duration_t Struct Reference
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Sensor Watch 0.0.0
+
+ A board replacement for the classic Casio F-91W wristwatch, powered by a Microchip SAM L22 microcontroller.
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+uint8_t | seconds |
+ |
+
+uint8_t | minutes |
+ |
+
+uint8_t | hours |
+ |
+
+uint32_t | days |
+ |
+
+
The documentation for this struct was generated from the following file:
+
+
+
+
+
diff --git a/watch__utility_8h_source.html b/watch__utility_8h_source.html
index 31f20c51..d8a06ac4 100644
--- a/watch__utility_8h_source.html
+++ b/watch__utility_8h_source.html
@@ -100,28 +100,39 @@ $(function() {
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-float watch_utility_thermistor_temperature(uint16_t value, bool highside, float b_coefficient, float nominal_temperature, float nominal_resistance, float series_resistance)
Returns a temperature in degrees Celsius for a given thermistor voltage divider circuit.
Definition: watch_utility.c:161
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+float watch_utility_thermistor_temperature(uint16_t value, bool highside, float b_coefficient, float nominal_temperature, float nominal_resistance, float series_resistance)
Returns a temperature in degrees Celsius for a given thermistor voltage divider circuit.
Definition: watch_utility.c:172
watch_date_time watch_utility_date_time_from_unix_time(uint32_t timestamp, uint32_t utc_offset)
Returns the UNIX time (seconds since 1970) for a given watch_date_time struct.
Definition: watch_utility.c:79
-bool watch_utility_convert_to_12_hour(watch_date_time *date_time)
Converts a watch_date_time for 12-hour display.
Definition: watch_utility.c:154
+bool watch_utility_convert_to_12_hour(watch_date_time *date_time)
Converts a watch_date_time for 12-hour display.
Definition: watch_utility.c:165
+watch_duration_t watch_utility_seconds_to_duration(uint32_t seconds)
Converts a duration in seconds to a watch_duration_t struct.
Definition: watch_utility.c:154
watch_date_time watch_utility_date_time_convert_zone(watch_date_time date_time, uint32_t origin_utc_offset, uint32_t destination_utc_offset)
Converts a time from a given time zone to another time zone.
Definition: watch_utility.c:149
uint32_t watch_utility_convert_to_unix_time(uint16_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t minute, uint8_t second, uint32_t utc_offset)
Returns the UNIX time (seconds since 1970) for a given date/time in UTC.
Definition: watch_utility.c:38
const char * watch_utility_get_weekday(watch_date_time date_time)
Returns a two-letter weekday for the given timestamp, suitable for display in positions 0-1 of the wa...
Definition: watch_utility.c:28
uint32_t watch_utility_date_time_to_unix_time(watch_date_time date_time, uint32_t utc_offset)
Returns the UNIX time (seconds since 1970) for a given watch_date_time struct.
Definition: watch_utility.c:69
+Definition: watch_utility.h:36
Definition: watch_rtc.h:44