mirror of
https://github.com/taigrr/arduinolibs
synced 2025-01-18 04:33:12 -08:00
Update docs
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
<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.6"/>
|
||||
<title>ArduinoLibs: SoftI2C Class Reference</title>
|
||||
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
@@ -29,7 +30,7 @@
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.8.1.2 -->
|
||||
<!-- Generated by Doxygen 1.8.6 -->
|
||||
<script type="text/javascript">
|
||||
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
||||
</script>
|
||||
@@ -100,39 +101,47 @@ Inheritance diagram for SoftI2C:</div>
|
||||
<div class="center">
|
||||
<img src="classSoftI2C.png" usemap="#SoftI2C_map" alt=""/>
|
||||
<map id="SoftI2C_map" name="SoftI2C_map">
|
||||
<area href="classI2CMaster.html" title="Abstract base class for I2C master implementations." alt="I2CMaster" shape="rect" coords="0,0,70,24"/>
|
||||
<area href="classI2CMaster.html" title="Abstract base class for I2C master implementations. " alt="I2CMaster" shape="rect" coords="0,0,70,24"/>
|
||||
</map>
|
||||
</div></div>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2><a name="pub-methods"></a>
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
|
||||
Public Member Functions</h2></td></tr>
|
||||
<tr class="memitem:adb6e00ee3f930f1d32010a18feb5f6cc"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adb6e00ee3f930f1d32010a18feb5f6cc"></a>
|
||||
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoftI2C.html#adb6e00ee3f930f1d32010a18feb5f6cc">SoftI2C</a> (uint8_t dataPin, uint8_t clockPin)</td></tr>
|
||||
<tr class="memdesc:adb6e00ee3f930f1d32010a18feb5f6cc"><td class="mdescLeft"> </td><td class="mdescRight">Constructs a new software I2C master on <em>dataPin</em> and <em>clockPin</em>. <br/></td></tr>
|
||||
<tr class="separator:adb6e00ee3f930f1d32010a18feb5f6cc"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aad488669f28f6a5a4ceaae3de61d38f4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aad488669f28f6a5a4ceaae3de61d38f4"></a>
|
||||
unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoftI2C.html#aad488669f28f6a5a4ceaae3de61d38f4">maxTransferSize</a> () const </td></tr>
|
||||
<tr class="memdesc:aad488669f28f6a5a4ceaae3de61d38f4"><td class="mdescLeft"> </td><td class="mdescRight">Returns the maximum number of bytes that can be read or written in a single request by this bus master. <br/></td></tr>
|
||||
<tr class="separator:aad488669f28f6a5a4ceaae3de61d38f4"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aa8a3219f4e6ff52306cc3c219f37d8f9"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoftI2C.html#aa8a3219f4e6ff52306cc3c219f37d8f9">startWrite</a> (unsigned int address)</td></tr>
|
||||
<tr class="memdesc:aa8a3219f4e6ff52306cc3c219f37d8f9"><td class="mdescLeft"> </td><td class="mdescRight">Starts a write operation by sending a start condition and the I2C control byte. <a href="#aa8a3219f4e6ff52306cc3c219f37d8f9"></a><br/></td></tr>
|
||||
<tr class="memdesc:aa8a3219f4e6ff52306cc3c219f37d8f9"><td class="mdescLeft"> </td><td class="mdescRight">Starts a write operation by sending a start condition and the I2C control byte. <a href="#aa8a3219f4e6ff52306cc3c219f37d8f9">More...</a><br/></td></tr>
|
||||
<tr class="separator:aa8a3219f4e6ff52306cc3c219f37d8f9"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:ab46f0b6363c9cfe6fb3ab907956d5d73"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoftI2C.html#ab46f0b6363c9cfe6fb3ab907956d5d73">write</a> (uint8_t value)</td></tr>
|
||||
<tr class="memdesc:ab46f0b6363c9cfe6fb3ab907956d5d73"><td class="mdescLeft"> </td><td class="mdescRight">Writes a single byte <em>value</em> on the I2C bus. <a href="#ab46f0b6363c9cfe6fb3ab907956d5d73"></a><br/></td></tr>
|
||||
<tr class="memdesc:ab46f0b6363c9cfe6fb3ab907956d5d73"><td class="mdescLeft"> </td><td class="mdescRight">Writes a single byte <em>value</em> on the I2C bus. <a href="#ab46f0b6363c9cfe6fb3ab907956d5d73">More...</a><br/></td></tr>
|
||||
<tr class="separator:ab46f0b6363c9cfe6fb3ab907956d5d73"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aa12ae82813598b2e9ea70463c23c5bf3"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoftI2C.html#aa12ae82813598b2e9ea70463c23c5bf3">endWrite</a> ()</td></tr>
|
||||
<tr class="memdesc:aa12ae82813598b2e9ea70463c23c5bf3"><td class="mdescLeft"> </td><td class="mdescRight">Ends the current write operation. <a href="#aa12ae82813598b2e9ea70463c23c5bf3"></a><br/></td></tr>
|
||||
<tr class="memdesc:aa12ae82813598b2e9ea70463c23c5bf3"><td class="mdescLeft"> </td><td class="mdescRight">Ends the current write operation. <a href="#aa12ae82813598b2e9ea70463c23c5bf3">More...</a><br/></td></tr>
|
||||
<tr class="separator:aa12ae82813598b2e9ea70463c23c5bf3"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:aa0dafc067cfa374af75e060dca647ec3"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoftI2C.html#aa0dafc067cfa374af75e060dca647ec3">startRead</a> (unsigned int address, unsigned int count)</td></tr>
|
||||
<tr class="memdesc:aa0dafc067cfa374af75e060dca647ec3"><td class="mdescLeft"> </td><td class="mdescRight">Starts a read operation for <em>count</em> bytes by sending the start condition and the I2C control byte. <a href="#aa0dafc067cfa374af75e060dca647ec3"></a><br/></td></tr>
|
||||
<tr class="memdesc:aa0dafc067cfa374af75e060dca647ec3"><td class="mdescLeft"> </td><td class="mdescRight">Starts a read operation for <em>count</em> bytes by sending the start condition and the I2C control byte. <a href="#aa0dafc067cfa374af75e060dca647ec3">More...</a><br/></td></tr>
|
||||
<tr class="separator:aa0dafc067cfa374af75e060dca647ec3"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a849af91018caedbb82e83f02c543305e"><td class="memItemLeft" align="right" valign="top">unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoftI2C.html#a849af91018caedbb82e83f02c543305e">available</a> ()</td></tr>
|
||||
<tr class="memdesc:a849af91018caedbb82e83f02c543305e"><td class="mdescLeft"> </td><td class="mdescRight">Returns the number of bytes that are still available for reading. <a href="#a849af91018caedbb82e83f02c543305e"></a><br/></td></tr>
|
||||
<tr class="memdesc:a849af91018caedbb82e83f02c543305e"><td class="mdescLeft"> </td><td class="mdescRight">Returns the number of bytes that are still available for reading. <a href="#a849af91018caedbb82e83f02c543305e">More...</a><br/></td></tr>
|
||||
<tr class="separator:a849af91018caedbb82e83f02c543305e"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a330dbba5b726fa161a6b01a9ca49e1bc"><td class="memItemLeft" align="right" valign="top">uint8_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classSoftI2C.html#a330dbba5b726fa161a6b01a9ca49e1bc">read</a> ()</td></tr>
|
||||
<tr class="memdesc:a330dbba5b726fa161a6b01a9ca49e1bc"><td class="mdescLeft"> </td><td class="mdescRight">Reads a single byte from the I2C bus. <a href="#a330dbba5b726fa161a6b01a9ca49e1bc"></a><br/></td></tr>
|
||||
<tr class="memdesc:a330dbba5b726fa161a6b01a9ca49e1bc"><td class="mdescLeft"> </td><td class="mdescRight">Reads a single byte from the I2C bus. <a href="#a330dbba5b726fa161a6b01a9ca49e1bc">More...</a><br/></td></tr>
|
||||
<tr class="separator:a330dbba5b726fa161a6b01a9ca49e1bc"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
</table>
|
||||
<a name="details" id="details"></a><h2>Detailed Description</h2>
|
||||
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||||
<div class="textblock"><p>Bit-banged implementation of an I2C master. </p>
|
||||
<p>This class implements the I2C master protocol on any arbitrary pair of data and clock pins. It is not restricted to pre-defined pins as is the case for the standard Arduino two-wire interface.</p>
|
||||
<p>This implementation only implements the master side of the protocol. It assumes that there is a single bus master, no arbitration, and no clock stretching.</p>
|
||||
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classI2CMaster.html" title="Abstract base class for I2C master implementations.">I2CMaster</a> </dd></dl>
|
||||
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classI2CMaster.html" title="Abstract base class for I2C master implementations. ">I2CMaster</a> </dd></dl>
|
||||
|
||||
<p>Definition at line <a class="el" href="SoftI2C_8h_source.html#l00028">28</a> of file <a class="el" href="SoftI2C_8h_source.html">SoftI2C.h</a>.</p>
|
||||
</div><h2>Member Function Documentation</h2>
|
||||
</div><h2 class="groupheader">Member Function Documentation</h2>
|
||||
<a class="anchor" id="a849af91018caedbb82e83f02c543305e"></a>
|
||||
<div class="memitem">
|
||||
<div class="memproto">
|
||||
@@ -155,7 +164,7 @@ unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" hr
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Returns the number of bytes that are still available for reading. </p>
|
||||
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classSoftI2C.html#aa0dafc067cfa374af75e060dca647ec3" title="Starts a read operation for count bytes by sending the start condition and the I2C control byte...">startRead()</a>, <a class="el" href="classSoftI2C.html#a330dbba5b726fa161a6b01a9ca49e1bc" title="Reads a single byte from the I2C bus.">read()</a> </dd></dl>
|
||||
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classSoftI2C.html#aa0dafc067cfa374af75e060dca647ec3" title="Starts a read operation for count bytes by sending the start condition and the I2C control byte...">startRead()</a>, <a class="el" href="classSoftI2C.html#a330dbba5b726fa161a6b01a9ca49e1bc" title="Reads a single byte from the I2C bus. ">read()</a> </dd></dl>
|
||||
|
||||
<p>Implements <a class="el" href="classI2CMaster.html#a6458fa99cfd9e6270ae6dff993955833">I2CMaster</a>.</p>
|
||||
|
||||
@@ -186,7 +195,7 @@ unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" hr
|
||||
|
||||
<p>Ends the current write operation. </p>
|
||||
<p>Returns true if the write operation was acknowledged; false otherwise.</p>
|
||||
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classSoftI2C.html#aa8a3219f4e6ff52306cc3c219f37d8f9" title="Starts a write operation by sending a start condition and the I2C control byte.">startWrite()</a>, <a class="el" href="classSoftI2C.html#ab46f0b6363c9cfe6fb3ab907956d5d73" title="Writes a single byte value on the I2C bus.">write()</a> </dd></dl>
|
||||
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classSoftI2C.html#aa8a3219f4e6ff52306cc3c219f37d8f9" title="Starts a write operation by sending a start condition and the I2C control byte. ">startWrite()</a>, <a class="el" href="classSoftI2C.html#ab46f0b6363c9cfe6fb3ab907956d5d73" title="Writes a single byte value on the I2C bus. ">write()</a> </dd></dl>
|
||||
|
||||
<p>Implements <a class="el" href="classI2CMaster.html#ab29f63551ddeb032a91505d1c0b8ac41">I2CMaster</a>.</p>
|
||||
|
||||
@@ -216,7 +225,7 @@ unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" hr
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Reads a single byte from the I2C bus. </p>
|
||||
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classSoftI2C.html#aa0dafc067cfa374af75e060dca647ec3" title="Starts a read operation for count bytes by sending the start condition and the I2C control byte...">startRead()</a>, <a class="el" href="classSoftI2C.html#a849af91018caedbb82e83f02c543305e" title="Returns the number of bytes that are still available for reading.">available()</a> </dd></dl>
|
||||
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classSoftI2C.html#aa0dafc067cfa374af75e060dca647ec3" title="Starts a read operation for count bytes by sending the start condition and the I2C control byte...">startRead()</a>, <a class="el" href="classSoftI2C.html#a849af91018caedbb82e83f02c543305e" title="Returns the number of bytes that are still available for reading. ">available()</a> </dd></dl>
|
||||
|
||||
<p>Implements <a class="el" href="classI2CMaster.html#a49eeebb57f6bc06de39973fe836369cd">I2CMaster</a>.</p>
|
||||
|
||||
@@ -258,8 +267,8 @@ unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" hr
|
||||
|
||||
<p>Starts a read operation for <em>count</em> bytes by sending the start condition and the I2C control byte. </p>
|
||||
<p>The <em>address</em> must be the 7-bit or 10-bit address of the I2C slave on the bus.</p>
|
||||
<p>Returns true if the read request was acknowledged by the I2C slave or false otherwise. If true, this function should be followed by <em>count</em> calls to <a class="el" href="classSoftI2C.html#a330dbba5b726fa161a6b01a9ca49e1bc" title="Reads a single byte from the I2C bus.">read()</a> to fetch the bytes.</p>
|
||||
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classSoftI2C.html#a849af91018caedbb82e83f02c543305e" title="Returns the number of bytes that are still available for reading.">available()</a>, <a class="el" href="classSoftI2C.html#a330dbba5b726fa161a6b01a9ca49e1bc" title="Reads a single byte from the I2C bus.">read()</a>, <a class="el" href="classSoftI2C.html#aa8a3219f4e6ff52306cc3c219f37d8f9" title="Starts a write operation by sending a start condition and the I2C control byte.">startWrite()</a> </dd></dl>
|
||||
<p>Returns true if the read request was acknowledged by the I2C slave or false otherwise. If true, this function should be followed by <em>count</em> calls to <a class="el" href="classSoftI2C.html#a330dbba5b726fa161a6b01a9ca49e1bc" title="Reads a single byte from the I2C bus. ">read()</a> to fetch the bytes.</p>
|
||||
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classSoftI2C.html#a849af91018caedbb82e83f02c543305e" title="Returns the number of bytes that are still available for reading. ">available()</a>, <a class="el" href="classSoftI2C.html#a330dbba5b726fa161a6b01a9ca49e1bc" title="Reads a single byte from the I2C bus. ">read()</a>, <a class="el" href="classSoftI2C.html#aa8a3219f4e6ff52306cc3c219f37d8f9" title="Starts a write operation by sending a start condition and the I2C control byte. ">startWrite()</a> </dd></dl>
|
||||
|
||||
<p>Implements <a class="el" href="classI2CMaster.html#a4e5f1a1a4c2242699be5a35fc4872fde">I2CMaster</a>.</p>
|
||||
|
||||
@@ -291,7 +300,7 @@ unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" hr
|
||||
|
||||
<p>Starts a write operation by sending a start condition and the I2C control byte. </p>
|
||||
<p>The <em>address</em> must be the 7-bit or 10-bit address of the I2C slave on the bus.</p>
|
||||
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classSoftI2C.html#ab46f0b6363c9cfe6fb3ab907956d5d73" title="Writes a single byte value on the I2C bus.">write()</a>, <a class="el" href="classSoftI2C.html#aa12ae82813598b2e9ea70463c23c5bf3" title="Ends the current write operation.">endWrite()</a>, <a class="el" href="classSoftI2C.html#aa0dafc067cfa374af75e060dca647ec3" title="Starts a read operation for count bytes by sending the start condition and the I2C control byte...">startRead()</a> </dd></dl>
|
||||
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classSoftI2C.html#ab46f0b6363c9cfe6fb3ab907956d5d73" title="Writes a single byte value on the I2C bus. ">write()</a>, <a class="el" href="classSoftI2C.html#aa12ae82813598b2e9ea70463c23c5bf3" title="Ends the current write operation. ">endWrite()</a>, <a class="el" href="classSoftI2C.html#aa0dafc067cfa374af75e060dca647ec3" title="Starts a read operation for count bytes by sending the start condition and the I2C control byte...">startRead()</a> </dd></dl>
|
||||
|
||||
<p>Reimplemented from <a class="el" href="classI2CMaster.html#a01960fc821cb25e4c88c26d2c6107e35">I2CMaster</a>.</p>
|
||||
|
||||
@@ -322,7 +331,7 @@ unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" hr
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>Writes a single byte <em>value</em> on the I2C bus. </p>
|
||||
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classSoftI2C.html#aa8a3219f4e6ff52306cc3c219f37d8f9" title="Starts a write operation by sending a start condition and the I2C control byte.">startWrite()</a>, <a class="el" href="classSoftI2C.html#aa12ae82813598b2e9ea70463c23c5bf3" title="Ends the current write operation.">endWrite()</a> </dd></dl>
|
||||
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="classSoftI2C.html#aa8a3219f4e6ff52306cc3c219f37d8f9" title="Starts a write operation by sending a start condition and the I2C control byte. ">startWrite()</a>, <a class="el" href="classSoftI2C.html#aa12ae82813598b2e9ea70463c23c5bf3" title="Ends the current write operation. ">endWrite()</a> </dd></dl>
|
||||
|
||||
<p>Implements <a class="el" href="classI2CMaster.html#a0bf6b84cb1e2b3a37a4a0260d0b6f960">I2CMaster</a>.</p>
|
||||
|
||||
@@ -337,9 +346,9 @@ unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" hr
|
||||
</div><!-- contents -->
|
||||
<!-- start footer part -->
|
||||
<hr class="footer"/><address class="footer"><small>
|
||||
Generated on Sun Sep 29 2013 09:30:46 for ArduinoLibs by  <a href="http://www.doxygen.org/index.html">
|
||||
Generated on Thu Mar 12 2015 19:02:05 for ArduinoLibs by  <a href="http://www.doxygen.org/index.html">
|
||||
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
||||
</a> 1.8.1.2
|
||||
</a> 1.8.6
|
||||
</small></address>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user