Add usi-test tool
Add usi-test tool to inspect Universal Stylus Intiative (USI) device
communication via HID reports.
The tool currently supports:
* printing the report descriptor in human-readable formant
* printing incoming events in human-readable format
* setting and getting parameters for a paired stylus, and
* sending diagnostic commands a paired stylus.
BUG=b:165820387
TEST=build image including the tool, and test all commands
Change-Id: I7a92fd29cd677a5bed0bff51831a67f4f975df33
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/usi-test/+/2405391
Commit-Queue: Sean O'Brien <seobrien@chromium.org>
Tested-by: Sean O'Brien <seobrien@chromium.org>
Reviewed-by: Harry Cutts <hcutts@chromium.org>
diff --git a/setup.py b/setup.py
new file mode 100644
index 0000000..276357f
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,23 @@
+# Copyright 2020 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+from setuptools import setup
+
+setup(name='usi-test',
+ version='1.0',
+ description='USI Device Testing Tool',
+ long_description='This contains tools for testing USI devices.',
+ py_modules=['usi_test'],
+ author='Sean O\'Brien',
+ author_email='seobrien@chromium.org',
+ license='BSD-Google',
+ entry_points={
+ 'console_scripts': [
+ 'usi-test = usi_test:main'
+ ]
+ },
+ python_requires='>=3.6',
+ install_requires=['hid-tools==0.2']
+)
+