?lang_form?
?lang_select?
?lang_submit?
?lang_endform?
{HEADER END}
{FILE START}
library
?curdirlinks? - Rev 6
?prevdifflink? - Blame - ?getfile?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Procyon AVRlib: timer.c File Reference</title>
<link href="dox.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.2 -->
<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>
<h1>timer.c File Reference</h1><hr><a name="_details"></a><h2>Detailed Description</h2>
<p>
Definition in file <a class="el" href="timer_8c-source.html">timer.c</a>.
<p>
<code>#include <avr/io.h></code><br>
<code>#include <avr/interrupt.h></code><br>
<code>#include <avr/pgmspace.h></code><br>
<code>#include <avr/sleep.h></code><br>
<code>#include "<a class="el" href="global_8h-source.html">global.h</a>"</code><br>
<code>#include "<a class="el" href="timer_8h-source.html">timer.h</a>"</code><br>
<code>#include "<a class="el" href="rprintf_8h-source.html">rprintf.h</a>"</code><br>
<p>
<a href="timer_8c-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Typedefs</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a3" doxytag="timer.c::voidFuncPtr"></a>
typedef void(* </td><td class="memItemRight" valign="bottom"><b>voidFuncPtr</b> )(void)</td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a5" doxytag="timer.c::__attribute__"></a>
unsigned short </td><td class="memItemRight" valign="bottom"><b>__attribute__</b> ((progmem))</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga0" doxytag="timer.c::delay_us"></a>
void </td><td class="memItemRight" valign="bottom"><b>delay_us</b> (unsigned short time_us)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga1" doxytag="timer.c::timerInit"></a>
void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timer.html#ga1">timerInit</a> (void)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">initializes timing system (all timers) <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga2" doxytag="timer.c::timer0Init"></a>
void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timer.html#ga2">timer0Init</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">initialize timer0 <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga3" doxytag="timer.c::timer1Init"></a>
void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timer.html#ga3">timer1Init</a> (void)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">initialize timer1 <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga4" doxytag="timer.c::timer0SetPrescaler"></a>
void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timer.html#ga4">timer0SetPrescaler</a> (u08 prescale)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">set timer0 prescaler <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga6" doxytag="timer.c::timer1SetPrescaler"></a>
void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timer.html#ga6">timer1SetPrescaler</a> (u08 prescale)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">set timer1 prescaler <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga5" doxytag="timer.c::timer0GetPrescaler"></a>
u16 </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timer.html#ga5">timer0GetPrescaler</a> (void)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">get timer0 prescaler <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga7" doxytag="timer.c::timer1GetPrescaler"></a>
u16 </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timer.html#ga7">timer1GetPrescaler</a> (void)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">get timer0 prescaler <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga8" doxytag="timer.c::timerAttach"></a>
void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timer.html#ga8">timerAttach</a> (u08 interruptNum, void(*userFunc)(void))</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Attach a user function to a timer interrupt. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga9" doxytag="timer.c::timerDetach"></a>
void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timer.html#ga9">timerDetach</a> (u08 interruptNum)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Detach a user function from a timer interrupt. <br></td></tr>
<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>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga11" doxytag="timer.c::timer0ClearOverflowCount"></a>
void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timer.html#ga11">timer0ClearOverflowCount</a> (void)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Clear timer0's overflow counter. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga12" doxytag="timer.c::timer0GetOverflowCount"></a>
long </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timer.html#ga12">timer0GetOverflowCount</a> (void)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">read timer0's overflow counter <br></td></tr>
<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>
<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>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga2" doxytag="timer.c::timer1PWMOff"></a>
void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerpwm.html#ga2">timer1PWMOff</a> (void)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">turn off all timer1 PWM output and set timer mode to normal <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga3" doxytag="timer.c::timer1PWMAOn"></a>
void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerpwm.html#ga3">timer1PWMAOn</a> (void)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">turn on timer1 Channel A (OC1A) PWM output <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga4" doxytag="timer.c::timer1PWMBOn"></a>
void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerpwm.html#ga4">timer1PWMBOn</a> (void)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">turn on timer1 Channel B (OC1B) PWM output <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga5" doxytag="timer.c::timer1PWMAOff"></a>
void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerpwm.html#ga5">timer1PWMAOff</a> (void)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">turn off timer1 Channel A (OC1A) PWM output <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga6" doxytag="timer.c::timer1PWMBOff"></a>
void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerpwm.html#ga6">timer1PWMBOff</a> (void)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">turn off timer1 Channel B (OC1B) PWM output <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga7" doxytag="timer.c::timer1PWMASet"></a>
void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerpwm.html#ga7">timer1PWMASet</a> (u16 pwmDuty)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">set duty of timer1 Channel A (OC1A) PWM output <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ga8" doxytag="timer.c::timer1PWMBSet"></a>
void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__timerpwm.html#ga8">timer1PWMBSet</a> (u16 pwmDuty)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">set duty of timer1 Channel B (OC1B) PWM output <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a27" doxytag="timer.c::TIMER_INTERRUPT_HANDLER"></a>
</td><td class="memItemRight" valign="bottom"><a class="el" href="timer_8c.html#a27">TIMER_INTERRUPT_HANDLER</a> (SIG_OVERFLOW0)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Interrupt handler for tcnt0 overflow interrupt. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a28" doxytag="timer.c::TIMER_INTERRUPT_HANDLER"></a>
</td><td class="memItemRight" valign="bottom"><a class="el" href="timer_8c.html#a28">TIMER_INTERRUPT_HANDLER</a> (SIG_OVERFLOW1)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Interrupt handler for tcnt1 overflow interrupt. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a29" doxytag="timer.c::TIMER_INTERRUPT_HANDLER"></a>
</td><td class="memItemRight" valign="bottom"><a class="el" href="timer_8c.html#a29">TIMER_INTERRUPT_HANDLER</a> (SIG_OUTPUT_COMPARE1A)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Interrupt handler for CutputCompare1A match (OC1A) interrupt. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a30" doxytag="timer.c::TIMER_INTERRUPT_HANDLER"></a>
</td><td class="memItemRight" valign="bottom"><a class="el" href="timer_8c.html#a30">TIMER_INTERRUPT_HANDLER</a> (SIG_OUTPUT_COMPARE1B)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Interrupt handler for OutputCompare1B match (OC1B) interrupt. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a31" doxytag="timer.c::TIMER_INTERRUPT_HANDLER"></a>
</td><td class="memItemRight" valign="bottom"><a class="el" href="timer_8c.html#a31">TIMER_INTERRUPT_HANDLER</a> (SIG_INPUT_CAPTURE1)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Interrupt handler for InputCapture1 (IC1) interrupt. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a32" doxytag="timer.c::TIMER_INTERRUPT_HANDLER"></a>
</td><td class="memItemRight" valign="bottom"><a class="el" href="timer_8c.html#a32">TIMER_INTERRUPT_HANDLER</a> (SIG_OUTPUT_COMPARE2)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Interrupt handler for OutputCompare2 match (OC2) interrupt. <br></td></tr>
<tr><td colspan="2"><br><h2>Variables</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a0" doxytag="timer.c::TimerPauseReg"></a>
volatile unsigned long </td><td class="memItemRight" valign="bottom"><b>TimerPauseReg</b></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a1" doxytag="timer.c::Timer0Reg0"></a>
volatile unsigned long </td><td class="memItemRight" valign="bottom"><b>Timer0Reg0</b></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a2" doxytag="timer.c::Timer2Reg0"></a>
volatile unsigned long </td><td class="memItemRight" valign="bottom"><b>Timer2Reg0</b></td></tr>
</table>
<hr size="1"><address style="align: right;"><small>Generated on Sun Oct 29 03:41:08 2006 for Procyon AVRlib by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.2 </small></address>
</body>
</html>
|
{FILE END}
{FOOTER START}
Powered by WebSVN v2.8.3