usb 2.0.0-alpha.2 → 2.1.0
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/.gitmodules +1 -1
- package/CHANGELOG.md +100 -0
- package/README.md +573 -0
- package/binding.gyp +12 -2
- package/dist/index.d.ts +4 -4
- package/dist/index.js +14 -8
- 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.js +86 -2
- package/dist/usb/index.js.map +1 -1
- package/dist/usb/interface.js.map +1 -1
- package/dist/webusb/index.d.ts +32 -19
- package/dist/webusb/index.js +163 -67
- package/dist/webusb/index.js.map +1 -1
- package/dist/webusb/webusb-device.d.ts +1 -1
- package/dist/webusb/webusb-device.js +27 -15
- 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 +25 -0
- package/libusb/Xcode/libusb.xcodeproj/project.pbxproj +959 -1
- package/libusb/android/README +4 -2
- package/libusb/android/config.h +75 -0
- 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 +21 -2
- package/package.json +18 -13
- package/prebuilds/android-arm/node.napi.node +0 -0
- package/prebuilds/android-arm64/node.napi.node +0 -0
- package/prebuilds/darwin-x64+arm64/node.napi.node +0 -0
- package/prebuilds/linux-arm/node.napi.node +0 -0
- package/prebuilds/linux-arm64/node.napi.node +0 -0
- package/prebuilds/linux-ia32/node.napi.node +0 -0
- package/prebuilds/linux-x64/node.napi.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 +6 -0
- package/tsc/index.ts +13 -7
- package/tsc/usb/bindings.ts +19 -1
- package/tsc/usb/index.ts +67 -19
- package/tsc/usb/interface.ts +2 -2
- package/tsc/webusb/index.ts +197 -74
- package/tsc/webusb/webusb-device.ts +30 -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 -304
- package/docs/modules/usb.html +0 -173
- package/docs/modules/usb_bindings.html +0 -2248
- 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,582 +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>OutEndpoint | 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.outendpoint.html">OutEndpoint</a>
|
|
60
|
-
</li>
|
|
61
|
-
</ul>
|
|
62
|
-
<h1>Class OutEndpoint</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 OUT direction (PC->device) 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">OutEndpoint</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 tsd-is-inherited">
|
|
94
|
-
<h3>Constructors</h3>
|
|
95
|
-
<ul class="tsd-index-list">
|
|
96
|
-
<li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><a href="usb_endpoint.outendpoint.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.outendpoint.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.outendpoint.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.outendpoint.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.outendpoint.html#direction" class="tsd-kind-icon">direction</a></li>
|
|
106
|
-
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="usb_endpoint.outendpoint.html#timeout" class="tsd-kind-icon">timeout</a></li>
|
|
107
|
-
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="usb_endpoint.outendpoint.html#transfertype" class="tsd-kind-icon">transfer<wbr>Type</a></li>
|
|
108
|
-
</ul>
|
|
109
|
-
</section>
|
|
110
|
-
<section class="tsd-index-section ">
|
|
111
|
-
<h3>Methods</h3>
|
|
112
|
-
<ul class="tsd-index-list">
|
|
113
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="usb_endpoint.outendpoint.html#clearhalt" class="tsd-kind-icon">clear<wbr>Halt</a></li>
|
|
114
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="usb_endpoint.outendpoint.html#maketransfer" class="tsd-kind-icon">make<wbr>Transfer</a></li>
|
|
115
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="usb_endpoint.outendpoint.html#transfer" class="tsd-kind-icon">transfer</a></li>
|
|
116
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><a href="usb_endpoint.outendpoint.html#transferwithzlp" class="tsd-kind-icon">transfer<wbr>WithZLP</a></li>
|
|
117
|
-
</ul>
|
|
118
|
-
</section>
|
|
119
|
-
</div>
|
|
120
|
-
</section>
|
|
121
|
-
</section>
|
|
122
|
-
<section class="tsd-panel-group tsd-member-group tsd-is-inherited">
|
|
123
|
-
<h2>Constructors</h2>
|
|
124
|
-
<section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited">
|
|
125
|
-
<a name="constructor" class="tsd-anchor"></a>
|
|
126
|
-
<h3>constructor</h3>
|
|
127
|
-
<ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited">
|
|
128
|
-
<li class="tsd-signature tsd-kind-icon">new <wbr>Out<wbr>Endpoint<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.outendpoint.html" class="tsd-signature-type" data-tsd-kind="Class">OutEndpoint</a></li>
|
|
129
|
-
</ul>
|
|
130
|
-
<ul class="tsd-descriptions">
|
|
131
|
-
<li class="tsd-description">
|
|
132
|
-
<aside class="tsd-sources">
|
|
133
|
-
<p>Inherited from <a href="usb_endpoint.endpoint.html">Endpoint</a>.<a href="usb_endpoint.endpoint.html#constructor">constructor</a></p>
|
|
134
|
-
<ul>
|
|
135
|
-
<li>Defined in <a href="https://github.com/tessel/node-usb/blob/639b0a3/tsc/usb/endpoint.ts#L21">tsc/usb/endpoint.ts:21</a></li>
|
|
136
|
-
</ul>
|
|
137
|
-
</aside>
|
|
138
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
139
|
-
<ul class="tsd-parameters">
|
|
140
|
-
<li>
|
|
141
|
-
<h5>device: <a href="usb_bindings.device.html" class="tsd-signature-type" data-tsd-kind="Class">Device</a></h5>
|
|
142
|
-
</li>
|
|
143
|
-
<li>
|
|
144
|
-
<h5>descriptor: <a href="../interfaces/usb_descriptors.endpointdescriptor.html" class="tsd-signature-type" data-tsd-kind="Interface">EndpointDescriptor</a></h5>
|
|
145
|
-
</li>
|
|
146
|
-
</ul>
|
|
147
|
-
<h4 class="tsd-returns-title">Returns <a href="usb_endpoint.outendpoint.html" class="tsd-signature-type" data-tsd-kind="Class">OutEndpoint</a></h4>
|
|
148
|
-
</li>
|
|
149
|
-
</ul>
|
|
150
|
-
</section>
|
|
151
|
-
</section>
|
|
152
|
-
<section class="tsd-panel-group tsd-member-group ">
|
|
153
|
-
<h2>Properties</h2>
|
|
154
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
|
|
155
|
-
<a name="address" class="tsd-anchor"></a>
|
|
156
|
-
<h3>address</h3>
|
|
157
|
-
<div class="tsd-signature tsd-kind-icon">address<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
|
|
158
|
-
<aside class="tsd-sources">
|
|
159
|
-
<p>Inherited from <a href="usb_endpoint.endpoint.html">Endpoint</a>.<a href="usb_endpoint.endpoint.html#address">address</a></p>
|
|
160
|
-
<ul>
|
|
161
|
-
<li>Defined in <a href="https://github.com/tessel/node-usb/blob/639b0a3/tsc/usb/endpoint.ts#L9">tsc/usb/endpoint.ts:9</a></li>
|
|
162
|
-
</ul>
|
|
163
|
-
</aside>
|
|
164
|
-
</section>
|
|
165
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
|
|
166
|
-
<a name="descriptor" class="tsd-anchor"></a>
|
|
167
|
-
<h3>descriptor</h3>
|
|
168
|
-
<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>
|
|
169
|
-
<aside class="tsd-sources">
|
|
170
|
-
<p>Inherited from <a href="usb_endpoint.endpoint.html">Endpoint</a>.<a href="usb_endpoint.endpoint.html#descriptor">descriptor</a></p>
|
|
171
|
-
<ul>
|
|
172
|
-
<li>Defined in <a href="https://github.com/tessel/node-usb/blob/639b0a3/tsc/usb/endpoint.ts#L21">tsc/usb/endpoint.ts:21</a></li>
|
|
173
|
-
</ul>
|
|
174
|
-
</aside>
|
|
175
|
-
<div class="tsd-comment tsd-typography">
|
|
176
|
-
<div class="lead">
|
|
177
|
-
<p>Object with fields from the endpoint descriptor -- see libusb documentation or USB spec.</p>
|
|
178
|
-
</div>
|
|
179
|
-
</div>
|
|
180
|
-
</section>
|
|
181
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected">
|
|
182
|
-
<a name="device" class="tsd-anchor"></a>
|
|
183
|
-
<h3><span class="tsd-flag ts-flagProtected">Protected</span> device</h3>
|
|
184
|
-
<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>
|
|
185
|
-
<aside class="tsd-sources">
|
|
186
|
-
<p>Inherited from <a href="usb_endpoint.endpoint.html">Endpoint</a>.<a href="usb_endpoint.endpoint.html#device">device</a></p>
|
|
187
|
-
</aside>
|
|
188
|
-
</section>
|
|
189
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-overwrite">
|
|
190
|
-
<a name="direction" class="tsd-anchor"></a>
|
|
191
|
-
<h3>direction</h3>
|
|
192
|
-
<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"> = 'out'</span></div>
|
|
193
|
-
<aside class="tsd-sources">
|
|
194
|
-
<p>Overrides <a href="usb_endpoint.endpoint.html">Endpoint</a>.<a href="usb_endpoint.endpoint.html#direction">direction</a></p>
|
|
195
|
-
<ul>
|
|
196
|
-
<li>Defined in <a href="https://github.com/tessel/node-usb/blob/639b0a3/tsc/usb/endpoint.ts#L185">tsc/usb/endpoint.ts:185</a></li>
|
|
197
|
-
</ul>
|
|
198
|
-
</aside>
|
|
199
|
-
<div class="tsd-comment tsd-typography">
|
|
200
|
-
<div class="lead">
|
|
201
|
-
<p>Endpoint direction.</p>
|
|
202
|
-
</div>
|
|
203
|
-
</div>
|
|
204
|
-
</section>
|
|
205
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
|
|
206
|
-
<a name="timeout" class="tsd-anchor"></a>
|
|
207
|
-
<h3>timeout</h3>
|
|
208
|
-
<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>
|
|
209
|
-
<aside class="tsd-sources">
|
|
210
|
-
<p>Inherited from <a href="usb_endpoint.endpoint.html">Endpoint</a>.<a href="usb_endpoint.endpoint.html#timeout">timeout</a></p>
|
|
211
|
-
<ul>
|
|
212
|
-
<li>Defined in <a href="https://github.com/tessel/node-usb/blob/639b0a3/tsc/usb/endpoint.ts#L18">tsc/usb/endpoint.ts:18</a></li>
|
|
213
|
-
</ul>
|
|
214
|
-
</aside>
|
|
215
|
-
<div class="tsd-comment tsd-typography">
|
|
216
|
-
<div class="lead">
|
|
217
|
-
<p>Sets the timeout in milliseconds for transfers on this endpoint. The default, <code>0</code>, is infinite timeout.</p>
|
|
218
|
-
</div>
|
|
219
|
-
</div>
|
|
220
|
-
</section>
|
|
221
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
|
|
222
|
-
<a name="transfertype" class="tsd-anchor"></a>
|
|
223
|
-
<h3>transfer<wbr>Type</h3>
|
|
224
|
-
<div class="tsd-signature tsd-kind-icon">transfer<wbr>Type<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
|
|
225
|
-
<aside class="tsd-sources">
|
|
226
|
-
<p>Inherited from <a href="usb_endpoint.endpoint.html">Endpoint</a>.<a href="usb_endpoint.endpoint.html#transfertype">transferType</a></p>
|
|
227
|
-
<ul>
|
|
228
|
-
<li>Defined in <a href="https://github.com/tessel/node-usb/blob/639b0a3/tsc/usb/endpoint.ts#L15">tsc/usb/endpoint.ts:15</a></li>
|
|
229
|
-
</ul>
|
|
230
|
-
</aside>
|
|
231
|
-
<div class="tsd-comment tsd-typography">
|
|
232
|
-
<div class="lead">
|
|
233
|
-
<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>
|
|
234
|
-
</div>
|
|
235
|
-
</div>
|
|
236
|
-
</section>
|
|
237
|
-
</section>
|
|
238
|
-
<section class="tsd-panel-group tsd-member-group ">
|
|
239
|
-
<h2>Methods</h2>
|
|
240
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|
241
|
-
<a name="clearhalt" class="tsd-anchor"></a>
|
|
242
|
-
<h3>clear<wbr>Halt</h3>
|
|
243
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|
244
|
-
<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>
|
|
245
|
-
</ul>
|
|
246
|
-
<ul class="tsd-descriptions">
|
|
247
|
-
<li class="tsd-description">
|
|
248
|
-
<aside class="tsd-sources">
|
|
249
|
-
<p>Inherited from <a href="usb_endpoint.endpoint.html">Endpoint</a>.<a href="usb_endpoint.endpoint.html#clearhalt">clearHalt</a></p>
|
|
250
|
-
<ul>
|
|
251
|
-
<li>Defined in <a href="https://github.com/tessel/node-usb/blob/639b0a3/tsc/usb/endpoint.ts#L31">tsc/usb/endpoint.ts:31</a></li>
|
|
252
|
-
</ul>
|
|
253
|
-
</aside>
|
|
254
|
-
<div class="tsd-comment tsd-typography">
|
|
255
|
-
<div class="lead">
|
|
256
|
-
<p>Clear the halt/stall condition for this endpoint.</p>
|
|
257
|
-
</div>
|
|
258
|
-
</div>
|
|
259
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
260
|
-
<ul class="tsd-parameters">
|
|
261
|
-
<li>
|
|
262
|
-
<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>
|
|
263
|
-
<ul class="tsd-parameters">
|
|
264
|
-
<li class="tsd-parameter-signature">
|
|
265
|
-
<ul class="tsd-signatures tsd-kind-type-literal">
|
|
266
|
-
<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>
|
|
267
|
-
</ul>
|
|
268
|
-
<ul class="tsd-descriptions">
|
|
269
|
-
<li class="tsd-description">
|
|
270
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
271
|
-
<ul class="tsd-parameters">
|
|
272
|
-
<li>
|
|
273
|
-
<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>
|
|
274
|
-
</li>
|
|
275
|
-
</ul>
|
|
276
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
|
|
277
|
-
</li>
|
|
278
|
-
</ul>
|
|
279
|
-
</li>
|
|
280
|
-
</ul>
|
|
281
|
-
</li>
|
|
282
|
-
</ul>
|
|
283
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
|
|
284
|
-
</li>
|
|
285
|
-
</ul>
|
|
286
|
-
</section>
|
|
287
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|
288
|
-
<a name="maketransfer" class="tsd-anchor"></a>
|
|
289
|
-
<h3>make<wbr>Transfer</h3>
|
|
290
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|
291
|
-
<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>
|
|
292
|
-
</ul>
|
|
293
|
-
<ul class="tsd-descriptions">
|
|
294
|
-
<li class="tsd-description">
|
|
295
|
-
<aside class="tsd-sources">
|
|
296
|
-
<p>Inherited from <a href="usb_endpoint.endpoint.html">Endpoint</a>.<a href="usb_endpoint.endpoint.html#maketransfer">makeTransfer</a></p>
|
|
297
|
-
<ul>
|
|
298
|
-
<li>Defined in <a href="https://github.com/tessel/node-usb/blob/639b0a3/tsc/usb/endpoint.ts#L44">tsc/usb/endpoint.ts:44</a></li>
|
|
299
|
-
</ul>
|
|
300
|
-
</aside>
|
|
301
|
-
<div class="tsd-comment tsd-typography">
|
|
302
|
-
<div class="lead">
|
|
303
|
-
<p>Create a new <code>Transfer</code> object for this endpoint.</p>
|
|
304
|
-
</div>
|
|
305
|
-
<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
|
|
306
|
-
OUT transfers) or read (for IN transfers).</p>
|
|
307
|
-
</div>
|
|
308
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
309
|
-
<ul class="tsd-parameters">
|
|
310
|
-
<li>
|
|
311
|
-
<h5>timeout: <span class="tsd-signature-type">number</span></h5>
|
|
312
|
-
<div class="tsd-comment tsd-typography">
|
|
313
|
-
<p>Timeout for the transfer (0 means unlimited).</p>
|
|
314
|
-
</div>
|
|
315
|
-
</li>
|
|
316
|
-
<li>
|
|
317
|
-
<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>
|
|
318
|
-
<div class="tsd-comment tsd-typography">
|
|
319
|
-
<p>Transfer completion callback.</p>
|
|
320
|
-
</div>
|
|
321
|
-
<ul class="tsd-parameters">
|
|
322
|
-
<li class="tsd-parameter-signature">
|
|
323
|
-
<ul class="tsd-signatures tsd-kind-type-literal">
|
|
324
|
-
<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>
|
|
325
|
-
</ul>
|
|
326
|
-
<ul class="tsd-descriptions">
|
|
327
|
-
<li class="tsd-description">
|
|
328
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
329
|
-
<ul class="tsd-parameters">
|
|
330
|
-
<li>
|
|
331
|
-
<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>
|
|
332
|
-
</li>
|
|
333
|
-
<li>
|
|
334
|
-
<h5>buffer: <span class="tsd-signature-type">Buffer</span></h5>
|
|
335
|
-
</li>
|
|
336
|
-
<li>
|
|
337
|
-
<h5>actualLength: <span class="tsd-signature-type">number</span></h5>
|
|
338
|
-
</li>
|
|
339
|
-
</ul>
|
|
340
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
|
|
341
|
-
</li>
|
|
342
|
-
</ul>
|
|
343
|
-
</li>
|
|
344
|
-
</ul>
|
|
345
|
-
</li>
|
|
346
|
-
</ul>
|
|
347
|
-
<h4 class="tsd-returns-title">Returns <a href="usb_bindings.transfer.html" class="tsd-signature-type" data-tsd-kind="Class">Transfer</a></h4>
|
|
348
|
-
</li>
|
|
349
|
-
</ul>
|
|
350
|
-
</section>
|
|
351
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|
352
|
-
<a name="transfer" class="tsd-anchor"></a>
|
|
353
|
-
<h3>transfer</h3>
|
|
354
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
355
|
-
<li class="tsd-signature tsd-kind-icon">transfer<span class="tsd-signature-symbol">(</span>buffer<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Buffer</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>, actual<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_endpoint.outendpoint.html" class="tsd-signature-type" data-tsd-kind="Class">OutEndpoint</a></li>
|
|
356
|
-
</ul>
|
|
357
|
-
<ul class="tsd-descriptions">
|
|
358
|
-
<li class="tsd-description">
|
|
359
|
-
<aside class="tsd-sources">
|
|
360
|
-
<ul>
|
|
361
|
-
<li>Defined in <a href="https://github.com/tessel/node-usb/blob/639b0a3/tsc/usb/endpoint.ts#L198">tsc/usb/endpoint.ts:198</a></li>
|
|
362
|
-
</ul>
|
|
363
|
-
</aside>
|
|
364
|
-
<div class="tsd-comment tsd-typography">
|
|
365
|
-
<div class="lead">
|
|
366
|
-
<p>Perform a transfer to write <code>data</code> to the endpoint.</p>
|
|
367
|
-
</div>
|
|
368
|
-
<p>If length is greater than maxPacketSize, libusb will automatically split the transfer in multiple packets, and you will receive one callback once all packets are complete.</p>
|
|
369
|
-
<p><code>this</code> in the callback is the OutEndpoint object.</p>
|
|
370
|
-
<p>The device must be open to use this method.</p>
|
|
371
|
-
</div>
|
|
372
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
373
|
-
<ul class="tsd-parameters">
|
|
374
|
-
<li>
|
|
375
|
-
<h5>buffer: <span class="tsd-signature-type">Buffer</span></h5>
|
|
376
|
-
</li>
|
|
377
|
-
<li>
|
|
378
|
-
<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>, actual<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>
|
|
379
|
-
<div class="tsd-comment tsd-typography">
|
|
380
|
-
</div>
|
|
381
|
-
<ul class="tsd-parameters">
|
|
382
|
-
<li class="tsd-parameter-signature">
|
|
383
|
-
<ul class="tsd-signatures tsd-kind-type-literal">
|
|
384
|
-
<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>, actual<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>
|
|
385
|
-
</ul>
|
|
386
|
-
<ul class="tsd-descriptions">
|
|
387
|
-
<li class="tsd-description">
|
|
388
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
389
|
-
<ul class="tsd-parameters">
|
|
390
|
-
<li>
|
|
391
|
-
<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>
|
|
392
|
-
</li>
|
|
393
|
-
<li>
|
|
394
|
-
<h5>actual: <span class="tsd-signature-type">number</span></h5>
|
|
395
|
-
</li>
|
|
396
|
-
</ul>
|
|
397
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
|
|
398
|
-
</li>
|
|
399
|
-
</ul>
|
|
400
|
-
</li>
|
|
401
|
-
</ul>
|
|
402
|
-
</li>
|
|
403
|
-
</ul>
|
|
404
|
-
<h4 class="tsd-returns-title">Returns <a href="usb_endpoint.outendpoint.html" class="tsd-signature-type" data-tsd-kind="Class">OutEndpoint</a></h4>
|
|
405
|
-
</li>
|
|
406
|
-
</ul>
|
|
407
|
-
</section>
|
|
408
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|
409
|
-
<a name="transferwithzlp" class="tsd-anchor"></a>
|
|
410
|
-
<h3>transfer<wbr>WithZLP</h3>
|
|
411
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
412
|
-
<li class="tsd-signature tsd-kind-icon">transfer<wbr>WithZLP<span class="tsd-signature-symbol">(</span>buffer<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Buffer</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>
|
|
413
|
-
</ul>
|
|
414
|
-
<ul class="tsd-descriptions">
|
|
415
|
-
<li class="tsd-description">
|
|
416
|
-
<aside class="tsd-sources">
|
|
417
|
-
<ul>
|
|
418
|
-
<li>Defined in <a href="https://github.com/tessel/node-usb/blob/639b0a3/tsc/usb/endpoint.ts#L220">tsc/usb/endpoint.ts:220</a></li>
|
|
419
|
-
</ul>
|
|
420
|
-
</aside>
|
|
421
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
422
|
-
<ul class="tsd-parameters">
|
|
423
|
-
<li>
|
|
424
|
-
<h5>buffer: <span class="tsd-signature-type">Buffer</span></h5>
|
|
425
|
-
</li>
|
|
426
|
-
<li>
|
|
427
|
-
<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>
|
|
428
|
-
<ul class="tsd-parameters">
|
|
429
|
-
<li class="tsd-parameter-signature">
|
|
430
|
-
<ul class="tsd-signatures tsd-kind-type-literal">
|
|
431
|
-
<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>
|
|
432
|
-
</ul>
|
|
433
|
-
<ul class="tsd-descriptions">
|
|
434
|
-
<li class="tsd-description">
|
|
435
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
436
|
-
<ul class="tsd-parameters">
|
|
437
|
-
<li>
|
|
438
|
-
<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>
|
|
439
|
-
</li>
|
|
440
|
-
</ul>
|
|
441
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
|
|
442
|
-
</li>
|
|
443
|
-
</ul>
|
|
444
|
-
</li>
|
|
445
|
-
</ul>
|
|
446
|
-
</li>
|
|
447
|
-
</ul>
|
|
448
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
|
|
449
|
-
</li>
|
|
450
|
-
</ul>
|
|
451
|
-
</section>
|
|
452
|
-
</section>
|
|
453
|
-
</div>
|
|
454
|
-
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
455
|
-
<nav class="tsd-navigation primary">
|
|
456
|
-
<ul>
|
|
457
|
-
<li class=" ">
|
|
458
|
-
<a href="../modules.html">Exports</a>
|
|
459
|
-
</li>
|
|
460
|
-
<li class=" tsd-kind-module">
|
|
461
|
-
<a href="../modules/index.html">index</a>
|
|
462
|
-
</li>
|
|
463
|
-
<li class=" tsd-kind-module">
|
|
464
|
-
<a href="../modules/usb.html">usb</a>
|
|
465
|
-
</li>
|
|
466
|
-
<li class=" tsd-kind-module">
|
|
467
|
-
<a href="../modules/usb_bindings.html">usb/bindings</a>
|
|
468
|
-
</li>
|
|
469
|
-
<li class=" tsd-kind-module">
|
|
470
|
-
<a href="../modules/usb_capability.html">usb/capability</a>
|
|
471
|
-
</li>
|
|
472
|
-
<li class=" tsd-kind-module">
|
|
473
|
-
<a href="../modules/usb_descriptors.html">usb/descriptors</a>
|
|
474
|
-
</li>
|
|
475
|
-
<li class=" tsd-kind-module">
|
|
476
|
-
<a href="../modules/usb_device.html">usb/device</a>
|
|
477
|
-
</li>
|
|
478
|
-
<li class="current tsd-kind-module">
|
|
479
|
-
<a href="../modules/usb_endpoint.html">usb/endpoint</a>
|
|
480
|
-
</li>
|
|
481
|
-
<li class=" tsd-kind-module">
|
|
482
|
-
<a href="../modules/usb_interface.html">usb/interface</a>
|
|
483
|
-
</li>
|
|
484
|
-
<li class=" tsd-kind-module">
|
|
485
|
-
<a href="../modules/webusb.html">webusb</a>
|
|
486
|
-
</li>
|
|
487
|
-
<li class=" tsd-kind-module">
|
|
488
|
-
<a href="../modules/webusb_mutex.html">webusb/mutex</a>
|
|
489
|
-
</li>
|
|
490
|
-
<li class=" tsd-kind-module">
|
|
491
|
-
<a href="../modules/webusb_typed_event_target.html">webusb/typed-<wbr>event-<wbr>target</a>
|
|
492
|
-
</li>
|
|
493
|
-
<li class=" tsd-kind-module">
|
|
494
|
-
<a href="../modules/webusb_webusb_device.html">webusb/webusb-<wbr>device</a>
|
|
495
|
-
</li>
|
|
496
|
-
</ul>
|
|
497
|
-
</nav>
|
|
498
|
-
<nav class="tsd-navigation secondary menu-sticky">
|
|
499
|
-
<ul class="before-current">
|
|
500
|
-
<li class=" tsd-kind-class tsd-parent-kind-module">
|
|
501
|
-
<a href="usb_endpoint.endpoint.html" class="tsd-kind-icon">Endpoint</a>
|
|
502
|
-
</li>
|
|
503
|
-
<li class=" tsd-kind-class tsd-parent-kind-module">
|
|
504
|
-
<a href="usb_endpoint.inendpoint.html" class="tsd-kind-icon">In<wbr>Endpoint</a>
|
|
505
|
-
</li>
|
|
506
|
-
</ul>
|
|
507
|
-
<ul class="current">
|
|
508
|
-
<li class="current tsd-kind-class tsd-parent-kind-module">
|
|
509
|
-
<a href="usb_endpoint.outendpoint.html" class="tsd-kind-icon">Out<wbr>Endpoint</a>
|
|
510
|
-
<ul>
|
|
511
|
-
<li class=" tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited">
|
|
512
|
-
<a href="usb_endpoint.outendpoint.html#constructor" class="tsd-kind-icon">constructor</a>
|
|
513
|
-
</li>
|
|
514
|
-
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
|
|
515
|
-
<a href="usb_endpoint.outendpoint.html#address" class="tsd-kind-icon">address</a>
|
|
516
|
-
</li>
|
|
517
|
-
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
|
|
518
|
-
<a href="usb_endpoint.outendpoint.html#descriptor" class="tsd-kind-icon">descriptor</a>
|
|
519
|
-
</li>
|
|
520
|
-
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected">
|
|
521
|
-
<a href="usb_endpoint.outendpoint.html#device" class="tsd-kind-icon">device</a>
|
|
522
|
-
</li>
|
|
523
|
-
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-overwrite">
|
|
524
|
-
<a href="usb_endpoint.outendpoint.html#direction" class="tsd-kind-icon">direction</a>
|
|
525
|
-
</li>
|
|
526
|
-
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
|
|
527
|
-
<a href="usb_endpoint.outendpoint.html#timeout" class="tsd-kind-icon">timeout</a>
|
|
528
|
-
</li>
|
|
529
|
-
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
|
|
530
|
-
<a href="usb_endpoint.outendpoint.html#transfertype" class="tsd-kind-icon">transfer<wbr>Type</a>
|
|
531
|
-
</li>
|
|
532
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|
533
|
-
<a href="usb_endpoint.outendpoint.html#clearhalt" class="tsd-kind-icon">clear<wbr>Halt</a>
|
|
534
|
-
</li>
|
|
535
|
-
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|
536
|
-
<a href="usb_endpoint.outendpoint.html#maketransfer" class="tsd-kind-icon">make<wbr>Transfer</a>
|
|
537
|
-
</li>
|
|
538
|
-
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|
539
|
-
<a href="usb_endpoint.outendpoint.html#transfer" class="tsd-kind-icon">transfer</a>
|
|
540
|
-
</li>
|
|
541
|
-
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|
542
|
-
<a href="usb_endpoint.outendpoint.html#transferwithzlp" class="tsd-kind-icon">transfer<wbr>WithZLP</a>
|
|
543
|
-
</li>
|
|
544
|
-
</ul>
|
|
545
|
-
</li>
|
|
546
|
-
</ul>
|
|
547
|
-
<ul class="after-current">
|
|
548
|
-
</ul>
|
|
549
|
-
</nav>
|
|
550
|
-
</div>
|
|
551
|
-
</div>
|
|
552
|
-
</div>
|
|
553
|
-
<footer>
|
|
554
|
-
<div class="container">
|
|
555
|
-
<h2>Legend</h2>
|
|
556
|
-
<div class="tsd-legend-group">
|
|
557
|
-
<ul class="tsd-legend">
|
|
558
|
-
<li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
|
|
559
|
-
<li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li>
|
|
560
|
-
<li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li>
|
|
561
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
|
|
562
|
-
</ul>
|
|
563
|
-
<ul class="tsd-legend">
|
|
564
|
-
<li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
|
|
565
|
-
<li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li>
|
|
566
|
-
<li class="tsd-kind-function tsd-has-type-parameter"><span class="tsd-kind-icon">Function with type parameter</span></li>
|
|
567
|
-
</ul>
|
|
568
|
-
<ul class="tsd-legend">
|
|
569
|
-
<li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li>
|
|
570
|
-
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li>
|
|
571
|
-
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li>
|
|
572
|
-
</ul>
|
|
573
|
-
<ul class="tsd-legend">
|
|
574
|
-
<li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li>
|
|
575
|
-
</ul>
|
|
576
|
-
</div>
|
|
577
|
-
</div>
|
|
578
|
-
</footer>
|
|
579
|
-
<div class="overlay"></div>
|
|
580
|
-
<script src="../assets/js/main.js"></script>
|
|
581
|
-
</body>
|
|
582
|
-
</html>
|