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="IBM WebSphere Studio Homepage Builder Version 8.0.2.0 for Windows">
7<META http-equiv="Content-Style-Type" content="text/css">
8<title>WM_GetNextTgid</title>
9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
10</head>
11
12<body>
13
14<h1 align="left">WM_GetNextTgid&nbsp;<img src="../../image/NTR.gif"><img src="../../image/TWL.gif"></H1>
15<h2>Syntax</h2>
16<dl>
17  <dd><PRE><CODE>#include &lt;nitro/wm.h&gt;
18
19u16 WM_GetNextTgid( void );
20</CODE></PRE></dd>
21</dl>
22
23<h2>Arguments</h2>
24<p>None.</p>
25
26<h2>Return Values</h2>
27<p>The first time it is called, it returns a TGID value based on the RTC. After that, it returns the previous return value incremented by 1.</p>
28
29<H2>Description</H2>
30<P>Returns a TGID value that is automatically generated according to the following rules:
31<UL>
32<LI>The first call: Obtains the current RTC time and generates a value based on the formula (minutes * 256 + seconds). <font color="#800000">(Internally, it calls the <CODE><a href="../../rtc/RTC_Init.html">RTC_Init</a></CODE> and <CODE><a href="../../rtc/RTC_GetTime.html">RTC_GetTime</a></CODE> functions.)</font>
33<LI>Thereafter: Increments the previous return value by 1 (if it exceeds 0xFFFF, it returns 0).
34</UL>
35</P>
36
37<H2>See Also</H2>
38<P><CODE><A href="WM_SetParentParameter.html">WM_SetParentParameter</A></CODE></P>
39
40<H2>Revision History</H2>
41<P>
422005/04/11 Initial version.
43</P>
44<hr><p>CONFIDENTIAL</p></body>
45</html>
46