From 8c94c40e1ff74fbc1cc5993aa5f4d9586b59abbf Mon Sep 17 00:00:00 2001 From: joeycastillo Date: Wed, 6 Apr 2022 18:33:50 +0000 Subject: deploy: 1ec1f2e4207405d55c34c936e2c458cb4a7e8806 --- group__utility.html | 54 +++++++++++++++++++++++++++++++++++++++++++ search/all_a.js | 7 +++--- search/functions_2.js | 5 ++-- watch__utility_8h_source.html | 5 +++- 4 files changed, 65 insertions(+), 6 deletions(-) diff --git a/group__utility.html b/group__utility.html index 020f8eae..449e0337 100644 --- a/group__utility.html +++ b/group__utility.html @@ -105,6 +105,9 @@ 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...
  +uint32_t watch_utility_offset_timestamp (uint32_t now, int8_t hours, int8_t minutes, int8_t seconds) + Offset a timestamp by a given amount. More...
+  @@ -374,6 +377,57 @@ uint32_t 

Variables

watch_duration_t: + + + +

◆ watch_utility_offset_timestamp()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
uint32_t watch_utility_offset_timestamp (uint32_t now,
int8_t hours,
int8_t minutes,
int8_t seconds 
)
+
+ +

Offset a timestamp by a given amount.

+
Parameters
+ + + + + +
nowTimestamp to offset from
hoursNumber of hours to offset
minutesNmber of minutes to offset
secondsNumber of secodns to offset
+
+
+
diff --git a/search/all_a.js b/search/all_a.js index 2a4e2ab4..3d9589c4 100644 --- a/search/all_a.js +++ b/search/all_a.js @@ -98,7 +98,8 @@ var searchData= ['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_5fseconds_5fto_5fduration_98',['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_99',['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_100',['WatchIndicatorSegment',['../group__slcd.html#ga37a28bfc539ea2bb83107d59f77b20d2',1,'WatchIndicatorSegment(): watch_slcd.h'],['../group__slcd.html#ga12f90dd93f63366e5a08f161e5f6c9f5',1,'WatchIndicatorSegment(): watch_slcd.h']]] + ['watch_5futility_5foffset_5ftimestamp_98',['watch_utility_offset_timestamp',['../group__utility.html#ga176fd2c04778c2049f6ae8b9d374725c',1,'watch_utility_offset_timestamp(uint32_t now, int8_t hours, int8_t minutes, int8_t seconds): watch_utility.c'],['../group__utility.html#ga176fd2c04778c2049f6ae8b9d374725c',1,'watch_utility_offset_timestamp(uint32_t now, int8_t hours, int8_t minutes, int8_t seconds): 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/functions_2.js b/search/functions_2.js index 712bd39a..d197b10c 100644 --- a/search/functions_2.js +++ b/search/functions_2.js @@ -89,6 +89,7 @@ var searchData= ['watch_5futility_5fdate_5ftime_5ffrom_5funix_5ftime_86',['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_87',['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_88',['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_89',['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_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_5foffset_5ftimestamp_89',['watch_utility_offset_timestamp',['../group__utility.html#ga176fd2c04778c2049f6ae8b9d374725c',1,'watch_utility_offset_timestamp(uint32_t now, int8_t hours, int8_t minutes, int8_t seconds): watch_utility.c'],['../group__utility.html#ga176fd2c04778c2049f6ae8b9d374725c',1,'watch_utility_offset_timestamp(uint32_t now, int8_t hours, int8_t minutes, int8_t seconds): 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/watch__utility_8h_source.html b/watch__utility_8h_source.html index a432aaa5..4aa33491 100644 --- a/watch__utility_8h_source.html +++ b/watch__utility_8h_source.html @@ -123,7 +123,10 @@ $(function() {
110
125float watch_utility_thermistor_temperature(uint16_t value, bool highside, float b_coefficient, float nominal_temperature, float nominal_resistance, float series_resistance);
126
-
127#endif
+
133uint32_t watch_utility_offset_timestamp(uint32_t now, int8_t hours, int8_t minutes, int8_t seconds);
+
134
+
135#endif
+
uint32_t watch_utility_offset_timestamp(uint32_t now, int8_t hours, int8_t minutes, int8_t seconds)
Offset a timestamp by a given amount.
Definition: watch_utility.c:192
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 a watch_date_time struct for a given UNIX time and UTC offset.
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:165
-- cgit v1.2.3