?lang_form? ?lang_select? ?lang_submit? ?lang_endform?
{HEADER END}
{BLAME START}

library

?curdirlinks? -

Blame information for rev 6

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.h 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&nbsp;Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a></div>
8 <h1>ds1631.h File Reference</h1><hr><a name="_details"></a><h2>Detailed Description</h2>
9  
10 <p>
11 Definition in file <a class="el" href="ds1631_8h-source.html">ds1631.h</a>.
12 <p>
13 <code>#include "<a class="el" href="global_8h-source.html">global.h</a>"</code><br>
14  
15 <p>
16 <a href="ds1631_8h-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
17 <tr><td></td></tr>
18 <tr><td colspan="2"><br><h2>Defines</h2></td></tr>
19 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a0" doxytag="ds1631.h::DS1631_I2C_ADDR"></a>
20 #define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ds1631_8h.html#a0">DS1631_I2C_ADDR</a>&nbsp;&nbsp;&nbsp;0x90</td></tr>
21  
22 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Base I2C address of DS1631 devices. <br></td></tr>
23 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a1" doxytag="ds1631.h::DS1631_CMD_STARTCONV"></a>
24 #define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ds1631_8h.html#a1">DS1631_CMD_STARTCONV</a>&nbsp;&nbsp;&nbsp;0x51</td></tr>
25  
26 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">DS1631 Start conversion command byte. <br></td></tr>
27 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a2" doxytag="ds1631.h::DS1631_CMD_STOPCONV"></a>
28 #define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ds1631_8h.html#a2">DS1631_CMD_STOPCONV</a>&nbsp;&nbsp;&nbsp;0x22</td></tr>
29  
30 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">DS1631 Stop conversion command byte. <br></td></tr>
31 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a3" doxytag="ds1631.h::DS1631_CMD_READTEMP"></a>
32 #define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ds1631_8h.html#a3">DS1631_CMD_READTEMP</a>&nbsp;&nbsp;&nbsp;0xAA</td></tr>
33  
34 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">DS1631 Read Temperature command byte. <br></td></tr>
35 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a4" doxytag="ds1631.h::DS1631_CMD_ACCESSTH"></a>
36 #define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ds1631_8h.html#a4">DS1631_CMD_ACCESSTH</a>&nbsp;&nbsp;&nbsp;0xA1</td></tr>
37  
38 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">DS1631 TH read/write command byte. <br></td></tr>
39 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a5" doxytag="ds1631.h::DS1631_CMD_ACCESSTL"></a>
40 #define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ds1631_8h.html#a5">DS1631_CMD_ACCESSTL</a>&nbsp;&nbsp;&nbsp;0xA2</td></tr>
41  
42 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">DS1631 TL read/write command byte. <br></td></tr>
43 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a6" doxytag="ds1631.h::DS1631_CMD_ACCESSCONFIG"></a>
44 #define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ds1631_8h.html#a6">DS1631_CMD_ACCESSCONFIG</a>&nbsp;&nbsp;&nbsp;0xAC</td></tr>
45  
46 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">DS1631 Config read/write command byte. <br></td></tr>
47 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a7" doxytag="ds1631.h::DS1631_CMD_SWPOR"></a>
48 #define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ds1631_8h.html#a7">DS1631_CMD_SWPOR</a>&nbsp;&nbsp;&nbsp;0x54</td></tr>
49  
50 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">DS1631 Software Reset command byte. <br></td></tr>
51 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a8" doxytag="ds1631.h::DS1631_CONFIG_1SHOT"></a>
52 #define&nbsp;</td><td class="memItemRight" valign="bottom"><b>DS1631_CONFIG_1SHOT</b>&nbsp;&nbsp;&nbsp;0x01</td></tr>
53  
54 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a9" doxytag="ds1631.h::DS1631_CONFIG_POL"></a>
55 #define&nbsp;</td><td class="memItemRight" valign="bottom"><b>DS1631_CONFIG_POL</b>&nbsp;&nbsp;&nbsp;0x02</td></tr>
56  
57 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a10" doxytag="ds1631.h::DS1631_CONFIG_R0"></a>
58 #define&nbsp;</td><td class="memItemRight" valign="bottom"><b>DS1631_CONFIG_R0</b>&nbsp;&nbsp;&nbsp;0x04</td></tr>
59  
60 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a11" doxytag="ds1631.h::DS1631_CONFIG_R1"></a>
61 #define&nbsp;</td><td class="memItemRight" valign="bottom"><b>DS1631_CONFIG_R1</b>&nbsp;&nbsp;&nbsp;0x08</td></tr>
62  
63 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a12" doxytag="ds1631.h::DS1631_CONFIG_NVB"></a>
64 #define&nbsp;</td><td class="memItemRight" valign="bottom"><b>DS1631_CONFIG_NVB</b>&nbsp;&nbsp;&nbsp;0x10</td></tr>
65  
66 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a13" doxytag="ds1631.h::DS1631_CONFIG_TLF"></a>
67 #define&nbsp;</td><td class="memItemRight" valign="bottom"><b>DS1631_CONFIG_TLF</b>&nbsp;&nbsp;&nbsp;0x20</td></tr>
68  
69 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a14" doxytag="ds1631.h::DS1631_CONFIG_THF"></a>
70 #define&nbsp;</td><td class="memItemRight" valign="bottom"><b>DS1631_CONFIG_THF</b>&nbsp;&nbsp;&nbsp;0x40</td></tr>
71  
72 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a15" doxytag="ds1631.h::DS1631_CONFIG_DONE"></a>
73 #define&nbsp;</td><td class="memItemRight" valign="bottom"><b>DS1631_CONFIG_DONE</b>&nbsp;&nbsp;&nbsp;0x80</td></tr>
74  
75 <tr><td colspan="2"><br><h2>Functions</h2></td></tr>
76 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a16" doxytag="ds1631.h::ds1631Init"></a>
77 u08&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ds1631_8h.html#a16">ds1631Init</a> (u08 i2cAddr)</td></tr>
78  
79 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Initialize the DS1631 chip. <br></td></tr>
80 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a17" doxytag="ds1631.h::ds1631Reset"></a>
81 u08&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ds1631_8h.html#a17">ds1631Reset</a> (u08 i2cAddr)</td></tr>
82  
83 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Reset the DS1631 chip to its power-on defaults. <br></td></tr>
84 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a18" doxytag="ds1631.h::ds1631SetConfig"></a>
85 void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ds1631_8h.html#a18">ds1631SetConfig</a> (u08 i2cAddr, u08 config)</td></tr>
86  
87 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the configuration byte of the DS1631. <br></td></tr>
88 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a19" doxytag="ds1631.h::ds1631GetConfig"></a>
89 u08&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ds1631_8h.html#a19">ds1631GetConfig</a> (u08 i2cAddr)</td></tr>
90  
91 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the configuration byte of the DS1631. <br></td></tr>
92 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a20" doxytag="ds1631.h::ds1631StartConvert"></a>
93 void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ds1631_8h.html#a20">ds1631StartConvert</a> (u08 i2cAddr)</td></tr>
94  
95 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Start a temperature conversion. <br></td></tr>
96 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a21" doxytag="ds1631.h::ds1631StopConvert"></a>
97 void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ds1631_8h.html#a21">ds1631StopConvert</a> (u08 i2cAddr)</td></tr>
98  
99 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Stop a temperature conversion (or stop continuous conversion mode). <br></td></tr>
100 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a22" doxytag="ds1631.h::ds1631ReadTemp"></a>
101 s16&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ds1631_8h.html#a22">ds1631ReadTemp</a> (u08 i2cAddr)</td></tr>
102  
103 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Read the result of a temperature conversion. <br></td></tr>
104 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a23" doxytag="ds1631.h::ds1631SetTH"></a>
105 void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ds1631_8h.html#a23">ds1631SetTH</a> (u08 i2cAddr, s16 value)</td></tr>
106  
107 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the Temp-High threshold. <br></td></tr>
108 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a24" doxytag="ds1631.h::ds1631SetTL"></a>
109 void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ds1631_8h.html#a24">ds1631SetTL</a> (u08 i2cAddr, s16 value)</td></tr>
110  
111 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the Temp-Low threshold. <br></td></tr>
112 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a25" doxytag="ds1631.h::ds1631GetTH"></a>
113 s16&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ds1631_8h.html#a25">ds1631GetTH</a> (u08 i2cAddr)</td></tr>
114  
115 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the Temp-High threshold. <br></td></tr>
116 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a26" doxytag="ds1631.h::ds1631GetTL"></a>
117 s16&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ds1631_8h.html#a26">ds1631GetTL</a> (u08 i2cAddr)</td></tr>
118  
119 <tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the Temp-Low threshold. <br></td></tr>
120 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a27" doxytag="ds1631.h::ds1631WriteTempReg"></a>
121 void&nbsp;</td><td class="memItemRight" valign="bottom"><b>ds1631WriteTempReg</b> (u08 i2cAddr, u08 cmd, s16 value)</td></tr>
122  
123 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a28" doxytag="ds1631.h::ds1631ReadTempReg"></a>
124 s16&nbsp;</td><td class="memItemRight" valign="bottom"><b>ds1631ReadTempReg</b> (u08 i2cAddr, u08 cmd)</td></tr>
125  
126 </table>
127 <hr size="1"><address style="align: right;"><small>Generated on Sun Oct 29 03:41:08 2006 for Procyon AVRlib by&nbsp;
128 <a href="http://www.doxygen.org/index.html">
129 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.2 </small></address>
130 </body>
131 </html>
{BLAME END}
{FOOTER START}

Powered by WebSVN v2.8.3