-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
249 changed files
with
23,848 additions
and
10 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,293 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> | ||
<meta http-equiv="X-UA-Compatible" content="IE=9"/> | ||
<meta name="generator" content="Doxygen 1.8.20"/> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"/> | ||
<title>ESPNtpClient: src/ESPNtpClient.cpp File Reference</title> | ||
<link href="tabs.css" rel="stylesheet" type="text/css"/> | ||
<script type="text/javascript" src="jquery.js"></script> | ||
<script type="text/javascript" src="dynsections.js"></script> | ||
<link href="search/search.css" rel="stylesheet" type="text/css"/> | ||
<script type="text/javascript" src="search/searchdata.js"></script> | ||
<script type="text/javascript" src="search/search.js"></script> | ||
<link href="doxygen.css" rel="stylesheet" type="text/css" /> | ||
</head> | ||
<body> | ||
<div id="top"><!-- do not remove this div, it is closed by doxygen! --> | ||
<div id="titlearea"> | ||
<table cellspacing="0" cellpadding="0"> | ||
<tbody> | ||
<tr style="height: 56px;"> | ||
<td id="projectlogo"><img alt="Logo" src="ESPNTPClient-logo.png"/></td> | ||
<td id="projectalign" style="padding-left: 0.5em;"> | ||
<div id="projectname">ESPNtpClient | ||
 <span id="projectnumber">0.1.0</span> | ||
