You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

class_sd_base_file.html 144KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287
  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.10"/>
  7. <title>SdFat: SdBaseFile 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="search/search.css" rel="stylesheet" type="text/css"/>
  12. <script type="text/javascript" src="search/searchdata.js"></script>
  13. <script type="text/javascript" src="search/search.js"></script>
  14. <script type="text/javascript">
  15. $(document).ready(function() { init_search(); });
  16. </script>
  17. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  18. </head>
  19. <body>
  20. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  21. <div id="titlearea">
  22. <table cellspacing="0" cellpadding="0">
  23. <tbody>
  24. <tr style="height: 56px;">
  25. <td id="projectalign" style="padding-left: 0.5em;">
  26. <div id="projectname">SdFat
  27. </div>
  28. </td>
  29. </tr>
  30. </tbody>
  31. </table>
  32. </div>
  33. <!-- end header part -->
  34. <!-- Generated by Doxygen 1.8.10 -->
  35. <script type="text/javascript">
  36. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  37. </script>
  38. <div id="navrow1" class="tabs">
  39. <ul class="tablist">
  40. <li><a href="index.html"><span>Main&#160;Page</span></a></li>
  41. <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
  42. <li><a href="files.html"><span>Files</span></a></li>
  43. <li>
  44. <div id="MSearchBox" class="MSearchBoxInactive">
  45. <span class="left">
  46. <img id="MSearchSelect" src="search/mag_sel.png"
  47. onmouseover="return searchBox.OnSearchSelectShow()"
  48. onmouseout="return searchBox.OnSearchSelectHide()"
  49. alt=""/>
  50. <input type="text" id="MSearchField" value="Search" accesskey="S"
  51. onfocus="searchBox.OnSearchFieldFocus(true)"
  52. onblur="searchBox.OnSearchFieldFocus(false)"
  53. onkeyup="searchBox.OnSearchFieldChange(event)"/>
  54. </span><span class="right">
  55. <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
  56. </span>
  57. </div>
  58. </li>
  59. </ul>
  60. </div>
  61. <div id="navrow2" class="tabs2">
  62. <ul class="tablist">
  63. <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
  64. <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
  65. <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
  66. </ul>
  67. </div>
  68. <!-- window showing the filter options -->
  69. <div id="MSearchSelectWindow"
  70. onmouseover="return searchBox.OnSearchSelectShow()"
  71. onmouseout="return searchBox.OnSearchSelectHide()"
  72. onkeydown="return searchBox.OnSearchSelectKey(event)">
  73. </div>
  74. <!-- iframe showing the search results (closed by default) -->
  75. <div id="MSearchResultsWindow">
  76. <iframe src="javascript:void(0)" frameborder="0"
  77. name="MSearchResults" id="MSearchResults">
  78. </iframe>
  79. </div>
  80. </div><!-- top -->
  81. <div class="header">
  82. <div class="summary">
  83. <a href="#pub-methods">Public Member Functions</a> &#124;
  84. <a href="#pub-static-methods">Static Public Member Functions</a> &#124;
  85. <a href="class_sd_base_file-members.html">List of all members</a> </div>
  86. <div class="headertitle">
  87. <div class="title">SdBaseFile Class Reference</div> </div>
  88. </div><!--header-->
  89. <div class="contents">
  90. <p>Class for backward compatibility.
  91. <a href="class_sd_base_file.html#details">More...</a></p>
  92. <p><code>#include &lt;SdFat.h&gt;</code></p>
  93. <div class="dynheader">
  94. Inheritance diagram for SdBaseFile:</div>
  95. <div class="dyncontent">
  96. <div class="center"><img src="class_sd_base_file__inherit__graph.png" border="0" usemap="#_sd_base_file_inherit__map" alt="Inheritance graph"/></div>
  97. <map name="_sd_base_file_inherit__map" id="_sd_base_file_inherit__map">
  98. <area shape="rect" id="node2" href="class_fat_file.html" title="Basic file class. " alt="" coords="19,5,81,32"/>
  99. </map>
  100. <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
  101. <div class="dynheader">
  102. Collaboration diagram for SdBaseFile:</div>
  103. <div class="dyncontent">
  104. <div class="center"><img src="class_sd_base_file__coll__graph.png" border="0" usemap="#_sd_base_file_coll__map" alt="Collaboration graph"/></div>
  105. <map name="_sd_base_file_coll__map" id="_sd_base_file_coll__map">
  106. <area shape="rect" id="node2" href="class_fat_file.html" title="Basic file class. " alt="" coords="19,5,81,32"/>
  107. </map>
  108. <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
  109. <table class="memberdecls">
  110. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  111. Public Member Functions</h2></td></tr>
  112. <tr class="memitem:ac1fa779d98db7ffdb96f8019ab0060d6"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#ac1fa779d98db7ffdb96f8019ab0060d6">available</a> ()</td></tr>
  113. <tr class="separator:ac1fa779d98db7ffdb96f8019ab0060d6"><td class="memSeparator" colspan="2">&#160;</td></tr>
  114. <tr class="memitem:a052e2c15a39b322a5307b693b8835b22"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a052e2c15a39b322a5307b693b8835b22">clearError</a> ()</td></tr>
  115. <tr class="separator:a052e2c15a39b322a5307b693b8835b22"><td class="memSeparator" colspan="2">&#160;</td></tr>
  116. <tr class="memitem:aeca2a2eff91e6aa55fe1b0e3860c9a05"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#aeca2a2eff91e6aa55fe1b0e3860c9a05">clearWriteError</a> ()</td></tr>
  117. <tr class="separator:aeca2a2eff91e6aa55fe1b0e3860c9a05"><td class="memSeparator" colspan="2">&#160;</td></tr>
  118. <tr class="memitem:afd16af325e0642e4bff6430b7d8bb18b"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#afd16af325e0642e4bff6430b7d8bb18b">close</a> ()</td></tr>
  119. <tr class="separator:afd16af325e0642e4bff6430b7d8bb18b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  120. <tr class="memitem:aa367708bcc8bc0e0c45c0c2a812c65da"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#aa367708bcc8bc0e0c45c0c2a812c65da">contiguousRange</a> (uint32_t *bgnBlock, uint32_t *endBlock)</td></tr>
  121. <tr class="separator:aa367708bcc8bc0e0c45c0c2a812c65da"><td class="memSeparator" colspan="2">&#160;</td></tr>
  122. <tr class="memitem:a0afc2a1cffa238d1cb2049bfa2d8d199"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a0afc2a1cffa238d1cb2049bfa2d8d199">createContiguous</a> (<a class="el" href="class_fat_file.html">FatFile</a> *dirFile, const char *path, uint32_t size)</td></tr>
  123. <tr class="separator:a0afc2a1cffa238d1cb2049bfa2d8d199"><td class="memSeparator" colspan="2">&#160;</td></tr>
  124. <tr class="memitem:a0853fbd44aee2798d14d8e3aed78f8bf"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a0853fbd44aee2798d14d8e3aed78f8bf">createContiguous</a> (const char *path, uint32_t size)</td></tr>
  125. <tr class="separator:a0853fbd44aee2798d14d8e3aed78f8bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
  126. <tr class="memitem:a4c03e2f6729526786e6ab4a623e0339b"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a4c03e2f6729526786e6ab4a623e0339b">curCluster</a> () const </td></tr>
  127. <tr class="separator:a4c03e2f6729526786e6ab4a623e0339b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  128. <tr class="memitem:a20c55b134bfd1d287a00bf64eba9332e"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a20c55b134bfd1d287a00bf64eba9332e">curPosition</a> () const </td></tr>
  129. <tr class="separator:a20c55b134bfd1d287a00bf64eba9332e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  130. <tr class="memitem:a6858d18c807411a071fd6d1b39d50087"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a6858d18c807411a071fd6d1b39d50087">dirEntry</a> (<a class="el" href="_fat_structs_8h.html#a803db59d4e16a0c54a647afc6a7954e3">dir_t</a> *dir)</td></tr>
  131. <tr class="separator:a6858d18c807411a071fd6d1b39d50087"><td class="memSeparator" colspan="2">&#160;</td></tr>
  132. <tr class="memitem:ae5ec24d4a94d3780384d3f2b731c7eb9"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#ae5ec24d4a94d3780384d3f2b731c7eb9">dirIndex</a> ()</td></tr>
  133. <tr class="separator:ae5ec24d4a94d3780384d3f2b731c7eb9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  134. <tr class="memitem:ae2ed15f05c9ccbce355e7a8d3ce8382d"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#ae2ed15f05c9ccbce355e7a8d3ce8382d">dirSize</a> ()</td></tr>
  135. <tr class="separator:ae2ed15f05c9ccbce355e7a8d3ce8382d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  136. <tr class="memitem:a4f01d27954ae49aeb6888ac7302f55d9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a4f01d27954ae49aeb6888ac7302f55d9">dmpFile</a> (<a class="el" href="_fat_volume_8h.html#ac62f6449331cfe1a71f29be30efe7890">print_t</a> *pr, uint32_t pos, size_t n)</td></tr>
  137. <tr class="separator:a4f01d27954ae49aeb6888ac7302f55d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  138. <tr class="memitem:a50242f98dea0d4488ce4039a279f2a57"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a50242f98dea0d4488ce4039a279f2a57">exists</a> (const char *path)</td></tr>
  139. <tr class="separator:a50242f98dea0d4488ce4039a279f2a57"><td class="memSeparator" colspan="2">&#160;</td></tr>
  140. <tr class="memitem:a31ef26b3ee37cf5f5f4c6024c0ddab69"><td class="memItemLeft" align="right" valign="top">int16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a31ef26b3ee37cf5f5f4c6024c0ddab69">fgets</a> (char *str, int16_t num, char *delim=0)</td></tr>
  141. <tr class="separator:a31ef26b3ee37cf5f5f4c6024c0ddab69"><td class="memSeparator" colspan="2">&#160;</td></tr>
  142. <tr class="memitem:a7e043dfb89d268bfd620bbbadacf1002"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a7e043dfb89d268bfd620bbbadacf1002">fileAttr</a> () const </td></tr>
  143. <tr class="separator:a7e043dfb89d268bfd620bbbadacf1002"><td class="memSeparator" colspan="2">&#160;</td></tr>
  144. <tr class="memitem:a02fc3b3ca36b4745f695f3de8c8ec36d"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a02fc3b3ca36b4745f695f3de8c8ec36d">fileSize</a> () const </td></tr>
  145. <tr class="separator:a02fc3b3ca36b4745f695f3de8c8ec36d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  146. <tr class="memitem:ac87b753811e540c7b799da56fa89724b"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#ac87b753811e540c7b799da56fa89724b">firstBlock</a> ()</td></tr>
  147. <tr class="separator:ac87b753811e540c7b799da56fa89724b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  148. <tr class="memitem:a1057bc23b92a074539f661e896e79a09"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a1057bc23b92a074539f661e896e79a09">firstCluster</a> () const </td></tr>
  149. <tr class="separator:a1057bc23b92a074539f661e896e79a09"><td class="memSeparator" colspan="2">&#160;</td></tr>
  150. <tr class="memitem:ad0dbbd083180f44c7a3ce7124d4ce19c"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#ad0dbbd083180f44c7a3ce7124d4ce19c">getError</a> ()</td></tr>
  151. <tr class="separator:ad0dbbd083180f44c7a3ce7124d4ce19c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  152. <tr class="memitem:aafa565e286440aab612cdb430fc01da5"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#aafa565e286440aab612cdb430fc01da5">getName</a> (char *name, size_t size)</td></tr>
  153. <tr class="separator:aafa565e286440aab612cdb430fc01da5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  154. <tr class="memitem:aaa4f9886887947815a61eaf015996932"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#aaa4f9886887947815a61eaf015996932">getpos</a> (<a class="el" href="struct_fat_pos__t.html">FatPos_t</a> *pos)</td></tr>
  155. <tr class="separator:aaa4f9886887947815a61eaf015996932"><td class="memSeparator" colspan="2">&#160;</td></tr>
  156. <tr class="memitem:aba30e92a66f8e0d2f815c85662772a58"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#aba30e92a66f8e0d2f815c85662772a58">getSFN</a> (char *name)</td></tr>
  157. <tr class="separator:aba30e92a66f8e0d2f815c85662772a58"><td class="memSeparator" colspan="2">&#160;</td></tr>
  158. <tr class="memitem:a8062c0d3a118e8d77d0310418703d5f5"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a8062c0d3a118e8d77d0310418703d5f5">getWriteError</a> ()</td></tr>
  159. <tr class="separator:a8062c0d3a118e8d77d0310418703d5f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  160. <tr class="memitem:aef41d65e0f1ce753d18cc9ed691f7de4"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#aef41d65e0f1ce753d18cc9ed691f7de4">isDir</a> () const </td></tr>
  161. <tr class="separator:aef41d65e0f1ce753d18cc9ed691f7de4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  162. <tr class="memitem:afcf6270ea8d4a3a5f8e89523bc684e22"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#afcf6270ea8d4a3a5f8e89523bc684e22">isFile</a> () const </td></tr>
  163. <tr class="separator:afcf6270ea8d4a3a5f8e89523bc684e22"><td class="memSeparator" colspan="2">&#160;</td></tr>
  164. <tr class="memitem:a7eefe7408f34b6326f0c6e78af7eb05f"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a7eefe7408f34b6326f0c6e78af7eb05f">isHidden</a> () const </td></tr>
  165. <tr class="separator:a7eefe7408f34b6326f0c6e78af7eb05f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  166. <tr class="memitem:aed36d17f8fde597b6ed9446faec1f7e3"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#aed36d17f8fde597b6ed9446faec1f7e3">isLFN</a> () const </td></tr>
  167. <tr class="separator:aed36d17f8fde597b6ed9446faec1f7e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
  168. <tr class="memitem:a4c8a07b081f04aa25839c6f56c739bdc"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a4c8a07b081f04aa25839c6f56c739bdc">isOpen</a> () const </td></tr>
  169. <tr class="separator:a4c8a07b081f04aa25839c6f56c739bdc"><td class="memSeparator" colspan="2">&#160;</td></tr>
  170. <tr class="memitem:a6872d3acb1e70f81c9c2be2495977583"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a6872d3acb1e70f81c9c2be2495977583">isReadOnly</a> () const </td></tr>
  171. <tr class="separator:a6872d3acb1e70f81c9c2be2495977583"><td class="memSeparator" colspan="2">&#160;</td></tr>
  172. <tr class="memitem:aa4a206803a4bf8243be20244c1aef4d2"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#aa4a206803a4bf8243be20244c1aef4d2">isRoot</a> () const </td></tr>
  173. <tr class="separator:aa4a206803a4bf8243be20244c1aef4d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  174. <tr class="memitem:a1449b294e3a838396c62e47674ca8cf0"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a1449b294e3a838396c62e47674ca8cf0">isRoot32</a> () const </td></tr>
  175. <tr class="separator:a1449b294e3a838396c62e47674ca8cf0"><td class="memSeparator" colspan="2">&#160;</td></tr>
  176. <tr class="memitem:a8215bd4b21e11ec83fa88ef226ceb06f"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a8215bd4b21e11ec83fa88ef226ceb06f">isRootFixed</a> () const </td></tr>
  177. <tr class="separator:a8215bd4b21e11ec83fa88ef226ceb06f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  178. <tr class="memitem:a95b503b17442c2b364a2f53de1b2aeba"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a95b503b17442c2b364a2f53de1b2aeba">isSubDir</a> () const </td></tr>
  179. <tr class="separator:a95b503b17442c2b364a2f53de1b2aeba"><td class="memSeparator" colspan="2">&#160;</td></tr>
  180. <tr class="memitem:add932e13e5bf32ad467af6ec34824e3c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#add932e13e5bf32ad467af6ec34824e3c">isSystem</a> () const </td></tr>
  181. <tr class="separator:add932e13e5bf32ad467af6ec34824e3c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  182. <tr class="memitem:ad49f688a494b351ccbb0102dcfafb925"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#ad49f688a494b351ccbb0102dcfafb925">ls</a> (uint8_t flags=0)</td></tr>
  183. <tr class="separator:ad49f688a494b351ccbb0102dcfafb925"><td class="memSeparator" colspan="2">&#160;</td></tr>
  184. <tr class="memitem:acabf31ff85e696fbf384c49428012fea"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#acabf31ff85e696fbf384c49428012fea">ls</a> (<a class="el" href="_fat_volume_8h.html#ac62f6449331cfe1a71f29be30efe7890">print_t</a> *pr, uint8_t flags=0, uint8_t indent=0)</td></tr>
  185. <tr class="separator:acabf31ff85e696fbf384c49428012fea"><td class="memSeparator" colspan="2">&#160;</td></tr>
  186. <tr class="memitem:abab5b9f72cc796388dd4eed01d13d90d"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#abab5b9f72cc796388dd4eed01d13d90d">mkdir</a> (<a class="el" href="class_fat_file.html">FatFile</a> *dir, const char *path, bool pFlag=true)</td></tr>
  187. <tr class="separator:abab5b9f72cc796388dd4eed01d13d90d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  188. <tr class="memitem:a5f64576d3d19177ab3cf3812b69abdfa"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a5f64576d3d19177ab3cf3812b69abdfa">open</a> (<a class="el" href="class_fat_file_system.html">FatFileSystem</a> *fs, const char *path, uint8_t oflag)</td></tr>
  189. <tr class="separator:a5f64576d3d19177ab3cf3812b69abdfa"><td class="memSeparator" colspan="2">&#160;</td></tr>
  190. <tr class="memitem:ad3fa9daaccb4e4179fb88a8ca037aa80"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#ad3fa9daaccb4e4179fb88a8ca037aa80">open</a> (<a class="el" href="class_fat_file.html">FatFile</a> *dirFile, uint16_t index, uint8_t oflag)</td></tr>
  191. <tr class="separator:ad3fa9daaccb4e4179fb88a8ca037aa80"><td class="memSeparator" colspan="2">&#160;</td></tr>
  192. <tr class="memitem:a211be757679b18708f6b6a36464e4f61"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a211be757679b18708f6b6a36464e4f61">open</a> (<a class="el" href="class_fat_file.html">FatFile</a> *dirFile, const char *path, uint8_t oflag)</td></tr>
  193. <tr class="separator:a211be757679b18708f6b6a36464e4f61"><td class="memSeparator" colspan="2">&#160;</td></tr>
  194. <tr class="memitem:ab0e7075062c89f356441f80fc64d03e6"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#ab0e7075062c89f356441f80fc64d03e6">open</a> (const char *path, uint8_t oflag=O_READ)</td></tr>
  195. <tr class="separator:ab0e7075062c89f356441f80fc64d03e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
  196. <tr class="memitem:a8034c4649eb0d26715b1a8a69e73d9d0"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a8034c4649eb0d26715b1a8a69e73d9d0">openNext</a> (<a class="el" href="class_fat_file.html">FatFile</a> *dirFile, uint8_t oflag=O_READ)</td></tr>
  197. <tr class="separator:a8034c4649eb0d26715b1a8a69e73d9d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
  198. <tr class="memitem:a7e0c0548fed3a69e7284b91b694439d4"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a7e0c0548fed3a69e7284b91b694439d4">openRoot</a> (<a class="el" href="class_fat_volume.html">FatVolume</a> *vol)</td></tr>
  199. <tr class="separator:a7e0c0548fed3a69e7284b91b694439d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  200. <tr class="memitem:ac05b7136b887539426856c623869aa3a"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#ac05b7136b887539426856c623869aa3a">peek</a> ()</td></tr>
  201. <tr class="separator:ac05b7136b887539426856c623869aa3a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  202. <tr class="memitem:a558530f20314a8d8ee3d1a488fc7f46e"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a558530f20314a8d8ee3d1a488fc7f46e">printCreateDateTime</a> (<a class="el" href="_fat_volume_8h.html#ac62f6449331cfe1a71f29be30efe7890">print_t</a> *pr)</td></tr>
  203. <tr class="separator:a558530f20314a8d8ee3d1a488fc7f46e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  204. <tr class="memitem:a7478cad0f9e5079311b9e1fa558016ff"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a7478cad0f9e5079311b9e1fa558016ff">printField</a> (float value, char term, uint8_t prec=2)</td></tr>
  205. <tr class="separator:a7478cad0f9e5079311b9e1fa558016ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
  206. <tr class="memitem:abd3e1747511216462b3ef98167156cbb"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#abd3e1747511216462b3ef98167156cbb">printField</a> (int16_t value, char term)</td></tr>
  207. <tr class="separator:abd3e1747511216462b3ef98167156cbb"><td class="memSeparator" colspan="2">&#160;</td></tr>
  208. <tr class="memitem:a9972c2419c293ef9c382bff666b9ae4d"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a9972c2419c293ef9c382bff666b9ae4d">printField</a> (uint16_t value, char term)</td></tr>
  209. <tr class="separator:a9972c2419c293ef9c382bff666b9ae4d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  210. <tr class="memitem:a41b3b32dd8482429b74c7af3432d6cf8"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a41b3b32dd8482429b74c7af3432d6cf8">printField</a> (int32_t value, char term)</td></tr>
  211. <tr class="separator:a41b3b32dd8482429b74c7af3432d6cf8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  212. <tr class="memitem:a097240f08baadeb1c64b63eab9afb088"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a097240f08baadeb1c64b63eab9afb088">printField</a> (uint32_t value, char term)</td></tr>
  213. <tr class="separator:a097240f08baadeb1c64b63eab9afb088"><td class="memSeparator" colspan="2">&#160;</td></tr>
  214. <tr class="memitem:a12a5d2de2737c201aa39ca1bd2ab9c47"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a12a5d2de2737c201aa39ca1bd2ab9c47">printFileSize</a> (<a class="el" href="_fat_volume_8h.html#ac62f6449331cfe1a71f29be30efe7890">print_t</a> *pr)</td></tr>
  215. <tr class="separator:a12a5d2de2737c201aa39ca1bd2ab9c47"><td class="memSeparator" colspan="2">&#160;</td></tr>
  216. <tr class="memitem:a05cee5df46a370bf916d3ba597c82e39"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a05cee5df46a370bf916d3ba597c82e39">printModifyDateTime</a> (<a class="el" href="_fat_volume_8h.html#ac62f6449331cfe1a71f29be30efe7890">print_t</a> *pr)</td></tr>
  217. <tr class="separator:a05cee5df46a370bf916d3ba597c82e39"><td class="memSeparator" colspan="2">&#160;</td></tr>
  218. <tr class="memitem:ad1cbc3aeb0f5193b7a26595966da9621"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#ad1cbc3aeb0f5193b7a26595966da9621">printName</a> ()</td></tr>
  219. <tr class="separator:ad1cbc3aeb0f5193b7a26595966da9621"><td class="memSeparator" colspan="2">&#160;</td></tr>
  220. <tr class="memitem:afe18a787fb8640e2d2483370c770f82f"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#afe18a787fb8640e2d2483370c770f82f">printName</a> (<a class="el" href="_fat_volume_8h.html#ac62f6449331cfe1a71f29be30efe7890">print_t</a> *pr)</td></tr>
  221. <tr class="separator:afe18a787fb8640e2d2483370c770f82f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  222. <tr class="memitem:a791cd7aade71f609aab62ec018aea3c0"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a791cd7aade71f609aab62ec018aea3c0">printSFN</a> (<a class="el" href="_fat_volume_8h.html#ac62f6449331cfe1a71f29be30efe7890">print_t</a> *pr)</td></tr>
  223. <tr class="separator:a791cd7aade71f609aab62ec018aea3c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
  224. <tr class="memitem:a60ae55ff6fe158c2340071d702a363c5"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a60ae55ff6fe158c2340071d702a363c5">read</a> ()</td></tr>
  225. <tr class="separator:a60ae55ff6fe158c2340071d702a363c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  226. <tr class="memitem:a200e6e0553d5b709520c9dfac9ef77dd"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a200e6e0553d5b709520c9dfac9ef77dd">read</a> (void *buf, size_t nbyte)</td></tr>
  227. <tr class="separator:a200e6e0553d5b709520c9dfac9ef77dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
  228. <tr class="memitem:a1325afe074c3efecff666678cd9f116a"><td class="memItemLeft" align="right" valign="top">int8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a1325afe074c3efecff666678cd9f116a">readDir</a> (<a class="el" href="_fat_structs_8h.html#a803db59d4e16a0c54a647afc6a7954e3">dir_t</a> *dir)</td></tr>
  229. <tr class="separator:a1325afe074c3efecff666678cd9f116a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  230. <tr class="memitem:ac837a537fbcca14c7aa390c5fc9f4e7c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#ac837a537fbcca14c7aa390c5fc9f4e7c">remove</a> ()</td></tr>
  231. <tr class="separator:ac837a537fbcca14c7aa390c5fc9f4e7c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  232. <tr class="memitem:a4b42f2454ff462555c07ea094a92a1e0"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a4b42f2454ff462555c07ea094a92a1e0">rename</a> (<a class="el" href="class_fat_file.html">FatFile</a> *dirFile, const char *newPath)</td></tr>
  233. <tr class="separator:a4b42f2454ff462555c07ea094a92a1e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
  234. <tr class="memitem:a5aac6e0b3cb08fc8b8668e916a8b0ca5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a5aac6e0b3cb08fc8b8668e916a8b0ca5">rewind</a> ()</td></tr>
  235. <tr class="separator:a5aac6e0b3cb08fc8b8668e916a8b0ca5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  236. <tr class="memitem:a9515bac181d33e7f0125e88fa2ccd283"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a9515bac181d33e7f0125e88fa2ccd283">rmdir</a> ()</td></tr>
  237. <tr class="separator:a9515bac181d33e7f0125e88fa2ccd283"><td class="memSeparator" colspan="2">&#160;</td></tr>
  238. <tr class="memitem:ac780a80526f86d3def701ecdc99d8bfe"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#ac780a80526f86d3def701ecdc99d8bfe">rmRfStar</a> ()</td></tr>
  239. <tr class="separator:ac780a80526f86d3def701ecdc99d8bfe"><td class="memSeparator" colspan="2">&#160;</td></tr>
  240. <tr class="memitem:a94d44fc448dc8a06867d490100a57781"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_base_file.html#a94d44fc448dc8a06867d490100a57781">SdBaseFile</a> (const char *path, uint8_t oflag)</td></tr>
  241. <tr class="separator:a94d44fc448dc8a06867d490100a57781"><td class="memSeparator" colspan="2">&#160;</td></tr>
  242. <tr class="memitem:a5812037ea30777cc350698ad26f2c73f"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a5812037ea30777cc350698ad26f2c73f">seekCur</a> (int32_t offset)</td></tr>
  243. <tr class="separator:a5812037ea30777cc350698ad26f2c73f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  244. <tr class="memitem:a84f677f4e75ef6fa2eb632f4cdf6b486"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a84f677f4e75ef6fa2eb632f4cdf6b486">seekEnd</a> (int32_t offset=0)</td></tr>
  245. <tr class="separator:a84f677f4e75ef6fa2eb632f4cdf6b486"><td class="memSeparator" colspan="2">&#160;</td></tr>
  246. <tr class="memitem:ab067190d25733ed7e697d9890f61fd7a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#ab067190d25733ed7e697d9890f61fd7a">seekSet</a> (uint32_t pos)</td></tr>
  247. <tr class="separator:ab067190d25733ed7e697d9890f61fd7a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  248. <tr class="memitem:acf264de4e3ca36c5e8a39e56173c9044"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#acf264de4e3ca36c5e8a39e56173c9044">setpos</a> (<a class="el" href="struct_fat_pos__t.html">FatPos_t</a> *pos)</td></tr>
  249. <tr class="separator:acf264de4e3ca36c5e8a39e56173c9044"><td class="memSeparator" colspan="2">&#160;</td></tr>
  250. <tr class="memitem:a67f3dc4896c542d695e11aac927f585e"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a67f3dc4896c542d695e11aac927f585e">sync</a> ()</td></tr>
  251. <tr class="separator:a67f3dc4896c542d695e11aac927f585e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  252. <tr class="memitem:aa53a8d1d2467ad9af7d61cbf8ee85243"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#aa53a8d1d2467ad9af7d61cbf8ee85243">timestamp</a> (<a class="el" href="class_fat_file.html">FatFile</a> *file)</td></tr>
  253. <tr class="separator:aa53a8d1d2467ad9af7d61cbf8ee85243"><td class="memSeparator" colspan="2">&#160;</td></tr>
  254. <tr class="memitem:a56dabdf73833b7e961c4530eb8e16d23"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a56dabdf73833b7e961c4530eb8e16d23">timestamp</a> (uint8_t flags, uint16_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t minute, uint8_t second)</td></tr>
  255. <tr class="separator:a56dabdf73833b7e961c4530eb8e16d23"><td class="memSeparator" colspan="2">&#160;</td></tr>
  256. <tr class="memitem:aa6e663098a578635d37d92e82d18d616"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#aa6e663098a578635d37d92e82d18d616">truncate</a> (uint32_t length)</td></tr>
  257. <tr class="separator:aa6e663098a578635d37d92e82d18d616"><td class="memSeparator" colspan="2">&#160;</td></tr>
  258. <tr class="memitem:a3c64bd8a9abb9a6461d4addb405614df"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_fat_volume.html">FatVolume</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a3c64bd8a9abb9a6461d4addb405614df">volume</a> () const </td></tr>
  259. <tr class="separator:a3c64bd8a9abb9a6461d4addb405614df"><td class="memSeparator" colspan="2">&#160;</td></tr>
  260. <tr class="memitem:aa4a5b81161994cea07938702cdfce49f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#aa4a5b81161994cea07938702cdfce49f">write</a> (const char *str)</td></tr>
  261. <tr class="separator:aa4a5b81161994cea07938702cdfce49f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  262. <tr class="memitem:a5524bd9f3b8f54ee163e391cba618186"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a5524bd9f3b8f54ee163e391cba618186">write</a> (uint8_t b)</td></tr>
  263. <tr class="separator:a5524bd9f3b8f54ee163e391cba618186"><td class="memSeparator" colspan="2">&#160;</td></tr>
  264. <tr class="memitem:a0ab9df44a9ee4b6eb0a78f15f1e30004"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a0ab9df44a9ee4b6eb0a78f15f1e30004">write</a> (const void *buf, size_t nbyte)</td></tr>
  265. <tr class="separator:a0ab9df44a9ee4b6eb0a78f15f1e30004"><td class="memSeparator" colspan="2">&#160;</td></tr>
  266. </table><table class="memberdecls">
  267. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
  268. Static Public Member Functions</h2></td></tr>
  269. <tr class="memitem:a3b68e603ad8e47bad915f0547e580adb"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_fat_file.html">FatFile</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a3b68e603ad8e47bad915f0547e580adb">cwd</a> ()</td></tr>
  270. <tr class="separator:a3b68e603ad8e47bad915f0547e580adb"><td class="memSeparator" colspan="2">&#160;</td></tr>
  271. <tr class="memitem:a29a623f50df057e8b49045ba6611ec2b"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a29a623f50df057e8b49045ba6611ec2b">dateTimeCallback</a> (void(*dateTime)(uint16_t *date, uint16_t *time))</td></tr>
  272. <tr class="separator:a29a623f50df057e8b49045ba6611ec2b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  273. <tr class="memitem:a5df02f1d037e6091375488af25244ebc"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a5df02f1d037e6091375488af25244ebc">dateTimeCallbackCancel</a> ()</td></tr>
  274. <tr class="separator:a5df02f1d037e6091375488af25244ebc"><td class="memSeparator" colspan="2">&#160;</td></tr>
  275. <tr class="memitem:a648461081fe07578780f4cd3f246cb66"><td class="memItemLeft" align="right" valign="top">static uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a648461081fe07578780f4cd3f246cb66">dirName</a> (const <a class="el" href="_fat_structs_8h.html#a803db59d4e16a0c54a647afc6a7954e3">dir_t</a> *dir, char *name)</td></tr>
  276. <tr class="separator:a648461081fe07578780f4cd3f246cb66"><td class="memSeparator" colspan="2">&#160;</td></tr>
  277. <tr class="memitem:a94df8090f16e9666cdc53ca20f6aff90"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a94df8090f16e9666cdc53ca20f6aff90">legal83Char</a> (uint8_t c)</td></tr>
  278. <tr class="separator:a94df8090f16e9666cdc53ca20f6aff90"><td class="memSeparator" colspan="2">&#160;</td></tr>
  279. <tr class="memitem:a8fdb038aafdf3a17ac80b53c063aa73b"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a8fdb038aafdf3a17ac80b53c063aa73b">printFatDate</a> (uint16_t fatDate)</td></tr>
  280. <tr class="separator:a8fdb038aafdf3a17ac80b53c063aa73b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  281. <tr class="memitem:ada5364f66204b1a64afbf9d2e6cd2b0b"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#ada5364f66204b1a64afbf9d2e6cd2b0b">printFatDate</a> (<a class="el" href="_fat_volume_8h.html#ac62f6449331cfe1a71f29be30efe7890">print_t</a> *pr, uint16_t fatDate)</td></tr>
  282. <tr class="separator:ada5364f66204b1a64afbf9d2e6cd2b0b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  283. <tr class="memitem:a7740731f08ef97de7dfbc9b075c4c7d1"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a7740731f08ef97de7dfbc9b075c4c7d1">printFatTime</a> (uint16_t fatTime)</td></tr>
  284. <tr class="separator:a7740731f08ef97de7dfbc9b075c4c7d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  285. <tr class="memitem:a4e7e56ba52ca17c602af1b85684b09a9"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a4e7e56ba52ca17c602af1b85684b09a9">printFatTime</a> (<a class="el" href="_fat_volume_8h.html#ac62f6449331cfe1a71f29be30efe7890">print_t</a> *pr, uint16_t fatTime)</td></tr>
  286. <tr class="separator:a4e7e56ba52ca17c602af1b85684b09a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  287. <tr class="memitem:afe820bbb056863e91ec482961c8dc695"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#afe820bbb056863e91ec482961c8dc695">remove</a> (<a class="el" href="class_fat_file.html">FatFile</a> *dirFile, const char *path)</td></tr>
  288. <tr class="separator:afe820bbb056863e91ec482961c8dc695"><td class="memSeparator" colspan="2">&#160;</td></tr>
  289. <tr class="memitem:a360ef9c05e677271bed6c0a4d663634c"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_fat_file.html#a360ef9c05e677271bed6c0a4d663634c">setCwd</a> (<a class="el" href="class_fat_file.html">FatFile</a> *dir)</td></tr>
  290. <tr class="separator:a360ef9c05e677271bed6c0a4d663634c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  291. </table>
  292. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  293. <div class="textblock"><p>Class for backward compatibility. </p>
  294. </div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
  295. <a class="anchor" id="a94d44fc448dc8a06867d490100a57781"></a>
  296. <div class="memitem">
  297. <div class="memproto">
  298. <table class="mlabels">
  299. <tr>
  300. <td class="mlabels-left">
  301. <table class="memname">
  302. <tr>
  303. <td class="memname">SdBaseFile::SdBaseFile </td>
  304. <td>(</td>
  305. <td class="paramtype">const char *&#160;</td>
  306. <td class="paramname"><em>path</em>, </td>
  307. </tr>
  308. <tr>
  309. <td class="paramkey"></td>
  310. <td></td>
  311. <td class="paramtype">uint8_t&#160;</td>
  312. <td class="paramname"><em>oflag</em>&#160;</td>
  313. </tr>
  314. <tr>
  315. <td></td>
  316. <td>)</td>
  317. <td></td><td></td>
  318. </tr>
  319. </table>
  320. </td>
  321. <td class="mlabels-right">
  322. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  323. </tr>
  324. </table>
  325. </div><div class="memdoc">
  326. <p>Create a file object and open it in the current working directory.</p>
  327. <dl class="params"><dt>Parameters</dt><dd>
  328. <table class="params">
  329. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>A path for a file to be opened.</td></tr>
  330. <tr><td class="paramdir">[in]</td><td class="paramname">oflag</td><td>Values for <em>oflag</em> are constructed by a bitwise-inclusive OR of open flags. see <a class="el" href="class_fat_file.html#a211be757679b18708f6b6a36464e4f61">FatFile::open(FatFile*, const char*, uint8_t)</a>. </td></tr>
  331. </table>
  332. </dd>
  333. </dl>
  334. </div>
  335. </div>
  336. <h2 class="groupheader">Member Function Documentation</h2>
  337. <a class="anchor" id="ac1fa779d98db7ffdb96f8019ab0060d6"></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">uint32_t FatFile::available </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 class="mlabel">inherited</span></span> </td>
  354. </tr>
  355. </table>
  356. </div><div class="memdoc">
  357. <dl class="section return"><dt>Returns</dt><dd>The number of bytes available from the current position to EOF for normal files. Zero is returned for directory files. </dd></dl>
  358. </div>
  359. </div>
  360. <a class="anchor" id="a052e2c15a39b322a5307b693b8835b22"></a>
  361. <div class="memitem">
  362. <div class="memproto">
  363. <table class="mlabels">
  364. <tr>
  365. <td class="mlabels-left">
  366. <table class="memname">
  367. <tr>
  368. <td class="memname">void FatFile::clearError </td>
  369. <td>(</td>
  370. <td class="paramname"></td><td>)</td>
  371. <td></td>
  372. </tr>
  373. </table>
  374. </td>
  375. <td class="mlabels-right">
  376. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  377. </tr>
  378. </table>
  379. </div><div class="memdoc">
  380. <p>Clear all error bits. </p>
  381. </div>
  382. </div>
  383. <a class="anchor" id="aeca2a2eff91e6aa55fe1b0e3860c9a05"></a>
  384. <div class="memitem">
  385. <div class="memproto">
  386. <table class="mlabels">
  387. <tr>
  388. <td class="mlabels-left">
  389. <table class="memname">
  390. <tr>
  391. <td class="memname">void FatFile::clearWriteError </td>
  392. <td>(</td>
  393. <td class="paramname"></td><td>)</td>
  394. <td></td>
  395. </tr>
  396. </table>
  397. </td>
  398. <td class="mlabels-right">
  399. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  400. </tr>
  401. </table>
  402. </div><div class="memdoc">
  403. <p>Set writeError to zero </p>
  404. </div>
  405. </div>
  406. <a class="anchor" id="afd16af325e0642e4bff6430b7d8bb18b"></a>
  407. <div class="memitem">
  408. <div class="memproto">
  409. <table class="mlabels">
  410. <tr>
  411. <td class="mlabels-left">
  412. <table class="memname">
  413. <tr>
  414. <td class="memname">bool FatFile::close </td>
  415. <td>(</td>
  416. <td class="paramname"></td><td>)</td>
  417. <td></td>
  418. </tr>
  419. </table>
  420. </td>
  421. <td class="mlabels-right">
  422. <span class="mlabels"><span class="mlabel">inherited</span></span> </td>
  423. </tr>
  424. </table>
  425. </div><div class="memdoc">
  426. <p>Close a file and force cached data and directory information to be written to the storage device.</p>
  427. <dl class="section return"><dt>Returns</dt><dd>The value true is returned for success and the value false is returned for failure. </dd></dl>
  428. </div>
  429. </div>
  430. <a class="anchor" id="aa367708bcc8bc0e0c45c0c2a812c65da"></a>
  431. <div class="memitem">
  432. <div class="memproto">
  433. <table class="mlabels">
  434. <tr>
  435. <td class="mlabels-left">
  436. <table class="memname">
  437. <tr>
  438. <td class="memname">bool FatFile::contiguousRange </td>
  439. <td>(</td>
  440. <td class="paramtype">uint32_t *&#160;</td>
  441. <td class="paramname"><em>bgnBlock</em>, </td>
  442. </tr>
  443. <tr>
  444. <td class="paramkey"></td>
  445. <td></td>
  446. <td class="paramtype">uint32_t *&#160;</td>
  447. <td class="paramname"><em>endBlock</em>&#160;</td>
  448. </tr>
  449. <tr>
  450. <td></td>
  451. <td>)</td>
  452. <td></td><td></td>
  453. </tr>
  454. </table>
  455. </td>
  456. <td class="mlabels-right">
  457. <span class="mlabels"><span class="mlabel">inherited</span></span> </td>
  458. </tr>
  459. </table>
  460. </div><div class="memdoc">
  461. <p>Check for contiguous file and return its raw block range.</p>
  462. <dl class="params"><dt>Parameters</dt><dd>
  463. <table class="params">
  464. <tr><td class="paramdir">[out]</td><td class="paramname">bgnBlock</td><td>the first block address for the file. </td></tr>
  465. <tr><td class="paramdir">[out]</td><td class="paramname">endBlock</td><td>the last block address for the file.</td></tr>
  466. </table>
  467. </dd>
  468. </dl>
  469. <dl class="section return"><dt>Returns</dt><dd>The value true is returned for success and the value false is returned for failure. </dd></dl>
  470. </div>
  471. </div>
  472. <a class="anchor" id="a0afc2a1cffa238d1cb2049bfa2d8d199"></a>
  473. <div class="memitem">
  474. <div class="memproto">
  475. <table class="mlabels">
  476. <tr>
  477. <td class="mlabels-left">
  478. <table class="memname">
  479. <tr>
  480. <td class="memname">bool FatFile::createContiguous </td>
  481. <td>(</td>
  482. <td class="paramtype"><a class="el" href="class_fat_file.html">FatFile</a> *&#160;</td>
  483. <td class="paramname"><em>dirFile</em>, </td>
  484. </tr>
  485. <tr>
  486. <td class="paramkey"></td>
  487. <td></td>
  488. <td class="paramtype">const char *&#160;</td>
  489. <td class="paramname"><em>path</em>, </td>
  490. </tr>
  491. <tr>
  492. <td class="paramkey"></td>
  493. <td></td>
  494. <td class="paramtype">uint32_t&#160;</td>
  495. <td class="paramname"><em>size</em>&#160;</td>
  496. </tr>
  497. <tr>
  498. <td></td>
  499. <td>)</td>
  500. <td></td><td></td>
  501. </tr>
  502. </table>
  503. </td>
  504. <td class="mlabels-right">
  505. <span class="mlabels"><span class="mlabel">inherited</span></span> </td>
  506. </tr>
  507. </table>
  508. </div><div class="memdoc">
  509. <p>Create and open a new contiguous file of a specified size.</p>
  510. <dl class="params"><dt>Parameters</dt><dd>
  511. <table class="params">
  512. <tr><td class="paramdir">[in]</td><td class="paramname">dirFile</td><td>The directory where the file will be created. </td></tr>
  513. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>A path with a validfile name. </td></tr>
  514. <tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>The desired file size.</td></tr>
  515. </table>
  516. </dd>
  517. </dl>
  518. <dl class="section return"><dt>Returns</dt><dd>The value true is returned for success and the value false, is returned for failure. </dd></dl>
  519. </div>
  520. </div>
  521. <a class="anchor" id="a0853fbd44aee2798d14d8e3aed78f8bf"></a>
  522. <div class="memitem">
  523. <div class="memproto">
  524. <table class="mlabels">
  525. <tr>
  526. <td class="mlabels-left">
  527. <table class="memname">
  528. <tr>
  529. <td class="memname">bool FatFile::createContiguous </td>
  530. <td>(</td>
  531. <td class="paramtype">const char *&#160;</td>
  532. <td class="paramname"><em>path</em>, </td>
  533. </tr>
  534. <tr>
  535. <td class="paramkey"></td>
  536. <td></td>
  537. <td class="paramtype">uint32_t&#160;</td>
  538. <td class="paramname"><em>size</em>&#160;</td>
  539. </tr>
  540. <tr>
  541. <td></td>
  542. <td>)</td>
  543. <td></td><td></td>
  544. </tr>
  545. </table>
  546. </td>
  547. <td class="mlabels-right">
  548. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  549. </tr>
  550. </table>
  551. </div><div class="memdoc">
  552. <p>Create and open a new contiguous file of a specified size.</p>
  553. <dl class="params"><dt>Parameters</dt><dd>
  554. <table class="params">
  555. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>A path with a validfile name. </td></tr>
  556. <tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>The desired file size.</td></tr>
  557. </table>
  558. </dd>
  559. </dl>
  560. <dl class="section return"><dt>Returns</dt><dd>The value true is returned for success and the value false, is returned for failure. </dd></dl>
  561. </div>
  562. </div>
  563. <a class="anchor" id="a4c03e2f6729526786e6ab4a623e0339b"></a>
  564. <div class="memitem">
  565. <div class="memproto">
  566. <table class="mlabels">
  567. <tr>
  568. <td class="mlabels-left">
  569. <table class="memname">
  570. <tr>
  571. <td class="memname">uint32_t FatFile::curCluster </td>
  572. <td>(</td>
  573. <td class="paramname"></td><td>)</td>
  574. <td> const</td>
  575. </tr>
  576. </table>
  577. </td>
  578. <td class="mlabels-right">
  579. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  580. </tr>
  581. </table>
  582. </div><div class="memdoc">
  583. <dl class="section return"><dt>Returns</dt><dd>The current cluster number for a file or directory. </dd></dl>
  584. </div>
  585. </div>
  586. <a class="anchor" id="a20c55b134bfd1d287a00bf64eba9332e"></a>
  587. <div class="memitem">
  588. <div class="memproto">
  589. <table class="mlabels">
  590. <tr>
  591. <td class="mlabels-left">
  592. <table class="memname">
  593. <tr>
  594. <td class="memname">uint32_t FatFile::curPosition </td>
  595. <td>(</td>
  596. <td class="paramname"></td><td>)</td>
  597. <td> const</td>
  598. </tr>
  599. </table>
  600. </td>
  601. <td class="mlabels-right">
  602. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  603. </tr>
  604. </table>
  605. </div><div class="memdoc">
  606. <dl class="section return"><dt>Returns</dt><dd>The current position for a file or directory. </dd></dl>
  607. </div>
  608. </div>
  609. <a class="anchor" id="a3b68e603ad8e47bad915f0547e580adb"></a>
  610. <div class="memitem">
  611. <div class="memproto">
  612. <table class="mlabels">
  613. <tr>
  614. <td class="mlabels-left">
  615. <table class="memname">
  616. <tr>
  617. <td class="memname">static <a class="el" href="class_fat_file.html">FatFile</a>* FatFile::cwd </td>
  618. <td>(</td>
  619. <td class="paramname"></td><td>)</td>
  620. <td></td>
  621. </tr>
  622. </table>
  623. </td>
  624. <td class="mlabels-right">
  625. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span><span class="mlabel">inherited</span></span> </td>
  626. </tr>
  627. </table>
  628. </div><div class="memdoc">
  629. <dl class="section return"><dt>Returns</dt><dd>Current working directory </dd></dl>
  630. </div>
  631. </div>
  632. <a class="anchor" id="a29a623f50df057e8b49045ba6611ec2b"></a>
  633. <div class="memitem">
  634. <div class="memproto">
  635. <table class="mlabels">
  636. <tr>
  637. <td class="mlabels-left">
  638. <table class="memname">
  639. <tr>
  640. <td class="memname">static void FatFile::dateTimeCallback </td>
  641. <td>(</td>
  642. <td class="paramtype">void(*)(uint16_t *date, uint16_t *time)&#160;</td>
  643. <td class="paramname"><em>dateTime</em></td><td>)</td>
  644. <td></td>
  645. </tr>
  646. </table>
  647. </td>
  648. <td class="mlabels-right">
  649. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span><span class="mlabel">inherited</span></span> </td>
  650. </tr>
  651. </table>
  652. </div><div class="memdoc">
  653. <p>Set the date/time callback function</p>
  654. <dl class="params"><dt>Parameters</dt><dd>
  655. <table class="params">
  656. <tr><td class="paramdir">[in]</td><td class="paramname">dateTime</td><td>The user's call back function. The callback function is of the form:</td></tr>
  657. </table>
  658. </dd>
  659. </dl>
  660. <div class="fragment"><div class="line"><span class="keywordtype">void</span> dateTime(uint16_t* date, uint16_t* time) {</div>
  661. <div class="line"> uint16_t year;</div>
  662. <div class="line"> uint8_t month, day, hour, minute, second;</div>
  663. <div class="line"></div>
  664. <div class="line"> <span class="comment">// User gets date and time from GPS or real-time clock here</span></div>
  665. <div class="line"></div>
  666. <div class="line"> <span class="comment">// return date using FAT_DATE macro to format fields</span></div>
  667. <div class="line"> *date = <a class="code" href="_fat_structs_8h.html#a44899ad42ddf32ff1c1a73b5251b304a">FAT_DATE</a>(year, month, day);</div>
  668. <div class="line"></div>
  669. <div class="line"> <span class="comment">// return time using FAT_TIME macro to format fields</span></div>
  670. <div class="line"> *time = <a class="code" href="_fat_structs_8h.html#a375720927be5a39475d48b2d75dae29a">FAT_TIME</a>(hour, minute, second);</div>
  671. <div class="line">}</div>
  672. </div><!-- fragment --><p>Sets the function that is called when a file is created or when a file's directory entry is modified by <a class="el" href="class_fat_file.html#a67f3dc4896c542d695e11aac927f585e">sync()</a>. All timestamps, access, creation, and modify, are set when a file is created. <a class="el" href="class_fat_file.html#a67f3dc4896c542d695e11aac927f585e">sync()</a> maintains the last access date and last modify date/time.</p>
  673. <p>See the <a class="el" href="class_fat_file.html#aa53a8d1d2467ad9af7d61cbf8ee85243">timestamp()</a> function. </p>
  674. </div>
  675. </div>
  676. <a class="anchor" id="a5df02f1d037e6091375488af25244ebc"></a>
  677. <div class="memitem">
  678. <div class="memproto">
  679. <table class="mlabels">
  680. <tr>
  681. <td class="mlabels-left">
  682. <table class="memname">
  683. <tr>
  684. <td class="memname">static void FatFile::dateTimeCallbackCancel </td>
  685. <td>(</td>
  686. <td class="paramname"></td><td>)</td>
  687. <td></td>
  688. </tr>
  689. </table>
  690. </td>
  691. <td class="mlabels-right">
  692. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span><span class="mlabel">inherited</span></span> </td>
  693. </tr>
  694. </table>
  695. </div><div class="memdoc">
  696. <p>Cancel the date/time callback function. </p>
  697. </div>
  698. </div>
  699. <a class="anchor" id="a6858d18c807411a071fd6d1b39d50087"></a>
  700. <div class="memitem">
  701. <div class="memproto">
  702. <table class="mlabels">
  703. <tr>
  704. <td class="mlabels-left">
  705. <table class="memname">
  706. <tr>
  707. <td class="memname">bool FatFile::dirEntry </td>
  708. <td>(</td>
  709. <td class="paramtype"><a class="el" href="_fat_structs_8h.html#a803db59d4e16a0c54a647afc6a7954e3">dir_t</a> *&#160;</td>
  710. <td class="paramname"><em>dir</em></td><td>)</td>
  711. <td></td>
  712. </tr>
  713. </table>
  714. </td>
  715. <td class="mlabels-right">
  716. <span class="mlabels"><span class="mlabel">inherited</span></span> </td>
  717. </tr>
  718. </table>
  719. </div><div class="memdoc">
  720. <p>Return a file's directory entry.</p>
  721. <dl class="params"><dt>Parameters</dt><dd>
  722. <table class="params">
  723. <tr><td class="paramdir">[out]</td><td class="paramname">dir</td><td>Location for return of the file's directory entry.</td></tr>
  724. </table>
  725. </dd>
  726. </dl>
  727. <dl class="section return"><dt>Returns</dt><dd>The value true is returned for success and the value false is returned for failure. </dd></dl>
  728. </div>
  729. </div>
  730. <a class="anchor" id="ae5ec24d4a94d3780384d3f2b731c7eb9"></a>
  731. <div class="memitem">
  732. <div class="memproto">
  733. <table class="mlabels">
  734. <tr>
  735. <td class="mlabels-left">
  736. <table class="memname">
  737. <tr>
  738. <td class="memname">uint16_t FatFile::dirIndex </td>
  739. <td>(</td>
  740. <td class="paramname"></td><td>)</td>
  741. <td></td>
  742. </tr>
  743. </table>
  744. </td>
  745. <td class="mlabels-right">
  746. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  747. </tr>
  748. </table>
  749. </div><div class="memdoc">
  750. <dl class="section return"><dt>Returns</dt><dd>The index of this file in it's directory. </dd></dl>
  751. </div>
  752. </div>
  753. <a class="anchor" id="a648461081fe07578780f4cd3f246cb66"></a>
  754. <div class="memitem">
  755. <div class="memproto">
  756. <table class="mlabels">
  757. <tr>
  758. <td class="mlabels-left">
  759. <table class="memname">
  760. <tr>
  761. <td class="memname">uint8_t FatFile::dirName </td>
  762. <td>(</td>
  763. <td class="paramtype">const <a class="el" href="_fat_structs_8h.html#a803db59d4e16a0c54a647afc6a7954e3">dir_t</a> *&#160;</td>
  764. <td class="paramname"><em>dir</em>, </td>
  765. </tr>
  766. <tr>
  767. <td class="paramkey"></td>
  768. <td></td>
  769. <td class="paramtype">char *&#160;</td>
  770. <td class="paramname"><em>name</em>&#160;</td>
  771. </tr>
  772. <tr>
  773. <td></td>
  774. <td>)</td>
  775. <td></td><td></td>
  776. </tr>
  777. </table>
  778. </td>
  779. <td class="mlabels-right">
  780. <span class="mlabels"><span class="mlabel">static</span><span class="mlabel">inherited</span></span> </td>
  781. </tr>
  782. </table>
  783. </div><div class="memdoc">
  784. <p>Format the name field of <em>dir</em> into the 13 byte array <em>name</em> in standard 8.3 short name format.</p>
  785. <dl class="params"><dt>Parameters</dt><dd>
  786. <table class="params">
  787. <tr><td class="paramdir">[in]</td><td class="paramname">dir</td><td>The directory structure containing the name. </td></tr>
  788. <tr><td class="paramdir">[out]</td><td class="paramname">name</td><td>A 13 byte char array for the formatted name. </td></tr>
  789. </table>
  790. </dd>
  791. </dl>
  792. <dl class="section return"><dt>Returns</dt><dd>length of the name. </dd></dl>
  793. </div>
  794. </div>
  795. <a class="anchor" id="ae2ed15f05c9ccbce355e7a8d3ce8382d"></a>
  796. <div class="memitem">
  797. <div class="memproto">
  798. <table class="mlabels">
  799. <tr>
  800. <td class="mlabels-left">
  801. <table class="memname">
  802. <tr>
  803. <td class="memname">uint32_t FatFile::dirSize </td>
  804. <td>(</td>
  805. <td class="paramname"></td><td>)</td>
  806. <td></td>
  807. </tr>
  808. </table>
  809. </td>
  810. <td class="mlabels-right">
  811. <span class="mlabels"><span class="mlabel">inherited</span></span> </td>
  812. </tr>
  813. </table>
  814. </div><div class="memdoc">
  815. <dl class="section return"><dt>Returns</dt><dd>The number of bytes allocated to a directory or zero if an error occurs. </dd></dl>
  816. </div>
  817. </div>
  818. <a class="anchor" id="a4f01d27954ae49aeb6888ac7302f55d9"></a>
  819. <div class="memitem">
  820. <div class="memproto">
  821. <table class="mlabels">
  822. <tr>
  823. <td class="mlabels-left">
  824. <table class="memname">
  825. <tr>
  826. <td class="memname">void FatFile::dmpFile </td>
  827. <td>(</td>
  828. <td class="paramtype"><a class="el" href="_fat_volume_8h.html#ac62f6449331cfe1a71f29be30efe7890">print_t</a> *&#160;</td>
  829. <td class="paramname"><em>pr</em>, </td>
  830. </tr>
  831. <tr>
  832. <td class="paramkey"></td>
  833. <td></td>
  834. <td class="paramtype">uint32_t&#160;</td>
  835. <td class="paramname"><em>pos</em>, </td>
  836. </tr>
  837. <tr>
  838. <td class="paramkey"></td>
  839. <td></td>
  840. <td class="paramtype">size_t&#160;</td>
  841. <td class="paramname"><em>n</em>&#160;</td>
  842. </tr>
  843. <tr>
  844. <td></td>
  845. <td>)</td>
  846. <td></td><td></td>
  847. </tr>
  848. </table>
  849. </td>
  850. <td class="mlabels-right">
  851. <span class="mlabels"><span class="mlabel">inherited</span></span> </td>
  852. </tr>
  853. </table>
  854. </div><div class="memdoc">
  855. <p>Dump file in Hex </p><dl class="params"><dt>Parameters</dt><dd>
  856. <table class="params">
  857. <tr><td class="paramdir">[in]</td><td class="paramname">pr</td><td>Print stream for list. </td></tr>
  858. <tr><td class="paramdir">[in]</td><td class="paramname">pos</td><td>Start position in file. </td></tr>
  859. <tr><td class="paramdir">[in]</td><td class="paramname">n</td><td>number of locations to dump. </td></tr>
  860. </table>
  861. </dd>
  862. </dl>
  863. </div>
  864. </div>
  865. <a class="anchor" id="a50242f98dea0d4488ce4039a279f2a57"></a>
  866. <div class="memitem">
  867. <div class="memproto">
  868. <table class="mlabels">
  869. <tr>
  870. <td class="mlabels-left">
  871. <table class="memname">
  872. <tr>
  873. <td class="memname">bool FatFile::exists </td>
  874. <td>(</td>
  875. <td class="paramtype">const char *&#160;</td>
  876. <td class="paramname"><em>path</em></td><td>)</td>
  877. <td></td>
  878. </tr>
  879. </table>
  880. </td>
  881. <td class="mlabels-right">
  882. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  883. </tr>
  884. </table>
  885. </div><div class="memdoc">
  886. <p>Test for the existence of a file in a directory</p>
  887. <dl class="params"><dt>Parameters</dt><dd>
  888. <table class="params">
  889. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>Path of the file to be tested for.</td></tr>
  890. </table>
  891. </dd>
  892. </dl>
  893. <p>The calling instance must be an open directory file.</p>
  894. <p>dirFile.exists("TOFIND.TXT") searches for "TOFIND.TXT" in the directory dirFile.</p>
  895. <dl class="section return"><dt>Returns</dt><dd>true if the file exists else false. </dd></dl>
  896. </div>
  897. </div>
  898. <a class="anchor" id="a31ef26b3ee37cf5f5f4c6024c0ddab69"></a>
  899. <div class="memitem">
  900. <div class="memproto">
  901. <table class="mlabels">
  902. <tr>
  903. <td class="mlabels-left">
  904. <table class="memname">
  905. <tr>
  906. <td class="memname">int16_t FatFile::fgets </td>
  907. <td>(</td>
  908. <td class="paramtype">char *&#160;</td>
  909. <td class="paramname"><em>str</em>, </td>
  910. </tr>
  911. <tr>
  912. <td class="paramkey"></td>
  913. <td></td>
  914. <td class="paramtype">int16_t&#160;</td>
  915. <td class="paramname"><em>num</em>, </td>
  916. </tr>
  917. <tr>
  918. <td class="paramkey"></td>
  919. <td></td>
  920. <td class="paramtype">char *&#160;</td>
  921. <td class="paramname"><em>delim</em> = <code>0</code>&#160;</td>
  922. </tr>
  923. <tr>
  924. <td></td>
  925. <td>)</td>
  926. <td></td><td></td>
  927. </tr>
  928. </table>
  929. </td>
  930. <td class="mlabels-right">
  931. <span class="mlabels"><span class="mlabel">inherited</span></span> </td>
  932. </tr>
  933. </table>
  934. </div><div class="memdoc">
  935. <p>Get a string from a file.</p>
  936. <p><a class="el" href="class_fat_file.html#a31ef26b3ee37cf5f5f4c6024c0ddab69">fgets()</a> reads bytes from a file into the array pointed to by <em>str</em>, until <em>num</em> - 1 bytes are read, or a delimiter is read and transferred to <em>str</em>, or end-of-file is encountered. The string is then terminated with a null byte.</p>
  937. <p><a class="el" href="class_fat_file.html#a31ef26b3ee37cf5f5f4c6024c0ddab69">fgets()</a> deletes CR, '\r', from the string. This insures only a '\n' terminates the string for Windows text files which use CRLF for newline.</p>
  938. <dl class="params"><dt>Parameters</dt><dd>
  939. <table class="params">
  940. <tr><td class="paramdir">[out]</td><td class="paramname">str</td><td>Pointer to the array where the string is stored. </td></tr>
  941. <tr><td class="paramdir">[in]</td><td class="paramname">num</td><td>Maximum number of characters to be read (including the final null byte). Usually the length of the array <em>str</em> is used. </td></tr>
  942. <tr><td class="paramdir">[in]</td><td class="paramname">delim</td><td>Optional set of delimiters. The default is "\n".</td></tr>
  943. </table>
  944. </dd>
  945. </dl>
  946. <dl class="section return"><dt>Returns</dt><dd>For success <a class="el" href="class_fat_file.html#a31ef26b3ee37cf5f5f4c6024c0ddab69">fgets()</a> returns the length of the string in <em>str</em>. If no data is read, <a class="el" href="class_fat_file.html#a31ef26b3ee37cf5f5f4c6024c0ddab69">fgets()</a> returns zero for EOF or -1 if an error occurred. </dd></dl>
  947. </div>
  948. </div>
  949. <a class="anchor" id="a7e043dfb89d268bfd620bbbadacf1002"></a>
  950. <div class="memitem">
  951. <div class="memproto">
  952. <table class="mlabels">
  953. <tr>
  954. <td class="mlabels-left">
  955. <table class="memname">
  956. <tr>
  957. <td class="memname">uint8_t FatFile::fileAttr </td>
  958. <td>(</td>
  959. <td class="paramname"></td><td>)</td>
  960. <td> const</td>
  961. </tr>
  962. </table>
  963. </td>
  964. <td class="mlabels-right">
  965. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  966. </tr>
  967. </table>
  968. </div><div class="memdoc">
  969. <p>Type of file. You should use <a class="el" href="class_fat_file.html#afcf6270ea8d4a3a5f8e89523bc684e22">isFile()</a> or <a class="el" href="class_fat_file.html#aef41d65e0f1ce753d18cc9ed691f7de4">isDir()</a> instead of fileType() if possible.</p>
  970. <dl class="section return"><dt>Returns</dt><dd>The file or directory type. </dd></dl>
  971. </div>
  972. </div>
  973. <a class="anchor" id="a02fc3b3ca36b4745f695f3de8c8ec36d"></a>
  974. <div class="memitem">
  975. <div class="memproto">
  976. <table class="mlabels">
  977. <tr>
  978. <td class="mlabels-left">
  979. <table class="memname">
  980. <tr>
  981. <td class="memname">uint32_t FatFile::fileSize </td>
  982. <td>(</td>
  983. <td class="paramname"></td><td>)</td>
  984. <td> const</td>
  985. </tr>
  986. </table>
  987. </td>
  988. <td class="mlabels-right">
  989. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  990. </tr>
  991. </table>
  992. </div><div class="memdoc">
  993. <dl class="section return"><dt>Returns</dt><dd>The total number of bytes in a file. </dd></dl>
  994. </div>
  995. </div>
  996. <a class="anchor" id="ac87b753811e540c7b799da56fa89724b"></a>
  997. <div class="memitem">
  998. <div class="memproto">
  999. <table class="mlabels">
  1000. <tr>
  1001. <td class="mlabels-left">
  1002. <table class="memname">
  1003. <tr>
  1004. <td class="memname">uint32_t FatFile::firstBlock </td>
  1005. <td>(</td>
  1006. <td class="paramname"></td><td>)</td>
  1007. <td></td>
  1008. </tr>
  1009. </table>
  1010. </td>
  1011. <td class="mlabels-right">
  1012. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  1013. </tr>
  1014. </table>
  1015. </div><div class="memdoc">
  1016. <dl class="section return"><dt>Returns</dt><dd>first block of file or zero for empty file. </dd></dl>
  1017. </div>
  1018. </div>
  1019. <a class="anchor" id="a1057bc23b92a074539f661e896e79a09"></a>
  1020. <div class="memitem">
  1021. <div class="memproto">
  1022. <table class="mlabels">
  1023. <tr>
  1024. <td class="mlabels-left">
  1025. <table class="memname">
  1026. <tr>
  1027. <td class="memname">uint32_t FatFile::firstCluster </td>
  1028. <td>(</td>
  1029. <td class="paramname"></td><td>)</td>
  1030. <td> const</td>
  1031. </tr>
  1032. </table>
  1033. </td>
  1034. <td class="mlabels-right">
  1035. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  1036. </tr>
  1037. </table>
  1038. </div><div class="memdoc">
  1039. <dl class="section return"><dt>Returns</dt><dd>The first cluster number for a file or directory. </dd></dl>
  1040. </div>
  1041. </div>
  1042. <a class="anchor" id="ad0dbbd083180f44c7a3ce7124d4ce19c"></a>
  1043. <div class="memitem">
  1044. <div class="memproto">
  1045. <table class="mlabels">
  1046. <tr>
  1047. <td class="mlabels-left">
  1048. <table class="memname">
  1049. <tr>
  1050. <td class="memname">uint8_t FatFile::getError </td>
  1051. <td>(</td>
  1052. <td class="paramname"></td><td>)</td>
  1053. <td></td>
  1054. </tr>
  1055. </table>
  1056. </td>
  1057. <td class="mlabels-right">
  1058. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  1059. </tr>
  1060. </table>
  1061. </div><div class="memdoc">
  1062. <dl class="section return"><dt>Returns</dt><dd>All error bits. </dd></dl>
  1063. </div>
  1064. </div>
  1065. <a class="anchor" id="aafa565e286440aab612cdb430fc01da5"></a>
  1066. <div class="memitem">
  1067. <div class="memproto">
  1068. <table class="mlabels">
  1069. <tr>
  1070. <td class="mlabels-left">
  1071. <table class="memname">
  1072. <tr>
  1073. <td class="memname">bool FatFile::getName </td>
  1074. <td>(</td>
  1075. <td class="paramtype">char *&#160;</td>
  1076. <td class="paramname"><em>name</em>, </td>
  1077. </tr>
  1078. <tr>
  1079. <td class="paramkey"></td>
  1080. <td></td>
  1081. <td class="paramtype">size_t&#160;</td>
  1082. <td class="paramname"><em>size</em>&#160;</td>
  1083. </tr>
  1084. <tr>
  1085. <td></td>
  1086. <td>)</td>
  1087. <td></td><td></td>
  1088. </tr>
  1089. </table>
  1090. </td>
  1091. <td class="mlabels-right">
  1092. <span class="mlabels"><span class="mlabel">inherited</span></span> </td>
  1093. </tr>
  1094. </table>
  1095. </div><div class="memdoc">
  1096. <p>Get a file's name followed by a zero byte.</p>
  1097. <dl class="params"><dt>Parameters</dt><dd>
  1098. <table class="params">
  1099. <tr><td class="paramdir">[out]</td><td class="paramname">name</td><td>An array of characters for the file's name. </td></tr>
  1100. <tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>The size of the array in bytes. The array must be at least 13 bytes long. The file's name will be truncated if the file's name is too long. </td></tr>
  1101. </table>
  1102. </dd>
  1103. </dl>
  1104. <dl class="section return"><dt>Returns</dt><dd>The value true, is returned for success and the value false, is returned for failure. </dd></dl>
  1105. </div>
  1106. </div>
  1107. <a class="anchor" id="aaa4f9886887947815a61eaf015996932"></a>
  1108. <div class="memitem">
  1109. <div class="memproto">
  1110. <table class="mlabels">
  1111. <tr>
  1112. <td class="mlabels-left">
  1113. <table class="memname">
  1114. <tr>
  1115. <td class="memname">void FatFile::getpos </td>
  1116. <td>(</td>
  1117. <td class="paramtype"><a class="el" href="struct_fat_pos__t.html">FatPos_t</a> *&#160;</td>
  1118. <td class="paramname"><em>pos</em></td><td>)</td>
  1119. <td></td>
  1120. </tr>
  1121. </table>
  1122. </td>
  1123. <td class="mlabels-right">
  1124. <span class="mlabels"><span class="mlabel">inherited</span></span> </td>
  1125. </tr>
  1126. </table>
  1127. </div><div class="memdoc">
  1128. <p>get position for streams </p><dl class="params"><dt>Parameters</dt><dd>
  1129. <table class="params">
  1130. <tr><td class="paramdir">[out]</td><td class="paramname">pos</td><td>struct to receive position </td></tr>
  1131. </table>
  1132. </dd>
  1133. </dl>
  1134. </div>
  1135. </div>
  1136. <a class="anchor" id="aba30e92a66f8e0d2f815c85662772a58"></a>
  1137. <div class="memitem">
  1138. <div class="memproto">
  1139. <table class="mlabels">
  1140. <tr>
  1141. <td class="mlabels-left">
  1142. <table class="memname">
  1143. <tr>
  1144. <td class="memname">bool FatFile::getSFN </td>
  1145. <td>(</td>
  1146. <td class="paramtype">char *&#160;</td>
  1147. <td class="paramname"><em>name</em></td><td>)</td>
  1148. <td></td>
  1149. </tr>
  1150. </table>
  1151. </td>
  1152. <td class="mlabels-right">
  1153. <span class="mlabels"><span class="mlabel">inherited</span></span> </td>
  1154. </tr>
  1155. </table>
  1156. </div><div class="memdoc">
  1157. <p>Get a file's Short <a class="el" href="class_file.html" title="Arduino SD.h style File API. ">File</a> Name followed by a zero byte.</p>
  1158. <dl class="params"><dt>Parameters</dt><dd>
  1159. <table class="params">
  1160. <tr><td class="paramdir">[out]</td><td class="paramname">name</td><td>An array of characters for the file's name. The array must be at least 13 bytes long. </td></tr>
  1161. </table>
  1162. </dd>
  1163. </dl>
  1164. <dl class="section return"><dt>Returns</dt><dd>The value true, is returned for success and the value false, is returned for failure. </dd></dl>
  1165. </div>
  1166. </div>
  1167. <a class="anchor" id="a8062c0d3a118e8d77d0310418703d5f5"></a>
  1168. <div class="memitem">
  1169. <div class="memproto">
  1170. <table class="mlabels">
  1171. <tr>
  1172. <td class="mlabels-left">
  1173. <table class="memname">
  1174. <tr>
  1175. <td class="memname">bool FatFile::getWriteError </td>
  1176. <td>(</td>
  1177. <td class="paramname"></td><td>)</td>
  1178. <td></td>
  1179. </tr>
  1180. </table>
  1181. </td>
  1182. <td class="mlabels-right">
  1183. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  1184. </tr>
  1185. </table>
  1186. </div><div class="memdoc">
  1187. <dl class="section return"><dt>Returns</dt><dd>value of writeError </dd></dl>
  1188. </div>
  1189. </div>
  1190. <a class="anchor" id="aef41d65e0f1ce753d18cc9ed691f7de4"></a>
  1191. <div class="memitem">
  1192. <div class="memproto">
  1193. <table class="mlabels">
  1194. <tr>
  1195. <td class="mlabels-left">
  1196. <table class="memname">
  1197. <tr>
  1198. <td class="memname">bool FatFile::isDir </td>
  1199. <td>(</td>
  1200. <td class="paramname"></td><td>)</td>
  1201. <td> const</td>
  1202. </tr>
  1203. </table>
  1204. </td>
  1205. <td class="mlabels-right">
  1206. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  1207. </tr>
  1208. </table>
  1209. </div><div class="memdoc">
  1210. <dl class="section return"><dt>Returns</dt><dd>True if this is a directory else false. </dd></dl>
  1211. </div>
  1212. </div>
  1213. <a class="anchor" id="afcf6270ea8d4a3a5f8e89523bc684e22"></a>
  1214. <div class="memitem">
  1215. <div class="memproto">
  1216. <table class="mlabels">
  1217. <tr>
  1218. <td class="mlabels-left">
  1219. <table class="memname">
  1220. <tr>
  1221. <td class="memname">bool FatFile::isFile </td>
  1222. <td>(</td>
  1223. <td class="paramname"></td><td>)</td>
  1224. <td> const</td>
  1225. </tr>
  1226. </table>
  1227. </td>
  1228. <td class="mlabels-right">
  1229. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  1230. </tr>
  1231. </table>
  1232. </div><div class="memdoc">
  1233. <dl class="section return"><dt>Returns</dt><dd>True if this is a normal file else false. </dd></dl>
  1234. </div>
  1235. </div>
  1236. <a class="anchor" id="a7eefe7408f34b6326f0c6e78af7eb05f"></a>
  1237. <div class="memitem">
  1238. <div class="memproto">
  1239. <table class="mlabels">
  1240. <tr>
  1241. <td class="mlabels-left">
  1242. <table class="memname">
  1243. <tr>
  1244. <td class="memname">bool FatFile::isHidden </td>
  1245. <td>(</td>
  1246. <td class="paramname"></td><td>)</td>
  1247. <td> const</td>
  1248. </tr>
  1249. </table>
  1250. </td>
  1251. <td class="mlabels-right">
  1252. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  1253. </tr>
  1254. </table>
  1255. </div><div class="memdoc">
  1256. <dl class="section return"><dt>Returns</dt><dd>True if this is a hidden file else false. </dd></dl>
  1257. </div>
  1258. </div>
  1259. <a class="anchor" id="aed36d17f8fde597b6ed9446faec1f7e3"></a>
  1260. <div class="memitem">
  1261. <div class="memproto">
  1262. <table class="mlabels">
  1263. <tr>
  1264. <td class="mlabels-left">
  1265. <table class="memname">
  1266. <tr>
  1267. <td class="memname">bool FatFile::isLFN </td>
  1268. <td>(</td>
  1269. <td class="paramname"></td><td>)</td>
  1270. <td> const</td>
  1271. </tr>
  1272. </table>
  1273. </td>
  1274. <td class="mlabels-right">
  1275. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  1276. </tr>
  1277. </table>
  1278. </div><div class="memdoc">
  1279. <dl class="section return"><dt>Returns</dt><dd>true if this file has a Long <a class="el" href="class_file.html" title="Arduino SD.h style File API. ">File</a> Name. </dd></dl>
  1280. </div>
  1281. </div>
  1282. <a class="anchor" id="a4c8a07b081f04aa25839c6f56c739bdc"></a>
  1283. <div class="memitem">
  1284. <div class="memproto">
  1285. <table class="mlabels">
  1286. <tr>
  1287. <td class="mlabels-left">
  1288. <table class="memname">
  1289. <tr>
  1290. <td class="memname">bool FatFile::isOpen </td>
  1291. <td>(</td>
  1292. <td class="paramname"></td><td>)</td>
  1293. <td> const</td>
  1294. </tr>
  1295. </table>
  1296. </td>
  1297. <td class="mlabels-right">
  1298. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  1299. </tr>
  1300. </table>
  1301. </div><div class="memdoc">
  1302. <dl class="section return"><dt>Returns</dt><dd>True if this is an open file/directory else false. </dd></dl>
  1303. </div>
  1304. </div>
  1305. <a class="anchor" id="a6872d3acb1e70f81c9c2be2495977583"></a>
  1306. <div class="memitem">
  1307. <div class="memproto">
  1308. <table class="mlabels">
  1309. <tr>
  1310. <td class="mlabels-left">
  1311. <table class="memname">
  1312. <tr>
  1313. <td class="memname">bool FatFile::isReadOnly </td>
  1314. <td>(</td>
  1315. <td class="paramname"></td><td>)</td>
  1316. <td> const</td>
  1317. </tr>
  1318. </table>
  1319. </td>
  1320. <td class="mlabels-right">
  1321. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  1322. </tr>
  1323. </table>
  1324. </div><div class="memdoc">
  1325. <dl class="section return"><dt>Returns</dt><dd>True if file is read-only </dd></dl>
  1326. </div>
  1327. </div>
  1328. <a class="anchor" id="aa4a206803a4bf8243be20244c1aef4d2"></a>
  1329. <div class="memitem">
  1330. <div class="memproto">
  1331. <table class="mlabels">
  1332. <tr>
  1333. <td class="mlabels-left">
  1334. <table class="memname">
  1335. <tr>
  1336. <td class="memname">bool FatFile::isRoot </td>
  1337. <td>(</td>
  1338. <td class="paramname"></td><td>)</td>
  1339. <td> const</td>
  1340. </tr>
  1341. </table>
  1342. </td>
  1343. <td class="mlabels-right">
  1344. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  1345. </tr>
  1346. </table>
  1347. </div><div class="memdoc">
  1348. <dl class="section return"><dt>Returns</dt><dd>True if this is the root directory. </dd></dl>
  1349. </div>
  1350. </div>
  1351. <a class="anchor" id="a1449b294e3a838396c62e47674ca8cf0"></a>
  1352. <div class="memitem">
  1353. <div class="memproto">
  1354. <table class="mlabels">
  1355. <tr>
  1356. <td class="mlabels-left">
  1357. <table class="memname">
  1358. <tr>
  1359. <td class="memname">bool FatFile::isRoot32 </td>
  1360. <td>(</td>
  1361. <td class="paramname"></td><td>)</td>
  1362. <td> const</td>
  1363. </tr>
  1364. </table>
  1365. </td>
  1366. <td class="mlabels-right">
  1367. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  1368. </tr>
  1369. </table>
  1370. </div><div class="memdoc">
  1371. <dl class="section return"><dt>Returns</dt><dd>True if this is the FAT32 root directory. </dd></dl>
  1372. </div>
  1373. </div>
  1374. <a class="anchor" id="a8215bd4b21e11ec83fa88ef226ceb06f"></a>
  1375. <div class="memitem">
  1376. <div class="memproto">
  1377. <table class="mlabels">
  1378. <tr>
  1379. <td class="mlabels-left">
  1380. <table class="memname">
  1381. <tr>
  1382. <td class="memname">bool FatFile::isRootFixed </td>
  1383. <td>(</td>
  1384. <td class="paramname"></td><td>)</td>
  1385. <td> const</td>
  1386. </tr>
  1387. </table>
  1388. </td>
  1389. <td class="mlabels-right">
  1390. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  1391. </tr>
  1392. </table>
  1393. </div><div class="memdoc">
  1394. <dl class="section return"><dt>Returns</dt><dd>True if this is the FAT12 of FAT16 root directory. </dd></dl>
  1395. </div>
  1396. </div>
  1397. <a class="anchor" id="a95b503b17442c2b364a2f53de1b2aeba"></a>
  1398. <div class="memitem">
  1399. <div class="memproto">
  1400. <table class="mlabels">
  1401. <tr>
  1402. <td class="mlabels-left">
  1403. <table class="memname">
  1404. <tr>
  1405. <td class="memname">bool FatFile::isSubDir </td>
  1406. <td>(</td>
  1407. <td class="paramname"></td><td>)</td>
  1408. <td> const</td>
  1409. </tr>
  1410. </table>
  1411. </td>
  1412. <td class="mlabels-right">
  1413. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  1414. </tr>
  1415. </table>
  1416. </div><div class="memdoc">
  1417. <dl class="section return"><dt>Returns</dt><dd>True if this is a subdirectory else false. </dd></dl>
  1418. </div>
  1419. </div>
  1420. <a class="anchor" id="add932e13e5bf32ad467af6ec34824e3c"></a>
  1421. <div class="memitem">
  1422. <div class="memproto">
  1423. <table class="mlabels">
  1424. <tr>
  1425. <td class="mlabels-left">
  1426. <table class="memname">
  1427. <tr>
  1428. <td class="memname">bool FatFile::isSystem </td>
  1429. <td>(</td>
  1430. <td class="paramname"></td><td>)</td>
  1431. <td> const</td>
  1432. </tr>
  1433. </table>
  1434. </td>
  1435. <td class="mlabels-right">
  1436. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  1437. </tr>
  1438. </table>
  1439. </div><div class="memdoc">
  1440. <dl class="section return"><dt>Returns</dt><dd>True if this is a system file else false. </dd></dl>
  1441. </div>
  1442. </div>
  1443. <a class="anchor" id="a94df8090f16e9666cdc53ca20f6aff90"></a>
  1444. <div class="memitem">
  1445. <div class="memproto">
  1446. <table class="mlabels">
  1447. <tr>
  1448. <td class="mlabels-left">
  1449. <table class="memname">
  1450. <tr>
  1451. <td class="memname">static bool FatFile::legal83Char </td>
  1452. <td>(</td>
  1453. <td class="paramtype">uint8_t&#160;</td>
  1454. <td class="paramname"><em>c</em></td><td>)</td>
  1455. <td></td>
  1456. </tr>
  1457. </table>
  1458. </td>
  1459. <td class="mlabels-right">
  1460. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span><span class="mlabel">inherited</span></span> </td>
  1461. </tr>
  1462. </table>
  1463. </div><div class="memdoc">
  1464. <p>Check for a legal 8.3 character. </p><dl class="params"><dt>Parameters</dt><dd>
  1465. <table class="params">
  1466. <tr><td class="paramdir">[in]</td><td class="paramname">c</td><td>Character to be checked. </td></tr>
  1467. </table>
  1468. </dd>
  1469. </dl>
  1470. <dl class="section return"><dt>Returns</dt><dd>true for a legal 8.3 character else false. </dd></dl>
  1471. </div>
  1472. </div>
  1473. <a class="anchor" id="ad49f688a494b351ccbb0102dcfafb925"></a>
  1474. <div class="memitem">
  1475. <div class="memproto">
  1476. <table class="mlabels">
  1477. <tr>
  1478. <td class="mlabels-left">
  1479. <table class="memname">
  1480. <tr>
  1481. <td class="memname">void FatFile::ls </td>
  1482. <td>(</td>
  1483. <td class="paramtype">uint8_t&#160;</td>
  1484. <td class="paramname"><em>flags</em> = <code>0</code></td><td>)</td>
  1485. <td></td>
  1486. </tr>
  1487. </table>
  1488. </td>
  1489. <td class="mlabels-right">
  1490. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  1491. </tr>
  1492. </table>
  1493. </div><div class="memdoc">
  1494. <p>List directory contents.</p>
  1495. <dl class="params"><dt>Parameters</dt><dd>
  1496. <table class="params">
  1497. <tr><td class="paramdir">[in]</td><td class="paramname">flags</td><td>The inclusive OR of</td></tr>
  1498. </table>
  1499. </dd>
  1500. </dl>
  1501. <p>LS_DATE - Print file modification date</p>
  1502. <p>LS_SIZE - Print file size.</p>
  1503. <p>LS_R - Recursive list of subdirectories. </p>
  1504. </div>
  1505. </div>
  1506. <a class="anchor" id="acabf31ff85e696fbf384c49428012fea"></a>
  1507. <div class="memitem">
  1508. <div class="memproto">
  1509. <table class="mlabels">
  1510. <tr>
  1511. <td class="mlabels-left">
  1512. <table class="memname">
  1513. <tr>
  1514. <td class="memname">void FatFile::ls </td>
  1515. <td>(</td>
  1516. <td class="paramtype"><a class="el" href="_fat_volume_8h.html#ac62f6449331cfe1a71f29be30efe7890">print_t</a> *&#160;</td>
  1517. <td class="paramname"><em>pr</em>, </td>
  1518. </tr>
  1519. <tr>
  1520. <td class="paramkey"></td>
  1521. <td></td>
  1522. <td class="paramtype">uint8_t&#160;</td>
  1523. <td class="paramname"><em>flags</em> = <code>0</code>, </td>
  1524. </tr>
  1525. <tr>
  1526. <td class="paramkey"></td>
  1527. <td></td>
  1528. <td class="paramtype">uint8_t&#160;</td>
  1529. <td class="paramname"><em>indent</em> = <code>0</code>&#160;</td>
  1530. </tr>
  1531. <tr>
  1532. <td></td>
  1533. <td>)</td>
  1534. <td></td><td></td>
  1535. </tr>
  1536. </table>
  1537. </td>
  1538. <td class="mlabels-right">
  1539. <span class="mlabels"><span class="mlabel">inherited</span></span> </td>
  1540. </tr>
  1541. </table>
  1542. </div><div class="memdoc">
  1543. <p>List directory contents.</p>
  1544. <dl class="params"><dt>Parameters</dt><dd>
  1545. <table class="params">
  1546. <tr><td class="paramdir">[in]</td><td class="paramname">pr</td><td>Print stream for list.</td></tr>
  1547. <tr><td class="paramdir">[in]</td><td class="paramname">flags</td><td>The inclusive OR of</td></tr>
  1548. </table>
  1549. </dd>
  1550. </dl>
  1551. <p>LS_DATE - Print file modification date</p>
  1552. <p>LS_SIZE - Print file size.</p>
  1553. <p>LS_R - Recursive list of subdirectories.</p>
  1554. <dl class="params"><dt>Parameters</dt><dd>
  1555. <table class="params">
  1556. <tr><td class="paramdir">[in]</td><td class="paramname">indent</td><td>Amount of space before file name. Used for recursive list to indicate subdirectory level. </td></tr>
  1557. </table>
  1558. </dd>
  1559. </dl>
  1560. </div>
  1561. </div>
  1562. <a class="anchor" id="abab5b9f72cc796388dd4eed01d13d90d"></a>
  1563. <div class="memitem">
  1564. <div class="memproto">
  1565. <table class="mlabels">
  1566. <tr>
  1567. <td class="mlabels-left">
  1568. <table class="memname">
  1569. <tr>
  1570. <td class="memname">bool FatFile::mkdir </td>
  1571. <td>(</td>
  1572. <td class="paramtype"><a class="el" href="class_fat_file.html">FatFile</a> *&#160;</td>
  1573. <td class="paramname"><em>dir</em>, </td>
  1574. </tr>
  1575. <tr>
  1576. <td class="paramkey"></td>
  1577. <td></td>
  1578. <td class="paramtype">const char *&#160;</td>
  1579. <td class="paramname"><em>path</em>, </td>
  1580. </tr>
  1581. <tr>
  1582. <td class="paramkey"></td>
  1583. <td></td>
  1584. <td class="paramtype">bool&#160;</td>
  1585. <td class="paramname"><em>pFlag</em> = <code>true</code>&#160;</td>
  1586. </tr>
  1587. <tr>
  1588. <td></td>
  1589. <td>)</td>
  1590. <td></td><td></td>
  1591. </tr>
  1592. </table>
  1593. </td>
  1594. <td class="mlabels-right">
  1595. <span class="mlabels"><span class="mlabel">inherited</span></span> </td>
  1596. </tr>
  1597. </table>
  1598. </div><div class="memdoc">
  1599. <p>Make a new directory.</p>
  1600. <dl class="params"><dt>Parameters</dt><dd>
  1601. <table class="params">
  1602. <tr><td class="paramdir">[in]</td><td class="paramname">dir</td><td>An open <a class="el" href="class_fat_file.html" title="Basic file class. ">FatFile</a> instance for the directory that will contain the new directory.</td></tr>
  1603. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>A path with a valid 8.3 DOS name for the new directory.</td></tr>
  1604. <tr><td class="paramdir">[in]</td><td class="paramname">pFlag</td><td>Create missing parent directories if true.</td></tr>
  1605. </table>
  1606. </dd>
  1607. </dl>
  1608. <dl class="section return"><dt>Returns</dt><dd>The value true is returned for success and the value false is returned for failure. </dd></dl>
  1609. </div>
  1610. </div>
  1611. <a class="anchor" id="a5f64576d3d19177ab3cf3812b69abdfa"></a>
  1612. <div class="memitem">
  1613. <div class="memproto">
  1614. <table class="mlabels">
  1615. <tr>
  1616. <td class="mlabels-left">
  1617. <table class="memname">
  1618. <tr>
  1619. <td class="memname">bool FatFile::open </td>
  1620. <td>(</td>
  1621. <td class="paramtype"><a class="el" href="class_fat_file_system.html">FatFileSystem</a> *&#160;</td>
  1622. <td class="paramname"><em>fs</em>, </td>
  1623. </tr>
  1624. <tr>
  1625. <td class="paramkey"></td>
  1626. <td></td>
  1627. <td class="paramtype">const char *&#160;</td>
  1628. <td class="paramname"><em>path</em>, </td>
  1629. </tr>
  1630. <tr>
  1631. <td class="paramkey"></td>
  1632. <td></td>
  1633. <td class="paramtype">uint8_t&#160;</td>
  1634. <td class="paramname"><em>oflag</em>&#160;</td>
  1635. </tr>
  1636. <tr>
  1637. <td></td>
  1638. <td>)</td>
  1639. <td></td><td></td>
  1640. </tr>
  1641. </table>
  1642. </td>
  1643. <td class="mlabels-right">
  1644. <span class="mlabels"><span class="mlabel">inherited</span></span> </td>
  1645. </tr>
  1646. </table>
  1647. </div><div class="memdoc">
  1648. <p>Open a file in the volume working directory of a <a class="el" href="class_fat_file_system.html" title="Integration class for the FatLib library. ">FatFileSystem</a>.</p>
  1649. <dl class="params"><dt>Parameters</dt><dd>
  1650. <table class="params">
  1651. <tr><td class="paramdir">[in]</td><td class="paramname">fs</td><td><a class="el" href="class_file.html" title="Arduino SD.h style File API. ">File</a> System where the file is located.</td></tr>
  1652. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>with a valid 8.3 DOS name for a file to be opened.</td></tr>
  1653. <tr><td class="paramdir">[in]</td><td class="paramname">oflag</td><td>bitwise-inclusive OR of open mode flags. See see <a class="el" href="class_fat_file.html#a211be757679b18708f6b6a36464e4f61">FatFile::open(FatFile*, const char*, uint8_t)</a>.</td></tr>
  1654. </table>
  1655. </dd>
  1656. </dl>
  1657. <dl class="section return"><dt>Returns</dt><dd>The value true is returned for success and the value false is returned for failure. </dd></dl>
  1658. </div>
  1659. </div>
  1660. <a class="anchor" id="ad3fa9daaccb4e4179fb88a8ca037aa80"></a>
  1661. <div class="memitem">
  1662. <div class="memproto">
  1663. <table class="mlabels">
  1664. <tr>
  1665. <td class="mlabels-left">
  1666. <table class="memname">
  1667. <tr>
  1668. <td class="memname">bool FatFile::open </td>
  1669. <td>(</td>
  1670. <td class="paramtype"><a class="el" href="class_fat_file.html">FatFile</a> *&#160;</td>
  1671. <td class="paramname"><em>dirFile</em>, </td>
  1672. </tr>
  1673. <tr>
  1674. <td class="paramkey"></td>
  1675. <td></td>
  1676. <td class="paramtype">uint16_t&#160;</td>
  1677. <td class="paramname"><em>index</em>, </td>
  1678. </tr>
  1679. <tr>
  1680. <td class="paramkey"></td>
  1681. <td></td>
  1682. <td class="paramtype">uint8_t&#160;</td>
  1683. <td class="paramname"><em>oflag</em>&#160;</td>
  1684. </tr>
  1685. <tr>
  1686. <td></td>
  1687. <td>)</td>
  1688. <td></td><td></td>
  1689. </tr>
  1690. </table>
  1691. </td>
  1692. <td class="mlabels-right">
  1693. <span class="mlabels"><span class="mlabel">inherited</span></span> </td>
  1694. </tr>
  1695. </table>
  1696. </div><div class="memdoc">
  1697. <p>Open a file by index.</p>
  1698. <dl class="params"><dt>Parameters</dt><dd>
  1699. <table class="params">
  1700. <tr><td class="paramdir">[in]</td><td class="paramname">dirFile</td><td>An open <a class="el" href="class_fat_file.html" title="Basic file class. ">FatFile</a> instance for the directory.</td></tr>
  1701. <tr><td class="paramdir">[in]</td><td class="paramname">index</td><td>The <em>index</em> of the directory entry for the file to be opened. The value for <em>index</em> is (directory file position)/32.</td></tr>
  1702. <tr><td class="paramdir">[in]</td><td class="paramname">oflag</td><td>bitwise-inclusive OR of open mode flags. See see <a class="el" href="class_fat_file.html#a211be757679b18708f6b6a36464e4f61">FatFile::open(FatFile*, const char*, uint8_t)</a>.</td></tr>
  1703. </table>
  1704. </dd>
  1705. </dl>
  1706. <p>See <a class="el" href="class_fat_file.html#a5f64576d3d19177ab3cf3812b69abdfa">open()</a> by path for definition of flags. </p><dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1707. </div>
  1708. </div>
  1709. <a class="anchor" id="a211be757679b18708f6b6a36464e4f61"></a>
  1710. <div class="memitem">
  1711. <div class="memproto">
  1712. <table class="mlabels">
  1713. <tr>
  1714. <td class="mlabels-left">
  1715. <table class="memname">
  1716. <tr>
  1717. <td class="memname">bool FatFile::open </td>
  1718. <td>(</td>
  1719. <td class="paramtype"><a class="el" href="class_fat_file.html">FatFile</a> *&#160;</td>
  1720. <td class="paramname"><em>dirFile</em>, </td>
  1721. </tr>
  1722. <tr>
  1723. <td class="paramkey"></td>
  1724. <td></td>
  1725. <td class="paramtype">const char *&#160;</td>
  1726. <td class="paramname"><em>path</em>, </td>
  1727. </tr>
  1728. <tr>
  1729. <td class="paramkey"></td>
  1730. <td></td>
  1731. <td class="paramtype">uint8_t&#160;</td>
  1732. <td class="paramname"><em>oflag</em>&#160;</td>
  1733. </tr>
  1734. <tr>
  1735. <td></td>
  1736. <td>)</td>
  1737. <td></td><td></td>
  1738. </tr>
  1739. </table>
  1740. </td>
  1741. <td class="mlabels-right">
  1742. <span class="mlabels"><span class="mlabel">inherited</span></span> </td>
  1743. </tr>
  1744. </table>
  1745. </div><div class="memdoc">
  1746. <p>Open a file or directory by name.</p>
  1747. <dl class="params"><dt>Parameters</dt><dd>
  1748. <table class="params">
  1749. <tr><td class="paramdir">[in]</td><td class="paramname">dirFile</td><td>An open <a class="el" href="class_fat_file.html" title="Basic file class. ">FatFile</a> instance for the directory containing the file to be opened.</td></tr>
  1750. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>A path with a valid 8.3 DOS name for a file to be opened.</td></tr>
  1751. <tr><td class="paramdir">[in]</td><td class="paramname">oflag</td><td>Values for <em>oflag</em> are constructed by a bitwise-inclusive OR of flags from the following list</td></tr>
  1752. </table>
  1753. </dd>
  1754. </dl>
  1755. <p>O_READ - Open for reading.</p>
  1756. <p>O_RDONLY - Same as O_READ.</p>
  1757. <p>O_WRITE - Open for writing.</p>
  1758. <p>O_WRONLY - Same as O_WRITE.</p>
  1759. <p>O_RDWR - Open for reading and writing.</p>
  1760. <p>O_APPEND - If set, the file offset shall be set to the end of the file prior to each write.</p>
  1761. <p>O_AT_END - Set the initial position at the end of the file.</p>
  1762. <p>O_CREAT - If the file exists, this flag has no effect except as noted under O_EXCL below. Otherwise, the file shall be created</p>
  1763. <p>O_EXCL - If O_CREAT and O_EXCL are set, <a class="el" href="class_fat_file.html#a5f64576d3d19177ab3cf3812b69abdfa">open()</a> shall fail if the file exists.</p>
  1764. <p>O_SYNC - Call <a class="el" href="class_fat_file.html#a67f3dc4896c542d695e11aac927f585e">sync()</a> after each write. This flag should not be used with <a class="el" href="class_fat_file.html#a5524bd9f3b8f54ee163e391cba618186">write(uint8_t)</a> or any functions do character at a time writes since <a class="el" href="class_fat_file.html#a67f3dc4896c542d695e11aac927f585e">sync()</a> will be called after each byte.</p>
  1765. <p>O_TRUNC - If the file exists and is a regular file, and the file is successfully opened and is not read only, its length shall be truncated to 0.</p>
  1766. <p>WARNING: A given file must not be opened by more than one <a class="el" href="class_fat_file.html" title="Basic file class. ">FatFile</a> object or file corruption may occur.</p>
  1767. <dl class="section note"><dt>Note</dt><dd>Directory files must be opened read only. Write and truncation is not allowed for directory files.</dd></dl>
  1768. <dl class="section return"><dt>Returns</dt><dd>The value true is returned for success and the value false is returned for failure. </dd></dl>
  1769. </div>
  1770. </div>
  1771. <a class="anchor" id="ab0e7075062c89f356441f80fc64d03e6"></a>
  1772. <div class="memitem">
  1773. <div class="memproto">
  1774. <table class="mlabels">
  1775. <tr>
  1776. <td class="mlabels-left">
  1777. <table class="memname">
  1778. <tr>
  1779. <td class="memname">bool FatFile::open </td>
  1780. <td>(</td>
  1781. <td class="paramtype">const char *&#160;</td>
  1782. <td class="paramname"><em>path</em>, </td>
  1783. </tr>
  1784. <tr>
  1785. <td class="paramkey"></td>
  1786. <td></td>
  1787. <td class="paramtype">uint8_t&#160;</td>
  1788. <td class="paramname"><em>oflag</em> = <code>O_READ</code>&#160;</td>
  1789. </tr>
  1790. <tr>
  1791. <td></td>
  1792. <td>)</td>
  1793. <td></td><td></td>
  1794. </tr>
  1795. </table>
  1796. </td>
  1797. <td class="mlabels-right">
  1798. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  1799. </tr>
  1800. </table>
  1801. </div><div class="memdoc">
  1802. <p>Open a file in the current working directory.</p>
  1803. <dl class="params"><dt>Parameters</dt><dd>
  1804. <table class="params">
  1805. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>A path with a valid 8.3 DOS name for a file to be opened.</td></tr>
  1806. <tr><td class="paramdir">[in]</td><td class="paramname">oflag</td><td>bitwise-inclusive OR of open mode flags. See see <a class="el" href="class_fat_file.html#a211be757679b18708f6b6a36464e4f61">FatFile::open(FatFile*, const char*, uint8_t)</a>.</td></tr>
  1807. </table>
  1808. </dd>
  1809. </dl>
  1810. <dl class="section return"><dt>Returns</dt><dd>The value true is returned for success and the value false is returned for failure. </dd></dl>
  1811. </div>
  1812. </div>
  1813. <a class="anchor" id="a8034c4649eb0d26715b1a8a69e73d9d0"></a>
  1814. <div class="memitem">
  1815. <div class="memproto">
  1816. <table class="mlabels">
  1817. <tr>
  1818. <td class="mlabels-left">
  1819. <table class="memname">
  1820. <tr>
  1821. <td class="memname">bool FatFile::openNext </td>
  1822. <td>(</td>
  1823. <td class="paramtype"><a class="el" href="class_fat_file.html">FatFile</a> *&#160;</td>
  1824. <td class="paramname"><em>dirFile</em>, </td>
  1825. </tr>
  1826. <tr>
  1827. <td class="paramkey"></td>
  1828. <td></td>
  1829. <td class="paramtype">uint8_t&#160;</td>
  1830. <td class="paramname"><em>oflag</em> = <code>O_READ</code>&#160;</td>
  1831. </tr>
  1832. <tr>
  1833. <td></td>
  1834. <td>)</td>
  1835. <td></td><td></td>
  1836. </tr>
  1837. </table>
  1838. </td>
  1839. <td class="mlabels-right">
  1840. <span class="mlabels"><span class="mlabel">inherited</span></span> </td>
  1841. </tr>
  1842. </table>
  1843. </div><div class="memdoc">
  1844. <p>Open the next file or subdirectory in a directory.</p>
  1845. <dl class="params"><dt>Parameters</dt><dd>
  1846. <table class="params">
  1847. <tr><td class="paramdir">[in]</td><td class="paramname">dirFile</td><td>An open <a class="el" href="class_fat_file.html" title="Basic file class. ">FatFile</a> instance for the directory containing the file to be opened.</td></tr>
  1848. <tr><td class="paramdir">[in]</td><td class="paramname">oflag</td><td>bitwise-inclusive OR of open mode flags. See see <a class="el" href="class_fat_file.html#a211be757679b18708f6b6a36464e4f61">FatFile::open(FatFile*, const char*, uint8_t)</a>.</td></tr>
  1849. </table>
  1850. </dd>
  1851. </dl>
  1852. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  1853. </div>
  1854. </div>
  1855. <a class="anchor" id="a7e0c0548fed3a69e7284b91b694439d4"></a>
  1856. <div class="memitem">
  1857. <div class="memproto">
  1858. <table class="mlabels">
  1859. <tr>
  1860. <td class="mlabels-left">
  1861. <table class="memname">
  1862. <tr>
  1863. <td class="memname">bool FatFile::openRoot </td>
  1864. <td>(</td>
  1865. <td class="paramtype"><a class="el" href="class_fat_volume.html">FatVolume</a> *&#160;</td>
  1866. <td class="paramname"><em>vol</em></td><td>)</td>
  1867. <td></td>
  1868. </tr>
  1869. </table>
  1870. </td>
  1871. <td class="mlabels-right">
  1872. <span class="mlabels"><span class="mlabel">inherited</span></span> </td>
  1873. </tr>
  1874. </table>
  1875. </div><div class="memdoc">
  1876. <p>Open a volume's root directory.</p>
  1877. <dl class="params"><dt>Parameters</dt><dd>
  1878. <table class="params">
  1879. <tr><td class="paramdir">[in]</td><td class="paramname">vol</td><td>The FAT volume containing the root directory to be opened.</td></tr>
  1880. </table>
  1881. </dd>
  1882. </dl>
  1883. <dl class="section return"><dt>Returns</dt><dd>The value true is returned for success and the value false is returned for failure. </dd></dl>
  1884. </div>
  1885. </div>
  1886. <a class="anchor" id="ac05b7136b887539426856c623869aa3a"></a>
  1887. <div class="memitem">
  1888. <div class="memproto">
  1889. <table class="mlabels">
  1890. <tr>
  1891. <td class="mlabels-left">
  1892. <table class="memname">
  1893. <tr>
  1894. <td class="memname">int FatFile::peek </td>
  1895. <td>(</td>
  1896. <td class="paramname"></td><td>)</td>
  1897. <td></td>
  1898. </tr>
  1899. </table>
  1900. </td>
  1901. <td class="mlabels-right">
  1902. <span class="mlabels"><span class="mlabel">inherited</span></span> </td>
  1903. </tr>
  1904. </table>
  1905. </div><div class="memdoc">
  1906. <p>Return the next available byte without consuming it.</p>
  1907. <dl class="section return"><dt>Returns</dt><dd>The byte if no error and not at eof else -1; </dd></dl>
  1908. </div>
  1909. </div>
  1910. <a class="anchor" id="a558530f20314a8d8ee3d1a488fc7f46e"></a>
  1911. <div class="memitem">
  1912. <div class="memproto">
  1913. <table class="mlabels">
  1914. <tr>
  1915. <td class="mlabels-left">
  1916. <table class="memname">
  1917. <tr>
  1918. <td class="memname">bool FatFile::printCreateDateTime </td>
  1919. <td>(</td>
  1920. <td class="paramtype"><a class="el" href="_fat_volume_8h.html#ac62f6449331cfe1a71f29be30efe7890">print_t</a> *&#160;</td>
  1921. <td class="paramname"><em>pr</em></td><td>)</td>
  1922. <td></td>
  1923. </tr>
  1924. </table>
  1925. </td>
  1926. <td class="mlabels-right">
  1927. <span class="mlabels"><span class="mlabel">inherited</span></span> </td>
  1928. </tr>
  1929. </table>
  1930. </div><div class="memdoc">
  1931. <p>Print a file's creation date and time</p>
  1932. <dl class="params"><dt>Parameters</dt><dd>
  1933. <table class="params">
  1934. <tr><td class="paramdir">[in]</td><td class="paramname">pr</td><td>Print stream for output.</td></tr>
  1935. </table>
  1936. </dd>
  1937. </dl>
  1938. <dl class="section return"><dt>Returns</dt><dd>The value true is returned for success and the value false is returned for failure. </dd></dl>
  1939. </div>
  1940. </div>
  1941. <a class="anchor" id="a8fdb038aafdf3a17ac80b53c063aa73b"></a>
  1942. <div class="memitem">
  1943. <div class="memproto">
  1944. <table class="mlabels">
  1945. <tr>
  1946. <td class="mlabels-left">
  1947. <table class="memname">
  1948. <tr>
  1949. <td class="memname">static void FatFile::printFatDate </td>
  1950. <td>(</td>
  1951. <td class="paramtype">uint16_t&#160;</td>
  1952. <td class="paramname"><em>fatDate</em></td><td>)</td>
  1953. <td></td>
  1954. </tr>
  1955. </table>
  1956. </td>
  1957. <td class="mlabels-right">
  1958. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span><span class="mlabel">inherited</span></span> </td>
  1959. </tr>
  1960. </table>
  1961. </div><div class="memdoc">
  1962. <p>Print a directory date field.</p>
  1963. <p>Format is yyyy-mm-dd.</p>
  1964. <dl class="params"><dt>Parameters</dt><dd>
  1965. <table class="params">
  1966. <tr><td class="paramdir">[in]</td><td class="paramname">fatDate</td><td>The date field from a directory entry. </td></tr>
  1967. </table>
  1968. </dd>
  1969. </dl>
  1970. </div>
  1971. </div>
  1972. <a class="anchor" id="ada5364f66204b1a64afbf9d2e6cd2b0b"></a>
  1973. <div class="memitem">
  1974. <div class="memproto">
  1975. <table class="mlabels">
  1976. <tr>
  1977. <td class="mlabels-left">
  1978. <table class="memname">
  1979. <tr>
  1980. <td class="memname">void FatFile::printFatDate </td>
  1981. <td>(</td>
  1982. <td class="paramtype"><a class="el" href="_fat_volume_8h.html#ac62f6449331cfe1a71f29be30efe7890">print_t</a> *&#160;</td>
  1983. <td class="paramname"><em>pr</em>, </td>
  1984. </tr>
  1985. <tr>
  1986. <td class="paramkey"></td>
  1987. <td></td>
  1988. <td class="paramtype">uint16_t&#160;</td>
  1989. <td class="paramname"><em>fatDate</em>&#160;</td>
  1990. </tr>
  1991. <tr>
  1992. <td></td>
  1993. <td>)</td>
  1994. <td></td><td></td>
  1995. </tr>
  1996. </table>
  1997. </td>
  1998. <td class="mlabels-right">
  1999. <span class="mlabels"><span class="mlabel">static</span><span class="mlabel">inherited</span></span> </td>
  2000. </tr>
  2001. </table>
  2002. </div><div class="memdoc">
  2003. <p>Print a directory date field.</p>
  2004. <p>Format is yyyy-mm-dd.</p>
  2005. <dl class="params"><dt>Parameters</dt><dd>
  2006. <table class="params">
  2007. <tr><td class="paramdir">[in]</td><td class="paramname">pr</td><td>Print stream for output. </td></tr>
  2008. <tr><td class="paramdir">[in]</td><td class="paramname">fatDate</td><td>The date field from a directory entry. </td></tr>
  2009. </table>
  2010. </dd>
  2011. </dl>
  2012. </div>
  2013. </div>
  2014. <a class="anchor" id="a7740731f08ef97de7dfbc9b075c4c7d1"></a>
  2015. <div class="memitem">
  2016. <div class="memproto">
  2017. <table class="mlabels">
  2018. <tr>
  2019. <td class="mlabels-left">
  2020. <table class="memname">
  2021. <tr>
  2022. <td class="memname">static void FatFile::printFatTime </td>
  2023. <td>(</td>
  2024. <td class="paramtype">uint16_t&#160;</td>
  2025. <td class="paramname"><em>fatTime</em></td><td>)</td>
  2026. <td></td>
  2027. </tr>
  2028. </table>
  2029. </td>
  2030. <td class="mlabels-right">
  2031. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span><span class="mlabel">inherited</span></span> </td>
  2032. </tr>
  2033. </table>
  2034. </div><div class="memdoc">
  2035. <p>Print a directory time field.</p>
  2036. <p>Format is hh:mm:ss.</p>
  2037. <dl class="params"><dt>Parameters</dt><dd>
  2038. <table class="params">
  2039. <tr><td class="paramdir">[in]</td><td class="paramname">fatTime</td><td>The time field from a directory entry. </td></tr>
  2040. </table>
  2041. </dd>
  2042. </dl>
  2043. </div>
  2044. </div>
  2045. <a class="anchor" id="a4e7e56ba52ca17c602af1b85684b09a9"></a>
  2046. <div class="memitem">
  2047. <div class="memproto">
  2048. <table class="mlabels">
  2049. <tr>
  2050. <td class="mlabels-left">
  2051. <table class="memname">
  2052. <tr>
  2053. <td class="memname">void FatFile::printFatTime </td>
  2054. <td>(</td>
  2055. <td class="paramtype"><a class="el" href="_fat_volume_8h.html#ac62f6449331cfe1a71f29be30efe7890">print_t</a> *&#160;</td>
  2056. <td class="paramname"><em>pr</em>, </td>
  2057. </tr>
  2058. <tr>
  2059. <td class="paramkey"></td>
  2060. <td></td>
  2061. <td class="paramtype">uint16_t&#160;</td>
  2062. <td class="paramname"><em>fatTime</em>&#160;</td>
  2063. </tr>
  2064. <tr>
  2065. <td></td>
  2066. <td>)</td>
  2067. <td></td><td></td>
  2068. </tr>
  2069. </table>
  2070. </td>
  2071. <td class="mlabels-right">
  2072. <span class="mlabels"><span class="mlabel">static</span><span class="mlabel">inherited</span></span> </td>
  2073. </tr>
  2074. </table>
  2075. </div><div class="memdoc">
  2076. <p>Print a directory time field.</p>
  2077. <p>Format is hh:mm:ss.</p>
  2078. <dl class="params"><dt>Parameters</dt><dd>
  2079. <table class="params">
  2080. <tr><td class="paramdir">[in]</td><td class="paramname">pr</td><td>Print stream for output. </td></tr>
  2081. <tr><td class="paramdir">[in]</td><td class="paramname">fatTime</td><td>The time field from a directory entry. </td></tr>
  2082. </table>
  2083. </dd>
  2084. </dl>
  2085. </div>
  2086. </div>
  2087. <a class="anchor" id="a7478cad0f9e5079311b9e1fa558016ff"></a>
  2088. <div class="memitem">
  2089. <div class="memproto">
  2090. <table class="mlabels">
  2091. <tr>
  2092. <td class="mlabels-left">
  2093. <table class="memname">
  2094. <tr>
  2095. <td class="memname">int FatFile::printField </td>
  2096. <td>(</td>
  2097. <td class="paramtype">float&#160;</td>
  2098. <td class="paramname"><em>value</em>, </td>
  2099. </tr>
  2100. <tr>
  2101. <td class="paramkey"></td>
  2102. <td></td>
  2103. <td class="paramtype">char&#160;</td>
  2104. <td class="paramname"><em>term</em>, </td>
  2105. </tr>
  2106. <tr>
  2107. <td class="paramkey"></td>
  2108. <td></td>
  2109. <td class="paramtype">uint8_t&#160;</td>
  2110. <td class="paramname"><em>prec</em> = <code>2</code>&#160;</td>
  2111. </tr>
  2112. <tr>
  2113. <td></td>
  2114. <td>)</td>
  2115. <td></td><td></td>
  2116. </tr>
  2117. </table>
  2118. </td>
  2119. <td class="mlabels-right">
  2120. <span class="mlabels"><span class="mlabel">inherited</span></span> </td>
  2121. </tr>
  2122. </table>
  2123. </div><div class="memdoc">
  2124. <p>Print a number followed by a field terminator. </p><dl class="params"><dt>Parameters</dt><dd>
  2125. <table class="params">
  2126. <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>The number to be printed. </td></tr>
  2127. <tr><td class="paramdir">[in]</td><td class="paramname">term</td><td>The field terminator. Use '\n' for CR LF. </td></tr>
  2128. <tr><td class="paramdir">[in]</td><td class="paramname">prec</td><td>Number of digits after decimal point. </td></tr>
  2129. </table>
  2130. </dd>
  2131. </dl>
  2132. <dl class="section return"><dt>Returns</dt><dd>The number of bytes written or -1 if an error occurs. </dd></dl>
  2133. </div>
  2134. </div>
  2135. <a class="anchor" id="abd3e1747511216462b3ef98167156cbb"></a>
  2136. <div class="memitem">
  2137. <div class="memproto">
  2138. <table class="mlabels">
  2139. <tr>
  2140. <td class="mlabels-left">
  2141. <table class="memname">
  2142. <tr>
  2143. <td class="memname">int FatFile::printField </td>
  2144. <td>(</td>
  2145. <td class="paramtype">int16_t&#160;</td>
  2146. <td class="paramname"><em>value</em>, </td>
  2147. </tr>
  2148. <tr>
  2149. <td class="paramkey"></td>
  2150. <td></td>
  2151. <td class="paramtype">char&#160;</td>
  2152. <td class="paramname"><em>term</em>&#160;</td>
  2153. </tr>
  2154. <tr>
  2155. <td></td>
  2156. <td>)</td>
  2157. <td></td><td></td>
  2158. </tr>
  2159. </table>
  2160. </td>
  2161. <td class="mlabels-right">
  2162. <span class="mlabels"><span class="mlabel">inherited</span></span> </td>
  2163. </tr>
  2164. </table>
  2165. </div><div class="memdoc">
  2166. <p>Print a number followed by a field terminator. </p><dl class="params"><dt>Parameters</dt><dd>
  2167. <table class="params">
  2168. <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>The number to be printed. </td></tr>
  2169. <tr><td class="paramdir">[in]</td><td class="paramname">term</td><td>The field terminator. Use '\n' for CR LF. </td></tr>
  2170. </table>
  2171. </dd>
  2172. </dl>
  2173. <dl class="section return"><dt>Returns</dt><dd>The number of bytes written or -1 if an error occurs. </dd></dl>
  2174. </div>
  2175. </div>
  2176. <a class="anchor" id="a9972c2419c293ef9c382bff666b9ae4d"></a>
  2177. <div class="memitem">
  2178. <div class="memproto">
  2179. <table class="mlabels">
  2180. <tr>
  2181. <td class="mlabels-left">
  2182. <table class="memname">
  2183. <tr>
  2184. <td class="memname">int FatFile::printField </td>
  2185. <td>(</td>
  2186. <td class="paramtype">uint16_t&#160;</td>
  2187. <td class="paramname"><em>value</em>, </td>
  2188. </tr>
  2189. <tr>
  2190. <td class="paramkey"></td>
  2191. <td></td>
  2192. <td class="paramtype">char&#160;</td>
  2193. <td class="paramname"><em>term</em>&#160;</td>
  2194. </tr>
  2195. <tr>
  2196. <td></td>
  2197. <td>)</td>
  2198. <td></td><td></td>
  2199. </tr>
  2200. </table>
  2201. </td>
  2202. <td class="mlabels-right">
  2203. <span class="mlabels"><span class="mlabel">inherited</span></span> </td>
  2204. </tr>
  2205. </table>
  2206. </div><div class="memdoc">
  2207. <p>Print a number followed by a field terminator. </p><dl class="params"><dt>Parameters</dt><dd>
  2208. <table class="params">
  2209. <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>The number to be printed. </td></tr>
  2210. <tr><td class="paramdir">[in]</td><td class="paramname">term</td><td>The field terminator. Use '\n' for CR LF. </td></tr>
  2211. </table>
  2212. </dd>
  2213. </dl>
  2214. <dl class="section return"><dt>Returns</dt><dd>The number of bytes written or -1 if an error occurs. </dd></dl>
  2215. </div>
  2216. </div>
  2217. <a class="anchor" id="a41b3b32dd8482429b74c7af3432d6cf8"></a>
  2218. <div class="memitem">
  2219. <div class="memproto">
  2220. <table class="mlabels">
  2221. <tr>
  2222. <td class="mlabels-left">
  2223. <table class="memname">
  2224. <tr>
  2225. <td class="memname">int FatFile::printField </td>
  2226. <td>(</td>
  2227. <td class="paramtype">int32_t&#160;</td>
  2228. <td class="paramname"><em>value</em>, </td>
  2229. </tr>
  2230. <tr>
  2231. <td class="paramkey"></td>
  2232. <td></td>
  2233. <td class="paramtype">char&#160;</td>
  2234. <td class="paramname"><em>term</em>&#160;</td>
  2235. </tr>
  2236. <tr>
  2237. <td></td>
  2238. <td>)</td>
  2239. <td></td><td></td>
  2240. </tr>
  2241. </table>
  2242. </td>
  2243. <td class="mlabels-right">
  2244. <span class="mlabels"><span class="mlabel">inherited</span></span> </td>
  2245. </tr>
  2246. </table>
  2247. </div><div class="memdoc">
  2248. <p>Print a number followed by a field terminator. </p><dl class="params"><dt>Parameters</dt><dd>
  2249. <table class="params">
  2250. <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>The number to be printed. </td></tr>
  2251. <tr><td class="paramdir">[in]</td><td class="paramname">term</td><td>The field terminator. Use '\n' for CR LF. </td></tr>
  2252. </table>
  2253. </dd>
  2254. </dl>
  2255. <dl class="section return"><dt>Returns</dt><dd>The number of bytes written or -1 if an error occurs. </dd></dl>
  2256. </div>
  2257. </div>
  2258. <a class="anchor" id="a097240f08baadeb1c64b63eab9afb088"></a>
  2259. <div class="memitem">
  2260. <div class="memproto">
  2261. <table class="mlabels">
  2262. <tr>
  2263. <td class="mlabels-left">
  2264. <table class="memname">
  2265. <tr>
  2266. <td class="memname">int FatFile::printField </td>
  2267. <td>(</td>
  2268. <td class="paramtype">uint32_t&#160;</td>
  2269. <td class="paramname"><em>value</em>, </td>
  2270. </tr>
  2271. <tr>
  2272. <td class="paramkey"></td>
  2273. <td></td>
  2274. <td class="paramtype">char&#160;</td>
  2275. <td class="paramname"><em>term</em>&#160;</td>
  2276. </tr>
  2277. <tr>
  2278. <td></td>
  2279. <td>)</td>
  2280. <td></td><td></td>
  2281. </tr>
  2282. </table>
  2283. </td>
  2284. <td class="mlabels-right">
  2285. <span class="mlabels"><span class="mlabel">inherited</span></span> </td>
  2286. </tr>
  2287. </table>
  2288. </div><div class="memdoc">
  2289. <p>Print a number followed by a field terminator. </p><dl class="params"><dt>Parameters</dt><dd>
  2290. <table class="params">
  2291. <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>The number to be printed. </td></tr>
  2292. <tr><td class="paramdir">[in]</td><td class="paramname">term</td><td>The field terminator. Use '\n' for CR LF. </td></tr>
  2293. </table>
  2294. </dd>
  2295. </dl>
  2296. <dl class="section return"><dt>Returns</dt><dd>The number of bytes written or -1 if an error occurs. </dd></dl>
  2297. </div>
  2298. </div>
  2299. <a class="anchor" id="a12a5d2de2737c201aa39ca1bd2ab9c47"></a>
  2300. <div class="memitem">
  2301. <div class="memproto">
  2302. <table class="mlabels">
  2303. <tr>
  2304. <td class="mlabels-left">
  2305. <table class="memname">
  2306. <tr>
  2307. <td class="memname">size_t FatFile::printFileSize </td>
  2308. <td>(</td>
  2309. <td class="paramtype"><a class="el" href="_fat_volume_8h.html#ac62f6449331cfe1a71f29be30efe7890">print_t</a> *&#160;</td>
  2310. <td class="paramname"><em>pr</em></td><td>)</td>
  2311. <td></td>
  2312. </tr>
  2313. </table>
  2314. </td>
  2315. <td class="mlabels-right">
  2316. <span class="mlabels"><span class="mlabel">inherited</span></span> </td>
  2317. </tr>
  2318. </table>
  2319. </div><div class="memdoc">
  2320. <p>Print a file's size.</p>
  2321. <dl class="params"><dt>Parameters</dt><dd>
  2322. <table class="params">
  2323. <tr><td class="paramdir">[in]</td><td class="paramname">pr</td><td>Print stream for output.</td></tr>
  2324. </table>
  2325. </dd>
  2326. </dl>
  2327. <dl class="section return"><dt>Returns</dt><dd>The number of characters printed is returned for success and zero is returned for failure. </dd></dl>
  2328. </div>
  2329. </div>
  2330. <a class="anchor" id="a05cee5df46a370bf916d3ba597c82e39"></a>
  2331. <div class="memitem">
  2332. <div class="memproto">
  2333. <table class="mlabels">
  2334. <tr>
  2335. <td class="mlabels-left">
  2336. <table class="memname">
  2337. <tr>
  2338. <td class="memname">bool FatFile::printModifyDateTime </td>
  2339. <td>(</td>
  2340. <td class="paramtype"><a class="el" href="_fat_volume_8h.html#ac62f6449331cfe1a71f29be30efe7890">print_t</a> *&#160;</td>
  2341. <td class="paramname"><em>pr</em></td><td>)</td>
  2342. <td></td>
  2343. </tr>
  2344. </table>
  2345. </td>
  2346. <td class="mlabels-right">
  2347. <span class="mlabels"><span class="mlabel">inherited</span></span> </td>
  2348. </tr>
  2349. </table>
  2350. </div><div class="memdoc">
  2351. <p>Print a file's modify date and time</p>
  2352. <dl class="params"><dt>Parameters</dt><dd>
  2353. <table class="params">
  2354. <tr><td class="paramdir">[in]</td><td class="paramname">pr</td><td>Print stream for output.</td></tr>
  2355. </table>
  2356. </dd>
  2357. </dl>
  2358. <dl class="section return"><dt>Returns</dt><dd>The value true is returned for success and the value false is returned for failure. </dd></dl>
  2359. </div>
  2360. </div>
  2361. <a class="anchor" id="ad1cbc3aeb0f5193b7a26595966da9621"></a>
  2362. <div class="memitem">
  2363. <div class="memproto">
  2364. <table class="mlabels">
  2365. <tr>
  2366. <td class="mlabels-left">
  2367. <table class="memname">
  2368. <tr>
  2369. <td class="memname">size_t FatFile::printName </td>
  2370. <td>(</td>
  2371. <td class="paramname"></td><td>)</td>
  2372. <td></td>
  2373. </tr>
  2374. </table>
  2375. </td>
  2376. <td class="mlabels-right">
  2377. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  2378. </tr>
  2379. </table>
  2380. </div><div class="memdoc">
  2381. <p>Print a file's name.</p>
  2382. <dl class="section return"><dt>Returns</dt><dd>The value true is returned for success and the value false is returned for failure. </dd></dl>
  2383. </div>
  2384. </div>
  2385. <a class="anchor" id="afe18a787fb8640e2d2483370c770f82f"></a>
  2386. <div class="memitem">
  2387. <div class="memproto">
  2388. <table class="mlabels">
  2389. <tr>
  2390. <td class="mlabels-left">
  2391. <table class="memname">
  2392. <tr>
  2393. <td class="memname">size_t FatFile::printName </td>
  2394. <td>(</td>
  2395. <td class="paramtype"><a class="el" href="_fat_volume_8h.html#ac62f6449331cfe1a71f29be30efe7890">print_t</a> *&#160;</td>
  2396. <td class="paramname"><em>pr</em></td><td>)</td>
  2397. <td></td>
  2398. </tr>
  2399. </table>
  2400. </td>
  2401. <td class="mlabels-right">
  2402. <span class="mlabels"><span class="mlabel">inherited</span></span> </td>
  2403. </tr>
  2404. </table>
  2405. </div><div class="memdoc">
  2406. <p>Print a file's name</p>
  2407. <dl class="params"><dt>Parameters</dt><dd>
  2408. <table class="params">
  2409. <tr><td class="paramdir">[in]</td><td class="paramname">pr</td><td>Print stream for output.</td></tr>
  2410. </table>
  2411. </dd>
  2412. </dl>
  2413. <dl class="section return"><dt>Returns</dt><dd>The value true is returned for success and the value false is returned for failure. </dd></dl>
  2414. </div>
  2415. </div>
  2416. <a class="anchor" id="a791cd7aade71f609aab62ec018aea3c0"></a>
  2417. <div class="memitem">
  2418. <div class="memproto">
  2419. <table class="mlabels">
  2420. <tr>
  2421. <td class="mlabels-left">
  2422. <table class="memname">
  2423. <tr>
  2424. <td class="memname">size_t FatFile::printSFN </td>
  2425. <td>(</td>
  2426. <td class="paramtype"><a class="el" href="_fat_volume_8h.html#ac62f6449331cfe1a71f29be30efe7890">print_t</a> *&#160;</td>
  2427. <td class="paramname"><em>pr</em></td><td>)</td>
  2428. <td></td>
  2429. </tr>
  2430. </table>
  2431. </td>
  2432. <td class="mlabels-right">
  2433. <span class="mlabels"><span class="mlabel">inherited</span></span> </td>
  2434. </tr>
  2435. </table>
  2436. </div><div class="memdoc">
  2437. <p>Print a file's Short <a class="el" href="class_file.html" title="Arduino SD.h style File API. ">File</a> Name.</p>
  2438. <dl class="params"><dt>Parameters</dt><dd>
  2439. <table class="params">
  2440. <tr><td class="paramdir">[in]</td><td class="paramname">pr</td><td>Print stream for output.</td></tr>
  2441. </table>
  2442. </dd>
  2443. </dl>
  2444. <dl class="section return"><dt>Returns</dt><dd>The number of characters printed is returned for success and zero is returned for failure. </dd></dl>
  2445. </div>
  2446. </div>
  2447. <a class="anchor" id="a60ae55ff6fe158c2340071d702a363c5"></a>
  2448. <div class="memitem">
  2449. <div class="memproto">
  2450. <table class="mlabels">
  2451. <tr>
  2452. <td class="mlabels-left">
  2453. <table class="memname">
  2454. <tr>
  2455. <td class="memname">int FatFile::read </td>
  2456. <td>(</td>
  2457. <td class="paramname"></td><td>)</td>
  2458. <td></td>
  2459. </tr>
  2460. </table>
  2461. </td>
  2462. <td class="mlabels-right">
  2463. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  2464. </tr>
  2465. </table>
  2466. </div><div class="memdoc">
  2467. <p>Read the next byte from a file.</p>
  2468. <dl class="section return"><dt>Returns</dt><dd>For success read returns the next byte in the file as an int. If an error occurs or end of file is reached -1 is returned. </dd></dl>
  2469. </div>
  2470. </div>
  2471. <a class="anchor" id="a200e6e0553d5b709520c9dfac9ef77dd"></a>
  2472. <div class="memitem">
  2473. <div class="memproto">
  2474. <table class="mlabels">
  2475. <tr>
  2476. <td class="mlabels-left">
  2477. <table class="memname">
  2478. <tr>
  2479. <td class="memname">int FatFile::read </td>
  2480. <td>(</td>
  2481. <td class="paramtype">void *&#160;</td>
  2482. <td class="paramname"><em>buf</em>, </td>
  2483. </tr>
  2484. <tr>
  2485. <td class="paramkey"></td>
  2486. <td></td>
  2487. <td class="paramtype">size_t&#160;</td>
  2488. <td class="paramname"><em>nbyte</em>&#160;</td>
  2489. </tr>
  2490. <tr>
  2491. <td></td>
  2492. <td>)</td>
  2493. <td></td><td></td>
  2494. </tr>
  2495. </table>
  2496. </td>
  2497. <td class="mlabels-right">
  2498. <span class="mlabels"><span class="mlabel">inherited</span></span> </td>
  2499. </tr>
  2500. </table>
  2501. </div><div class="memdoc">
  2502. <p>Read data from a file starting at the current position.</p>
  2503. <dl class="params"><dt>Parameters</dt><dd>
  2504. <table class="params">
  2505. <tr><td class="paramdir">[out]</td><td class="paramname">buf</td><td>Pointer to the location that will receive the data.</td></tr>
  2506. <tr><td class="paramdir">[in]</td><td class="paramname">nbyte</td><td>Maximum number of bytes to read.</td></tr>
  2507. </table>
  2508. </dd>
  2509. </dl>
  2510. <dl class="section return"><dt>Returns</dt><dd>For success <a class="el" href="class_fat_file.html#a60ae55ff6fe158c2340071d702a363c5">read()</a> returns the number of bytes read. A value less than <em>nbyte</em>, including zero, will be returned if end of file is reached. If an error occurs, <a class="el" href="class_fat_file.html#a60ae55ff6fe158c2340071d702a363c5">read()</a> returns -1. Possible errors include <a class="el" href="class_fat_file.html#a60ae55ff6fe158c2340071d702a363c5">read()</a> called before a file has been opened, corrupt file system or an I/O error occurred. </dd></dl>
  2511. </div>
  2512. </div>
  2513. <a class="anchor" id="a1325afe074c3efecff666678cd9f116a"></a>
  2514. <div class="memitem">
  2515. <div class="memproto">
  2516. <table class="mlabels">
  2517. <tr>
  2518. <td class="mlabels-left">
  2519. <table class="memname">
  2520. <tr>
  2521. <td class="memname">int8_t FatFile::readDir </td>
  2522. <td>(</td>
  2523. <td class="paramtype"><a class="el" href="_fat_structs_8h.html#a803db59d4e16a0c54a647afc6a7954e3">dir_t</a> *&#160;</td>
  2524. <td class="paramname"><em>dir</em></td><td>)</td>
  2525. <td></td>
  2526. </tr>
  2527. </table>
  2528. </td>
  2529. <td class="mlabels-right">
  2530. <span class="mlabels"><span class="mlabel">inherited</span></span> </td>
  2531. </tr>
  2532. </table>
  2533. </div><div class="memdoc">
  2534. <p>Read the next directory entry from a directory file.</p>
  2535. <dl class="params"><dt>Parameters</dt><dd>
  2536. <table class="params">
  2537. <tr><td class="paramdir">[out]</td><td class="paramname">dir</td><td>The dir_t struct that will receive the data.</td></tr>
  2538. </table>
  2539. </dd>
  2540. </dl>
  2541. <dl class="section return"><dt>Returns</dt><dd>For success <a class="el" href="class_fat_file.html#a1325afe074c3efecff666678cd9f116a">readDir()</a> returns the number of bytes read. A value of zero will be returned if end of file is reached. If an error occurs, <a class="el" href="class_fat_file.html#a1325afe074c3efecff666678cd9f116a">readDir()</a> returns -1. Possible errors include <a class="el" href="class_fat_file.html#a1325afe074c3efecff666678cd9f116a">readDir()</a> called before a directory has been opened, this is not a directory file or an I/O error occurred. </dd></dl>
  2542. </div>
  2543. </div>
  2544. <a class="anchor" id="ac837a537fbcca14c7aa390c5fc9f4e7c"></a>
  2545. <div class="memitem">
  2546. <div class="memproto">
  2547. <table class="mlabels">
  2548. <tr>
  2549. <td class="mlabels-left">
  2550. <table class="memname">
  2551. <tr>
  2552. <td class="memname">bool FatFile::remove </td>
  2553. <td>(</td>
  2554. <td class="paramname"></td><td>)</td>
  2555. <td></td>
  2556. </tr>
  2557. </table>
  2558. </td>
  2559. <td class="mlabels-right">
  2560. <span class="mlabels"><span class="mlabel">inherited</span></span> </td>
  2561. </tr>
  2562. </table>
  2563. </div><div class="memdoc">
  2564. <p>Remove a file.</p>
  2565. <p>The directory entry and all data for the file are deleted.</p>
  2566. <dl class="section note"><dt>Note</dt><dd>This function should not be used to delete the 8.3 version of a file that has a long name. For example if a file has the long name "New Text Document.txt" you should not delete the 8.3 name "NEWTEX~1.TXT".</dd></dl>
  2567. <dl class="section return"><dt>Returns</dt><dd>The value true is returned for success and the value false is returned for failure. </dd></dl>
  2568. </div>
  2569. </div>
  2570. <a class="anchor" id="afe820bbb056863e91ec482961c8dc695"></a>
  2571. <div class="memitem">
  2572. <div class="memproto">
  2573. <table class="mlabels">
  2574. <tr>
  2575. <td class="mlabels-left">
  2576. <table class="memname">
  2577. <tr>
  2578. <td class="memname">bool FatFile::remove </td>
  2579. <td>(</td>
  2580. <td class="paramtype"><a class="el" href="class_fat_file.html">FatFile</a> *&#160;</td>
  2581. <td class="paramname"><em>dirFile</em>, </td>
  2582. </tr>
  2583. <tr>
  2584. <td class="paramkey"></td>
  2585. <td></td>
  2586. <td class="paramtype">const char *&#160;</td>
  2587. <td class="paramname"><em>path</em>&#160;</td>
  2588. </tr>
  2589. <tr>
  2590. <td></td>
  2591. <td>)</td>
  2592. <td></td><td></td>
  2593. </tr>
  2594. </table>
  2595. </td>
  2596. <td class="mlabels-right">
  2597. <span class="mlabels"><span class="mlabel">static</span><span class="mlabel">inherited</span></span> </td>
  2598. </tr>
  2599. </table>
  2600. </div><div class="memdoc">
  2601. <p>Remove a file.</p>
  2602. <p>The directory entry and all data for the file are deleted.</p>
  2603. <dl class="params"><dt>Parameters</dt><dd>
  2604. <table class="params">
  2605. <tr><td class="paramdir">[in]</td><td class="paramname">dirFile</td><td>The directory that contains the file. </td></tr>
  2606. <tr><td class="paramdir">[in]</td><td class="paramname">path</td><td>Path for the file to be removed.</td></tr>
  2607. </table>
  2608. </dd>
  2609. </dl>
  2610. <dl class="section note"><dt>Note</dt><dd>This function should not be used to delete the 8.3 version of a file that has a long name. For example if a file has the long name "New Text Document.txt" you should not delete the 8.3 name "NEWTEX~1.TXT".</dd></dl>
  2611. <dl class="section return"><dt>Returns</dt><dd>The value true is returned for success and the value false is returned for failure. </dd></dl>
  2612. </div>
  2613. </div>
  2614. <a class="anchor" id="a4b42f2454ff462555c07ea094a92a1e0"></a>
  2615. <div class="memitem">
  2616. <div class="memproto">
  2617. <table class="mlabels">
  2618. <tr>
  2619. <td class="mlabels-left">
  2620. <table class="memname">
  2621. <tr>
  2622. <td class="memname">bool FatFile::rename </td>
  2623. <td>(</td>
  2624. <td class="paramtype"><a class="el" href="class_fat_file.html">FatFile</a> *&#160;</td>
  2625. <td class="paramname"><em>dirFile</em>, </td>
  2626. </tr>
  2627. <tr>
  2628. <td class="paramkey"></td>
  2629. <td></td>
  2630. <td class="paramtype">const char *&#160;</td>
  2631. <td class="paramname"><em>newPath</em>&#160;</td>
  2632. </tr>
  2633. <tr>
  2634. <td></td>
  2635. <td>)</td>
  2636. <td></td><td></td>
  2637. </tr>
  2638. </table>
  2639. </td>
  2640. <td class="mlabels-right">
  2641. <span class="mlabels"><span class="mlabel">inherited</span></span> </td>
  2642. </tr>
  2643. </table>
  2644. </div><div class="memdoc">
  2645. <p>Rename a file or subdirectory.</p>
  2646. <dl class="params"><dt>Parameters</dt><dd>
  2647. <table class="params">
  2648. <tr><td class="paramdir">[in]</td><td class="paramname">dirFile</td><td>Directory for the new path. </td></tr>
  2649. <tr><td class="paramdir">[in]</td><td class="paramname">newPath</td><td>New path name for the file/directory.</td></tr>
  2650. </table>
  2651. </dd>
  2652. </dl>
  2653. <dl class="section return"><dt>Returns</dt><dd>The value true is returned for success and the value false is returned for failure. </dd></dl>
  2654. </div>
  2655. </div>
  2656. <a class="anchor" id="a5aac6e0b3cb08fc8b8668e916a8b0ca5"></a>
  2657. <div class="memitem">
  2658. <div class="memproto">
  2659. <table class="mlabels">
  2660. <tr>
  2661. <td class="mlabels-left">
  2662. <table class="memname">
  2663. <tr>
  2664. <td class="memname">void FatFile::rewind </td>
  2665. <td>(</td>
  2666. <td class="paramname"></td><td>)</td>
  2667. <td></td>
  2668. </tr>
  2669. </table>
  2670. </td>
  2671. <td class="mlabels-right">
  2672. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  2673. </tr>
  2674. </table>
  2675. </div><div class="memdoc">
  2676. <p>Set the file's current position to zero. </p>
  2677. </div>
  2678. </div>
  2679. <a class="anchor" id="a9515bac181d33e7f0125e88fa2ccd283"></a>
  2680. <div class="memitem">
  2681. <div class="memproto">
  2682. <table class="mlabels">
  2683. <tr>
  2684. <td class="mlabels-left">
  2685. <table class="memname">
  2686. <tr>
  2687. <td class="memname">bool FatFile::rmdir </td>
  2688. <td>(</td>
  2689. <td class="paramname"></td><td>)</td>
  2690. <td></td>
  2691. </tr>
  2692. </table>
  2693. </td>
  2694. <td class="mlabels-right">
  2695. <span class="mlabels"><span class="mlabel">inherited</span></span> </td>
  2696. </tr>
  2697. </table>
  2698. </div><div class="memdoc">
  2699. <p>Remove a directory file.</p>
  2700. <p>The directory file will be removed only if it is empty and is not the root directory. <a class="el" href="class_fat_file.html#a9515bac181d33e7f0125e88fa2ccd283">rmdir()</a> follows DOS and Windows and ignores the read-only attribute for the directory.</p>
  2701. <dl class="section note"><dt>Note</dt><dd>This function should not be used to delete the 8.3 version of a directory that has a long name. For example if a directory has the long name "New folder" you should not delete the 8.3 name "NEWFOL~1".</dd></dl>
  2702. <dl class="section return"><dt>Returns</dt><dd>The value true is returned for success and the value false is returned for failure. </dd></dl>
  2703. </div>
  2704. </div>
  2705. <a class="anchor" id="ac780a80526f86d3def701ecdc99d8bfe"></a>
  2706. <div class="memitem">
  2707. <div class="memproto">
  2708. <table class="mlabels">
  2709. <tr>
  2710. <td class="mlabels-left">
  2711. <table class="memname">
  2712. <tr>
  2713. <td class="memname">bool FatFile::rmRfStar </td>
  2714. <td>(</td>
  2715. <td class="paramname"></td><td>)</td>
  2716. <td></td>
  2717. </tr>
  2718. </table>
  2719. </td>
  2720. <td class="mlabels-right">
  2721. <span class="mlabels"><span class="mlabel">inherited</span></span> </td>
  2722. </tr>
  2723. </table>
  2724. </div><div class="memdoc">
  2725. <p>Recursively delete a directory and all contained files.</p>
  2726. <p>This is like the Unix/Linux 'rm -rf *' if called with the root directory hence the name.</p>
  2727. <p>Warning - This will remove all contents of the directory including subdirectories. The directory will then be removed if it is not root. The read-only attribute for files will be ignored.</p>
  2728. <dl class="section note"><dt>Note</dt><dd>This function should not be used to delete the 8.3 version of a directory that has a long name. See <a class="el" href="class_fat_file.html#ac837a537fbcca14c7aa390c5fc9f4e7c">remove()</a> and <a class="el" href="class_fat_file.html#a9515bac181d33e7f0125e88fa2ccd283">rmdir()</a>.</dd></dl>
  2729. <dl class="section return"><dt>Returns</dt><dd>The value true is returned for success and the value false is returned for failure. </dd></dl>
  2730. </div>
  2731. </div>
  2732. <a class="anchor" id="a5812037ea30777cc350698ad26f2c73f"></a>
  2733. <div class="memitem">
  2734. <div class="memproto">
  2735. <table class="mlabels">
  2736. <tr>
  2737. <td class="mlabels-left">
  2738. <table class="memname">
  2739. <tr>
  2740. <td class="memname">bool FatFile::seekCur </td>
  2741. <td>(</td>
  2742. <td class="paramtype">int32_t&#160;</td>
  2743. <td class="paramname"><em>offset</em></td><td>)</td>
  2744. <td></td>
  2745. </tr>
  2746. </table>
  2747. </td>
  2748. <td class="mlabels-right">
  2749. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  2750. </tr>
  2751. </table>
  2752. </div><div class="memdoc">
  2753. <p>Set the files position to current position + <em>pos</em>. See <a class="el" href="class_fat_file.html#ab067190d25733ed7e697d9890f61fd7a">seekSet()</a>. </p><dl class="params"><dt>Parameters</dt><dd>
  2754. <table class="params">
  2755. <tr><td class="paramdir">[in]</td><td class="paramname">offset</td><td>The new position in bytes from the current position. </td></tr>
  2756. </table>
  2757. </dd>
  2758. </dl>
  2759. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  2760. </div>
  2761. </div>
  2762. <a class="anchor" id="a84f677f4e75ef6fa2eb632f4cdf6b486"></a>
  2763. <div class="memitem">
  2764. <div class="memproto">
  2765. <table class="mlabels">
  2766. <tr>
  2767. <td class="mlabels-left">
  2768. <table class="memname">
  2769. <tr>
  2770. <td class="memname">bool FatFile::seekEnd </td>
  2771. <td>(</td>
  2772. <td class="paramtype">int32_t&#160;</td>
  2773. <td class="paramname"><em>offset</em> = <code>0</code></td><td>)</td>
  2774. <td></td>
  2775. </tr>
  2776. </table>
  2777. </td>
  2778. <td class="mlabels-right">
  2779. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  2780. </tr>
  2781. </table>
  2782. </div><div class="memdoc">
  2783. <p>Set the files position to end-of-file + <em>offset</em>. See <a class="el" href="class_fat_file.html#ab067190d25733ed7e697d9890f61fd7a">seekSet()</a>. Can't be used for directory files since file size is not defined. </p><dl class="params"><dt>Parameters</dt><dd>
  2784. <table class="params">
  2785. <tr><td class="paramdir">[in]</td><td class="paramname">offset</td><td>The new position in bytes from end-of-file. </td></tr>
  2786. </table>
  2787. </dd>
  2788. </dl>
  2789. <dl class="section return"><dt>Returns</dt><dd>true for success or false for failure. </dd></dl>
  2790. </div>
  2791. </div>
  2792. <a class="anchor" id="ab067190d25733ed7e697d9890f61fd7a"></a>
  2793. <div class="memitem">
  2794. <div class="memproto">
  2795. <table class="mlabels">
  2796. <tr>
  2797. <td class="mlabels-left">
  2798. <table class="memname">
  2799. <tr>
  2800. <td class="memname">bool FatFile::seekSet </td>
  2801. <td>(</td>
  2802. <td class="paramtype">uint32_t&#160;</td>
  2803. <td class="paramname"><em>pos</em></td><td>)</td>
  2804. <td></td>
  2805. </tr>
  2806. </table>
  2807. </td>
  2808. <td class="mlabels-right">
  2809. <span class="mlabels"><span class="mlabel">inherited</span></span> </td>
  2810. </tr>
  2811. </table>
  2812. </div><div class="memdoc">
  2813. <p>Sets a file's position.</p>
  2814. <dl class="params"><dt>Parameters</dt><dd>
  2815. <table class="params">
  2816. <tr><td class="paramdir">[in]</td><td class="paramname">pos</td><td>The new position in bytes from the beginning of the file.</td></tr>
  2817. </table>
  2818. </dd>
  2819. </dl>
  2820. <dl class="section return"><dt>Returns</dt><dd>The value true is returned for success and the value false is returned for failure. </dd></dl>
  2821. </div>
  2822. </div>
  2823. <a class="anchor" id="a360ef9c05e677271bed6c0a4d663634c"></a>
  2824. <div class="memitem">
  2825. <div class="memproto">
  2826. <table class="mlabels">
  2827. <tr>
  2828. <td class="mlabels-left">
  2829. <table class="memname">
  2830. <tr>
  2831. <td class="memname">static bool FatFile::setCwd </td>
  2832. <td>(</td>
  2833. <td class="paramtype"><a class="el" href="class_fat_file.html">FatFile</a> *&#160;</td>
  2834. <td class="paramname"><em>dir</em></td><td>)</td>
  2835. <td></td>
  2836. </tr>
  2837. </table>
  2838. </td>
  2839. <td class="mlabels-right">
  2840. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span><span class="mlabel">inherited</span></span> </td>
  2841. </tr>
  2842. </table>
  2843. </div><div class="memdoc">
  2844. <p>Set the current working directory.</p>
  2845. <dl class="params"><dt>Parameters</dt><dd>
  2846. <table class="params">
  2847. <tr><td class="paramdir">[in]</td><td class="paramname">dir</td><td>New current working directory.</td></tr>
  2848. </table>
  2849. </dd>
  2850. </dl>
  2851. <dl class="section return"><dt>Returns</dt><dd>true for success else false. </dd></dl>
  2852. </div>
  2853. </div>
  2854. <a class="anchor" id="acf264de4e3ca36c5e8a39e56173c9044"></a>
  2855. <div class="memitem">
  2856. <div class="memproto">
  2857. <table class="mlabels">
  2858. <tr>
  2859. <td class="mlabels-left">
  2860. <table class="memname">
  2861. <tr>
  2862. <td class="memname">void FatFile::setpos </td>
  2863. <td>(</td>
  2864. <td class="paramtype"><a class="el" href="struct_fat_pos__t.html">FatPos_t</a> *&#160;</td>
  2865. <td class="paramname"><em>pos</em></td><td>)</td>
  2866. <td></td>
  2867. </tr>
  2868. </table>
  2869. </td>
  2870. <td class="mlabels-right">
  2871. <span class="mlabels"><span class="mlabel">inherited</span></span> </td>
  2872. </tr>
  2873. </table>
  2874. </div><div class="memdoc">
  2875. <p>set position for streams </p><dl class="params"><dt>Parameters</dt><dd>
  2876. <table class="params">
  2877. <tr><td class="paramdir">[out]</td><td class="paramname">pos</td><td>struct with value for new position </td></tr>
  2878. </table>
  2879. </dd>
  2880. </dl>
  2881. </div>
  2882. </div>
  2883. <a class="anchor" id="a67f3dc4896c542d695e11aac927f585e"></a>
  2884. <div class="memitem">
  2885. <div class="memproto">
  2886. <table class="mlabels">
  2887. <tr>
  2888. <td class="mlabels-left">
  2889. <table class="memname">
  2890. <tr>
  2891. <td class="memname">bool FatFile::sync </td>
  2892. <td>(</td>
  2893. <td class="paramname"></td><td>)</td>
  2894. <td></td>
  2895. </tr>
  2896. </table>
  2897. </td>
  2898. <td class="mlabels-right">
  2899. <span class="mlabels"><span class="mlabel">inherited</span></span> </td>
  2900. </tr>
  2901. </table>
  2902. </div><div class="memdoc">
  2903. <p>The <a class="el" href="class_fat_file.html#a67f3dc4896c542d695e11aac927f585e">sync()</a> call causes all modified data and directory fields to be written to the storage device.</p>
  2904. <dl class="section return"><dt>Returns</dt><dd>The value true is returned for success and the value false is returned for failure. </dd></dl>
  2905. </div>
  2906. </div>
  2907. <a class="anchor" id="aa53a8d1d2467ad9af7d61cbf8ee85243"></a>
  2908. <div class="memitem">
  2909. <div class="memproto">
  2910. <table class="mlabels">
  2911. <tr>
  2912. <td class="mlabels-left">
  2913. <table class="memname">
  2914. <tr>
  2915. <td class="memname">bool FatFile::timestamp </td>
  2916. <td>(</td>
  2917. <td class="paramtype"><a class="el" href="class_fat_file.html">FatFile</a> *&#160;</td>
  2918. <td class="paramname"><em>file</em></td><td>)</td>
  2919. <td></td>
  2920. </tr>
  2921. </table>
  2922. </td>
  2923. <td class="mlabels-right">
  2924. <span class="mlabels"><span class="mlabel">inherited</span></span> </td>
  2925. </tr>
  2926. </table>
  2927. </div><div class="memdoc">
  2928. <p>Copy a file's timestamps</p>
  2929. <dl class="params"><dt>Parameters</dt><dd>
  2930. <table class="params">
  2931. <tr><td class="paramdir">[in]</td><td class="paramname">file</td><td><a class="el" href="class_file.html" title="Arduino SD.h style File API. ">File</a> to copy timestamps from.</td></tr>
  2932. </table>
  2933. </dd>
  2934. </dl>
  2935. <dl class="section note"><dt>Note</dt><dd>Modify and access timestamps may be overwritten if a date time callback function has been set by <a class="el" href="class_fat_file.html#a29a623f50df057e8b49045ba6611ec2b">dateTimeCallback()</a>.</dd></dl>
  2936. <dl class="section return"><dt>Returns</dt><dd>The value true is returned for success and the value false is returned for failure. </dd></dl>
  2937. </div>
  2938. </div>
  2939. <a class="anchor" id="a56dabdf73833b7e961c4530eb8e16d23"></a>
  2940. <div class="memitem">
  2941. <div class="memproto">
  2942. <table class="mlabels">
  2943. <tr>
  2944. <td class="mlabels-left">
  2945. <table class="memname">
  2946. <tr>
  2947. <td class="memname">bool FatFile::timestamp </td>
  2948. <td>(</td>
  2949. <td class="paramtype">uint8_t&#160;</td>
  2950. <td class="paramname"><em>flags</em>, </td>
  2951. </tr>
  2952. <tr>
  2953. <td class="paramkey"></td>
  2954. <td></td>
  2955. <td class="paramtype">uint16_t&#160;</td>
  2956. <td class="paramname"><em>year</em>, </td>
  2957. </tr>
  2958. <tr>
  2959. <td class="paramkey"></td>
  2960. <td></td>
  2961. <td class="paramtype">uint8_t&#160;</td>
  2962. <td class="paramname"><em>month</em>, </td>
  2963. </tr>
  2964. <tr>
  2965. <td class="paramkey"></td>
  2966. <td></td>
  2967. <td class="paramtype">uint8_t&#160;</td>
  2968. <td class="paramname"><em>day</em>, </td>
  2969. </tr>
  2970. <tr>
  2971. <td class="paramkey"></td>
  2972. <td></td>
  2973. <td class="paramtype">uint8_t&#160;</td>
  2974. <td class="paramname"><em>hour</em>, </td>
  2975. </tr>
  2976. <tr>
  2977. <td class="paramkey"></td>
  2978. <td></td>
  2979. <td class="paramtype">uint8_t&#160;</td>
  2980. <td class="paramname"><em>minute</em>, </td>
  2981. </tr>
  2982. <tr>
  2983. <td class="paramkey"></td>
  2984. <td></td>
  2985. <td class="paramtype">uint8_t&#160;</td>
  2986. <td class="paramname"><em>second</em>&#160;</td>
  2987. </tr>
  2988. <tr>
  2989. <td></td>
  2990. <td>)</td>
  2991. <td></td><td></td>
  2992. </tr>
  2993. </table>
  2994. </td>
  2995. <td class="mlabels-right">
  2996. <span class="mlabels"><span class="mlabel">inherited</span></span> </td>
  2997. </tr>
  2998. </table>
  2999. </div><div class="memdoc">
  3000. <p>Set a file's timestamps in its directory entry.</p>
  3001. <dl class="params"><dt>Parameters</dt><dd>
  3002. <table class="params">
  3003. <tr><td class="paramdir">[in]</td><td class="paramname">flags</td><td>Values for <em>flags</em> are constructed by a bitwise-inclusive OR of flags from the following list</td></tr>
  3004. </table>
  3005. </dd>
  3006. </dl>
  3007. <p>T_ACCESS - Set the file's last access date.</p>
  3008. <p>T_CREATE - Set the file's creation date and time.</p>
  3009. <p>T_WRITE - Set the file's last write/modification date and time.</p>
  3010. <dl class="params"><dt>Parameters</dt><dd>
  3011. <table class="params">
  3012. <tr><td class="paramdir">[in]</td><td class="paramname">year</td><td>Valid range 1980 - 2107 inclusive.</td></tr>
  3013. <tr><td class="paramdir">[in]</td><td class="paramname">month</td><td>Valid range 1 - 12 inclusive.</td></tr>
  3014. <tr><td class="paramdir">[in]</td><td class="paramname">day</td><td>Valid range 1 - 31 inclusive.</td></tr>
  3015. <tr><td class="paramdir">[in]</td><td class="paramname">hour</td><td>Valid range 0 - 23 inclusive.</td></tr>
  3016. <tr><td class="paramdir">[in]</td><td class="paramname">minute</td><td>Valid range 0 - 59 inclusive.</td></tr>
  3017. <tr><td class="paramdir">[in]</td><td class="paramname">second</td><td>Valid range 0 - 59 inclusive</td></tr>
  3018. </table>
  3019. </dd>
  3020. </dl>
  3021. <dl class="section note"><dt>Note</dt><dd>It is possible to set an invalid date since there is no check for the number of days in a month.</dd>
  3022. <dd>
  3023. Modify and access timestamps may be overwritten if a date time callback function has been set by <a class="el" href="class_fat_file.html#a29a623f50df057e8b49045ba6611ec2b">dateTimeCallback()</a>.</dd></dl>
  3024. <dl class="section return"><dt>Returns</dt><dd>The value true is returned for success and the value false is returned for failure. </dd></dl>
  3025. </div>
  3026. </div>
  3027. <a class="anchor" id="aa6e663098a578635d37d92e82d18d616"></a>
  3028. <div class="memitem">
  3029. <div class="memproto">
  3030. <table class="mlabels">
  3031. <tr>
  3032. <td class="mlabels-left">
  3033. <table class="memname">
  3034. <tr>
  3035. <td class="memname">bool FatFile::truncate </td>
  3036. <td>(</td>
  3037. <td class="paramtype">uint32_t&#160;</td>
  3038. <td class="paramname"><em>length</em></td><td>)</td>
  3039. <td></td>
  3040. </tr>
  3041. </table>
  3042. </td>
  3043. <td class="mlabels-right">
  3044. <span class="mlabels"><span class="mlabel">inherited</span></span> </td>
  3045. </tr>
  3046. </table>
  3047. </div><div class="memdoc">
  3048. <p>Truncate a file to a specified length. The current file position will be maintained if it is less than or equal to <em>length</em> otherwise it will be set to end of file.</p>
  3049. <dl class="params"><dt>Parameters</dt><dd>
  3050. <table class="params">
  3051. <tr><td class="paramdir">[in]</td><td class="paramname">length</td><td>The desired length for the file.</td></tr>
  3052. </table>
  3053. </dd>
  3054. </dl>
  3055. <dl class="section return"><dt>Returns</dt><dd>The value true is returned for success and the value false is returned for failure. </dd></dl>
  3056. </div>
  3057. </div>
  3058. <a class="anchor" id="a3c64bd8a9abb9a6461d4addb405614df"></a>
  3059. <div class="memitem">
  3060. <div class="memproto">
  3061. <table class="mlabels">
  3062. <tr>
  3063. <td class="mlabels-left">
  3064. <table class="memname">
  3065. <tr>
  3066. <td class="memname"><a class="el" href="class_fat_volume.html">FatVolume</a>* FatFile::volume </td>
  3067. <td>(</td>
  3068. <td class="paramname"></td><td>)</td>
  3069. <td> const</td>
  3070. </tr>
  3071. </table>
  3072. </td>
  3073. <td class="mlabels-right">
  3074. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  3075. </tr>
  3076. </table>
  3077. </div><div class="memdoc">
  3078. <dl class="section return"><dt>Returns</dt><dd><a class="el" href="class_fat_volume.html" title="Access FAT16 and FAT32 volumes on raw file devices. ">FatVolume</a> that contains this file. </dd></dl>
  3079. </div>
  3080. </div>
  3081. <a class="anchor" id="aa4a5b81161994cea07938702cdfce49f"></a>
  3082. <div class="memitem">
  3083. <div class="memproto">
  3084. <table class="mlabels">
  3085. <tr>
  3086. <td class="mlabels-left">
  3087. <table class="memname">
  3088. <tr>
  3089. <td class="memname">int FatFile::write </td>
  3090. <td>(</td>
  3091. <td class="paramtype">const char *&#160;</td>
  3092. <td class="paramname"><em>str</em></td><td>)</td>
  3093. <td></td>
  3094. </tr>
  3095. </table>
  3096. </td>
  3097. <td class="mlabels-right">
  3098. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  3099. </tr>
  3100. </table>
  3101. </div><div class="memdoc">
  3102. <p>Write a string to a file. Used by the Arduino Print class. </p><dl class="params"><dt>Parameters</dt><dd>
  3103. <table class="params">
  3104. <tr><td class="paramdir">[in]</td><td class="paramname">str</td><td>Pointer to the string. Use getWriteError to check for errors. </td></tr>
  3105. </table>
  3106. </dd>
  3107. </dl>
  3108. <dl class="section return"><dt>Returns</dt><dd>count of characters written for success or -1 for failure. </dd></dl>
  3109. </div>
  3110. </div>
  3111. <a class="anchor" id="a5524bd9f3b8f54ee163e391cba618186"></a>
  3112. <div class="memitem">
  3113. <div class="memproto">
  3114. <table class="mlabels">
  3115. <tr>
  3116. <td class="mlabels-left">
  3117. <table class="memname">
  3118. <tr>
  3119. <td class="memname">int FatFile::write </td>
  3120. <td>(</td>
  3121. <td class="paramtype">uint8_t&#160;</td>
  3122. <td class="paramname"><em>b</em></td><td>)</td>
  3123. <td></td>
  3124. </tr>
  3125. </table>
  3126. </td>
  3127. <td class="mlabels-right">
  3128. <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">inherited</span></span> </td>
  3129. </tr>
  3130. </table>
  3131. </div><div class="memdoc">
  3132. <p>Write a single byte. </p><dl class="params"><dt>Parameters</dt><dd>
  3133. <table class="params">
  3134. <tr><td class="paramdir">[in]</td><td class="paramname">b</td><td>The byte to be written. </td></tr>
  3135. </table>
  3136. </dd>
  3137. </dl>
  3138. <dl class="section return"><dt>Returns</dt><dd>+1 for success or -1 for failure. </dd></dl>
  3139. </div>
  3140. </div>
  3141. <a class="anchor" id="a0ab9df44a9ee4b6eb0a78f15f1e30004"></a>
  3142. <div class="memitem">
  3143. <div class="memproto">
  3144. <table class="mlabels">
  3145. <tr>
  3146. <td class="mlabels-left">
  3147. <table class="memname">
  3148. <tr>
  3149. <td class="memname">int FatFile::write </td>
  3150. <td>(</td>
  3151. <td class="paramtype">const void *&#160;</td>
  3152. <td class="paramname"><em>buf</em>, </td>
  3153. </tr>
  3154. <tr>
  3155. <td class="paramkey"></td>
  3156. <td></td>
  3157. <td class="paramtype">size_t&#160;</td>
  3158. <td class="paramname"><em>nbyte</em>&#160;</td>
  3159. </tr>
  3160. <tr>
  3161. <td></td>
  3162. <td>)</td>
  3163. <td></td><td></td>
  3164. </tr>
  3165. </table>
  3166. </td>
  3167. <td class="mlabels-right">
  3168. <span class="mlabels"><span class="mlabel">inherited</span></span> </td>
  3169. </tr>
  3170. </table>
  3171. </div><div class="memdoc">
  3172. <p>Write data to an open file.</p>
  3173. <dl class="section note"><dt>Note</dt><dd>Data is moved to the cache but may not be written to the storage device until <a class="el" href="class_fat_file.html#a67f3dc4896c542d695e11aac927f585e">sync()</a> is called.</dd></dl>
  3174. <dl class="params"><dt>Parameters</dt><dd>
  3175. <table class="params">
  3176. <tr><td class="paramdir">[in]</td><td class="paramname">buf</td><td>Pointer to the location of the data to be written.</td></tr>
  3177. <tr><td class="paramdir">[in]</td><td class="paramname">nbyte</td><td>Number of bytes to write.</td></tr>
  3178. </table>
  3179. </dd>
  3180. </dl>
  3181. <dl class="section return"><dt>Returns</dt><dd>For success <a class="el" href="class_fat_file.html#aa4a5b81161994cea07938702cdfce49f">write()</a> returns the number of bytes written, always <em>nbyte</em>. If an error occurs, <a class="el" href="class_fat_file.html#aa4a5b81161994cea07938702cdfce49f">write()</a> returns -1. Possible errors include <a class="el" href="class_fat_file.html#aa4a5b81161994cea07938702cdfce49f">write()</a> is called before a file has been opened, write is called for a read-only file, device is full, a corrupt file system or an I/O error. </dd></dl>
  3182. </div>
  3183. </div>
  3184. <hr/>The documentation for this class was generated from the following file:<ul>
  3185. <li>Arduino/libraries/SdFat/src/<a class="el" href="_sd_fat_8h.html">SdFat.h</a></li>
  3186. </ul>
  3187. </div><!-- contents -->
  3188. <!-- start footer part -->
  3189. <hr class="footer"/><address class="footer"><small>
  3190. Generated on Mon Sep 5 2016 10:18:52 for SdFat by &#160;<a href="http://www.doxygen.org/index.html">
  3191. <img class="footer" src="doxygen.png" alt="doxygen"/>
  3192. </a> 1.8.10
  3193. </small></address>
  3194. </body>
  3195. </html>