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 3.0">
7<meta http-equiv="Content-Style-Type" content="text/css">
8<link rel="stylesheet" type="text/css" href="../CSS/revolution.css">
9<title>VISetVSyncTimingTest</title>
10</head>
11
12<body>
13
14<h1 align="left">VISetVSyncTimingTest</h1>
15
16<h2>C Specification</h2>
17
18<dl>
19<dd><pre><code>#include &lt;revolution/vi.h&gt;</code></pre>
20  </dd>
21<dd><pre><code>void VISetVSyncTimingTest(void)</code></pre>
22  </dd>
23</dl>
24
25<h2>Arguments</h2>
26
27<p>None.</p>
28
29<h2>Return Values</h2>
30
31<p>None.</p>
32
33<h2>Description</h2>
34
35<p>This function is primarily used to test whether the switch from interlace to progressive mode occurred correctly. To switch modes, execute this function anytime during interlaced display and then execute <code><a href="VIGetVSyncTimingTest.html">VIGetVSyncTimingTest</a></code> after the display switches to progressive mode.
36</p>
37
38<p>
39This function checks if the VI retrace interrupt timing is delayed.
40
41
42If the VI retrace interrupt timing is behind standard timing, the error counter increments by one. The error counter can be obtained using <code><a href="VIGetVSyncTimingTest.html">VIGetVSyncTimingTest</a></code>. This check is carried out every field until <code><a href="VIGetVSyncTimingTest.html">VIGetVSyncTimingTest</a></code> executes.
43</p>
44
45<p>
46If VI retrace interrupt timing is delayed when switching from interlace to progressive mode, there is a risk that the switch to progressive mode will not occur correctly. The main factor causing delays in VI retrace interrupt timing is long periods where interrupts are disabled. If the return value of <code><a href="VIGetVSyncTimingTest.html">VIGetVSyncTimingTest</a></code> is not 0, be sure to check whether a long period where interrupts are disabled was set in the program.
47</p>
48
49
50<h2>See Also</h2>
51
52<p><code><a href="VIGetVSyncTimingTest.html">VIGetVSyncTimingTest</a></code></p>
53
54
55<h2>Revision History</h2>
56
57<p>06/06/2006 Initial version.</p>
58</body>
59</html>
60