</div> | ||
<div id="projectbrief">Library to get system sync from a NTP server with microseconds accuracy in ESP8266 and ESP32</div> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
<!-- end header part --> | ||
<!-- Generated by Doxygen 1.8.20 --> | ||
<script type="text/javascript"> | ||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ | ||
var searchBox = new SearchBox("searchBox", "search",false,'Search'); | ||
/* @license-end */ | ||
</script> | ||
<script type="text/javascript" src="menudata.js"></script> | ||
<script type="text/javascript" src="menu.js"></script> | ||
<script type="text/javascript"> | ||
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ | ||
$(function() { | ||
initMenu('',true,false,'search.php','Search'); | ||
$(document).ready(function() { init_search(); }); | ||
}); | ||
/* @license-end */</script> | ||
<div id="main-nav"></div> | ||
<!-- window showing the filter options --> | ||
<div id="MSearchSelectWindow" | ||
onmouseover="return searchBox.OnSearchSelectShow()" | ||
onmouseout="return searchBox.OnSearchSelectHide()" | ||
onkeydown="return searchBox.OnSearchSelectKey(event)"> | ||
</div> | ||
|
||
<!-- iframe showing the search results (closed by default) --> | ||
<div id="MSearchResultsWindow"> | ||
<iframe src="javascript:void(0)" frameborder="0" | ||
name="MSearchResults" id="MSearchResults"> | ||
</iframe> | ||
</div> | ||
|
||
<div id="nav-path" class="navpath"> | ||
<ul> | ||
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li> </ul> | ||
</div> | ||
</div><!-- top --> | ||
<div class="header"> | ||
<div class="summary"> | ||
<a href="#nested-classes">Classes</a> | | ||
<a href="#define-members">Macros</a> | | ||
<a href="#func-members">Functions</a> | | ||
<a href="#var-members">Variables</a> </div> | ||
<div class="headertitle"> | ||
<div class="title">ESPNtpClient.cpp File Reference</div> </div> | ||
</div><!--header--> | ||
<div class="contents"> | ||
<div class="textblock"><code>#include "<a class="el" href="ESPNtpClient_8h_source.html">ESPNtpClient.h</a>"</code><br /> | ||
</div> | ||
<p><a href="ESPNtpClient_8cpp_source.html">Go to the source code of this file.</a></p> | ||
<table class="memberdecls"> | ||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a> | ||
Classes</h2></td></tr> | ||
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structtimestamp__t.html">timestamp_t</a></td></tr> | ||
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">NTP Timestamp Format The prime epoch, or base date of era 0, is 0 h 1 January 1900 UTC, when all bits are zero. <a href="structtimestamp__t.html#details">More...</a><br /></td></tr> | ||
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> | ||
</table><table class="memberdecls"> | ||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a> | ||
Macros</h2></td></tr> | ||
<tr class="memitem:adc170618365b3cca7bf58df7cfaa0ffe"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="ESPNtpClient_8cpp.html#adc170618365b3cca7bf58df7cfaa0ffe">DBG_PORT</a>   Serial</td></tr> | ||
<tr class="separator:adc170618365b3cca7bf58df7cfaa0ffe"><td class="memSeparator" colspan="2"> </td></tr> | ||
<tr class="memitem:ad90d8205f7f73a2e3324ae5aff97e9bc"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="ESPNtpClient_8cpp.html#ad90d8205f7f73a2e3324ae5aff97e9bc">DEBUGLOG</a>(...)</td></tr> | ||
<tr class="separator:ad90d8205f7f73a2e3324ae5aff97e9bc"><td class="memSeparator" colspan="2"> </td></tr> | ||
</table><table class="memberdecls"> | ||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> | ||
Functions</h2></td></tr> | ||
<tr class="memitem:a942ca748a0c3a7b8b4478ffc6074e0e9"><td class="memItemLeft" align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="ESPNtpClient_8cpp.html#a942ca748a0c3a7b8b4478ffc6074e0e9">__attribute__</a> ((packed, aligned(1)))</td></tr> | ||
<tr class="separator:a942ca748a0c3a7b8b4478ffc6074e0e9"><td class="memSeparator" colspan="2"> </td></tr> | ||
<tr class="memitem:a004437ce9f8976c43a4453a91718a424"><td class="memItemLeft" align="right" valign="top">int32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="ESPNtpClient_8cpp.html#a004437ce9f8976c43a4453a91718a424">flipInt32</a> (int32_t number)</td></tr> | ||
<tr class="separator:a004437ce9f8976c43a4453a91718a424"><td class="memSeparator" colspan="2"> </td></tr> | ||
<tr class="memitem:ac65202d117e0901acbdac706d78a6ef9"><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="ESPNtpClient_8cpp.html#ac65202d117e0901acbdac706d78a6ef9">dumpNTPPacket</a> (byte *data, size_t length, char *buffer, int len)</td></tr> | ||
<tr class="separator:ac65202d117e0901acbdac706d78a6ef9"><td class="memSeparator" colspan="2"> </td></tr> | ||
</table><table class="memberdecls"> | ||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a> | ||
Variables</h2></td></tr> | ||
<tr class="memitem:aaacab2c3d11b1c71ca873492349f57d7"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="ESPNtpClient_8cpp.html#aaacab2c3d11b1c71ca873492349f57d7">NTPUndecodedPacket_t</a></td></tr> | ||
<tr class="separator:aaacab2c3d11b1c71ca873492349f57d7"><td class="memSeparator" colspan="2"> </td></tr> | ||
<tr class="memitem:a10953f00acc9c54a2371691d10e32a57"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classNTPClient.html">NTPClient</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="ESPNtpClient_8cpp.html#a10953f00acc9c54a2371691d10e32a57">NTP</a></td></tr> | ||
<tr class="memdesc:a10953f00acc9c54a2371691d10e32a57"><td class="mdescLeft"> </td><td class="mdescRight">Singleton <a class="el" href="classNTPClient.html" title="NTPClient class.">NTPClient</a> instance. <a href="ESPNtpClient_8cpp.html#a10953f00acc9c54a2371691d10e32a57">More...</a><br /></td></tr> | ||
<tr class="separator:a10953f00acc9c54a2371691d10e32a57"><td class="memSeparator" colspan="2"> </td></tr> | ||
<tr class="memitem:acd0d9d8dd6599a87d900a8c728421832"><td class="memItemLeft" align="right" valign="top">const int </td><td class="memItemRight" valign="bottom"><a class="el" href="ESPNtpClient_8cpp.html#acd0d9d8dd6599a87d900a8c728421832">seventyYears</a> = 2208988800UL</td></tr> | ||
<tr class="separator:acd0d9d8dd6599a87d900a8c728421832"><td class="memSeparator" colspan="2"> </td></tr> | ||
</table> | ||
<h2 class="groupheader">Macro Definition Documentation</h2> | ||
<a id="adc170618365b3cca7bf58df7cfaa0ffe"></a> | ||
<h2 class="memtitle"><span class="permalink"><a href="#adc170618365b3cca7bf58df7cfaa0ffe">◆ </a></span>DBG_PORT</h2> | ||
|
||
<div class="memitem"> | ||
<div class="memproto"> | ||
<table class="memname"> | ||
<tr> | ||
<td class="memname">#define DBG_PORT   Serial</td> | ||
</tr> | ||
</table> | ||
</div><div class="memdoc"> | ||
|
||
<p class="definition">Definition at line <a class="el" href="ESPNtpClient_8cpp_source.html#l00004">4</a> of file <a class="el" href="ESPNtpClient_8cpp_source.html">ESPNtpClient.cpp</a>.</p> | ||
|
||
</div> | ||
</div> | ||
<a id="ad90d8205f7f73a2e3324ae5aff97e9bc"></a> | ||
<h2 class="memtitle"><span class="permalink"><a href="#ad90d8205f7f73a2e3324ae5aff97e9bc">◆ </a></span>DEBUGLOG</h2> | ||
|
||
<div class="memitem"> | ||
<div class="memproto"> | ||
<table class="memname"> | ||
<tr> | ||
<td class="memname">#define DEBUGLOG</td> | ||
<td>(</td> | ||
<td class="paramtype"> </td> | ||
<td class="paramname"><em>...</em></td><td>)</td> | ||
<td></td> | ||
</tr> | ||
</table> | ||
</div><div class="memdoc"> | ||
|
||
<p class="definition">Definition at line <a class="el" href="ESPNtpClient_8cpp_source.html#l00019">19</a> of file <a class="el" href="ESPNtpClient_8cpp_source.html">ESPNtpClient.cpp</a>.</p> | ||
|
||
</div> | ||
</div> | ||
<h2 class="groupheader">Function Documentation</h2> | ||
<a id="a942ca748a0c3a7b8b4478ffc6074e0e9"></a> | ||
<h2 class="memtitle"><span class="permalink"><a href="#a942ca748a0c3a7b8b4478ffc6074e0e9">◆ </a></span>__attribute__()</h2> | ||
|
||
<div class="memitem"> | ||
<div class="memproto"> | ||
<table class="memname"> | ||
<tr> | ||
<td class="memname">struct __attribute__ </td> | ||
<td>(</td> | ||
<td class="paramtype">(packed, aligned(1)) </td> | ||
<td class="paramname"></td><td>)</td> | ||
<td></td> | ||
</tr> | ||
</table> | ||
</div><div class="memdoc"> | ||
|
||
<p class="definition">Definition at line <a class="el" href="ESPNtpClient_8cpp_source.html#l00001">1</a> of file <a class="el" href="ESPNtpClient_8cpp_source.html">ESPNtpClient.cpp</a>.</p> | ||
|
||
</div> | ||
</div> | ||
<a id="ac65202d117e0901acbdac706d78a6ef9"></a> | ||
<h2 class="memtitle"><span class="permalink"><a href="#ac65202d117e0901acbdac706d78a6ef9">◆ </a></span>dumpNTPPacket()</h2> | ||
|
||
<div class="memitem"> | ||
<div class="memproto"> | ||
<table class="memname"> | ||
<tr> | ||
<td class="memname">char* dumpNTPPacket </td> | ||
<td>(</td> | ||
<td class="paramtype">byte * </td> | ||
<td class="paramname"><em>data</em>, </td> | ||
</tr> | ||
<tr> | ||
<td class="paramkey"></td> | ||
<td></td> | ||
<td class="paramtype">size_t </td> | ||
<td class="paramname"><em>length</em>, </td> | ||
</tr> | ||
<tr> | ||
<td class="paramkey"></td> | ||
<td></td> | ||
<td class="paramtype">char * </td> | ||
<td class="paramname"><em>buffer</em>, </td> | ||
</tr> | ||
<tr> | ||
<td class="paramkey"></td> | ||
<td></td> | ||
<td class="paramtype">int </td> | ||
<td class="paramname"><em>len</em> </td> | ||
</tr> | ||
<tr> | ||
<td></td> | ||
<td>)</td> | ||
<td></td><td></td> | ||
</tr> | ||
</table> | ||
</div><div class="memdoc"> | ||
|
||
<p class="definition">Definition at line <a class="el" href="ESPNtpClient_8cpp_source.html#l00079">79</a> of file <a class="el" href="ESPNtpClient_8cpp_source.html">ESPNtpClient.cpp</a>.</p> | ||
|
||
</div> | ||
</div> | ||
<a id="a004437ce9f8976c43a4453a91718a424"></a> | ||
<h2 class="memtitle"><span class="permalink"><a href="#a004437ce9f8976c43a4453a91718a424">◆ </a></span>flipInt32()</h2> | ||
|
||
<div class="memitem"> | ||
<div class="memproto"> | ||
<table class="memname"> | ||
<tr> | ||
<td class="memname">int32_t flipInt32 </td> | ||
<td>(</td> | ||
<td class="paramtype">int32_t </td> | ||
<td class="paramname"><em>number</em></td><td>)</td> | ||
<td></td> | ||
</tr> | ||
</table> | ||
</div><div class="memdoc"> | ||
|
||
<p class="definition">Definition at line <a class="el" href="ESPNtpClient_8cpp_source.html#l00065">65</a> of file <a class="el" href="ESPNtpClient_8cpp_source.html">ESPNtpClient.cpp</a>.</p> | ||
|
||
</div> | ||
</div> | ||
<h2 class="groupheader">Variable Documentation</h2> | ||
<a id="a10953f00acc9c54a2371691d10e32a57"></a> | ||
<h2 class="memtitle"><span class="permalink"><a href="#a10953f00acc9c54a2371691d10e32a57">◆ </a></span>NTP</h2> | ||
|
||
<div class="memitem"> | ||
<div class="memproto"> | ||
<table class="memname"> | ||
<tr> | ||
<td class="memname"><a class="el" href="classNTPClient.html">NTPClient</a> NTP</td> | ||
</tr> | ||
</table> | ||
</div><div class="memdoc"> | ||
|
||
<p>Singleton <a class="el" href="classNTPClient.html" title="NTPClient class.">NTPClient</a> instance. </p> | ||
|
||
<p class="definition">Definition at line <a class="el" href="ESPNtpClient_8cpp_source.html#l00061">61</a> of file <a class="el" href="ESPNtpClient_8cpp_source.html">ESPNtpClient.cpp</a>.</p> | ||
|
||
</div> | ||
</div> | ||
<a id="aaacab2c3d11b1c71ca873492349f57d7"></a> | ||
<h2 class="memtitle"><span class="permalink"><a href="#aaacab2c3d11b1c71ca873492349f57d7">◆ </a></span>NTPUndecodedPacket_t</h2> | ||
|
||
<div class="memitem"> | ||
<div class="memproto"> | ||
<table class="memname"> | ||
<tr> | ||
<td class="memname">NTPUndecodedPacket_t</td> | ||
</tr> | ||
</table> | ||
</div><div class="memdoc"> | ||
|
||
<p class="definition">Definition at line <a class="el" href="ESPNtpClient_8cpp_source.html#l00059">59</a> of file <a class="el" href="ESPNtpClient_8cpp_source.html">ESPNtpClient.cpp</a>.</p> | ||
|
||
</div> | ||
</div> | ||
<a id="acd0d9d8dd6599a87d900a8c728421832"></a> | ||
<h2 class="memtitle"><span class="permalink"><a href="#acd0d9d8dd6599a87d900a8c728421832">◆ </a></span>seventyYears</h2> | ||
|
||
<div class="memitem"> | ||
<div class="memproto"> | ||
<table class="memname"> | ||
<tr> | ||
<td class="memname">const int seventyYears = 2208988800UL</td> | ||
</tr> | ||
</table> | ||
</div><div class="memdoc"> | ||
|
||
<p class="definition">Definition at line <a class="el" href="ESPNtpClient_8cpp_source.html#l00063">63</a> of file <a class="el" href="ESPNtpClient_8cpp_source.html">ESPNtpClient.cpp</a>.</p> | ||
|
||
</div> | ||
</div> | ||
</div><!-- contents --> | ||
<!-- start footer part --> | ||
<hr class="footer"/><address class="footer"><small> | ||
Generated by <a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20 | ||
</small></address> | ||
</body> | ||
</html> |
Oops, something went wrong.