OpenCores
URL https://opencores.org/ocsvn/usb_fpga_2_14/usb_fpga_2_14/trunk

Subversion Repositories usb_fpga_2_14

[/] [usb_fpga_2_14/] [trunk/] [docs/] [java/] [ztex/] [ZtexContext.html] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 ZTEX
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
<!-- NewPage -->
3
<html lang="de">
4
<head>
5
<!-- Generated by javadoc (version 1.7.0_79) on Wed Mar 22 19:20:13 CET 2017 -->
6
<title>ZtexContext</title>
7
<meta name="date" content="2017-03-22">
8
<link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
9
</head>
10
<body>
11
<script type="text/javascript"><!--
12
    if (location.href.indexOf('is-external=true') == -1) {
13
        parent.document.title="ZtexContext";
14
    }
15
//-->
16
</script>
17
<noscript>
18
<div>JavaScript is disabled on your browser.</div>
19
</noscript>
20
<!-- ========= START OF TOP NAVBAR ======= -->
21
<div class="topNav"><a name="navbar_top">
22
<!--   -->
23
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
24
<!--   -->
25
</a>
26
<ul class="navList" title="Navigation">
27
<li><a href="../ztex/package-summary.html">Package</a></li>
28
<li class="navBarCell1Rev">Class</li>
29
<li><a href="package-tree.html">Tree</a></li>
30
<li><a href="../deprecated-list.html">Deprecated</a></li>
31
<li><a href="../index-all.html">Index</a></li>
32
<li><a href="../help-doc.html">Help</a></li>
33
</ul>
34
</div>
35
<div class="subNav">
36
<ul class="navList">
37
<li><a href="../ztex/Ztex1v1.html" title="class in ztex"><span class="strong">Prev Class</span></a></li>
38
<li><a href="../ztex/ZtexDevice1.html" title="class in ztex"><span class="strong">Next Class</span></a></li>
39
</ul>
40
<ul class="navList">
41
<li><a href="../index.html?ztex/ZtexContext.html" target="_top">Frames</a></li>
42
<li><a href="ZtexContext.html" target="_top">No Frames</a></li>
43
</ul>
44
<ul class="navList" id="allclasses_navbar_top">
45
<li><a href="../allclasses-noframe.html">All Classes</a></li>
46
</ul>
47
<div>
48
<script type="text/javascript"><!--
49
  allClassesLink = document.getElementById("allclasses_navbar_top");
50
  if(window==top) {
51
    allClassesLink.style.display = "block";
52
  }
53
  else {
54
    allClassesLink.style.display = "none";
55
  }
56
  //-->
57
</script>
58
</div>
59
<div>
60
<ul class="subNavList">
61
<li>Summary:&nbsp;</li>
62
<li>Nested&nbsp;|&nbsp;</li>
63
<li>Field&nbsp;|&nbsp;</li>
64
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
65
<li><a href="#method_summary">Method</a></li>
66
</ul>
67
<ul class="subNavList">
68
<li>Detail:&nbsp;</li>
69
<li>Field&nbsp;|&nbsp;</li>
70
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
71
<li><a href="#method_detail">Method</a></li>
72
</ul>
73
</div>
74
<a name="skip-navbar_top">
75
<!--   -->
76
</a></div>
77
<!-- ========= END OF TOP NAVBAR ========= -->
78
<!-- ======== START OF CLASS DATA ======== -->
79
<div class="header">
80
<div class="subTitle">ztex</div>
81
<h2 title="Class ZtexContext" class="title">Class ZtexContext</h2>
82
</div>
83
<div class="contentContainer">
84
<ul class="inheritance">
85
<li>java.lang.Object</li>
86
<li>
87
<ul class="inheritance">
88
<li>ztex.ZtexContext</li>
89
</ul>
90
</li>
91
</ul>
92
<div class="description">
93
<ul class="blockList">
94
<li class="blockList">
95
<hr>
96
<br>
97
<pre>public class <span class="strong">ZtexContext</span>
98
extends java.lang.Object</pre>
99
<div class="block">This class manages an USB context.
100
 Because libusb_get_device_list does not return an up to date device list at least on some implementations
101
 a new context must be created every time the bus is (re)discovered, i.e. every time re-numeration occurs.
