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: spieeprom.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 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>spieeprom.h File Reference</h1><hr><a name="_details"></a><h2>Detailed Description</h2> |
||
9 | |||
10 | <p> |
||
11 | Definition in file <a class="el" href="spieeprom_8h-source.html">spieeprom.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="spieeprom_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="spieeprom.h::SPIEEPROM_CMD_READ"></a> |
||
20 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="spieeprom_8h.html#a0">SPIEEPROM_CMD_READ</a> 0x03</td></tr> |
||
21 | |||
22 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Read byte(s). <br></td></tr> |
||
23 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a1" doxytag="spieeprom.h::SPIEEPROM_CMD_WRITE"></a> |
||
24 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="spieeprom_8h.html#a1">SPIEEPROM_CMD_WRITE</a> 0x02</td></tr> |
||
25 | |||
26 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Write byte(s). <br></td></tr> |
||
27 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a2" doxytag="spieeprom.h::SPIEEPROM_CMD_WREN"></a> |
||
28 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="spieeprom_8h.html#a2">SPIEEPROM_CMD_WREN</a> 0x06</td></tr> |
||
29 | |||
30 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Write Enable. <br></td></tr> |
||
31 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a3" doxytag="spieeprom.h::SPIEEPROM_CMD_WRDI"></a> |
||
32 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="spieeprom_8h.html#a3">SPIEEPROM_CMD_WRDI</a> 0x04</td></tr> |
||
33 | |||
34 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Write Disable. <br></td></tr> |
||
35 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a4" doxytag="spieeprom.h::SPIEEPROM_CMD_RDSR"></a> |
||
36 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="spieeprom_8h.html#a4">SPIEEPROM_CMD_RDSR</a> 0x05</td></tr> |
||
37 | |||
38 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Read Status Register. <br></td></tr> |
||
39 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a5" doxytag="spieeprom.h::SPIEEPROM_CMD_WRSR"></a> |
||
40 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="spieeprom_8h.html#a5">SPIEEPROM_CMD_WRSR</a> 0x01</td></tr> |
||
41 | |||
42 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Write Status Register. <br></td></tr> |
||
43 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a6" doxytag="spieeprom.h::SPIEEPROM_STATUS_WIP"></a> |
||
44 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="spieeprom_8h.html#a6">SPIEEPROM_STATUS_WIP</a> 0x01</td></tr> |
||
45 | |||
46 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Write in progress. <br></td></tr> |
||
47 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a7" doxytag="spieeprom.h::SPIEEPROM_STATUS_WEL"></a> |
||
48 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="spieeprom_8h.html#a7">SPIEEPROM_STATUS_WEL</a> 0x01</td></tr> |
||
49 | |||
50 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Write enable. <br></td></tr> |
||
51 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a8" doxytag="spieeprom.h::SPIEEPROM_STATUS_BP0"></a> |
||
52 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="spieeprom_8h.html#a8">SPIEEPROM_STATUS_BP0</a> 0x01</td></tr> |
||
53 | |||
54 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Block Proection 0. <br></td></tr> |
||
55 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a9" doxytag="spieeprom.h::SPIEEPROM_STATUS_BP1"></a> |
||
56 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="spieeprom_8h.html#a9">SPIEEPROM_STATUS_BP1</a> 0x01</td></tr> |
||
57 | |||
58 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Block Proection 1. <br></td></tr> |
||
59 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a10" doxytag="spieeprom.h::SPIEEPROM_STATUS_WPEN"></a> |
||
60 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="spieeprom_8h.html#a10">SPIEEPROM_STATUS_WPEN</a> 0x01</td></tr> |
||
61 | |||
62 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Write Protect Enable. <br></td></tr> |
||
63 | <tr><td colspan="2"><br><h2>Functions</h2></td></tr> |
||
64 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a11" doxytag="spieeprom.h::spieepromInit"></a> |
||
65 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="spieeprom_8h.html#a11">spieepromInit</a> (void)</td></tr> |
||
66 | |||
67 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Initialize SPI EEPROM interface. <br></td></tr> |
||
68 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a12" doxytag="spieeprom.h::spieepromReadByte"></a> |
||
69 | u08 </td><td class="memItemRight" valign="bottom"><a class="el" href="spieeprom_8h.html#a12">spieepromReadByte</a> (u32 memAddr)</td></tr> |
||
70 | |||
71 | <tr><td class="mdescLeft"> </td><td class="mdescRight">In the SPI EEPROM read a byte from memory location [memAddr]. <br></td></tr> |
||
72 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a13" doxytag="spieeprom.h::spieepromWriteByte"></a> |
||
73 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="spieeprom_8h.html#a13">spieepromWriteByte</a> (u32 memAddr, u08 data)</td></tr> |
||
74 | |||
75 | <tr><td class="mdescLeft"> </td><td class="mdescRight">In the SPI EEPROM write a byte [data] to the memory location [memAddr]. <br></td></tr> |
||
76 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a14" doxytag="spieeprom.h::spieepromWriteEnable"></a> |
||
77 | void </td><td class="memItemRight" valign="bottom"><b>spieepromWriteEnable</b> (void)</td></tr> |
||
78 | |||
79 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a15" doxytag="spieeprom.h::spieepromWriteDisable"></a> |
||
80 | void </td><td class="memItemRight" valign="bottom"><b>spieepromWriteDisable</b> (void)</td></tr> |
||
81 | |||
82 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a16" doxytag="spieeprom.h::spieepromReadStatus"></a> |
||
83 | u08 </td><td class="memItemRight" valign="bottom"><b>spieepromReadStatus</b> (void)</td></tr> |
||
84 | |||
85 | </table> |
||
86 | <hr size="1"><address style="align: right;"><small>Generated on Sun Oct 29 03:41:08 2006 for Procyon AVRlib by |
||
87 | <a href="http://www.doxygen.org/index.html"> |
||
88 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.2 </small></address> |
||
89 | </body> |
||
90 | </html> |
Powered by WebSVN v2.8.3