Line No. | Rev | Author | Line |
---|---|---|---|
1 | 6 | kaklik | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
2 | <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> |
||
3 | <title>Procyon AVRlib: i2csw.c File Reference</title> |
||
4 | <link href="dox.css" rel="stylesheet" type="text/css"> |
||
5 | </head><body> |
||
6 | <!-- Generated by Doxygen 1.4.2 --> |
||
7 | <div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related Pages</a></div> |
||
8 | <h1>i2csw.c File Reference</h1><hr><a name="_details"></a><h2>Detailed Description</h2> |
||
9 | |||
10 | <p> |
||
11 | Definition in file <a class="el" href="i2csw_8c-source.html">i2csw.c</a>. |
||
12 | <p> |
||
13 | <code>#include <avr/io.h></code><br> |
||
14 | <code>#include "<a class="el" href="i2csw_8h-source.html">i2csw.h</a>"</code><br> |
||
15 | |||
16 | <p> |
||
17 | <a href="i2csw_8c-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"> |
||
18 | <tr><td></td></tr> |
||
19 | <tr><td colspan="2"><br><h2>Defines</h2></td></tr> |
||
20 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a0" doxytag="i2csw.c::QDEL"></a> |
||
21 | #define </td><td class="memItemRight" valign="bottom"><b>QDEL</b> asm volatile("nop"); asm volatile("nop"); asm volatile("nop"); asm volatile("nop"); asm volatile("nop");</td></tr> |
||
22 | |||
23 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a1" doxytag="i2csw.c::HDEL"></a> |
||
24 | #define </td><td class="memItemRight" valign="bottom"><b>HDEL</b> asm volatile("nop"); asm volatile("nop"); asm volatile("nop"); asm volatile("nop"); asm volatile("nop"); asm volatile("nop"); asm volatile("nop"); asm volatile("nop"); asm volatile("nop"); asm volatile("nop");</td></tr> |
||
25 | |||
26 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a2" doxytag="i2csw.c::I2C_SDL_LO"></a> |
||
27 | #define </td><td class="memItemRight" valign="bottom"><b>I2C_SDL_LO</b> cbi( SDAPORT, SDA)</td></tr> |
||
28 | |||
29 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a3" doxytag="i2csw.c::I2C_SDL_HI"></a> |
||
30 | #define </td><td class="memItemRight" valign="bottom"><b>I2C_SDL_HI</b> sbi( SDAPORT, SDA)</td></tr> |
||
31 | |||
32 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a4" doxytag="i2csw.c::I2C_SCL_LO"></a> |
||
33 | #define </td><td class="memItemRight" valign="bottom"><b>I2C_SCL_LO</b> cbi( SCLPORT, SCL);</td></tr> |
||
34 | |||
35 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a5" doxytag="i2csw.c::I2C_SCL_HI"></a> |
||
36 | #define </td><td class="memItemRight" valign="bottom"><b>I2C_SCL_HI</b> sbi( SCLPORT, SCL);</td></tr> |
||
37 | |||
38 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a6" doxytag="i2csw.c::I2C_SCL_TOGGLE"></a> |
||
39 | #define </td><td class="memItemRight" valign="bottom"><b>I2C_SCL_TOGGLE</b> HDEL; I2C_SCL_HI; HDEL; I2C_SCL_LO;</td></tr> |
||
40 | |||
41 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a7" doxytag="i2csw.c::I2C_START"></a> |
||
42 | #define </td><td class="memItemRight" valign="bottom"><b>I2C_START</b> I2C_SDL_LO; QDEL; I2C_SCL_LO;</td></tr> |
||
43 | |||
44 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a8" doxytag="i2csw.c::I2C_STOP"></a> |
||
45 | #define </td><td class="memItemRight" valign="bottom"><b>I2C_STOP</b> HDEL; I2C_SCL_HI; QDEL; I2C_SDL_HI; HDEL;</td></tr> |
||
46 | |||
47 | <tr><td colspan="2"><br><h2>Functions</h2></td></tr> |
||
48 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a9" doxytag="i2csw.c::i2cPutbyte"></a> |
||
49 | UINT </td><td class="memItemRight" valign="bottom"><b>i2cPutbyte</b> (u08 b)</td></tr> |
||
50 | |||
51 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a10" doxytag="i2csw.c::i2cGetbyte"></a> |
||
52 | u08 </td><td class="memItemRight" valign="bottom"><b>i2cGetbyte</b> (UINT last)</td></tr> |
||
53 | |||
54 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a11" doxytag="i2csw.c::i2cInit"></a> |
||
55 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="i2csw_8c.html#a11">i2cInit</a> (void)</td></tr> |
||
56 | |||
57 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Initialize I2C (TWI) interface. <br></td></tr> |
||
58 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a12" doxytag="i2csw.c::i2cSend"></a> |
||
59 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="i2csw_8c.html#a12">i2cSend</a> (u08 device, u08 subAddr, u08 length, u08 *data)</td></tr> |
||
60 | |||
61 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Send a byte sequence on the I2C bus. <br></td></tr> |
||
62 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a13" doxytag="i2csw.c::i2cReceive"></a> |
||
63 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="i2csw_8c.html#a13">i2cReceive</a> (u08 device, u08 subAddr, u08 length, u08 *data)</td></tr> |
||
64 | |||
65 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieve a byte sequence on the I2C bus. <br></td></tr> |
||
66 | </table> |
||
67 | <hr size="1"><address style="align: right;"><small>Generated on Sun Oct 29 03:41:08 2006 for Procyon AVRlib by |
||
68 | <a href="http://www.doxygen.org/index.html"> |
||
69 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.2 </small></address> |
||
70 | </body> |
||
71 | </html> |
Powered by WebSVN v2.8.3