102
 This class creates a new USB context, initializes it and deinitializes it as soon it is not used anymore.
103
 Used is tracked using a reference counter. Reference counter of a new instance is 1.</div>
104
</li>
105
</ul>
106
</div>
107
<div class="summary">
108
<ul class="blockList">
109
<li class="blockList">
110
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
111
<ul class="blockList">
112
<li class="blockList"><a name="constructor_summary">
113
<!--   -->
114
</a>
115
<h3>Constructor Summary</h3>
116
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
117
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
118
<tr>
119
<th class="colOne" scope="col">Constructor and Description</th>
120
</tr>
121
<tr class="altColor">
122
<td class="colOne"><code><strong><a href="../ztex/ZtexContext.html#ZtexContext()">ZtexContext</a></strong>()</code>
123
<div class="block">Constructs an new USB context and initializes it.</div>
124
</td>
125
</tr>
126
</table>
127
</li>
128
</ul>
129
<!-- ========== METHOD SUMMARY =========== -->
130
<ul class="blockList">
131
<li class="blockList"><a name="method_summary">
132
<!--   -->
133
</a>
134
<h3>Method Summary</h3>
135
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
136
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
137
<tr>
138
<th class="colFirst" scope="col">Modifier and Type</th>
139
<th class="colLast" scope="col">Method and Description</th>
140
</tr>
141
<tr class="altColor">
142
<td class="colFirst"><code>org.usb4java.Context</code></td>
143
<td class="colLast"><code><strong><a href="../ztex/ZtexContext.html#context()">context</a></strong>()</code>
144
<div class="block">Returns the USB context.</div>
145
</td>
146
</tr>
147
<tr class="rowColor">
148
<td class="colFirst"><code>protected void</code></td>
149
<td class="colLast"><code><strong><a href="../ztex/ZtexContext.html#finalize()">finalize</a></strong>()</code>
150
<div class="block">Releases all resources.</div>
151
</td>
152
</tr>
153
<tr class="altColor">
154
<td class="colFirst"><code><a href="../ztex/ZtexContext.html" title="class in ztex">ZtexContext</a></code></td>
155
<td class="colLast"><code><strong><a href="../ztex/ZtexContext.html#ref()">ref</a></strong>()</code>
156
<div class="block">Increases the reference count.</div>
157
</td>
158
</tr>
159
<tr class="rowColor">
160
<td class="colFirst"><code>void</code></td>
161
<td class="colLast"><code><strong><a href="../ztex/ZtexContext.html#unref()">unref</a></strong>()</code>
162
<div class="block">Decreases the reference count and deinitializes the context if reference counter reaches 0.</div>
163
</td>
164
</tr>
165
</table>
166
<ul class="blockList">
167
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
168
<!--   -->
169
</a>
170
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
171
<code>clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
172
</ul>
173
</li>
174
</ul>
175
</li>
176
</ul>
177
</div>
178
<div class="details">
179
<ul class="blockList">
180
<li class="blockList">
181
<!-- ========= CONSTRUCTOR DETAIL ======== -->
182
<ul class="blockList">
183
<li class="blockList"><a name="constructor_detail">
184
<!--   -->
185
</a>
186
<h3>Constructor Detail</h3>
187
<a name="ZtexContext()">
188
<!--   -->
189
</a>
190
<ul class="blockListLast">
191
<li class="blockList">
192
<h4>ZtexContext</h4>
193
<pre>public&nbsp;ZtexContext()
194
            throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></pre>
195
<div class="block">Constructs an new USB context and initializes it.</div>
196
<dl><dt><span class="strong">Throws:</span></dt>
197
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code></dd></dl>
198
</li>
199
</ul>
200
</li>
201
</ul>
202
<!-- ============ METHOD DETAIL ========== -->
203
<ul class="blockList">
204
<li class="blockList"><a name="method_detail">
205
<!--   -->
206
</a>
207
<h3>Method Detail</h3>
208
<a name="context()">
209
<!--   -->
210
</a>
211
<ul class="blockList">
212
<li class="blockList">
213
<h4>context</h4>
214
<pre>public final&nbsp;org.usb4java.Context&nbsp;context()</pre>
215
<div class="block">Returns the USB context.</div>
216
<dl><dt><span class="strong">Returns:</span></dt><dd>the USB context.</dd></dl>
217
</li>
218
</ul>
219
<a name="ref()">
220
<!--   -->
221
</a>
222
<ul class="blockList">
223
<li class="blockList">
224
<h4>ref</h4>
225
<pre>public&nbsp;<a href="../ztex/ZtexContext.html" title="class in ztex">ZtexContext</a>&nbsp;ref()
226
                throws <a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></pre>
