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.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>timerx8.c File Reference</h1><hr><a name="_details"></a><h2>Detailed Description</h2> |
||
9 | |||
10 | <p> |
||
11 | Definition in file <a class="el" href="timerx8_8c-source.html">timerx8.c</a>. |
||
12 | <p> |
||
13 | <code>#include <avr/io.h></code><br> |
||
14 | <code>#include <avr/interrupt.h></code><br> |
||
15 | <code>#include <avr/pgmspace.h></code><br> |
||
16 | <code>#include <avr/sleep.h></code><br> |
||
17 | <code>#include "<a class="el" href="global_8h-source.html">global.h</a>"</code><br> |
||
18 | <code>#include "<a class="el" href="timerx8_8h-source.html">timerx8.h</a>"</code><br> |
||
19 | |||
20 | <p> |
||
21 | <a href="timerx8_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>Typedefs</h2></td></tr> |
||
24 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a3" doxytag="timerx8.c::voidFuncPtr"></a> |
||
25 | typedef void(* </td><td class="memItemRight" valign="bottom"><b>voidFuncPtr</b> )(void)</td></tr> |
||
26 | |||
27 | <tr><td colspan="2"><br><h2>Functions</h2></td></tr> |
||
28 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a5" doxytag="timerx8.c::__attribute__"></a> |
||
29 | unsigned short </td><td class="memItemRight" valign="bottom"><b>__attribute__</b> ((progmem))</td></tr> |
||
30 | |||
31 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga0" doxytag="timerx8.c::delay_us"></a> |
||
32 | void </td><td class="memItemRight" valign="bottom"><b>delay_us</b> (unsigned short time_us)</td></tr> |
||
33 | |||
34 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga1" doxytag="timerx8.c::timerInit"></a> |
||
35 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timer.html#ga1">timerInit</a> (void)</td></tr> |
||
36 | |||
37 | <tr><td class="mdescLeft"> </td><td class="mdescRight">initializes timing system (all timers) <br></td></tr> |
||
38 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga2" doxytag="timerx8.c::timer0Init"></a> |
||
39 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timer.html#ga2">timer0Init</a> ()</td></tr> |
||
40 | |||
41 | <tr><td class="mdescLeft"> </td><td class="mdescRight">initialize timer0 <br></td></tr> |
||
42 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga3" doxytag="timerx8.c::timer1Init"></a> |
||
43 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timer.html#ga3">timer1Init</a> (void)</td></tr> |
||
44 | |||
45 | <tr><td class="mdescLeft"> </td><td class="mdescRight">initialize timer1 <br></td></tr> |
||
46 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga4" doxytag="timerx8.c::timer0SetPrescaler"></a> |
||
47 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timer.html#ga4">timer0SetPrescaler</a> (u08 prescale)</td></tr> |
||
48 | |||
49 | <tr><td class="mdescLeft"> </td><td class="mdescRight">set timer0 prescaler <br></td></tr> |
||
50 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga6" doxytag="timerx8.c::timer1SetPrescaler"></a> |
||
51 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timer.html#ga6">timer1SetPrescaler</a> (u08 prescale)</td></tr> |
||
52 | |||
53 | <tr><td class="mdescLeft"> </td><td class="mdescRight">set timer1 prescaler <br></td></tr> |
||
54 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga5" doxytag="timerx8.c::timer0GetPrescaler"></a> |
||
55 | u16 </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timer.html#ga5">timer0GetPrescaler</a> (void)</td></tr> |
||
56 | |||
57 | <tr><td class="mdescLeft"> </td><td class="mdescRight">get timer0 prescaler <br></td></tr> |
||
58 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga7" doxytag="timerx8.c::timer1GetPrescaler"></a> |
||
59 | u16 </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timer.html#ga7">timer1GetPrescaler</a> (void)</td></tr> |
||
60 | |||
61 | <tr><td class="mdescLeft"> </td><td class="mdescRight">get timer0 prescaler <br></td></tr> |
||
62 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga8" doxytag="timerx8.c::timerAttach"></a> |
||
63 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timer.html#ga8">timerAttach</a> (u08 interruptNum, void(*userFunc)(void))</td></tr> |
||
64 | |||
65 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Attach a user function to a timer interrupt. <br></td></tr> |
||
66 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga9" doxytag="timerx8.c::timerDetach"></a> |
||
67 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timer.html#ga9">timerDetach</a> (u08 interruptNum)</td></tr> |
||
68 | |||
69 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Detach a user function from a timer interrupt. <br></td></tr> |
||
70 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timer.html#ga10">timerPause</a> (unsigned short pause_ms)</td></tr> |
||
71 | |||
72 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga11" doxytag="timerx8.c::timer0ClearOverflowCount"></a> |
||
73 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timer.html#ga11">timer0ClearOverflowCount</a> (void)</td></tr> |
||
74 | |||
75 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Clear timer0's overflow counter. <br></td></tr> |
||
76 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga12" doxytag="timerx8.c::timer0GetOverflowCount"></a> |
||
77 | long </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timer.html#ga12">timer0GetOverflowCount</a> (void)</td></tr> |
||
78 | |||
79 | <tr><td class="mdescLeft"> </td><td class="mdescRight">read timer0's overflow counter <br></td></tr> |
||
80 | <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> |
||
81 | |||
82 | <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> |
||
83 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga2" doxytag="timerx8.c::timer1PWMOff"></a> |
||
84 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerpwm.html#ga2">timer1PWMOff</a> (void)</td></tr> |
||
85 | |||
86 | <tr><td class="mdescLeft"> </td><td class="mdescRight">turn off all timer1 PWM output and set timer mode to normal <br></td></tr> |
||
87 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga3" doxytag="timerx8.c::timer1PWMAOn"></a> |
||
88 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerpwm.html#ga3">timer1PWMAOn</a> (void)</td></tr> |
||
89 | |||
90 | <tr><td class="mdescLeft"> </td><td class="mdescRight">turn on timer1 Channel A (OC1A) PWM output <br></td></tr> |
||
91 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga4" doxytag="timerx8.c::timer1PWMBOn"></a> |
||
92 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerpwm.html#ga4">timer1PWMBOn</a> (void)</td></tr> |
||
93 | |||
94 | <tr><td class="mdescLeft"> </td><td class="mdescRight">turn on timer1 Channel B (OC1B) PWM output <br></td></tr> |
||
95 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga5" doxytag="timerx8.c::timer1PWMAOff"></a> |
||
96 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerpwm.html#ga5">timer1PWMAOff</a> (void)</td></tr> |
||
97 | |||
98 | <tr><td class="mdescLeft"> </td><td class="mdescRight">turn off timer1 Channel A (OC1A) PWM output <br></td></tr> |
||
99 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga6" doxytag="timerx8.c::timer1PWMBOff"></a> |
||
100 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerpwm.html#ga6">timer1PWMBOff</a> (void)</td></tr> |
||
101 | |||
102 | <tr><td class="mdescLeft"> </td><td class="mdescRight">turn off timer1 Channel B (OC1B) PWM output <br></td></tr> |
||
103 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga7" doxytag="timerx8.c::timer1PWMASet"></a> |
||
104 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerpwm.html#ga7">timer1PWMASet</a> (u16 pwmDuty)</td></tr> |
||
105 | |||
106 | <tr><td class="mdescLeft"> </td><td class="mdescRight">set duty of timer1 Channel A (OC1A) PWM output <br></td></tr> |
||
107 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga8" doxytag="timerx8.c::timer1PWMBSet"></a> |
||
108 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerpwm.html#ga8">timer1PWMBSet</a> (u16 pwmDuty)</td></tr> |
||
109 | |||
110 | <tr><td class="mdescLeft"> </td><td class="mdescRight">set duty of timer1 Channel B (OC1B) PWM output <br></td></tr> |
||
111 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a27" doxytag="timerx8.c::TIMER_INTERRUPT_HANDLER"></a> |
||
112 | </td><td class="memItemRight" valign="bottom"><a class="el" href="timerx8_8c.html#a27">TIMER_INTERRUPT_HANDLER</a> (SIG_OVERFLOW0)</td></tr> |
||
113 | |||
114 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Interrupt handler for tcnt0 overflow interrupt. <br></td></tr> |
||
115 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a28" doxytag="timerx8.c::TIMER_INTERRUPT_HANDLER"></a> |
||
116 | </td><td class="memItemRight" valign="bottom"><a class="el" href="timerx8_8c.html#a28">TIMER_INTERRUPT_HANDLER</a> (SIG_OVERFLOW1)</td></tr> |
||
117 | |||
118 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Interrupt handler for tcnt1 overflow interrupt. <br></td></tr> |
||
119 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a29" doxytag="timerx8.c::TIMER_INTERRUPT_HANDLER"></a> |
||
120 | </td><td class="memItemRight" valign="bottom"><a class="el" href="timerx8_8c.html#a29">TIMER_INTERRUPT_HANDLER</a> (SIG_OUTPUT_COMPARE1A)</td></tr> |
||
121 | |||
122 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Interrupt handler for CutputCompare1A match (OC1A) interrupt. <br></td></tr> |
||
123 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a30" doxytag="timerx8.c::TIMER_INTERRUPT_HANDLER"></a> |
||
124 | </td><td class="memItemRight" valign="bottom"><a class="el" href="timerx8_8c.html#a30">TIMER_INTERRUPT_HANDLER</a> (SIG_OUTPUT_COMPARE1B)</td></tr> |
||
125 | |||
126 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Interrupt handler for OutputCompare1B match (OC1B) interrupt. <br></td></tr> |
||
127 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a31" doxytag="timerx8.c::TIMER_INTERRUPT_HANDLER"></a> |
||
128 | </td><td class="memItemRight" valign="bottom"><a class="el" href="timerx8_8c.html#a31">TIMER_INTERRUPT_HANDLER</a> (SIG_INPUT_CAPTURE1)</td></tr> |
||
129 | |||
130 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Interrupt handler for InputCapture1 (IC1) interrupt. <br></td></tr> |
||
131 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a32" doxytag="timerx8.c::TIMER_INTERRUPT_HANDLER"></a> |
||
132 | </td><td class="memItemRight" valign="bottom"><a class="el" href="timerx8_8c.html#a32">TIMER_INTERRUPT_HANDLER</a> (SIG_OUTPUT_COMPARE2A)</td></tr> |
||
133 | |||
134 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Interrupt handler for OutputCompare2A match (OC2A) interrupt. <br></td></tr> |
||
135 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a33" doxytag="timerx8.c::TIMER_INTERRUPT_HANDLER"></a> |
||
136 | </td><td class="memItemRight" valign="bottom"><a class="el" href="timerx8_8c.html#a33">TIMER_INTERRUPT_HANDLER</a> (SIG_OUTPUT_COMPARE2B)</td></tr> |
||
137 | |||
138 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Interrupt handler for OutputCompare2B match (OC2B) interrupt. <br></td></tr> |
||
139 | <tr><td colspan="2"><br><h2>Variables</h2></td></tr> |
||
140 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a0" doxytag="timerx8.c::TimerPauseReg"></a> |
||
141 | volatile unsigned long </td><td class="memItemRight" valign="bottom"><b>TimerPauseReg</b></td></tr> |
||
142 | |||
143 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a1" doxytag="timerx8.c::Timer0Reg0"></a> |
||
144 | volatile unsigned long </td><td class="memItemRight" valign="bottom"><b>Timer0Reg0</b></td></tr> |
||
145 | |||
146 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a2" doxytag="timerx8.c::Timer2Reg0"></a> |
||
147 | volatile unsigned long </td><td class="memItemRight" valign="bottom"><b>Timer2Reg0</b></td></tr> |
||
148 | |||
149 | </table> |
||
150 | <hr size="1"><address style="align: right;"><small>Generated on Sun Oct 29 03:41:09 2006 for Procyon AVRlib by |
||
151 | <a href="http://www.doxygen.org/index.html"> |
||
152 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.2 </small></address> |
||
153 | </body> |
||
154 | </html> |
Powered by WebSVN v2.8.3