Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

class_sd_file.html 150KB

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