-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfigSchema.json
More file actions
261 lines (255 loc) · 8.37 KB
/
configSchema.json
File metadata and controls
261 lines (255 loc) · 8.37 KB
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"idVendor": {
"title": "USB ID Vendor",
"description": "Use hex e.g 0x6666",
"type": "string",
"pattern": "^0x[0-9ABCDEFabcdef]{4}$"
},
"idProduct": {
"title": "USB ID Product",
"description": "Use hex e.g 0xCAFE",
"type": "string",
"pattern": "^0x[0-9ABCDEFabcdef]{4}$"
},
"manufacturer": {
"title": "Manufacturer",
"type": "string",
"maxLength": 254,
"format": "UTF8"
},
"manufacturerId": {
"title": "Manufacturer Id (L)",
"description": "This is the System Exclusive ID Number. Please use the format as described by Linux Gadget docs.",
"type": "string",
"pattern": "^0x[0-9ABCDEFabcdef]{6}$"
},
"version": {
"title": "Software Revision Id (L)",
"description": "This is the Software Revision/Version Number. Please use the format as described by Linux Gadget docs.",
"type": "string",
"pattern": "^0x[0-9ABCDEFabcdef]{8}$"
},
"product": {
"title": "Product Name",
"type": "string",
"maxLength": 98,
"format": "UTF8"
},
"serialNumber": {
"title": "Serial Number",
"description": "Serial Number generation should be replaced by a some unique id on the Device e.g. chip id",
"type": "string",
"maxLength":42
},
"power": {
"title": "Power (in mA)",
"type": "integer",
"default": 500
},
"titleCDC": {
"title": "USB CDC (Serial) Support",
"type": "string",
"format": "title"
},
"CDC": {
"title": "Serial CDC",
"description": "Setting to >= 1 will enable a CDC interface",
"type": "integer",
"default": 0
},
"CDCName": {
"title": "CDC Name",
"type": "string"
},
"title2": {
"title": "MIDI USB Endpoints",
"type": "string",
"format": "title"
},
"processUmpManually": {
"title": "Process UMP Manually (L)",
"description": "Linux Gadget will attempt to process incoming UMP 1.1. request and respond regardless if there is an attached application to the ALSA Device. Setting this to true will stop this feature.",
"type": "boolean"
},
"endpoints": {
"title": "Endpoints",
"description": "More than one UMP Endpoint is not recommended at this time due to limited support.",
"type": "array",
"items":{
"type": "object",
"properties": {
"name": {
"title": "Endpoint Name",
"type": "string"
},
"productId": {
"title": "Product Instance Id(L)",
"type": "string",
"maxLength":42
},
"familyId": {
"title": "Family Id (L)",
"description": "This is the Family Id. Please use the format as described by Linux Gadget docs.",
"type": "string",
"pattern": "^0x[0-9ABCDEFabcdef]{4}$"
},
"modelId": {
"title": "Model Id (L)",
"description": "This is the Model Id. Please use the format as described by Linux Gadget docs.",
"type": "string",
"pattern": "^0x[0-9ABCDEFabcdef]{4}$"
},
"title1": {
"title": "MIDI 1.0 Details",
"type": "string",
"format": "title"
},
"MIDI1Itf": {
"title": "MIDI 1.0 Jacks (T)",
"description": "Limitations: This MIDI 1.0 Descriptor builder doesn't handle more than one source pin, or elements.",
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"properties": {
"in": {
"title": "Embedded In",
"description": "This creates an Embedded Output",
"type": "boolean"
},
"out": {
"title": "Embedded Output",
"description": "This creates an Embedded Input",
"type": "boolean"
},
"externalCreate": {
"title": "Create Matching External ports",
"description": "This creates a matching External IN/OUT.",
"type": "boolean"
},
"name": {
"title": "MIDI 1.0 Port Name",
"type": "string"
}
},
"required": [
"name"
]
}
},
"title2": {
"title": "MIDI 2.0 Details",
"type": "string",
"format": "title"
},
"defaultGTBProtocol": {
"title": "Default MIDI 2.0 Protocol",
"description": "Note this only accepts 0 - unknown, 1 - MIDI 1.0, 2 - MIDI 2.0",
"type": "integer",
"minimum": 0,
"maximum": 2,
"default": 2
},
"blocks": {
"title": "Blocks",
"description": "This is generally Group Blocks, however Linux Gadget can also treat these as static Function Blocks. If Blocks are not created then no Alternate Setting 2 is created for USB.",
"type": "array",
"items":
{
"type": "object",
"properties": {
"name": {
"title": "Block Name",
"type": "string"
},
"firstGroup": {
"title": "First Group (1-16)",
"type": "integer",
"minimum": 1,
"maximum": 16
},
"numOfGroups": {
"title": "Number of Groups (1-16)",
"type": "integer",
"minimum": 1,
"maximum": 16
},
"in": {
"title": "Input",
"type": "boolean"
},
"out": {
"title": "Output",
"type": "boolean"
},
"wMaxInputBandwidth": {
"title": "Max Input Bandwidth (T)",
"type": "integer",
"minimum": 0,
"maximum": 65535
},
"wMaxOutputBandwidth": {
"title": "Max Output Bandwidth (T)",
"type": "integer",
"minimum": 0,
"maximum": 65535
},
"protocol": {
"title": "Protocol",
"description": "Note this only accepts 0 - default, 1 - MIDI 1.0, 2 - MIDI 2.0",
"type": "integer",
"minimum": 0,
"maximum": 2
},
"uihintIn": {
"title": "UI Hint In (Function Block)(L)",
"type": "boolean"
},
"uihintOut": {
"title": "UI Hint Out (Function Block)(L)",
"type": "boolean"
}
},
"required": [
"name",
"in",
"out",
"uihintIn",
"uihintOut",
"firstGroup",
"numOfGroups"
]
}
}
},
"required": [
"name",
"MIDI1Itf",
"defaultGTBProtocol",
"blocks"
]
}
},
"prefix": {
"title": "Parameter Prefix (T)",
"description": "If provided this will prefix parameters with this value",
"type": "string",
"pattern": "^[A-Za-z_][a-zA-Z0-9_]*$"
}
},
"required": [
"idVendor",
"idProduct",
"manufacturer",
"manufacturerId",
"version",
"product",
"serialNumber",
"power",
"endpoints",
"CDC","processUmpManually"
]
}