summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--group__utility.html54
-rw-r--r--search/all_a.js7
-rw-r--r--search/functions_2.js5
-rw-r--r--watch__utility_8h_source.html5
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</h2></td></tr>
<tr class="memitem:ga2753ff031c28202d23b0f3e80de2c920"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__utility.html#ga2753ff031c28202d23b0f3e80de2c920">watch_utility_thermistor_temperature</a> (uint16_t value, bool highside, float b_coefficient, float nominal_temperature, float nominal_resistance, float series_resistance)</td></tr>
<tr class="memdesc:ga2753ff031c28202d23b0f3e80de2c920"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a temperature in degrees Celsius for a given thermistor voltage divider circuit. <a href="group__utility.html#ga2753ff031c28202d23b0f3e80de2c920">More...</a><br /></td></tr>
<tr class="separator:ga2753ff031c28202d23b0f3e80de2c920"><td class="memSeparator" colspan="2">&#160;</td></tr>
+<tr class="memitem:ga176fd2c04778c2049f6ae8b9d374725c"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__utility.html#ga176fd2c04778c2049f6ae8b9d374725c">watch_utility_offset_timestamp</a> (uint32_t now, int8_t hours, int8_t minutes, int8_t seconds)</td></tr>
+<tr class="memdesc:ga176fd2c04778c2049f6ae8b9d374725c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Offset a timestamp by a given amount. <a href="group__utility.html#ga176fd2c04778c2049f6ae8b9d374725c">More...</a><br /></td></tr>
+<tr class="separator:ga176fd2c04778c2049f6ae8b9d374725c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="var-members" name="var-members"></a>
Variables</h2></td></tr>
@@ -376,6 +379,57 @@ uint32_t&#160;</td><td class="memItemRight" valign="bottom"><b>watch_duration_t:
</div>
</div>
+<a id="ga176fd2c04778c2049f6ae8b9d374725c" name="ga176fd2c04778c2049f6ae8b9d374725c"></a>
+<h2 class="memtitle"><span class="permalink"><a href="#ga176fd2c04778c2049f6ae8b9d374725c">&#9670;&nbsp;</a></span>watch_utility_offset_timestamp()</h2>
+
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">uint32_t watch_utility_offset_timestamp </td>
+ <td>(</td>
+ <td class="paramtype">uint32_t&#160;</td>
+ <td class="paramname"><em>now</em>, </td>
+ </tr>
+ <tr>
+ <td class="paramkey"></td>
+ <td></td>
+ <td class="paramtype">int8_t&#160;</td>
+ <td class="paramname"><em>hours</em>, </td>
+ </tr>
+ <tr>
+ <td class="paramkey"></td>
+ <td></td>
+ <td class="paramtype">int8_t&#160;</td>
+ <td class="paramname"><em>minutes</em>, </td>
+ </tr>
+ <tr>
+ <td class="paramkey"></td>
+ <td></td>
+ <td class="paramtype">int8_t&#160;</td>
+ <td class="paramname"><em>seconds</em>&#160;</td>
+ </tr>
+ <tr>
+ <td></td>
+ <td>)</td>
+ <td></td><td></td>
+ </tr>
+ </table>
+</div><div class="memdoc">
+
+<p>Offset a timestamp by a given amount. </p>
+<dl class="params"><dt>Parameters</dt><dd>
+ <table class="params">
+ <tr><td class="paramname">now</td><td>Timestamp to offset from </td></tr>
+ <tr><td class="paramname">hours</td><td>Number of hours to offset </td></tr>
+ <tr><td class="paramname">minutes</td><td>Nmber of minutes to offset </td></tr>
+ <tr><td class="paramname">seconds</td><td>Number of secodns to offset </td></tr>
+ </table>
+ </dd>
+</dl>
+
+</div>
+</div>
<a id="ga5d6af930688b240d0f075806b5730d21" name="ga5d6af930688b240d0f075806b5730d21"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga5d6af930688b240d0f075806b5730d21">&#9670;&nbsp;</a></span>watch_utility_seconds_to_duration()</h2>
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):&#160;watch_utility.c'],['../group__utility.html#ga396e56109234aaa00993c3dd84f3f43c',1,'watch_utility_date_time_from_unix_time(uint32_t timestamp, uint32_t utc_offset):&#160;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):&#160;watch_utility.c'],['../group__utility.html#gaffafef58755ff2704cf93fe1a0849a27',1,'watch_utility_date_time_to_unix_time(watch_date_time date_time, uint32_t utc_offset):&#160;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):&#160;watch_utility.c'],['../group__utility.html#gaad14860c068aeed7a60e57874cad92b4',1,'watch_utility_get_weekday(watch_date_time date_time):&#160;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):&#160;watch_utility.c'],['../group__utility.html#ga5d6af930688b240d0f075806b5730d21',1,'watch_utility_seconds_to_duration(uint32_t seconds):&#160;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):&#160;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):&#160;watch_utility.c']]],
- ['watchindicatorsegment_100',['WatchIndicatorSegment',['../group__slcd.html#ga37a28bfc539ea2bb83107d59f77b20d2',1,'WatchIndicatorSegment():&#160;watch_slcd.h'],['../group__slcd.html#ga12f90dd93f63366e5a08f161e5f6c9f5',1,'WatchIndicatorSegment():&#160;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):&#160;watch_utility.c'],['../group__utility.html#ga176fd2c04778c2049f6ae8b9d374725c',1,'watch_utility_offset_timestamp(uint32_t now, int8_t hours, int8_t minutes, int8_t seconds):&#160;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):&#160;watch_utility.c'],['../group__utility.html#ga5d6af930688b240d0f075806b5730d21',1,'watch_utility_seconds_to_duration(uint32_t seconds):&#160;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):&#160;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):&#160;watch_utility.c']]],
+ ['watchindicatorsegment_101',['WatchIndicatorSegment',['../group__slcd.html#ga37a28bfc539ea2bb83107d59f77b20d2',1,'WatchIndicatorSegment():&#160;watch_slcd.h'],['../group__slcd.html#ga12f90dd93f63366e5a08f161e5f6c9f5',1,'WatchIndicatorSegment():&#160;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):&#160;watch_utility.c'],['../group__utility.html#ga396e56109234aaa00993c3dd84f3f43c',1,'watch_utility_date_time_from_unix_time(uint32_t timestamp, uint32_t utc_offset):&#160;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):&#160;watch_utility.c'],['../group__utility.html#gaffafef58755ff2704cf93fe1a0849a27',1,'watch_utility_date_time_to_unix_time(watch_date_time date_time, uint32_t utc_offset):&#160;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):&#160;watch_utility.c'],['../group__utility.html#gaad14860c068aeed7a60e57874cad92b4',1,'watch_utility_get_weekday(watch_date_time date_time):&#160;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):&#160;watch_utility.c'],['../group__utility.html#ga5d6af930688b240d0f075806b5730d21',1,'watch_utility_seconds_to_duration(uint32_t seconds):&#160;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):&#160;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):&#160;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):&#160;watch_utility.c'],['../group__utility.html#ga176fd2c04778c2049f6ae8b9d374725c',1,'watch_utility_offset_timestamp(uint32_t now, int8_t hours, int8_t minutes, int8_t seconds):&#160;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):&#160;watch_utility.c'],['../group__utility.html#ga5d6af930688b240d0f075806b5730d21',1,'watch_utility_seconds_to_duration(uint32_t seconds):&#160;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):&#160;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):&#160;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() {
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> </div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span><span class="keywordtype">float</span> <a class="code hl_function" href="group__utility.html#ga2753ff031c28202d23b0f3e80de2c920">watch_utility_thermistor_temperature</a>(uint16_t value, <span class="keywordtype">bool</span> highside, <span class="keywordtype">float</span> b_coefficient, <span class="keywordtype">float</span> nominal_temperature, <span class="keywordtype">float</span> nominal_resistance, <span class="keywordtype">float</span> series_resistance);</div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> </div>
-<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span><span class="preprocessor">#endif</span></div>
+<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span>uint32_t <a class="code hl_function" href="group__utility.html#ga176fd2c04778c2049f6ae8b9d374725c">watch_utility_offset_timestamp</a>(uint32_t now, int8_t hours, int8_t minutes, int8_t seconds);</div>
+<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> </div>
+<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span><span class="preprocessor">#endif</span></div>
+<div class="ttc" id="agroup__utility_html_ga176fd2c04778c2049f6ae8b9d374725c"><div class="ttname"><a href="group__utility.html#ga176fd2c04778c2049f6ae8b9d374725c">watch_utility_offset_timestamp</a></div><div class="ttdeci">uint32_t watch_utility_offset_timestamp(uint32_t now, int8_t hours, int8_t minutes, int8_t seconds)</div><div class="ttdoc">Offset a timestamp by a given amount.</div><div class="ttdef"><b>Definition:</b> watch_utility.c:192</div></div>
<div class="ttc" id="agroup__utility_html_ga2753ff031c28202d23b0f3e80de2c920"><div class="ttname"><a href="group__utility.html#ga2753ff031c28202d23b0f3e80de2c920">watch_utility_thermistor_temperature</a></div><div class="ttdeci">float watch_utility_thermistor_temperature(uint16_t value, bool highside, float b_coefficient, float nominal_temperature, float nominal_resistance, float series_resistance)</div><div class="ttdoc">Returns a temperature in degrees Celsius for a given thermistor voltage divider circuit.</div><div class="ttdef"><b>Definition:</b> watch_utility.c:172</div></div>
<div class="ttc" id="agroup__utility_html_ga396e56109234aaa00993c3dd84f3f43c"><div class="ttname"><a href="group__utility.html#ga396e56109234aaa00993c3dd84f3f43c">watch_utility_date_time_from_unix_time</a></div><div class="ttdeci">watch_date_time watch_utility_date_time_from_unix_time(uint32_t timestamp, uint32_t utc_offset)</div><div class="ttdoc">Returns a watch_date_time struct for a given UNIX time and UTC offset.</div><div class="ttdef"><b>Definition:</b> watch_utility.c:79</div></div>
<div class="ttc" id="agroup__utility_html_ga470a4c7199afac6319c259fc459881f4"><div class="ttname"><a href="group__utility.html#ga470a4c7199afac6319c259fc459881f4">watch_utility_convert_to_12_hour</a></div><div class="ttdeci">bool watch_utility_convert_to_12_hour(watch_date_time *date_time)</div><div class="ttdoc">Converts a watch_date_time for 12-hour display.</div><div class="ttdef"><b>Definition:</b> watch_utility.c:165</div></div>