1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META name="GENERATOR" content="Microsoft FrontPage 5.0"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css"> 9<title>OSSetPeriodicAlarm</title> 10</head> 11 12<body> 13 14<h1>OSSetPeriodicAlarm</h1> 15 16 17<h2>C Specification</h2> 18<dl> 19<dd><pre>#include <revolution/os.h> 20 21typedef void (* OSAlarmHandler ) (OSAlarm* alarm, OSContext* context); 22 23void OSSetPeriodicAlarm( 24OSAlarm* alarm, 25OSTime start, 26OSTime period, 27OSAlarmHandler handler);</pre> 28 </dd> 29</dl> 30 31<h2>Arguments</h2> 32<TABLE border="1" cellpadding="3" cellspacing="0.1"> 33 <tr> 34<TD width="120" bgcolor="#ffffe8"><i><b><code><STRONG><EM><CODE>alarm</CODE></EM></STRONG></code></b></i></TD> 35<TD width="520">Pointer to alarm to set.</TD> 36 </tr> 37 <tr> 38<TD width="120" bgcolor="#ffffe8"><i><b><code><STRONG><EM><CODE>start</CODE></EM></STRONG></code></b></i></TD> 39<TD width="520">Period origin.</TD> 40 </tr> 41 <tr> 42<TD width="120" bgcolor="#ffffe8"><i><b><code><STRONG><EM><CODE>period</CODE></EM></STRONG></code></b></i></TD> 43<TD width="520">Ticks for counting each period.</TD> 44 </tr> 45 <tr> 46<TD width="120" bgcolor="#ffffe8"><i><b><code><STRONG><EM><CODE>handler</CODE></EM></STRONG></code></b></i></TD> 47<TD width="520">Alarm handler to call.</TD> 48 </tr> 49</TABLE> 50<h2>Return Values</h2> 51 52<p>None.</p> 53<H2>Description</H2> 54<P>Sets a periodic alarm.</P> 55 56 57 58<h2>See Also</h2> 59 60<p> 61<a target="contents" href="../toc.html#Alarm">Alarm Functions</a>, <code><a href="OSCancelAlarm.html">OSCancelAlarm</a></code>, <code><a href="OSCreateAlarm.html">OSCreateAlarm</a></code>, <a href="OSSetAlarm.html"><code>OSSetAlarm</code></a></p> 62<H2>Revision History</H2> 63<P>03/01/2006 Initial version.</P> 64</body> 65</html>