usb 2.0.0-alpha.1 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitattributes +1 -0
- package/.gitmodules +1 -1
- package/CHANGELOG.md +91 -0
- package/README.md +570 -0
- package/binding.gyp +2 -2
- package/dist/index.d.ts +16 -5
- package/dist/index.js +135 -5
- package/dist/index.js.map +1 -1
- package/dist/usb/bindings.d.ts +13 -0
- package/dist/usb/bindings.js +2 -1
- package/dist/usb/bindings.js.map +1 -1
- package/dist/usb/index.d.ts +0 -2
- package/dist/usb/index.js +75 -112
- package/dist/usb/index.js.map +1 -1
- package/dist/usb/interface.js.map +1 -1
- package/dist/webusb/index.d.ts +28 -19
- package/dist/webusb/index.js +152 -66
- package/dist/webusb/index.js.map +1 -1
- package/dist/webusb/webusb-device.d.ts +1 -1
- package/dist/webusb/webusb-device.js +15 -6
- package/dist/webusb/webusb-device.js.map +1 -1
- package/libusb/.private/pre-commit.sh +7 -1
- package/libusb/.travis.yml +49 -0
- package/libusb/AUTHORS +44 -3
- package/libusb/Brewfile +4 -0
- package/libusb/ChangeLog +74 -2
- package/libusb/README.md +32 -0
- package/libusb/TODO +1 -1
- package/libusb/Xcode/common.xcconfig +12 -0
- package/libusb/Xcode/config.h +0 -3
- package/libusb/Xcode/libusb.xcodeproj/project.pbxproj +959 -1
- package/libusb/android/README +4 -2
- package/libusb/android/config.h +0 -6
- package/libusb/appveyor.yml +41 -0
- package/libusb/appveyor_cygwin.bat +11 -0
- package/libusb/appveyor_minGW.bat +19 -0
- package/libusb/autogen.sh +1 -1
- package/libusb/bootstrap.sh +3 -16
- package/libusb/configure.ac +108 -80
- package/libusb/doc/doxygen.cfg.in +1785 -739
- package/libusb/examples/Makefile.am +1 -1
- package/libusb/examples/dpfp.c +3 -1
- package/libusb/examples/dpfp_threaded.c +23 -10
- package/libusb/examples/ezusb.c +3 -3
- package/libusb/examples/ezusb.h +2 -2
- package/libusb/examples/fxload.c +31 -9
- package/libusb/examples/hotplugtest.c +35 -7
- package/libusb/examples/listdevs.c +3 -1
- package/libusb/examples/sam3u_benchmark.c +3 -3
- package/libusb/examples/testlibusb.c +277 -0
- package/libusb/examples/xusb.c +40 -34
- package/libusb/libusb/Makefile.am +49 -23
- package/libusb/libusb/core.c +855 -457
- package/libusb/libusb/descriptor.c +72 -78
- package/libusb/libusb/hotplug.c +122 -76
- package/libusb/libusb/hotplug.h +42 -25
- package/libusb/libusb/io.c +625 -390
- package/libusb/libusb/libusb-1.0.def +12 -0
- package/libusb/libusb/libusb.h +218 -150
- package/libusb/libusb/libusbi.h +346 -176
- package/libusb/libusb/os/darwin_usb.c +604 -319
- package/libusb/libusb/os/darwin_usb.h +61 -20
- package/libusb/libusb/os/haiku_pollfs.cpp +367 -0
- package/libusb/libusb/os/haiku_usb.h +113 -0
- package/libusb/libusb/os/haiku_usb_backend.cpp +533 -0
- package/libusb/libusb/os/haiku_usb_raw.cpp +267 -0
- package/libusb/libusb/os/haiku_usb_raw.h +188 -0
- package/libusb/libusb/os/linux_netlink.c +186 -146
- package/libusb/libusb/os/linux_udev.c +36 -14
- package/libusb/libusb/os/linux_usbfs.c +426 -225
- package/libusb/libusb/os/linux_usbfs.h +5 -3
- package/libusb/libusb/os/netbsd_usb.c +21 -77
- package/libusb/libusb/os/openbsd_usb.c +32 -115
- package/libusb/libusb/os/poll_posix.c +38 -5
- package/libusb/libusb/os/poll_posix.h +3 -0
- package/libusb/libusb/os/poll_windows.c +277 -626
- package/libusb/libusb/os/poll_windows.h +11 -44
- package/libusb/libusb/os/sunos_usb.c +1695 -0
- package/libusb/libusb/os/sunos_usb.h +80 -0
- package/libusb/libusb/os/threads_posix.c +24 -26
- package/libusb/libusb/os/threads_posix.h +73 -21
- package/libusb/libusb/os/threads_windows.c +71 -157
- package/libusb/libusb/os/threads_windows.h +68 -44
- package/libusb/libusb/os/wince_usb.c +276 -420
- package/libusb/libusb/os/wince_usb.h +23 -28
- package/libusb/libusb/os/windows_common.h +78 -58
- package/libusb/libusb/os/windows_nt_common.c +1010 -0
- package/libusb/libusb/os/windows_nt_common.h +110 -0
- package/libusb/libusb/os/windows_nt_shared_types.h +147 -0
- package/libusb/libusb/os/windows_usbdk.c +830 -0
- package/libusb/libusb/os/windows_usbdk.h +103 -0
- package/libusb/libusb/os/windows_winusb.c +4391 -0
- package/libusb/libusb/os/windows_winusb.h +783 -0
- package/libusb/libusb/strerror.c +41 -7
- package/libusb/libusb/sync.c +41 -13
- package/libusb/libusb/version.h +1 -1
- package/libusb/libusb/version_nano.h +1 -1
- package/libusb/libusb-1.0.pc.in +1 -1
- package/libusb/msvc/appveyor.bat +27 -0
- package/libusb/msvc/config.h +5 -4
- package/libusb/msvc/ddk_build.cmd +87 -43
- package/libusb/msvc/fxload_2010.vcxproj +24 -104
- package/libusb/msvc/fxload_2012.vcxproj +24 -107
- package/libusb/msvc/fxload_2013.vcxproj +24 -107
- package/libusb/msvc/fxload_2015.vcxproj +91 -0
- package/libusb/msvc/fxload_2017.vcxproj +114 -0
- package/libusb/msvc/fxload_sources +1 -1
- package/libusb/msvc/getopt_2010.vcxproj +16 -75
- package/libusb/msvc/getopt_2012.vcxproj +16 -79
- package/libusb/msvc/getopt_2013.vcxproj +16 -79
- package/libusb/msvc/getopt_2015.vcxproj +73 -0
- package/libusb/msvc/getopt_2017.vcxproj +98 -0
- package/libusb/msvc/getopt_sources +6 -2
- package/libusb/msvc/hotplugtest_2010.vcxproj +18 -99
- package/libusb/msvc/hotplugtest_2012.vcxproj +18 -102
- package/libusb/msvc/hotplugtest_2013.vcxproj +18 -102
- package/libusb/msvc/hotplugtest_2015.vcxproj +83 -0
- package/libusb/msvc/hotplugtest_2017.vcxproj +106 -0
- package/libusb/msvc/hotplugtest_sources +1 -1
- package/libusb/msvc/libusb_2005.sln +20 -20
- package/libusb/msvc/libusb_2010.sln +57 -46
- package/libusb/msvc/libusb_2012.sln +57 -46
- package/libusb/msvc/libusb_2013.sln +57 -50
- package/libusb/msvc/libusb_2015.sln +59 -52
- package/libusb/msvc/libusb_2017.sln +186 -0
- package/libusb/msvc/libusb_dll.dsp +2 -2
- package/libusb/msvc/libusb_dll_2005.vcproj +30 -2
- package/libusb/msvc/libusb_dll_2010.vcxproj +26 -90
- package/libusb/msvc/libusb_dll_2012.vcxproj +28 -96
- package/libusb/msvc/libusb_dll_2013.vcxproj +28 -96
- package/libusb/msvc/libusb_dll_2015.vcxproj +107 -0
- package/libusb/msvc/libusb_dll_2017.vcxproj +134 -0
- package/libusb/msvc/libusb_dll_wince.vcproj +9 -1
- package/libusb/msvc/libusb_sources +10 -5
- package/libusb/msvc/libusb_static.dsp +2 -2
- package/libusb/msvc/libusb_static_2005.vcproj +32 -4
- package/libusb/msvc/libusb_static_2010.vcxproj +24 -83
- package/libusb/msvc/libusb_static_2012.vcxproj +25 -87
- package/libusb/msvc/libusb_static_2013.vcxproj +25 -87
- package/libusb/msvc/libusb_static_2015.vcxproj +98 -0
- package/libusb/msvc/libusb_static_2017.vcxproj +117 -0
- package/libusb/msvc/libusb_static_wince.vcproj +20 -26
- package/libusb/msvc/libusb_wince.sln +88 -88
- package/libusb/msvc/listdevs_2010.vcxproj +16 -99
- package/libusb/msvc/listdevs_2012.vcxproj +16 -102
- package/libusb/msvc/listdevs_2013.vcxproj +16 -102
- package/libusb/msvc/listdevs_2015.vcxproj +83 -0
- package/libusb/msvc/listdevs_2017.vcxproj +106 -0
- package/libusb/msvc/listdevs_sources +2 -1
- package/libusb/msvc/stress_2010.vcxproj +20 -101
- package/libusb/msvc/stress_2012.vcxproj +20 -104
- package/libusb/msvc/stress_2013.vcxproj +20 -104
- package/libusb/msvc/stress_2015.vcxproj +87 -0
- package/libusb/msvc/stress_2017.vcxproj +110 -0
- package/libusb/msvc/stress_sources +21 -0
- package/libusb/msvc/testlibusb_2010.vcxproj +82 -0
- package/libusb/msvc/testlibusb_2012.vcxproj +83 -0
- package/libusb/msvc/testlibusb_2013.vcxproj +83 -0
- package/libusb/msvc/testlibusb_2015.vcxproj +83 -0
- package/libusb/msvc/testlibusb_2017.vcxproj +106 -0
- package/libusb/msvc/testlibusb_sources +20 -0
- package/libusb/msvc/xusb_2010.vcxproj +17 -98
- package/libusb/msvc/xusb_2012.vcxproj +17 -101
- package/libusb/msvc/xusb_2013.vcxproj +17 -101
- package/libusb/msvc/xusb_2015.vcxproj +83 -0
- package/libusb/msvc/xusb_2017.vcxproj +106 -0
- package/libusb/msvc/xusb_sources +1 -1
- package/libusb/tests/stress.c +2 -2
- package/libusb/tests/testlib.c +0 -4
- package/libusb/travis-autogen.sh +39 -0
- package/libusb.gypi +13 -2
- package/package.json +23 -13
- package/prebuilds/android-arm/node.napi.armv7.node +0 -0
- package/prebuilds/android-arm64/node.napi.armv8.node +0 -0
- package/prebuilds/darwin-x64+arm64/node.napi.node +0 -0
- package/prebuilds/linux-arm/node.napi.armv6.node +0 -0
- package/prebuilds/linux-arm/node.napi.armv7.node +0 -0
- package/prebuilds/linux-arm64/node.napi.armv8.node +0 -0
- package/prebuilds/linux-ia32/node.napi.node +0 -0
- package/prebuilds/linux-x64/node.napi.glibc.node +0 -0
- package/prebuilds/linux-x64/node.napi.musl.node +0 -0
- package/prebuilds/win32-ia32/node.napi.node +0 -0
- package/prebuilds/win32-x64/node.napi.node +0 -0
- package/src/device.cc +7 -7
- package/src/node_usb.cc +43 -1
- package/src/node_usb.h +1 -0
- package/src/uv_async_queue.h +33 -25
- package/test/usb.coffee +12 -4
- package/tsc/index.ts +68 -8
- package/tsc/usb/bindings.ts +19 -1
- package/tsc/usb/index.ts +66 -68
- package/tsc/usb/interface.ts +2 -2
- package/tsc/webusb/index.ts +187 -75
- package/tsc/webusb/webusb-device.ts +28 -17
- package/.github/workflows/prebuild.yml +0 -48
- package/Readme.md +0 -339
- package/dist/webusb/typed-event-target.d.ts +0 -11
- package/dist/webusb/typed-event-target.js +0 -21
- package/dist/webusb/typed-event-target.js.map +0 -1
- package/docs/assets/css/main.css +0 -2660
- package/docs/assets/images/icons.png +0 -0
- package/docs/assets/images/icons@2x.png +0 -0
- package/docs/assets/images/widgets.png +0 -0
- package/docs/assets/images/widgets@2x.png +0 -0
- package/docs/assets/js/main.js +0 -248
- package/docs/assets/js/search.js +0 -1
- package/docs/classes/usb_bindings.device.html +0 -1338
- package/docs/classes/usb_bindings.libusbexception.html +0 -234
- package/docs/classes/usb_bindings.transfer.html +0 -344
- package/docs/classes/usb_capability.capability.html +0 -297
- package/docs/classes/usb_device.extendeddevice.html +0 -766
- package/docs/classes/usb_endpoint.endpoint.html +0 -472
- package/docs/classes/usb_endpoint.inendpoint.html +0 -766
- package/docs/classes/usb_endpoint.outendpoint.html +0 -582
- package/docs/classes/usb_interface.interface.html +0 -648
- package/docs/classes/webusb.webusb-1.html +0 -615
- package/docs/classes/webusb_mutex.mutex.html +0 -270
- package/docs/classes/webusb_typed_event_target.typedeventtarget.html +0 -443
- package/docs/classes/webusb_webusb_device.webusbdevice.html +0 -904
- package/docs/index.html +0 -500
- package/docs/interfaces/usb.deviceevents.html +0 -242
- package/docs/interfaces/usb_descriptors.bosdescriptor.html +0 -293
- package/docs/interfaces/usb_descriptors.capabilitydescriptor.html +0 -274
- package/docs/interfaces/usb_descriptors.configdescriptor.html +0 -388
- package/docs/interfaces/usb_descriptors.devicedescriptor.html +0 -464
- package/docs/interfaces/usb_descriptors.endpointdescriptor.html +0 -370
- package/docs/interfaces/usb_descriptors.interfacedescriptor.html +0 -407
- package/docs/interfaces/webusb.usboptions.html +0 -226
- package/docs/modules/index.html +0 -173
- package/docs/modules/usb.html +0 -173
- package/docs/modules/usb_bindings.html +0 -2319
- package/docs/modules/usb_capability.html +0 -156
- package/docs/modules/usb_descriptors.html +0 -176
- package/docs/modules/usb_device.html +0 -156
- package/docs/modules/usb_endpoint.html +0 -164
- package/docs/modules/usb_interface.html +0 -156
- package/docs/modules/webusb.html +0 -165
- package/docs/modules/webusb_mutex.html +0 -156
- package/docs/modules/webusb_typed_event_target.html +0 -156
- package/docs/modules/webusb_webusb_device.html +0 -156
- package/docs/modules.html +0 -156
- package/libusb/INSTALL +0 -234
- package/libusb/README +0 -28
- package/libusb/libusb/os/windows_usb.c +0 -5347
- package/libusb/libusb/os/windows_usb.h +0 -971
- package/libusb/msvc/fxload_2010.vcxproj.filters +0 -25
- package/libusb/msvc/fxload_2012.vcxproj.filters +0 -25
- package/libusb/msvc/getopt_2010.vcxproj.filters +0 -26
- package/libusb/msvc/getopt_2012.vcxproj.filters +0 -26
- package/libusb/msvc/hotplugtest_2010.vcxproj.filters +0 -14
- package/libusb/msvc/hotplugtest_2012.vcxproj.filters +0 -14
- package/libusb/msvc/libusb_dll_2010.vcxproj.filters +0 -81
- package/libusb/msvc/libusb_dll_2012.vcxproj.filters +0 -84
- package/libusb/msvc/libusb_static_2010.vcxproj.filters +0 -74
- package/libusb/msvc/libusb_static_2012.vcxproj.filters +0 -74
- package/libusb/msvc/listdevs_2010.vcxproj.filters +0 -14
- package/libusb/msvc/listdevs_2012.vcxproj.filters +0 -14
- package/libusb/msvc/stress_2010.vcxproj.filters +0 -25
- package/libusb/msvc/stress_2012.vcxproj.filters +0 -25
- package/libusb/msvc/xusb_2010.vcxproj.filters +0 -14
- package/libusb/msvc/xusb_2012.vcxproj.filters +0 -14
- package/tsc/webusb/typed-event-target.ts +0 -23
|
@@ -1,766 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html class="default no-js">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
6
|
-
<title>InEndpoint | Node USB</title>
|
|
7
|
-
<meta name="description" content="Documentation for Node USB">
|
|
8
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
9
|
-
<link rel="stylesheet" href="../assets/css/main.css">
|
|
10
|
-
<script async src="../assets/js/search.js" id="search-script"></script>
|
|
11
|
-
</head>
|
|
12
|
-
<body>
|
|
13
|
-
<header>
|
|
14
|
-
<div class="tsd-page-toolbar">
|
|
15
|
-
<div class="container">
|
|
16
|
-
<div class="table-wrap">
|
|
17
|
-
<div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base="..">
|
|
18
|
-
<div class="field">
|
|
19
|
-
<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
|
|
20
|
-
<input id="tsd-search-field" type="text" />
|
|
21
|
-
</div>
|
|
22
|
-
<ul class="results">
|
|
23
|
-
<li class="state loading">Preparing search index...</li>
|
|
24
|
-
<li class="state failure">The search index is not available</li>
|
|
25
|
-
</ul>
|
|
26
|
-
<a href="../index.html" class="title">Node USB</a>
|
|
27
|
-
</div>
|
|
28
|
-
<div class="table-cell" id="tsd-widgets">
|
|
29
|
-
<div id="tsd-filter">
|
|
30
|
-
<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
|
|
31
|
-
<div class="tsd-filter-group">
|
|
32
|
-
<div class="tsd-select" id="tsd-filter-visibility">
|
|
33
|
-
<span class="tsd-select-label">All</span>
|
|
34
|
-
<ul class="tsd-select-list">
|
|
35
|
-
<li data-value="public">Public</li>
|
|
36
|
-
<li data-value="protected">Public/Protected</li>
|
|
37
|
-
<li data-value="private" class="selected">All</li>
|
|
38
|
-
</ul>
|
|
39
|
-
</div>
|
|
40
|
-
<input type="checkbox" id="tsd-filter-inherited" checked />
|
|
41
|
-
<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
|
|
42
|
-
</div>
|
|
43
|
-
</div>
|
|
44
|
-
<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
|
|
45
|
-
</div>
|
|
46
|
-
</div>
|
|
47
|
-
</div>
|
|
48
|
-
</div>
|
|
49
|
-
<div class="tsd-page-title">
|
|
50
|
-
<div class="container">
|
|
51
|
-
<ul class="tsd-breadcrumb">
|
|
52
|
-
<li>
|
|
53
|
-
<a href="../modules.html">Node USB</a>
|
|
54
|
-
</li>
|
|
55
|
-
<li>
|
|
56
|
-
<a href="../modules/usb_endpoint.html">usb/endpoint</a>
|
|
57
|
-
</li>
|
|
58
|
-
<li>
|
|
59
|
-
<a href="usb_endpoint.inendpoint.html">InEndpoint</a>
|
|
60
|
-
</li>
|
|
61
|
-
</ul>
|
|
62
|
-
<h1>Class InEndpoint</h1>
|
|
63
|
-
</div>
|
|
64
|
-
</div>
|
|
65
|
-
</header>
|
|
66
|
-
<div class="container container-main">
|
|
67
|
-
<div class="row">
|
|
68
|
-
<div class="col-8 col-content">
|
|
69
|
-
<section class="tsd-panel tsd-comment">
|
|
70
|
-
<div class="tsd-comment tsd-typography">
|
|
71
|
-
<div class="lead">
|
|
72
|
-
<p>Endpoints in the IN direction (device->PC) have this type.</p>
|
|
73
|
-
</div>
|
|
74
|
-
</div>
|
|
75
|
-
</section>
|
|
76
|
-
<section class="tsd-panel tsd-hierarchy">
|
|
77
|
-
<h3>Hierarchy</h3>
|
|
78
|
-
<ul class="tsd-hierarchy">
|
|
79
|
-
<li>
|
|
80
|
-
<a href="usb_endpoint.endpoint.html" class="tsd-signature-type" data-tsd-kind="Class">Endpoint</a>
|
|
81
|
-
<ul class="tsd-hierarchy">
|
|
82
|
-
<li>
|
|
83
|
-
<span class="target">InEndpoint</span>
|
|
84
|
-
</li>
|
|
85
|
-
</ul>
|
|
86
|
-
</li>
|
|
87
|
-
</ul>
|
|
88
|
-
</section>
|
|
89
|
-
<section class="tsd-panel-group tsd-index-group">
|
|
90
|
-
<h2>Index</h2>
|
|
91
|
-
<section class="tsd-panel tsd-index-panel">
|
|
92
|
-
<div class="tsd-index-content">
|
|
93
|
-
<section class="tsd-index-section ">
|
|
94
|
-
<h3>Constructors</h3>
|
|
95
|
-
<ul class="tsd-index-list">
|
|
96
|
-
<li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite"><a href="usb_endpoint.inendpoint.html#constructor" class="tsd-kind-icon">constructor</a></li>
|
|
97
|
-
</ul>
|
|
98
|
-
</section>
|
|
99
|
-
<section class="tsd-index-section ">
|
|
100
|
-
<h3>Properties</h3>
|
|
101
|
-
<ul class="tsd-index-list">
|
|
102
|
-
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="usb_endpoint.inendpoint.html#address" class="tsd-kind-icon">address</a></li>
|
|
103
|
-
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="usb_endpoint.inendpoint.html#descriptor" class="tsd-kind-icon">descriptor</a></li>
|
|
104
|
-
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected"><a href="usb_endpoint.inendpoint.html#device" class="tsd-kind-icon">device</a></li>
|
|
105
|
-
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-overwrite"><a href="usb_endpoint.inendpoint.html#direction" class="tsd-kind-icon">direction</a></li>
|
|
106
|
-
<li class="tsd-kind-property tsd-parent-kind-class"><a href="usb_endpoint.inendpoint.html#pollactive" class="tsd-kind-icon">poll<wbr>Active</a></li>
|
|
107
|
-
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><a href="usb_endpoint.inendpoint.html#pollpending" class="tsd-kind-icon">poll<wbr>Pending</a></li>
|
|
108
|
-
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><a href="usb_endpoint.inendpoint.html#polltransfersize" class="tsd-kind-icon">poll<wbr>Transfer<wbr>Size</a></li>
|
|
109
|
-
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><a href="usb_endpoint.inendpoint.html#polltransfers" class="tsd-kind-icon">poll<wbr>Transfers</a></li>
|
|
110
|
-
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="usb_endpoint.inendpoint.html#timeout" class="tsd-kind-icon">timeout</a></li>
|
|
111
|
-
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="usb_endpoint.inendpoint.html#transfertype" class="tsd-kind-icon">transfer<wbr>Type</a></li>
|
|
112
|
-
</ul>
|
|
113
|
-
</section>
|
|
114
|
-
<section class="tsd-index-section ">
|
|
115
|
-
<h3>Methods</h3>
|
|
116
|
-
<ul class="tsd-index-list">
|
|
117
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="usb_endpoint.inendpoint.html#clearhalt" class="tsd-kind-icon">clear<wbr>Halt</a></li>
|
|
118
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="usb_endpoint.inendpoint.html#maketransfer" class="tsd-kind-icon">make<wbr>Transfer</a></li>
|
|
119
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="usb_endpoint.inendpoint.html#startpoll" class="tsd-kind-icon">start<wbr>Poll</a></li>
|
|
120
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><a href="usb_endpoint.inendpoint.html#startpolltransfers" class="tsd-kind-icon">start<wbr>Poll<wbr>Transfers</a></li>
|
|
121
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="usb_endpoint.inendpoint.html#stoppoll" class="tsd-kind-icon">stop<wbr>Poll</a></li>
|
|
122
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="usb_endpoint.inendpoint.html#transfer" class="tsd-kind-icon">transfer</a></li>
|
|
123
|
-
</ul>
|
|
124
|
-
</section>
|
|
125
|
-
</div>
|
|
126
|
-
</section>
|
|
127
|
-
</section>
|
|
128
|
-
<section class="tsd-panel-group tsd-member-group ">
|
|
129
|
-
<h2>Constructors</h2>
|
|
130
|
-
<section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite">
|
|
131
|
-
<a name="constructor" class="tsd-anchor"></a>
|
|
132
|
-
<h3>constructor</h3>
|
|
133
|
-
<ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite">
|
|
134
|
-
<li class="tsd-signature tsd-kind-icon">new <wbr>InEndpoint<span class="tsd-signature-symbol">(</span>device<span class="tsd-signature-symbol">: </span><a href="usb_bindings.device.html" class="tsd-signature-type" data-tsd-kind="Class">Device</a>, descriptor<span class="tsd-signature-symbol">: </span><a href="../interfaces/usb_descriptors.endpointdescriptor.html" class="tsd-signature-type" data-tsd-kind="Interface">EndpointDescriptor</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="usb_endpoint.inendpoint.html" class="tsd-signature-type" data-tsd-kind="Class">InEndpoint</a></li>
|
|
135
|
-
</ul>
|
|
136
|
-
<ul class="tsd-descriptions">
|
|
137
|
-
<li class="tsd-description">
|
|
138
|
-
<aside class="tsd-sources">
|
|
139
|
-
<p>Overrides <a href="usb_endpoint.endpoint.html">Endpoint</a>.<a href="usb_endpoint.endpoint.html#constructor">constructor</a></p>
|
|
140
|
-
<ul>
|
|
141
|
-
<li>Defined in <a href="https://github.com/tessel/node-usb/blob/37d54e6/tsc/usb/endpoint.ts#L58">tsc/usb/endpoint.ts:58</a></li>
|
|
142
|
-
</ul>
|
|
143
|
-
</aside>
|
|
144
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
145
|
-
<ul class="tsd-parameters">
|
|
146
|
-
<li>
|
|
147
|
-
<h5>device: <a href="usb_bindings.device.html" class="tsd-signature-type" data-tsd-kind="Class">Device</a></h5>
|
|
148
|
-
</li>
|
|
149
|
-
<li>
|
|
150
|
-
<h5>descriptor: <a href="../interfaces/usb_descriptors.endpointdescriptor.html" class="tsd-signature-type" data-tsd-kind="Interface">EndpointDescriptor</a></h5>
|
|
151
|
-
</li>
|
|
152
|
-
</ul>
|
|
153
|
-
<h4 class="tsd-returns-title">Returns <a href="usb_endpoint.inendpoint.html" class="tsd-signature-type" data-tsd-kind="Class">InEndpoint</a></h4>
|
|
154
|
-
</li>
|
|
155
|
-
</ul>
|
|
156
|
-
</section>
|
|
157
|
-
</section>
|
|
158
|
-
<section class="tsd-panel-group tsd-member-group ">
|
|
159
|
-
<h2>Properties</h2>
|
|
160
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
|
|
161
|
-
<a name="address" class="tsd-anchor"></a>
|
|
162
|
-
<h3>address</h3>
|
|
163
|
-
<div class="tsd-signature tsd-kind-icon">address<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
|
|
164
|
-
<aside class="tsd-sources">
|
|
165
|
-
<p>Inherited from <a href="usb_endpoint.endpoint.html">Endpoint</a>.<a href="usb_endpoint.endpoint.html#address">address</a></p>
|
|
166
|
-
<ul>
|
|
167
|
-
<li>Defined in <a href="https://github.com/tessel/node-usb/blob/37d54e6/tsc/usb/endpoint.ts#L9">tsc/usb/endpoint.ts:9</a></li>
|
|
168
|
-
</ul>
|
|
169
|
-
</aside>
|
|
170
|
-
</section>
|
|
171
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
|
|
172
|
-
<a name="descriptor" class="tsd-anchor"></a>
|
|
173
|
-
<h3>descriptor</h3>
|
|
174
|
-
<div class="tsd-signature tsd-kind-icon">descriptor<span class="tsd-signature-symbol">:</span> <a href="../interfaces/usb_descriptors.endpointdescriptor.html" class="tsd-signature-type" data-tsd-kind="Interface">EndpointDescriptor</a></div>
|
|
175
|
-
<aside class="tsd-sources">
|
|
176
|
-
<p>Inherited from <a href="usb_endpoint.endpoint.html">Endpoint</a>.<a href="usb_endpoint.endpoint.html#descriptor">descriptor</a></p>
|
|
177
|
-
<ul>
|
|
178
|
-
<li>Defined in <a href="https://github.com/tessel/node-usb/blob/37d54e6/tsc/usb/endpoint.ts#L21">tsc/usb/endpoint.ts:21</a></li>
|
|
179
|
-
</ul>
|
|
180
|
-
</aside>
|
|
181
|
-
<div class="tsd-comment tsd-typography">
|
|
182
|
-
<div class="lead">
|
|
183
|
-
<p>Object with fields from the endpoint descriptor -- see libusb documentation or USB spec.</p>
|
|
184
|
-
</div>
|
|
185
|
-
</div>
|
|
186
|
-
</section>
|
|
187
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected">
|
|
188
|
-
<a name="device" class="tsd-anchor"></a>
|
|
189
|
-
<h3><span class="tsd-flag ts-flagProtected">Protected</span> device</h3>
|
|
190
|
-
<div class="tsd-signature tsd-kind-icon">device<span class="tsd-signature-symbol">:</span> <a href="usb_bindings.device.html" class="tsd-signature-type" data-tsd-kind="Class">Device</a></div>
|
|
191
|
-
<aside class="tsd-sources">
|
|
192
|
-
<p>Inherited from <a href="usb_endpoint.endpoint.html">Endpoint</a>.<a href="usb_endpoint.endpoint.html#device">device</a></p>
|
|
193
|
-
</aside>
|
|
194
|
-
</section>
|
|
195
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-overwrite">
|
|
196
|
-
<a name="direction" class="tsd-anchor"></a>
|
|
197
|
-
<h3>direction</h3>
|
|
198
|
-
<div class="tsd-signature tsd-kind-icon">direction<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"in"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"out"</span><span class="tsd-signature-symbol"> = 'in'</span></div>
|
|
199
|
-
<aside class="tsd-sources">
|
|
200
|
-
<p>Overrides <a href="usb_endpoint.endpoint.html">Endpoint</a>.<a href="usb_endpoint.endpoint.html#direction">direction</a></p>
|
|
201
|
-
<ul>
|
|
202
|
-
<li>Defined in <a href="https://github.com/tessel/node-usb/blob/37d54e6/tsc/usb/endpoint.ts#L53">tsc/usb/endpoint.ts:53</a></li>
|
|
203
|
-
</ul>
|
|
204
|
-
</aside>
|
|
205
|
-
<div class="tsd-comment tsd-typography">
|
|
206
|
-
<div class="lead">
|
|
207
|
-
<p>Endpoint direction.</p>
|
|
208
|
-
</div>
|
|
209
|
-
</div>
|
|
210
|
-
</section>
|
|
211
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
|
|
212
|
-
<a name="pollactive" class="tsd-anchor"></a>
|
|
213
|
-
<h3>poll<wbr>Active</h3>
|
|
214
|
-
<div class="tsd-signature tsd-kind-icon">poll<wbr>Active<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></div>
|
|
215
|
-
<aside class="tsd-sources">
|
|
216
|
-
<ul>
|
|
217
|
-
<li>Defined in <a href="https://github.com/tessel/node-usb/blob/37d54e6/tsc/usb/endpoint.ts#L58">tsc/usb/endpoint.ts:58</a></li>
|
|
218
|
-
</ul>
|
|
219
|
-
</aside>
|
|
220
|
-
</section>
|
|
221
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-protected">
|
|
222
|
-
<a name="pollpending" class="tsd-anchor"></a>
|
|
223
|
-
<h3><span class="tsd-flag ts-flagProtected">Protected</span> poll<wbr>Pending</h3>
|
|
224
|
-
<div class="tsd-signature tsd-kind-icon">poll<wbr>Pending<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></div>
|
|
225
|
-
<aside class="tsd-sources">
|
|
226
|
-
<ul>
|
|
227
|
-
<li>Defined in <a href="https://github.com/tessel/node-usb/blob/37d54e6/tsc/usb/endpoint.ts#L57">tsc/usb/endpoint.ts:57</a></li>
|
|
228
|
-
</ul>
|
|
229
|
-
</aside>
|
|
230
|
-
</section>
|
|
231
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-protected">
|
|
232
|
-
<a name="polltransfersize" class="tsd-anchor"></a>
|
|
233
|
-
<h3><span class="tsd-flag ts-flagProtected">Protected</span> poll<wbr>Transfer<wbr>Size</h3>
|
|
234
|
-
<div class="tsd-signature tsd-kind-icon">poll<wbr>Transfer<wbr>Size<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></div>
|
|
235
|
-
<aside class="tsd-sources">
|
|
236
|
-
<ul>
|
|
237
|
-
<li>Defined in <a href="https://github.com/tessel/node-usb/blob/37d54e6/tsc/usb/endpoint.ts#L56">tsc/usb/endpoint.ts:56</a></li>
|
|
238
|
-
</ul>
|
|
239
|
-
</aside>
|
|
240
|
-
</section>
|
|
241
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-protected">
|
|
242
|
-
<a name="polltransfers" class="tsd-anchor"></a>
|
|
243
|
-
<h3><span class="tsd-flag ts-flagProtected">Protected</span> poll<wbr>Transfers</h3>
|
|
244
|
-
<div class="tsd-signature tsd-kind-icon">poll<wbr>Transfers<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="usb_bindings.transfer.html" class="tsd-signature-type" data-tsd-kind="Class">Transfer</a><span class="tsd-signature-symbol">[]</span></div>
|
|
245
|
-
<aside class="tsd-sources">
|
|
246
|
-
<ul>
|
|
247
|
-
<li>Defined in <a href="https://github.com/tessel/node-usb/blob/37d54e6/tsc/usb/endpoint.ts#L55">tsc/usb/endpoint.ts:55</a></li>
|
|
248
|
-
</ul>
|
|
249
|
-
</aside>
|
|
250
|
-
</section>
|
|
251
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
|
|
252
|
-
<a name="timeout" class="tsd-anchor"></a>
|
|
253
|
-
<h3>timeout</h3>
|
|
254
|
-
<div class="tsd-signature tsd-kind-icon">timeout<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></div>
|
|
255
|
-
<aside class="tsd-sources">
|
|
256
|
-
<p>Inherited from <a href="usb_endpoint.endpoint.html">Endpoint</a>.<a href="usb_endpoint.endpoint.html#timeout">timeout</a></p>
|
|
257
|
-
<ul>
|
|
258
|
-
<li>Defined in <a href="https://github.com/tessel/node-usb/blob/37d54e6/tsc/usb/endpoint.ts#L18">tsc/usb/endpoint.ts:18</a></li>
|
|
259
|
-
</ul>
|
|
260
|
-
</aside>
|
|
261
|
-
<div class="tsd-comment tsd-typography">
|
|
262
|
-
<div class="lead">
|
|
263
|
-
<p>Sets the timeout in milliseconds for transfers on this endpoint. The default, <code>0</code>, is infinite timeout.</p>
|
|
264
|
-
</div>
|
|
265
|
-
</div>
|
|
266
|
-
</section>
|
|
267
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
|
|
268
|
-
<a name="transfertype" class="tsd-anchor"></a>
|
|
269
|
-
<h3>transfer<wbr>Type</h3>
|
|
270
|
-
<div class="tsd-signature tsd-kind-icon">transfer<wbr>Type<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
|
|
271
|
-
<aside class="tsd-sources">
|
|
272
|
-
<p>Inherited from <a href="usb_endpoint.endpoint.html">Endpoint</a>.<a href="usb_endpoint.endpoint.html#transfertype">transferType</a></p>
|
|
273
|
-
<ul>
|
|
274
|
-
<li>Defined in <a href="https://github.com/tessel/node-usb/blob/37d54e6/tsc/usb/endpoint.ts#L15">tsc/usb/endpoint.ts:15</a></li>
|
|
275
|
-
</ul>
|
|
276
|
-
</aside>
|
|
277
|
-
<div class="tsd-comment tsd-typography">
|
|
278
|
-
<div class="lead">
|
|
279
|
-
<p>Endpoint type: <code>usb.LIBUSB_TRANSFER_TYPE_BULK</code>, <code>usb.LIBUSB_TRANSFER_TYPE_INTERRUPT</code>, or <code>usb.LIBUSB_TRANSFER_TYPE_ISOCHRONOUS</code>.</p>
|
|
280
|
-
</div>
|
|
281
|
-
</div>
|
|
282
|
-
</section>
|
|
283
|
-
</section>
|
|
284
|
-
<section class="tsd-panel-group tsd-member-group ">
|
|
285
|
-
<h2>Methods</h2>
|
|
286
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|
287
|
-
<a name="clearhalt" class="tsd-anchor"></a>
|
|
288
|
-
<h3>clear<wbr>Halt</h3>
|
|
289
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|
290
|
-
<li class="tsd-signature tsd-kind-icon">clear<wbr>Halt<span class="tsd-signature-symbol">(</span>callback<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="usb_bindings.libusbexception.html" class="tsd-signature-type" data-tsd-kind="Class">LibUSBException</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
|
|
291
|
-
</ul>
|
|
292
|
-
<ul class="tsd-descriptions">
|
|
293
|
-
<li class="tsd-description">
|
|
294
|
-
<aside class="tsd-sources">
|
|
295
|
-
<p>Inherited from <a href="usb_endpoint.endpoint.html">Endpoint</a>.<a href="usb_endpoint.endpoint.html#clearhalt">clearHalt</a></p>
|
|
296
|
-
<ul>
|
|
297
|
-
<li>Defined in <a href="https://github.com/tessel/node-usb/blob/37d54e6/tsc/usb/endpoint.ts#L31">tsc/usb/endpoint.ts:31</a></li>
|
|
298
|
-
</ul>
|
|
299
|
-
</aside>
|
|
300
|
-
<div class="tsd-comment tsd-typography">
|
|
301
|
-
<div class="lead">
|
|
302
|
-
<p>Clear the halt/stall condition for this endpoint.</p>
|
|
303
|
-
</div>
|
|
304
|
-
</div>
|
|
305
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
306
|
-
<ul class="tsd-parameters">
|
|
307
|
-
<li>
|
|
308
|
-
<h5>callback: <span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="usb_bindings.libusbexception.html" class="tsd-signature-type" data-tsd-kind="Class">LibUSBException</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span></h5>
|
|
309
|
-
<ul class="tsd-parameters">
|
|
310
|
-
<li class="tsd-parameter-signature">
|
|
311
|
-
<ul class="tsd-signatures tsd-kind-type-literal">
|
|
312
|
-
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="usb_bindings.libusbexception.html" class="tsd-signature-type" data-tsd-kind="Class">LibUSBException</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
|
|
313
|
-
</ul>
|
|
314
|
-
<ul class="tsd-descriptions">
|
|
315
|
-
<li class="tsd-description">
|
|
316
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
317
|
-
<ul class="tsd-parameters">
|
|
318
|
-
<li>
|
|
319
|
-
<h5>error: <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="usb_bindings.libusbexception.html" class="tsd-signature-type" data-tsd-kind="Class">LibUSBException</a></h5>
|
|
320
|
-
</li>
|
|
321
|
-
</ul>
|
|
322
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
|
|
323
|
-
</li>
|
|
324
|
-
</ul>
|
|
325
|
-
</li>
|
|
326
|
-
</ul>
|
|
327
|
-
</li>
|
|
328
|
-
</ul>
|
|
329
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
|
|
330
|
-
</li>
|
|
331
|
-
</ul>
|
|
332
|
-
</section>
|
|
333
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|
334
|
-
<a name="maketransfer" class="tsd-anchor"></a>
|
|
335
|
-
<h3>make<wbr>Transfer</h3>
|
|
336
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|
337
|
-
<li class="tsd-signature tsd-kind-icon">make<wbr>Transfer<span class="tsd-signature-symbol">(</span>timeout<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, callback<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="usb_bindings.libusbexception.html" class="tsd-signature-type" data-tsd-kind="Class">LibUSBException</a>, buffer<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Buffer</span>, actualLength<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="usb_bindings.transfer.html" class="tsd-signature-type" data-tsd-kind="Class">Transfer</a></li>
|
|
338
|
-
</ul>
|
|
339
|
-
<ul class="tsd-descriptions">
|
|
340
|
-
<li class="tsd-description">
|
|
341
|
-
<aside class="tsd-sources">
|
|
342
|
-
<p>Inherited from <a href="usb_endpoint.endpoint.html">Endpoint</a>.<a href="usb_endpoint.endpoint.html#maketransfer">makeTransfer</a></p>
|
|
343
|
-
<ul>
|
|
344
|
-
<li>Defined in <a href="https://github.com/tessel/node-usb/blob/37d54e6/tsc/usb/endpoint.ts#L44">tsc/usb/endpoint.ts:44</a></li>
|
|
345
|
-
</ul>
|
|
346
|
-
</aside>
|
|
347
|
-
<div class="tsd-comment tsd-typography">
|
|
348
|
-
<div class="lead">
|
|
349
|
-
<p>Create a new <code>Transfer</code> object for this endpoint.</p>
|
|
350
|
-
</div>
|
|
351
|
-
<p>The passed callback will be called when the transfer is submitted and finishes. Its arguments are the error (if any), the submitted buffer, and the amount of data actually written (for
|
|
352
|
-
OUT transfers) or read (for IN transfers).</p>
|
|
353
|
-
</div>
|
|
354
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
355
|
-
<ul class="tsd-parameters">
|
|
356
|
-
<li>
|
|
357
|
-
<h5>timeout: <span class="tsd-signature-type">number</span></h5>
|
|
358
|
-
<div class="tsd-comment tsd-typography">
|
|
359
|
-
<p>Timeout for the transfer (0 means unlimited).</p>
|
|
360
|
-
</div>
|
|
361
|
-
</li>
|
|
362
|
-
<li>
|
|
363
|
-
<h5>callback: <span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="usb_bindings.libusbexception.html" class="tsd-signature-type" data-tsd-kind="Class">LibUSBException</a>, buffer<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Buffer</span>, actualLength<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span></h5>
|
|
364
|
-
<div class="tsd-comment tsd-typography">
|
|
365
|
-
<p>Transfer completion callback.</p>
|
|
366
|
-
</div>
|
|
367
|
-
<ul class="tsd-parameters">
|
|
368
|
-
<li class="tsd-parameter-signature">
|
|
369
|
-
<ul class="tsd-signatures tsd-kind-type-literal">
|
|
370
|
-
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="usb_bindings.libusbexception.html" class="tsd-signature-type" data-tsd-kind="Class">LibUSBException</a>, buffer<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Buffer</span>, actualLength<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
|
|
371
|
-
</ul>
|
|
372
|
-
<ul class="tsd-descriptions">
|
|
373
|
-
<li class="tsd-description">
|
|
374
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
375
|
-
<ul class="tsd-parameters">
|
|
376
|
-
<li>
|
|
377
|
-
<h5>error: <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="usb_bindings.libusbexception.html" class="tsd-signature-type" data-tsd-kind="Class">LibUSBException</a></h5>
|
|
378
|
-
</li>
|
|
379
|
-
<li>
|
|
380
|
-
<h5>buffer: <span class="tsd-signature-type">Buffer</span></h5>
|
|
381
|
-
</li>
|
|
382
|
-
<li>
|
|
383
|
-
<h5>actualLength: <span class="tsd-signature-type">number</span></h5>
|
|
384
|
-
</li>
|
|
385
|
-
</ul>
|
|
386
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
|
|
387
|
-
</li>
|
|
388
|
-
</ul>
|
|
389
|
-
</li>
|
|
390
|
-
</ul>
|
|
391
|
-
</li>
|
|
392
|
-
</ul>
|
|
393
|
-
<h4 class="tsd-returns-title">Returns <a href="usb_bindings.transfer.html" class="tsd-signature-type" data-tsd-kind="Class">Transfer</a></h4>
|
|
394
|
-
</li>
|
|
395
|
-
</ul>
|
|
396
|
-
</section>
|
|
397
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|
398
|
-
<a name="startpoll" class="tsd-anchor"></a>
|
|
399
|
-
<h3>start<wbr>Poll</h3>
|
|
400
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
401
|
-
<li class="tsd-signature tsd-kind-icon">start<wbr>Poll<span class="tsd-signature-symbol">(</span>nTransfers<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, transferSize<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, _callback<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="usb_bindings.libusbexception.html" class="tsd-signature-type" data-tsd-kind="Class">LibUSBException</a>, buffer<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Buffer</span>, actualLength<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="usb_bindings.transfer.html" class="tsd-signature-type" data-tsd-kind="Class">Transfer</a><span class="tsd-signature-symbol">[]</span></li>
|
|
402
|
-
</ul>
|
|
403
|
-
<ul class="tsd-descriptions">
|
|
404
|
-
<li class="tsd-description">
|
|
405
|
-
<aside class="tsd-sources">
|
|
406
|
-
<ul>
|
|
407
|
-
<li>Defined in <a href="https://github.com/tessel/node-usb/blob/37d54e6/tsc/usb/endpoint.ts#L100">tsc/usb/endpoint.ts:100</a></li>
|
|
408
|
-
</ul>
|
|
409
|
-
</aside>
|
|
410
|
-
<div class="tsd-comment tsd-typography">
|
|
411
|
-
<div class="lead">
|
|
412
|
-
<p>Start polling the endpoint.</p>
|
|
413
|
-
</div>
|
|
414
|
-
<p>The library will keep <code>nTransfers</code> transfers of size <code>transferSize</code> pending in the kernel at all times to ensure continuous data flow.
|
|
415
|
-
This is handled by the libusb event thread, so it continues even if the Node v8 thread is busy. The <code>data</code> and <code>error</code> events are emitted as transfers complete.</p>
|
|
416
|
-
<p>The device must be open to use this method.</p>
|
|
417
|
-
</div>
|
|
418
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
419
|
-
<ul class="tsd-parameters">
|
|
420
|
-
<li>
|
|
421
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> nTransfers: <span class="tsd-signature-type">number</span></h5>
|
|
422
|
-
</li>
|
|
423
|
-
<li>
|
|
424
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> transferSize: <span class="tsd-signature-type">number</span></h5>
|
|
425
|
-
<div class="tsd-comment tsd-typography">
|
|
426
|
-
</div>
|
|
427
|
-
</li>
|
|
428
|
-
<li>
|
|
429
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> _callback: <span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="usb_bindings.libusbexception.html" class="tsd-signature-type" data-tsd-kind="Class">LibUSBException</a>, buffer<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Buffer</span>, actualLength<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span></h5>
|
|
430
|
-
<ul class="tsd-parameters">
|
|
431
|
-
<li class="tsd-parameter-signature">
|
|
432
|
-
<ul class="tsd-signatures tsd-kind-type-literal">
|
|
433
|
-
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="usb_bindings.libusbexception.html" class="tsd-signature-type" data-tsd-kind="Class">LibUSBException</a>, buffer<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Buffer</span>, actualLength<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
|
|
434
|
-
</ul>
|
|
435
|
-
<ul class="tsd-descriptions">
|
|
436
|
-
<li class="tsd-description">
|
|
437
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
438
|
-
<ul class="tsd-parameters">
|
|
439
|
-
<li>
|
|
440
|
-
<h5>error: <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="usb_bindings.libusbexception.html" class="tsd-signature-type" data-tsd-kind="Class">LibUSBException</a></h5>
|
|
441
|
-
</li>
|
|
442
|
-
<li>
|
|
443
|
-
<h5>buffer: <span class="tsd-signature-type">Buffer</span></h5>
|
|
444
|
-
</li>
|
|
445
|
-
<li>
|
|
446
|
-
<h5>actualLength: <span class="tsd-signature-type">number</span></h5>
|
|
447
|
-
</li>
|
|
448
|
-
</ul>
|
|
449
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
|
|
450
|
-
</li>
|
|
451
|
-
</ul>
|
|
452
|
-
</li>
|
|
453
|
-
</ul>
|
|
454
|
-
</li>
|
|
455
|
-
</ul>
|
|
456
|
-
<h4 class="tsd-returns-title">Returns <a href="usb_bindings.transfer.html" class="tsd-signature-type" data-tsd-kind="Class">Transfer</a><span class="tsd-signature-symbol">[]</span></h4>
|
|
457
|
-
</li>
|
|
458
|
-
</ul>
|
|
459
|
-
</section>
|
|
460
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-protected">
|
|
461
|
-
<a name="startpolltransfers" class="tsd-anchor"></a>
|
|
462
|
-
<h3><span class="tsd-flag ts-flagProtected">Protected</span> start<wbr>Poll<wbr>Transfers</h3>
|
|
463
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-protected">
|
|
464
|
-
<li class="tsd-signature tsd-kind-icon">start<wbr>Poll<wbr>Transfers<span class="tsd-signature-symbol">(</span>nTransfers<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, transferSize<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span>, callback<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="usb_bindings.libusbexception.html" class="tsd-signature-type" data-tsd-kind="Class">LibUSBException</a>, buffer<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Buffer</span>, actualLength<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="usb_bindings.transfer.html" class="tsd-signature-type" data-tsd-kind="Class">Transfer</a><span class="tsd-signature-symbol">[]</span></li>
|
|
465
|
-
</ul>
|
|
466
|
-
<ul class="tsd-descriptions">
|
|
467
|
-
<li class="tsd-description">
|
|
468
|
-
<aside class="tsd-sources">
|
|
469
|
-
<ul>
|
|
470
|
-
<li>Defined in <a href="https://github.com/tessel/node-usb/blob/37d54e6/tsc/usb/endpoint.ts#L140">tsc/usb/endpoint.ts:140</a></li>
|
|
471
|
-
</ul>
|
|
472
|
-
</aside>
|
|
473
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
474
|
-
<ul class="tsd-parameters">
|
|
475
|
-
<li>
|
|
476
|
-
<h5>nTransfers: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 3</span></h5>
|
|
477
|
-
</li>
|
|
478
|
-
<li>
|
|
479
|
-
<h5>transferSize: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = ...</span></h5>
|
|
480
|
-
</li>
|
|
481
|
-
<li>
|
|
482
|
-
<h5>callback: <span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="usb_bindings.libusbexception.html" class="tsd-signature-type" data-tsd-kind="Class">LibUSBException</a>, buffer<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Buffer</span>, actualLength<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span></h5>
|
|
483
|
-
<ul class="tsd-parameters">
|
|
484
|
-
<li class="tsd-parameter-signature">
|
|
485
|
-
<ul class="tsd-signatures tsd-kind-type-literal">
|
|
486
|
-
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="usb_bindings.libusbexception.html" class="tsd-signature-type" data-tsd-kind="Class">LibUSBException</a>, buffer<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Buffer</span>, actualLength<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
|
|
487
|
-
</ul>
|
|
488
|
-
<ul class="tsd-descriptions">
|
|
489
|
-
<li class="tsd-description">
|
|
490
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
491
|
-
<ul class="tsd-parameters">
|
|
492
|
-
<li>
|
|
493
|
-
<h5>error: <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="usb_bindings.libusbexception.html" class="tsd-signature-type" data-tsd-kind="Class">LibUSBException</a></h5>
|
|
494
|
-
</li>
|
|
495
|
-
<li>
|
|
496
|
-
<h5>buffer: <span class="tsd-signature-type">Buffer</span></h5>
|
|
497
|
-
</li>
|
|
498
|
-
<li>
|
|
499
|
-
<h5>actualLength: <span class="tsd-signature-type">number</span></h5>
|
|
500
|
-
</li>
|
|
501
|
-
</ul>
|
|
502
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
|
|
503
|
-
</li>
|
|
504
|
-
</ul>
|
|
505
|
-
</li>
|
|
506
|
-
</ul>
|
|
507
|
-
</li>
|
|
508
|
-
</ul>
|
|
509
|
-
<h4 class="tsd-returns-title">Returns <a href="usb_bindings.transfer.html" class="tsd-signature-type" data-tsd-kind="Class">Transfer</a><span class="tsd-signature-symbol">[]</span></h4>
|
|
510
|
-
</li>
|
|
511
|
-
</ul>
|
|
512
|
-
</section>
|
|
513
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|
514
|
-
<a name="stoppoll" class="tsd-anchor"></a>
|
|
515
|
-
<h3>stop<wbr>Poll</h3>
|
|
516
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
517
|
-
<li class="tsd-signature tsd-kind-icon">stop<wbr>Poll<span class="tsd-signature-symbol">(</span>callback<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
|
|
518
|
-
</ul>
|
|
519
|
-
<ul class="tsd-descriptions">
|
|
520
|
-
<li class="tsd-description">
|
|
521
|
-
<aside class="tsd-sources">
|
|
522
|
-
<ul>
|
|
523
|
-
<li>Defined in <a href="https://github.com/tessel/node-usb/blob/37d54e6/tsc/usb/endpoint.ts#L165">tsc/usb/endpoint.ts:165</a></li>
|
|
524
|
-
</ul>
|
|
525
|
-
</aside>
|
|
526
|
-
<div class="tsd-comment tsd-typography">
|
|
527
|
-
<div class="lead">
|
|
528
|
-
<p>Stop polling.</p>
|
|
529
|
-
</div>
|
|
530
|
-
<p>Further data may still be received. The <code>end</code> event is emitted and the callback is called once all transfers have completed or canceled.</p>
|
|
531
|
-
<p>The device must be open to use this method.</p>
|
|
532
|
-
</div>
|
|
533
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
534
|
-
<ul class="tsd-parameters">
|
|
535
|
-
<li>
|
|
536
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> callback: <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span></h5>
|
|
537
|
-
<div class="tsd-comment tsd-typography">
|
|
538
|
-
</div>
|
|
539
|
-
<ul class="tsd-parameters">
|
|
540
|
-
<li class="tsd-parameter-signature">
|
|
541
|
-
<ul class="tsd-signatures tsd-kind-type-literal">
|
|
542
|
-
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
|
|
543
|
-
</ul>
|
|
544
|
-
<ul class="tsd-descriptions">
|
|
545
|
-
<li class="tsd-description">
|
|
546
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
|
|
547
|
-
</li>
|
|
548
|
-
</ul>
|
|
549
|
-
</li>
|
|
550
|
-
</ul>
|
|
551
|
-
</li>
|
|
552
|
-
</ul>
|
|
553
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
|
|
554
|
-
</li>
|
|
555
|
-
</ul>
|
|
556
|
-
</section>
|
|
557
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|
558
|
-
<a name="transfer" class="tsd-anchor"></a>
|
|
559
|
-
<h3>transfer</h3>
|
|
560
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
561
|
-
<li class="tsd-signature tsd-kind-icon">transfer<span class="tsd-signature-symbol">(</span>length<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, callback<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="usb_bindings.libusbexception.html" class="tsd-signature-type" data-tsd-kind="Class">LibUSBException</a>, data<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Buffer</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="usb_endpoint.inendpoint.html" class="tsd-signature-type" data-tsd-kind="Class">InEndpoint</a></li>
|
|
562
|
-
</ul>
|
|
563
|
-
<ul class="tsd-descriptions">
|
|
564
|
-
<li class="tsd-description">
|
|
565
|
-
<aside class="tsd-sources">
|
|
566
|
-
<ul>
|
|
567
|
-
<li>Defined in <a href="https://github.com/tessel/node-usb/blob/37d54e6/tsc/usb/endpoint.ts#L75">tsc/usb/endpoint.ts:75</a></li>
|
|
568
|
-
</ul>
|
|
569
|
-
</aside>
|
|
570
|
-
<div class="tsd-comment tsd-typography">
|
|
571
|
-
<div class="lead">
|
|
572
|
-
<p>Perform a transfer to read data from the endpoint.</p>
|
|
573
|
-
</div>
|
|
574
|
-
<p>If length is greater than maxPacketSize, libusb will automatically split the transfer in multiple packets, and you will receive one callback with all data once all packets are complete.</p>
|
|
575
|
-
<p><code>this</code> in the callback is the InEndpoint object.</p>
|
|
576
|
-
<p>The device must be open to use this method.</p>
|
|
577
|
-
</div>
|
|
578
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
579
|
-
<ul class="tsd-parameters">
|
|
580
|
-
<li>
|
|
581
|
-
<h5>length: <span class="tsd-signature-type">number</span></h5>
|
|
582
|
-
</li>
|
|
583
|
-
<li>
|
|
584
|
-
<h5>callback: <span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="usb_bindings.libusbexception.html" class="tsd-signature-type" data-tsd-kind="Class">LibUSBException</a>, data<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Buffer</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span></h5>
|
|
585
|
-
<div class="tsd-comment tsd-typography">
|
|
586
|
-
</div>
|
|
587
|
-
<ul class="tsd-parameters">
|
|
588
|
-
<li class="tsd-parameter-signature">
|
|
589
|
-
<ul class="tsd-signatures tsd-kind-type-literal">
|
|
590
|
-
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="usb_bindings.libusbexception.html" class="tsd-signature-type" data-tsd-kind="Class">LibUSBException</a>, data<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Buffer</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
|
|
591
|
-
</ul>
|
|
592
|
-
<ul class="tsd-descriptions">
|
|
593
|
-
<li class="tsd-description">
|
|
594
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
595
|
-
<ul class="tsd-parameters">
|
|
596
|
-
<li>
|
|
597
|
-
<h5>error: <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="usb_bindings.libusbexception.html" class="tsd-signature-type" data-tsd-kind="Class">LibUSBException</a></h5>
|
|
598
|
-
</li>
|
|
599
|
-
<li>
|
|
600
|
-
<h5><span class="tsd-flag ts-flagOptional">Optional</span> data: <span class="tsd-signature-type">Buffer</span></h5>
|
|
601
|
-
</li>
|
|
602
|
-
</ul>
|
|
603
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
|
|
604
|
-
</li>
|
|
605
|
-
</ul>
|
|
606
|
-
</li>
|
|
607
|
-
</ul>
|
|
608
|
-
</li>
|
|
609
|
-
</ul>
|
|
610
|
-
<h4 class="tsd-returns-title">Returns <a href="usb_endpoint.inendpoint.html" class="tsd-signature-type" data-tsd-kind="Class">InEndpoint</a></h4>
|
|
611
|
-
</li>
|
|
612
|
-
</ul>
|
|
613
|
-
</section>
|
|
614
|
-
</section>
|
|
615
|
-
</div>
|
|
616
|
-
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
617
|
-
<nav class="tsd-navigation primary">
|
|
618
|
-
<ul>
|
|
619
|
-
<li class=" ">
|
|
620
|
-
<a href="../modules.html">Exports</a>
|
|
621
|
-
</li>
|
|
622
|
-
<li class=" tsd-kind-module">
|
|
623
|
-
<a href="../modules/index.html">index</a>
|
|
624
|
-
</li>
|
|
625
|
-
<li class=" tsd-kind-module">
|
|
626
|
-
<a href="../modules/usb.html">usb</a>
|
|
627
|
-
</li>
|
|
628
|
-
<li class=" tsd-kind-module">
|
|
629
|
-
<a href="../modules/usb_bindings.html">usb/bindings</a>
|
|
630
|
-
</li>
|
|
631
|
-
<li class=" tsd-kind-module">
|
|
632
|
-
<a href="../modules/usb_capability.html">usb/capability</a>
|
|
633
|
-
</li>
|
|
634
|
-
<li class=" tsd-kind-module">
|
|
635
|
-
<a href="../modules/usb_descriptors.html">usb/descriptors</a>
|
|
636
|
-
</li>
|
|
637
|
-
<li class=" tsd-kind-module">
|
|
638
|
-
<a href="../modules/usb_device.html">usb/device</a>
|
|
639
|
-
</li>
|
|
640
|
-
<li class="current tsd-kind-module">
|
|
641
|
-
<a href="../modules/usb_endpoint.html">usb/endpoint</a>
|
|
642
|
-
</li>
|
|
643
|
-
<li class=" tsd-kind-module">
|
|
644
|
-
<a href="../modules/usb_interface.html">usb/interface</a>
|
|
645
|
-
</li>
|
|
646
|
-
<li class=" tsd-kind-module">
|
|
647
|
-
<a href="../modules/webusb.html">webusb</a>
|
|
648
|
-
</li>
|
|
649
|
-
<li class=" tsd-kind-module">
|
|
650
|
-
<a href="../modules/webusb_mutex.html">webusb/mutex</a>
|
|
651
|
-
</li>
|
|
652
|
-
<li class=" tsd-kind-module">
|
|
653
|
-
<a href="../modules/webusb_typed_event_target.html">webusb/typed-<wbr>event-<wbr>target</a>
|
|
654
|
-
</li>
|
|
655
|
-
<li class=" tsd-kind-module">
|
|
656
|
-
<a href="../modules/webusb_webusb_device.html">webusb/webusb-<wbr>device</a>
|
|
657
|
-
</li>
|
|
658
|
-
</ul>
|
|
659
|
-
</nav>
|
|
660
|
-
<nav class="tsd-navigation secondary menu-sticky">
|
|
661
|
-
<ul class="before-current">
|
|
662
|
-
<li class=" tsd-kind-class tsd-parent-kind-module">
|
|
663
|
-
<a href="usb_endpoint.endpoint.html" class="tsd-kind-icon">Endpoint</a>
|
|
664
|
-
</li>
|
|
665
|
-
</ul>
|
|
666
|
-
<ul class="current">
|
|
667
|
-
<li class="current tsd-kind-class tsd-parent-kind-module">
|
|
668
|
-
<a href="usb_endpoint.inendpoint.html" class="tsd-kind-icon">In<wbr>Endpoint</a>
|
|
669
|
-
<ul>
|
|
670
|
-
<li class=" tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite">
|
|
671
|
-
<a href="usb_endpoint.inendpoint.html#constructor" class="tsd-kind-icon">constructor</a>
|
|
672
|
-
</li>
|
|
673
|
-
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
|
|
674
|
-
<a href="usb_endpoint.inendpoint.html#address" class="tsd-kind-icon">address</a>
|
|
675
|
-
</li>
|
|
676
|
-
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
|
|
677
|
-
<a href="usb_endpoint.inendpoint.html#descriptor" class="tsd-kind-icon">descriptor</a>
|
|
678
|
-
</li>
|
|
679
|
-
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected">
|
|
680
|
-
<a href="usb_endpoint.inendpoint.html#device" class="tsd-kind-icon">device</a>
|
|
681
|
-
</li>
|
|
682
|
-
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-overwrite">
|
|
683
|
-
<a href="usb_endpoint.inendpoint.html#direction" class="tsd-kind-icon">direction</a>
|
|
684
|
-
</li>
|
|
685
|
-
<li class=" tsd-kind-property tsd-parent-kind-class">
|
|
686
|
-
<a href="usb_endpoint.inendpoint.html#pollactive" class="tsd-kind-icon">poll<wbr>Active</a>
|
|
687
|
-
</li>
|
|
688
|
-
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-protected">
|
|
689
|
-
<a href="usb_endpoint.inendpoint.html#pollpending" class="tsd-kind-icon">poll<wbr>Pending</a>
|
|
690
|
-
</li>
|
|
691
|
-
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-protected">
|
|
692
|
-
<a href="usb_endpoint.inendpoint.html#polltransfersize" class="tsd-kind-icon">poll<wbr>Transfer<wbr>Size</a>
|
|
693
|
-
</li>
|
|
694
|
-
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-protected">
|
|
695
|
-
<a href="usb_endpoint.inendpoint.html#polltransfers" class="tsd-kind-icon">poll<wbr>Transfers</a>
|
|
696
|
-
</li>
|
|
697
|
-
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
|
|
698
|
-
<a href="usb_endpoint.inendpoint.html#timeout" class="tsd-kind-icon">timeout</a>
|
|
699
|
-
</li>
|
|
700
|
-
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
|
|
701
|
-
<a href="usb_endpoint.inendpoint.html#transfertype" class="tsd-kind-icon">transfer<wbr>Type</a>
|
|
702
|
-
</li>
|
|
703
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|
704
|
-
<a href="usb_endpoint.inendpoint.html#clearhalt" class="tsd-kind-icon">clear<wbr>Halt</a>
|
|
705
|
-
</li>
|
|
706
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|
707
|
-
<a href="usb_endpoint.inendpoint.html#maketransfer" class="tsd-kind-icon">make<wbr>Transfer</a>
|
|
708
|
-
</li>
|
|
709
|
-
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|
710
|
-
<a href="usb_endpoint.inendpoint.html#startpoll" class="tsd-kind-icon">start<wbr>Poll</a>
|
|
711
|
-
</li>
|
|
712
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-protected">
|
|
713
|
-
<a href="usb_endpoint.inendpoint.html#startpolltransfers" class="tsd-kind-icon">start<wbr>Poll<wbr>Transfers</a>
|
|
714
|
-
</li>
|
|
715
|
-
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|
716
|
-
<a href="usb_endpoint.inendpoint.html#stoppoll" class="tsd-kind-icon">stop<wbr>Poll</a>
|
|
717
|
-
</li>
|
|
718
|
-
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|
719
|
-
<a href="usb_endpoint.inendpoint.html#transfer" class="tsd-kind-icon">transfer</a>
|
|
720
|
-
</li>
|
|
721
|
-
</ul>
|
|
722
|
-
</li>
|
|
723
|
-
</ul>
|
|
724
|
-
<ul class="after-current">
|
|
725
|
-
<li class=" tsd-kind-class tsd-parent-kind-module">
|
|
726
|
-
<a href="usb_endpoint.outendpoint.html" class="tsd-kind-icon">Out<wbr>Endpoint</a>
|
|
727
|
-
</li>
|
|
728
|
-
</ul>
|
|
729
|
-
</nav>
|
|
730
|
-
</div>
|
|
731
|
-
</div>
|
|
732
|
-
</div>
|
|
733
|
-
<footer>
|
|
734
|
-
<div class="container">
|
|
735
|
-
<h2>Legend</h2>
|
|
736
|
-
<div class="tsd-legend-group">
|
|
737
|
-
<ul class="tsd-legend">
|
|
738
|
-
<li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
|
|
739
|
-
<li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li>
|
|
740
|
-
<li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
|
|
741
|
-
<li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
|
|
742
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
|
|
743
|
-
</ul>
|
|
744
|
-
<ul class="tsd-legend">
|
|
745
|
-
<li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
|
|
746
|
-
<li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li>
|
|
747
|
-
<li class="tsd-kind-function tsd-has-type-parameter"><span class="tsd-kind-icon">Function with type parameter</span></li>
|
|
748
|
-
</ul>
|
|
749
|
-
<ul class="tsd-legend">
|
|
750
|
-
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li>
|
|
751
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li>
|
|
752
|
-
</ul>
|
|
753
|
-
<ul class="tsd-legend">
|
|
754
|
-
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected property</span></li>
|
|
755
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected method</span></li>
|
|
756
|
-
</ul>
|
|
757
|
-
<ul class="tsd-legend">
|
|
758
|
-
<li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li>
|
|
759
|
-
</ul>
|
|
760
|
-
</div>
|
|
761
|
-
</div>
|
|
762
|
-
</footer>
|
|
763
|
-
<div class="overlay"></div>
|
|
764
|
-
<script src="../assets/js/main.js"></script>
|
|
765
|
-
</body>
|
|
766
|
-
</html>
|