Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

1677 rindas
76KB

  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: StdioStream Class 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="#pub-methods">Public Member Functions</a> &#124;
  64. <a href="class_stdio_stream-members.html">List of all members</a> </div>
  65. <div class="headertitle">
  66. <div class="title">StdioStream Class Reference</div> </div>
  67. </div><!--header-->
  68. <div class="contents">
  69. <p><a class="el" href="class_stdio_stream.html" title="StdioStream implements a minimal stdio stream. ">StdioStream</a> implements a minimal stdio stream.
  70. <a href="class_stdio_stream.html#details">More...</a></p>
  71. <p><code>#include &lt;StdioStream.h&gt;</code></p>
  72. <div class="dynheader">
  73. Inheritance diagram for StdioStream:</div>
  74. <div class="dyncontent">
  75. <div class="center"><img src="class_stdio_stream__inherit__graph.png" border="0" usemap="#_stdio_stream_inherit__map" alt="Inheritance graph"/></div>
  76. <map name="_stdio_stream_inherit__map" id="_stdio_stream_inherit__map">
  77. </map>
  78. <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
  79. <div class="dynheader">
  80. Collaboration diagram for StdioStream:</div>
  81. <div class="dyncontent">
  82. <div class="center"><img src="class_stdio_stream__coll__graph.png" border="0" usemap="#_stdio_stream_coll__map" alt="Collaboration graph"/></div>
  83. <map name="_stdio_stream_coll__map" id="_stdio_stream_coll__map">
  84. </map>
  85. <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
  86. <table class="memberdecls">
  87. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  88. Public Member Functions</h2></td></tr>
  89. <tr class="memitem:aa737e5680fc2808a03a603ea8559d82b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_stdio_stream.html#aa737e5680fc2808a03a603ea8559d82b">clearerr</a> ()</td></tr>
  90. <tr class="separator:aa737e5680fc2808a03a603ea8559d82b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  91. <tr class="memitem:a4ddd4658d49182013d2fa2a181e96c5a"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_stdio_stream.html#a4ddd4658d49182013d2fa2a181e96c5a">fclose</a> ()</td></tr>
  92. <tr class="separator:a4ddd4658d49182013d2fa2a181e96c5a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  93. <tr class="memitem:acb38c3211feedbf2206eb1d9a3a9d24f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_stdio_stream.html#acb38c3211feedbf2206eb1d9a3a9d24f">feof</a> ()</td></tr>
  94. <tr class="separator:acb38c3211feedbf2206eb1d9a3a9d24f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  95. <tr class="memitem:afd64cec6440b923660b444f6d5f0586e"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_stdio_stream.html#afd64cec6440b923660b444f6d5f0586e">ferror</a> ()</td></tr>
  96. <tr class="separator:afd64cec6440b923660b444f6d5f0586e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  97. <tr class="memitem:a7ce32ec7ea3f2fd8ea42b9633890f1c0"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_stdio_stream.html#a7ce32ec7ea3f2fd8ea42b9633890f1c0">fflush</a> ()</td></tr>
  98. <tr class="separator:a7ce32ec7ea3f2fd8ea42b9633890f1c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
  99. <tr class="memitem:a160bd2828cb7e7370cffe1046eff8899"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_stdio_stream.html#a160bd2828cb7e7370cffe1046eff8899">fgetc</a> ()</td></tr>
  100. <tr class="separator:a160bd2828cb7e7370cffe1046eff8899"><td class="memSeparator" colspan="2">&#160;</td></tr>
  101. <tr class="memitem:aa240c1021a1aad1cc57f63a483541dc7"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_stdio_stream.html#aa240c1021a1aad1cc57f63a483541dc7">fgets</a> (char *str, size_t num, size_t *len=0)</td></tr>
  102. <tr class="separator:aa240c1021a1aad1cc57f63a483541dc7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  103. <tr class="memitem:a4ffc37225fb6deed98905aa71d1f9c4b"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_stdio_stream.html#a4ffc37225fb6deed98905aa71d1f9c4b">fopen</a> (const char *path, const char *mode)</td></tr>
  104. <tr class="separator:a4ffc37225fb6deed98905aa71d1f9c4b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  105. <tr class="memitem:a9f23cfa6b112a5da6ae08340af23c57b"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_stdio_stream.html#a9f23cfa6b112a5da6ae08340af23c57b">fputc</a> (int c)</td></tr>
  106. <tr class="separator:a9f23cfa6b112a5da6ae08340af23c57b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  107. <tr class="memitem:a6adea52f55ef7d97cdb54e9e11fc2daa"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_stdio_stream.html#a6adea52f55ef7d97cdb54e9e11fc2daa">fputs</a> (const char *str)</td></tr>
  108. <tr class="separator:a6adea52f55ef7d97cdb54e9e11fc2daa"><td class="memSeparator" colspan="2">&#160;</td></tr>
  109. <tr class="memitem:a2d363b02abcef82b25ff025d50375bce"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_stdio_stream.html#a2d363b02abcef82b25ff025d50375bce">fread</a> (void *ptr, size_t size, size_t count)</td></tr>
  110. <tr class="separator:a2d363b02abcef82b25ff025d50375bce"><td class="memSeparator" colspan="2">&#160;</td></tr>
  111. <tr class="memitem:a71584fd5c5cda3c31ce6cdbcc56f104d"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_stdio_stream.html#a71584fd5c5cda3c31ce6cdbcc56f104d">fseek</a> (int32_t offset, int origin)</td></tr>
  112. <tr class="separator:a71584fd5c5cda3c31ce6cdbcc56f104d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  113. <tr class="memitem:a809639fc5fb4fa5b6789dc121659f386"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_stdio_stream.html#a809639fc5fb4fa5b6789dc121659f386">ftell</a> ()</td></tr>
  114. <tr class="separator:a809639fc5fb4fa5b6789dc121659f386"><td class="memSeparator" colspan="2">&#160;</td></tr>
  115. <tr class="memitem:ad79465afb52579cbc801f4585c3f9c25"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_stdio_stream.html#ad79465afb52579cbc801f4585c3f9c25">fwrite</a> (const void *ptr, size_t size, size_t count)</td></tr>
  116. <tr class="separator:ad79465afb52579cbc801f4585c3f9c25"><td class="memSeparator" colspan="2">&#160;</td></tr>
  117. <tr class="memitem:a28ba31e7b526607744bfa41844ffce31"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_stdio_stream.html#a28ba31e7b526607744bfa41844ffce31">getc</a> ()</td></tr>
  118. <tr class="separator:a28ba31e7b526607744bfa41844ffce31"><td class="memSeparator" colspan="2">&#160;</td></tr>
  119. <tr class="memitem:ad3f6ee8e8ca5dcf6dabfd88199b172e2"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_stdio_stream.html#ad3f6ee8e8ca5dcf6dabfd88199b172e2">print</a> (char c)</td></tr>
  120. <tr class="separator:ad3f6ee8e8ca5dcf6dabfd88199b172e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  121. <tr class="memitem:a1158ea5f9bf041f21b1733b7811c9bb9"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_stdio_stream.html#a1158ea5f9bf041f21b1733b7811c9bb9">print</a> (const char *str)</td></tr>
  122. <tr class="separator:a1158ea5f9bf041f21b1733b7811c9bb9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  123. <tr class="memitem:aac4d7b3548d03b8fd70adf12c7ee315c"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_stdio_stream.html#aac4d7b3548d03b8fd70adf12c7ee315c">print</a> (const __FlashStringHelper *str)</td></tr>
  124. <tr class="separator:aac4d7b3548d03b8fd70adf12c7ee315c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  125. <tr class="memitem:a26f5b98560b6771225005b073166108b"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_stdio_stream.html#a26f5b98560b6771225005b073166108b">print</a> (double val, uint8_t prec=2)</td></tr>
  126. <tr class="separator:a26f5b98560b6771225005b073166108b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  127. <tr class="memitem:a06b6eb9f0a7000fdcc73cd6af8d40560"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_stdio_stream.html#a06b6eb9f0a7000fdcc73cd6af8d40560">print</a> (float val, uint8_t prec=2)</td></tr>
  128. <tr class="separator:a06b6eb9f0a7000fdcc73cd6af8d40560"><td class="memSeparator" colspan="2">&#160;</td></tr>
  129. <tr class="memitem:a7129f85c7c5f16867f467731ef84dee9"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
  130. <tr class="memitem:a7129f85c7c5f16867f467731ef84dee9"><td class="memTemplItemLeft" align="right" valign="top">size_t&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_stdio_stream.html#a7129f85c7c5f16867f467731ef84dee9">print</a> (T val)</td></tr>
  131. <tr class="separator:a7129f85c7c5f16867f467731ef84dee9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  132. <tr class="memitem:ac0a907feb1e4b7e00de99857b4c0a470"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_stdio_stream.html#ac0a907feb1e4b7e00de99857b4c0a470">printDec</a> (char n)</td></tr>
  133. <tr class="separator:ac0a907feb1e4b7e00de99857b4c0a470"><td class="memSeparator" colspan="2">&#160;</td></tr>
  134. <tr class="memitem:a2707ea97f6113c226781469f4f39ff62"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_stdio_stream.html#a2707ea97f6113c226781469f4f39ff62">printDec</a> (signed char n)</td></tr>
  135. <tr class="separator:a2707ea97f6113c226781469f4f39ff62"><td class="memSeparator" colspan="2">&#160;</td></tr>
  136. <tr class="memitem:a6e6ac78caa6259a4c4934707bf497a2b"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_stdio_stream.html#a6e6ac78caa6259a4c4934707bf497a2b">printDec</a> (unsigned char n)</td></tr>
  137. <tr class="separator:a6e6ac78caa6259a4c4934707bf497a2b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  138. <tr class="memitem:a218af88db35f38babf01d6e0a9cdceeb"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_stdio_stream.html#a218af88db35f38babf01d6e0a9cdceeb">printDec</a> (int16_t n)</td></tr>
  139. <tr class="separator:a218af88db35f38babf01d6e0a9cdceeb"><td class="memSeparator" colspan="2">&#160;</td></tr>
  140. <tr class="memitem:a90b2999af94a3578fff7579c2acf8e35"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_stdio_stream.html#a90b2999af94a3578fff7579c2acf8e35">printDec</a> (uint16_t n)</td></tr>
  141. <tr class="separator:a90b2999af94a3578fff7579c2acf8e35"><td class="memSeparator" colspan="2">&#160;</td></tr>
  142. <tr class="memitem:ad4591f1234b57f63c1acf0f3392099ac"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_stdio_stream.html#ad4591f1234b57f63c1acf0f3392099ac">printDec</a> (int32_t n)</td></tr>
  143. <tr class="separator:ad4591f1234b57f63c1acf0f3392099ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
  144. <tr class="memitem:a8b6c2c80342abe45e6f564e9bd5bb7ea"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_stdio_stream.html#a8b6c2c80342abe45e6f564e9bd5bb7ea">printDec</a> (uint32_t n)</td></tr>
  145. <tr class="separator:a8b6c2c80342abe45e6f564e9bd5bb7ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
  146. <tr class="memitem:aaa8921947d4dbbae840d285cb633e8aa"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_stdio_stream.html#aaa8921947d4dbbae840d285cb633e8aa">printDec</a> (double value, uint8_t prec)</td></tr>
  147. <tr class="separator:aaa8921947d4dbbae840d285cb633e8aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
  148. <tr class="memitem:a6a09284b1c6d0769c27916a2e131e749"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_stdio_stream.html#a6a09284b1c6d0769c27916a2e131e749">printDec</a> (float value, uint8_t prec)</td></tr>
  149. <tr class="separator:a6a09284b1c6d0769c27916a2e131e749"><td class="memSeparator" colspan="2">&#160;</td></tr>
  150. <tr class="memitem:a4988592ada39c4b4c603b061f84d183f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_stdio_stream.html#a4988592ada39c4b4c603b061f84d183f">printField</a> (double value, char term, uint8_t prec=2)</td></tr>
  151. <tr class="separator:a4988592ada39c4b4c603b061f84d183f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  152. <tr class="memitem:a3b90b2317cc391f94784a847f5313c08"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_stdio_stream.html#a3b90b2317cc391f94784a847f5313c08">printField</a> (float value, char term, uint8_t prec=2)</td></tr>
  153. <tr class="separator:a3b90b2317cc391f94784a847f5313c08"><td class="memSeparator" colspan="2">&#160;</td></tr>
  154. <tr class="memitem:a02c2ad1a2e71e82d238b8386cf3e6c41"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
  155. <tr class="memitem:a02c2ad1a2e71e82d238b8386cf3e6c41"><td class="memTemplItemLeft" align="right" valign="top">int&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_stdio_stream.html#a02c2ad1a2e71e82d238b8386cf3e6c41">printField</a> (T value, char term)</td></tr>
  156. <tr class="separator:a02c2ad1a2e71e82d238b8386cf3e6c41"><td class="memSeparator" colspan="2">&#160;</td></tr>
  157. <tr class="memitem:add39b2b4ec3daa7c8922e96ce5d368bc"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_stdio_stream.html#add39b2b4ec3daa7c8922e96ce5d368bc">printHex</a> (uint32_t n)</td></tr>
  158. <tr class="separator:add39b2b4ec3daa7c8922e96ce5d368bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
  159. <tr class="memitem:aec6ebea511489b0ef6b61d9132d93af9"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_stdio_stream.html#aec6ebea511489b0ef6b61d9132d93af9">printHexln</a> (uint32_t n)</td></tr>
  160. <tr class="separator:aec6ebea511489b0ef6b61d9132d93af9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  161. <tr class="memitem:ad0cd3acc05a91456f505752377bd405a"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_stdio_stream.html#ad0cd3acc05a91456f505752377bd405a">println</a> ()</td></tr>
  162. <tr class="separator:ad0cd3acc05a91456f505752377bd405a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  163. <tr class="memitem:a3793dd66cf347a1ca0b7b167e948cce9"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_stdio_stream.html#a3793dd66cf347a1ca0b7b167e948cce9">println</a> (double val, uint8_t prec=2)</td></tr>
  164. <tr class="separator:a3793dd66cf347a1ca0b7b167e948cce9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  165. <tr class="memitem:aac250d041a7844c8db1cbd2d97ecfdaa"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_stdio_stream.html#aac250d041a7844c8db1cbd2d97ecfdaa">println</a> (float val, uint8_t prec=2)</td></tr>
  166. <tr class="separator:aac250d041a7844c8db1cbd2d97ecfdaa"><td class="memSeparator" colspan="2">&#160;</td></tr>
  167. <tr class="memitem:a3b14532768d07e6ed89c762d04792c12"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
  168. <tr class="memitem:a3b14532768d07e6ed89c762d04792c12"><td class="memTemplItemLeft" align="right" valign="top">size_t&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_stdio_stream.html#a3b14532768d07e6ed89c762d04792c12">println</a> (T val)</td></tr>
  169. <tr class="separator:a3b14532768d07e6ed89c762d04792c12"><td class="memSeparator" colspan="2">&#160;</td></tr>
  170. <tr class="memitem:adf9e552212aad6fc2284da0ee62d04dc"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_stdio_stream.html#adf9e552212aad6fc2284da0ee62d04dc">putc</a> (int c)</td></tr>
  171. <tr class="separator:adf9e552212aad6fc2284da0ee62d04dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
  172. <tr class="memitem:a09ccc4b6cabc3502c1052e85d94e84ef"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_stdio_stream.html#a09ccc4b6cabc3502c1052e85d94e84ef">putCRLF</a> ()</td></tr>
  173. <tr class="separator:a09ccc4b6cabc3502c1052e85d94e84ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
  174. <tr class="memitem:ad985866675193d2ee1dde9e27b0d08da"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_stdio_stream.html#ad985866675193d2ee1dde9e27b0d08da">rewind</a> ()</td></tr>
  175. <tr class="separator:ad985866675193d2ee1dde9e27b0d08da"><td class="memSeparator" colspan="2">&#160;</td></tr>
  176. <tr class="memitem:a96b2c027e76bfca6d6835c9ae1be2ad2"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_stdio_stream.html#a96b2c027e76bfca6d6835c9ae1be2ad2">StdioStream</a> ()</td></tr>
  177. <tr class="separator:a96b2c027e76bfca6d6835c9ae1be2ad2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  178. <tr class="memitem:ac00e0dd906c2e857ece53794c6c92786"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_stdio_stream.html#ac00e0dd906c2e857ece53794c6c92786">ungetc</a> (int c)</td></tr>
  179. <tr class="separator:ac00e0dd906c2e857ece53794c6c92786"><td class="memSeparator" colspan="2">&#160;</td></tr>
  180. </table>
  181. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  182. <div class="textblock"><p><a class="el" href="class_stdio_stream.html" title="StdioStream implements a minimal stdio stream. ">StdioStream</a> implements a minimal stdio stream. </p>
  183. <p><a class="el" href="class_stdio_stream.html" title="StdioStream implements a minimal stdio stream. ">StdioStream</a> does not support subdirectories or long file names. </p>
  184. </div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
  185. <a id="a96b2c027e76bfca6d6835c9ae1be2ad2"></a>
  186. <h2 class="memtitle"><span class="permalink"><a href="#a96b2c027e76bfca6d6835c9ae1be2ad2">&#9670;&nbsp;</a></span>StdioStream()</h2>
  187. <div class="memitem">
  188. <div class="memproto">
  189. <table class="mlabels">
  190. <tr>
  191. <td class="mlabels-left">
  192. <table class="memname">
  193. <tr>
  194. <td class="memname">StdioStream::StdioStream </td>
  195. <td>(</td>
  196. <td class="paramname"></td><td>)</td>
  197. <td></td>
  198. </tr>
  199. </table>
  200. </td>
  201. <td class="mlabels-right">
  202. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  203. </tr>
  204. </table>
  205. </div><div class="memdoc">
  206. <p>Constructor </p>
  207. </div>
  208. </div>
  209. <h2 class="groupheader">Member Function Documentation</h2>
  210. <a id="aa737e5680fc2808a03a603ea8559d82b"></a>
  211. <h2 class="memtitle"><span class="permalink"><a href="#aa737e5680fc2808a03a603ea8559d82b">&#9670;&nbsp;</a></span>clearerr()</h2>
  212. <div class="memitem">
  213. <div class="memproto">
  214. <table class="mlabels">
  215. <tr>
  216. <td class="mlabels-left">
  217. <table class="memname">
  218. <tr>
  219. <td class="memname">void StdioStream::clearerr </td>
  220. <td>(</td>
  221. <td class="paramname"></td><td>)</td>
  222. <td></td>
  223. </tr>
  224. </table>
  225. </td>
  226. <td class="mlabels-right">
  227. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  228. </tr>
  229. </table>
  230. </div><div class="memdoc">
  231. <p>Clear the stream's end-of-file and error indicators. </p>
  232. </div>
  233. </div>
  234. <a id="a4ddd4658d49182013d2fa2a181e96c5a"></a>
  235. <h2 class="memtitle"><span class="permalink"><a href="#a4ddd4658d49182013d2fa2a181e96c5a">&#9670;&nbsp;</a></span>fclose()</h2>
  236. <div class="memitem">
  237. <div class="memproto">
  238. <table class="memname">
  239. <tr>
  240. <td class="memname">int StdioStream::fclose </td>
  241. <td>(</td>
  242. <td class="paramname"></td><td>)</td>
  243. <td></td>
  244. </tr>
  245. </table>
  246. </div><div class="memdoc">
  247. <p>Close a stream.</p>
  248. <p>A successful call to the fclose function causes the stream to be flushed and the associated file to be closed. Any unwritten buffered data is written to the file; any unread buffered data is discarded. Whether or not the call succeeds, the stream is disassociated from the file.</p>
  249. <dl class="section return"><dt>Returns</dt><dd>zero if the stream was successfully closed, or EOF if any any errors are detected.</dd></dl>
  250. <p>Copyright (c) 2011-2019 Bill Greiman This file is part of the SdFat library for SD memory cards.</p>
  251. <p>MIT License</p>
  252. <p>Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:</p>
  253. <p>The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.</p>
  254. <p>THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. </p>
  255. </div>
  256. </div>
  257. <a id="acb38c3211feedbf2206eb1d9a3a9d24f"></a>
  258. <h2 class="memtitle"><span class="permalink"><a href="#acb38c3211feedbf2206eb1d9a3a9d24f">&#9670;&nbsp;</a></span>feof()</h2>
  259. <div class="memitem">
  260. <div class="memproto">
  261. <table class="mlabels">
  262. <tr>
  263. <td class="mlabels-left">
  264. <table class="memname">
  265. <tr>
  266. <td class="memname">int StdioStream::feof </td>
  267. <td>(</td>
  268. <td class="paramname"></td><td>)</td>
  269. <td></td>
  270. </tr>
  271. </table>
  272. </td>
  273. <td class="mlabels-right">
  274. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  275. </tr>
  276. </table>
  277. </div><div class="memdoc">
  278. <p>Test the stream's end-of-file indicator. </p><dl class="section return"><dt>Returns</dt><dd>non-zero if and only if the end-of-file indicator is set. </dd></dl>
  279. </div>
  280. </div>
  281. <a id="afd64cec6440b923660b444f6d5f0586e"></a>
  282. <h2 class="memtitle"><span class="permalink"><a href="#afd64cec6440b923660b444f6d5f0586e">&#9670;&nbsp;</a></span>ferror()</h2>
  283. <div class="memitem">
  284. <div class="memproto">
  285. <table class="mlabels">
  286. <tr>
  287. <td class="mlabels-left">
  288. <table class="memname">
  289. <tr>
  290. <td class="memname">int StdioStream::ferror </td>
  291. <td>(</td>
  292. <td class="paramname"></td><td>)</td>
  293. <td></td>
  294. </tr>
  295. </table>
  296. </td>
  297. <td class="mlabels-right">
  298. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  299. </tr>
  300. </table>
  301. </div><div class="memdoc">
  302. <p>Test the stream's error indicator. </p><dl class="section return"><dt>Returns</dt><dd>return non-zero if and only if the error indicator is set. </dd></dl>
  303. </div>
  304. </div>
  305. <a id="a7ce32ec7ea3f2fd8ea42b9633890f1c0"></a>
  306. <h2 class="memtitle"><span class="permalink"><a href="#a7ce32ec7ea3f2fd8ea42b9633890f1c0">&#9670;&nbsp;</a></span>fflush()</h2>
  307. <div class="memitem">
  308. <div class="memproto">
  309. <table class="memname">
  310. <tr>
  311. <td class="memname">int StdioStream::fflush </td>
  312. <td>(</td>
  313. <td class="paramname"></td><td>)</td>
  314. <td></td>
  315. </tr>
  316. </table>
  317. </div><div class="memdoc">
  318. <p>Flush the stream.</p>
  319. <p>If stream is an output stream or an update stream in which the most recent operation was not input, any unwritten data is written to the file; otherwise the call is an error since any buffered input data would be lost.</p>
  320. <dl class="section return"><dt>Returns</dt><dd>sets the error indicator for the stream and returns EOF if an error occurs, otherwise it returns zero. </dd></dl>
  321. </div>
  322. </div>
  323. <a id="a160bd2828cb7e7370cffe1046eff8899"></a>
  324. <h2 class="memtitle"><span class="permalink"><a href="#a160bd2828cb7e7370cffe1046eff8899">&#9670;&nbsp;</a></span>fgetc()</h2>
  325. <div class="memitem">
  326. <div class="memproto">
  327. <table class="mlabels">
  328. <tr>
  329. <td class="mlabels-left">
  330. <table class="memname">
  331. <tr>
  332. <td class="memname">int StdioStream::fgetc </td>
  333. <td>(</td>
  334. <td class="paramname"></td><td>)</td>
  335. <td></td>
  336. </tr>
  337. </table>
  338. </td>
  339. <td class="mlabels-right">
  340. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  341. </tr>
  342. </table>
  343. </div><div class="memdoc">
  344. <p>Get a byte from the stream.</p>
  345. <dl class="section return"><dt>Returns</dt><dd>If the end-of-file indicator for the stream is set, or if the stream is at end-of-file, the end-of-file indicator for the stream is set and the fgetc function returns EOF. Otherwise, the fgetc function returns the next character from the input stream. </dd></dl>
  346. </div>
  347. </div>
  348. <a id="aa240c1021a1aad1cc57f63a483541dc7"></a>
  349. <h2 class="memtitle"><span class="permalink"><a href="#aa240c1021a1aad1cc57f63a483541dc7">&#9670;&nbsp;</a></span>fgets()</h2>
  350. <div class="memitem">
  351. <div class="memproto">
  352. <table class="memname">
  353. <tr>
  354. <td class="memname">char * StdioStream::fgets </td>
  355. <td>(</td>
  356. <td class="paramtype">char *&#160;</td>
  357. <td class="paramname"><em>str</em>, </td>
  358. </tr>
  359. <tr>
  360. <td class="paramkey"></td>
  361. <td></td>
  362. <td class="paramtype">size_t&#160;</td>
  363. <td class="paramname"><em>num</em>, </td>
  364. </tr>
  365. <tr>
  366. <td class="paramkey"></td>
  367. <td></td>
  368. <td class="paramtype">size_t *&#160;</td>
  369. <td class="paramname"><em>len</em> = <code>0</code>&#160;</td>
  370. </tr>
  371. <tr>
  372. <td></td>
  373. <td>)</td>
  374. <td></td><td></td>
  375. </tr>
  376. </table>
  377. </div><div class="memdoc">
  378. <p>Get a string from a stream.</p>
  379. <p>The fgets function reads at most one less than the number of characters specified by num from the stream into the array pointed to by str. No additional characters are read after a new-line character (which is retained) or after end-of-file. A null character is written immediately after the last character read into the array.</p>
  380. <dl class="params"><dt>Parameters</dt><dd>
  381. <table class="params">
  382. <tr><td class="paramdir">[out]</td><td class="paramname">str</td><td>Pointer to an array of where the string is copied.</td></tr>
  383. <tr><td class="paramdir">[in]</td><td class="paramname">num</td><td>Maximum number of characters including the null character.</td></tr>
  384. <tr><td class="paramdir">[out]</td><td class="paramname">len</td><td>If len is not null and fgets is successful, the length of the string is returned.</td></tr>
  385. </table>
  386. </dd>
  387. </dl>
  388. <dl class="section return"><dt>Returns</dt><dd>str if successful. If end-of-file is encountered and no characters have been read into the array, the contents of the array remain unchanged and a null pointer is returned. If a read error occurs during the operation, the array contents are indeterminate and a null pointer is returned. </dd></dl>
  389. </div>
  390. </div>
  391. <a id="a4ffc37225fb6deed98905aa71d1f9c4b"></a>
  392. <h2 class="memtitle"><span class="permalink"><a href="#a4ffc37225fb6deed98905aa71d1f9c4b">&#9670;&nbsp;</a></span>fopen()</h2>
  393. <div class="memitem">
  394. <div class="memproto">
  395. <table class="memname">
  396. <tr>
  397. <td class="memname">bool StdioStream::fopen </td>
  398. <td>(</td>
  399. <td class="paramtype">const char *&#160;</td>
  400. <td class="paramname"><em>path</em>, </td>
  401. </tr>
  402. <tr>
  403. <td class="paramkey"></td>
  404. <td></td>
  405. <td class="paramtype">const char *&#160;</td>
  406. <td class="paramname"><em>mode</em>&#160;</td>
  407. </tr>
  408. <tr>
  409. <td></td>
  410. <td>)</td>
  411. <td></td><td></td>
  412. </tr>
  413. </table>
  414. </div><div class="memdoc">
  415. <p>Open a stream.</p>
  416. <p>Open a file and associates the stream with it.</p>
  417. <dl class="params"><dt>Parameters</dt><dd>
  418. <table class="params">
  419. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>file to be opened.</td></tr>
  420. <tr><td class="paramdir">[in]</td><td class="paramname">mode</td><td>a string that indicates the open mode.</td></tr>
  421. </table>
  422. </dd>
  423. </dl>
  424. <table class="doxtable">
  425. <tr>
  426. <td>"r" or "rb" </td><td>Open a file for reading. The file must exist. </td></tr>
  427. <tr>
  428. <td>"w" or "wb" </td><td>Truncate an existing to zero length or create an empty file for writing. </td></tr>
  429. <tr>
  430. <td>"wx" or "wbx" </td><td>Create a file for writing. Fails if the file already exists. </td></tr>
  431. <tr>
  432. <td>"a" or "ab" </td><td>Append; open or create file for writing at end-of-file. </td></tr>
  433. <tr>
  434. <td>"r+" or "rb+" or "r+b" </td><td>Open a file for update (reading and writing). </td></tr>
  435. <tr>
  436. <td>"w+" or "w+b" or "wb+" </td><td>Truncate an existing to zero length or create a file for update. </td></tr>
  437. <tr>
  438. <td>"w+x" or "w+bx" or "wb+x" </td><td>Create a file for update. Fails if the file already exists. </td></tr>
  439. <tr>
  440. <td>"a+" or "a+b" or "ab+" </td><td>Append; open or create a file for update, writing at end-of-file. </td></tr>
  441. </table>
  442. <p>The character 'b' shall have no effect, but is allowed for ISO C standard conformance.</p>
  443. <p>Opening a file with append mode causes all subsequent writes to the file to be forced to the then current end-of-file, regardless of intervening calls to the fseek function.</p>
  444. <p>When a file is opened with update mode, both input and output may be performed on the associated stream. However, output shall not be directly followed by input without an intervening call to the fflush function or to a file positioning function (fseek, or rewind), and input shall not be directly followed by output without an intervening call to a file positioning function, unless the input operation encounters end-of-file.</p>
  445. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  446. </div>
  447. </div>
  448. <a id="a9f23cfa6b112a5da6ae08340af23c57b"></a>
  449. <h2 class="memtitle"><span class="permalink"><a href="#a9f23cfa6b112a5da6ae08340af23c57b">&#9670;&nbsp;</a></span>fputc()</h2>
  450. <div class="memitem">
  451. <div class="memproto">
  452. <table class="mlabels">
  453. <tr>
  454. <td class="mlabels-left">
  455. <table class="memname">
  456. <tr>
  457. <td class="memname">int StdioStream::fputc </td>
  458. <td>(</td>
  459. <td class="paramtype">int&#160;</td>
  460. <td class="paramname"><em>c</em></td><td>)</td>
  461. <td></td>
  462. </tr>
  463. </table>
  464. </td>
  465. <td class="mlabels-right">
  466. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  467. </tr>
  468. </table>
  469. </div><div class="memdoc">
  470. <p>Write a byte to a stream.</p>
  471. <dl class="params"><dt>Parameters</dt><dd>
  472. <table class="params">
  473. <tr><td class="paramdir">[in]</td><td class="paramname">c</td><td>the byte to be written (converted to an unsigned char).</td></tr>
  474. </table>
  475. </dd>
  476. </dl>
  477. <dl class="section return"><dt>Returns</dt><dd>Upon successful completion, <a class="el" href="class_stdio_stream.html#a9f23cfa6b112a5da6ae08340af23c57b">fputc()</a> returns the value it has written. Otherwise, it returns EOF and sets the error indicator for the stream. </dd></dl>
  478. </div>
  479. </div>
  480. <a id="a6adea52f55ef7d97cdb54e9e11fc2daa"></a>
  481. <h2 class="memtitle"><span class="permalink"><a href="#a6adea52f55ef7d97cdb54e9e11fc2daa">&#9670;&nbsp;</a></span>fputs()</h2>
  482. <div class="memitem">
  483. <div class="memproto">
  484. <table class="memname">
  485. <tr>
  486. <td class="memname">int StdioStream::fputs </td>
  487. <td>(</td>
  488. <td class="paramtype">const char *&#160;</td>
  489. <td class="paramname"><em>str</em></td><td>)</td>
  490. <td></td>
  491. </tr>
  492. </table>
  493. </div><div class="memdoc">
  494. <p>Write a string to a stream.</p>
  495. <dl class="params"><dt>Parameters</dt><dd>
  496. <table class="params">
  497. <tr><td class="paramdir">[in]</td><td class="paramname">str</td><td>a pointer to the string to be written.</td></tr>
  498. </table>
  499. </dd>
  500. </dl>
  501. <dl class="section return"><dt>Returns</dt><dd>for success, <a class="el" href="class_stdio_stream.html#a6adea52f55ef7d97cdb54e9e11fc2daa">fputs()</a> returns a non-negative number. Otherwise, it returns EOF and sets the error indicator for the stream. </dd></dl>
  502. </div>
  503. </div>
  504. <a id="a2d363b02abcef82b25ff025d50375bce"></a>
  505. <h2 class="memtitle"><span class="permalink"><a href="#a2d363b02abcef82b25ff025d50375bce">&#9670;&nbsp;</a></span>fread()</h2>
  506. <div class="memitem">
  507. <div class="memproto">
  508. <table class="memname">
  509. <tr>
  510. <td class="memname">size_t StdioStream::fread </td>
  511. <td>(</td>
  512. <td class="paramtype">void *&#160;</td>
  513. <td class="paramname"><em>ptr</em>, </td>
  514. </tr>
  515. <tr>
  516. <td class="paramkey"></td>
  517. <td></td>
  518. <td class="paramtype">size_t&#160;</td>
  519. <td class="paramname"><em>size</em>, </td>
  520. </tr>
  521. <tr>
  522. <td class="paramkey"></td>
  523. <td></td>
  524. <td class="paramtype">size_t&#160;</td>
  525. <td class="paramname"><em>count</em>&#160;</td>
  526. </tr>
  527. <tr>
  528. <td></td>
  529. <td>)</td>
  530. <td></td><td></td>
  531. </tr>
  532. </table>
  533. </div><div class="memdoc">
  534. <p>Binary input.</p>
  535. <p>Reads an array of up to count elements, each one with a size of size bytes. </p><dl class="params"><dt>Parameters</dt><dd>
  536. <table class="params">
  537. <tr><td class="paramdir">[out]</td><td class="paramname">ptr</td><td>pointer to area of at least (size*count) bytes where the data will be stored.</td></tr>
  538. <tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>the size, in bytes, of each element to be read.</td></tr>
  539. <tr><td class="paramdir">[in]</td><td class="paramname">count</td><td>the number of elements to be read.</td></tr>
  540. </table>
  541. </dd>
  542. </dl>
  543. <dl class="section return"><dt>Returns</dt><dd>number of elements successfully read, which may be less than count if a read error or end-of-file is encountered. If size or count is zero, fread returns zero and the contents of the array and the state of the stream remain unchanged. </dd></dl>
  544. </div>
  545. </div>
  546. <a id="a71584fd5c5cda3c31ce6cdbcc56f104d"></a>
  547. <h2 class="memtitle"><span class="permalink"><a href="#a71584fd5c5cda3c31ce6cdbcc56f104d">&#9670;&nbsp;</a></span>fseek()</h2>
  548. <div class="memitem">
  549. <div class="memproto">
  550. <table class="memname">
  551. <tr>
  552. <td class="memname">int StdioStream::fseek </td>
  553. <td>(</td>
  554. <td class="paramtype">int32_t&#160;</td>
  555. <td class="paramname"><em>offset</em>, </td>
  556. </tr>
  557. <tr>
  558. <td class="paramkey"></td>
  559. <td></td>
  560. <td class="paramtype">int&#160;</td>
  561. <td class="paramname"><em>origin</em>&#160;</td>
  562. </tr>
  563. <tr>
  564. <td></td>
  565. <td>)</td>
  566. <td></td><td></td>
  567. </tr>
  568. </table>
  569. </div><div class="memdoc">
  570. <p>Set the file position for the stream.</p>
  571. <dl class="params"><dt>Parameters</dt><dd>
  572. <table class="params">
  573. <tr><td class="paramdir">[in]</td><td class="paramname">offset</td><td>number of offset from the origin.</td></tr>
  574. <tr><td class="paramdir">[in]</td><td class="paramname">origin</td><td>position used as reference for the offset. It is specified by one of the following constants.</td></tr>
  575. </table>
  576. </dd>
  577. </dl>
  578. <p>SEEK_SET - Beginning of file.</p>
  579. <p>SEEK_CUR - Current position of the file pointer.</p>
  580. <p>SEEK_END - End of file.</p>
  581. <dl class="section return"><dt>Returns</dt><dd>zero for success. Otherwise, it returns non-zero and sets the error indicator for the stream. </dd></dl>
  582. </div>
  583. </div>
  584. <a id="a809639fc5fb4fa5b6789dc121659f386"></a>
  585. <h2 class="memtitle"><span class="permalink"><a href="#a809639fc5fb4fa5b6789dc121659f386">&#9670;&nbsp;</a></span>ftell()</h2>
  586. <div class="memitem">
  587. <div class="memproto">
  588. <table class="memname">
  589. <tr>
  590. <td class="memname">int32_t StdioStream::ftell </td>
  591. <td>(</td>
  592. <td class="paramname"></td><td>)</td>
  593. <td></td>
  594. </tr>
  595. </table>
  596. </div><div class="memdoc">
  597. <p>Get the current position in a stream.</p>
  598. <dl class="section return"><dt>Returns</dt><dd>If successful, ftell return the current value of the position indicator. On failure, ftell returns −1L. </dd></dl>
  599. </div>
  600. </div>
  601. <a id="ad79465afb52579cbc801f4585c3f9c25"></a>
  602. <h2 class="memtitle"><span class="permalink"><a href="#ad79465afb52579cbc801f4585c3f9c25">&#9670;&nbsp;</a></span>fwrite()</h2>
  603. <div class="memitem">
  604. <div class="memproto">
  605. <table class="memname">
  606. <tr>
  607. <td class="memname">size_t StdioStream::fwrite </td>
  608. <td>(</td>
  609. <td class="paramtype">const void *&#160;</td>
  610. <td class="paramname"><em>ptr</em>, </td>
  611. </tr>
  612. <tr>
  613. <td class="paramkey"></td>
  614. <td></td>
  615. <td class="paramtype">size_t&#160;</td>
  616. <td class="paramname"><em>size</em>, </td>
  617. </tr>
  618. <tr>
  619. <td class="paramkey"></td>
  620. <td></td>
  621. <td class="paramtype">size_t&#160;</td>
  622. <td class="paramname"><em>count</em>&#160;</td>
  623. </tr>
  624. <tr>
  625. <td></td>
  626. <td>)</td>
  627. <td></td><td></td>
  628. </tr>
  629. </table>
  630. </div><div class="memdoc">
  631. <p>Binary output.</p>
  632. <p>Writes an array of up to count elements, each one with a size of size bytes. </p><dl class="params"><dt>Parameters</dt><dd>
  633. <table class="params">
  634. <tr><td class="paramdir">[in]</td><td class="paramname">ptr</td><td>pointer to (size*count) bytes of data to be written.</td></tr>
  635. <tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>the size, in bytes, of each element to be written.</td></tr>
  636. <tr><td class="paramdir">[in]</td><td class="paramname">count</td><td>the number of elements to be written.</td></tr>
  637. </table>
  638. </dd>
  639. </dl>
  640. <dl class="section return"><dt>Returns</dt><dd>number of elements successfully written. if this number is less than count, an error has occurred. If size or count is zero, fwrite returns zero. </dd></dl>
  641. </div>
  642. </div>
  643. <a id="a28ba31e7b526607744bfa41844ffce31"></a>
  644. <h2 class="memtitle"><span class="permalink"><a href="#a28ba31e7b526607744bfa41844ffce31">&#9670;&nbsp;</a></span>getc()</h2>
  645. <div class="memitem">
  646. <div class="memproto">
  647. <table class="mlabels">
  648. <tr>
  649. <td class="mlabels-left">
  650. <table class="memname">
  651. <tr>
  652. <td class="memname">int StdioStream::getc </td>
  653. <td>(</td>
  654. <td class="paramname"></td><td>)</td>
  655. <td></td>
  656. </tr>
  657. </table>
  658. </td>
  659. <td class="mlabels-right">
  660. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  661. </tr>
  662. </table>
  663. </div><div class="memdoc">
  664. <p>Get a byte from the stream.</p>
  665. <p>getc and fgetc are equivalent but getc is in-line so it is faster but require more flash memory.</p>
  666. <dl class="section return"><dt>Returns</dt><dd>If the end-of-file indicator for the stream is set, or if the stream is at end-of-file, the end-of-file indicator for the stream is set and the fgetc function returns EOF. Otherwise, the fgetc function returns the next character from the input stream. </dd></dl>
  667. </div>
  668. </div>
  669. <a id="ad3f6ee8e8ca5dcf6dabfd88199b172e2"></a>
  670. <h2 class="memtitle"><span class="permalink"><a href="#ad3f6ee8e8ca5dcf6dabfd88199b172e2">&#9670;&nbsp;</a></span>print() <span class="overload">[1/6]</span></h2>
  671. <div class="memitem">
  672. <div class="memproto">
  673. <table class="mlabels">
  674. <tr>
  675. <td class="mlabels-left">
  676. <table class="memname">
  677. <tr>
  678. <td class="memname">size_t StdioStream::print </td>
  679. <td>(</td>
  680. <td class="paramtype">char&#160;</td>
  681. <td class="paramname"><em>c</em></td><td>)</td>
  682. <td></td>
  683. </tr>
  684. </table>
  685. </td>
  686. <td class="mlabels-right">
  687. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  688. </tr>
  689. </table>
  690. </div><div class="memdoc">
  691. <p>Write a character. </p><dl class="params"><dt>Parameters</dt><dd>
  692. <table class="params">
  693. <tr><td class="paramdir">[in]</td><td class="paramname">c</td><td>the character to write. </td></tr>
  694. </table>
  695. </dd>
  696. </dl>
  697. <dl class="section return"><dt>Returns</dt><dd>the number of bytes written. </dd></dl>
  698. </div>
  699. </div>
  700. <a id="a1158ea5f9bf041f21b1733b7811c9bb9"></a>
  701. <h2 class="memtitle"><span class="permalink"><a href="#a1158ea5f9bf041f21b1733b7811c9bb9">&#9670;&nbsp;</a></span>print() <span class="overload">[2/6]</span></h2>
  702. <div class="memitem">
  703. <div class="memproto">
  704. <table class="mlabels">
  705. <tr>
  706. <td class="mlabels-left">
  707. <table class="memname">
  708. <tr>
  709. <td class="memname">size_t StdioStream::print </td>
  710. <td>(</td>
  711. <td class="paramtype">const char *&#160;</td>
  712. <td class="paramname"><em>str</em></td><td>)</td>
  713. <td></td>
  714. </tr>
  715. </table>
  716. </td>
  717. <td class="mlabels-right">
  718. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  719. </tr>
  720. </table>
  721. </div><div class="memdoc">
  722. <p>Write a string.</p>
  723. <dl class="params"><dt>Parameters</dt><dd>
  724. <table class="params">
  725. <tr><td class="paramdir">[in]</td><td class="paramname">str</td><td>the string to be written.</td></tr>
  726. </table>
  727. </dd>
  728. </dl>
  729. <dl class="section return"><dt>Returns</dt><dd>the number of bytes written. </dd></dl>
  730. </div>
  731. </div>
  732. <a id="aac4d7b3548d03b8fd70adf12c7ee315c"></a>
  733. <h2 class="memtitle"><span class="permalink"><a href="#aac4d7b3548d03b8fd70adf12c7ee315c">&#9670;&nbsp;</a></span>print() <span class="overload">[3/6]</span></h2>
  734. <div class="memitem">
  735. <div class="memproto">
  736. <table class="memname">
  737. <tr>
  738. <td class="memname">size_t StdioStream::print </td>
  739. <td>(</td>
  740. <td class="paramtype">const __FlashStringHelper *&#160;</td>
  741. <td class="paramname"><em>str</em></td><td>)</td>
  742. <td></td>
  743. </tr>
  744. </table>
  745. </div><div class="memdoc">
  746. <p>Print a string stored in flash memory.</p>
  747. <dl class="params"><dt>Parameters</dt><dd>
  748. <table class="params">
  749. <tr><td class="paramdir">[in]</td><td class="paramname">str</td><td>the string to print.</td></tr>
  750. </table>
  751. </dd>
  752. </dl>
  753. <dl class="section return"><dt>Returns</dt><dd>the number of bytes written. </dd></dl>
  754. </div>
  755. </div>
  756. <a id="a26f5b98560b6771225005b073166108b"></a>
  757. <h2 class="memtitle"><span class="permalink"><a href="#a26f5b98560b6771225005b073166108b">&#9670;&nbsp;</a></span>print() <span class="overload">[4/6]</span></h2>
  758. <div class="memitem">
  759. <div class="memproto">
  760. <table class="mlabels">
  761. <tr>
  762. <td class="mlabels-left">
  763. <table class="memname">
  764. <tr>
  765. <td class="memname">size_t StdioStream::print </td>
  766. <td>(</td>
  767. <td class="paramtype">double&#160;</td>
  768. <td class="paramname"><em>val</em>, </td>
  769. </tr>
  770. <tr>
  771. <td class="paramkey"></td>
  772. <td></td>
  773. <td class="paramtype">uint8_t&#160;</td>
  774. <td class="paramname"><em>prec</em> = <code>2</code>&#160;</td>
  775. </tr>
  776. <tr>
  777. <td></td>
  778. <td>)</td>
  779. <td></td><td></td>
  780. </tr>
  781. </table>
  782. </td>
  783. <td class="mlabels-right">
  784. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  785. </tr>
  786. </table>
  787. </div><div class="memdoc">
  788. <p>Print a floating point number.</p>
  789. <dl class="params"><dt>Parameters</dt><dd>
  790. <table class="params">
  791. <tr><td class="paramdir">[in]</td><td class="paramname">prec</td><td>Number of digits after decimal point.</td></tr>
  792. <tr><td class="paramdir">[in]</td><td class="paramname">val</td><td>the number to be printed.</td></tr>
  793. </table>
  794. </dd>
  795. </dl>
  796. <dl class="section return"><dt>Returns</dt><dd>the number of bytes written. </dd></dl>
  797. </div>
  798. </div>
  799. <a id="a06b6eb9f0a7000fdcc73cd6af8d40560"></a>
  800. <h2 class="memtitle"><span class="permalink"><a href="#a06b6eb9f0a7000fdcc73cd6af8d40560">&#9670;&nbsp;</a></span>print() <span class="overload">[5/6]</span></h2>
  801. <div class="memitem">
  802. <div class="memproto">
  803. <table class="mlabels">
  804. <tr>
  805. <td class="mlabels-left">
  806. <table class="memname">
  807. <tr>
  808. <td class="memname">size_t StdioStream::print </td>
  809. <td>(</td>
  810. <td class="paramtype">float&#160;</td>
  811. <td class="paramname"><em>val</em>, </td>
  812. </tr>
  813. <tr>
  814. <td class="paramkey"></td>
  815. <td></td>
  816. <td class="paramtype">uint8_t&#160;</td>
  817. <td class="paramname"><em>prec</em> = <code>2</code>&#160;</td>
  818. </tr>
  819. <tr>
  820. <td></td>
  821. <td>)</td>
  822. <td></td><td></td>
  823. </tr>
  824. </table>
  825. </td>
  826. <td class="mlabels-right">
  827. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  828. </tr>
  829. </table>
  830. </div><div class="memdoc">
  831. <p>Print a floating point number.</p>
  832. <dl class="params"><dt>Parameters</dt><dd>
  833. <table class="params">
  834. <tr><td class="paramdir">[in]</td><td class="paramname">prec</td><td>Number of digits after decimal point.</td></tr>
  835. <tr><td class="paramdir">[in]</td><td class="paramname">val</td><td>the number to be printed.</td></tr>
  836. </table>
  837. </dd>
  838. </dl>
  839. <dl class="section return"><dt>Returns</dt><dd>the number of bytes written. </dd></dl>
  840. </div>
  841. </div>
  842. <a id="a7129f85c7c5f16867f467731ef84dee9"></a>
  843. <h2 class="memtitle"><span class="permalink"><a href="#a7129f85c7c5f16867f467731ef84dee9">&#9670;&nbsp;</a></span>print() <span class="overload">[6/6]</span></h2>
  844. <div class="memitem">
  845. <div class="memproto">
  846. <div class="memtemplate">
  847. template&lt;typename T &gt; </div>
  848. <table class="mlabels">
  849. <tr>
  850. <td class="mlabels-left">
  851. <table class="memname">
  852. <tr>
  853. <td class="memname">size_t StdioStream::print </td>
  854. <td>(</td>
  855. <td class="paramtype">T&#160;</td>
  856. <td class="paramname"><em>val</em></td><td>)</td>
  857. <td></td>
  858. </tr>
  859. </table>
  860. </td>
  861. <td class="mlabels-right">
  862. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  863. </tr>
  864. </table>
  865. </div><div class="memdoc">
  866. <p>Print a number.</p>
  867. <dl class="params"><dt>Parameters</dt><dd>
  868. <table class="params">
  869. <tr><td class="paramdir">[in]</td><td class="paramname">val</td><td>the number to be printed.</td></tr>
  870. </table>
  871. </dd>
  872. </dl>
  873. <dl class="section return"><dt>Returns</dt><dd>the number of bytes written. </dd></dl>
  874. </div>
  875. </div>
  876. <a id="ac0a907feb1e4b7e00de99857b4c0a470"></a>
  877. <h2 class="memtitle"><span class="permalink"><a href="#ac0a907feb1e4b7e00de99857b4c0a470">&#9670;&nbsp;</a></span>printDec() <span class="overload">[1/9]</span></h2>
  878. <div class="memitem">
  879. <div class="memproto">
  880. <table class="mlabels">
  881. <tr>
  882. <td class="mlabels-left">
  883. <table class="memname">
  884. <tr>
  885. <td class="memname">int StdioStream::printDec </td>
  886. <td>(</td>
  887. <td class="paramtype">char&#160;</td>
  888. <td class="paramname"><em>n</em></td><td>)</td>
  889. <td></td>
  890. </tr>
  891. </table>
  892. </td>
  893. <td class="mlabels-right">
  894. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  895. </tr>
  896. </table>
  897. </div><div class="memdoc">
  898. <p>Print a char as a number. </p><dl class="params"><dt>Parameters</dt><dd>
  899. <table class="params">
  900. <tr><td class="paramdir">[in]</td><td class="paramname">n</td><td>number to be printed. </td></tr>
  901. </table>
  902. </dd>
  903. </dl>
  904. <dl class="section return"><dt>Returns</dt><dd>The number of bytes written or -1 if an error occurs. </dd></dl>
  905. </div>
  906. </div>
  907. <a id="a2707ea97f6113c226781469f4f39ff62"></a>
  908. <h2 class="memtitle"><span class="permalink"><a href="#a2707ea97f6113c226781469f4f39ff62">&#9670;&nbsp;</a></span>printDec() <span class="overload">[2/9]</span></h2>
  909. <div class="memitem">
  910. <div class="memproto">
  911. <table class="memname">
  912. <tr>
  913. <td class="memname">int StdioStream::printDec </td>
  914. <td>(</td>
  915. <td class="paramtype">signed char&#160;</td>
  916. <td class="paramname"><em>n</em></td><td>)</td>
  917. <td></td>
  918. </tr>
  919. </table>
  920. </div><div class="memdoc">
  921. <p>print a signed 8-bit integer </p><dl class="params"><dt>Parameters</dt><dd>
  922. <table class="params">
  923. <tr><td class="paramdir">[in]</td><td class="paramname">n</td><td>number to be printed. </td></tr>
  924. </table>
  925. </dd>
  926. </dl>
  927. <dl class="section return"><dt>Returns</dt><dd>The number of bytes written or -1 if an error occurs. </dd></dl>
  928. </div>
  929. </div>
  930. <a id="a6e6ac78caa6259a4c4934707bf497a2b"></a>
  931. <h2 class="memtitle"><span class="permalink"><a href="#a6e6ac78caa6259a4c4934707bf497a2b">&#9670;&nbsp;</a></span>printDec() <span class="overload">[3/9]</span></h2>
  932. <div class="memitem">
  933. <div class="memproto">
  934. <table class="mlabels">
  935. <tr>
  936. <td class="mlabels-left">
  937. <table class="memname">
  938. <tr>
  939. <td class="memname">int StdioStream::printDec </td>
  940. <td>(</td>
  941. <td class="paramtype">unsigned char&#160;</td>
  942. <td class="paramname"><em>n</em></td><td>)</td>
  943. <td></td>
  944. </tr>
  945. </table>
  946. </td>
  947. <td class="mlabels-right">
  948. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  949. </tr>
  950. </table>
  951. </div><div class="memdoc">
  952. <p>Print an unsigned 8-bit number. </p><dl class="params"><dt>Parameters</dt><dd>
  953. <table class="params">
  954. <tr><td class="paramdir">[in]</td><td class="paramname">n</td><td>number to be print. </td></tr>
  955. </table>
  956. </dd>
  957. </dl>
  958. <dl class="section return"><dt>Returns</dt><dd>The number of bytes written or -1 if an error occurs. </dd></dl>
  959. </div>
  960. </div>
  961. <a id="a218af88db35f38babf01d6e0a9cdceeb"></a>
  962. <h2 class="memtitle"><span class="permalink"><a href="#a218af88db35f38babf01d6e0a9cdceeb">&#9670;&nbsp;</a></span>printDec() <span class="overload">[4/9]</span></h2>
  963. <div class="memitem">
  964. <div class="memproto">
  965. <table class="memname">
  966. <tr>
  967. <td class="memname">int StdioStream::printDec </td>
  968. <td>(</td>
  969. <td class="paramtype">int16_t&#160;</td>
  970. <td class="paramname"><em>n</em></td><td>)</td>
  971. <td></td>
  972. </tr>
  973. </table>
  974. </div><div class="memdoc">
  975. <p>Print a int16_t </p><dl class="params"><dt>Parameters</dt><dd>
  976. <table class="params">
  977. <tr><td class="paramdir">[in]</td><td class="paramname">n</td><td>number to be printed. </td></tr>
  978. </table>
  979. </dd>
  980. </dl>
  981. <dl class="section return"><dt>Returns</dt><dd>The number of bytes written or -1 if an error occurs. </dd></dl>
  982. </div>
  983. </div>
  984. <a id="a90b2999af94a3578fff7579c2acf8e35"></a>
  985. <h2 class="memtitle"><span class="permalink"><a href="#a90b2999af94a3578fff7579c2acf8e35">&#9670;&nbsp;</a></span>printDec() <span class="overload">[5/9]</span></h2>
  986. <div class="memitem">
  987. <div class="memproto">
  988. <table class="memname">
  989. <tr>
  990. <td class="memname">int StdioStream::printDec </td>
  991. <td>(</td>
  992. <td class="paramtype">uint16_t&#160;</td>
  993. <td class="paramname"><em>n</em></td><td>)</td>
  994. <td></td>
  995. </tr>
  996. </table>
  997. </div><div class="memdoc">
  998. <p>print a uint16_t. </p><dl class="params"><dt>Parameters</dt><dd>
  999. <table class="params">
  1000. <tr><td class="paramdir">[in]</td><td class="paramname">n</td><td>number to be printed. </td></tr>
  1001. </table>
  1002. </dd>
  1003. </dl>
  1004. <dl class="section return"><dt>Returns</dt><dd>The number of bytes written or -1 if an error occurs. </dd></dl>
  1005. </div>
  1006. </div>
  1007. <a id="ad4591f1234b57f63c1acf0f3392099ac"></a>
  1008. <h2 class="memtitle"><span class="permalink"><a href="#ad4591f1234b57f63c1acf0f3392099ac">&#9670;&nbsp;</a></span>printDec() <span class="overload">[6/9]</span></h2>
  1009. <div class="memitem">
  1010. <div class="memproto">
  1011. <table class="memname">
  1012. <tr>
  1013. <td class="memname">int StdioStream::printDec </td>
  1014. <td>(</td>
  1015. <td class="paramtype">int32_t&#160;</td>
  1016. <td class="paramname"><em>n</em></td><td>)</td>
  1017. <td></td>
  1018. </tr>
  1019. </table>
  1020. </div><div class="memdoc">
  1021. <p>Print a signed 32-bit integer. </p><dl class="params"><dt>Parameters</dt><dd>
  1022. <table class="params">
  1023. <tr><td class="paramdir">[in]</td><td class="paramname">n</td><td>number to be printed. </td></tr>
  1024. </table>
  1025. </dd>
  1026. </dl>
  1027. <dl class="section return"><dt>Returns</dt><dd>The number of bytes written or -1 if an error occurs. </dd></dl>
  1028. </div>
  1029. </div>
  1030. <a id="a8b6c2c80342abe45e6f564e9bd5bb7ea"></a>
  1031. <h2 class="memtitle"><span class="permalink"><a href="#a8b6c2c80342abe45e6f564e9bd5bb7ea">&#9670;&nbsp;</a></span>printDec() <span class="overload">[7/9]</span></h2>
  1032. <div class="memitem">
  1033. <div class="memproto">
  1034. <table class="memname">
  1035. <tr>
  1036. <td class="memname">int StdioStream::printDec </td>
  1037. <td>(</td>
  1038. <td class="paramtype">uint32_t&#160;</td>
  1039. <td class="paramname"><em>n</em></td><td>)</td>
  1040. <td></td>
  1041. </tr>
  1042. </table>
  1043. </div><div class="memdoc">
  1044. <p>Write an unsigned 32-bit number. </p><dl class="params"><dt>Parameters</dt><dd>
  1045. <table class="params">
  1046. <tr><td class="paramdir">[in]</td><td class="paramname">n</td><td>number to be printed. </td></tr>
  1047. </table>
  1048. </dd>
  1049. </dl>
  1050. <dl class="section return"><dt>Returns</dt><dd>The number of bytes written or -1 if an error occurs. </dd></dl>
  1051. </div>
  1052. </div>
  1053. <a id="aaa8921947d4dbbae840d285cb633e8aa"></a>
  1054. <h2 class="memtitle"><span class="permalink"><a href="#aaa8921947d4dbbae840d285cb633e8aa">&#9670;&nbsp;</a></span>printDec() <span class="overload">[8/9]</span></h2>
  1055. <div class="memitem">
  1056. <div class="memproto">
  1057. <table class="mlabels">
  1058. <tr>
  1059. <td class="mlabels-left">
  1060. <table class="memname">
  1061. <tr>
  1062. <td class="memname">int StdioStream::printDec </td>
  1063. <td>(</td>
  1064. <td class="paramtype">double&#160;</td>
  1065. <td class="paramname"><em>value</em>, </td>
  1066. </tr>
  1067. <tr>
  1068. <td class="paramkey"></td>
  1069. <td></td>
  1070. <td class="paramtype">uint8_t&#160;</td>
  1071. <td class="paramname"><em>prec</em>&#160;</td>
  1072. </tr>
  1073. <tr>
  1074. <td></td>
  1075. <td>)</td>
  1076. <td></td><td></td>
  1077. </tr>
  1078. </table>
  1079. </td>
  1080. <td class="mlabels-right">
  1081. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1082. </tr>
  1083. </table>
  1084. </div><div class="memdoc">
  1085. <p>Print a double. </p><dl class="params"><dt>Parameters</dt><dd>
  1086. <table class="params">
  1087. <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>The number to be printed. </td></tr>
  1088. <tr><td class="paramdir">[in]</td><td class="paramname">prec</td><td>Number of digits after decimal point. </td></tr>
  1089. </table>
  1090. </dd>
  1091. </dl>
  1092. <dl class="section return"><dt>Returns</dt><dd>The number of bytes written or -1 if an error occurs. </dd></dl>
  1093. </div>
  1094. </div>
  1095. <a id="a6a09284b1c6d0769c27916a2e131e749"></a>
  1096. <h2 class="memtitle"><span class="permalink"><a href="#a6a09284b1c6d0769c27916a2e131e749">&#9670;&nbsp;</a></span>printDec() <span class="overload">[9/9]</span></h2>
  1097. <div class="memitem">
  1098. <div class="memproto">
  1099. <table class="memname">
  1100. <tr>
  1101. <td class="memname">int StdioStream::printDec </td>
  1102. <td>(</td>
  1103. <td class="paramtype">float&#160;</td>
  1104. <td class="paramname"><em>value</em>, </td>
  1105. </tr>
  1106. <tr>
  1107. <td class="paramkey"></td>
  1108. <td></td>
  1109. <td class="paramtype">uint8_t&#160;</td>
  1110. <td class="paramname"><em>prec</em>&#160;</td>
  1111. </tr>
  1112. <tr>
  1113. <td></td>
  1114. <td>)</td>
  1115. <td></td><td></td>
  1116. </tr>
  1117. </table>
  1118. </div><div class="memdoc">
  1119. <p>Print a float. </p><dl class="params"><dt>Parameters</dt><dd>
  1120. <table class="params">
  1121. <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>The number to be printed. </td></tr>
  1122. <tr><td class="paramdir">[in]</td><td class="paramname">prec</td><td>Number of digits after decimal point. </td></tr>
  1123. </table>
  1124. </dd>
  1125. </dl>
  1126. <dl class="section return"><dt>Returns</dt><dd>The number of bytes written or -1 if an error occurs. </dd></dl>
  1127. </div>
  1128. </div>
  1129. <a id="a4988592ada39c4b4c603b061f84d183f"></a>
  1130. <h2 class="memtitle"><span class="permalink"><a href="#a4988592ada39c4b4c603b061f84d183f">&#9670;&nbsp;</a></span>printField() <span class="overload">[1/3]</span></h2>
  1131. <div class="memitem">
  1132. <div class="memproto">
  1133. <table class="mlabels">
  1134. <tr>
  1135. <td class="mlabels-left">
  1136. <table class="memname">
  1137. <tr>
  1138. <td class="memname">int StdioStream::printField </td>
  1139. <td>(</td>
  1140. <td class="paramtype">double&#160;</td>
  1141. <td class="paramname"><em>value</em>, </td>
  1142. </tr>
  1143. <tr>
  1144. <td class="paramkey"></td>
  1145. <td></td>
  1146. <td class="paramtype">char&#160;</td>
  1147. <td class="paramname"><em>term</em>, </td>
  1148. </tr>
  1149. <tr>
  1150. <td class="paramkey"></td>
  1151. <td></td>
  1152. <td class="paramtype">uint8_t&#160;</td>
  1153. <td class="paramname"><em>prec</em> = <code>2</code>&#160;</td>
  1154. </tr>
  1155. <tr>
  1156. <td></td>
  1157. <td>)</td>
  1158. <td></td><td></td>
  1159. </tr>
  1160. </table>
  1161. </td>
  1162. <td class="mlabels-right">
  1163. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1164. </tr>
  1165. </table>
  1166. </div><div class="memdoc">
  1167. <p>Print a number followed by a field terminator. </p><dl class="params"><dt>Parameters</dt><dd>
  1168. <table class="params">
  1169. <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>The number to be printed. </td></tr>
  1170. <tr><td class="paramdir">[in]</td><td class="paramname">term</td><td>The field terminator. </td></tr>
  1171. <tr><td class="paramdir">[in]</td><td class="paramname">prec</td><td>Number of digits after decimal point. </td></tr>
  1172. </table>
  1173. </dd>
  1174. </dl>
  1175. <dl class="section return"><dt>Returns</dt><dd>The number of bytes written or -1 if an error occurs. </dd></dl>
  1176. </div>
  1177. </div>
  1178. <a id="a3b90b2317cc391f94784a847f5313c08"></a>
  1179. <h2 class="memtitle"><span class="permalink"><a href="#a3b90b2317cc391f94784a847f5313c08">&#9670;&nbsp;</a></span>printField() <span class="overload">[2/3]</span></h2>
  1180. <div class="memitem">
  1181. <div class="memproto">
  1182. <table class="mlabels">
  1183. <tr>
  1184. <td class="mlabels-left">
  1185. <table class="memname">
  1186. <tr>
  1187. <td class="memname">int StdioStream::printField </td>
  1188. <td>(</td>
  1189. <td class="paramtype">float&#160;</td>
  1190. <td class="paramname"><em>value</em>, </td>
  1191. </tr>
  1192. <tr>
  1193. <td class="paramkey"></td>
  1194. <td></td>
  1195. <td class="paramtype">char&#160;</td>
  1196. <td class="paramname"><em>term</em>, </td>
  1197. </tr>
  1198. <tr>
  1199. <td class="paramkey"></td>
  1200. <td></td>
  1201. <td class="paramtype">uint8_t&#160;</td>
  1202. <td class="paramname"><em>prec</em> = <code>2</code>&#160;</td>
  1203. </tr>
  1204. <tr>
  1205. <td></td>
  1206. <td>)</td>
  1207. <td></td><td></td>
  1208. </tr>
  1209. </table>
  1210. </td>
  1211. <td class="mlabels-right">
  1212. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1213. </tr>
  1214. </table>
  1215. </div><div class="memdoc">
  1216. <p>Print a number followed by a field terminator. </p><dl class="params"><dt>Parameters</dt><dd>
  1217. <table class="params">
  1218. <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>The number to be printed. </td></tr>
  1219. <tr><td class="paramdir">[in]</td><td class="paramname">term</td><td>The field terminator. </td></tr>
  1220. <tr><td class="paramdir">[in]</td><td class="paramname">prec</td><td>Number of digits after decimal point. </td></tr>
  1221. </table>
  1222. </dd>
  1223. </dl>
  1224. <dl class="section return"><dt>Returns</dt><dd>The number of bytes written or -1 if an error occurs. </dd></dl>
  1225. </div>
  1226. </div>
  1227. <a id="a02c2ad1a2e71e82d238b8386cf3e6c41"></a>
  1228. <h2 class="memtitle"><span class="permalink"><a href="#a02c2ad1a2e71e82d238b8386cf3e6c41">&#9670;&nbsp;</a></span>printField() <span class="overload">[3/3]</span></h2>
  1229. <div class="memitem">
  1230. <div class="memproto">
  1231. <div class="memtemplate">
  1232. template&lt;typename T &gt; </div>
  1233. <table class="mlabels">
  1234. <tr>
  1235. <td class="mlabels-left">
  1236. <table class="memname">
  1237. <tr>
  1238. <td class="memname">int StdioStream::printField </td>
  1239. <td>(</td>
  1240. <td class="paramtype">T&#160;</td>
  1241. <td class="paramname"><em>value</em>, </td>
  1242. </tr>
  1243. <tr>
  1244. <td class="paramkey"></td>
  1245. <td></td>
  1246. <td class="paramtype">char&#160;</td>
  1247. <td class="paramname"><em>term</em>&#160;</td>
  1248. </tr>
  1249. <tr>
  1250. <td></td>
  1251. <td>)</td>
  1252. <td></td><td></td>
  1253. </tr>
  1254. </table>
  1255. </td>
  1256. <td class="mlabels-right">
  1257. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1258. </tr>
  1259. </table>
  1260. </div><div class="memdoc">
  1261. <p>Print a number followed by a field terminator. </p><dl class="params"><dt>Parameters</dt><dd>
  1262. <table class="params">
  1263. <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>The number to be printed. </td></tr>
  1264. <tr><td class="paramdir">[in]</td><td class="paramname">term</td><td>The field terminator. </td></tr>
  1265. </table>
  1266. </dd>
  1267. </dl>
  1268. <dl class="section return"><dt>Returns</dt><dd>The number of bytes written or -1 if an error occurs. </dd></dl>
  1269. </div>
  1270. </div>
  1271. <a id="add39b2b4ec3daa7c8922e96ce5d368bc"></a>
  1272. <h2 class="memtitle"><span class="permalink"><a href="#add39b2b4ec3daa7c8922e96ce5d368bc">&#9670;&nbsp;</a></span>printHex()</h2>
  1273. <div class="memitem">
  1274. <div class="memproto">
  1275. <table class="memname">
  1276. <tr>
  1277. <td class="memname">int StdioStream::printHex </td>
  1278. <td>(</td>
  1279. <td class="paramtype">uint32_t&#160;</td>
  1280. <td class="paramname"><em>n</em></td><td>)</td>
  1281. <td></td>
  1282. </tr>
  1283. </table>
  1284. </div><div class="memdoc">
  1285. <p>Print HEX </p><dl class="params"><dt>Parameters</dt><dd>
  1286. <table class="params">
  1287. <tr><td class="paramdir">[in]</td><td class="paramname">n</td><td>number to be printed as HEX.</td></tr>
  1288. </table>
  1289. </dd>
  1290. </dl>
  1291. <dl class="section return"><dt>Returns</dt><dd>The number of bytes written or -1 if an error occurs. </dd></dl>
  1292. </div>
  1293. </div>
  1294. <a id="aec6ebea511489b0ef6b61d9132d93af9"></a>
  1295. <h2 class="memtitle"><span class="permalink"><a href="#aec6ebea511489b0ef6b61d9132d93af9">&#9670;&nbsp;</a></span>printHexln()</h2>
  1296. <div class="memitem">
  1297. <div class="memproto">
  1298. <table class="mlabels">
  1299. <tr>
  1300. <td class="mlabels-left">
  1301. <table class="memname">
  1302. <tr>
  1303. <td class="memname">int StdioStream::printHexln </td>
  1304. <td>(</td>
  1305. <td class="paramtype">uint32_t&#160;</td>
  1306. <td class="paramname"><em>n</em></td><td>)</td>
  1307. <td></td>
  1308. </tr>
  1309. </table>
  1310. </td>
  1311. <td class="mlabels-right">
  1312. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1313. </tr>
  1314. </table>
  1315. </div><div class="memdoc">
  1316. <p>Print HEX with CRLF </p><dl class="params"><dt>Parameters</dt><dd>
  1317. <table class="params">
  1318. <tr><td class="paramdir">[in]</td><td class="paramname">n</td><td>number to be printed as HEX.</td></tr>
  1319. </table>
  1320. </dd>
  1321. </dl>
  1322. <dl class="section return"><dt>Returns</dt><dd>The number of bytes written or -1 if an error occurs. </dd></dl>
  1323. </div>
  1324. </div>
  1325. <a id="ad0cd3acc05a91456f505752377bd405a"></a>
  1326. <h2 class="memtitle"><span class="permalink"><a href="#ad0cd3acc05a91456f505752377bd405a">&#9670;&nbsp;</a></span>println() <span class="overload">[1/4]</span></h2>
  1327. <div class="memitem">
  1328. <div class="memproto">
  1329. <table class="mlabels">
  1330. <tr>
  1331. <td class="mlabels-left">
  1332. <table class="memname">
  1333. <tr>
  1334. <td class="memname">size_t StdioStream::println </td>
  1335. <td>(</td>
  1336. <td class="paramname"></td><td>)</td>
  1337. <td></td>
  1338. </tr>
  1339. </table>
  1340. </td>
  1341. <td class="mlabels-right">
  1342. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1343. </tr>
  1344. </table>
  1345. </div><div class="memdoc">
  1346. <p>Write a CR/LF.</p>
  1347. <dl class="section return"><dt>Returns</dt><dd>two, the number of bytes written, for success or zero for failure. </dd></dl>
  1348. </div>
  1349. </div>
  1350. <a id="a3793dd66cf347a1ca0b7b167e948cce9"></a>
  1351. <h2 class="memtitle"><span class="permalink"><a href="#a3793dd66cf347a1ca0b7b167e948cce9">&#9670;&nbsp;</a></span>println() <span class="overload">[2/4]</span></h2>
  1352. <div class="memitem">
  1353. <div class="memproto">
  1354. <table class="mlabels">
  1355. <tr>
  1356. <td class="mlabels-left">
  1357. <table class="memname">
  1358. <tr>
  1359. <td class="memname">size_t StdioStream::println </td>
  1360. <td>(</td>
  1361. <td class="paramtype">double&#160;</td>
  1362. <td class="paramname"><em>val</em>, </td>
  1363. </tr>
  1364. <tr>
  1365. <td class="paramkey"></td>
  1366. <td></td>
  1367. <td class="paramtype">uint8_t&#160;</td>
  1368. <td class="paramname"><em>prec</em> = <code>2</code>&#160;</td>
  1369. </tr>
  1370. <tr>
  1371. <td></td>
  1372. <td>)</td>
  1373. <td></td><td></td>
  1374. </tr>
  1375. </table>
  1376. </td>
  1377. <td class="mlabels-right">
  1378. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1379. </tr>
  1380. </table>
  1381. </div><div class="memdoc">
  1382. <p>Print a floating point number followed by CR/LF.</p>
  1383. <dl class="params"><dt>Parameters</dt><dd>
  1384. <table class="params">
  1385. <tr><td class="paramdir">[in]</td><td class="paramname">val</td><td>the number to be printed.</td></tr>
  1386. <tr><td class="paramdir">[in]</td><td class="paramname">prec</td><td>Number of digits after decimal point.</td></tr>
  1387. </table>
  1388. </dd>
  1389. </dl>
  1390. <dl class="section return"><dt>Returns</dt><dd>the number of bytes written. </dd></dl>
  1391. </div>
  1392. </div>
  1393. <a id="aac250d041a7844c8db1cbd2d97ecfdaa"></a>
  1394. <h2 class="memtitle"><span class="permalink"><a href="#aac250d041a7844c8db1cbd2d97ecfdaa">&#9670;&nbsp;</a></span>println() <span class="overload">[3/4]</span></h2>
  1395. <div class="memitem">
  1396. <div class="memproto">
  1397. <table class="mlabels">
  1398. <tr>
  1399. <td class="mlabels-left">
  1400. <table class="memname">
  1401. <tr>
  1402. <td class="memname">size_t StdioStream::println </td>
  1403. <td>(</td>
  1404. <td class="paramtype">float&#160;</td>
  1405. <td class="paramname"><em>val</em>, </td>
  1406. </tr>
  1407. <tr>
  1408. <td class="paramkey"></td>
  1409. <td></td>
  1410. <td class="paramtype">uint8_t&#160;</td>
  1411. <td class="paramname"><em>prec</em> = <code>2</code>&#160;</td>
  1412. </tr>
  1413. <tr>
  1414. <td></td>
  1415. <td>)</td>
  1416. <td></td><td></td>
  1417. </tr>
  1418. </table>
  1419. </td>
  1420. <td class="mlabels-right">
  1421. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1422. </tr>
  1423. </table>
  1424. </div><div class="memdoc">
  1425. <p>Print a floating point number followed by CR/LF.</p>
  1426. <dl class="params"><dt>Parameters</dt><dd>
  1427. <table class="params">
  1428. <tr><td class="paramdir">[in]</td><td class="paramname">val</td><td>the number to be printed.</td></tr>
  1429. <tr><td class="paramdir">[in]</td><td class="paramname">prec</td><td>Number of digits after decimal point.</td></tr>
  1430. </table>
  1431. </dd>
  1432. </dl>
  1433. <dl class="section return"><dt>Returns</dt><dd>the number of bytes written. </dd></dl>
  1434. </div>
  1435. </div>
  1436. <a id="a3b14532768d07e6ed89c762d04792c12"></a>
  1437. <h2 class="memtitle"><span class="permalink"><a href="#a3b14532768d07e6ed89c762d04792c12">&#9670;&nbsp;</a></span>println() <span class="overload">[4/4]</span></h2>
  1438. <div class="memitem">
  1439. <div class="memproto">
  1440. <div class="memtemplate">
  1441. template&lt;typename T &gt; </div>
  1442. <table class="mlabels">
  1443. <tr>
  1444. <td class="mlabels-left">
  1445. <table class="memname">
  1446. <tr>
  1447. <td class="memname">size_t StdioStream::println </td>
  1448. <td>(</td>
  1449. <td class="paramtype">T&#160;</td>
  1450. <td class="paramname"><em>val</em></td><td>)</td>
  1451. <td></td>
  1452. </tr>
  1453. </table>
  1454. </td>
  1455. <td class="mlabels-right">
  1456. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1457. </tr>
  1458. </table>
  1459. </div><div class="memdoc">
  1460. <p>Print an item followed by CR/LF</p>
  1461. <dl class="params"><dt>Parameters</dt><dd>
  1462. <table class="params">
  1463. <tr><td class="paramdir">[in]</td><td class="paramname">val</td><td>the item to be printed.</td></tr>
  1464. </table>
  1465. </dd>
  1466. </dl>
  1467. <dl class="section return"><dt>Returns</dt><dd>the number of bytes written. </dd></dl>
  1468. </div>
  1469. </div>
  1470. <a id="adf9e552212aad6fc2284da0ee62d04dc"></a>
  1471. <h2 class="memtitle"><span class="permalink"><a href="#adf9e552212aad6fc2284da0ee62d04dc">&#9670;&nbsp;</a></span>putc()</h2>
  1472. <div class="memitem">
  1473. <div class="memproto">
  1474. <table class="mlabels">
  1475. <tr>
  1476. <td class="mlabels-left">
  1477. <table class="memname">
  1478. <tr>
  1479. <td class="memname">int StdioStream::putc </td>
  1480. <td>(</td>
  1481. <td class="paramtype">int&#160;</td>
  1482. <td class="paramname"><em>c</em></td><td>)</td>
  1483. <td></td>
  1484. </tr>
  1485. </table>
  1486. </td>
  1487. <td class="mlabels-right">
  1488. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1489. </tr>
  1490. </table>
  1491. </div><div class="memdoc">
  1492. <p>Write a byte to a stream.</p>
  1493. <p>putc and fputc are equivalent but putc is in-line so it is faster but require more flash memory.</p>
  1494. <dl class="params"><dt>Parameters</dt><dd>
  1495. <table class="params">
  1496. <tr><td class="paramdir">[in]</td><td class="paramname">c</td><td>the byte to be written (converted to an unsigned char).</td></tr>
  1497. </table>
  1498. </dd>
  1499. </dl>
  1500. <dl class="section return"><dt>Returns</dt><dd>Upon successful completion, <a class="el" href="class_stdio_stream.html#a9f23cfa6b112a5da6ae08340af23c57b">fputc()</a> returns the value it has written. Otherwise, it returns EOF and sets the error indicator for the stream. </dd></dl>
  1501. </div>
  1502. </div>
  1503. <a id="a09ccc4b6cabc3502c1052e85d94e84ef"></a>
  1504. <h2 class="memtitle"><span class="permalink"><a href="#a09ccc4b6cabc3502c1052e85d94e84ef">&#9670;&nbsp;</a></span>putCRLF()</h2>
  1505. <div class="memitem">
  1506. <div class="memproto">
  1507. <table class="mlabels">
  1508. <tr>
  1509. <td class="mlabels-left">
  1510. <table class="memname">
  1511. <tr>
  1512. <td class="memname">int StdioStream::putCRLF </td>
  1513. <td>(</td>
  1514. <td class="paramname"></td><td>)</td>
  1515. <td></td>
  1516. </tr>
  1517. </table>
  1518. </td>
  1519. <td class="mlabels-right">
  1520. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1521. </tr>
  1522. </table>
  1523. </div><div class="memdoc">
  1524. <p>Write a CR/LF.</p>
  1525. <dl class="section return"><dt>Returns</dt><dd>two, the number of bytes written, for success or -1 for failure. </dd></dl>
  1526. </div>
  1527. </div>
  1528. <a id="ad985866675193d2ee1dde9e27b0d08da"></a>
  1529. <h2 class="memtitle"><span class="permalink"><a href="#ad985866675193d2ee1dde9e27b0d08da">&#9670;&nbsp;</a></span>rewind()</h2>
  1530. <div class="memitem">
  1531. <div class="memproto">
  1532. <table class="memname">
  1533. <tr>
  1534. <td class="memname">bool StdioStream::rewind </td>
  1535. <td>(</td>
  1536. <td class="paramname"></td><td>)</td>
  1537. <td></td>
  1538. </tr>
  1539. </table>
  1540. </div><div class="memdoc">
  1541. <p>Set position of a stream to the beginning.</p>
  1542. <p>The rewind function sets the file position to the beginning of the file. It is equivalent to fseek(0L, SEEK_SET) except that the error indicator for the stream is also cleared.</p>
  1543. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1544. </div>
  1545. </div>
  1546. <a id="ac00e0dd906c2e857ece53794c6c92786"></a>
  1547. <h2 class="memtitle"><span class="permalink"><a href="#ac00e0dd906c2e857ece53794c6c92786">&#9670;&nbsp;</a></span>ungetc()</h2>
  1548. <div class="memitem">
  1549. <div class="memproto">
  1550. <table class="memname">
  1551. <tr>
  1552. <td class="memname">int StdioStream::ungetc </td>
  1553. <td>(</td>
  1554. <td class="paramtype">int&#160;</td>
  1555. <td class="paramname"><em>c</em></td><td>)</td>
  1556. <td></td>
  1557. </tr>
  1558. </table>
  1559. </div><div class="memdoc">
  1560. <p>Push a byte back into an input stream.</p>
  1561. <dl class="params"><dt>Parameters</dt><dd>
  1562. <table class="params">
  1563. <tr><td class="paramdir">[in]</td><td class="paramname">c</td><td>the byte (converted to an unsigned char) to be pushed back.</td></tr>
  1564. </table>
  1565. </dd>
  1566. </dl>
  1567. <p>One character of push-back is guaranteed. If the ungetc function is called too many times without an intervening read or file positioning operation on that stream, the operation may fail.</p>
  1568. <p>A successful intervening call to a file positioning function (fseek, fsetpos, or rewind) discards any pushed-back characters for the stream.</p>
  1569. <dl class="section return"><dt>Returns</dt><dd>Upon successful completion, <a class="el" href="class_stdio_stream.html#ac00e0dd906c2e857ece53794c6c92786">ungetc()</a> returns the byte pushed back after conversion. Otherwise it returns EOF. </dd></dl>
  1570. </div>
  1571. </div>
  1572. <hr/>The documentation for this class was generated from the following files:<ul>
  1573. <li>ArduinoSdFat/libraries/SdFat/src/iostream/<a class="el" href="_stdio_stream_8h.html">StdioStream.h</a></li>
  1574. <li>ArduinoSdFat/libraries/SdFat/src/iostream/StdioStream.cpp</li>
  1575. </ul>
  1576. </div><!-- contents -->
  1577. <!-- start footer part -->
  1578. <hr class="footer"/><address class="footer"><small>
  1579. Generated on Thu May 9 2019 06:51:29 for SdFat by &#160;<a href="http://www.doxygen.org/index.html">
  1580. <img class="footer" src="doxygen.png" alt="doxygen"/>
  1581. </a> 1.8.14
  1582. </small></address>
  1583. </body>
  1584. </html>