| 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: ds1631.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>ds1631.c File Reference</h1><hr><a name="_details"></a><h2>Detailed Description</h2> |
||
| 9 | |||
| 10 | <p> |
||
| 11 | Definition in file <a class="el" href="ds1631_8c-source.html">ds1631.c</a>. |
||
| 12 | <p> |
||
| 13 | <code>#include <avr/io.h></code><br> |
||
| 14 | <code>#include <avr/interrupt.h></code><br> |
||
| 15 | <code>#include "<a class="el" href="global_8h-source.html">global.h</a>"</code><br> |
||
| 16 | <code>#include "<a class="el" href="timer_8h-source.html">timer.h</a>"</code><br> |
||
| 17 | <code>#include "<a class="el" href="i2c_8h-source.html">i2c.h</a>"</code><br> |
||
| 18 | <code>#include "<a class="el" href="ds1631_8h-source.html">ds1631.h</a>"</code><br> |
||
| 19 | |||
| 20 | <p> |
||
| 21 | <a href="ds1631_8c-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0"> |
||
| 22 | <tr><td></td></tr> |
||
| 23 | <tr><td colspan="2"><br><h2>Functions</h2></td></tr> |
||
| 24 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a0" doxytag="ds1631.c::ds1631Init"></a> |
||
| 25 | u08 </td><td class="memItemRight" valign="bottom"><a class="el" href="ds1631_8c.html#a0">ds1631Init</a> (u08 i2cAddr)</td></tr> |
||
| 26 | |||
| 27 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Initialize the DS1631 chip. <br></td></tr> |
||
| 28 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a1" doxytag="ds1631.c::ds1631Reset"></a> |
||
| 29 | u08 </td><td class="memItemRight" valign="bottom"><a class="el" href="ds1631_8c.html#a1">ds1631Reset</a> (u08 i2cAddr)</td></tr> |
||
| 30 | |||
| 31 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Reset the DS1631 chip to its power-on defaults. <br></td></tr> |
||
| 32 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a2" doxytag="ds1631.c::ds1631SetConfig"></a> |
||
| 33 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="ds1631_8c.html#a2">ds1631SetConfig</a> (u08 i2cAddr, u08 config)</td></tr> |
||
| 34 | |||
| 35 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Set the configuration byte of the DS1631. <br></td></tr> |
||
| 36 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a3" doxytag="ds1631.c::ds1631GetConfig"></a> |
||
| 37 | u08 </td><td class="memItemRight" valign="bottom"><a class="el" href="ds1631_8c.html#a3">ds1631GetConfig</a> (u08 i2cAddr)</td></tr> |
||
| 38 | |||
| 39 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the configuration byte of the DS1631. <br></td></tr> |
||
| 40 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a4" doxytag="ds1631.c::ds1631StartConvert"></a> |
||
| 41 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="ds1631_8c.html#a4">ds1631StartConvert</a> (u08 i2cAddr)</td></tr> |
||
| 42 | |||
| 43 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Start a temperature conversion. <br></td></tr> |
||
| 44 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a5" doxytag="ds1631.c::ds1631StopConvert"></a> |
||
| 45 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="ds1631_8c.html#a5">ds1631StopConvert</a> (u08 i2cAddr)</td></tr> |
||
| 46 | |||
| 47 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Stop a temperature conversion (or stop continuous conversion mode). <br></td></tr> |
||
| 48 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a6" doxytag="ds1631.c::ds1631ReadTemp"></a> |
||
| 49 | s16 </td><td class="memItemRight" valign="bottom"><a class="el" href="ds1631_8c.html#a6">ds1631ReadTemp</a> (u08 i2cAddr)</td></tr> |
||
| 50 | |||
| 51 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Read the result of a temperature conversion. <br></td></tr> |
||
| 52 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a7" doxytag="ds1631.c::ds1631SetTH"></a> |
||
| 53 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="ds1631_8c.html#a7">ds1631SetTH</a> (u08 i2cAddr, s16 value)</td></tr> |
||
| 54 | |||
| 55 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Set the Temp-High threshold. <br></td></tr> |
||
| 56 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a8" doxytag="ds1631.c::ds1631SetTL"></a> |
||
| 57 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="ds1631_8c.html#a8">ds1631SetTL</a> (u08 i2cAddr, s16 value)</td></tr> |
||
| 58 | |||
| 59 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Set the Temp-Low threshold. <br></td></tr> |
||
| 60 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a9" doxytag="ds1631.c::ds1631GetTH"></a> |
||
| 61 | s16 </td><td class="memItemRight" valign="bottom"><a class="el" href="ds1631_8c.html#a9">ds1631GetTH</a> (u08 i2cAddr)</td></tr> |
||
| 62 | |||
| 63 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the Temp-High threshold. <br></td></tr> |
||
| 64 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a10" doxytag="ds1631.c::ds1631GetTL"></a> |
||
| 65 | s16 </td><td class="memItemRight" valign="bottom"><a class="el" href="ds1631_8c.html#a10">ds1631GetTL</a> (u08 i2cAddr)</td></tr> |
||
| 66 | |||
| 67 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the Temp-Low threshold. <br></td></tr> |
||
| 68 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a11" doxytag="ds1631.c::ds1631ReadTempReg"></a> |
||
| 69 | s16 </td><td class="memItemRight" valign="bottom"><b>ds1631ReadTempReg</b> (u08 i2cAddr, u08 cmd)</td></tr> |
||
| 70 | |||
| 71 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a12" doxytag="ds1631.c::ds1631WriteTempReg"></a> |
||
| 72 | void </td><td class="memItemRight" valign="bottom"><b>ds1631WriteTempReg</b> (u08 i2cAddr, u08 cmd, s16 value)</td></tr> |
||
| 73 | |||
| 74 | </table> |
||
| 75 | <hr size="1"><address style="align: right;"><small>Generated on Sun Oct 29 03:41:08 2006 for Procyon AVRlib by |
||
| 76 | <a href="http://www.doxygen.org/index.html"> |
||
| 77 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.2 </small></address> |
||
| 78 | </body> |
||
| 79 | </html> |
Powered by WebSVN v2.8.3