227
<div class="block">Increases the reference count.</div>
228
<dl><dt><span class="strong">Returns:</span></dt><dd>the USB context.</dd>
229
<dt><span class="strong">Throws:</span></dt>
230
<dd><code><a href="../ztex/UsbException.html" title="class in ztex">UsbException</a></code></dd></dl>
231
</li>
232
</ul>
233
<a name="unref()">
234
<!--   -->
235
</a>
236
<ul class="blockList">
237
<li class="blockList">
238
<h4>unref</h4>
239
<pre>public&nbsp;void&nbsp;unref()</pre>
240
<div class="block">Decreases the reference count and deinitializes the context if reference counter reaches 0.</div>
241
</li>
242
</ul>
243
<a name="finalize()">
244
<!--   -->
245
</a>
246
<ul class="blockListLast">
247
<li class="blockList">
248
<h4>finalize</h4>
249
<pre>protected&nbsp;void&nbsp;finalize()
250
                 throws java.lang.Throwable</pre>
251
<div class="block">Releases all resources.</div>
252
<dl>
253
<dt><strong>Overrides:</strong></dt>
254
<dd><code>finalize</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
255
<dt><span class="strong">Throws:</span></dt>
256
<dd><code>java.lang.Throwable</code></dd></dl>
257
</li>
258
</ul>
259
</li>
260
</ul>
261
</li>
262
</ul>
263
</div>
264
</div>
265
<!-- ========= END OF CLASS DATA ========= -->
266
<!-- ======= START OF BOTTOM NAVBAR ====== -->
267
<div class="bottomNav"><a name="navbar_bottom">
268
<!--   -->
269
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
270
<!--   -->
271
</a>
272
<ul class="navList" title="Navigation">
273
<li><a href="../ztex/package-summary.html">Package</a></li>
274
<li class="navBarCell1Rev">Class</li>
275
<li><a href="package-tree.html">Tree</a></li>
276
<li><a href="../deprecated-list.html">Deprecated</a></li>
277
<li><a href="../index-all.html">Index</a></li>
278
<li><a href="../help-doc.html">Help</a></li>
279
</ul>
280
</div>
281
<div class="subNav">
282
<ul class="navList">
283
<li><a href="../ztex/Ztex1v1.html" title="class in ztex"><span class="strong">Prev Class</span></a></li>
284
<li><a href="../ztex/ZtexDevice1.html" title="class in ztex"><span class="strong">Next Class</span></a></li>
285
</ul>
286
<ul class="navList">
287
<li><a href="../index.html?ztex/ZtexContext.html" target="_top">Frames</a></li>
288
<li><a href="ZtexContext.html" target="_top">No Frames</a></li>
289
</ul>
290
<ul class="navList" id="allclasses_navbar_bottom">
291
<li><a href="../allclasses-noframe.html">All Classes</a></li>
292
</ul>
293
<div>
294
<script type="text/javascript"><!--
295
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
296
  if(window==top) {
297
    allClassesLink.style.display = "block";
298
  }
299
  else {
300
    allClassesLink.style.display = "none";
301
  }
302
  //-->
303
</script>
304
</div>
305
<div>
306
<ul class="subNavList">
307
<li>Summary:&nbsp;</li>
308
<li>Nested&nbsp;|&nbsp;</li>
309
<li>Field&nbsp;|&nbsp;</li>
310
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
311
<li><a href="#method_summary">Method</a></li>
312
</ul>
313
<ul class="subNavList">
314
<li>Detail:&nbsp;</li>
315
<li>Field&nbsp;|&nbsp;</li>
316
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
317
<li><a href="#method_detail">Method</a></li>
318
</ul>
319
</div>
320
<a name="skip-navbar_bottom">
321
<!--   -->
322
</a></div>
323
<!-- ======== END OF BOTTOM NAVBAR ======= -->
324
</body>
325
</html>

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.