Debian Codegraph @

docs/kxlgettimer.html

raw symbols SCIP
1 <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=euc-jp">
5 <meta name="GENERATOR" content="emacs">
6 <meta name="Author" content="kacchan">
7 <title>KXL_GetTimer</title>
8 </head>
9 <body text="#000000" bgcolor="#f0f0dc" link="#3366FF" vlink="#3366FF" alink="#FF0000">
10
11 <a href="kxltimer.html">Prev</a>
12 <a href="KXL.html">Top</a>
13 <a href="kxlresettimer.html">Next</a>
14 <hr>
15
16 <b>Name</b><br><br>
17 <font size=+2>KXL_GetTimer</font><br><br>
18
19 <b>Synopsis</b><br>
20 <pre>KXL_GetTimer -- It checks to see timer interruption occurred.
21 </pre><br>
22
23 <b>Description</b><br>
24 <pre>Bool KXL_GetTimer(void);</pre><br>
25
26 <b>Arguments</b><br><br>
27 Nothing.
28 <br><br><br>
29
30 <b>Return Value</b><br>
31 <pre>True = Timer interruption occurred.
32 False = Timer interruption has not occurred.
33 </pre>
34 <br>
35
36 <b>Exsample</b><br>
37 <pre>
38 #include &lt;KXL.h&gt;
39
40 int main(void)
41 {
42 Uint16 count = 0;
43 Uint8 buff[64];
44
45 KXL_CreateWindow(100, 100, "kxl.org", 0);
46
47 KXL_Timer(1); // 1 interruption per second
48
49 while (count <= 10) {
50 KXL_ClearFrameImm(0, 0, 100, 100);
51 sprintf(buff, "%2d second", count ++);
52 KXL_PutText(8, 50, buff);
53 KXL_UpDateImm(0, 0, 100, 100);
54 while (<b>KXL_GetTimer()</b> == False);
55 KXL_ResetTimer();
56 }
57 KXL_DeleteWindow();
58 return 0;
59 }
60 </pre>
61
62 </body>
63 </html>