|
- <!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: SdSoftSpiDriver 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_soft_spi_driver-members.html">List of all members</a> </div>
- <div class="headertitle">
- <div class="title">SdSoftSpiDriver Class Reference</div> </div>
- </div><!--header-->
- <div class="contents">
-
- <p>Class for <a class="el" href="class_sd_soft_spi_driver.html" title="Class for SdSoftSpiDriver.">SdSoftSpiDriver</a>.
- <a href="class_sd_soft_spi_driver.html#details">More...</a></p>
-
- <p><code>#include <SdSpiSoftDriver.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:a00c83e2e447cf1dc9545f086eec3eec7"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_soft_spi_driver.html#a00c83e2e447cf1dc9545f086eec3eec7">activate</a> ()</td></tr>
- <tr class="separator:a00c83e2e447cf1dc9545f086eec3eec7"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:ac06e39dad19de460becc8db68fafabe8"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_soft_spi_driver.html#ac06e39dad19de460becc8db68fafabe8">begin</a> (<a class="el" href="class_sd_spi_config.html">SdSpiConfig</a> spiConfig)</td></tr>
- <tr class="separator:ac06e39dad19de460becc8db68fafabe8"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a0966b91ab325a2e8d63f0d83b49d2bde"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_soft_spi_driver.html#a0966b91ab325a2e8d63f0d83b49d2bde">deactivate</a> ()</td></tr>
- <tr class="separator:a0966b91ab325a2e8d63f0d83b49d2bde"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a6087777d4ba85d35bf0dad85a6863e9a"><td class="memItemLeft" align="right" valign="top">uint8_t </td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_soft_spi_driver.html#a6087777d4ba85d35bf0dad85a6863e9a">receive</a> ()</td></tr>
- <tr class="separator:a6087777d4ba85d35bf0dad85a6863e9a"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a732a060b0755ab03c46e29ce6d615df3"><td class="memItemLeft" align="right" valign="top">uint8_t </td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_soft_spi_driver.html#a732a060b0755ab03c46e29ce6d615df3">receive</a> (uint8_t *buf, size_t count)</td></tr>
- <tr class="separator:a732a060b0755ab03c46e29ce6d615df3"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a88323135368f9cb967b62db70a9edd0c"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_soft_spi_driver.html#a88323135368f9cb967b62db70a9edd0c">send</a> (const uint8_t *buf, size_t count)</td></tr>
- <tr class="separator:a88323135368f9cb967b62db70a9edd0c"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a93bf852d7334dd61b48b7d89e72556d9"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_soft_spi_driver.html#a93bf852d7334dd61b48b7d89e72556d9">send</a> (uint8_t data)</td></tr>
- <tr class="separator:a93bf852d7334dd61b48b7d89e72556d9"><td class="memSeparator" colspan="2"> </td></tr>
- <tr class="memitem:a698ce9d995a0067dff811ccecf05aea5"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_sd_soft_spi_driver.html#a698ce9d995a0067dff811ccecf05aea5">setSckSpeed</a> (uint32_t maxSck)</td></tr>
- <tr class="separator:a698ce9d995a0067dff811ccecf05aea5"><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 <a class="el" href="class_sd_soft_spi_driver.html" title="Class for SdSoftSpiDriver.">SdSoftSpiDriver</a>. </p>
- </div><h2 class="groupheader">Member Function Documentation</h2>
- <a id="a00c83e2e447cf1dc9545f086eec3eec7"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a00c83e2e447cf1dc9545f086eec3eec7">◆ </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 SdSoftSpiDriver::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="ac06e39dad19de460becc8db68fafabe8"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#ac06e39dad19de460becc8db68fafabe8">◆ </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 SdSoftSpiDriver::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="a0966b91ab325a2e8d63f0d83b49d2bde"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a0966b91ab325a2e8d63f0d83b49d2bde">◆ </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 SdSoftSpiDriver::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="a6087777d4ba85d35bf0dad85a6863e9a"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a6087777d4ba85d35bf0dad85a6863e9a">◆ </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 SdSoftSpiDriver::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="a732a060b0755ab03c46e29ce6d615df3"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a732a060b0755ab03c46e29ce6d615df3">◆ </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 SdSoftSpiDriver::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="a88323135368f9cb967b62db70a9edd0c"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a88323135368f9cb967b62db70a9edd0c">◆ </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 SdSoftSpiDriver::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="a93bf852d7334dd61b48b7d89e72556d9"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a93bf852d7334dd61b48b7d89e72556d9">◆ </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 SdSoftSpiDriver::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="a698ce9d995a0067dff811ccecf05aea5"></a>
- <h2 class="memtitle"><span class="permalink"><a href="#a698ce9d995a0067dff811ccecf05aea5">◆ </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 SdSoftSpiDriver::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_soft_driver_8h.html">SdSpiSoftDriver.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>
|