@mchp-mcc/scf-pic8-opamp-v2 1.0.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/Changelog.md +8 -0
- package/LICENSE.txt +21 -0
- package/Readme.md +15 -0
- package/lib/generated_module/src/index.js +11 -0
- package/output/autoCreator.js +1995 -0
- package/output/autoCreator.js.map +1 -0
- package/output/autoProcessor.js +1997 -0
- package/output/autoProcessor.js.map +1 -0
- package/output/creator.js +6851 -0
- package/output/creator.js.map +1 -0
- package/output/header-template.h.ftl +353 -0
- package/output/nullPrototype.json +43 -0
- package/output/processor.js +6851 -0
- package/output/processor.js.map +1 -0
- package/output/reducer.js +29783 -0
- package/output/reducer.js.map +1 -0
- package/output/source-template.c.ftl +149 -0
- package/package.json +172 -0
- package/src/Calculations.test.tsx +83 -0
- package/src/Calculations.tsx +20 -0
- package/src/CreatorFunctions.test.ts +214 -0
- package/src/CreatorFunctions.ts +48 -0
- package/src/DerivedData.test.tsx +1601 -0
- package/src/DerivedData.ts +507 -0
- package/src/GeneratorModel.ts +80 -0
- package/src/ImageDataURLs.ts +8 -0
- package/src/PinsLogic.test.ts +983 -0
- package/src/PinsLogic.ts +293 -0
- package/src/catalog.json +24 -0
- package/src/moduleConfig.json +650 -0
- package/src/opa-output-parameters.test.tsx +22 -0
- package/src/opa-output-parameters.tsx +95 -0
- package/src/pinsdata.json +81 -0
- package/src/reducer.test.ts +177 -0
- package/src/reducer.ts +29 -0
|
@@ -0,0 +1,650 @@
|
|
|
1
|
+
{
|
|
2
|
+
"moduleName": "OPA",
|
|
3
|
+
"deviceType": "PIC",
|
|
4
|
+
"booleanValues": {
|
|
5
|
+
"true": "Enabled",
|
|
6
|
+
"false": "Disabled"
|
|
7
|
+
},
|
|
8
|
+
"UIGroups": {
|
|
9
|
+
"software": "Software Settings",
|
|
10
|
+
"hardware": "Hardware Settings",
|
|
11
|
+
"channelSel": "Channel Selection",
|
|
12
|
+
"feedbackSel": "Programmable Gain and Feedback Selection",
|
|
13
|
+
"overrideSel": "Hardware Override Selection"
|
|
14
|
+
},
|
|
15
|
+
"UIGroupCollapse": [
|
|
16
|
+
"feedbackSel",
|
|
17
|
+
"overrideSel"
|
|
18
|
+
],
|
|
19
|
+
"UIOrder": {
|
|
20
|
+
"software": [
|
|
21
|
+
"*"
|
|
22
|
+
],
|
|
23
|
+
"hardware": [
|
|
24
|
+
"enOpacon0",
|
|
25
|
+
"cponOpacon0",
|
|
26
|
+
"intoeOpacon3",
|
|
27
|
+
"customConfig",
|
|
28
|
+
"schematic",
|
|
29
|
+
"mindiLink",
|
|
30
|
+
"*"
|
|
31
|
+
],
|
|
32
|
+
"channelSel": [
|
|
33
|
+
"pchOpacon2",
|
|
34
|
+
"pssOpacon3",
|
|
35
|
+
"nchOpacon2",
|
|
36
|
+
"nssOpacon1",
|
|
37
|
+
"*"
|
|
38
|
+
],
|
|
39
|
+
"feedbackSel": [
|
|
40
|
+
"resonOpacon1",
|
|
41
|
+
"gselOpacon1",
|
|
42
|
+
"nonInvGain",
|
|
43
|
+
"invGain",
|
|
44
|
+
"fmsOpacon3",
|
|
45
|
+
"*"
|
|
46
|
+
],
|
|
47
|
+
"overrideSel": [
|
|
48
|
+
"orenOpahwc",
|
|
49
|
+
"orsOpaors",
|
|
50
|
+
"hwchOpahwc",
|
|
51
|
+
"hwclOpahwc",
|
|
52
|
+
"ptresOpacon4",
|
|
53
|
+
"orpolOpahwc",
|
|
54
|
+
"*"
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
"tabs": {
|
|
58
|
+
"main": "Easy View",
|
|
59
|
+
"register": "Register Initialization"
|
|
60
|
+
},
|
|
61
|
+
"templates": [
|
|
62
|
+
{
|
|
63
|
+
"src": "output/source-template.c.ftl",
|
|
64
|
+
"dest": "opa/src/${sourceFileName}"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"src": "output/header-template.h.ftl",
|
|
68
|
+
"dest": "opa/${headerFileName}"
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"imports": {
|
|
72
|
+
"scf_pic8_opamp_v2": {
|
|
73
|
+
"import": {
|
|
74
|
+
"interfaceId": {
|
|
75
|
+
"name": "scf-pic8-opamp-v2",
|
|
76
|
+
"version": "1.0.0"
|
|
77
|
+
},
|
|
78
|
+
"isRequired": true
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"initializer_system": {
|
|
82
|
+
"nodeModule": {
|
|
83
|
+
"importName": "systemInit",
|
|
84
|
+
"node": "@microchip/initializer-system"
|
|
85
|
+
},
|
|
86
|
+
"fullyTyped": true,
|
|
87
|
+
"import": {
|
|
88
|
+
"interfaceId": {
|
|
89
|
+
"name": "initializer-system",
|
|
90
|
+
"version": "^0"
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"pin_standard": {
|
|
95
|
+
"import": {
|
|
96
|
+
"interfaceId": {
|
|
97
|
+
"name": "pin-standard",
|
|
98
|
+
"version": "^0"
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"device_meta": {
|
|
103
|
+
"import": {
|
|
104
|
+
"interfaceId": {
|
|
105
|
+
"name": "device-meta",
|
|
106
|
+
"version": "^1.0.0"
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"exports": {
|
|
112
|
+
"opa": {
|
|
113
|
+
"interfaces": [
|
|
114
|
+
{
|
|
115
|
+
"interfaceId": {
|
|
116
|
+
"name": "opa-output-parameters",
|
|
117
|
+
"version": "1.0.0"
|
|
118
|
+
},
|
|
119
|
+
"components": [
|
|
120
|
+
"customName",
|
|
121
|
+
"enOpacon0"
|
|
122
|
+
]
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"hasPins": true,
|
|
128
|
+
"analytics": {
|
|
129
|
+
"logAlwaysComps": [
|
|
130
|
+
"enOpacon0",
|
|
131
|
+
"cponOpacon0",
|
|
132
|
+
"intoeOpacon3",
|
|
133
|
+
"customConfig",
|
|
134
|
+
"pchOpacon2",
|
|
135
|
+
"pssOpacon3",
|
|
136
|
+
"nchOpacon2",
|
|
137
|
+
"nssOpacon1",
|
|
138
|
+
"resonOpacon1",
|
|
139
|
+
"gselOpacon1",
|
|
140
|
+
"fmsOpacon3",
|
|
141
|
+
"orenOpahwc",
|
|
142
|
+
"orsOpaors",
|
|
143
|
+
"hwchOpahwc",
|
|
144
|
+
"hwclOpahwc",
|
|
145
|
+
"ptresOpacon4",
|
|
146
|
+
"orpolOpahwc"
|
|
147
|
+
],
|
|
148
|
+
"logOnChangeComps": [],
|
|
149
|
+
"compMapping": {
|
|
150
|
+
"enOpacon0": "OPAMP_Enable",
|
|
151
|
+
"cponOpacon0": "OPAMP_EnableChargePump",
|
|
152
|
+
"intoeOpacon3": "OPAMP_EnableInternalOutput",
|
|
153
|
+
"customConfig": "OPAMP_Configuration",
|
|
154
|
+
"pchOpacon2": "OPAMP_PositiveChannel",
|
|
155
|
+
"pssOpacon3": "OPAMP_PositiveSource",
|
|
156
|
+
"nchOpacon2": "OPAMP_NegativeChannel",
|
|
157
|
+
"nssOpacon1": "OPAMP_NegativeSource",
|
|
158
|
+
"resonOpacon1": "OPAMP_EnableResistorLadder",
|
|
159
|
+
"gselOpacon1": "OPAMP_ResistorLadderSelection",
|
|
160
|
+
"fmsOpacon3": "OPAMP_FeedbackMode",
|
|
161
|
+
"orenOpahwc": "OPAMP_EnableHardwareOverride",
|
|
162
|
+
"orsOpaors": "OPAMP_OverrideHighConfig",
|
|
163
|
+
"hwchOpahwc": "OPAMP_OverrideSource",
|
|
164
|
+
"hwclOpahwc": "OPAMP_OverrideLowConfig",
|
|
165
|
+
"ptresOpacon4": "OPAMP_PeakTroughDetect",
|
|
166
|
+
"orpolOpahwc": "OPAMP_InvertPolarity"
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"softwareData": {
|
|
170
|
+
"customName": {
|
|
171
|
+
"name": "customName",
|
|
172
|
+
"category": "software",
|
|
173
|
+
"description": "Custom Name",
|
|
174
|
+
"type": "string",
|
|
175
|
+
"defaultValue": "OPA",
|
|
176
|
+
"group": "software",
|
|
177
|
+
"tabs": [
|
|
178
|
+
"main"
|
|
179
|
+
],
|
|
180
|
+
"validation": true
|
|
181
|
+
},
|
|
182
|
+
"customConfig": {
|
|
183
|
+
"name": "customConfig",
|
|
184
|
+
"description": "Op Amp Configuration",
|
|
185
|
+
"type": "ComboBox",
|
|
186
|
+
"defaultValue": {
|
|
187
|
+
"value": "Direct Connection to Pins",
|
|
188
|
+
"options": [
|
|
189
|
+
"Direct Connection to Pins",
|
|
190
|
+
"Unity Gain Buffer",
|
|
191
|
+
"Non-Inverting Programmable Gain Amplifier",
|
|
192
|
+
"Inverting Programmable Gain Amplifier",
|
|
193
|
+
"Custom Configuration"
|
|
194
|
+
]
|
|
195
|
+
},
|
|
196
|
+
"group": "hardware",
|
|
197
|
+
"tabs": [
|
|
198
|
+
"main"
|
|
199
|
+
],
|
|
200
|
+
"category": "software"
|
|
201
|
+
},
|
|
202
|
+
"nonInvGain": {
|
|
203
|
+
"name": "nonInvGain",
|
|
204
|
+
"description": "Gain (1 + R2/R1)",
|
|
205
|
+
"type": "string",
|
|
206
|
+
"defaultValue": "1.07",
|
|
207
|
+
"group": "feedbackSel",
|
|
208
|
+
"mode": {
|
|
209
|
+
"masterComponent": "customConfig",
|
|
210
|
+
"operation": "isVisible",
|
|
211
|
+
"matchRegEx": "^Non-Inverting Programmable Gain Amplifier$"
|
|
212
|
+
},
|
|
213
|
+
"tabs": [
|
|
214
|
+
"main"
|
|
215
|
+
],
|
|
216
|
+
"uiBehavior": {
|
|
217
|
+
"readonly": true
|
|
218
|
+
},
|
|
219
|
+
"category": "software"
|
|
220
|
+
},
|
|
221
|
+
"invGain": {
|
|
222
|
+
"name": "invGain",
|
|
223
|
+
"description": "Gain [(R2/R1 + 1)(Vref/Vin) - (R2/R1)]",
|
|
224
|
+
"type": "string",
|
|
225
|
+
"defaultValue": "1.07(Vref/Vin) - 0.07",
|
|
226
|
+
"group": "feedbackSel",
|
|
227
|
+
"mode": {
|
|
228
|
+
"masterComponent": "customConfig",
|
|
229
|
+
"operation": "isVisible",
|
|
230
|
+
"matchRegEx": "^Inverting Programmable Gain Amplifier$"
|
|
231
|
+
},
|
|
232
|
+
"tabs": [
|
|
233
|
+
"main"
|
|
234
|
+
],
|
|
235
|
+
"uiBehavior": {
|
|
236
|
+
"readonly": true
|
|
237
|
+
},
|
|
238
|
+
"category": "software"
|
|
239
|
+
},
|
|
240
|
+
"schematic": {
|
|
241
|
+
"name": "schematic",
|
|
242
|
+
"category": "software",
|
|
243
|
+
"description": " ",
|
|
244
|
+
"type": "string",
|
|
245
|
+
"format": "image",
|
|
246
|
+
"defaultValue": "",
|
|
247
|
+
"imageDescription": "Schematic diagram",
|
|
248
|
+
"group": "hardware",
|
|
249
|
+
"mode": {
|
|
250
|
+
"masterComponent": "customConfig",
|
|
251
|
+
"operation": "isVisible",
|
|
252
|
+
"matchRegEx": "^(?!Custom Configuration).*$"
|
|
253
|
+
},
|
|
254
|
+
"tabs": [
|
|
255
|
+
"main"
|
|
256
|
+
]
|
|
257
|
+
},
|
|
258
|
+
"mindiLink": {
|
|
259
|
+
"name": "mindiLink",
|
|
260
|
+
"category": "software",
|
|
261
|
+
"description": " ",
|
|
262
|
+
"type": "string",
|
|
263
|
+
"format": "url",
|
|
264
|
+
"defaultValue": "https://kits.microchip.com/redirect/4/PIC18Q41-00",
|
|
265
|
+
"urlDescription": "Mindi(TM) Schematic",
|
|
266
|
+
"group": "hardware",
|
|
267
|
+
"mode": {
|
|
268
|
+
"masterComponent": "customConfig",
|
|
269
|
+
"operation": "isVisible",
|
|
270
|
+
"matchRegEx": "^(?!Custom Configuration).*$"
|
|
271
|
+
},
|
|
272
|
+
"tabs": [
|
|
273
|
+
"main"
|
|
274
|
+
]
|
|
275
|
+
},
|
|
276
|
+
"cnameAttribforPosPins": {
|
|
277
|
+
"name": "cnameAttribforPosPins",
|
|
278
|
+
"description": "cnameAttrib for positive pin cname",
|
|
279
|
+
"category": "software",
|
|
280
|
+
"type": "string",
|
|
281
|
+
"defaultValue": "{}",
|
|
282
|
+
"group": "software",
|
|
283
|
+
"tabs": [
|
|
284
|
+
"main"
|
|
285
|
+
],
|
|
286
|
+
"isVisibleProperty": "doNotShow"
|
|
287
|
+
},
|
|
288
|
+
"cnameAttribforNegPins": {
|
|
289
|
+
"name": "cnameAttribforNegPins",
|
|
290
|
+
"description": "cnameAttrib for negative pin cname",
|
|
291
|
+
"category": "software",
|
|
292
|
+
"type": "string",
|
|
293
|
+
"defaultValue": "{}",
|
|
294
|
+
"group": "software",
|
|
295
|
+
"tabs": [
|
|
296
|
+
"main"
|
|
297
|
+
],
|
|
298
|
+
"isVisibleProperty": "doNotShow"
|
|
299
|
+
}
|
|
300
|
+
},
|
|
301
|
+
"peripherals": [
|
|
302
|
+
{
|
|
303
|
+
"interfaceId": {
|
|
304
|
+
"name": "scf-pic8-opamp-v2",
|
|
305
|
+
"version": "1.0.0"
|
|
306
|
+
},
|
|
307
|
+
"registers": {
|
|
308
|
+
"OPACON0": [
|
|
309
|
+
{
|
|
310
|
+
"setting": "EN",
|
|
311
|
+
"name": "enOpacon0",
|
|
312
|
+
"category": "hardware",
|
|
313
|
+
"description": "Enable OpAmp",
|
|
314
|
+
"overrideDefaultValue": "Enabled",
|
|
315
|
+
"type": "boolean",
|
|
316
|
+
"group": "hardware",
|
|
317
|
+
"tabs": [
|
|
318
|
+
"main"
|
|
319
|
+
],
|
|
320
|
+
"sdlHelp": {
|
|
321
|
+
"tooltip": "Click for more Information",
|
|
322
|
+
"url": "v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true"
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"setting": "CPON",
|
|
327
|
+
"name": "cponOpacon0",
|
|
328
|
+
"category": "hardware",
|
|
329
|
+
"description": "Enable Charge Pump",
|
|
330
|
+
"type": "boolean",
|
|
331
|
+
"group": "hardware",
|
|
332
|
+
"tabs": [
|
|
333
|
+
"main"
|
|
334
|
+
],
|
|
335
|
+
"sdlHelp": {
|
|
336
|
+
"tooltip": "Click for more Information",
|
|
337
|
+
"url": "v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true"
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"setting": "UG",
|
|
342
|
+
"name": "ugOpacon0",
|
|
343
|
+
"category": "hardware",
|
|
344
|
+
"description": "Unity Gain Select",
|
|
345
|
+
"type": "ComboBox",
|
|
346
|
+
"group": "hardware",
|
|
347
|
+
"tabs": [
|
|
348
|
+
"register"
|
|
349
|
+
],
|
|
350
|
+
"sdlHelp": {
|
|
351
|
+
"tooltip": "Click for more Information",
|
|
352
|
+
"url": "v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true"
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
],
|
|
356
|
+
"OPACON1": [
|
|
357
|
+
{
|
|
358
|
+
"setting": "GSEL",
|
|
359
|
+
"name": "gselOpacon1",
|
|
360
|
+
"category": "hardware",
|
|
361
|
+
"description": "Internal Resistor Ladder Selection",
|
|
362
|
+
"type": "ComboBox",
|
|
363
|
+
"group": "feedbackSel",
|
|
364
|
+
"mode": {
|
|
365
|
+
"masterComponent": "customConfig",
|
|
366
|
+
"operation": "isEnabled",
|
|
367
|
+
"matchRegEx": "(Programmable)|(Custom)"
|
|
368
|
+
},
|
|
369
|
+
"tabs": [
|
|
370
|
+
"main"
|
|
371
|
+
],
|
|
372
|
+
"sdlHelp": {
|
|
373
|
+
"tooltip": "Click for more Information",
|
|
374
|
+
"url": "v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true"
|
|
375
|
+
}
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
"setting": "RESON",
|
|
379
|
+
"name": "resonOpacon1",
|
|
380
|
+
"category": "hardware",
|
|
381
|
+
"description": "Resistor Ladder",
|
|
382
|
+
"type": "boolean",
|
|
383
|
+
"group": "feedbackSel",
|
|
384
|
+
"mode": {
|
|
385
|
+
"masterComponent": "customConfig",
|
|
386
|
+
"operation": "isEnabled",
|
|
387
|
+
"matchRegEx": "^Custom Configuration$"
|
|
388
|
+
},
|
|
389
|
+
"tabs": [
|
|
390
|
+
"main"
|
|
391
|
+
],
|
|
392
|
+
"sdlHelp": {
|
|
393
|
+
"tooltip": "Click for more Information",
|
|
394
|
+
"url": "v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true"
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
"setting": "NSS",
|
|
399
|
+
"name": "nssOpacon1",
|
|
400
|
+
"category": "hardware",
|
|
401
|
+
"description": "Negative Source Selection",
|
|
402
|
+
"type": "ComboBox",
|
|
403
|
+
"group": "channelSel",
|
|
404
|
+
"mode": {
|
|
405
|
+
"masterComponent": "nchOpacon2",
|
|
406
|
+
"operation": "isEnabled",
|
|
407
|
+
"matchRegEx": "OPA\\dIN-"
|
|
408
|
+
},
|
|
409
|
+
"tabs": [
|
|
410
|
+
"main"
|
|
411
|
+
],
|
|
412
|
+
"sdlHelp": {
|
|
413
|
+
"tooltip": "Click for more Information",
|
|
414
|
+
"url": "v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true"
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
],
|
|
418
|
+
"OPACON2": [
|
|
419
|
+
{
|
|
420
|
+
"setting": "NCH",
|
|
421
|
+
"name": "nchOpacon2",
|
|
422
|
+
"category": "hardware",
|
|
423
|
+
"description": "Negative Channel",
|
|
424
|
+
"type": "ComboBox",
|
|
425
|
+
"group": "channelSel",
|
|
426
|
+
"mode": {
|
|
427
|
+
"masterComponent": "customConfig",
|
|
428
|
+
"operation": "isEnabled",
|
|
429
|
+
"matchRegEx": "^(?!Unity Gain Buffer).*$"
|
|
430
|
+
},
|
|
431
|
+
"tabs": [
|
|
432
|
+
"main"
|
|
433
|
+
],
|
|
434
|
+
"sdlHelp": {
|
|
435
|
+
"tooltip": "Click for more Information",
|
|
436
|
+
"url": "v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true"
|
|
437
|
+
}
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
"setting": "PCH",
|
|
441
|
+
"name": "pchOpacon2",
|
|
442
|
+
"category": "hardware",
|
|
443
|
+
"description": "Positive Channel",
|
|
444
|
+
"type": "ComboBox",
|
|
445
|
+
"group": "channelSel",
|
|
446
|
+
"tabs": [
|
|
447
|
+
"main"
|
|
448
|
+
],
|
|
449
|
+
"sdlHelp": {
|
|
450
|
+
"tooltip": "Click for more Information",
|
|
451
|
+
"url": "v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true"
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
],
|
|
455
|
+
"OPACON3": [
|
|
456
|
+
{
|
|
457
|
+
"setting": "FMS",
|
|
458
|
+
"name": "fmsOpacon3",
|
|
459
|
+
"category": "hardware",
|
|
460
|
+
"description": "Feedback Mode Selection",
|
|
461
|
+
"type": "ComboBox",
|
|
462
|
+
"group": "feedbackSel",
|
|
463
|
+
"mode": {
|
|
464
|
+
"masterComponent": "customConfig",
|
|
465
|
+
"operation": "isEnabled",
|
|
466
|
+
"matchRegEx": "(Programmable)|(Custom)"
|
|
467
|
+
},
|
|
468
|
+
"tabs": [
|
|
469
|
+
"main"
|
|
470
|
+
],
|
|
471
|
+
"sdlHelp": {
|
|
472
|
+
"tooltip": "Click for more Information",
|
|
473
|
+
"url": "v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true"
|
|
474
|
+
}
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
"setting": "INTOE",
|
|
478
|
+
"name": "intoeOpacon3",
|
|
479
|
+
"category": "hardware",
|
|
480
|
+
"description": "Enable Internal Output",
|
|
481
|
+
"type": "boolean",
|
|
482
|
+
"group": "hardware",
|
|
483
|
+
"tabs": [
|
|
484
|
+
"main"
|
|
485
|
+
],
|
|
486
|
+
"sdlHelp": {
|
|
487
|
+
"tooltip": "Click for more Information",
|
|
488
|
+
"url": "v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true"
|
|
489
|
+
}
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
"setting": "PSS",
|
|
493
|
+
"name": "pssOpacon3",
|
|
494
|
+
"category": "hardware",
|
|
495
|
+
"description": "Positive Source Selection",
|
|
496
|
+
"type": "ComboBox",
|
|
497
|
+
"group": "channelSel",
|
|
498
|
+
"mode": {
|
|
499
|
+
"masterComponent": "pchOpacon2",
|
|
500
|
+
"operation": "isEnabled",
|
|
501
|
+
"matchRegEx": "OPA\\dIN+"
|
|
502
|
+
},
|
|
503
|
+
"tabs": [
|
|
504
|
+
"main"
|
|
505
|
+
],
|
|
506
|
+
"sdlHelp": {
|
|
507
|
+
"tooltip": "Click for more Information",
|
|
508
|
+
"url": "v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true"
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
],
|
|
512
|
+
"OPACON4": [
|
|
513
|
+
{
|
|
514
|
+
"setting": "PTRES",
|
|
515
|
+
"name": "ptresOpacon4",
|
|
516
|
+
"category": "hardware",
|
|
517
|
+
"description": "Peak/Trough Detect Reset",
|
|
518
|
+
"type": "ComboBox",
|
|
519
|
+
"group": "overrideSel",
|
|
520
|
+
"tabs": [
|
|
521
|
+
"main"
|
|
522
|
+
],
|
|
523
|
+
"sdlHelp": {
|
|
524
|
+
"tooltip": "Click for more Information",
|
|
525
|
+
"url": "v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true"
|
|
526
|
+
}
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
"setting": "OFCST",
|
|
530
|
+
"name": "ofcstOpacon4",
|
|
531
|
+
"category": "hardware",
|
|
532
|
+
"description": "Automatic Input Offset Voltage Calibration",
|
|
533
|
+
"type": "ComboBox",
|
|
534
|
+
"group": "hardware",
|
|
535
|
+
"tabs": [
|
|
536
|
+
"register"
|
|
537
|
+
]
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
"setting": "OFCSEL",
|
|
541
|
+
"name": "ofcselOpacon4",
|
|
542
|
+
"category": "hardware",
|
|
543
|
+
"description": "Input Offset Voltage Source Selection",
|
|
544
|
+
"type": "ComboBox",
|
|
545
|
+
"group": "hardware",
|
|
546
|
+
"tabs": [
|
|
547
|
+
"register"
|
|
548
|
+
]
|
|
549
|
+
}
|
|
550
|
+
],
|
|
551
|
+
"OPAHWC": [
|
|
552
|
+
{
|
|
553
|
+
"setting": "OREN",
|
|
554
|
+
"name": "orenOpahwc",
|
|
555
|
+
"category": "hardware",
|
|
556
|
+
"description": "Hardware Override",
|
|
557
|
+
"type": "boolean",
|
|
558
|
+
"group": "overrideSel",
|
|
559
|
+
"tabs": [
|
|
560
|
+
"main"
|
|
561
|
+
],
|
|
562
|
+
"sdlHelp": {
|
|
563
|
+
"tooltip": "Click for more Information",
|
|
564
|
+
"url": "v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true"
|
|
565
|
+
}
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
"setting": "HWCH",
|
|
569
|
+
"name": "hwchOpahwc",
|
|
570
|
+
"category": "hardware",
|
|
571
|
+
"description": "Override Control High Configuration",
|
|
572
|
+
"type": "ComboBox",
|
|
573
|
+
"group": "overrideSel",
|
|
574
|
+
"tabs": [
|
|
575
|
+
"main"
|
|
576
|
+
],
|
|
577
|
+
"sdlHelp": {
|
|
578
|
+
"tooltip": "Click for more Information",
|
|
579
|
+
"url": "v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true"
|
|
580
|
+
}
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
"setting": "ORPOL",
|
|
584
|
+
"name": "orpolOpahwc",
|
|
585
|
+
"category": "hardware",
|
|
586
|
+
"description": "Override Source Polarity",
|
|
587
|
+
"type": "ComboBox",
|
|
588
|
+
"group": "overrideSel",
|
|
589
|
+
"tabs": [
|
|
590
|
+
"main"
|
|
591
|
+
],
|
|
592
|
+
"sdlHelp": {
|
|
593
|
+
"tooltip": "Click for more Information",
|
|
594
|
+
"url": "v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true"
|
|
595
|
+
}
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
"setting": "HWCL",
|
|
599
|
+
"name": "hwclOpahwc",
|
|
600
|
+
"category": "hardware",
|
|
601
|
+
"description": "Override Control Low Configuration",
|
|
602
|
+
"type": "ComboBox",
|
|
603
|
+
"group": "overrideSel",
|
|
604
|
+
"tabs": [
|
|
605
|
+
"main"
|
|
606
|
+
],
|
|
607
|
+
"sdlHelp": {
|
|
608
|
+
"tooltip": "Click for more Information",
|
|
609
|
+
"url": "v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true"
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
],
|
|
613
|
+
"OPAOFFSET": [
|
|
614
|
+
{
|
|
615
|
+
"setting": "OFFSET",
|
|
616
|
+
"name": "offsetOpaoffset",
|
|
617
|
+
"category": "hardware",
|
|
618
|
+
"description": "Insert Description Here",
|
|
619
|
+
"type": "string",
|
|
620
|
+
"group": "hardware",
|
|
621
|
+
"tabs": [
|
|
622
|
+
"register"
|
|
623
|
+
]
|
|
624
|
+
}
|
|
625
|
+
],
|
|
626
|
+
"OPAORS": [
|
|
627
|
+
{
|
|
628
|
+
"setting": "ORS",
|
|
629
|
+
"name": "orsOpaors",
|
|
630
|
+
"category": "hardware",
|
|
631
|
+
"description": "Hardware Override Source Selection",
|
|
632
|
+
"type": "ComboBox",
|
|
633
|
+
"group": "overrideSel",
|
|
634
|
+
"tabs": [
|
|
635
|
+
"main"
|
|
636
|
+
],
|
|
637
|
+
"sdlHelp": {
|
|
638
|
+
"tooltip": "Click for more Information",
|
|
639
|
+
"url": "v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true"
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
]
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
],
|
|
646
|
+
"help": {
|
|
647
|
+
"url": "v2/keyword-lookup?keyword=scf-pic8-opamp-v2&redirect=true",
|
|
648
|
+
"tooltip": "Click here to open documentation."
|
|
649
|
+
}
|
|
650
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ProcessedExportInterface, Interface } from "./opa-output-parameters";
|
|
2
|
+
|
|
3
|
+
describe("The opamp_interface interface", () => {
|
|
4
|
+
it("doesn't explode", () => {
|
|
5
|
+
expect(Interface.getInterfaceId()).toBeDefined();
|
|
6
|
+
expect(Interface.createPrototypeImport()).toBeDefined();
|
|
7
|
+
expect(Interface.createPrototypeExport()).toBeDefined();
|
|
8
|
+
expect(Interface.createMock()).toBeDefined();
|
|
9
|
+
});
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
export const createMock = (): ProcessedExportInterface => {
|
|
13
|
+
return {
|
|
14
|
+
interfaceId: Interface.getInterfaceId(),
|
|
15
|
+
payload: {},
|
|
16
|
+
args: {
|
|
17
|
+
requestId: {
|
|
18
|
+
customName: "MyModule",
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
};
|