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 7.0.0.0 for Windows">
7<META http-equiv="Content-Style-Type" content="text/css">
8<title>VIBPulseState</title>
9<LINK rel="stylesheet" href="../css/nitro.css" type="text/css">
10</head>
11
12<body>
13
14<h1 align="left">VIBPulseState <IMG src="../image/NTR.gif" align="middle"></h1>
15<h2>Definition</h2>
16
17<dl>
18  <dd>
19<PRE><code>typedef struct
20{
21    u32 pulse_num;
22    u32 rest_time;
23    u32 on_time[VIB_PULSE_NUM_MAX];
24    u32 off_time[VIB_PULSE_NUM_MAX];
25    u32 repeat_num;
26
27} VIBPulseState;</code></PRE></dd>
28</dl>
29<H2>Description</H2>
30<P>This function specifies the pulse vibration state.<br>A pulse consists of ON-OFF up to the number of times given by <a href="Constant.html">VIB_PULSE_NUM_MAX</a>, which is called a pulse set, and a rest time where the pulse is always OFF. This allows the strongest vibrations to be generated using a standard pulse of 1.5 ms ON, 1.5 ms OFF, 1.5 ms ON.<BR>
31</P>
32<p>
33The value of VIBPulseState must observe the following rules under hardware specifications.<BR>The following rules are checked when the <a href="VIB_StartPulse.html"><CODE>VIB_StartPulse</CODE></a> function is called.
34</p>
35<ul>
36<li>One instance of on_time is taken as lasting up to 1.5ms.</li>
37<li>off_time[n] sets a value greater than or equal to the immediately preceding on_time[n].</li>
38<li>rest_time is 1.5 ms or more.</li>
39</ul>
40<p>
41<img src="pulse_vib.jpg">
42</p>
43<TABLE border="1" width="100%">
44  <TBODY>
45    <TR>
46      <TD width="13%"><EM><STRONG>pulse_num</STRONG></EM></TD>
47      <TD width="87%">Indicates the number of pulses generated by one pulse set. This must be greater than or equal to one and less than or equal to <CODE><a href="Constant.html">VIB_PULSE_NUM_MAX</a></CODE>.</TD>
48    </TR>
49    <TR>
50      <TD width="13%"><EM><STRONG>rest_time</STRONG></EM></TD>
51      <TD width="87%">Length of rest between pulse sets. 1=0.1 milliseconds.</TD>
52    </TR>
53    <TR>
54      <TD width="13%"><EM><STRONG>on_time</STRONG></EM></TD>
55      <TD width="87%">Length of each ON time. Use a value larger than 0. 1=0.1 milliseconds.</TD>
56    </TR>
57    <TR>
58      <TD width="13%"><EM><STRONG>off_time</STRONG></EM></TD>
59      <TD width="87%">Length of each OFF time. Use a value larger than 0. 1=0.1 milliseconds. off_time[pulse_num-1] is not used.</TD>
60    </TR>
61    <TR>
62      <TD width="13%"><EM><STRONG>repeat_num</STRONG></EM></TD>
63      <TD width="87%">Number of times to repeat the pulse set. 0 is used to specify endless pulsing.</TD>
64    </TR>
65  </TBODY>
66</TABLE>
67<h2>See Also</h2>
68<P><code><a href="VIB_StartPulse.html">VIB_StartPulse</a></code></P>
69<H2>Revision History</H2>
70<P>
712006/01/30 Initial version.</P>
72<hr><p>CONFIDENTIAL</p></body>
73</html>
74