Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

202 lines
11KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.14"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>SdFat: FsDateTime Namespace Reference</title>
  9. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  13. <script type="text/javascript" src="search/searchdata.js"></script>
  14. <script type="text/javascript" src="search/search.js"></script>
  15. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  19. <div id="titlearea">
  20. <table cellspacing="0" cellpadding="0">
  21. <tbody>
  22. <tr style="height: 56px;">
  23. <td id="projectalign" style="padding-left: 0.5em;">
  24. <div id="projectname">SdFat
  25. </div>
  26. </td>
  27. </tr>
  28. </tbody>
  29. </table>
  30. </div>
  31. <!-- end header part -->
  32. <!-- Generated by Doxygen 1.8.14 -->
  33. <script type="text/javascript">
  34. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  35. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  36. /* @license-end */
  37. </script>
  38. <script type="text/javascript" src="menudata.js"></script>
  39. <script type="text/javascript" src="menu.js"></script>
  40. <script type="text/javascript">
  41. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  42. $(function() {
  43. initMenu('',true,false,'search.php','Search');
  44. $(document).ready(function() { init_search(); });
  45. });
  46. /* @license-end */</script>
  47. <div id="main-nav"></div>
  48. <!-- window showing the filter options -->
  49. <div id="MSearchSelectWindow"
  50. onmouseover="return searchBox.OnSearchSelectShow()"
  51. onmouseout="return searchBox.OnSearchSelectHide()"
  52. onkeydown="return searchBox.OnSearchSelectKey(event)">
  53. </div>
  54. <!-- iframe showing the search results (closed by default) -->
  55. <div id="MSearchResultsWindow">
  56. <iframe src="javascript:void(0)" frameborder="0"
  57. name="MSearchResults" id="MSearchResults">
  58. </iframe>
  59. </div>
  60. </div><!-- top -->
  61. <div class="header">
  62. <div class="summary">
  63. <a href="#func-members">Functions</a> &#124;
  64. <a href="#var-members">Variables</a> </div>
  65. <div class="headertitle">
  66. <div class="title">FsDateTime Namespace Reference</div> </div>
  67. </div><!--header-->
  68. <div class="contents">
  69. <table class="memberdecls">
  70. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
  71. Functions</h2></td></tr>
  72. <tr class="memitem:af88a1ebd9c91a474c79a641e716729a0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_fs_date_time.html#af88a1ebd9c91a474c79a641e716729a0">clearCallback</a> ()</td></tr>
  73. <tr class="separator:af88a1ebd9c91a474c79a641e716729a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
  74. <tr class="memitem:afae6e23c2ed7d8194023d19d87fb1b62"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_fs_date_time.html#afae6e23c2ed7d8194023d19d87fb1b62">setCallback</a> (void(*dateTime)(uint16_t *date, uint16_t *time))</td></tr>
  75. <tr class="separator:afae6e23c2ed7d8194023d19d87fb1b62"><td class="memSeparator" colspan="2">&#160;</td></tr>
  76. <tr class="memitem:aa48bd625d32aae8fcfe67aba1d080be3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_fs_date_time.html#aa48bd625d32aae8fcfe67aba1d080be3">setCallback</a> (void(*dateTime)(uint16_t *date, uint16_t *time, uint8_t *ms10))</td></tr>
  77. <tr class="separator:aa48bd625d32aae8fcfe67aba1d080be3"><td class="memSeparator" colspan="2">&#160;</td></tr>
  78. </table><table class="memberdecls">
  79. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
  80. Variables</h2></td></tr>
  81. <tr class="memitem:a9913c0f3fe4d14e8e96f1d580cee43df"><td class="memItemLeft" align="right" valign="top">void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_fs_date_time.html#a9913c0f3fe4d14e8e96f1d580cee43df">callback</a> )(uint16_t *date, uint16_t *time, uint8_t *ms10) = <a class="el" href="_stdio_stream_8h.html#a070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a></td></tr>
  82. <tr class="separator:a9913c0f3fe4d14e8e96f1d580cee43df"><td class="memSeparator" colspan="2">&#160;</td></tr>
  83. <tr class="memitem:aacb16a794ce07cdb922624d7d4277ae9"><td class="memItemLeft" align="right" valign="top">void(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_fs_date_time.html#aacb16a794ce07cdb922624d7d4277ae9">callback2</a> )(uint16_t *date, uint16_t *time) = <a class="el" href="_stdio_stream_8h.html#a070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a></td></tr>
  84. <tr class="separator:aacb16a794ce07cdb922624d7d4277ae9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  85. </table>
  86. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  87. <div class="textblock"><p>Date time callback.</p>
  88. <p>Date time callback </p>
  89. </div><h2 class="groupheader">Function Documentation</h2>
  90. <a id="af88a1ebd9c91a474c79a641e716729a0"></a>
  91. <h2 class="memtitle"><span class="permalink"><a href="#af88a1ebd9c91a474c79a641e716729a0">&#9670;&nbsp;</a></span>clearCallback()</h2>
  92. <div class="memitem">
  93. <div class="memproto">
  94. <table class="memname">
  95. <tr>
  96. <td class="memname">void FsDateTime::clearCallback </td>
  97. <td>(</td>
  98. <td class="paramname"></td><td>)</td>
  99. <td></td>
  100. </tr>
  101. </table>
  102. </div><div class="memdoc">
  103. <p>Cancel callback </p>
  104. </div>
  105. </div>
  106. <a id="afae6e23c2ed7d8194023d19d87fb1b62"></a>
  107. <h2 class="memtitle"><span class="permalink"><a href="#afae6e23c2ed7d8194023d19d87fb1b62">&#9670;&nbsp;</a></span>setCallback() <span class="overload">[1/2]</span></h2>
  108. <div class="memitem">
  109. <div class="memproto">
  110. <table class="memname">
  111. <tr>
  112. <td class="memname">void FsDateTime::setCallback </td>
  113. <td>(</td>
  114. <td class="paramtype">void(*)(uint16_t *date, uint16_t *time)&#160;</td>
  115. <td class="paramname"><em>dateTime</em></td><td>)</td>
  116. <td></td>
  117. </tr>
  118. </table>
  119. </div><div class="memdoc">
  120. <p>Set the date/time callback function</p>
  121. <dl class="params"><dt>Parameters</dt><dd>
  122. <table class="params">
  123. <tr><td class="paramdir">[in]</td><td class="paramname">dateTime</td><td>The user's call back function. The callback function is of the form:</td></tr>
  124. </table>
  125. </dd>
  126. </dl>
  127. <div class="fragment"><div class="line"><span class="keywordtype">void</span> dateTime(uint16_t* date, uint16_t* time) {</div><div class="line"> uint16_t year;</div><div class="line"> uint8_t month, day, hour, minute, second;</div><div class="line"></div><div class="line"> <span class="comment">// User gets date and time from GPS or real-time clock here</span></div><div class="line"></div><div class="line"> <span class="comment">// return date using FAT_DATE macro to format fields</span></div><div class="line"> *date = FAT_DATE(year, month, day);</div><div class="line"></div><div class="line"> <span class="comment">// return time using FAT_TIME macro to format fields</span></div><div class="line"> *time = FAT_TIME(hour, minute, second);</div><div class="line">}</div></div><!-- fragment --><p>Sets the function that is called when a file is created or when a file's directory entry is modified by sync(). All timestamps, access, creation, and modify, are set when a file is created. sync() maintains the last access date and last modify date/time. </p>
  128. </div>
  129. </div>
  130. <a id="aa48bd625d32aae8fcfe67aba1d080be3"></a>
  131. <h2 class="memtitle"><span class="permalink"><a href="#aa48bd625d32aae8fcfe67aba1d080be3">&#9670;&nbsp;</a></span>setCallback() <span class="overload">[2/2]</span></h2>
  132. <div class="memitem">
  133. <div class="memproto">
  134. <table class="memname">
  135. <tr>
  136. <td class="memname">void FsDateTime::setCallback </td>
  137. <td>(</td>
  138. <td class="paramtype">void(*)(uint16_t *date, uint16_t *time, uint8_t *ms10)&#160;</td>
  139. <td class="paramname"><em>dateTime</em></td><td>)</td>
  140. <td></td>
  141. </tr>
  142. </table>
  143. </div><div class="memdoc">
  144. <p>Set the date/time callback function</p>
  145. <dl class="params"><dt>Parameters</dt><dd>
  146. <table class="params">
  147. <tr><td class="paramdir">[in]</td><td class="paramname">dateTime</td><td>The user's call back function. The callback function is of the form:</td></tr>
  148. </table>
  149. </dd>
  150. </dl>
  151. <div class="fragment"><div class="line"><span class="keywordtype">void</span> dateTime(uint16_t* date, uint16_t* time, uint8_t* ms10) {</div><div class="line"> uint16_t year;</div><div class="line"> uint8_t month, day, hour, minute, second;</div><div class="line"></div><div class="line"> <span class="comment">// User gets date and time from GPS or real-time clock here</span></div><div class="line"></div><div class="line"> <span class="comment">// return date using FAT_DATE macro to format fields</span></div><div class="line"> *date = FAT_DATE(year, month, day);</div><div class="line"></div><div class="line"> <span class="comment">// return time using FAT_TIME macro to format fields</span></div><div class="line"> *time = FAT_TIME(hour, minute, second);</div><div class="line"></div><div class="line"> *ms10 = &lt;tens of ms since second/1&gt;</div><div class="line">}</div></div><!-- fragment --><p>Sets the function that is called when a file is created or when a file's directory entry is modified by sync(). All timestamps, access, creation, and modify, are set when a file is created. sync() maintains the last access date and last modify date/time. </p>
  152. </div>
  153. </div>
  154. <h2 class="groupheader">Variable Documentation</h2>
  155. <a id="a9913c0f3fe4d14e8e96f1d580cee43df"></a>
  156. <h2 class="memtitle"><span class="permalink"><a href="#a9913c0f3fe4d14e8e96f1d580cee43df">&#9670;&nbsp;</a></span>callback</h2>
  157. <div class="memitem">
  158. <div class="memproto">
  159. <table class="memname">
  160. <tr>
  161. <td class="memname">void(* FsDateTime::callback)(uint16_t *date, uint16_t *time, uint8_t *ms10) = <a class="el" href="_stdio_stream_8h.html#a070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a></td>
  162. </tr>
  163. </table>
  164. </div><div class="memdoc">
  165. <p>Date time callback. </p>
  166. </div>
  167. </div>
  168. <a id="aacb16a794ce07cdb922624d7d4277ae9"></a>
  169. <h2 class="memtitle"><span class="permalink"><a href="#aacb16a794ce07cdb922624d7d4277ae9">&#9670;&nbsp;</a></span>callback2</h2>
  170. <div class="memitem">
  171. <div class="memproto">
  172. <table class="memname">
  173. <tr>
  174. <td class="memname">void(* FsDateTime::callback2)(uint16_t *date, uint16_t *time) = <a class="el" href="_stdio_stream_8h.html#a070d2ce7b6bb7e5c05602aa8c308d0c4">NULL</a></td>
  175. </tr>
  176. </table>
  177. </div><div class="memdoc">
  178. <p>Date time callback. </p>
  179. </div>
  180. </div>
  181. </div><!-- contents -->
  182. <!-- start footer part -->
  183. <hr class="footer"/><address class="footer"><small>
  184. Generated on Thu May 9 2019 06:51:29 for SdFat by &#160;<a href="http://www.doxygen.org/index.html">
  185. <img class="footer" src="doxygen.png" alt="doxygen"/>
  186. </a> 1.8.14
  187. </small></address>
  188. </body>
  189. </html>