|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
- <meta http-equiv="X-UA-Compatible" content="IE=9"/>
- <meta name="generator" content="Doxygen 1.8.16"/>
- <meta name="viewport" content="width=device-width, initial-scale=1"/>
- <title>SdFat: SdExternalSpiDriver Class Reference</title>
- <link href="tabs.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="jquery.js"></script>
- <script type="text/javascript" src="dynsections.js"></script>
- <link href="search/search.css" rel="stylesheet" type="text/css"/>
- <script type="text/javascript" src="search/searchdata.js"></script>
- <script type="text/javascript" src="search/search.js"></script>
- <link href="doxygen.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
- <div id="titlearea">
- <table cellspacing="0" cellpadding="0">
- <tbody>
- <tr style="height: 56px;">
- <td id="projectalign" style="padding-left: 0.5em;">
- <div id="projectname">SdFat
- </div>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <!-- end header part -->
- <!-- Generated by Doxygen 1.8.16 -->
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
- var searchBox = new SearchBox("searchBox", "search",false,'Search');
- /* @license-end */
- </script>
- <script type="text/javascript" src="menudata.js"></script>
- <script type="text/javascript" src="menu.js"></script>
- <script type="text/javascript">
- /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
- $(function() {
- initMenu('',true,false,'search.php','Search');
- $(document).ready(function() { init_search(); });
- });
- /* @license-end */</script>
- <div id="main-nav"></div>
- <!-- window showing the filter options -->
- <div id="MSearchSelectWindow"
- onmouseover="return searchBox.OnSearchSelectShow()"
- onmouseout="return searchBox.OnSearchSelectHide()"
- onkeydown="return searchBox.OnSearchSelectKey(event)">
- </div>
-
- <!-- iframe showing the search results (closed by default) -->
- <div id="MSearchResultsWindow">
- <iframe src="javascript:void(0)" frameborder="0"
- name="MSearchResults" id="MSearchResults">
- </iframe>
- </div>
-
- </div><!-- top -->
- <div class="header">
- <div class="summary">
- <a href="#pub-methods">Public Member Functions</a> |
- <a href="class_sd_external_spi_driver-members.html">List of all members</a> </div>
- <div class="headertitle">
- <div class="title">SdExternalSpiDriver Class Reference</div> </div>
- </div><!--header-->
- <div class="contents">
-
- <p>Class for external SPI.
- <a href="class_sd_external_spi_driver.html#details">More...</a></p>
-
- <p><code>#include <SdSpiExternalDriver.h></code></p>
- <table class="memberdecls">
- <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
- Public Member Functions</h2></td></tr>
- <tr class="memitem:a7fe3d482ed3fc9118b335ac6b6e4f165"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_external_spi_driver.html#a7fe3d482ed3fc9118b335ac6b6e4f165">activate</a> ()</td></tr>
- <tr class="separator:a7fe3d482ed3fc9118b335ac6b6e4f165"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:acd422cb20a0332bbb51360f94bf1ca27"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_external_spi_driver.html#acd422cb20a0332bbb51360f94bf1ca27">begin</a> (<a class="el" href="class_sd_spi_config.html">SdSpiConfig</a> spiConfig)</td></tr>
- <tr class="separator:acd422cb20a0332bbb51360f94bf1ca27"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a783102fbe3037d0b992d47ca04728522"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_external_spi_driver.html#a783102fbe3037d0b992d47ca04728522">deactivate</a> ()</td></tr>
- <tr class="separator:a783102fbe3037d0b992d47ca04728522"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ab6947d1fc227c4eea9234e88f2844a50"><td class="memItemLeft" align="right" valign="top">uint8_t </td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_external_spi_driver.html#ab6947d1fc227c4eea9234e88f2844a50">receive</a> ()</td></tr>
- <tr class="separator:ab6947d1fc227c4eea9234e88f2844a50"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a67b526ccd30d288d58a62b1d3d71b8ba"><td class="memItemLeft" align="right" valign="top">uint8_t </td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_external_spi_driver.html#a67b526ccd30d288d58a62b1d3d71b8ba">receive</a> (uint8_t *buf, size_t count)</td></tr>
- <tr class="separator:a67b526ccd30d288d58a62b1d3d71b8ba"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:aacb112a6813cc814299630b9badcc214"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_external_spi_driver.html#aacb112a6813cc814299630b9badcc214">send</a> (const uint8_t *buf, size_t count)</td></tr>
- <tr class="separator:aacb112a6813cc814299630b9badcc214"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a120314cd14d219c6c0695803c0c20ced"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_external_spi_driver.html#a120314cd14d219c6c0695803c0c20ced">send</a> (uint8_t data)</td></tr>
- <tr class="separator:a120314cd14d219c6c0695803c0c20ced"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:abd72db6a6af5f7c108cb109b515e847f"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_external_spi_driver.html#abd72db6a6af5f7c108cb109b515e847f">setSckSpeed</a> (uint32_t maxSck)</td></tr>
- <tr class="separator:abd72db6a6af5f7c108cb109b515e847f"><td class="memSeparator" colspan="2"> </td></tr>
- </table>
- <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
- <div class="textblock"><p>Class for external SPI. </p>
- </div><h2 class="groupheader">Member Function Documentation</h2>
- <a id="a7fe3d482ed3fc9118b335ac6b6e4f165"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a7fe3d482ed3fc9118b335ac6b6e4f165">◆ </a></span>activate()</h2>
-
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">void SdExternalSpiDriver::activate </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">inline</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Activate SPI hardware. </p>
-
- </div>
- </div>
- <a id="acd422cb20a0332bbb51360f94bf1ca27"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#acd422cb20a0332bbb51360f94bf1ca27">◆ </a></span>begin()</h2>
-
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">void SdExternalSpiDriver::begin </td>
- <td>(</td>
- <td class="paramtype"><a class="el" href="class_sd_spi_config.html">SdSpiConfig</a> </td>
- <td class="paramname"><em>spiConfig</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">inline</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Initialize the SPI bus.</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramdir">[in]</td><td class="paramname">spiConfig</td><td>SD card configuration. </td></tr>
- </table>
- </dd>
- </dl>
-
- </div>
- </div>
- <a id="a783102fbe3037d0b992d47ca04728522"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a783102fbe3037d0b992d47ca04728522">◆ </a></span>deactivate()</h2>
-
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">void SdExternalSpiDriver::deactivate </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">inline</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Deactivate SPI hardware. </p>
-
- </div>
- </div>
- <a id="ab6947d1fc227c4eea9234e88f2844a50"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ab6947d1fc227c4eea9234e88f2844a50">◆ </a></span>receive() <span class="overload">[1/2]</span></h2>
-
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">uint8_t SdExternalSpiDriver::receive </td>
- <td>(</td>
- <td class="paramname"></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">inline</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Receive a byte.</p>
- <dl class="section return"><dt>Returns</dt><dd>The byte. </dd></dl>
-
- </div>
- </div>
- <a id="a67b526ccd30d288d58a62b1d3d71b8ba"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a67b526ccd30d288d58a62b1d3d71b8ba">◆ </a></span>receive() <span class="overload">[2/2]</span></h2>
-
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">uint8_t SdExternalSpiDriver::receive </td>
- <td>(</td>
- <td class="paramtype">uint8_t * </td>
- <td class="paramname"><em>buf</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">size_t </td>
- <td class="paramname"><em>count</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">inline</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Receive multiple bytes.</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramdir">[out]</td><td class="paramname">buf</td><td>Buffer to receive the data. </td></tr>
- <tr><td class="paramdir">[in]</td><td class="paramname">count</td><td>Number of bytes to receive.</td></tr>
- </table>
- </dd>
- </dl>
- <dl class="section return"><dt>Returns</dt><dd>Zero for no error or nonzero error code. </dd></dl>
-
- </div>
- </div>
- <a id="aacb112a6813cc814299630b9badcc214"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#aacb112a6813cc814299630b9badcc214">◆ </a></span>send() <span class="overload">[1/2]</span></h2>
-
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">void SdExternalSpiDriver::send </td>
- <td>(</td>
- <td class="paramtype">const uint8_t * </td>
- <td class="paramname"><em>buf</em>, </td>
- </tr>
- <tr>
- <td class="paramkey"></td>
- <td></td>
- <td class="paramtype">size_t </td>
- <td class="paramname"><em>count</em> </td>
- </tr>
- <tr>
- <td></td>
- <td>)</td>
- <td></td><td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">inline</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Send multiple bytes.</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramdir">[in]</td><td class="paramname">buf</td><td>Buffer for data to be sent. </td></tr>
- <tr><td class="paramdir">[in]</td><td class="paramname">count</td><td>Number of bytes to send. </td></tr>
- </table>
- </dd>
- </dl>
-
- </div>
- </div>
- <a id="a120314cd14d219c6c0695803c0c20ced"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a120314cd14d219c6c0695803c0c20ced">◆ </a></span>send() <span class="overload">[2/2]</span></h2>
-
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">void SdExternalSpiDriver::send </td>
- <td>(</td>
- <td class="paramtype">uint8_t </td>
- <td class="paramname"><em>data</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">inline</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Send a byte.</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramdir">[in]</td><td class="paramname">data</td><td>Byte to send </td></tr>
- </table>
- </dd>
- </dl>
-
- </div>
- </div>
- <a id="abd72db6a6af5f7c108cb109b515e847f"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#abd72db6a6af5f7c108cb109b515e847f">◆ </a></span>setSckSpeed()</h2>
-
- <div class="memitem">
- <div class="memproto">
- <table class="mlabels">
- <tr>
- <td class="mlabels-left">
- <table class="memname">
- <tr>
- <td class="memname">void SdExternalSpiDriver::setSckSpeed </td>
- <td>(</td>
- <td class="paramtype">uint32_t </td>
- <td class="paramname"><em>maxSck</em></td><td>)</td>
- <td></td>
- </tr>
- </table>
- </td>
- <td class="mlabels-right">
- <span class="mlabels"><span class="mlabel">inline</span></span> </td>
- </tr>
- </table>
- </div><div class="memdoc">
- <p>Save high speed SPISettings after SD initialization.</p>
- <dl class="params"><dt>Parameters</dt><dd>
- <table class="params">
- <tr><td class="paramdir">[in]</td><td class="paramname">maxSck</td><td>Maximum SCK frequency. </td></tr>
- </table>
- </dd>
- </dl>
-
- </div>
- </div>
- <hr/>The documentation for this class was generated from the following file:<ul>
- <li>ArduinoSdFat/libraries/SdFat/src/SpiDriver/<a class="el" href="_sd_spi_external_driver_8h.html">SdSpiExternalDriver.h</a></li>
- </ul>
- </div><!-- contents -->
- <!-- start footer part -->
- <hr class="footer"/><address class="footer"><small>
- Generated on Fri Dec 6 2019 09:45:12 for SdFat by  <a href="http://www.doxygen.org/index.html">
- <img class="footer" src="doxygen.png" alt="doxygen"/>
- </a> 1.8.16
- </small></address>
- </body>
- </html>
|