1 /* $NetBSD: usb/ugraphire_rdesc.h,v 1.1 2000/12/29 01:47:49 augustss Exp $ */
4 * Copyright (c) 2000 Nick Hibma <n_hibma@freebsd.org>
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
16 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
17 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 static uByte uhid_graphire_report_descr[] = {
30 0x05, 0x0d, /* USAGE_PAGE (Digitizers) */
31 0x09, 0x01, /* USAGE (Digitizer) */
32 0xa1, 0x01, /* COLLECTION (Application) */
33 0x85, 0x02, /* REPORT_ID (2) */
34 0x05, 0x0d, /* USAGE_PAGE (Digitizers) */
35 0x09, 0x01, /* USAGE (Digitizer) */
36 0xa1, 0x00, /* COLLECTION (Physical) */
37 0x15, 0x00, /* LOGICAL_MINIMUM (0) */
38 0x25, 0x01, /* LOGICAL_MAXIMUM (1) */
39 0x09, 0x33, /* USAGE (Touch) */
40 0x95, 0x01, /* REPORT_COUNT (1) */
41 0x75, 0x01, /* REPORT_SIZE (1) */
42 0x81, 0x02, /* INPUT (Data,Var,Abs) */
43 0x09, 0x44, /* USAGE (Barrel Switch) */
44 0x95, 0x02, /* REPORT_COUNT (2) */
45 0x75, 0x01, /* REPORT_SIZE (1) */
46 0x81, 0x02, /* INPUT (Data,Var,Abs) */
47 0x09, 0x00, /* USAGE (Undefined) */
48 0x95, 0x02, /* REPORT_COUNT (2) */
49 0x75, 0x01, /* REPORT_SIZE (1) */
50 0x81, 0x03, /* INPUT (Cnst,Var,Abs) */
51 0x09, 0x3c, /* USAGE (Invert) */
52 0x95, 0x01, /* REPORT_COUNT (1) */
53 0x75, 0x01, /* REPORT_SIZE (1) */
54 0x81, 0x02, /* INPUT (Data,Var,Abs) */
55 0x09, 0x38, /* USAGE (Transducer Index) */
56 0x95, 0x01, /* REPORT_COUNT (1) */
57 0x75, 0x01, /* REPORT_SIZE (1) */
58 0x81, 0x02, /* INPUT (Data,Var,Abs) */
59 0x09, 0x32, /* USAGE (In Range) */
60 0x95, 0x01, /* REPORT_COUNT (1) */
61 0x75, 0x01, /* REPORT_SIZE (1) */
62 0x81, 0x02, /* INPUT (Data,Var,Abs) */
63 0x05, 0x01, /* USAGE_PAGE (Generic Desktop) */
64 0x09, 0x30, /* USAGE (X) */
65 0x15, 0x00, /* LOGICAL_MINIMUM (0) */
66 0x26, 0xde, 0x27, /* LOGICAL_MAXIMUM (10206) */
67 0x95, 0x01, /* REPORT_COUNT (1) */
68 0x75, 0x10, /* REPORT_SIZE (16) */
69 0x81, 0x02, /* INPUT (Data,Var,Abs) */
70 0x09, 0x31, /* USAGE (Y) */
71 0x26, 0xfe, 0x1c, /* LOGICAL_MAXIMUM (7422) */
72 0x95, 0x01, /* REPORT_COUNT (1) */
73 0x75, 0x10, /* REPORT_SIZE (16) */
74 0x81, 0x02, /* INPUT (Data,Var,Abs) */
75 0x05, 0x0d, /* USAGE_PAGE (Digitizers) */
76 0x09, 0x30, /* USAGE (Tip Pressure) */
77 0x26, 0xff, 0x01, /* LOGICAL_MAXIMUM (511) */
78 0x95, 0x01, /* REPORT_COUNT (1) */
79 0x75, 0x10, /* REPORT_SIZE (16) */
80 0x81, 0x02, /* INPUT (Data,Var,Abs) */
81 0xc0, /* END_COLLECTION */
82 0x05, 0x0d, /* USAGE_PAGE (Digitizers) */
83 0x09, 0x00, /* USAGE (Undefined) */
84 0x85, 0x02, /* REPORT_ID (2) */
85 0x95, 0x01, /* REPORT_COUNT (1) */
86 0xb1, 0x02, /* FEATURE (Data,Var,Abs) */
87 0x09, 0x00, /* USAGE (Undefined) */
88 0x85, 0x03, /* REPORT_ID (3) */
89 0x95, 0x01, /* REPORT_COUNT (1) */
90 0xb1, 0x02, /* FEATURE (Data,Var,Abs) */
91 0xc0, /* END_COLLECTION */