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: timerx8.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>timerx8.h File Reference</h1><hr><a name="_details"></a><h2>Detailed Description</h2> |
||
9 | |||
10 | <p> |
||
11 | Definition in file <a class="el" href="timerx8_8h-source.html">timerx8.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="timerx8_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="ga13" doxytag="timerx8.h::PWM10"></a> |
||
20 | #define </td><td class="memItemRight" valign="bottom"><b>PWM10</b> WGM10</td></tr> |
||
21 | |||
22 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga14" doxytag="timerx8.h::PWM11"></a> |
||
23 | #define </td><td class="memItemRight" valign="bottom"><b>PWM11</b> WGM11</td></tr> |
||
24 | |||
25 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga15" doxytag="timerx8.h::TIMER_CLK_STOP"></a> |
||
26 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerx8.html#ga15">TIMER_CLK_STOP</a> 0x00</td></tr> |
||
27 | |||
28 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Timer Stopped. <br></td></tr> |
||
29 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga16" doxytag="timerx8.h::TIMER_CLK_DIV1"></a> |
||
30 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerx8.html#ga16">TIMER_CLK_DIV1</a> 0x01</td></tr> |
||
31 | |||
32 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Timer clocked at F_CPU. <br></td></tr> |
||
33 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga17" doxytag="timerx8.h::TIMER_CLK_DIV8"></a> |
||
34 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerx8.html#ga17">TIMER_CLK_DIV8</a> 0x02</td></tr> |
||
35 | |||
36 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Timer clocked at F_CPU/8. <br></td></tr> |
||
37 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga18" doxytag="timerx8.h::TIMER_CLK_DIV64"></a> |
||
38 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerx8.html#ga18">TIMER_CLK_DIV64</a> 0x03</td></tr> |
||
39 | |||
40 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Timer clocked at F_CPU/64. <br></td></tr> |
||
41 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga19" doxytag="timerx8.h::TIMER_CLK_DIV256"></a> |
||
42 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerx8.html#ga19">TIMER_CLK_DIV256</a> 0x04</td></tr> |
||
43 | |||
44 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Timer clocked at F_CPU/256. <br></td></tr> |
||
45 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga20" doxytag="timerx8.h::TIMER_CLK_DIV1024"></a> |
||
46 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerx8.html#ga20">TIMER_CLK_DIV1024</a> 0x05</td></tr> |
||
47 | |||
48 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Timer clocked at F_CPU/1024. <br></td></tr> |
||
49 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga21" doxytag="timerx8.h::TIMER_CLK_T_FALL"></a> |
||
50 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerx8.html#ga21">TIMER_CLK_T_FALL</a> 0x06</td></tr> |
||
51 | |||
52 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Timer clocked at T falling edge. <br></td></tr> |
||
53 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga22" doxytag="timerx8.h::TIMER_CLK_T_RISE"></a> |
||
54 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerx8.html#ga22">TIMER_CLK_T_RISE</a> 0x07</td></tr> |
||
55 | |||
56 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Timer clocked at T rising edge. <br></td></tr> |
||
57 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga23" doxytag="timerx8.h::TIMER_PRESCALE_MASK"></a> |
||
58 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerx8.html#ga23">TIMER_PRESCALE_MASK</a> 0x07</td></tr> |
||
59 | |||
60 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Timer Prescaler Bit-Mask. <br></td></tr> |
||
61 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga24" doxytag="timerx8.h::TIMERRTC_CLK_STOP"></a> |
||
62 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerx8.html#ga24">TIMERRTC_CLK_STOP</a> 0x00</td></tr> |
||
63 | |||
64 | <tr><td class="mdescLeft"> </td><td class="mdescRight">RTC Timer Stopped. <br></td></tr> |
||
65 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga25" doxytag="timerx8.h::TIMERRTC_CLK_DIV1"></a> |
||
66 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerx8.html#ga25">TIMERRTC_CLK_DIV1</a> 0x01</td></tr> |
||
67 | |||
68 | <tr><td class="mdescLeft"> </td><td class="mdescRight">RTC Timer clocked at F_CPU. <br></td></tr> |
||
69 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga26" doxytag="timerx8.h::TIMERRTC_CLK_DIV8"></a> |
||
70 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerx8.html#ga26">TIMERRTC_CLK_DIV8</a> 0x02</td></tr> |
||
71 | |||
72 | <tr><td class="mdescLeft"> </td><td class="mdescRight">RTC Timer clocked at F_CPU/8. <br></td></tr> |
||
73 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga27" doxytag="timerx8.h::TIMERRTC_CLK_DIV32"></a> |
||
74 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerx8.html#ga27">TIMERRTC_CLK_DIV32</a> 0x03</td></tr> |
||
75 | |||
76 | <tr><td class="mdescLeft"> </td><td class="mdescRight">RTC Timer clocked at F_CPU/32. <br></td></tr> |
||
77 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga28" doxytag="timerx8.h::TIMERRTC_CLK_DIV64"></a> |
||
78 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerx8.html#ga28">TIMERRTC_CLK_DIV64</a> 0x04</td></tr> |
||
79 | |||
80 | <tr><td class="mdescLeft"> </td><td class="mdescRight">RTC Timer clocked at F_CPU/64. <br></td></tr> |
||
81 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga29" doxytag="timerx8.h::TIMERRTC_CLK_DIV128"></a> |
||
82 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerx8.html#ga29">TIMERRTC_CLK_DIV128</a> 0x05</td></tr> |
||
83 | |||
84 | <tr><td class="mdescLeft"> </td><td class="mdescRight">RTC Timer clocked at F_CPU/128. <br></td></tr> |
||
85 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga30" doxytag="timerx8.h::TIMERRTC_CLK_DIV256"></a> |
||
86 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerx8.html#ga30">TIMERRTC_CLK_DIV256</a> 0x06</td></tr> |
||
87 | |||
88 | <tr><td class="mdescLeft"> </td><td class="mdescRight">RTC Timer clocked at F_CPU/256. <br></td></tr> |
||
89 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga31" doxytag="timerx8.h::TIMERRTC_CLK_DIV1024"></a> |
||
90 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerx8.html#ga31">TIMERRTC_CLK_DIV1024</a> 0x07</td></tr> |
||
91 | |||
92 | <tr><td class="mdescLeft"> </td><td class="mdescRight">RTC Timer clocked at F_CPU/1024. <br></td></tr> |
||
93 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga32" doxytag="timerx8.h::TIMERRTC_PRESCALE_MASK"></a> |
||
94 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerx8.html#ga32">TIMERRTC_PRESCALE_MASK</a> 0x07</td></tr> |
||
95 | |||
96 | <tr><td class="mdescLeft"> </td><td class="mdescRight">RTC Timer Prescaler Bit-Mask. <br></td></tr> |
||
97 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga33" doxytag="timerx8.h::TIMER0PRESCALE"></a> |
||
98 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerx8.html#ga33">TIMER0PRESCALE</a> TIMER_CLK_DIV8</td></tr> |
||
99 | |||
100 | <tr><td class="mdescLeft"> </td><td class="mdescRight">timer 0 prescaler default <br></td></tr> |
||
101 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga34" doxytag="timerx8.h::TIMER1PRESCALE"></a> |
||
102 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerx8.html#ga34">TIMER1PRESCALE</a> TIMER_CLK_DIV64</td></tr> |
||
103 | |||
104 | <tr><td class="mdescLeft"> </td><td class="mdescRight">timer 1 prescaler default <br></td></tr> |
||
105 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga35" doxytag="timerx8.h::TIMER2PRESCALE"></a> |
||
106 | #define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerx8.html#ga35">TIMER2PRESCALE</a> TIMERRTC_CLK_DIV64</td></tr> |
||
107 | |||
108 | <tr><td class="mdescLeft"> </td><td class="mdescRight">timer 2 prescaler default <br></td></tr> |
||
109 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga36" doxytag="timerx8.h::TIMER0OVERFLOW_INT"></a> |
||
110 | #define </td><td class="memItemRight" valign="bottom"><b>TIMER0OVERFLOW_INT</b> 0</td></tr> |
||
111 | |||
112 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga37" doxytag="timerx8.h::TIMER1OVERFLOW_INT"></a> |
||
113 | #define </td><td class="memItemRight" valign="bottom"><b>TIMER1OVERFLOW_INT</b> 1</td></tr> |
||
114 | |||
115 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga38" doxytag="timerx8.h::TIMER1OUTCOMPAREA_INT"></a> |
||
116 | #define </td><td class="memItemRight" valign="bottom"><b>TIMER1OUTCOMPAREA_INT</b> 2</td></tr> |
||
117 | |||
118 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga39" doxytag="timerx8.h::TIMER1OUTCOMPAREB_INT"></a> |
||
119 | #define </td><td class="memItemRight" valign="bottom"><b>TIMER1OUTCOMPAREB_INT</b> 3</td></tr> |
||
120 | |||
121 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga40" doxytag="timerx8.h::TIMER1INPUTCAPTURE_INT"></a> |
||
122 | #define </td><td class="memItemRight" valign="bottom"><b>TIMER1INPUTCAPTURE_INT</b> 4</td></tr> |
||
123 | |||
124 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga41" doxytag="timerx8.h::TIMER2OVERFLOW_INT"></a> |
||
125 | #define </td><td class="memItemRight" valign="bottom"><b>TIMER2OVERFLOW_INT</b> 5</td></tr> |
||
126 | |||
127 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga42" doxytag="timerx8.h::TIMER2OUTCOMPARE_INT"></a> |
||
128 | #define </td><td class="memItemRight" valign="bottom"><b>TIMER2OUTCOMPARE_INT</b> 6</td></tr> |
||
129 | |||
130 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga43" doxytag="timerx8.h::TIMER_NUM_INTERRUPTS"></a> |
||
131 | #define </td><td class="memItemRight" valign="bottom"><b>TIMER_NUM_INTERRUPTS</b> 7</td></tr> |
||
132 | |||
133 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga44" doxytag="timerx8.h::TIMER_INTERRUPT_HANDLER"></a> |
||
134 | #define </td><td class="memItemRight" valign="bottom"><b>TIMER_INTERRUPT_HANDLER</b> SIGNAL</td></tr> |
||
135 | |||
136 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga45" doxytag="timerx8.h::delay"></a> |
||
137 | #define </td><td class="memItemRight" valign="bottom"><b>delay</b> delay_us</td></tr> |
||
138 | |||
139 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga46" doxytag="timerx8.h::delay_ms"></a> |
||
140 | #define </td><td class="memItemRight" valign="bottom"><b>delay_ms</b> timerPause</td></tr> |
||
141 | |||
142 | <tr><td colspan="2"><br><h2>Functions</h2></td></tr> |
||
143 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga0" doxytag="timerx8.h::delay_us"></a> |
||
144 | void </td><td class="memItemRight" valign="bottom"><b>delay_us</b> (unsigned short time_us)</td></tr> |
||
145 | |||
146 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga1" doxytag="timerx8.h::timerInit"></a> |
||
147 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerx8.html#ga1">timerInit</a> (void)</td></tr> |
||
148 | |||
149 | <tr><td class="mdescLeft"> </td><td class="mdescRight">initializes timing system (all timers) <br></td></tr> |
||
150 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga2" doxytag="timerx8.h::timer0Init"></a> |
||
151 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerx8.html#ga2">timer0Init</a> (void)</td></tr> |
||
152 | |||
153 | <tr><td class="mdescLeft"> </td><td class="mdescRight">initialize timer0 <br></td></tr> |
||
154 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga3" doxytag="timerx8.h::timer1Init"></a> |
||
155 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerx8.html#ga3">timer1Init</a> (void)</td></tr> |
||
156 | |||
157 | <tr><td class="mdescLeft"> </td><td class="mdescRight">initialize timer1 <br></td></tr> |
||
158 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga4" doxytag="timerx8.h::timer0SetPrescaler"></a> |
||
159 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerx8.html#ga4">timer0SetPrescaler</a> (u08 prescale)</td></tr> |
||
160 | |||
161 | <tr><td class="mdescLeft"> </td><td class="mdescRight">set timer0 prescaler <br></td></tr> |
||
162 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga5" doxytag="timerx8.h::timer0GetPrescaler"></a> |
||
163 | u16 </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerx8.html#ga5">timer0GetPrescaler</a> (void)</td></tr> |
||
164 | |||
165 | <tr><td class="mdescLeft"> </td><td class="mdescRight">get timer0 prescaler <br></td></tr> |
||
166 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga6" doxytag="timerx8.h::timer1SetPrescaler"></a> |
||
167 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerx8.html#ga6">timer1SetPrescaler</a> (u08 prescale)</td></tr> |
||
168 | |||
169 | <tr><td class="mdescLeft"> </td><td class="mdescRight">set timer1 prescaler <br></td></tr> |
||
170 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga7" doxytag="timerx8.h::timer1GetPrescaler"></a> |
||
171 | u16 </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerx8.html#ga7">timer1GetPrescaler</a> (void)</td></tr> |
||
172 | |||
173 | <tr><td class="mdescLeft"> </td><td class="mdescRight">get timer0 prescaler <br></td></tr> |
||
174 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga8" doxytag="timerx8.h::timerAttach"></a> |
||
175 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerx8.html#ga8">timerAttach</a> (u08 interruptNum, void(*userFunc)(void))</td></tr> |
||
176 | |||
177 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Attach a user function to a timer interrupt. <br></td></tr> |
||
178 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga9" doxytag="timerx8.h::timerDetach"></a> |
||
179 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerx8.html#ga9">timerDetach</a> (u08 interruptNum)</td></tr> |
||
180 | |||
181 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Detach a user function from a timer interrupt. <br></td></tr> |
||
182 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerx8.html#ga10">timerPause</a> (unsigned short pause_ms)</td></tr> |
||
183 | |||
184 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga11" doxytag="timerx8.h::timer0ClearOverflowCount"></a> |
||
185 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerx8.html#ga11">timer0ClearOverflowCount</a> (void)</td></tr> |
||
186 | |||
187 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Clear timer0's overflow counter. <br></td></tr> |
||
188 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga12" doxytag="timerx8.h::timer0GetOverflowCount"></a> |
||
189 | long </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerx8.html#ga12">timer0GetOverflowCount</a> (void)</td></tr> |
||
190 | |||
191 | <tr><td class="mdescLeft"> </td><td class="mdescRight">read timer0's overflow counter <br></td></tr> |
||
192 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerpwm.html#ga0">timer1PWMInit</a> (u08 bitRes)</td></tr> |
||
193 | |||
194 | <tr><td class="mdescLeft"> </td><td class="mdescRight">initialize and set timer1 mode to PWM <a href="group__timerpwm.html#ga0"></a><br></td></tr> |
||
195 | </table> |
||
196 | <hr size="1"><address style="align: right;"><small>Generated on Sun Oct 29 03:41:09 2006 for Procyon AVRlib by |
||
197 | <a href="http://www.doxygen.org/index.html"> |
||
198 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.2 </small></address> |
||
199 | </body> |
||
200 | </html> |
Powered by WebSVN v2.8.3