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

252 lines
11KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.14"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>SdFat: MinimumSerial Class Reference</title>
  9. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  13. <script type="text/javascript" src="search/searchdata.js"></script>
  14. <script type="text/javascript" src="search/search.js"></script>
  15. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  19. <div id="titlearea">
  20. <table cellspacing="0" cellpadding="0">
  21. <tbody>
  22. <tr style="height: 56px;">
  23. <td id="projectalign" style="padding-left: 0.5em;">
  24. <div id="projectname">SdFat
  25. </div>
  26. </td>
  27. </tr>
  28. </tbody>
  29. </table>
  30. </div>
  31. <!-- end header part -->
  32. <!-- Generated by Doxygen 1.8.14 -->
  33. <script type="text/javascript">
  34. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  35. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  36. /* @license-end */
  37. </script>
  38. <script type="text/javascript" src="menudata.js"></script>
  39. <script type="text/javascript" src="menu.js"></script>
  40. <script type="text/javascript">
  41. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  42. $(function() {
  43. initMenu('',true,false,'search.php','Search');
  44. $(document).ready(function() { init_search(); });
  45. });
  46. /* @license-end */</script>
  47. <div id="main-nav"></div>
  48. <!-- window showing the filter options -->
  49. <div id="MSearchSelectWindow"
  50. onmouseover="return searchBox.OnSearchSelectShow()"
  51. onmouseout="return searchBox.OnSearchSelectHide()"
  52. onkeydown="return searchBox.OnSearchSelectKey(event)">
  53. </div>
  54. <!-- iframe showing the search results (closed by default) -->
  55. <div id="MSearchResultsWindow">
  56. <iframe src="javascript:void(0)" frameborder="0"
  57. name="MSearchResults" id="MSearchResults">
  58. </iframe>
  59. </div>
  60. </div><!-- top -->
  61. <div class="header">
  62. <div class="summary">
  63. <a href="#pub-methods">Public Member Functions</a> &#124;
  64. <a href="class_minimum_serial-members.html">List of all members</a> </div>
  65. <div class="headertitle">
  66. <div class="title">MinimumSerial Class Reference</div> </div>
  67. </div><!--header-->
  68. <div class="contents">
  69. <p>mini serial class for the SdFat library.
  70. <a href="class_minimum_serial.html#details">More...</a></p>
  71. <p><code>#include &lt;MinimumSerial.h&gt;</code></p>
  72. <div class="dynheader">
  73. Inheritance diagram for MinimumSerial:</div>
  74. <div class="dyncontent">
  75. <div class="center"><img src="class_minimum_serial__inherit__graph.png" border="0" usemap="#_minimum_serial_inherit__map" alt="Inheritance graph"/></div>
  76. <map name="_minimum_serial_inherit__map" id="_minimum_serial_inherit__map">
  77. </map>
  78. <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
  79. <div class="dynheader">
  80. Collaboration diagram for MinimumSerial:</div>
  81. <div class="dyncontent">
  82. <div class="center"><img src="class_minimum_serial__coll__graph.png" border="0" usemap="#_minimum_serial_coll__map" alt="Collaboration graph"/></div>
  83. <map name="_minimum_serial_coll__map" id="_minimum_serial_coll__map">
  84. </map>
  85. <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
  86. <table class="memberdecls">
  87. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  88. Public Member Functions</h2></td></tr>
  89. <tr class="memitem:a2abe4370989968938b5dc4872d51c3df"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_minimum_serial.html#a2abe4370989968938b5dc4872d51c3df">available</a> ()</td></tr>
  90. <tr class="separator:a2abe4370989968938b5dc4872d51c3df"><td class="memSeparator" colspan="2">&#160;</td></tr>
  91. <tr class="memitem:a5c56beb3472bb97f949defeecacda52c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_minimum_serial.html#a5c56beb3472bb97f949defeecacda52c">begin</a> (uint32_t baud)</td></tr>
  92. <tr class="separator:a5c56beb3472bb97f949defeecacda52c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  93. <tr class="memitem:a872f0ff70f0e256352004f83d13fff28"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_minimum_serial.html#a872f0ff70f0e256352004f83d13fff28">flush</a> ()</td></tr>
  94. <tr class="separator:a872f0ff70f0e256352004f83d13fff28"><td class="memSeparator" colspan="2">&#160;</td></tr>
  95. <tr class="memitem:a73a1a2a92604ecb8507afde0022aedd8"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_minimum_serial.html#a73a1a2a92604ecb8507afde0022aedd8">operator bool</a> ()</td></tr>
  96. <tr class="separator:a73a1a2a92604ecb8507afde0022aedd8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  97. <tr class="memitem:a4890dd60f2ffb61eba0821cc80d411ad"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_minimum_serial.html#a4890dd60f2ffb61eba0821cc80d411ad">read</a> ()</td></tr>
  98. <tr class="separator:a4890dd60f2ffb61eba0821cc80d411ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
  99. <tr class="memitem:a0ca1d9631fe5f2f00878bd481dbbd3aa"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_minimum_serial.html#a0ca1d9631fe5f2f00878bd481dbbd3aa">write</a> (uint8_t b)</td></tr>
  100. <tr class="separator:a0ca1d9631fe5f2f00878bd481dbbd3aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
  101. </table>
  102. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  103. <div class="textblock"><p>mini serial class for the SdFat library. </p>
  104. </div><h2 class="groupheader">Member Function Documentation</h2>
  105. <a id="a2abe4370989968938b5dc4872d51c3df"></a>
  106. <h2 class="memtitle"><span class="permalink"><a href="#a2abe4370989968938b5dc4872d51c3df">&#9670;&nbsp;</a></span>available()</h2>
  107. <div class="memitem">
  108. <div class="memproto">
  109. <table class="memname">
  110. <tr>
  111. <td class="memname">int MinimumSerial::available </td>
  112. <td>(</td>
  113. <td class="paramname"></td><td>)</td>
  114. <td></td>
  115. </tr>
  116. </table>
  117. </div><div class="memdoc">
  118. <dl class="section return"><dt>Returns</dt><dd>one if data is available. </dd></dl>
  119. </div>
  120. </div>
  121. <a id="a5c56beb3472bb97f949defeecacda52c"></a>
  122. <h2 class="memtitle"><span class="permalink"><a href="#a5c56beb3472bb97f949defeecacda52c">&#9670;&nbsp;</a></span>begin()</h2>
  123. <div class="memitem">
  124. <div class="memproto">
  125. <table class="memname">
  126. <tr>
  127. <td class="memname">void MinimumSerial::begin </td>
  128. <td>(</td>
  129. <td class="paramtype">uint32_t&#160;</td>
  130. <td class="paramname"><em>baud</em></td><td>)</td>
  131. <td></td>
  132. </tr>
  133. </table>
  134. </div><div class="memdoc">
  135. <p>Set baud rate for serial port zero and enable in non interrupt mode. Do not call this function if you use another serial library. </p><dl class="params"><dt>Parameters</dt><dd>
  136. <table class="params">
  137. <tr><td class="paramdir">[in]</td><td class="paramname">baud</td><td>rate </td></tr>
  138. </table>
  139. </dd>
  140. </dl>
  141. </div>
  142. </div>
  143. <a id="a872f0ff70f0e256352004f83d13fff28"></a>
  144. <h2 class="memtitle"><span class="permalink"><a href="#a872f0ff70f0e256352004f83d13fff28">&#9670;&nbsp;</a></span>flush()</h2>
  145. <div class="memitem">
  146. <div class="memproto">
  147. <table class="memname">
  148. <tr>
  149. <td class="memname">void MinimumSerial::flush </td>
  150. <td>(</td>
  151. <td class="paramname"></td><td>)</td>
  152. <td></td>
  153. </tr>
  154. </table>
  155. </div><div class="memdoc">
  156. <p>Wait for write done. </p>
  157. </div>
  158. </div>
  159. <a id="a73a1a2a92604ecb8507afde0022aedd8"></a>
  160. <h2 class="memtitle"><span class="permalink"><a href="#a73a1a2a92604ecb8507afde0022aedd8">&#9670;&nbsp;</a></span>operator bool()</h2>
  161. <div class="memitem">
  162. <div class="memproto">
  163. <table class="mlabels">
  164. <tr>
  165. <td class="mlabels-left">
  166. <table class="memname">
  167. <tr>
  168. <td class="memname">MinimumSerial::operator bool </td>
  169. <td>(</td>
  170. <td class="paramname"></td><td>)</td>
  171. <td></td>
  172. </tr>
  173. </table>
  174. </td>
  175. <td class="mlabels-right">
  176. <span class="mlabels"><span class="mlabel">inline</span></span> </td>
  177. </tr>
  178. </table>
  179. </div><div class="memdoc">
  180. <dl class="section return"><dt>Returns</dt><dd>true for hardware serial </dd></dl>
  181. </div>
  182. </div>
  183. <a id="a4890dd60f2ffb61eba0821cc80d411ad"></a>
  184. <h2 class="memtitle"><span class="permalink"><a href="#a4890dd60f2ffb61eba0821cc80d411ad">&#9670;&nbsp;</a></span>read()</h2>
  185. <div class="memitem">
  186. <div class="memproto">
  187. <table class="memname">
  188. <tr>
  189. <td class="memname">int MinimumSerial::read </td>
  190. <td>(</td>
  191. <td class="paramname"></td><td>)</td>
  192. <td></td>
  193. </tr>
  194. </table>
  195. </div><div class="memdoc">
  196. <p>Unbuffered read </p><dl class="section return"><dt>Returns</dt><dd>-1 if no character is available or an available character. </dd></dl>
  197. </div>
  198. </div>
  199. <a id="a0ca1d9631fe5f2f00878bd481dbbd3aa"></a>
  200. <h2 class="memtitle"><span class="permalink"><a href="#a0ca1d9631fe5f2f00878bd481dbbd3aa">&#9670;&nbsp;</a></span>write()</h2>
  201. <div class="memitem">
  202. <div class="memproto">
  203. <table class="memname">
  204. <tr>
  205. <td class="memname">size_t MinimumSerial::write </td>
  206. <td>(</td>
  207. <td class="paramtype">uint8_t&#160;</td>
  208. <td class="paramname"><em>b</em></td><td>)</td>
  209. <td></td>
  210. </tr>
  211. </table>
  212. </div><div class="memdoc">
  213. <p>Unbuffered write</p>
  214. <dl class="params"><dt>Parameters</dt><dd>
  215. <table class="params">
  216. <tr><td class="paramdir">[in]</td><td class="paramname">b</td><td>byte to write. </td></tr>
  217. </table>
  218. </dd>
  219. </dl>
  220. <dl class="section return"><dt>Returns</dt><dd>1 </dd></dl>
  221. </div>
  222. </div>
  223. <hr/>The documentation for this class was generated from the following files:<ul>
  224. <li>ArduinoSdFat/libraries/SdFat/src/<a class="el" href="_minimum_serial_8h.html">MinimumSerial.h</a></li>
  225. <li>ArduinoSdFat/libraries/SdFat/src/MinimumSerial.cpp</li>
  226. </ul>
  227. </div><!-- contents -->
  228. <!-- start footer part -->
  229. <hr class="footer"/><address class="footer"><small>
  230. Generated on Thu May 9 2019 06:51:28 for SdFat by &#160;<a href="http://www.doxygen.org/index.html">
  231. <img class="footer" src="doxygen.png" alt="doxygen"/>
  232. </a> 1.8.14
  233. </small></address>
  234. </body>
  235. </html>