Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

class_stdio_stream.html 97KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752
  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.6"/>
  7. <title>SdFat: StdioStream Class Reference</title>
  8. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  9. <script type="text/javascript" src="jquery.js"></script>
  10. <script type="text/javascript" src="dynsections.js"></script>
  11. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  12. </head>
  13. <body>
  14. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  15. <div id="titlearea">
  16. <table cellspacing="0" cellpadding="0">
  17. <tbody>
  18. <tr style="height: 56px;">
  19. <td style="padding-left: 0.5em;">
  20. <div id="projectname">SdFat
  21. </div>
  22. </td>
  23. </tr>
  24. </tbody>
  25. </table>
  26. </div>
  27. <!-- end header part -->
  28. <!-- Generated by Doxygen 1.8.6 -->
  29. <div id="navrow1" class="tabs">
  30. <ul class="tablist">
  31. <li><a href="index.html"><span>Main&#160;Page</span></a></li>
  32. <li><a href="namespaces.html"><span>Namespaces</span></a></li>
  33. <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
  34. <li><a href="files.html"><span>Files</span></a></li>
  35. </ul>
  36. </div>
  37. <div id="navrow2" class="tabs2">
  38. <ul class="tablist">
  39. <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
  40. <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
  41. <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
  42. </ul>
  43. </div>
  44. </div><!-- top -->
  45. <div class="header">
  46. <div class="summary">
  47. <a href="#pub-methods">Public Member Functions</a> &#124;
  48. <a href="#pri-methods">Private Member Functions</a> &#124;
  49. <a href="#pri-static-methods">Static Private Member Functions</a> &#124;
  50. <a href="#pri-attribs">Private Attributes</a> &#124;
  51. <a href="class_stdio_stream-members.html">List of all members</a> </div>
  52. <div class="headertitle">
  53. <div class="title">StdioStream Class Reference</div> </div>
  54. </div><!--header-->
  55. <div class="contents">
  56. <p><a class="el" href="class_stdio_stream.html" title="StdioStream implements a minimal stdio stream. ">StdioStream</a> implements a minimal stdio stream.
  57. <a href="class_stdio_stream.html#details">More...</a></p>
  58. <p><code>#include &lt;StdioStream.h&gt;</code></p>
  59. <div class="dynheader">
  60. Inheritance diagram for StdioStream:</div>
  61. <div class="dyncontent">
  62. <div class="center"><img src="class_stdio_stream__inherit__graph.png" border="0" usemap="#_stdio_stream_inherit__map" alt="Inheritance graph"/></div>
  63. <map name="_stdio_stream_inherit__map" id="_stdio_stream_inherit__map">
  64. <area shape="rect" id="node2" href="class_sd_base_file.html" title="Base class for SdFile with Print and C++ streams. " alt="" coords="7,5,96,32"/> </map>
  65. <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
  66. <div class="dynheader">
  67. Collaboration diagram for StdioStream:</div>
  68. <div class="dyncontent">
  69. <div class="center"><img src="class_stdio_stream__coll__graph.png" border="0" usemap="#_stdio_stream_coll__map" alt="Collaboration graph"/></div>
  70. <map name="_stdio_stream_coll__map" id="_stdio_stream_coll__map">
  71. <area shape="rect" id="node2" href="class_sd_base_file.html" title="Base class for SdFile with Print and C++ streams. " alt="" coords="7,5,96,32"/> </map>
  72. <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
  73. <table class="memberdecls">
  74. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  75. Public Member Functions</h2></td></tr>
  76. <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>
  77. <tr class="separator:aa737e5680fc2808a03a603ea8559d82b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  78. <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>
  79. <tr class="separator:a4ddd4658d49182013d2fa2a181e96c5a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  80. <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>
  81. <tr class="separator:acb38c3211feedbf2206eb1d9a3a9d24f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  82. <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>
  83. <tr class="separator:afd64cec6440b923660b444f6d5f0586e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  84. <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>
  85. <tr class="separator:a7ce32ec7ea3f2fd8ea42b9633890f1c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
  86. <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>
  87. <tr class="separator:a160bd2828cb7e7370cffe1046eff8899"><td class="memSeparator" colspan="2">&#160;</td></tr>
  88. <tr class="memitem:a9bc02beb6ab3a076c8aadcd7d9b83d0a"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_stdio_stream.html#a9bc02beb6ab3a076c8aadcd7d9b83d0a">fgets</a> (char *str, int num, size_t *len=0)</td></tr>
  89. <tr class="separator:a9bc02beb6ab3a076c8aadcd7d9b83d0a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  90. <tr class="memitem:a1bdf02d0bb84e498d3a932fef3638a2a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_stdio_stream.html#a1bdf02d0bb84e498d3a932fef3638a2a">fopen</a> (const char *filename, const char *mode)</td></tr>
  91. <tr class="separator:a1bdf02d0bb84e498d3a932fef3638a2a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  92. <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>
  93. <tr class="separator:a9f23cfa6b112a5da6ae08340af23c57b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  94. <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>
  95. <tr class="separator:a6adea52f55ef7d97cdb54e9e11fc2daa"><td class="memSeparator" colspan="2">&#160;</td></tr>
  96. <tr class="memitem:a91a3f1f965372c4c37e32a7d556fc0be"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_stdio_stream.html#a91a3f1f965372c4c37e32a7d556fc0be">fputs_P</a> (<a class="el" href="_sd_base_file_8h.html#a963f816fc88a5d8479c285ed4c630229">PGM_P</a> str)</td></tr>
  97. <tr class="separator:a91a3f1f965372c4c37e32a7d556fc0be"><td class="memSeparator" colspan="2">&#160;</td></tr>
  98. <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>
  99. <tr class="separator:a2d363b02abcef82b25ff025d50375bce"><td class="memSeparator" colspan="2">&#160;</td></tr>
  100. <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>
  101. <tr class="separator:a71584fd5c5cda3c31ce6cdbcc56f104d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  102. <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>
  103. <tr class="separator:a809639fc5fb4fa5b6789dc121659f386"><td class="memSeparator" colspan="2">&#160;</td></tr>
  104. <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>
  105. <tr class="separator:ad79465afb52579cbc801f4585c3f9c25"><td class="memSeparator" colspan="2">&#160;</td></tr>
  106. <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>
  107. <tr class="separator:a28ba31e7b526607744bfa41844ffce31"><td class="memSeparator" colspan="2">&#160;</td></tr>
  108. <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>
  109. <tr class="separator:ad3f6ee8e8ca5dcf6dabfd88199b172e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  110. <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>
  111. <tr class="separator:a1158ea5f9bf041f21b1733b7811c9bb9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  112. <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>
  113. <tr class="separator:aac4d7b3548d03b8fd70adf12c7ee315c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  114. <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>
  115. <tr class="separator:a26f5b98560b6771225005b073166108b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  116. <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>
  117. <tr class="separator:a06b6eb9f0a7000fdcc73cd6af8d40560"><td class="memSeparator" colspan="2">&#160;</td></tr>
  118. <tr class="memitem:a7129f85c7c5f16867f467731ef84dee9"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
  119. <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>
  120. <tr class="separator:a7129f85c7c5f16867f467731ef84dee9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  121. <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>
  122. <tr class="separator:ac0a907feb1e4b7e00de99857b4c0a470"><td class="memSeparator" colspan="2">&#160;</td></tr>
  123. <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>
  124. <tr class="separator:a2707ea97f6113c226781469f4f39ff62"><td class="memSeparator" colspan="2">&#160;</td></tr>
  125. <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>
  126. <tr class="separator:a6e6ac78caa6259a4c4934707bf497a2b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  127. <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>
  128. <tr class="separator:a218af88db35f38babf01d6e0a9cdceeb"><td class="memSeparator" colspan="2">&#160;</td></tr>
  129. <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>
  130. <tr class="separator:a90b2999af94a3578fff7579c2acf8e35"><td class="memSeparator" colspan="2">&#160;</td></tr>
  131. <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>
  132. <tr class="separator:ad4591f1234b57f63c1acf0f3392099ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
  133. <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>
  134. <tr class="separator:a8b6c2c80342abe45e6f564e9bd5bb7ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
  135. <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>
  136. <tr class="separator:aaa8921947d4dbbae840d285cb633e8aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
  137. <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>
  138. <tr class="separator:a6a09284b1c6d0769c27916a2e131e749"><td class="memSeparator" colspan="2">&#160;</td></tr>
  139. <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>
  140. <tr class="separator:a4988592ada39c4b4c603b061f84d183f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  141. <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>
  142. <tr class="separator:a3b90b2317cc391f94784a847f5313c08"><td class="memSeparator" colspan="2">&#160;</td></tr>
  143. <tr class="memitem:a02c2ad1a2e71e82d238b8386cf3e6c41"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
  144. <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>
  145. <tr class="separator:a02c2ad1a2e71e82d238b8386cf3e6c41"><td class="memSeparator" colspan="2">&#160;</td></tr>
  146. <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>
  147. <tr class="separator:add39b2b4ec3daa7c8922e96ce5d368bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
  148. <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>
  149. <tr class="separator:aec6ebea511489b0ef6b61d9132d93af9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  150. <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>
  151. <tr class="separator:ad0cd3acc05a91456f505752377bd405a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  152. <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>
  153. <tr class="separator:a3793dd66cf347a1ca0b7b167e948cce9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  154. <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>
  155. <tr class="separator:aac250d041a7844c8db1cbd2d97ecfdaa"><td class="memSeparator" colspan="2">&#160;</td></tr>
  156. <tr class="memitem:a3b14532768d07e6ed89c762d04792c12"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
  157. <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>
  158. <tr class="separator:a3b14532768d07e6ed89c762d04792c12"><td class="memSeparator" colspan="2">&#160;</td></tr>
  159. <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>
  160. <tr class="separator:adf9e552212aad6fc2284da0ee62d04dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
  161. <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>
  162. <tr class="separator:a09ccc4b6cabc3502c1052e85d94e84ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
  163. <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>
  164. <tr class="separator:ad985866675193d2ee1dde9e27b0d08da"><td class="memSeparator" colspan="2">&#160;</td></tr>
  165. <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>
  166. <tr class="separator:a96b2c027e76bfca6d6835c9ae1be2ad2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  167. <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>
  168. <tr class="separator:ac00e0dd906c2e857ece53794c6c92786"><td class="memSeparator" colspan="2">&#160;</td></tr>
  169. </table><table class="memberdecls">
  170. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
  171. Private Member Functions</h2></td></tr>
  172. <tr class="memitem:ac4381fe633716069f2161d9e9fef5d16"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#ac4381fe633716069f2161d9e9fef5d16">available</a> ()</td></tr>
  173. <tr class="separator:ac4381fe633716069f2161d9e9fef5d16"><td class="memSeparator" colspan="2">&#160;</td></tr>
  174. <tr class="memitem:a6b4e639ae03ec48c9becd8b472aa1b50"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#a6b4e639ae03ec48c9becd8b472aa1b50">clearWriteError</a> ()</td></tr>
  175. <tr class="separator:a6b4e639ae03ec48c9becd8b472aa1b50"><td class="memSeparator" colspan="2">&#160;</td></tr>
  176. <tr class="memitem:a17f7e949aa0f80d89782d8e31f5edc15"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#a17f7e949aa0f80d89782d8e31f5edc15">close</a> ()</td></tr>
  177. <tr class="separator:a17f7e949aa0f80d89782d8e31f5edc15"><td class="memSeparator" colspan="2">&#160;</td></tr>
  178. <tr class="memitem:a272c68ba97eb5452ce903e6f8d2895a6"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#a272c68ba97eb5452ce903e6f8d2895a6">contiguousRange</a> (uint32_t *bgnBlock, uint32_t *endBlock)</td></tr>
  179. <tr class="separator:a272c68ba97eb5452ce903e6f8d2895a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
  180. <tr class="memitem:ad14a78d348219d6ce096582b6ed74526"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#ad14a78d348219d6ce096582b6ed74526">createContiguous</a> (<a class="el" href="class_sd_base_file.html">SdBaseFile</a> *dirFile, const char *path, uint32_t size)</td></tr>
  181. <tr class="separator:ad14a78d348219d6ce096582b6ed74526"><td class="memSeparator" colspan="2">&#160;</td></tr>
  182. <tr class="memitem:afd2ed78a03600924ef6502a86d7c6291"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#afd2ed78a03600924ef6502a86d7c6291">curCluster</a> () const </td></tr>
  183. <tr class="separator:afd2ed78a03600924ef6502a86d7c6291"><td class="memSeparator" colspan="2">&#160;</td></tr>
  184. <tr class="memitem:a9739ca25a7c804cace68f95c14658c44"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#a9739ca25a7c804cace68f95c14658c44">curPosition</a> () const </td></tr>
  185. <tr class="separator:a9739ca25a7c804cace68f95c14658c44"><td class="memSeparator" colspan="2">&#160;</td></tr>
  186. <tr class="memitem:a0977fc620f90e21897eca1fb1c25fdce"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#a0977fc620f90e21897eca1fb1c25fdce">dirEntry</a> (dir_t *dir)</td></tr>
  187. <tr class="separator:a0977fc620f90e21897eca1fb1c25fdce"><td class="memSeparator" colspan="2">&#160;</td></tr>
  188. <tr class="memitem:aa0b95ccc568d483f1416d2eacd1ff3f7"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#aa0b95ccc568d483f1416d2eacd1ff3f7">exists</a> (const char *name)</td></tr>
  189. <tr class="separator:aa0b95ccc568d483f1416d2eacd1ff3f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  190. <tr class="memitem:a41de4f35c622c1a5f5699400e8d05a87"><td class="memItemLeft" align="right" valign="top">int16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#a41de4f35c622c1a5f5699400e8d05a87">fgets</a> (char *str, int16_t num, char *delim=0)</td></tr>
  191. <tr class="separator:a41de4f35c622c1a5f5699400e8d05a87"><td class="memSeparator" colspan="2">&#160;</td></tr>
  192. <tr class="memitem:a32ac452756fdf80aae75fb1ab093a421"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#a32ac452756fdf80aae75fb1ab093a421">fileSize</a> () const </td></tr>
  193. <tr class="separator:a32ac452756fdf80aae75fb1ab093a421"><td class="memSeparator" colspan="2">&#160;</td></tr>
  194. <tr class="memitem:adca5f8fce7851f9b7abc92cb73e49e35"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#adca5f8fce7851f9b7abc92cb73e49e35">firstCluster</a> () const </td></tr>
  195. <tr class="separator:adca5f8fce7851f9b7abc92cb73e49e35"><td class="memSeparator" colspan="2">&#160;</td></tr>
  196. <tr class="memitem:a2e84ccce858fd7e4d88e26b23d19a822"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#a2e84ccce858fd7e4d88e26b23d19a822">getFilename</a> (char *name)</td></tr>
  197. <tr class="separator:a2e84ccce858fd7e4d88e26b23d19a822"><td class="memSeparator" colspan="2">&#160;</td></tr>
  198. <tr class="memitem:ad1af089e5cf0a4c86e9b6bae1595f59b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#ad1af089e5cf0a4c86e9b6bae1595f59b">getpos</a> (<a class="el" href="struct_fat_pos__t.html">FatPos_t</a> *pos)</td></tr>
  199. <tr class="separator:ad1af089e5cf0a4c86e9b6bae1595f59b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  200. <tr class="memitem:aa8ebd3ec28126c3171059d3e7dd355b9"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#aa8ebd3ec28126c3171059d3e7dd355b9">getWriteError</a> ()</td></tr>
  201. <tr class="separator:aa8ebd3ec28126c3171059d3e7dd355b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  202. <tr class="memitem:ad43ed061a1f77578d3c30a0f9b198497"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#ad43ed061a1f77578d3c30a0f9b198497">isDir</a> () const </td></tr>
  203. <tr class="separator:ad43ed061a1f77578d3c30a0f9b198497"><td class="memSeparator" colspan="2">&#160;</td></tr>
  204. <tr class="memitem:ab57b9744531ee0fcfa18bebde9fc50db"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#ab57b9744531ee0fcfa18bebde9fc50db">isFile</a> () const </td></tr>
  205. <tr class="separator:ab57b9744531ee0fcfa18bebde9fc50db"><td class="memSeparator" colspan="2">&#160;</td></tr>
  206. <tr class="memitem:a0fb6e697de39cdb777744981f58eaaa8"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#a0fb6e697de39cdb777744981f58eaaa8">isOpen</a> () const </td></tr>
  207. <tr class="separator:a0fb6e697de39cdb777744981f58eaaa8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  208. <tr class="memitem:ad1fcdcb6c1cb66207d243584e6049095"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#ad1fcdcb6c1cb66207d243584e6049095">isRoot</a> () const </td></tr>
  209. <tr class="separator:ad1fcdcb6c1cb66207d243584e6049095"><td class="memSeparator" colspan="2">&#160;</td></tr>
  210. <tr class="memitem:a50023837ddbc57b10098d3a7cd5856f7"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#a50023837ddbc57b10098d3a7cd5856f7">isSubDir</a> () const </td></tr>
  211. <tr class="separator:a50023837ddbc57b10098d3a7cd5856f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  212. <tr class="memitem:ae94a6672e77325d91cf2ae7077f4c785"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#ae94a6672e77325d91cf2ae7077f4c785">ls</a> (Print *pr, uint8_t flags=0, uint8_t indent=0)</td></tr>
  213. <tr class="separator:ae94a6672e77325d91cf2ae7077f4c785"><td class="memSeparator" colspan="2">&#160;</td></tr>
  214. <tr class="memitem:a925b3badddc0f9472730a4ccd4ff7b67"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#a925b3badddc0f9472730a4ccd4ff7b67">ls</a> (uint8_t flags=0)</td></tr>
  215. <tr class="separator:a925b3badddc0f9472730a4ccd4ff7b67"><td class="memSeparator" colspan="2">&#160;</td></tr>
  216. <tr class="memitem:ad1de34e5dc5b3a1727208f949b5838e9"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#ad1de34e5dc5b3a1727208f949b5838e9">mkdir</a> (<a class="el" href="class_sd_base_file.html">SdBaseFile</a> *dir, const char *path, bool pFlag=true)</td></tr>
  217. <tr class="separator:ad1de34e5dc5b3a1727208f949b5838e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  218. <tr class="memitem:a6ff5b48f672515ec20831583de74407f"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#a6ff5b48f672515ec20831583de74407f">open</a> (<a class="el" href="class_sd_base_file.html">SdBaseFile</a> *dirFile, uint16_t index, uint8_t oflag)</td></tr>
  219. <tr class="separator:a6ff5b48f672515ec20831583de74407f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  220. <tr class="memitem:a4b88be0d893bcada9b203bdd33fff8e2"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#a4b88be0d893bcada9b203bdd33fff8e2">open</a> (<a class="el" href="class_sd_base_file.html">SdBaseFile</a> *dirFile, const char *path, uint8_t oflag)</td></tr>
  221. <tr class="separator:a4b88be0d893bcada9b203bdd33fff8e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  222. <tr class="memitem:a63854cd9c57a9910779ca22112b436e0"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#a63854cd9c57a9910779ca22112b436e0">open</a> (const char *path, uint8_t oflag=O_READ)</td></tr>
  223. <tr class="separator:a63854cd9c57a9910779ca22112b436e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
  224. <tr class="memitem:aee4c736345e96aa5ddb7e5768ce88f51"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#aee4c736345e96aa5ddb7e5768ce88f51">openNext</a> (<a class="el" href="class_sd_base_file.html">SdBaseFile</a> *dirFile, uint8_t oflag)</td></tr>
  225. <tr class="separator:aee4c736345e96aa5ddb7e5768ce88f51"><td class="memSeparator" colspan="2">&#160;</td></tr>
  226. <tr class="memitem:ac67ffdfb84263bcd425886c09a15e287"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#ac67ffdfb84263bcd425886c09a15e287">openRoot</a> (<a class="el" href="class_sd_volume.html">SdVolume</a> *vol)</td></tr>
  227. <tr class="separator:ac67ffdfb84263bcd425886c09a15e287"><td class="memSeparator" colspan="2">&#160;</td></tr>
  228. <tr class="memitem:a996abee868ce928d04d9d0ad9305c915"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#a996abee868ce928d04d9d0ad9305c915">peek</a> ()</td></tr>
  229. <tr class="separator:a996abee868ce928d04d9d0ad9305c915"><td class="memSeparator" colspan="2">&#160;</td></tr>
  230. <tr class="memitem:afe2fd8314f3a6c0e06ff178f730efe07"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#afe2fd8314f3a6c0e06ff178f730efe07">printCreateDateTime</a> (Print *pr)</td></tr>
  231. <tr class="separator:afe2fd8314f3a6c0e06ff178f730efe07"><td class="memSeparator" colspan="2">&#160;</td></tr>
  232. <tr class="memitem:a8fcc3db8e05121c739d8d43ee40fec72"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#a8fcc3db8e05121c739d8d43ee40fec72">printField</a> (int16_t value, char term)</td></tr>
  233. <tr class="separator:a8fcc3db8e05121c739d8d43ee40fec72"><td class="memSeparator" colspan="2">&#160;</td></tr>
  234. <tr class="memitem:a71050abe5bed8e44f48ae75627b54c63"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#a71050abe5bed8e44f48ae75627b54c63">printField</a> (uint16_t value, char term)</td></tr>
  235. <tr class="separator:a71050abe5bed8e44f48ae75627b54c63"><td class="memSeparator" colspan="2">&#160;</td></tr>
  236. <tr class="memitem:a770817e273c68fb830f9f029c39fc41c"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#a770817e273c68fb830f9f029c39fc41c">printField</a> (int32_t value, char term)</td></tr>
  237. <tr class="separator:a770817e273c68fb830f9f029c39fc41c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  238. <tr class="memitem:a27146777c4d215cb5887edab4b4599b0"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#a27146777c4d215cb5887edab4b4599b0">printField</a> (uint32_t value, char term)</td></tr>
  239. <tr class="separator:a27146777c4d215cb5887edab4b4599b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
  240. <tr class="memitem:a0591fd1f5abc8d02547451eacd08e804"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#a0591fd1f5abc8d02547451eacd08e804">printFileSize</a> (Print *pr)</td></tr>
  241. <tr class="separator:a0591fd1f5abc8d02547451eacd08e804"><td class="memSeparator" colspan="2">&#160;</td></tr>
  242. <tr class="memitem:a65604a3450e69799f2969b6a145647dc"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#a65604a3450e69799f2969b6a145647dc">printModifyDateTime</a> (Print *pr)</td></tr>
  243. <tr class="separator:a65604a3450e69799f2969b6a145647dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
  244. <tr class="memitem:add1a682e60aa3d8c030805122d5aa4e3"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#add1a682e60aa3d8c030805122d5aa4e3">printName</a> ()</td></tr>
  245. <tr class="separator:add1a682e60aa3d8c030805122d5aa4e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
  246. <tr class="memitem:a942e26db2e764fccaeefea0fb371864d"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#a942e26db2e764fccaeefea0fb371864d">printName</a> (Print *pr)</td></tr>
  247. <tr class="separator:a942e26db2e764fccaeefea0fb371864d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  248. <tr class="memitem:a145595e55db1629fa126ffa2628fe9eb"><td class="memItemLeft" align="right" valign="top">int16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#a145595e55db1629fa126ffa2628fe9eb">read</a> ()</td></tr>
  249. <tr class="separator:a145595e55db1629fa126ffa2628fe9eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
  250. <tr class="memitem:aa70609890c15df7c49d65b07d1161a3f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#aa70609890c15df7c49d65b07d1161a3f">read</a> (void *buf, size_t nbyte)</td></tr>
  251. <tr class="separator:aa70609890c15df7c49d65b07d1161a3f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  252. <tr class="memitem:ae5dd9c5f9764db71c90c5fcfb02b2c97"><td class="memItemLeft" align="right" valign="top">int8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#ae5dd9c5f9764db71c90c5fcfb02b2c97">readDir</a> (dir_t *dir)</td></tr>
  253. <tr class="separator:ae5dd9c5f9764db71c90c5fcfb02b2c97"><td class="memSeparator" colspan="2">&#160;</td></tr>
  254. <tr class="memitem:a6e88ee210c9bd7556477c0e7ba4de1bb"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#a6e88ee210c9bd7556477c0e7ba4de1bb">remove</a> ()</td></tr>
  255. <tr class="separator:a6e88ee210c9bd7556477c0e7ba4de1bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
  256. <tr class="memitem:ad6e9f07c62add23dfe0338bdd0bf2d40"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#ad6e9f07c62add23dfe0338bdd0bf2d40">rename</a> (<a class="el" href="class_sd_base_file.html">SdBaseFile</a> *dirFile, const char *newPath)</td></tr>
  257. <tr class="separator:ad6e9f07c62add23dfe0338bdd0bf2d40"><td class="memSeparator" colspan="2">&#160;</td></tr>
  258. <tr class="memitem:a7268834187e8216605963f8ae3cf1e6e"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#a7268834187e8216605963f8ae3cf1e6e">rmdir</a> ()</td></tr>
  259. <tr class="separator:a7268834187e8216605963f8ae3cf1e6e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  260. <tr class="memitem:a4186ba79c83005971096966c0fd02d46"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#a4186ba79c83005971096966c0fd02d46">rmRfStar</a> ()</td></tr>
  261. <tr class="separator:a4186ba79c83005971096966c0fd02d46"><td class="memSeparator" colspan="2">&#160;</td></tr>
  262. <tr class="memitem:ab04ec7e129607973f6e3436f779b6501"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#ab04ec7e129607973f6e3436f779b6501">seekCur</a> (int32_t offset)</td></tr>
  263. <tr class="separator:ab04ec7e129607973f6e3436f779b6501"><td class="memSeparator" colspan="2">&#160;</td></tr>
  264. <tr class="memitem:a6f42e496b179dbdd2c09083cfad28613"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#a6f42e496b179dbdd2c09083cfad28613">seekEnd</a> (int32_t offset=0)</td></tr>
  265. <tr class="separator:a6f42e496b179dbdd2c09083cfad28613"><td class="memSeparator" colspan="2">&#160;</td></tr>
  266. <tr class="memitem:afe6aeaf0ca7573ceb8bb335c802dab16"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#afe6aeaf0ca7573ceb8bb335c802dab16">seekSet</a> (uint32_t pos)</td></tr>
  267. <tr class="separator:afe6aeaf0ca7573ceb8bb335c802dab16"><td class="memSeparator" colspan="2">&#160;</td></tr>
  268. <tr class="memitem:a71170390855df02c88cbda6e727e9609"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#a71170390855df02c88cbda6e727e9609">setpos</a> (<a class="el" href="struct_fat_pos__t.html">FatPos_t</a> *pos)</td></tr>
  269. <tr class="separator:a71170390855df02c88cbda6e727e9609"><td class="memSeparator" colspan="2">&#160;</td></tr>
  270. <tr class="memitem:a292247972772be832f2c6ea166f4049a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#a292247972772be832f2c6ea166f4049a">sync</a> ()</td></tr>
  271. <tr class="separator:a292247972772be832f2c6ea166f4049a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  272. <tr class="memitem:adf84a0487f3b45fc183756b9d17141cd"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#adf84a0487f3b45fc183756b9d17141cd">timestamp</a> (<a class="el" href="class_sd_base_file.html">SdBaseFile</a> *file)</td></tr>
  273. <tr class="separator:adf84a0487f3b45fc183756b9d17141cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
  274. <tr class="memitem:ae55ad6000c44fc73e15934381b305dc4"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#ae55ad6000c44fc73e15934381b305dc4">timestamp</a> (uint8_t flag, uint16_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t minute, uint8_t second)</td></tr>
  275. <tr class="separator:ae55ad6000c44fc73e15934381b305dc4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  276. <tr class="memitem:a9d1ad1abbd90089f731de81de1708c19"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#a9d1ad1abbd90089f731de81de1708c19">truncate</a> (uint32_t size)</td></tr>
  277. <tr class="separator:a9d1ad1abbd90089f731de81de1708c19"><td class="memSeparator" colspan="2">&#160;</td></tr>
  278. <tr class="memitem:a1555e6866abc9c867c5fff189a3a4317"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#a1555e6866abc9c867c5fff189a3a4317">type</a> () const </td></tr>
  279. <tr class="separator:a1555e6866abc9c867c5fff189a3a4317"><td class="memSeparator" colspan="2">&#160;</td></tr>
  280. <tr class="memitem:acb021c2b7f68778d683d093775532a06"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_sd_volume.html">SdVolume</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#acb021c2b7f68778d683d093775532a06">volume</a> () const </td></tr>
  281. <tr class="separator:acb021c2b7f68778d683d093775532a06"><td class="memSeparator" colspan="2">&#160;</td></tr>
  282. </table><table class="memberdecls">
  283. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-static-methods"></a>
  284. Static Private Member Functions</h2></td></tr>
  285. <tr class="memitem:a56b9402969b3348c97b413750226f955"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_sd_base_file.html">SdBaseFile</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#a56b9402969b3348c97b413750226f955">cwd</a> ()</td></tr>
  286. <tr class="separator:a56b9402969b3348c97b413750226f955"><td class="memSeparator" colspan="2">&#160;</td></tr>
  287. <tr class="memitem:a1664a62726dcd7ff82c12d724b3b34df"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#a1664a62726dcd7ff82c12d724b3b34df">dateTimeCallback</a> (void(*dateTime)(uint16_t *date, uint16_t *time))</td></tr>
  288. <tr class="separator:a1664a62726dcd7ff82c12d724b3b34df"><td class="memSeparator" colspan="2">&#160;</td></tr>
  289. <tr class="memitem:a04e3e7829c56a6b11df8df0051a49ef9"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#a04e3e7829c56a6b11df8df0051a49ef9">dateTimeCallbackCancel</a> ()</td></tr>
  290. <tr class="separator:a04e3e7829c56a6b11df8df0051a49ef9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  291. <tr class="memitem:a8fdbf7893bf19793e772b340e4c08fed"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#a8fdbf7893bf19793e772b340e4c08fed">dirName</a> (const dir_t &amp;dir, char *name)</td></tr>
  292. <tr class="separator:a8fdbf7893bf19793e772b340e4c08fed"><td class="memSeparator" colspan="2">&#160;</td></tr>
  293. <tr class="memitem:a1f8b53aea38427dd483dfff4e9437d0c"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#a1f8b53aea38427dd483dfff4e9437d0c">printFatDate</a> (uint16_t fatDate)</td></tr>
  294. <tr class="separator:a1f8b53aea38427dd483dfff4e9437d0c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  295. <tr class="memitem:a460b641eb358f2d6ac7a937944f9fba4"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#a460b641eb358f2d6ac7a937944f9fba4">printFatDate</a> (Print *pr, uint16_t fatDate)</td></tr>
  296. <tr class="separator:a460b641eb358f2d6ac7a937944f9fba4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  297. <tr class="memitem:a9d7dcf89a8d3144731e59ea74a640d68"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#a9d7dcf89a8d3144731e59ea74a640d68">printFatTime</a> (uint16_t fatTime)</td></tr>
  298. <tr class="separator:a9d7dcf89a8d3144731e59ea74a640d68"><td class="memSeparator" colspan="2">&#160;</td></tr>
  299. <tr class="memitem:af4d9cedda669bccdc8c8eeea73d04943"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#af4d9cedda669bccdc8c8eeea73d04943">printFatTime</a> (Print *pr, uint16_t fatTime)</td></tr>
  300. <tr class="separator:af4d9cedda669bccdc8c8eeea73d04943"><td class="memSeparator" colspan="2">&#160;</td></tr>
  301. <tr class="memitem:a4951400870f3f5ed8cc3f46b69388ed7"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#a4951400870f3f5ed8cc3f46b69388ed7">remove</a> (<a class="el" href="class_sd_base_file.html">SdBaseFile</a> *dirFile, const char *path)</td></tr>
  302. <tr class="separator:a4951400870f3f5ed8cc3f46b69388ed7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  303. </table><table class="memberdecls">
  304. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
  305. Private Attributes</h2></td></tr>
  306. <tr class="memitem:a47d4ba2177ffcd99c2387f9fac182d5b"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#a47d4ba2177ffcd99c2387f9fac182d5b">writeError</a></td></tr>
  307. <tr class="separator:a47d4ba2177ffcd99c2387f9fac182d5b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  308. </table>
  309. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  310. <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>
  311. <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>
  312. </div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
  313. <a class="anchor" id="a96b2c027e76bfca6d6835c9ae1be2ad2"></a>
  314. <div class="memitem">
  315. <div class="memproto">
  316. <table class="mlabels">
  317. <tr>
  318. <td class="mlabels-left">
  319. <table class="memname">
  320. <tr>
  321. <td class="memname">StdioStream::StdioStream </td>
  322. <td>(</td>
  323. <td class="paramname"></td><td>)</td>
  324. <td></td>
  325. </tr>
  326. </table>
  327. </td>
  328. <td class="mlabels-right">
  329. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  330. </tr>
  331. </table>
  332. </div><div class="memdoc">
  333. <p>Constructor </p>
  334. </div>
  335. </div>
  336. <h2 class="groupheader">Member Function Documentation</h2>
  337. <a class="anchor" id="aa737e5680fc2808a03a603ea8559d82b"></a>
  338. <div class="memitem">
  339. <div class="memproto">
  340. <table class="mlabels">
  341. <tr>
  342. <td class="mlabels-left">
  343. <table class="memname">
  344. <tr>
  345. <td class="memname">void StdioStream::clearerr </td>
  346. <td>(</td>
  347. <td class="paramname"></td><td>)</td>
  348. <td></td>
  349. </tr>
  350. </table>
  351. </td>
  352. <td class="mlabels-right">
  353. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  354. </tr>
  355. </table>
  356. </div><div class="memdoc">
  357. <p>Clear the stream's end-of-file and error indicators. </p>
  358. </div>
  359. </div>
  360. <a class="anchor" id="a4ddd4658d49182013d2fa2a181e96c5a"></a>
  361. <div class="memitem">
  362. <div class="memproto">
  363. <table class="memname">
  364. <tr>
  365. <td class="memname">int StdioStream::fclose </td>
  366. <td>(</td>
  367. <td class="paramname"></td><td>)</td>
  368. <td></td>
  369. </tr>
  370. </table>
  371. </div><div class="memdoc">
  372. <p>Close a stream.</p>
  373. <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>
  374. <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>
  375. </div>
  376. </div>
  377. <a class="anchor" id="acb38c3211feedbf2206eb1d9a3a9d24f"></a>
  378. <div class="memitem">
  379. <div class="memproto">
  380. <table class="mlabels">
  381. <tr>
  382. <td class="mlabels-left">
  383. <table class="memname">
  384. <tr>
  385. <td class="memname">int StdioStream::feof </td>
  386. <td>(</td>
  387. <td class="paramname"></td><td>)</td>
  388. <td></td>
  389. </tr>
  390. </table>
  391. </td>
  392. <td class="mlabels-right">
  393. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  394. </tr>
  395. </table>
  396. </div><div class="memdoc">
  397. <p>Test the stream's end-of-file indicator. </p>
  398. <dl class="section return"><dt>Returns</dt><dd>non-zero if and only if the end-of-file indicator is set. </dd></dl>
  399. </div>
  400. </div>
  401. <a class="anchor" id="afd64cec6440b923660b444f6d5f0586e"></a>
  402. <div class="memitem">
  403. <div class="memproto">
  404. <table class="mlabels">
  405. <tr>
  406. <td class="mlabels-left">
  407. <table class="memname">
  408. <tr>
  409. <td class="memname">int StdioStream::ferror </td>
  410. <td>(</td>
  411. <td class="paramname"></td><td>)</td>
  412. <td></td>
  413. </tr>
  414. </table>
  415. </td>
  416. <td class="mlabels-right">
  417. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  418. </tr>
  419. </table>
  420. </div><div class="memdoc">
  421. <p>Test the stream's error indicator. </p>
  422. <dl class="section return"><dt>Returns</dt><dd>return non-zero if and only if the error indicator is set. </dd></dl>
  423. </div>
  424. </div>
  425. <a class="anchor" id="a7ce32ec7ea3f2fd8ea42b9633890f1c0"></a>
  426. <div class="memitem">
  427. <div class="memproto">
  428. <table class="memname">
  429. <tr>
  430. <td class="memname">int StdioStream::fflush </td>
  431. <td>(</td>
  432. <td class="paramname"></td><td>)</td>
  433. <td></td>
  434. </tr>
  435. </table>
  436. </div><div class="memdoc">
  437. <p>Flush the stream.</p>
  438. <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>
  439. <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>
  440. </div>
  441. </div>
  442. <a class="anchor" id="a160bd2828cb7e7370cffe1046eff8899"></a>
  443. <div class="memitem">
  444. <div class="memproto">
  445. <table class="mlabels">
  446. <tr>
  447. <td class="mlabels-left">
  448. <table class="memname">
  449. <tr>
  450. <td class="memname">int StdioStream::fgetc </td>
  451. <td>(</td>
  452. <td class="paramname"></td><td>)</td>
  453. <td></td>
  454. </tr>
  455. </table>
  456. </td>
  457. <td class="mlabels-right">
  458. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  459. </tr>
  460. </table>
  461. </div><div class="memdoc">
  462. <p>Get a byte from the stream.</p>
  463. <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>
  464. </div>
  465. </div>
  466. <a class="anchor" id="a9bc02beb6ab3a076c8aadcd7d9b83d0a"></a>
  467. <div class="memitem">
  468. <div class="memproto">
  469. <table class="memname">
  470. <tr>
  471. <td class="memname">char * StdioStream::fgets </td>
  472. <td>(</td>
  473. <td class="paramtype">char *&#160;</td>
  474. <td class="paramname"><em>str</em>, </td>
  475. </tr>
  476. <tr>
  477. <td class="paramkey"></td>
  478. <td></td>
  479. <td class="paramtype">int&#160;</td>
  480. <td class="paramname"><em>num</em>, </td>
  481. </tr>
  482. <tr>
  483. <td class="paramkey"></td>
  484. <td></td>
  485. <td class="paramtype">size_t *&#160;</td>
  486. <td class="paramname"><em>len</em> = <code>0</code>&#160;</td>
  487. </tr>
  488. <tr>
  489. <td></td>
  490. <td>)</td>
  491. <td></td><td></td>
  492. </tr>
  493. </table>
  494. </div><div class="memdoc">
  495. <p>Get a string from a stream.</p>
  496. <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>
  497. <dl class="params"><dt>Parameters</dt><dd>
  498. <table class="params">
  499. <tr><td class="paramdir">[out]</td><td class="paramname">str</td><td>Pointer to an array of where the string is copied.</td></tr>
  500. <tr><td class="paramdir">[in]</td><td class="paramname">num</td><td>Maximum number of characters including the null character.</td></tr>
  501. <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>
  502. </table>
  503. </dd>
  504. </dl>
  505. <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>
  506. </div>
  507. </div>
  508. <a class="anchor" id="a1bdf02d0bb84e498d3a932fef3638a2a"></a>
  509. <div class="memitem">
  510. <div class="memproto">
  511. <table class="memname">
  512. <tr>
  513. <td class="memname">bool StdioStream::fopen </td>
  514. <td>(</td>
  515. <td class="paramtype">const char *&#160;</td>
  516. <td class="paramname"><em>filename</em>, </td>
  517. </tr>
  518. <tr>
  519. <td class="paramkey"></td>
  520. <td></td>
  521. <td class="paramtype">const char *&#160;</td>
  522. <td class="paramname"><em>mode</em>&#160;</td>
  523. </tr>
  524. <tr>
  525. <td></td>
  526. <td>)</td>
  527. <td></td><td></td>
  528. </tr>
  529. </table>
  530. </div><div class="memdoc">
  531. <p>Open a stream.</p>
  532. <p>Open a file and associates the stream with it.</p>
  533. <dl class="params"><dt>Parameters</dt><dd>
  534. <table class="params">
  535. <tr><td class="paramdir">[in]</td><td class="paramname">filename</td><td>name of the file to be opened.</td></tr>
  536. <tr><td class="paramdir">[in]</td><td class="paramname">mode</td><td>a string that indicates the open mode.</td></tr>
  537. </table>
  538. </dd>
  539. </dl>
  540. <table class="doxtable">
  541. <tr>
  542. <td>"r" or "rb" </td><td>Open a file for reading. The file must exist. </td></tr>
  543. <tr>
  544. <td>"w" or "wb" </td><td>Truncate an existing to zero length or create an empty file for writing. </td></tr>
  545. <tr>
  546. <td>"wx" or "wbx" </td><td>Create a file for writing. Fails if the file already exists. </td></tr>
  547. <tr>
  548. <td>"a" or "ab" </td><td>Append; open or create file for writing at end-of-file. </td></tr>
  549. <tr>
  550. <td>"r+" or "rb+" or "r+b" </td><td>Open a file for update (reading and writing). </td></tr>
  551. <tr>
  552. <td>"w+" or "w+b" or "wb+" </td><td>Truncate an existing to zero length or create a file for update. </td></tr>
  553. <tr>
  554. <td>"w+x" or "w+bx" or "wb+x" </td><td>Create a file for update. Fails if the file already exists. </td></tr>
  555. <tr>
  556. <td>"a+" or "a+b" or "ab+" </td><td>Append; open or create a file for update, writing at end-of-file. </td></tr>
  557. </table>
  558. <p>The character 'b' shall have no effect, but is allowed for ISO C standard conformance.</p>
  559. <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>
  560. <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 endof-file.</p>
  561. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  562. </div>
  563. </div>
  564. <a class="anchor" id="a9f23cfa6b112a5da6ae08340af23c57b"></a>
  565. <div class="memitem">
  566. <div class="memproto">
  567. <table class="mlabels">
  568. <tr>
  569. <td class="mlabels-left">
  570. <table class="memname">
  571. <tr>
  572. <td class="memname">int StdioStream::fputc </td>
  573. <td>(</td>
  574. <td class="paramtype">int&#160;</td>
  575. <td class="paramname"><em>c</em></td><td>)</td>
  576. <td></td>
  577. </tr>
  578. </table>
  579. </td>
  580. <td class="mlabels-right">
  581. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  582. </tr>
  583. </table>
  584. </div><div class="memdoc">
  585. <p>Write a byte to a stream.</p>
  586. <dl class="params"><dt>Parameters</dt><dd>
  587. <table class="params">
  588. <tr><td class="paramdir">[in]</td><td class="paramname">c</td><td>the byte to be written (converted to an unsigned char).</td></tr>
  589. </table>
  590. </dd>
  591. </dl>
  592. <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>
  593. </div>
  594. </div>
  595. <a class="anchor" id="a6adea52f55ef7d97cdb54e9e11fc2daa"></a>
  596. <div class="memitem">
  597. <div class="memproto">
  598. <table class="memname">
  599. <tr>
  600. <td class="memname">int StdioStream::fputs </td>
  601. <td>(</td>
  602. <td class="paramtype">const char *&#160;</td>
  603. <td class="paramname"><em>str</em></td><td>)</td>
  604. <td></td>
  605. </tr>
  606. </table>
  607. </div><div class="memdoc">
  608. <p>Write a string to a stream.</p>
  609. <dl class="params"><dt>Parameters</dt><dd>
  610. <table class="params">
  611. <tr><td class="paramdir">[in]</td><td class="paramname">str</td><td>a pointer to the string to be written.</td></tr>
  612. </table>
  613. </dd>
  614. </dl>
  615. <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>
  616. </div>
  617. </div>
  618. <a class="anchor" id="a91a3f1f965372c4c37e32a7d556fc0be"></a>
  619. <div class="memitem">
  620. <div class="memproto">
  621. <table class="memname">
  622. <tr>
  623. <td class="memname">int StdioStream::fputs_P </td>
  624. <td>(</td>
  625. <td class="paramtype"><a class="el" href="_sd_base_file_8h.html#a963f816fc88a5d8479c285ed4c630229">PGM_P</a>&#160;</td>
  626. <td class="paramname"><em>str</em></td><td>)</td>
  627. <td></td>
  628. </tr>
  629. </table>
  630. </div><div class="memdoc">
  631. <p>Write a string stored in flash.</p>
  632. <dl class="params"><dt>Parameters</dt><dd>
  633. <table class="params">
  634. <tr><td class="paramdir">[in]</td><td class="paramname">str</td><td>string to be written.</td></tr>
  635. </table>
  636. </dd>
  637. </dl>
  638. <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>
  639. </div>
  640. </div>
  641. <a class="anchor" id="a2d363b02abcef82b25ff025d50375bce"></a>
  642. <div class="memitem">
  643. <div class="memproto">
  644. <table class="memname">
  645. <tr>
  646. <td class="memname">size_t StdioStream::fread </td>
  647. <td>(</td>
  648. <td class="paramtype">void *&#160;</td>
  649. <td class="paramname"><em>ptr</em>, </td>
  650. </tr>
  651. <tr>
  652. <td class="paramkey"></td>
  653. <td></td>
  654. <td class="paramtype">size_t&#160;</td>
  655. <td class="paramname"><em>size</em>, </td>
  656. </tr>
  657. <tr>
  658. <td class="paramkey"></td>
  659. <td></td>
  660. <td class="paramtype">size_t&#160;</td>
  661. <td class="paramname"><em>count</em>&#160;</td>
  662. </tr>
  663. <tr>
  664. <td></td>
  665. <td>)</td>
  666. <td></td><td></td>
  667. </tr>
  668. </table>
  669. </div><div class="memdoc">
  670. <p>Binary input.</p>
  671. <p>Reads an array of up to count elements, each one with a size of size bytes. </p>
  672. <dl class="params"><dt>Parameters</dt><dd>
  673. <table class="params">
  674. <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>
  675. <tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>the size, in bytes, of each element to be read.</td></tr>
  676. <tr><td class="paramdir">[in]</td><td class="paramname">count</td><td>the number of elements to be read.</td></tr>
  677. </table>
  678. </dd>
  679. </dl>
  680. <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>
  681. </div>
  682. </div>
  683. <a class="anchor" id="a71584fd5c5cda3c31ce6cdbcc56f104d"></a>
  684. <div class="memitem">
  685. <div class="memproto">
  686. <table class="memname">
  687. <tr>
  688. <td class="memname">int StdioStream::fseek </td>
  689. <td>(</td>
  690. <td class="paramtype">int32_t&#160;</td>
  691. <td class="paramname"><em>offset</em>, </td>
  692. </tr>
  693. <tr>
  694. <td class="paramkey"></td>
  695. <td></td>
  696. <td class="paramtype">int&#160;</td>
  697. <td class="paramname"><em>origin</em>&#160;</td>
  698. </tr>
  699. <tr>
  700. <td></td>
  701. <td>)</td>
  702. <td></td><td></td>
  703. </tr>
  704. </table>
  705. </div><div class="memdoc">
  706. <p>Set the file position for the stream.</p>
  707. <dl class="params"><dt>Parameters</dt><dd>
  708. <table class="params">
  709. <tr><td class="paramdir">[in]</td><td class="paramname">offset</td><td>number of offset from the origin.</td></tr>
  710. <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>
  711. </table>
  712. </dd>
  713. </dl>
  714. <p>SEEK_SET - Beginning of file.</p>
  715. <p>SEEK_CUR - Current position of the file pointer.</p>
  716. <p>SEEK_END - End of file.</p>
  717. <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>
  718. </div>
  719. </div>
  720. <a class="anchor" id="a809639fc5fb4fa5b6789dc121659f386"></a>
  721. <div class="memitem">
  722. <div class="memproto">
  723. <table class="memname">
  724. <tr>
  725. <td class="memname">int32_t StdioStream::ftell </td>
  726. <td>(</td>
  727. <td class="paramname"></td><td>)</td>
  728. <td></td>
  729. </tr>
  730. </table>
  731. </div><div class="memdoc">
  732. <p>Get the current position in a stream.</p>
  733. <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>
  734. </div>
  735. </div>
  736. <a class="anchor" id="ad79465afb52579cbc801f4585c3f9c25"></a>
  737. <div class="memitem">
  738. <div class="memproto">
  739. <table class="memname">
  740. <tr>
  741. <td class="memname">size_t StdioStream::fwrite </td>
  742. <td>(</td>
  743. <td class="paramtype">const void *&#160;</td>
  744. <td class="paramname"><em>ptr</em>, </td>
  745. </tr>
  746. <tr>
  747. <td class="paramkey"></td>
  748. <td></td>
  749. <td class="paramtype">size_t&#160;</td>
  750. <td class="paramname"><em>size</em>, </td>
  751. </tr>
  752. <tr>
  753. <td class="paramkey"></td>
  754. <td></td>
  755. <td class="paramtype">size_t&#160;</td>
  756. <td class="paramname"><em>count</em>&#160;</td>
  757. </tr>
  758. <tr>
  759. <td></td>
  760. <td>)</td>
  761. <td></td><td></td>
  762. </tr>
  763. </table>
  764. </div><div class="memdoc">
  765. <p>Binary output.</p>
  766. <p>Writes an array of up to count elements, each one with a size of size bytes. </p>
  767. <dl class="params"><dt>Parameters</dt><dd>
  768. <table class="params">
  769. <tr><td class="paramdir">[in]</td><td class="paramname">ptr</td><td>pointer to (size*count) bytes of data to be written.</td></tr>
  770. <tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>the size, in bytes, of each element to be written.</td></tr>
  771. <tr><td class="paramdir">[in]</td><td class="paramname">count</td><td>the number of elements to be written.</td></tr>
  772. </table>
  773. </dd>
  774. </dl>
  775. <dl class="section return"><dt>Returns</dt><dd>number of elements successfully written. if this number is less than count, an error has occured. If size or count is zero, fwrite returns zero. </dd></dl>
  776. </div>
  777. </div>
  778. <a class="anchor" id="a28ba31e7b526607744bfa41844ffce31"></a>
  779. <div class="memitem">
  780. <div class="memproto">
  781. <table class="mlabels">
  782. <tr>
  783. <td class="mlabels-left">
  784. <table class="memname">
  785. <tr>
  786. <td class="memname">int StdioStream::getc </td>
  787. <td>(</td>
  788. <td class="paramname"></td><td>)</td>
  789. <td></td>
  790. </tr>
  791. </table>
  792. </td>
  793. <td class="mlabels-right">
  794. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  795. </tr>
  796. </table>
  797. </div><div class="memdoc">
  798. <p>Get a byte from the stream.</p>
  799. <p>getc and fgetc are equivalent but getc is inline so it is faster but require more flash memory.</p>
  800. <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>
  801. </div>
  802. </div>
  803. <a class="anchor" id="ad3f6ee8e8ca5dcf6dabfd88199b172e2"></a>
  804. <div class="memitem">
  805. <div class="memproto">
  806. <table class="mlabels">
  807. <tr>
  808. <td class="mlabels-left">
  809. <table class="memname">
  810. <tr>
  811. <td class="memname">size_t StdioStream::print </td>
  812. <td>(</td>
  813. <td class="paramtype">char&#160;</td>
  814. <td class="paramname"><em>c</em></td><td>)</td>
  815. <td></td>
  816. </tr>
  817. </table>
  818. </td>
  819. <td class="mlabels-right">
  820. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  821. </tr>
  822. </table>
  823. </div><div class="memdoc">
  824. <p>Write a character. </p>
  825. <dl class="params"><dt>Parameters</dt><dd>
  826. <table class="params">
  827. <tr><td class="paramdir">[in]</td><td class="paramname">c</td><td>the character to write. </td></tr>
  828. </table>
  829. </dd>
  830. </dl>
  831. <dl class="section return"><dt>Returns</dt><dd>the number of bytes written. </dd></dl>
  832. </div>
  833. </div>
  834. <a class="anchor" id="a1158ea5f9bf041f21b1733b7811c9bb9"></a>
  835. <div class="memitem">
  836. <div class="memproto">
  837. <table class="mlabels">
  838. <tr>
  839. <td class="mlabels-left">
  840. <table class="memname">
  841. <tr>
  842. <td class="memname">size_t StdioStream::print </td>
  843. <td>(</td>
  844. <td class="paramtype">const char *&#160;</td>
  845. <td class="paramname"><em>str</em></td><td>)</td>
  846. <td></td>
  847. </tr>
  848. </table>
  849. </td>
  850. <td class="mlabels-right">
  851. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  852. </tr>
  853. </table>
  854. </div><div class="memdoc">
  855. <p>Write a string.</p>
  856. <dl class="params"><dt>Parameters</dt><dd>
  857. <table class="params">
  858. <tr><td class="paramdir">[in]</td><td class="paramname">str</td><td>the string to be written.</td></tr>
  859. </table>
  860. </dd>
  861. </dl>
  862. <dl class="section return"><dt>Returns</dt><dd>the number of bytes written. </dd></dl>
  863. </div>
  864. </div>
  865. <a class="anchor" id="aac4d7b3548d03b8fd70adf12c7ee315c"></a>
  866. <div class="memitem">
  867. <div class="memproto">
  868. <table class="memname">
  869. <tr>
  870. <td class="memname">size_t StdioStream::print </td>
  871. <td>(</td>
  872. <td class="paramtype">const __FlashStringHelper *&#160;</td>
  873. <td class="paramname"><em>str</em></td><td>)</td>
  874. <td></td>
  875. </tr>
  876. </table>
  877. </div><div class="memdoc">
  878. <p>Print a string stored in flash memory.</p>
  879. <dl class="params"><dt>Parameters</dt><dd>
  880. <table class="params">
  881. <tr><td class="paramdir">[in]</td><td class="paramname">str</td><td>the string to print.</td></tr>
  882. </table>
  883. </dd>
  884. </dl>
  885. <dl class="section return"><dt>Returns</dt><dd>the number of bytes written. </dd></dl>
  886. </div>
  887. </div>
  888. <a class="anchor" id="a26f5b98560b6771225005b073166108b"></a>
  889. <div class="memitem">
  890. <div class="memproto">
  891. <table class="mlabels">
  892. <tr>
  893. <td class="mlabels-left">
  894. <table class="memname">
  895. <tr>
  896. <td class="memname">size_t StdioStream::print </td>
  897. <td>(</td>
  898. <td class="paramtype">double&#160;</td>
  899. <td class="paramname"><em>val</em>, </td>
  900. </tr>
  901. <tr>
  902. <td class="paramkey"></td>
  903. <td></td>
  904. <td class="paramtype">uint8_t&#160;</td>
  905. <td class="paramname"><em>prec</em> = <code>2</code>&#160;</td>
  906. </tr>
  907. <tr>
  908. <td></td>
  909. <td>)</td>
  910. <td></td><td></td>
  911. </tr>
  912. </table>
  913. </td>
  914. <td class="mlabels-right">
  915. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  916. </tr>
  917. </table>
  918. </div><div class="memdoc">
  919. <p>Print a floating point number.</p>
  920. <dl class="params"><dt>Parameters</dt><dd>
  921. <table class="params">
  922. <tr><td class="paramdir">[in]</td><td class="paramname">prec</td><td>Number of digits after decimal point.</td></tr>
  923. <tr><td class="paramdir">[in]</td><td class="paramname">val</td><td>the 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. </dd></dl>
  928. </div>
  929. </div>
  930. <a class="anchor" id="a06b6eb9f0a7000fdcc73cd6af8d40560"></a>
  931. <div class="memitem">
  932. <div class="memproto">
  933. <table class="mlabels">
  934. <tr>
  935. <td class="mlabels-left">
  936. <table class="memname">
  937. <tr>
  938. <td class="memname">size_t StdioStream::print </td>
  939. <td>(</td>
  940. <td class="paramtype">float&#160;</td>
  941. <td class="paramname"><em>val</em>, </td>
  942. </tr>
  943. <tr>
  944. <td class="paramkey"></td>
  945. <td></td>
  946. <td class="paramtype">uint8_t&#160;</td>
  947. <td class="paramname"><em>prec</em> = <code>2</code>&#160;</td>
  948. </tr>
  949. <tr>
  950. <td></td>
  951. <td>)</td>
  952. <td></td><td></td>
  953. </tr>
  954. </table>
  955. </td>
  956. <td class="mlabels-right">
  957. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  958. </tr>
  959. </table>
  960. </div><div class="memdoc">
  961. <p>Print a floating point number.</p>
  962. <dl class="params"><dt>Parameters</dt><dd>
  963. <table class="params">
  964. <tr><td class="paramdir">[in]</td><td class="paramname">prec</td><td>Number of digits after decimal point.</td></tr>
  965. <tr><td class="paramdir">[in]</td><td class="paramname">val</td><td>the number to be printed.</td></tr>
  966. </table>
  967. </dd>
  968. </dl>
  969. <dl class="section return"><dt>Returns</dt><dd>the number of bytes written. </dd></dl>
  970. </div>
  971. </div>
  972. <a class="anchor" id="a7129f85c7c5f16867f467731ef84dee9"></a>
  973. <div class="memitem">
  974. <div class="memproto">
  975. <div class="memtemplate">
  976. template&lt;typename T &gt; </div>
  977. <table class="mlabels">
  978. <tr>
  979. <td class="mlabels-left">
  980. <table class="memname">
  981. <tr>
  982. <td class="memname">size_t StdioStream::print </td>
  983. <td>(</td>
  984. <td class="paramtype">T&#160;</td>
  985. <td class="paramname"><em>val</em></td><td>)</td>
  986. <td></td>
  987. </tr>
  988. </table>
  989. </td>
  990. <td class="mlabels-right">
  991. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  992. </tr>
  993. </table>
  994. </div><div class="memdoc">
  995. <p>Print a number.</p>
  996. <dl class="params"><dt>Parameters</dt><dd>
  997. <table class="params">
  998. <tr><td class="paramdir">[in]</td><td class="paramname">val</td><td>the number to be printed.</td></tr>
  999. </table>
  1000. </dd>
  1001. </dl>
  1002. <dl class="section return"><dt>Returns</dt><dd>the number of bytes written. </dd></dl>
  1003. </div>
  1004. </div>
  1005. <a class="anchor" id="ac0a907feb1e4b7e00de99857b4c0a470"></a>
  1006. <div class="memitem">
  1007. <div class="memproto">
  1008. <table class="mlabels">
  1009. <tr>
  1010. <td class="mlabels-left">
  1011. <table class="memname">
  1012. <tr>
  1013. <td class="memname">int StdioStream::printDec </td>
  1014. <td>(</td>
  1015. <td class="paramtype">char&#160;</td>
  1016. <td class="paramname"><em>n</em></td><td>)</td>
  1017. <td></td>
  1018. </tr>
  1019. </table>
  1020. </td>
  1021. <td class="mlabels-right">
  1022. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1023. </tr>
  1024. </table>
  1025. </div><div class="memdoc">
  1026. <p>Print a char as a number. </p>
  1027. <dl class="params"><dt>Parameters</dt><dd>
  1028. <table class="params">
  1029. <tr><td class="paramdir">[in]</td><td class="paramname">n</td><td>number to be printed. </td></tr>
  1030. </table>
  1031. </dd>
  1032. </dl>
  1033. <dl class="section return"><dt>Returns</dt><dd>The number of bytes written or -1 if an error occurs. </dd></dl>
  1034. </div>
  1035. </div>
  1036. <a class="anchor" id="a2707ea97f6113c226781469f4f39ff62"></a>
  1037. <div class="memitem">
  1038. <div class="memproto">
  1039. <table class="memname">
  1040. <tr>
  1041. <td class="memname">int StdioStream::printDec </td>
  1042. <td>(</td>
  1043. <td class="paramtype">signed char&#160;</td>
  1044. <td class="paramname"><em>n</em></td><td>)</td>
  1045. <td></td>
  1046. </tr>
  1047. </table>
  1048. </div><div class="memdoc">
  1049. <p>print a signed 8-bit integer </p>
  1050. <dl class="params"><dt>Parameters</dt><dd>
  1051. <table class="params">
  1052. <tr><td class="paramdir">[in]</td><td class="paramname">n</td><td>number to be printed. </td></tr>
  1053. </table>
  1054. </dd>
  1055. </dl>
  1056. <dl class="section return"><dt>Returns</dt><dd>The number of bytes written or -1 if an error occurs. </dd></dl>
  1057. </div>
  1058. </div>
  1059. <a class="anchor" id="a6e6ac78caa6259a4c4934707bf497a2b"></a>
  1060. <div class="memitem">
  1061. <div class="memproto">
  1062. <table class="mlabels">
  1063. <tr>
  1064. <td class="mlabels-left">
  1065. <table class="memname">
  1066. <tr>
  1067. <td class="memname">int StdioStream::printDec </td>
  1068. <td>(</td>
  1069. <td class="paramtype">unsigned char&#160;</td>
  1070. <td class="paramname"><em>n</em></td><td>)</td>
  1071. <td></td>
  1072. </tr>
  1073. </table>
  1074. </td>
  1075. <td class="mlabels-right">
  1076. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1077. </tr>
  1078. </table>
  1079. </div><div class="memdoc">
  1080. <p>Print an unsigned 8-bit number. </p>
  1081. <dl class="params"><dt>Parameters</dt><dd>
  1082. <table class="params">
  1083. <tr><td class="paramdir">[in]</td><td class="paramname">n</td><td>number to be print. </td></tr>
  1084. </table>
  1085. </dd>
  1086. </dl>
  1087. <dl class="section return"><dt>Returns</dt><dd>The number of bytes written or -1 if an error occurs. </dd></dl>
  1088. </div>
  1089. </div>
  1090. <a class="anchor" id="a218af88db35f38babf01d6e0a9cdceeb"></a>
  1091. <div class="memitem">
  1092. <div class="memproto">
  1093. <table class="memname">
  1094. <tr>
  1095. <td class="memname">int StdioStream::printDec </td>
  1096. <td>(</td>
  1097. <td class="paramtype">int16_t&#160;</td>
  1098. <td class="paramname"><em>n</em></td><td>)</td>
  1099. <td></td>
  1100. </tr>
  1101. </table>
  1102. </div><div class="memdoc">
  1103. <p>Print a int16_t </p>
  1104. <dl class="params"><dt>Parameters</dt><dd>
  1105. <table class="params">
  1106. <tr><td class="paramdir">[in]</td><td class="paramname">n</td><td>number to be printed. </td></tr>
  1107. </table>
  1108. </dd>
  1109. </dl>
  1110. <dl class="section return"><dt>Returns</dt><dd>The number of bytes written or -1 if an error occurs. </dd></dl>
  1111. </div>
  1112. </div>
  1113. <a class="anchor" id="a90b2999af94a3578fff7579c2acf8e35"></a>
  1114. <div class="memitem">
  1115. <div class="memproto">
  1116. <table class="memname">
  1117. <tr>
  1118. <td class="memname">int StdioStream::printDec </td>
  1119. <td>(</td>
  1120. <td class="paramtype">uint16_t&#160;</td>
  1121. <td class="paramname"><em>n</em></td><td>)</td>
  1122. <td></td>
  1123. </tr>
  1124. </table>
  1125. </div><div class="memdoc">
  1126. <p>print a uint16_t. </p>
  1127. <dl class="params"><dt>Parameters</dt><dd>
  1128. <table class="params">
  1129. <tr><td class="paramdir">[in]</td><td class="paramname">n</td><td>number to be printed. </td></tr>
  1130. </table>
  1131. </dd>
  1132. </dl>
  1133. <dl class="section return"><dt>Returns</dt><dd>The number of bytes written or -1 if an error occurs. </dd></dl>
  1134. </div>
  1135. </div>
  1136. <a class="anchor" id="ad4591f1234b57f63c1acf0f3392099ac"></a>
  1137. <div class="memitem">
  1138. <div class="memproto">
  1139. <table class="memname">
  1140. <tr>
  1141. <td class="memname">int StdioStream::printDec </td>
  1142. <td>(</td>
  1143. <td class="paramtype">int32_t&#160;</td>
  1144. <td class="paramname"><em>n</em></td><td>)</td>
  1145. <td></td>
  1146. </tr>
  1147. </table>
  1148. </div><div class="memdoc">
  1149. <p>Print a signed 32-bit integer. </p>
  1150. <dl class="params"><dt>Parameters</dt><dd>
  1151. <table class="params">
  1152. <tr><td class="paramdir">[in]</td><td class="paramname">n</td><td>number to be printed. </td></tr>
  1153. </table>
  1154. </dd>
  1155. </dl>
  1156. <dl class="section return"><dt>Returns</dt><dd>The number of bytes written or -1 if an error occurs. </dd></dl>
  1157. </div>
  1158. </div>
  1159. <a class="anchor" id="a8b6c2c80342abe45e6f564e9bd5bb7ea"></a>
  1160. <div class="memitem">
  1161. <div class="memproto">
  1162. <table class="memname">
  1163. <tr>
  1164. <td class="memname">int StdioStream::printDec </td>
  1165. <td>(</td>
  1166. <td class="paramtype">uint32_t&#160;</td>
  1167. <td class="paramname"><em>n</em></td><td>)</td>
  1168. <td></td>
  1169. </tr>
  1170. </table>
  1171. </div><div class="memdoc">
  1172. <p>Write an unsigned 32-bit number. </p>
  1173. <dl class="params"><dt>Parameters</dt><dd>
  1174. <table class="params">
  1175. <tr><td class="paramdir">[in]</td><td class="paramname">n</td><td>number to be printed. </td></tr>
  1176. </table>
  1177. </dd>
  1178. </dl>
  1179. <dl class="section return"><dt>Returns</dt><dd>The number of bytes written or -1 if an error occurs. </dd></dl>
  1180. </div>
  1181. </div>
  1182. <a class="anchor" id="aaa8921947d4dbbae840d285cb633e8aa"></a>
  1183. <div class="memitem">
  1184. <div class="memproto">
  1185. <table class="mlabels">
  1186. <tr>
  1187. <td class="mlabels-left">
  1188. <table class="memname">
  1189. <tr>
  1190. <td class="memname">int StdioStream::printDec </td>
  1191. <td>(</td>
  1192. <td class="paramtype">double&#160;</td>
  1193. <td class="paramname"><em>value</em>, </td>
  1194. </tr>
  1195. <tr>
  1196. <td class="paramkey"></td>
  1197. <td></td>
  1198. <td class="paramtype">uint8_t&#160;</td>
  1199. <td class="paramname"><em>prec</em>&#160;</td>
  1200. </tr>
  1201. <tr>
  1202. <td></td>
  1203. <td>)</td>
  1204. <td></td><td></td>
  1205. </tr>
  1206. </table>
  1207. </td>
  1208. <td class="mlabels-right">
  1209. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1210. </tr>
  1211. </table>
  1212. </div><div class="memdoc">
  1213. <p>Print a double. </p>
  1214. <dl class="params"><dt>Parameters</dt><dd>
  1215. <table class="params">
  1216. <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>The number to be printed. </td></tr>
  1217. <tr><td class="paramdir">[in]</td><td class="paramname">prec</td><td>Number of digits after decimal point. </td></tr>
  1218. </table>
  1219. </dd>
  1220. </dl>
  1221. <dl class="section return"><dt>Returns</dt><dd>The number of bytes written or -1 if an error occurs. </dd></dl>
  1222. </div>
  1223. </div>
  1224. <a class="anchor" id="a6a09284b1c6d0769c27916a2e131e749"></a>
  1225. <div class="memitem">
  1226. <div class="memproto">
  1227. <table class="memname">
  1228. <tr>
  1229. <td class="memname">int StdioStream::printDec </td>
  1230. <td>(</td>
  1231. <td class="paramtype">float&#160;</td>
  1232. <td class="paramname"><em>value</em>, </td>
  1233. </tr>
  1234. <tr>
  1235. <td class="paramkey"></td>
  1236. <td></td>
  1237. <td class="paramtype">uint8_t&#160;</td>
  1238. <td class="paramname"><em>prec</em>&#160;</td>
  1239. </tr>
  1240. <tr>
  1241. <td></td>
  1242. <td>)</td>
  1243. <td></td><td></td>
  1244. </tr>
  1245. </table>
  1246. </div><div class="memdoc">
  1247. <p>Print a float. </p>
  1248. <dl class="params"><dt>Parameters</dt><dd>
  1249. <table class="params">
  1250. <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>The number to be printed. </td></tr>
  1251. <tr><td class="paramdir">[in]</td><td class="paramname">prec</td><td>Number of digits after decimal point. </td></tr>
  1252. </table>
  1253. </dd>
  1254. </dl>
  1255. <dl class="section return"><dt>Returns</dt><dd>The number of bytes written or -1 if an error occurs. </dd></dl>
  1256. </div>
  1257. </div>
  1258. <a class="anchor" id="a4988592ada39c4b4c603b061f84d183f"></a>
  1259. <div class="memitem">
  1260. <div class="memproto">
  1261. <table class="mlabels">
  1262. <tr>
  1263. <td class="mlabels-left">
  1264. <table class="memname">
  1265. <tr>
  1266. <td class="memname">int StdioStream::printField </td>
  1267. <td>(</td>
  1268. <td class="paramtype">double&#160;</td>
  1269. <td class="paramname"><em>value</em>, </td>
  1270. </tr>
  1271. <tr>
  1272. <td class="paramkey"></td>
  1273. <td></td>
  1274. <td class="paramtype">char&#160;</td>
  1275. <td class="paramname"><em>term</em>, </td>
  1276. </tr>
  1277. <tr>
  1278. <td class="paramkey"></td>
  1279. <td></td>
  1280. <td class="paramtype">uint8_t&#160;</td>
  1281. <td class="paramname"><em>prec</em> = <code>2</code>&#160;</td>
  1282. </tr>
  1283. <tr>
  1284. <td></td>
  1285. <td>)</td>
  1286. <td></td><td></td>
  1287. </tr>
  1288. </table>
  1289. </td>
  1290. <td class="mlabels-right">
  1291. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1292. </tr>
  1293. </table>
  1294. </div><div class="memdoc">
  1295. <p>Print a number followed by a field terminator. </p>
  1296. <dl class="params"><dt>Parameters</dt><dd>
  1297. <table class="params">
  1298. <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>The number to be printed. </td></tr>
  1299. <tr><td class="paramdir">[in]</td><td class="paramname">term</td><td>The field terminator. </td></tr>
  1300. <tr><td class="paramdir">[in]</td><td class="paramname">prec</td><td>Number of digits after decimal point. </td></tr>
  1301. </table>
  1302. </dd>
  1303. </dl>
  1304. <dl class="section return"><dt>Returns</dt><dd>The number of bytes written or -1 if an error occurs. </dd></dl>
  1305. </div>
  1306. </div>
  1307. <a class="anchor" id="a3b90b2317cc391f94784a847f5313c08"></a>
  1308. <div class="memitem">
  1309. <div class="memproto">
  1310. <table class="mlabels">
  1311. <tr>
  1312. <td class="mlabels-left">
  1313. <table class="memname">
  1314. <tr>
  1315. <td class="memname">int StdioStream::printField </td>
  1316. <td>(</td>
  1317. <td class="paramtype">float&#160;</td>
  1318. <td class="paramname"><em>value</em>, </td>
  1319. </tr>
  1320. <tr>
  1321. <td class="paramkey"></td>
  1322. <td></td>
  1323. <td class="paramtype">char&#160;</td>
  1324. <td class="paramname"><em>term</em>, </td>
  1325. </tr>
  1326. <tr>
  1327. <td class="paramkey"></td>
  1328. <td></td>
  1329. <td class="paramtype">uint8_t&#160;</td>
  1330. <td class="paramname"><em>prec</em> = <code>2</code>&#160;</td>
  1331. </tr>
  1332. <tr>
  1333. <td></td>
  1334. <td>)</td>
  1335. <td></td><td></td>
  1336. </tr>
  1337. </table>
  1338. </td>
  1339. <td class="mlabels-right">
  1340. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1341. </tr>
  1342. </table>
  1343. </div><div class="memdoc">
  1344. <p>Print a number followed by a field terminator. </p>
  1345. <dl class="params"><dt>Parameters</dt><dd>
  1346. <table class="params">
  1347. <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>The number to be printed. </td></tr>
  1348. <tr><td class="paramdir">[in]</td><td class="paramname">term</td><td>The field terminator. </td></tr>
  1349. <tr><td class="paramdir">[in]</td><td class="paramname">prec</td><td>Number of digits after decimal point. </td></tr>
  1350. </table>
  1351. </dd>
  1352. </dl>
  1353. <dl class="section return"><dt>Returns</dt><dd>The number of bytes written or -1 if an error occurs. </dd></dl>
  1354. </div>
  1355. </div>
  1356. <a class="anchor" id="a02c2ad1a2e71e82d238b8386cf3e6c41"></a>
  1357. <div class="memitem">
  1358. <div class="memproto">
  1359. <div class="memtemplate">
  1360. template&lt;typename T &gt; </div>
  1361. <table class="mlabels">
  1362. <tr>
  1363. <td class="mlabels-left">
  1364. <table class="memname">
  1365. <tr>
  1366. <td class="memname">int StdioStream::printField </td>
  1367. <td>(</td>
  1368. <td class="paramtype">T&#160;</td>
  1369. <td class="paramname"><em>value</em>, </td>
  1370. </tr>
  1371. <tr>
  1372. <td class="paramkey"></td>
  1373. <td></td>
  1374. <td class="paramtype">char&#160;</td>
  1375. <td class="paramname"><em>term</em>&#160;</td>
  1376. </tr>
  1377. <tr>
  1378. <td></td>
  1379. <td>)</td>
  1380. <td></td><td></td>
  1381. </tr>
  1382. </table>
  1383. </td>
  1384. <td class="mlabels-right">
  1385. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1386. </tr>
  1387. </table>
  1388. </div><div class="memdoc">
  1389. <p>Print a number followed by a field terminator. </p>
  1390. <dl class="params"><dt>Parameters</dt><dd>
  1391. <table class="params">
  1392. <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>The number to be printed. </td></tr>
  1393. <tr><td class="paramdir">[in]</td><td class="paramname">term</td><td>The field terminator. </td></tr>
  1394. </table>
  1395. </dd>
  1396. </dl>
  1397. <dl class="section return"><dt>Returns</dt><dd>The number of bytes written or -1 if an error occurs. </dd></dl>
  1398. </div>
  1399. </div>
  1400. <a class="anchor" id="add39b2b4ec3daa7c8922e96ce5d368bc"></a>
  1401. <div class="memitem">
  1402. <div class="memproto">
  1403. <table class="memname">
  1404. <tr>
  1405. <td class="memname">int StdioStream::printHex </td>
  1406. <td>(</td>
  1407. <td class="paramtype">uint32_t&#160;</td>
  1408. <td class="paramname"><em>n</em></td><td>)</td>
  1409. <td></td>
  1410. </tr>
  1411. </table>
  1412. </div><div class="memdoc">
  1413. <p>Print HEX </p>
  1414. <dl class="params"><dt>Parameters</dt><dd>
  1415. <table class="params">
  1416. <tr><td class="paramdir">[in]</td><td class="paramname">n</td><td>number to be printed as HEX.</td></tr>
  1417. </table>
  1418. </dd>
  1419. </dl>
  1420. <dl class="section return"><dt>Returns</dt><dd>The number of bytes written or -1 if an error occurs. </dd></dl>
  1421. </div>
  1422. </div>
  1423. <a class="anchor" id="aec6ebea511489b0ef6b61d9132d93af9"></a>
  1424. <div class="memitem">
  1425. <div class="memproto">
  1426. <table class="mlabels">
  1427. <tr>
  1428. <td class="mlabels-left">
  1429. <table class="memname">
  1430. <tr>
  1431. <td class="memname">int StdioStream::printHexln </td>
  1432. <td>(</td>
  1433. <td class="paramtype">uint32_t&#160;</td>
  1434. <td class="paramname"><em>n</em></td><td>)</td>
  1435. <td></td>
  1436. </tr>
  1437. </table>
  1438. </td>
  1439. <td class="mlabels-right">
  1440. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1441. </tr>
  1442. </table>
  1443. </div><div class="memdoc">
  1444. <p>Print HEX with CRLF </p>
  1445. <dl class="params"><dt>Parameters</dt><dd>
  1446. <table class="params">
  1447. <tr><td class="paramdir">[in]</td><td class="paramname">n</td><td>number to be printed as HEX.</td></tr>
  1448. </table>
  1449. </dd>
  1450. </dl>
  1451. <dl class="section return"><dt>Returns</dt><dd>The number of bytes written or -1 if an error occurs. </dd></dl>
  1452. </div>
  1453. </div>
  1454. <a class="anchor" id="ad0cd3acc05a91456f505752377bd405a"></a>
  1455. <div class="memitem">
  1456. <div class="memproto">
  1457. <table class="mlabels">
  1458. <tr>
  1459. <td class="mlabels-left">
  1460. <table class="memname">
  1461. <tr>
  1462. <td class="memname">size_t StdioStream::println </td>
  1463. <td>(</td>
  1464. <td class="paramname"></td><td>)</td>
  1465. <td></td>
  1466. </tr>
  1467. </table>
  1468. </td>
  1469. <td class="mlabels-right">
  1470. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1471. </tr>
  1472. </table>
  1473. </div><div class="memdoc">
  1474. <p>Write a CR/LF.</p>
  1475. <dl class="section return"><dt>Returns</dt><dd>two, the number of bytes written, for success or zero for failure. </dd></dl>
  1476. </div>
  1477. </div>
  1478. <a class="anchor" id="a3793dd66cf347a1ca0b7b167e948cce9"></a>
  1479. <div class="memitem">
  1480. <div class="memproto">
  1481. <table class="mlabels">
  1482. <tr>
  1483. <td class="mlabels-left">
  1484. <table class="memname">
  1485. <tr>
  1486. <td class="memname">size_t StdioStream::println </td>
  1487. <td>(</td>
  1488. <td class="paramtype">double&#160;</td>
  1489. <td class="paramname"><em>val</em>, </td>
  1490. </tr>
  1491. <tr>
  1492. <td class="paramkey"></td>
  1493. <td></td>
  1494. <td class="paramtype">uint8_t&#160;</td>
  1495. <td class="paramname"><em>prec</em> = <code>2</code>&#160;</td>
  1496. </tr>
  1497. <tr>
  1498. <td></td>
  1499. <td>)</td>
  1500. <td></td><td></td>
  1501. </tr>
  1502. </table>
  1503. </td>
  1504. <td class="mlabels-right">
  1505. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1506. </tr>
  1507. </table>
  1508. </div><div class="memdoc">
  1509. <p>Print a floating point number followed by CR/LF.</p>
  1510. <dl class="params"><dt>Parameters</dt><dd>
  1511. <table class="params">
  1512. <tr><td class="paramdir">[in]</td><td class="paramname">val</td><td>the number to be printed.</td></tr>
  1513. <tr><td class="paramdir">[in]</td><td class="paramname">prec</td><td>Number of digits after decimal point.</td></tr>
  1514. </table>
  1515. </dd>
  1516. </dl>
  1517. <dl class="section return"><dt>Returns</dt><dd>the number of bytes written. </dd></dl>
  1518. </div>
  1519. </div>
  1520. <a class="anchor" id="aac250d041a7844c8db1cbd2d97ecfdaa"></a>
  1521. <div class="memitem">
  1522. <div class="memproto">
  1523. <table class="mlabels">
  1524. <tr>
  1525. <td class="mlabels-left">
  1526. <table class="memname">
  1527. <tr>
  1528. <td class="memname">size_t StdioStream::println </td>
  1529. <td>(</td>
  1530. <td class="paramtype">float&#160;</td>
  1531. <td class="paramname"><em>val</em>, </td>
  1532. </tr>
  1533. <tr>
  1534. <td class="paramkey"></td>
  1535. <td></td>
  1536. <td class="paramtype">uint8_t&#160;</td>
  1537. <td class="paramname"><em>prec</em> = <code>2</code>&#160;</td>
  1538. </tr>
  1539. <tr>
  1540. <td></td>
  1541. <td>)</td>
  1542. <td></td><td></td>
  1543. </tr>
  1544. </table>
  1545. </td>
  1546. <td class="mlabels-right">
  1547. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1548. </tr>
  1549. </table>
  1550. </div><div class="memdoc">
  1551. <p>Print a floating point number followed by CR/LF.</p>
  1552. <dl class="params"><dt>Parameters</dt><dd>
  1553. <table class="params">
  1554. <tr><td class="paramdir">[in]</td><td class="paramname">val</td><td>the number to be printed.</td></tr>
  1555. <tr><td class="paramdir">[in]</td><td class="paramname">prec</td><td>Number of digits after decimal point.</td></tr>
  1556. </table>
  1557. </dd>
  1558. </dl>
  1559. <dl class="section return"><dt>Returns</dt><dd>the number of bytes written. </dd></dl>
  1560. </div>
  1561. </div>
  1562. <a class="anchor" id="a3b14532768d07e6ed89c762d04792c12"></a>
  1563. <div class="memitem">
  1564. <div class="memproto">
  1565. <div class="memtemplate">
  1566. template&lt;typename T &gt; </div>
  1567. <table class="mlabels">
  1568. <tr>
  1569. <td class="mlabels-left">
  1570. <table class="memname">
  1571. <tr>
  1572. <td class="memname">size_t StdioStream::println </td>
  1573. <td>(</td>
  1574. <td class="paramtype">T&#160;</td>
  1575. <td class="paramname"><em>val</em></td><td>)</td>
  1576. <td></td>
  1577. </tr>
  1578. </table>
  1579. </td>
  1580. <td class="mlabels-right">
  1581. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1582. </tr>
  1583. </table>
  1584. </div><div class="memdoc">
  1585. <p>Print an item followed by CR/LF</p>
  1586. <dl class="params"><dt>Parameters</dt><dd>
  1587. <table class="params">
  1588. <tr><td class="paramdir">[in]</td><td class="paramname">val</td><td>the item to be printed.</td></tr>
  1589. </table>
  1590. </dd>
  1591. </dl>
  1592. <dl class="section return"><dt>Returns</dt><dd>the number of bytes written. </dd></dl>
  1593. </div>
  1594. </div>
  1595. <a class="anchor" id="adf9e552212aad6fc2284da0ee62d04dc"></a>
  1596. <div class="memitem">
  1597. <div class="memproto">
  1598. <table class="mlabels">
  1599. <tr>
  1600. <td class="mlabels-left">
  1601. <table class="memname">
  1602. <tr>
  1603. <td class="memname">int StdioStream::putc </td>
  1604. <td>(</td>
  1605. <td class="paramtype">int&#160;</td>
  1606. <td class="paramname"><em>c</em></td><td>)</td>
  1607. <td></td>
  1608. </tr>
  1609. </table>
  1610. </td>
  1611. <td class="mlabels-right">
  1612. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1613. </tr>
  1614. </table>
  1615. </div><div class="memdoc">
  1616. <p>Write a byte to a stream.</p>
  1617. <p>putc and fputc are equivalent but putc is inline so it is faster but require more flash memory.</p>
  1618. <dl class="params"><dt>Parameters</dt><dd>
  1619. <table class="params">
  1620. <tr><td class="paramdir">[in]</td><td class="paramname">c</td><td>the byte to be written (converted to an unsigned char).</td></tr>
  1621. </table>
  1622. </dd>
  1623. </dl>
  1624. <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>
  1625. </div>
  1626. </div>
  1627. <a class="anchor" id="a09ccc4b6cabc3502c1052e85d94e84ef"></a>
  1628. <div class="memitem">
  1629. <div class="memproto">
  1630. <table class="mlabels">
  1631. <tr>
  1632. <td class="mlabels-left">
  1633. <table class="memname">
  1634. <tr>
  1635. <td class="memname">int StdioStream::putCRLF </td>
  1636. <td>(</td>
  1637. <td class="paramname"></td><td>)</td>
  1638. <td></td>
  1639. </tr>
  1640. </table>
  1641. </td>
  1642. <td class="mlabels-right">
  1643. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  1644. </tr>
  1645. </table>
  1646. </div><div class="memdoc">
  1647. <p>Write a CR/LF.</p>
  1648. <dl class="section return"><dt>Returns</dt><dd>two, the number of bytes written, for success or -1 for failure. </dd></dl>
  1649. </div>
  1650. </div>
  1651. <a class="anchor" id="ad985866675193d2ee1dde9e27b0d08da"></a>
  1652. <div class="memitem">
  1653. <div class="memproto">
  1654. <table class="memname">
  1655. <tr>
  1656. <td class="memname">bool StdioStream::rewind </td>
  1657. <td>(</td>
  1658. <td class="paramname"></td><td>)</td>
  1659. <td></td>
  1660. </tr>
  1661. </table>
  1662. </div><div class="memdoc">
  1663. <p>Set position of a stream to the beginning.</p>
  1664. <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>
  1665. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1666. </div>
  1667. </div>
  1668. <a class="anchor" id="ac00e0dd906c2e857ece53794c6c92786"></a>
  1669. <div class="memitem">
  1670. <div class="memproto">
  1671. <table class="memname">
  1672. <tr>
  1673. <td class="memname">int StdioStream::ungetc </td>
  1674. <td>(</td>
  1675. <td class="paramtype">int&#160;</td>
  1676. <td class="paramname"><em>c</em></td><td>)</td>
  1677. <td></td>
  1678. </tr>
  1679. </table>
  1680. </div><div class="memdoc">
  1681. <p>Push a byte back into an input stream.</p>
  1682. <dl class="params"><dt>Parameters</dt><dd>
  1683. <table class="params">
  1684. <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>
  1685. </table>
  1686. </dd>
  1687. </dl>
  1688. <p>One character of pushback 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>
  1689. <p>A successful intervening call to a file positioning function (fseek, fsetpos, or rewind) discards any pushed-back characters for the stream.</p>
  1690. <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>
  1691. </div>
  1692. </div>
  1693. <hr/>The documentation for this class was generated from the following files:<ul>
  1694. <li>Arduino/libraries/SdFat/<a class="el" href="_stdio_stream_8h.html">StdioStream.h</a></li>
  1695. <li>Arduino/libraries/SdFat/<a class="el" href="_stdio_stream_8cpp.html">StdioStream.cpp</a></li>
  1696. </ul>
  1697. </div><!-- contents -->
  1698. <!-- start footer part -->
  1699. <hr class="footer"/><address class="footer"><small>
  1700. Generated on Fri Oct 24 2014 05:45:13 for SdFat by &#160;<a href="http://www.doxygen.org/index.html">
  1701. <img class="footer" src="doxygen.png" alt="doxygen"/>
  1702. </a> 1.8.6
  1703. </small></address>
  1704. </body>
  1705. </html>