forked from greatscottgadgets/cynthion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
usb.toml
85 lines (79 loc) · 2.25 KB
/
usb.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
### Cynthion shared USB identifiers
###
### This configuration file defines USB identifiers that are shared
### between host and device implementations.
###
# bVendorId
#
# USB Device Descriptor vendor id field value.
#
[bVendorId]
apollo = 0x1d50 # OpenMoko, Inc.
cynthion = 0x1d50 # OpenMoko, Inc.
example = 0x1209 # https://pid.codes/1209/
# bProductId
#
# USB Device Descriptor product id field value.
#
[bProductId]
apollo = 0x615c # Apollo Debugger
cynthion = 0x615b # Cynthion USB Test Instrument
example = 0x0001 # pid.codes Test PID 1
example_2 = 0x0002 # pid.codes Test PID 2
example_3 = 0x0003 # pid.codes Test PID 3
example_4 = 0x0004 # pid.codes Test PID 4
example_5 = 0x0005 # pid.codes Test PID 5
analyzer_test = 0x000a # pid.codes Test PID 10
# iManufacturer
#
# USB Device Descriptor Manufacturer string field value.
#
[bManufacturerString]
apollo = "Great Scott Gadgets"
bulk_speed_test = "LUNA"
cynthion = "Great Scott Gadgets"
example = "https://pid.codes/1209/"
# iProduct
#
# USB Device Descriptor product string field value.
#
[bProductString]
apollo = "Apollo Debugger"
bulk_speed_test = "IN speed test"
cynthion = "Cynthion USB Test Instrument"
example = "pid.codes Test PID 1"
example_2 = "pid.codes Test PID 2"
example_3 = "pid.codes Test PID 3"
example_4 = "pid.codes Test PID 4"
example_5 = "pid.codes Test PID 5"
# bInterfaceSubClass
#
# Cynthion reports the same idVendor and idProduct values in the USB
# device descriptor irrespective of the gateware running on the device.
#
# Therefore we use the interface subclass field to identify the
# function being exposed by the currently provided interfaces.
#
# Valid values are:
#
# 0x00 - Apollo / Flash Bridge Interface
# 0x01..0x0f - Reserved
# 0x10 - Analyzer
# 0x20 - Moondancer
#
[bInterfaceSubClass]
apollo = 0x00
analyzer = 0x10
moondancer = 0x20
# bInterfaceProtocol (Optional)
#
# It is recommended to use the interface protocol field to version the
# protocol used for the the interface subclass in the form:
#
# Bits 0-7: Incremental version number
#
# 0xff = unused
#
[bInterfaceProtocol]
analyzer = 0x00
moondancer = 0x00