@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,1995 @@
|
|
|
1
|
+
var autoCreator =
|
|
2
|
+
/******/ (function(modules) { // webpackBootstrap
|
|
3
|
+
/******/ // The module cache
|
|
4
|
+
/******/ var installedModules = {};
|
|
5
|
+
/******/
|
|
6
|
+
/******/ // The require function
|
|
7
|
+
/******/ function __webpack_require__(moduleId) {
|
|
8
|
+
/******/
|
|
9
|
+
/******/ // Check if module is in cache
|
|
10
|
+
/******/ if(installedModules[moduleId]) {
|
|
11
|
+
/******/ return installedModules[moduleId].exports;
|
|
12
|
+
/******/ }
|
|
13
|
+
/******/ // Create a new module (and put it into the cache)
|
|
14
|
+
/******/ var module = installedModules[moduleId] = {
|
|
15
|
+
/******/ i: moduleId,
|
|
16
|
+
/******/ l: false,
|
|
17
|
+
/******/ exports: {}
|
|
18
|
+
/******/ };
|
|
19
|
+
/******/
|
|
20
|
+
/******/ // Execute the module function
|
|
21
|
+
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
22
|
+
/******/
|
|
23
|
+
/******/ // Flag the module as loaded
|
|
24
|
+
/******/ module.l = true;
|
|
25
|
+
/******/
|
|
26
|
+
/******/ // Return the exports of the module
|
|
27
|
+
/******/ return module.exports;
|
|
28
|
+
/******/ }
|
|
29
|
+
/******/
|
|
30
|
+
/******/
|
|
31
|
+
/******/ // expose the modules object (__webpack_modules__)
|
|
32
|
+
/******/ __webpack_require__.m = modules;
|
|
33
|
+
/******/
|
|
34
|
+
/******/ // expose the module cache
|
|
35
|
+
/******/ __webpack_require__.c = installedModules;
|
|
36
|
+
/******/
|
|
37
|
+
/******/ // define getter function for harmony exports
|
|
38
|
+
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
39
|
+
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
40
|
+
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
41
|
+
/******/ }
|
|
42
|
+
/******/ };
|
|
43
|
+
/******/
|
|
44
|
+
/******/ // define __esModule on exports
|
|
45
|
+
/******/ __webpack_require__.r = function(exports) {
|
|
46
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
47
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
48
|
+
/******/ }
|
|
49
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
50
|
+
/******/ };
|
|
51
|
+
/******/
|
|
52
|
+
/******/ // create a fake namespace object
|
|
53
|
+
/******/ // mode & 1: value is a module id, require it
|
|
54
|
+
/******/ // mode & 2: merge all properties of value into the ns
|
|
55
|
+
/******/ // mode & 4: return value when already ns object
|
|
56
|
+
/******/ // mode & 8|1: behave like require
|
|
57
|
+
/******/ __webpack_require__.t = function(value, mode) {
|
|
58
|
+
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
59
|
+
/******/ if(mode & 8) return value;
|
|
60
|
+
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
61
|
+
/******/ var ns = Object.create(null);
|
|
62
|
+
/******/ __webpack_require__.r(ns);
|
|
63
|
+
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
64
|
+
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
65
|
+
/******/ return ns;
|
|
66
|
+
/******/ };
|
|
67
|
+
/******/
|
|
68
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
69
|
+
/******/ __webpack_require__.n = function(module) {
|
|
70
|
+
/******/ var getter = module && module.__esModule ?
|
|
71
|
+
/******/ function getDefault() { return module['default']; } :
|
|
72
|
+
/******/ function getModuleExports() { return module; };
|
|
73
|
+
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
74
|
+
/******/ return getter;
|
|
75
|
+
/******/ };
|
|
76
|
+
/******/
|
|
77
|
+
/******/ // Object.prototype.hasOwnProperty.call
|
|
78
|
+
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
79
|
+
/******/
|
|
80
|
+
/******/ // __webpack_public_path__
|
|
81
|
+
/******/ __webpack_require__.p = "";
|
|
82
|
+
/******/
|
|
83
|
+
/******/
|
|
84
|
+
/******/ // Load entry module and return exports
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = "./generated_module/src/autoCreator.ts");
|
|
86
|
+
/******/ })
|
|
87
|
+
/************************************************************************/
|
|
88
|
+
/******/ ({
|
|
89
|
+
|
|
90
|
+
/***/ "./generated_module/src/autoCreator.ts":
|
|
91
|
+
/*!*********************************************!*\
|
|
92
|
+
!*** ./generated_module/src/autoCreator.ts ***!
|
|
93
|
+
\*********************************************/
|
|
94
|
+
/*! exports provided: getCreatorFunctions */
|
|
95
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
96
|
+
|
|
97
|
+
"use strict";
|
|
98
|
+
__webpack_require__.r(__webpack_exports__);
|
|
99
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCreatorFunctions", function() { return getCreatorFunctions; });
|
|
100
|
+
/* harmony import */ var _getUserData__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./getUserData */ "./generated_module/src/getUserData.ts");
|
|
101
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
102
|
+
|
|
103
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
104
|
+
|
|
105
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
var createAutoCreator = function createAutoCreator(getCreatorFunctions) {
|
|
110
|
+
return function () {
|
|
111
|
+
return _objectSpread({
|
|
112
|
+
getModuleConfig: _getUserData__WEBPACK_IMPORTED_MODULE_0__["getModuleConfigFromFile"]
|
|
113
|
+
}, getCreatorFunctions());
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
var getCreatorFunctions = createAutoCreator(_getUserData__WEBPACK_IMPORTED_MODULE_0__["getCreatorFunctions"]);
|
|
118
|
+
|
|
119
|
+
/***/ }),
|
|
120
|
+
|
|
121
|
+
/***/ "./generated_module/src/getUserData.ts":
|
|
122
|
+
/*!*********************************************!*\
|
|
123
|
+
!*** ./generated_module/src/getUserData.ts ***!
|
|
124
|
+
\*********************************************/
|
|
125
|
+
/*! exports provided: getCreatorFunctions, getDerivedData, getPinsDataFromFile, getPinsLogicFromFile, getModuleConfigFromFile */
|
|
126
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
127
|
+
|
|
128
|
+
"use strict";
|
|
129
|
+
__webpack_require__.r(__webpack_exports__);
|
|
130
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPinsDataFromFile", function() { return getPinsDataFromFile; });
|
|
131
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPinsLogicFromFile", function() { return getPinsLogicFromFile; });
|
|
132
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getModuleConfigFromFile", function() { return getModuleConfigFromFile; });
|
|
133
|
+
/* harmony import */ var _src_CreatorFunctions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../src/CreatorFunctions */ "./src/CreatorFunctions.ts");
|
|
134
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getCreatorFunctions", function() { return _src_CreatorFunctions__WEBPACK_IMPORTED_MODULE_0__["getCreatorFunctions"]; });
|
|
135
|
+
|
|
136
|
+
/* harmony import */ var _src_DerivedData__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../src/DerivedData */ "./src/DerivedData.ts");
|
|
137
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getDerivedData", function() { return _src_DerivedData__WEBPACK_IMPORTED_MODULE_1__["getDerivedData"]; });
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
var getPinsDataFromFile = function getPinsDataFromFile() {
|
|
142
|
+
try {
|
|
143
|
+
return __webpack_require__(/*! ../../src/pinsdata.json */ "./src/pinsdata.json");
|
|
144
|
+
} catch (_unused) {
|
|
145
|
+
return undefined;
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
var getPinsLogicFromFile = function getPinsLogicFromFile() {
|
|
149
|
+
try {
|
|
150
|
+
return __webpack_require__(/*! ../../src/PinsLogic.ts */ "./src/PinsLogic.ts");
|
|
151
|
+
} catch (_unused2) {
|
|
152
|
+
return undefined;
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
var getModuleConfigFromFile = function getModuleConfigFromFile() {
|
|
156
|
+
try {
|
|
157
|
+
return __webpack_require__(/*! ../../src/moduleConfig.json */ "./src/moduleConfig.json");
|
|
158
|
+
} catch (_unused3) {
|
|
159
|
+
return undefined;
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
/***/ }),
|
|
164
|
+
|
|
165
|
+
/***/ "./generated_module/src/pins/PCPHelper.ts":
|
|
166
|
+
/*!************************************************!*\
|
|
167
|
+
!*** ./generated_module/src/pins/PCPHelper.ts ***!
|
|
168
|
+
\************************************************/
|
|
169
|
+
/*! exports provided: getPinsData, getPinsLogic */
|
|
170
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
171
|
+
|
|
172
|
+
"use strict";
|
|
173
|
+
__webpack_require__.r(__webpack_exports__);
|
|
174
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPinsData", function() { return getPinsData; });
|
|
175
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPinsLogic", function() { return getPinsLogic; });
|
|
176
|
+
/* harmony import */ var _getUserData__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../getUserData */ "./generated_module/src/getUserData.ts");
|
|
177
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
178
|
+
|
|
179
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
180
|
+
|
|
181
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
var mockPinsLogic = function mockPinsLogic(getPinsData) {
|
|
186
|
+
var getCompletePinData = function getCompletePinData(appModel) {
|
|
187
|
+
return {};
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
var getRowData = function getRowData(appModel, rowData) {
|
|
191
|
+
return rowData;
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
return {
|
|
195
|
+
getCompletePinData: getCompletePinData,
|
|
196
|
+
getRowData: getRowData,
|
|
197
|
+
getPinsData: getPinsData
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
var getPinsData = function getPinsData() {
|
|
202
|
+
var _getPinsDataFromFile;
|
|
203
|
+
|
|
204
|
+
return (_getPinsDataFromFile = Object(_getUserData__WEBPACK_IMPORTED_MODULE_0__["getPinsDataFromFile"])()) !== null && _getPinsDataFromFile !== void 0 ? _getPinsDataFromFile : {
|
|
205
|
+
rows: []
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
var getPinsLogic = function getPinsLogic() {
|
|
209
|
+
var pinsLogic = Object(_getUserData__WEBPACK_IMPORTED_MODULE_0__["getPinsLogicFromFile"])();
|
|
210
|
+
|
|
211
|
+
if (pinsLogic) {
|
|
212
|
+
return _objectSpread(_objectSpread({}, pinsLogic), {}, {
|
|
213
|
+
getPinsData: getPinsData
|
|
214
|
+
});
|
|
215
|
+
} else {
|
|
216
|
+
return mockPinsLogic(getPinsData);
|
|
217
|
+
}
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
/***/ }),
|
|
221
|
+
|
|
222
|
+
/***/ "./node_modules/@microchip/pin-standard/lib/index.js":
|
|
223
|
+
/*!***********************************************************!*\
|
|
224
|
+
!*** ./node_modules/@microchip/pin-standard/lib/index.js ***!
|
|
225
|
+
\***********************************************************/
|
|
226
|
+
/*! no static exports found */
|
|
227
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
228
|
+
|
|
229
|
+
"use strict";
|
|
230
|
+
|
|
231
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
232
|
+
var pin_standard_1 = __webpack_require__(/*! ./pin-standard */ "./node_modules/@microchip/pin-standard/lib/pin-standard.js");
|
|
233
|
+
exports.pin_standard = pin_standard_1.pin_standard;
|
|
234
|
+
exports.pin_state = pin_standard_1.pin_state;
|
|
235
|
+
exports.direction = pin_standard_1.direction;
|
|
236
|
+
exports.behaviour = pin_standard_1.behaviour;
|
|
237
|
+
exports.data_schema = pin_standard_1.data_schema;
|
|
238
|
+
exports.pin_attribs_enum = pin_standard_1.pin_attribs_enum;
|
|
239
|
+
exports.actiontype = pin_standard_1.actiontype;
|
|
240
|
+
exports.QueryAdapterKey = pin_standard_1.QueryAdapterKey;
|
|
241
|
+
//# sourceMappingURL=index.js.map
|
|
242
|
+
|
|
243
|
+
/***/ }),
|
|
244
|
+
|
|
245
|
+
/***/ "./node_modules/@microchip/pin-standard/lib/pin-standard.js":
|
|
246
|
+
/*!******************************************************************!*\
|
|
247
|
+
!*** ./node_modules/@microchip/pin-standard/lib/pin-standard.js ***!
|
|
248
|
+
\******************************************************************/
|
|
249
|
+
/*! no static exports found */
|
|
250
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
251
|
+
|
|
252
|
+
"use strict";
|
|
253
|
+
|
|
254
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
255
|
+
exports.pin_standard = function () {
|
|
256
|
+
return {
|
|
257
|
+
interfaceId: {
|
|
258
|
+
name: "pin-standard",
|
|
259
|
+
version: "0.1.0",
|
|
260
|
+
},
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
var QueryAdapterKey;
|
|
264
|
+
(function (QueryAdapterKey) {
|
|
265
|
+
QueryAdapterKey["ALLPINS"] = "allpins";
|
|
266
|
+
QueryAdapterKey["ALLPINS_FOR_ATTRIBS"] = "allpins_for_attribs";
|
|
267
|
+
QueryAdapterKey["PPS"] = "pps";
|
|
268
|
+
QueryAdapterKey["PORTMUX"] = "portmux";
|
|
269
|
+
QueryAdapterKey["HASPPS"] = "hasPPS";
|
|
270
|
+
})(QueryAdapterKey = exports.QueryAdapterKey || (exports.QueryAdapterKey = {}));
|
|
271
|
+
var pin_state;
|
|
272
|
+
(function (pin_state) {
|
|
273
|
+
pin_state["EMPTY"] = "E";
|
|
274
|
+
pin_state["LOCKED"] = "L";
|
|
275
|
+
pin_state["UNLOCK"] = "UL";
|
|
276
|
+
pin_state["DiSABLE_LOCK"] = "DL";
|
|
277
|
+
pin_state["UNLOCKED_DISABLED"] = "DUL";
|
|
278
|
+
pin_state["LOCKED_LINK"] = "LL";
|
|
279
|
+
pin_state["UNLOCKED_MUX"] = "MUL";
|
|
280
|
+
pin_state["LOCKED_CONFLICT"] = "CL";
|
|
281
|
+
})(pin_state = exports.pin_state || (exports.pin_state = {}));
|
|
282
|
+
var pin_interrupts_enum;
|
|
283
|
+
(function (pin_interrupts_enum) {
|
|
284
|
+
pin_interrupts_enum["INTDIS_BUFFEN"] = "INTDIS_BUFFEN";
|
|
285
|
+
pin_interrupts_enum["BOTH_EDGES"] = "BOTH_EDGES";
|
|
286
|
+
pin_interrupts_enum["RISING_EDGE"] = "RISING_EDGE";
|
|
287
|
+
pin_interrupts_enum["FALLING_EDGE"] = "FALLING_EDGE";
|
|
288
|
+
pin_interrupts_enum["NONE"] = "NONE";
|
|
289
|
+
pin_interrupts_enum["LOW_LEVEL"] = "LOW_LEVEL";
|
|
290
|
+
})(pin_interrupts_enum = exports.pin_interrupts_enum || (exports.pin_interrupts_enum = {}));
|
|
291
|
+
var pin_attribs_enum;
|
|
292
|
+
(function (pin_attribs_enum) {
|
|
293
|
+
pin_attribs_enum["aliasReEx"] = "aliasReEx";
|
|
294
|
+
pin_attribs_enum["cname"] = "cname";
|
|
295
|
+
pin_attribs_enum["high"] = "high";
|
|
296
|
+
pin_attribs_enum["inv"] = "inv";
|
|
297
|
+
pin_attribs_enum["wpu"] = "wpu";
|
|
298
|
+
pin_attribs_enum["wpd"] = "wpd";
|
|
299
|
+
pin_attribs_enum["od"] = "od";
|
|
300
|
+
pin_attribs_enum["analog"] = "analog";
|
|
301
|
+
pin_attribs_enum["ioc"] = "ioc";
|
|
302
|
+
pin_attribs_enum["intcallback"] = "intcallback";
|
|
303
|
+
pin_attribs_enum["alias"] = "alias";
|
|
304
|
+
})(pin_attribs_enum = exports.pin_attribs_enum || (exports.pin_attribs_enum = {}));
|
|
305
|
+
var actiontype;
|
|
306
|
+
(function (actiontype) {
|
|
307
|
+
actiontype["SETACTION"] = "SETACTION";
|
|
308
|
+
actiontype["ATTRIBACTION"] = "ATTRIBACTION";
|
|
309
|
+
})(actiontype = exports.actiontype || (exports.actiontype = {}));
|
|
310
|
+
var direction;
|
|
311
|
+
(function (direction) {
|
|
312
|
+
direction["output"] = "output";
|
|
313
|
+
direction["input"] = "input";
|
|
314
|
+
direction["bidirectional"] = "bidirectional";
|
|
315
|
+
})(direction = exports.direction || (exports.direction = {}));
|
|
316
|
+
var behaviour;
|
|
317
|
+
(function (behaviour) {
|
|
318
|
+
behaviour["LOCK_UNLOCK"] = "LOCK_UNLOCK";
|
|
319
|
+
behaviour["ALWAYS_LOCKED"] = "ALWAYS_LOCKED";
|
|
320
|
+
behaviour["SINGLE_PIN_MUX"] = "SINGLE_PIN_MUX";
|
|
321
|
+
behaviour["OPTIONAL_PIN_MUX"] = "OPTIONAL_PIN_MUX";
|
|
322
|
+
behaviour["PPS"] = "PPS";
|
|
323
|
+
behaviour["PORTMUX"] = "PORTMUX";
|
|
324
|
+
behaviour["EXCLUSIVE_LOCK"] = "EXCLUSIVE_LOCK";
|
|
325
|
+
behaviour["LOCKED_DISABLED"] = "LOCKED_DISABLED";
|
|
326
|
+
})(behaviour = exports.behaviour || (exports.behaviour = {}));
|
|
327
|
+
//------------------------------------ schema ------------------------------------//
|
|
328
|
+
exports.data_schema = {
|
|
329
|
+
$schema: "http://json-schema.org/draft-07/schema#",
|
|
330
|
+
$ref: "#/definitions/intf_data",
|
|
331
|
+
definitions: {
|
|
332
|
+
intf_data: {
|
|
333
|
+
type: "object",
|
|
334
|
+
properties: {
|
|
335
|
+
rows: {
|
|
336
|
+
type: "array",
|
|
337
|
+
items: {
|
|
338
|
+
$ref: "#/definitions/pin_row",
|
|
339
|
+
},
|
|
340
|
+
},
|
|
341
|
+
},
|
|
342
|
+
required: ["rows"],
|
|
343
|
+
additionalProperties: false,
|
|
344
|
+
},
|
|
345
|
+
pin_row: {
|
|
346
|
+
type: "object",
|
|
347
|
+
properties: {
|
|
348
|
+
name: {
|
|
349
|
+
type: "string",
|
|
350
|
+
},
|
|
351
|
+
module: {
|
|
352
|
+
type: "string",
|
|
353
|
+
},
|
|
354
|
+
function: {
|
|
355
|
+
type: "string",
|
|
356
|
+
},
|
|
357
|
+
direction: {
|
|
358
|
+
$ref: "#/definitions/direction",
|
|
359
|
+
},
|
|
360
|
+
filter: {
|
|
361
|
+
$ref: "#/definitions/filter",
|
|
362
|
+
},
|
|
363
|
+
behaviour: {
|
|
364
|
+
$ref: "#/definitions/behaviour",
|
|
365
|
+
},
|
|
366
|
+
behaviourMeta: {
|
|
367
|
+
$ref: "#/definitions/behaviourMeta",
|
|
368
|
+
},
|
|
369
|
+
attribs: {
|
|
370
|
+
type: "array",
|
|
371
|
+
items: {
|
|
372
|
+
$ref: "#/definitions/pin_attribs",
|
|
373
|
+
},
|
|
374
|
+
},
|
|
375
|
+
groupsdata: {
|
|
376
|
+
$ref: "#/definitions/pingroups_data",
|
|
377
|
+
},
|
|
378
|
+
actions: {},
|
|
379
|
+
},
|
|
380
|
+
required: ["name", "module", "function", "direction", "filter", "behaviour"],
|
|
381
|
+
additionalProperties: false,
|
|
382
|
+
},
|
|
383
|
+
direction: {
|
|
384
|
+
type: "string",
|
|
385
|
+
enum: ["output", "input", "bidirectional"],
|
|
386
|
+
},
|
|
387
|
+
filter: {
|
|
388
|
+
type: "object",
|
|
389
|
+
properties: {
|
|
390
|
+
module: {
|
|
391
|
+
type: "string",
|
|
392
|
+
},
|
|
393
|
+
aliasReEx: {
|
|
394
|
+
type: "string",
|
|
395
|
+
},
|
|
396
|
+
},
|
|
397
|
+
required: ["module", "aliasReEx"],
|
|
398
|
+
additionalProperties: false,
|
|
399
|
+
},
|
|
400
|
+
behaviour: {
|
|
401
|
+
type: "string",
|
|
402
|
+
enum: [
|
|
403
|
+
"LOCK_UNLOCK",
|
|
404
|
+
"ALWAYS_LOCKED",
|
|
405
|
+
"SINGLE_PIN_MUX",
|
|
406
|
+
"OPTIONAL_PIN_MUX",
|
|
407
|
+
"PPS",
|
|
408
|
+
"PORTMUX",
|
|
409
|
+
"EXCLUSIVE_LOCK",
|
|
410
|
+
"LOCKED_DISABLED",
|
|
411
|
+
],
|
|
412
|
+
},
|
|
413
|
+
behaviourMeta: {
|
|
414
|
+
type: "object",
|
|
415
|
+
properties: {
|
|
416
|
+
lockPinRegEx: {
|
|
417
|
+
type: "string",
|
|
418
|
+
},
|
|
419
|
+
},
|
|
420
|
+
required: ["lockPinRegEx"],
|
|
421
|
+
additionalProperties: false,
|
|
422
|
+
},
|
|
423
|
+
pin_attribs: {
|
|
424
|
+
type: "object",
|
|
425
|
+
properties: {
|
|
426
|
+
aliasReEx: {
|
|
427
|
+
type: "string",
|
|
428
|
+
},
|
|
429
|
+
cname: {
|
|
430
|
+
type: "string",
|
|
431
|
+
},
|
|
432
|
+
high: {
|
|
433
|
+
type: "boolean",
|
|
434
|
+
},
|
|
435
|
+
inv: {
|
|
436
|
+
type: "boolean",
|
|
437
|
+
},
|
|
438
|
+
wpu: {
|
|
439
|
+
type: "boolean",
|
|
440
|
+
},
|
|
441
|
+
wpd: {
|
|
442
|
+
type: "boolean",
|
|
443
|
+
},
|
|
444
|
+
od: {
|
|
445
|
+
type: "boolean",
|
|
446
|
+
},
|
|
447
|
+
analog: {
|
|
448
|
+
type: "boolean",
|
|
449
|
+
},
|
|
450
|
+
ioc: {
|
|
451
|
+
$ref: "#/definitions/pin_interrupts_enum",
|
|
452
|
+
},
|
|
453
|
+
bidirection_out: {
|
|
454
|
+
type: "boolean",
|
|
455
|
+
},
|
|
456
|
+
},
|
|
457
|
+
required: ["aliasReEx"],
|
|
458
|
+
additionalProperties: false,
|
|
459
|
+
},
|
|
460
|
+
pin_interrupts_enum: {
|
|
461
|
+
type: "string",
|
|
462
|
+
enum: [
|
|
463
|
+
"INTDIS_BUFFEN",
|
|
464
|
+
"BOTH_EDGES",
|
|
465
|
+
"RISING_EDGE",
|
|
466
|
+
"FALLING_EDGE",
|
|
467
|
+
"NONE",
|
|
468
|
+
"LOW_LEVEL",
|
|
469
|
+
],
|
|
470
|
+
},
|
|
471
|
+
pingroups_data: {
|
|
472
|
+
type: "object",
|
|
473
|
+
properties: {
|
|
474
|
+
groups: {
|
|
475
|
+
type: "array",
|
|
476
|
+
items: {
|
|
477
|
+
$ref: "#/definitions/pins_group",
|
|
478
|
+
},
|
|
479
|
+
},
|
|
480
|
+
},
|
|
481
|
+
required: ["groups"],
|
|
482
|
+
additionalProperties: false,
|
|
483
|
+
},
|
|
484
|
+
pins_group: {
|
|
485
|
+
type: "object",
|
|
486
|
+
properties: {
|
|
487
|
+
name: {
|
|
488
|
+
type: "string",
|
|
489
|
+
},
|
|
490
|
+
filter: {
|
|
491
|
+
$ref: "#/definitions/grpfilter",
|
|
492
|
+
},
|
|
493
|
+
datapath: {
|
|
494
|
+
type: "string",
|
|
495
|
+
},
|
|
496
|
+
},
|
|
497
|
+
required: ["name", "filter"],
|
|
498
|
+
additionalProperties: false,
|
|
499
|
+
},
|
|
500
|
+
grpfilter: {
|
|
501
|
+
type: "object",
|
|
502
|
+
properties: {
|
|
503
|
+
aliasReEx: {
|
|
504
|
+
type: "string",
|
|
505
|
+
},
|
|
506
|
+
},
|
|
507
|
+
required: ["aliasReEx"],
|
|
508
|
+
additionalProperties: false,
|
|
509
|
+
},
|
|
510
|
+
},
|
|
511
|
+
};
|
|
512
|
+
//# sourceMappingURL=pin-standard.js.map
|
|
513
|
+
|
|
514
|
+
/***/ }),
|
|
515
|
+
|
|
516
|
+
/***/ "./node_modules/@microchip/scf-common/lib/Processor.js":
|
|
517
|
+
/*!*************************************************************!*\
|
|
518
|
+
!*** ./node_modules/@microchip/scf-common/lib/Processor.js ***!
|
|
519
|
+
\*************************************************************/
|
|
520
|
+
/*! no static exports found */
|
|
521
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
522
|
+
|
|
523
|
+
"use strict";
|
|
524
|
+
|
|
525
|
+
var __assign = (this && this.__assign) || function () {
|
|
526
|
+
__assign = Object.assign || function(t) {
|
|
527
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
528
|
+
s = arguments[i];
|
|
529
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
530
|
+
t[p] = s[p];
|
|
531
|
+
}
|
|
532
|
+
return t;
|
|
533
|
+
};
|
|
534
|
+
return __assign.apply(this, arguments);
|
|
535
|
+
};
|
|
536
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
537
|
+
exports.mapOptionLabels = exports.filterOptions = exports.isSingleton = exports.isUnassigned = exports.isAssigned = exports.hasOptions = exports.AlertTypes = void 0;
|
|
538
|
+
var AlertTypes;
|
|
539
|
+
(function (AlertTypes) {
|
|
540
|
+
AlertTypes["Error"] = "error";
|
|
541
|
+
AlertTypes["Warning"] = "warning";
|
|
542
|
+
AlertTypes["Hint"] = "hint";
|
|
543
|
+
})(AlertTypes = exports.AlertTypes || (exports.AlertTypes = {}));
|
|
544
|
+
/**
|
|
545
|
+
* See User-Defined Type Guards in the Typescript Handbook on Advanced Types
|
|
546
|
+
* @see https://www.typescriptlang.org/docs/handbook/advanced-types.html
|
|
547
|
+
*/
|
|
548
|
+
function hasOptions(dep) {
|
|
549
|
+
return dep.options !== undefined;
|
|
550
|
+
}
|
|
551
|
+
exports.hasOptions = hasOptions;
|
|
552
|
+
/**
|
|
553
|
+
* See User-Defined Type Guards in the Typescript Handbook on Advanced Types
|
|
554
|
+
* @see https://www.typescriptlang.org/docs/handbook/advanced-types.html
|
|
555
|
+
*/
|
|
556
|
+
function isAssigned(dep) {
|
|
557
|
+
return typeof dep.handle !== "undefined";
|
|
558
|
+
}
|
|
559
|
+
exports.isAssigned = isAssigned;
|
|
560
|
+
/**
|
|
561
|
+
* See User-Defined Type Guards in the Typescript Handbook on Advanced Types
|
|
562
|
+
* @see https://www.typescriptlang.org/docs/handbook/advanced-types.html
|
|
563
|
+
*/
|
|
564
|
+
function isUnassigned(dep) {
|
|
565
|
+
return typeof dep.handle === "undefined";
|
|
566
|
+
}
|
|
567
|
+
exports.isUnassigned = isUnassigned;
|
|
568
|
+
/**
|
|
569
|
+
* Type guard function for SingletonExport
|
|
570
|
+
* See User-Defined Type Guards in the Typescript Handbook on Advanced Types
|
|
571
|
+
* @see https://www.typescriptlang.org/docs/handbook/advanced-types.html
|
|
572
|
+
* @param resource the export to check on being a singleton
|
|
573
|
+
* @deprecated No longer used. Replaced with dynamic singleton identification
|
|
574
|
+
* at runtime.
|
|
575
|
+
*/
|
|
576
|
+
function isSingleton(resource) {
|
|
577
|
+
return typeof resource.isSingleton !== "undefined" && resource.isSingleton;
|
|
578
|
+
}
|
|
579
|
+
exports.isSingleton = isSingleton;
|
|
580
|
+
/**
|
|
581
|
+
* Returns a copy of `populatedImport` with all options removed which
|
|
582
|
+
* cause `optionFilter` to return false.
|
|
583
|
+
*/
|
|
584
|
+
function filterOptions(populatedImport, optionFilter) {
|
|
585
|
+
if (populatedImport.options) {
|
|
586
|
+
return __assign(__assign({}, populatedImport), { options: populatedImport.options.filter(optionFilter) });
|
|
587
|
+
}
|
|
588
|
+
return populatedImport;
|
|
589
|
+
}
|
|
590
|
+
exports.filterOptions = filterOptions;
|
|
591
|
+
/**
|
|
592
|
+
* Returns a copy of `populatedImport` with the options' handle labels
|
|
593
|
+
* mapped according to `labelFactory`.
|
|
594
|
+
*/
|
|
595
|
+
function mapOptionLabels(populatedImport, labelFactory) {
|
|
596
|
+
if (populatedImport.options) {
|
|
597
|
+
return __assign(__assign({}, populatedImport), { options: populatedImport.options.map(function (option) {
|
|
598
|
+
return __assign(__assign({}, option), { handle: __assign(__assign({}, option.handle), { label: labelFactory(option) }) });
|
|
599
|
+
}) });
|
|
600
|
+
}
|
|
601
|
+
return populatedImport;
|
|
602
|
+
}
|
|
603
|
+
exports.mapOptionLabels = mapOptionLabels;
|
|
604
|
+
//# sourceMappingURL=Processor.js.map
|
|
605
|
+
|
|
606
|
+
/***/ }),
|
|
607
|
+
|
|
608
|
+
/***/ "./node_modules/@microchip/scf-device/lib/Setting.js":
|
|
609
|
+
/*!***********************************************************!*\
|
|
610
|
+
!*** ./node_modules/@microchip/scf-device/lib/Setting.js ***!
|
|
611
|
+
\***********************************************************/
|
|
612
|
+
/*! no static exports found */
|
|
613
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
614
|
+
|
|
615
|
+
"use strict";
|
|
616
|
+
|
|
617
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
618
|
+
exports.getOptionDescriptions = exports.getOptionNames = exports.getOptionByDescription = exports.getOptionByName = exports.getOptionByAlias = exports.getBitRange = exports.getBitLabel = void 0;
|
|
619
|
+
var Arrays_1 = __webpack_require__(/*! ./util/Arrays */ "./node_modules/@microchip/scf-device/lib/util/Arrays.js");
|
|
620
|
+
/**
|
|
621
|
+
* Converts a hexadecimal string to binary.
|
|
622
|
+
* Any leading zeros are removed from the returned string.
|
|
623
|
+
*/
|
|
624
|
+
var hexToBinary = function (hex) {
|
|
625
|
+
return parseInt(hex, 16).toString(2);
|
|
626
|
+
};
|
|
627
|
+
/**
|
|
628
|
+
* Returns a string of the corresponding bit position(s).
|
|
629
|
+
*/
|
|
630
|
+
var getBitLabel = function (setting) {
|
|
631
|
+
if (setting.mask === undefined) {
|
|
632
|
+
return undefined;
|
|
633
|
+
}
|
|
634
|
+
var bitRange = (0, exports.getBitRange)(setting);
|
|
635
|
+
if (!bitRange)
|
|
636
|
+
return undefined;
|
|
637
|
+
if (bitRange.high === bitRange.low) {
|
|
638
|
+
return "bit ".concat(bitRange.high);
|
|
639
|
+
}
|
|
640
|
+
return "bit ".concat(bitRange.high, "-").concat(bitRange.low);
|
|
641
|
+
};
|
|
642
|
+
exports.getBitLabel = getBitLabel;
|
|
643
|
+
/**
|
|
644
|
+
* Converts the hexadecimal mask provided within the register setting
|
|
645
|
+
* and returns an interface containing the corresponding low and high bit positions.
|
|
646
|
+
*/
|
|
647
|
+
var getBitRange = function (setting) {
|
|
648
|
+
if (!setting.mask)
|
|
649
|
+
return undefined;
|
|
650
|
+
var processedHex = hexToBinary(setting.mask);
|
|
651
|
+
return {
|
|
652
|
+
high: processedHex.length - 1,
|
|
653
|
+
low: getBitRangeLow(processedHex),
|
|
654
|
+
};
|
|
655
|
+
};
|
|
656
|
+
exports.getBitRange = getBitRange;
|
|
657
|
+
var getOptionByAlias = function (alias, setting) {
|
|
658
|
+
var _a;
|
|
659
|
+
return (0, Arrays_1.find)((_a = setting === null || setting === void 0 ? void 0 : setting.options) !== null && _a !== void 0 ? _a : [], function (option) { return option.alias == alias; });
|
|
660
|
+
};
|
|
661
|
+
exports.getOptionByAlias = getOptionByAlias;
|
|
662
|
+
var getOptionByName = function (name, setting) {
|
|
663
|
+
var _a;
|
|
664
|
+
return (0, Arrays_1.find)((_a = setting === null || setting === void 0 ? void 0 : setting.options) !== null && _a !== void 0 ? _a : [], function (option) { return option.name == name; });
|
|
665
|
+
};
|
|
666
|
+
exports.getOptionByName = getOptionByName;
|
|
667
|
+
var getOptionByDescription = function (description, setting) {
|
|
668
|
+
var _a;
|
|
669
|
+
return (0, Arrays_1.find)((_a = setting.options) !== null && _a !== void 0 ? _a : [], function (option) { return option.description == description; });
|
|
670
|
+
};
|
|
671
|
+
exports.getOptionByDescription = getOptionByDescription;
|
|
672
|
+
var getOptionNames = function (setting) {
|
|
673
|
+
var _a;
|
|
674
|
+
return (0, Arrays_1.map)((_a = setting.options) !== null && _a !== void 0 ? _a : [], function (option) { return option.name; });
|
|
675
|
+
};
|
|
676
|
+
exports.getOptionNames = getOptionNames;
|
|
677
|
+
var getOptionDescriptions = function (setting) {
|
|
678
|
+
var _a;
|
|
679
|
+
return (0, Arrays_1.map)((_a = setting.options) !== null && _a !== void 0 ? _a : [], function (option) { return option.description; });
|
|
680
|
+
};
|
|
681
|
+
exports.getOptionDescriptions = getOptionDescriptions;
|
|
682
|
+
function getBitRangeLow(processedHex) {
|
|
683
|
+
if (processedHex.charAt(1) === "1") {
|
|
684
|
+
var index = 1;
|
|
685
|
+
while (processedHex.charAt(index) === "1") {
|
|
686
|
+
index++;
|
|
687
|
+
}
|
|
688
|
+
return processedHex.length - index;
|
|
689
|
+
}
|
|
690
|
+
else {
|
|
691
|
+
return processedHex.length - 1;
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
//# sourceMappingURL=Setting.js.map
|
|
695
|
+
|
|
696
|
+
/***/ }),
|
|
697
|
+
|
|
698
|
+
/***/ "./node_modules/@microchip/scf-device/lib/util/Arrays.js":
|
|
699
|
+
/*!***************************************************************!*\
|
|
700
|
+
!*** ./node_modules/@microchip/scf-device/lib/util/Arrays.js ***!
|
|
701
|
+
\***************************************************************/
|
|
702
|
+
/*! no static exports found */
|
|
703
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
704
|
+
|
|
705
|
+
"use strict";
|
|
706
|
+
|
|
707
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
708
|
+
exports.values = exports.getKeys = exports.find = exports.filter = exports.map = void 0;
|
|
709
|
+
var map = function (arr, callback) {
|
|
710
|
+
var result = [];
|
|
711
|
+
arr.forEach(function (value, index) {
|
|
712
|
+
result[index] = callback(value);
|
|
713
|
+
});
|
|
714
|
+
return result;
|
|
715
|
+
};
|
|
716
|
+
exports.map = map;
|
|
717
|
+
var filter = function (arr, callback) {
|
|
718
|
+
var result = [];
|
|
719
|
+
arr.forEach(function (value) {
|
|
720
|
+
if (callback(value)) {
|
|
721
|
+
result.push(value);
|
|
722
|
+
}
|
|
723
|
+
});
|
|
724
|
+
return result;
|
|
725
|
+
};
|
|
726
|
+
exports.filter = filter;
|
|
727
|
+
/**
|
|
728
|
+
* Iterates over elements of the array, returning the first element that the predicate returns truthy for.
|
|
729
|
+
*/
|
|
730
|
+
var find = function (arr, callback) {
|
|
731
|
+
for (var i = 0; i < arr.length; i++) {
|
|
732
|
+
if (callback(arr[i])) {
|
|
733
|
+
return arr[i];
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
return undefined;
|
|
737
|
+
};
|
|
738
|
+
exports.find = find;
|
|
739
|
+
/** @returns the non-prototype keys of the given object */
|
|
740
|
+
var getKeys = function (obj) {
|
|
741
|
+
if (!obj)
|
|
742
|
+
return undefined;
|
|
743
|
+
return Object.getOwnPropertyNames(obj);
|
|
744
|
+
};
|
|
745
|
+
exports.getKeys = getKeys;
|
|
746
|
+
var values = function (obj) {
|
|
747
|
+
var _a;
|
|
748
|
+
if (!obj)
|
|
749
|
+
return undefined;
|
|
750
|
+
return (_a = (0, exports.getKeys)(obj)) === null || _a === void 0 ? void 0 : _a.map(function (key) { return obj[key]; });
|
|
751
|
+
};
|
|
752
|
+
exports.values = values;
|
|
753
|
+
//# sourceMappingURL=Arrays.js.map
|
|
754
|
+
|
|
755
|
+
/***/ }),
|
|
756
|
+
|
|
757
|
+
/***/ "./node_modules/@microchip/scf-validators/lib/Validators/CFunctionValidator.js":
|
|
758
|
+
/*!*************************************************************************************!*\
|
|
759
|
+
!*** ./node_modules/@microchip/scf-validators/lib/Validators/CFunctionValidator.js ***!
|
|
760
|
+
\*************************************************************************************/
|
|
761
|
+
/*! no static exports found */
|
|
762
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
763
|
+
|
|
764
|
+
"use strict";
|
|
765
|
+
|
|
766
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
767
|
+
exports.getCFunctionValidator = void 0;
|
|
768
|
+
var cKeywords = [
|
|
769
|
+
"auto",
|
|
770
|
+
"const",
|
|
771
|
+
"double",
|
|
772
|
+
"float",
|
|
773
|
+
"int",
|
|
774
|
+
"short",
|
|
775
|
+
"struct",
|
|
776
|
+
"unsigned",
|
|
777
|
+
"break",
|
|
778
|
+
"continue",
|
|
779
|
+
"else",
|
|
780
|
+
"for",
|
|
781
|
+
"long",
|
|
782
|
+
"signed",
|
|
783
|
+
"switch",
|
|
784
|
+
"void",
|
|
785
|
+
"case",
|
|
786
|
+
"default",
|
|
787
|
+
"enum",
|
|
788
|
+
"goto",
|
|
789
|
+
"register",
|
|
790
|
+
"sizeof",
|
|
791
|
+
"typedef",
|
|
792
|
+
"volatile",
|
|
793
|
+
"char",
|
|
794
|
+
"do",
|
|
795
|
+
"extern",
|
|
796
|
+
"if",
|
|
797
|
+
"return",
|
|
798
|
+
"static",
|
|
799
|
+
"union",
|
|
800
|
+
"while",
|
|
801
|
+
];
|
|
802
|
+
var functionPattern = "(?=^([A-Za-z]\\S|_)\\w+$)";
|
|
803
|
+
var errorMessage = "Must be valid C function syntax.";
|
|
804
|
+
var doNotMatchKeywordsRegex = function () {
|
|
805
|
+
return "(^(?!" + cKeywords.join("|") + ")).*";
|
|
806
|
+
};
|
|
807
|
+
var result = doNotMatchKeywordsRegex();
|
|
808
|
+
var pattern = {
|
|
809
|
+
pattern: functionPattern + result,
|
|
810
|
+
};
|
|
811
|
+
exports.getCFunctionValidator = function () { return ({
|
|
812
|
+
getRjsfValidation: function () { return pattern; },
|
|
813
|
+
getCustomErrorMessage: function () { return errorMessage; },
|
|
814
|
+
getValidation: function () { return ({
|
|
815
|
+
name: "pattern",
|
|
816
|
+
message: exports.getCFunctionValidator().getCustomErrorMessage(),
|
|
817
|
+
}); },
|
|
818
|
+
}); };
|
|
819
|
+
|
|
820
|
+
|
|
821
|
+
/***/ }),
|
|
822
|
+
|
|
823
|
+
/***/ "./node_modules/@microchip/scf-validators/lib/Validators/HeaderPathValidator.js":
|
|
824
|
+
/*!**************************************************************************************!*\
|
|
825
|
+
!*** ./node_modules/@microchip/scf-validators/lib/Validators/HeaderPathValidator.js ***!
|
|
826
|
+
\**************************************************************************************/
|
|
827
|
+
/*! no static exports found */
|
|
828
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
829
|
+
|
|
830
|
+
"use strict";
|
|
831
|
+
|
|
832
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
833
|
+
exports.getHeaderPathValidator = void 0;
|
|
834
|
+
//Matches file paths to any valid format. Matches both "\" and "/" as valid separators in file path.
|
|
835
|
+
//Extension ("[h]+") checks specifically for '.h' and can be extende to any if required.
|
|
836
|
+
//Does NOT match relative file paths.
|
|
837
|
+
var pathRegex = "^(([a-zA-Z]:)|((?:\\\\|.\\/?){1,2}\\w+)\\$?)((\\\\|\\/)(\\w[\\w ]*.*))+\\.([h]+)$";
|
|
838
|
+
var errorMessage = "Must be valid header path.";
|
|
839
|
+
var pathPattern = {
|
|
840
|
+
pattern: pathRegex,
|
|
841
|
+
};
|
|
842
|
+
exports.getHeaderPathValidator = function () { return ({
|
|
843
|
+
getRjsfValidation: function () { return pathPattern; },
|
|
844
|
+
getCustomErrorMessage: function () { return errorMessage; },
|
|
845
|
+
getValidation: function () { return ({
|
|
846
|
+
name: "pattern",
|
|
847
|
+
message: exports.getHeaderPathValidator().getCustomErrorMessage(),
|
|
848
|
+
}); },
|
|
849
|
+
}); };
|
|
850
|
+
|
|
851
|
+
|
|
852
|
+
/***/ }),
|
|
853
|
+
|
|
854
|
+
/***/ "./node_modules/@microchip/scf-validators/lib/Validators/HexValidator.js":
|
|
855
|
+
/*!*******************************************************************************!*\
|
|
856
|
+
!*** ./node_modules/@microchip/scf-validators/lib/Validators/HexValidator.js ***!
|
|
857
|
+
\*******************************************************************************/
|
|
858
|
+
/*! no static exports found */
|
|
859
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
860
|
+
|
|
861
|
+
"use strict";
|
|
862
|
+
|
|
863
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
864
|
+
exports.getHexValidator = void 0;
|
|
865
|
+
var regexFormat = /^0x[\da-f]/i;
|
|
866
|
+
var ErrorMessages;
|
|
867
|
+
(function (ErrorMessages) {
|
|
868
|
+
ErrorMessages["Format"] = "Must be valid hexadecimal number";
|
|
869
|
+
ErrorMessages["Bounds"] = "Input must be ";
|
|
870
|
+
ErrorMessages["BoundsDefault"] = "Input must be within bounds";
|
|
871
|
+
})(ErrorMessages || (ErrorMessages = {}));
|
|
872
|
+
var format = {
|
|
873
|
+
hex: regexFormat,
|
|
874
|
+
};
|
|
875
|
+
exports.getHexValidator = function () { return ({
|
|
876
|
+
getRjsfValidation: function () { return format; },
|
|
877
|
+
getInvalidFormatErrorMessage: function () { return ErrorMessages.Format; },
|
|
878
|
+
getBoundsErrorMessage: function (comparison, value) {
|
|
879
|
+
return comparison && value
|
|
880
|
+
? ErrorMessages.Bounds + comparison + " " + value
|
|
881
|
+
: ErrorMessages.BoundsDefault;
|
|
882
|
+
},
|
|
883
|
+
getFormatValidation: function () { return ({
|
|
884
|
+
name: "format",
|
|
885
|
+
message: exports.getHexValidator().getInvalidFormatErrorMessage(),
|
|
886
|
+
}); },
|
|
887
|
+
getMinValidation: function (comparison, value) { return ({
|
|
888
|
+
name: "minimum",
|
|
889
|
+
message: "" + exports.getHexValidator().getBoundsErrorMessage(comparison, value),
|
|
890
|
+
}); },
|
|
891
|
+
getMaxValidation: function (comparison, value) { return ({
|
|
892
|
+
name: "maximum",
|
|
893
|
+
message: "" + exports.getHexValidator().getBoundsErrorMessage(comparison, value),
|
|
894
|
+
}); },
|
|
895
|
+
}); };
|
|
896
|
+
|
|
897
|
+
|
|
898
|
+
/***/ }),
|
|
899
|
+
|
|
900
|
+
/***/ "./node_modules/@microchip/scf-validators/lib/index.js":
|
|
901
|
+
/*!*************************************************************!*\
|
|
902
|
+
!*** ./node_modules/@microchip/scf-validators/lib/index.js ***!
|
|
903
|
+
\*************************************************************/
|
|
904
|
+
/*! no static exports found */
|
|
905
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
906
|
+
|
|
907
|
+
"use strict";
|
|
908
|
+
|
|
909
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
910
|
+
var CFunctionValidator_1 = __webpack_require__(/*! ./Validators/CFunctionValidator */ "./node_modules/@microchip/scf-validators/lib/Validators/CFunctionValidator.js");
|
|
911
|
+
Object.defineProperty(exports, "getCFunctionValidator", { enumerable: true, get: function () { return CFunctionValidator_1.getCFunctionValidator; } });
|
|
912
|
+
var HexValidator_1 = __webpack_require__(/*! ./Validators/HexValidator */ "./node_modules/@microchip/scf-validators/lib/Validators/HexValidator.js");
|
|
913
|
+
Object.defineProperty(exports, "getHexValidator", { enumerable: true, get: function () { return HexValidator_1.getHexValidator; } });
|
|
914
|
+
var HeaderPathValidator_1 = __webpack_require__(/*! ./Validators/HeaderPathValidator */ "./node_modules/@microchip/scf-validators/lib/Validators/HeaderPathValidator.js");
|
|
915
|
+
Object.defineProperty(exports, "getHeaderPathValidator", { enumerable: true, get: function () { return HeaderPathValidator_1.getHeaderPathValidator; } });
|
|
916
|
+
|
|
917
|
+
|
|
918
|
+
/***/ }),
|
|
919
|
+
|
|
920
|
+
/***/ "./src/Calculations.tsx":
|
|
921
|
+
/*!******************************!*\
|
|
922
|
+
!*** ./src/Calculations.tsx ***!
|
|
923
|
+
\******************************/
|
|
924
|
+
/*! exports provided: Calculations */
|
|
925
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
926
|
+
|
|
927
|
+
"use strict";
|
|
928
|
+
__webpack_require__.r(__webpack_exports__);
|
|
929
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Calculations", function() { return Calculations; });
|
|
930
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
931
|
+
|
|
932
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
933
|
+
|
|
934
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
935
|
+
|
|
936
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
937
|
+
|
|
938
|
+
var Calculations = /*#__PURE__*/_createClass(function Calculations() {
|
|
939
|
+
_classCallCheck(this, Calculations);
|
|
940
|
+
|
|
941
|
+
_defineProperty(this, "calcNonInvGain", function (resSelect) {
|
|
942
|
+
var _resSelect$match;
|
|
943
|
+
|
|
944
|
+
if (resSelect == undefined) return "0";
|
|
945
|
+
var regExp = /^([Rr]1 = [0-9]{0,2}[rR] and [Rr]2 = [0-9]{0,2}[Rr], [Rr]2\/[Rr]1 = )(.*)$/;
|
|
946
|
+
var ratio = (_resSelect$match = resSelect.match(regExp)) === null || _resSelect$match === void 0 ? void 0 : _resSelect$match[2];
|
|
947
|
+
if (ratio == undefined) return "0";
|
|
948
|
+
var gain = (parseFloat(ratio) + 1).toFixed(2);
|
|
949
|
+
return gain;
|
|
950
|
+
});
|
|
951
|
+
|
|
952
|
+
_defineProperty(this, "calcInvGain", function (resSelect) {
|
|
953
|
+
var _resSelect$match2;
|
|
954
|
+
|
|
955
|
+
if (resSelect == undefined) return "0";
|
|
956
|
+
var regExp = /^([Rr]1 = [0-9]{0,2}[rR] and [Rr]2 = [0-9]{0,2}[Rr], [Rr]2\/[Rr]1 = )(.*)$/;
|
|
957
|
+
var ratio = (_resSelect$match2 = resSelect.match(regExp)) === null || _resSelect$match2 === void 0 ? void 0 : _resSelect$match2[2];
|
|
958
|
+
if (ratio == undefined) return "0";
|
|
959
|
+
var constValue = "(Vref/Vin) - ";
|
|
960
|
+
var gain = (parseFloat(ratio) + 1).toFixed(2) + constValue + ratio;
|
|
961
|
+
return gain;
|
|
962
|
+
});
|
|
963
|
+
});
|
|
964
|
+
|
|
965
|
+
/***/ }),
|
|
966
|
+
|
|
967
|
+
/***/ "./src/CreatorFunctions.ts":
|
|
968
|
+
/*!*********************************!*\
|
|
969
|
+
!*** ./src/CreatorFunctions.ts ***!
|
|
970
|
+
\*********************************/
|
|
971
|
+
/*! exports provided: getCreatorFunctions */
|
|
972
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
973
|
+
|
|
974
|
+
"use strict";
|
|
975
|
+
__webpack_require__.r(__webpack_exports__);
|
|
976
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCreatorFunctions", function() { return getCreatorFunctions; });
|
|
977
|
+
var getCreatorFunctions = function getCreatorFunctions() {
|
|
978
|
+
return {
|
|
979
|
+
shouldImport: shouldImport,
|
|
980
|
+
getCreatorImportArgs: getCreatorImportArgs
|
|
981
|
+
};
|
|
982
|
+
};
|
|
983
|
+
|
|
984
|
+
var shouldImport = function shouldImport(importKey, state) {
|
|
985
|
+
var _state$main$overrideS, _state$main, _state$main$overrideS2, _hwOverrideSrc$match$, _hwOverrideSrc$match, _hwOverrideSrc$match$2, _hwOverrideSrc$match2;
|
|
986
|
+
|
|
987
|
+
var hwOverrideSrc = (_state$main$overrideS = state === null || state === void 0 ? void 0 : (_state$main = state.main) === null || _state$main === void 0 ? void 0 : (_state$main$overrideS2 = _state$main.overrideSel) === null || _state$main$overrideS2 === void 0 ? void 0 : _state$main$overrideS2.orsOpaors) !== null && _state$main$overrideS !== void 0 ? _state$main$overrideS : "LFINTOSC";
|
|
988
|
+
|
|
989
|
+
switch (importKey) {
|
|
990
|
+
case "TMR0":
|
|
991
|
+
return hwOverrideSrc.indexOf("TMR0") != -1 ? true : false;
|
|
992
|
+
|
|
993
|
+
case "TMR1":
|
|
994
|
+
return hwOverrideSrc.indexOf((_hwOverrideSrc$match$ = (_hwOverrideSrc$match = hwOverrideSrc.match(/(TMR[135])_OUT/)) === null || _hwOverrideSrc$match === void 0 ? void 0 : _hwOverrideSrc$match[1]) !== null && _hwOverrideSrc$match$ !== void 0 ? _hwOverrideSrc$match$ : "TMR1") != -1 ? true : false;
|
|
995
|
+
|
|
996
|
+
case "TMR2":
|
|
997
|
+
return hwOverrideSrc.indexOf((_hwOverrideSrc$match$2 = (_hwOverrideSrc$match2 = hwOverrideSrc.match(/(TMR[246])_OUT/)) === null || _hwOverrideSrc$match2 === void 0 ? void 0 : _hwOverrideSrc$match2[1]) !== null && _hwOverrideSrc$match$2 !== void 0 ? _hwOverrideSrc$match$2 : "TMR2") != -1 ? true : false;
|
|
998
|
+
|
|
999
|
+
case "CCP":
|
|
1000
|
+
return hwOverrideSrc.indexOf("CCP") != -1 ? true : false;
|
|
1001
|
+
|
|
1002
|
+
case "PWM":
|
|
1003
|
+
return hwOverrideSrc.indexOf("PWM") != -1 ? true : false;
|
|
1004
|
+
|
|
1005
|
+
case "NCO":
|
|
1006
|
+
return hwOverrideSrc.indexOf("NCO") != -1 ? true : false;
|
|
1007
|
+
|
|
1008
|
+
case "CMP":
|
|
1009
|
+
return hwOverrideSrc.indexOf("CM") != -1 ? true : false;
|
|
1010
|
+
|
|
1011
|
+
case "ZCD":
|
|
1012
|
+
return hwOverrideSrc.indexOf("ZCD") != -1 ? true : false;
|
|
1013
|
+
|
|
1014
|
+
case "CLC":
|
|
1015
|
+
return hwOverrideSrc.indexOf("CLC") != -1 ? true : false;
|
|
1016
|
+
|
|
1017
|
+
default:
|
|
1018
|
+
return true;
|
|
1019
|
+
}
|
|
1020
|
+
};
|
|
1021
|
+
|
|
1022
|
+
var getCreatorImportArgs = function getCreatorImportArgs(importKey, state) {
|
|
1023
|
+
return undefined;
|
|
1024
|
+
};
|
|
1025
|
+
|
|
1026
|
+
/***/ }),
|
|
1027
|
+
|
|
1028
|
+
/***/ "./src/DerivedData.ts":
|
|
1029
|
+
/*!****************************!*\
|
|
1030
|
+
!*** ./src/DerivedData.ts ***!
|
|
1031
|
+
\****************************/
|
|
1032
|
+
/*! exports provided: getDerivedData, EmptyDerivedData, MyDerivedData */
|
|
1033
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1034
|
+
|
|
1035
|
+
"use strict";
|
|
1036
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1037
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDerivedData", function() { return getDerivedData; });
|
|
1038
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmptyDerivedData", function() { return EmptyDerivedData; });
|
|
1039
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MyDerivedData", function() { return MyDerivedData; });
|
|
1040
|
+
/* harmony import */ var _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @microchip/scf-common/lib/Processor */ "./node_modules/@microchip/scf-common/lib/Processor.js");
|
|
1041
|
+
/* harmony import */ var _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__);
|
|
1042
|
+
/* harmony import */ var _Calculations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Calculations */ "./src/Calculations.tsx");
|
|
1043
|
+
/* harmony import */ var _GeneratorModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./GeneratorModel */ "./src/GeneratorModel.ts");
|
|
1044
|
+
/* harmony import */ var _microchip_pin_standard_lib_pin_standard__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @microchip/pin-standard/lib/pin-standard */ "./node_modules/@microchip/pin-standard/lib/pin-standard.js");
|
|
1045
|
+
/* harmony import */ var _microchip_pin_standard_lib_pin_standard__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_microchip_pin_standard_lib_pin_standard__WEBPACK_IMPORTED_MODULE_3__);
|
|
1046
|
+
/* harmony import */ var _PinsLogic__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./PinsLogic */ "./src/PinsLogic.ts");
|
|
1047
|
+
/* harmony import */ var _ImageDataURLs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ImageDataURLs */ "./src/ImageDataURLs.ts");
|
|
1048
|
+
/* harmony import */ var _generated_module_src_pins_PCPHelper__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../generated_module/src/pins/PCPHelper */ "./generated_module/src/pins/PCPHelper.ts");
|
|
1049
|
+
/* harmony import */ var _microchip_scf_validators_lib__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @microchip/scf-validators/lib */ "./node_modules/@microchip/scf-validators/lib/index.js");
|
|
1050
|
+
/* harmony import */ var _microchip_scf_validators_lib__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_microchip_scf_validators_lib__WEBPACK_IMPORTED_MODULE_7__);
|
|
1051
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
1052
|
+
|
|
1053
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
1054
|
+
|
|
1055
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1056
|
+
|
|
1057
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1058
|
+
|
|
1059
|
+
|
|
1060
|
+
|
|
1061
|
+
|
|
1062
|
+
|
|
1063
|
+
|
|
1064
|
+
|
|
1065
|
+
|
|
1066
|
+
|
|
1067
|
+
var getDerivedData = function getDerivedData(dataModel) {
|
|
1068
|
+
if (dataModel) {
|
|
1069
|
+
return new MyDerivedData(dataModel);
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
return new EmptyDerivedData();
|
|
1073
|
+
}; //This data will be used at the creator stage and relies on only the state
|
|
1074
|
+
|
|
1075
|
+
var EmptyDerivedData = /*#__PURE__*/_createClass(function EmptyDerivedData() {
|
|
1076
|
+
_classCallCheck(this, EmptyDerivedData);
|
|
1077
|
+
|
|
1078
|
+
_defineProperty(this, "getMyFunctions", function () {
|
|
1079
|
+
return {};
|
|
1080
|
+
});
|
|
1081
|
+
|
|
1082
|
+
_defineProperty(this, "getModel", function () {
|
|
1083
|
+
return undefined;
|
|
1084
|
+
});
|
|
1085
|
+
}); //This data will be used at the processor stage
|
|
1086
|
+
|
|
1087
|
+
var MyDerivedData = /*#__PURE__*/_createClass(function MyDerivedData(dataModel) {
|
|
1088
|
+
var _this = this;
|
|
1089
|
+
|
|
1090
|
+
_classCallCheck(this, MyDerivedData);
|
|
1091
|
+
|
|
1092
|
+
_defineProperty(this, "dataModel", void 0);
|
|
1093
|
+
|
|
1094
|
+
_defineProperty(this, "myTemplateData", void 0);
|
|
1095
|
+
|
|
1096
|
+
_defineProperty(this, "gainCalc", void 0);
|
|
1097
|
+
|
|
1098
|
+
_defineProperty(this, "cValidator", Object(_microchip_scf_validators_lib__WEBPACK_IMPORTED_MODULE_7__["getCFunctionValidator"])());
|
|
1099
|
+
|
|
1100
|
+
_defineProperty(this, "getGainCalculator", function () {
|
|
1101
|
+
if (!_this.gainCalc) {
|
|
1102
|
+
_this.gainCalc = new _Calculations__WEBPACK_IMPORTED_MODULE_1__["Calculations"]();
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
return _this.gainCalc;
|
|
1106
|
+
});
|
|
1107
|
+
|
|
1108
|
+
_defineProperty(this, "getMyFunctions", function () {
|
|
1109
|
+
var _ref;
|
|
1110
|
+
|
|
1111
|
+
return _ref = {
|
|
1112
|
+
getDynamicConfigData: _this.getDynamicConfigData,
|
|
1113
|
+
moduleName: _this.getModuleName,
|
|
1114
|
+
templateData: _this.getMyTemplateData,
|
|
1115
|
+
alerts: _this.getMyAlerts
|
|
1116
|
+
}, _defineProperty(_ref, "opa-output-parameters_payload", _this.getOpaInterfaceProcessedPayload), _defineProperty(_ref, "nonInvGain", _this.calcNonInvGain), _defineProperty(_ref, "invGain", _this.calcInvGain), _defineProperty(_ref, "initializer_system_results", _this.initializer_system_results), _defineProperty(_ref, "pin_standard_args", _this.getPinstandardArgs), _defineProperty(_ref, "doNotShow", function doNotShow() {
|
|
1117
|
+
return false;
|
|
1118
|
+
}), _defineProperty(_ref, "overrideDefaultValues", _this.overrideDefaultValue), _defineProperty(_ref, "customNameValidator", _this.customNameValidator), _defineProperty(_ref, "getCustomUiErrors", _this.getCustomUiErrors), _defineProperty(_ref, "isEnabled", _this.isEnabled), _defineProperty(_ref, "isVisible", _this.isVisible), _defineProperty(_ref, "getPinsLogic", _generated_module_src_pins_PCPHelper__WEBPACK_IMPORTED_MODULE_6__["getPinsLogic"]), _defineProperty(_ref, "importName", _this.friendlyImportName), _ref;
|
|
1119
|
+
});
|
|
1120
|
+
|
|
1121
|
+
_defineProperty(this, "getModel", function () {
|
|
1122
|
+
return _this.dataModel;
|
|
1123
|
+
});
|
|
1124
|
+
|
|
1125
|
+
_defineProperty(this, "getModuleName", function () {
|
|
1126
|
+
var _this$getModel$getHar, _this$getModel$getHar2;
|
|
1127
|
+
|
|
1128
|
+
return (_this$getModel$getHar = (_this$getModel$getHar2 = _this.getModel().getHardware()) === null || _this$getModel$getHar2 === void 0 ? void 0 : _this$getModel$getHar2.getName()) !== null && _this$getModel$getHar !== void 0 ? _this$getModel$getHar : "OPA";
|
|
1129
|
+
});
|
|
1130
|
+
|
|
1131
|
+
_defineProperty(this, "friendlyImportName", function (importKey) {
|
|
1132
|
+
if (importKey === "scf_pic8_opamp_v2") return "OpAmp Hardware";
|
|
1133
|
+
if (importKey === "initializer_system") return "system.c Initialize()";
|
|
1134
|
+
if (importKey === "pin_standard") return "Pins";
|
|
1135
|
+
return importKey;
|
|
1136
|
+
});
|
|
1137
|
+
|
|
1138
|
+
_defineProperty(this, "customNameValidator", function () {
|
|
1139
|
+
return {
|
|
1140
|
+
pattern: _this.cValidator.getRjsfValidation().pattern
|
|
1141
|
+
};
|
|
1142
|
+
});
|
|
1143
|
+
|
|
1144
|
+
_defineProperty(this, "getCustomUiErrors", function (componentName) {
|
|
1145
|
+
switch (componentName) {
|
|
1146
|
+
case "customName":
|
|
1147
|
+
return [{
|
|
1148
|
+
name: "pattern",
|
|
1149
|
+
message: _this.cValidator.getCustomErrorMessage()
|
|
1150
|
+
}];
|
|
1151
|
+
|
|
1152
|
+
default:
|
|
1153
|
+
return undefined;
|
|
1154
|
+
}
|
|
1155
|
+
});
|
|
1156
|
+
|
|
1157
|
+
_defineProperty(this, "isEnabled", function (componentName) {
|
|
1158
|
+
if (componentName === "nssOpacon1") {
|
|
1159
|
+
var customConfig = _this.getModel().getComponentValue("customConfig");
|
|
1160
|
+
|
|
1161
|
+
var negChannel = _this.getModel().getComponentValue("nchOpacon2");
|
|
1162
|
+
|
|
1163
|
+
if ((customConfig === "Non-Inverting Programmable Gain Amplifier" || customConfig === "Inverting Programmable Gain Amplifier") && negChannel === "GSEL") return true;
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
return undefined;
|
|
1167
|
+
});
|
|
1168
|
+
|
|
1169
|
+
_defineProperty(this, "isVisible", function (componentName) {
|
|
1170
|
+
if (componentName === "ptresOpacon4") {
|
|
1171
|
+
var _this$getModel$getCom, _this$getModel$getCom2;
|
|
1172
|
+
|
|
1173
|
+
var hwch = (_this$getModel$getCom = _this.getModel().getComponentValue("hwchOpahwc")) !== null && _this$getModel$getCom !== void 0 ? _this$getModel$getCom : "";
|
|
1174
|
+
var hwcl = (_this$getModel$getCom2 = _this.getModel().getComponentValue("hwclOpahwc")) !== null && _this$getModel$getCom2 !== void 0 ? _this$getModel$getCom2 : "";
|
|
1175
|
+
if (hwch.indexOf("detect") != -1 || hwcl.indexOf("detect") != -1) return true;else return false;
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
return undefined;
|
|
1179
|
+
});
|
|
1180
|
+
|
|
1181
|
+
_defineProperty(this, "getDynamicConfigData", function (config) {
|
|
1182
|
+
var links = ["mindiLink"];
|
|
1183
|
+
links.forEach(function (name) {
|
|
1184
|
+
var _config$softwareData;
|
|
1185
|
+
|
|
1186
|
+
var component = (_config$softwareData = config.softwareData) === null || _config$softwareData === void 0 ? void 0 : _config$softwareData[name];
|
|
1187
|
+
|
|
1188
|
+
if ((component === null || component === void 0 ? void 0 : component.type) === "string" && (component === null || component === void 0 ? void 0 : component.format) === "url") {
|
|
1189
|
+
component.urlDescription = "Mindi\u2122 Schematic";
|
|
1190
|
+
}
|
|
1191
|
+
});
|
|
1192
|
+
return config;
|
|
1193
|
+
});
|
|
1194
|
+
|
|
1195
|
+
_defineProperty(this, "overrideDefaultValue", function (componentName) {
|
|
1196
|
+
var module = _this.getModuleName();
|
|
1197
|
+
|
|
1198
|
+
if (componentName === "customName") return _this.getModuleName();
|
|
1199
|
+
|
|
1200
|
+
if (componentName === "schematic") {
|
|
1201
|
+
switch (_this.getModel().getComponentValue("customConfig")) {
|
|
1202
|
+
case "Direct Connection to Pins":
|
|
1203
|
+
return _ImageDataURLs__WEBPACK_IMPORTED_MODULE_5__["DIRECT_CONN"];
|
|
1204
|
+
|
|
1205
|
+
case "Unity Gain Buffer":
|
|
1206
|
+
return _ImageDataURLs__WEBPACK_IMPORTED_MODULE_5__["UNITY_GAIN"];
|
|
1207
|
+
|
|
1208
|
+
case "Non-Inverting Programmable Gain Amplifier":
|
|
1209
|
+
return _ImageDataURLs__WEBPACK_IMPORTED_MODULE_5__["NON_INV_PGA"];
|
|
1210
|
+
|
|
1211
|
+
case "Inverting Programmable Gain Amplifier":
|
|
1212
|
+
return _ImageDataURLs__WEBPACK_IMPORTED_MODULE_5__["INV_PGA"];
|
|
1213
|
+
|
|
1214
|
+
default:
|
|
1215
|
+
return _ImageDataURLs__WEBPACK_IMPORTED_MODULE_5__["DIRECT_CONN"];
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1219
|
+
if (componentName === "mindiLink") {
|
|
1220
|
+
switch (_this.getModel().getComponentValue("customConfig")) {
|
|
1221
|
+
case "Direct Connection to Pins":
|
|
1222
|
+
return "https://kits.microchip.com/redirect/4/PIC18Q71-00";
|
|
1223
|
+
|
|
1224
|
+
case "Unity Gain Buffer":
|
|
1225
|
+
return "https://kits.microchip.com/redirect/4/PIC18Q71-01";
|
|
1226
|
+
|
|
1227
|
+
case "Non-Inverting Programmable Gain Amplifier":
|
|
1228
|
+
return "https://kits.microchip.com/redirect/4/PIC18Q71-02";
|
|
1229
|
+
|
|
1230
|
+
case "Inverting Programmable Gain Amplifier":
|
|
1231
|
+
return "https://kits.microchip.com/redirect/4/PIC18Q71-03";
|
|
1232
|
+
|
|
1233
|
+
default:
|
|
1234
|
+
return "https://kits.microchip.com/redirect/4/PIC18Q71-00";
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
1237
|
+
|
|
1238
|
+
if (componentName === "pchOpacon2") {
|
|
1239
|
+
switch (_this.getModel().getComponentValue("customConfig")) {
|
|
1240
|
+
case "Direct Connection to Pins":
|
|
1241
|
+
return module + "IN+";
|
|
1242
|
+
|
|
1243
|
+
case "Unity Gain Buffer":
|
|
1244
|
+
return module + "IN+";
|
|
1245
|
+
|
|
1246
|
+
case "Non-Inverting Programmable Gain Amplifier":
|
|
1247
|
+
return module + "IN+";
|
|
1248
|
+
|
|
1249
|
+
case "Inverting Programmable Gain Amplifier":
|
|
1250
|
+
return "Vdd/2";
|
|
1251
|
+
|
|
1252
|
+
case "Custom Configuration":
|
|
1253
|
+
return "Vss";
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
|
|
1257
|
+
if (componentName === "pssOpacon3") {
|
|
1258
|
+
if (_this.getModel().getComponentValue("customConfig")) return module + "IN0+";
|
|
1259
|
+
}
|
|
1260
|
+
|
|
1261
|
+
if (componentName === "nchOpacon2") {
|
|
1262
|
+
switch (_this.getModel().getComponentValue("customConfig")) {
|
|
1263
|
+
case "Direct Connection to Pins":
|
|
1264
|
+
return module + "IN-";
|
|
1265
|
+
|
|
1266
|
+
case "Unity Gain Buffer":
|
|
1267
|
+
return "No Connection";
|
|
1268
|
+
|
|
1269
|
+
case "Non-Inverting Programmable Gain Amplifier":
|
|
1270
|
+
return "GSEL";
|
|
1271
|
+
|
|
1272
|
+
case "Inverting Programmable Gain Amplifier":
|
|
1273
|
+
return "GSEL";
|
|
1274
|
+
|
|
1275
|
+
case "Custom Configuration":
|
|
1276
|
+
return "No Connection";
|
|
1277
|
+
}
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
if (componentName === "nssOpacon1") {
|
|
1281
|
+
return _this.getModel().getComponentValue("customConfig") === "Non-Inverting Programmable Gain Amplifier" ? "Vss" : module + "IN0-";
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
if (componentName === "resonOpacon1") {
|
|
1285
|
+
switch (_this.getModel().getComponentValue("customConfig")) {
|
|
1286
|
+
case "Non-Inverting Programmable Gain Amplifier":
|
|
1287
|
+
return "Enabled";
|
|
1288
|
+
|
|
1289
|
+
case "Inverting Programmable Gain Amplifier":
|
|
1290
|
+
return "Enabled";
|
|
1291
|
+
|
|
1292
|
+
default:
|
|
1293
|
+
return "Disabled";
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
if (componentName === "gselOpacon1") {
|
|
1298
|
+
if (_this.getModel().getComponentValue("customConfig")) return "R1 = 15R and R2 = 1R, R2/R1 = 0.07";
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
if (componentName === "fmsOpacon3") {
|
|
1302
|
+
switch (_this.getModel().getComponentValue("customConfig")) {
|
|
1303
|
+
case "Non-Inverting Programmable Gain Amplifier":
|
|
1304
|
+
return module + "OUT";
|
|
1305
|
+
|
|
1306
|
+
case "Inverting Programmable Gain Amplifier":
|
|
1307
|
+
return module + "OUT";
|
|
1308
|
+
|
|
1309
|
+
default:
|
|
1310
|
+
return "No Connection";
|
|
1311
|
+
}
|
|
1312
|
+
}
|
|
1313
|
+
|
|
1314
|
+
if (componentName === "ugOpacon0") {
|
|
1315
|
+
return _this.getModel().getComponentValue("customConfig") === "Unity Gain Buffer" ? "OPA Output" : "OPAIN- pin";
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
return undefined;
|
|
1319
|
+
});
|
|
1320
|
+
|
|
1321
|
+
_defineProperty(this, "getOpaInterfaceProcessedPayload", function () {
|
|
1322
|
+
return {
|
|
1323
|
+
moduleName: _this.getModuleName(),
|
|
1324
|
+
customName: _this.dataModel.getComponentValue("customName"),
|
|
1325
|
+
hasInterrupts: false
|
|
1326
|
+
};
|
|
1327
|
+
});
|
|
1328
|
+
|
|
1329
|
+
_defineProperty(this, "calcNonInvGain", function () {
|
|
1330
|
+
var resSelect = _this.getModel().getComponentValue("gselOpacon1");
|
|
1331
|
+
|
|
1332
|
+
return _this.getGainCalculator().calcNonInvGain(resSelect);
|
|
1333
|
+
});
|
|
1334
|
+
|
|
1335
|
+
_defineProperty(this, "calcInvGain", function () {
|
|
1336
|
+
var resSelect = _this.getModel().getComponentValue("gselOpacon1");
|
|
1337
|
+
|
|
1338
|
+
return _this.getGainCalculator().calcInvGain(resSelect);
|
|
1339
|
+
});
|
|
1340
|
+
|
|
1341
|
+
_defineProperty(this, "getMyAlerts", function () {
|
|
1342
|
+
var _this$dataModel$getCo;
|
|
1343
|
+
|
|
1344
|
+
var alerts = [];
|
|
1345
|
+
|
|
1346
|
+
var module = _this.getModuleName();
|
|
1347
|
+
|
|
1348
|
+
var customConfigValue = _this.getModel().getComponentValue("customConfig");
|
|
1349
|
+
|
|
1350
|
+
var posChannel = _this.getModel().getComponentValue("pchOpacon2");
|
|
1351
|
+
|
|
1352
|
+
var negChannel = _this.getModel().getComponentValue("nchOpacon2");
|
|
1353
|
+
|
|
1354
|
+
var posSrc = _this.getModel().getComponentValue("pssOpacon3");
|
|
1355
|
+
|
|
1356
|
+
var posSrc0 = posSrc === null || posSrc === void 0 ? void 0 : posSrc.substring(0, posSrc.length - 1);
|
|
1357
|
+
|
|
1358
|
+
var negSrc = _this.getModel().getComponentValue("nssOpacon1");
|
|
1359
|
+
|
|
1360
|
+
var negSrc0 = negSrc === null || negSrc === void 0 ? void 0 : negSrc.substring(0, negSrc.length - 1);
|
|
1361
|
+
|
|
1362
|
+
var feedbackMode = _this.getModel().getComponentValue("fmsOpacon3");
|
|
1363
|
+
|
|
1364
|
+
switch (customConfigValue) {
|
|
1365
|
+
case "Direct Connection to Pins":
|
|
1366
|
+
{
|
|
1367
|
+
if (posChannel === "GSEL") {
|
|
1368
|
+
alerts.push({
|
|
1369
|
+
type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Warning,
|
|
1370
|
+
text: "Invalid selection for Positive Channel in this configuration"
|
|
1371
|
+
});
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
if (negChannel === "GSEL") {
|
|
1375
|
+
alerts.push({
|
|
1376
|
+
type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Warning,
|
|
1377
|
+
text: "Invalid selection for Negative Channel in this configuration"
|
|
1378
|
+
});
|
|
1379
|
+
}
|
|
1380
|
+
|
|
1381
|
+
if (posChannel === module + "IN+" && negChannel === module + "IN-") {
|
|
1382
|
+
if (posSrc0 === negSrc0) {
|
|
1383
|
+
alerts.push({
|
|
1384
|
+
type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Warning,
|
|
1385
|
+
text: "Both the Positive and Negative Sources are mapped to the same pin"
|
|
1386
|
+
});
|
|
1387
|
+
} else {//do nothing
|
|
1388
|
+
}
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1391
|
+
break;
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1394
|
+
case "Unity Gain Buffer":
|
|
1395
|
+
{
|
|
1396
|
+
if (posChannel === "GSEL") {
|
|
1397
|
+
alerts.push({
|
|
1398
|
+
type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Warning,
|
|
1399
|
+
text: "Invalid selection for Positive Channel in this configuration"
|
|
1400
|
+
});
|
|
1401
|
+
}
|
|
1402
|
+
|
|
1403
|
+
break;
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1406
|
+
case "Non-Inverting Programmable Gain Amplifier":
|
|
1407
|
+
{
|
|
1408
|
+
if (posChannel === "GSEL" || posChannel === "Vss") {
|
|
1409
|
+
alerts.push({
|
|
1410
|
+
type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Warning,
|
|
1411
|
+
text: "Invalid selection for Positive Channel in this configuration"
|
|
1412
|
+
});
|
|
1413
|
+
}
|
|
1414
|
+
|
|
1415
|
+
if (negChannel !== "GSEL") {
|
|
1416
|
+
alerts.push({
|
|
1417
|
+
type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Warning,
|
|
1418
|
+
text: "Invalid selection for Negative Channel in this configuration"
|
|
1419
|
+
});
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1422
|
+
if (negSrc !== "Vss") {
|
|
1423
|
+
alerts.push({
|
|
1424
|
+
type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Warning,
|
|
1425
|
+
text: "Invalid selection for Negative Source in this configuration"
|
|
1426
|
+
});
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1429
|
+
if (feedbackMode !== module + "OUT") {
|
|
1430
|
+
alerts.push({
|
|
1431
|
+
type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Warning,
|
|
1432
|
+
text: "Invalid selection for Feedback Mode Selection in this configuration"
|
|
1433
|
+
});
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1436
|
+
break;
|
|
1437
|
+
}
|
|
1438
|
+
|
|
1439
|
+
case "Inverting Programmable Gain Amplifier":
|
|
1440
|
+
{
|
|
1441
|
+
if (posChannel === "GSEL" || posChannel === "Vss") {
|
|
1442
|
+
alerts.push({
|
|
1443
|
+
type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Warning,
|
|
1444
|
+
text: "Invalid selection for Positive Channel in this configuration"
|
|
1445
|
+
});
|
|
1446
|
+
}
|
|
1447
|
+
|
|
1448
|
+
if (negChannel !== "GSEL") {
|
|
1449
|
+
alerts.push({
|
|
1450
|
+
type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Warning,
|
|
1451
|
+
text: "Invalid selection for Negative Channel in this configuration"
|
|
1452
|
+
});
|
|
1453
|
+
}
|
|
1454
|
+
|
|
1455
|
+
if (feedbackMode !== module + "OUT") {
|
|
1456
|
+
alerts.push({
|
|
1457
|
+
type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Warning,
|
|
1458
|
+
text: "Invalid selection for Feedback Mode Selection in this configuration"
|
|
1459
|
+
});
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
break;
|
|
1463
|
+
}
|
|
1464
|
+
}
|
|
1465
|
+
|
|
1466
|
+
if ((posChannel === null || posChannel === void 0 ? void 0 : posChannel.indexOf("DAC")) !== -1) {
|
|
1467
|
+
var regexpNumber = /\d/;
|
|
1468
|
+
var inst = posChannel === null || posChannel === void 0 ? void 0 : posChannel.match(regexpNumber);
|
|
1469
|
+
|
|
1470
|
+
if (!_this.dataModel.getAssignedImport("DAC")) {
|
|
1471
|
+
alerts.push({
|
|
1472
|
+
type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Warning,
|
|
1473
|
+
text: _this.dataModel.getName() + " uses DAC" + inst + " as Positive Channel. Ensure DAC" + inst + " has been configured."
|
|
1474
|
+
});
|
|
1475
|
+
}
|
|
1476
|
+
}
|
|
1477
|
+
|
|
1478
|
+
if ((negChannel === null || negChannel === void 0 ? void 0 : negChannel.indexOf("DAC")) !== -1) {
|
|
1479
|
+
var _regexpNumber = /\d/;
|
|
1480
|
+
|
|
1481
|
+
var _inst = negChannel === null || negChannel === void 0 ? void 0 : negChannel.match(_regexpNumber);
|
|
1482
|
+
|
|
1483
|
+
if (!_this.dataModel.getAssignedImport("DAC")) {
|
|
1484
|
+
alerts.push({
|
|
1485
|
+
type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Warning,
|
|
1486
|
+
text: _this.dataModel.getName() + " uses DAC" + _inst + " as Negative Channel. Ensure DAC" + _inst + " has been configured."
|
|
1487
|
+
});
|
|
1488
|
+
}
|
|
1489
|
+
}
|
|
1490
|
+
|
|
1491
|
+
var hwOverrideSrc = (_this$dataModel$getCo = _this.dataModel.getComponentValue("orsOpaors")) !== null && _this$dataModel$getCo !== void 0 ? _this$dataModel$getCo : "LFINTOSC";
|
|
1492
|
+
var moduleIgnoreList = ["OPAxORPPS", "LFINTOSC", "SOSC", "Logic low", "Logic high"];
|
|
1493
|
+
|
|
1494
|
+
if (moduleIgnoreList.indexOf(hwOverrideSrc) != -1) {//do nothing
|
|
1495
|
+
} else {
|
|
1496
|
+
alerts.push({
|
|
1497
|
+
type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Hint,
|
|
1498
|
+
text: "Ensure that the module selected as Hardware Override Source is configured."
|
|
1499
|
+
});
|
|
1500
|
+
}
|
|
1501
|
+
|
|
1502
|
+
return alerts;
|
|
1503
|
+
});
|
|
1504
|
+
|
|
1505
|
+
_defineProperty(this, "getMyTemplateData", function () {
|
|
1506
|
+
if (_this.myTemplateData == undefined) {
|
|
1507
|
+
_this.myTemplateData = Object(_GeneratorModel__WEBPACK_IMPORTED_MODULE_2__["getGeneratorModel"])(_this.getModel(), _this.getPositiveSources(), _this.getNegativeSources(), _this.getHeaderFiles());
|
|
1508
|
+
}
|
|
1509
|
+
|
|
1510
|
+
return _this.myTemplateData;
|
|
1511
|
+
});
|
|
1512
|
+
|
|
1513
|
+
_defineProperty(this, "getHeaderFiles", function () {
|
|
1514
|
+
return [{
|
|
1515
|
+
name: _this.getModuleName().toLowerCase() + ".h",
|
|
1516
|
+
path: "../"
|
|
1517
|
+
}];
|
|
1518
|
+
});
|
|
1519
|
+
|
|
1520
|
+
_defineProperty(this, "getPinstandardArgs", function () {
|
|
1521
|
+
return {
|
|
1522
|
+
queryAdapterMap: _defineProperty({}, _microchip_pin_standard_lib_pin_standard__WEBPACK_IMPORTED_MODULE_3__["QueryAdapterKey"].ALLPINS, "^OPA[0-9]$")
|
|
1523
|
+
};
|
|
1524
|
+
});
|
|
1525
|
+
|
|
1526
|
+
_defineProperty(this, "initializer_system_results", function () {
|
|
1527
|
+
return {
|
|
1528
|
+
initializer: {
|
|
1529
|
+
name: _this.getModuleName() + "_Initialize",
|
|
1530
|
+
header: {
|
|
1531
|
+
name: _this.getModuleName().toLowerCase() + ".h",
|
|
1532
|
+
path: "opa/"
|
|
1533
|
+
}
|
|
1534
|
+
}
|
|
1535
|
+
};
|
|
1536
|
+
});
|
|
1537
|
+
|
|
1538
|
+
_defineProperty(this, "getPositiveSources", function () {
|
|
1539
|
+
var _this$dataModel$getHa, _this$dataModel$getCo2, _pinPayload$QueryAdap;
|
|
1540
|
+
|
|
1541
|
+
var posSource = (_this$dataModel$getHa = _this.dataModel.getHardware()) === null || _this$dataModel$getHa === void 0 ? void 0 : _this$dataModel$getHa.getPeripheral().registers.OPACON3.settings.PSS.options;
|
|
1542
|
+
var pinAttribs = (_this$dataModel$getCo2 = _this.dataModel.getComponentValue("cnameAttribforPosPins")) !== null && _this$dataModel$getCo2 !== void 0 ? _this$dataModel$getCo2 : "";
|
|
1543
|
+
if (typeof pinAttribs === "string") pinAttribs = JSON.parse(pinAttribs);
|
|
1544
|
+
|
|
1545
|
+
var pinPayload = _this.dataModel.getImportValue("pin_standard");
|
|
1546
|
+
|
|
1547
|
+
var allPins = (_pinPayload$QueryAdap = pinPayload === null || pinPayload === void 0 ? void 0 : pinPayload[_microchip_pin_standard_lib_pin_standard__WEBPACK_IMPORTED_MODULE_3__["QueryAdapterKey"].ALLPINS]) !== null && _pinPayload$QueryAdap !== void 0 ? _pinPayload$QueryAdap : {};
|
|
1548
|
+
var allPinsData = Object(_PinsLogic__WEBPACK_IMPORTED_MODULE_4__["getInputPinsData"])(allPins, _this.getModuleName());
|
|
1549
|
+
var posSourceList = (posSource !== null && posSource !== void 0 ? posSource : []).map(function (o) {
|
|
1550
|
+
var _pinAttribs$allPinsDa, _pinAttribs$allPinsDa2, _allPinsData$o$alias, _allPinsData$o$alias2, _o$alias;
|
|
1551
|
+
|
|
1552
|
+
return {
|
|
1553
|
+
customName: (_pinAttribs$allPinsDa = (_pinAttribs$allPinsDa2 = pinAttribs[(_allPinsData$o$alias = allPinsData[o.alias]) === null || _allPinsData$o$alias === void 0 ? void 0 : _allPinsData$o$alias.pinName]) === null || _pinAttribs$allPinsDa2 === void 0 ? void 0 : _pinAttribs$allPinsDa2.cname) !== null && _pinAttribs$allPinsDa !== void 0 ? _pinAttribs$allPinsDa : (_allPinsData$o$alias2 = allPinsData[o.alias]) === null || _allPinsData$o$alias2 === void 0 ? void 0 : _allPinsData$o$alias2.customName,
|
|
1554
|
+
source: (_o$alias = o.alias) !== null && _o$alias !== void 0 ? _o$alias : ""
|
|
1555
|
+
};
|
|
1556
|
+
});
|
|
1557
|
+
return posSourceList;
|
|
1558
|
+
});
|
|
1559
|
+
|
|
1560
|
+
_defineProperty(this, "getNegativeSources", function () {
|
|
1561
|
+
var _this$dataModel$getHa2, _this$dataModel$getCo3, _pinPayload$QueryAdap2;
|
|
1562
|
+
|
|
1563
|
+
var negSource = (_this$dataModel$getHa2 = _this.dataModel.getHardware()) === null || _this$dataModel$getHa2 === void 0 ? void 0 : _this$dataModel$getHa2.getPeripheral().registers.OPACON1.settings.NSS.options;
|
|
1564
|
+
var pinAttribs = (_this$dataModel$getCo3 = _this.dataModel.getComponentValue("cnameAttribforNegPins")) !== null && _this$dataModel$getCo3 !== void 0 ? _this$dataModel$getCo3 : "";
|
|
1565
|
+
if (typeof pinAttribs === "string") pinAttribs = JSON.parse(pinAttribs);
|
|
1566
|
+
|
|
1567
|
+
var pinPayload = _this.dataModel.getImportValue("pin_standard");
|
|
1568
|
+
|
|
1569
|
+
var allPins = (_pinPayload$QueryAdap2 = pinPayload === null || pinPayload === void 0 ? void 0 : pinPayload[_microchip_pin_standard_lib_pin_standard__WEBPACK_IMPORTED_MODULE_3__["QueryAdapterKey"].ALLPINS]) !== null && _pinPayload$QueryAdap2 !== void 0 ? _pinPayload$QueryAdap2 : {};
|
|
1570
|
+
var allPinsData = Object(_PinsLogic__WEBPACK_IMPORTED_MODULE_4__["getInputPinsData"])(allPins, _this.getModuleName());
|
|
1571
|
+
var negSourceList = (negSource !== null && negSource !== void 0 ? negSource : []).map(function (o) {
|
|
1572
|
+
var _ref2, _pinAttribs$allPinsDa3, _pinAttribs$allPinsDa4, _allPinsData$o$alias3, _allPinsData$o$alias4, _o$alias2;
|
|
1573
|
+
|
|
1574
|
+
return {
|
|
1575
|
+
customName: (_ref2 = (_pinAttribs$allPinsDa3 = (_pinAttribs$allPinsDa4 = pinAttribs[(_allPinsData$o$alias3 = allPinsData[o.alias]) === null || _allPinsData$o$alias3 === void 0 ? void 0 : _allPinsData$o$alias3.pinName]) === null || _pinAttribs$allPinsDa4 === void 0 ? void 0 : _pinAttribs$allPinsDa4.cname) !== null && _pinAttribs$allPinsDa3 !== void 0 ? _pinAttribs$allPinsDa3 : (_allPinsData$o$alias4 = allPinsData[o.alias]) === null || _allPinsData$o$alias4 === void 0 ? void 0 : _allPinsData$o$alias4.customName) !== null && _ref2 !== void 0 ? _ref2 : "Vss",
|
|
1576
|
+
source: (_o$alias2 = o.alias) !== null && _o$alias2 !== void 0 ? _o$alias2 : ""
|
|
1577
|
+
};
|
|
1578
|
+
});
|
|
1579
|
+
return negSourceList;
|
|
1580
|
+
});
|
|
1581
|
+
|
|
1582
|
+
this.dataModel = dataModel;
|
|
1583
|
+
});
|
|
1584
|
+
|
|
1585
|
+
/***/ }),
|
|
1586
|
+
|
|
1587
|
+
/***/ "./src/GeneratorModel.ts":
|
|
1588
|
+
/*!*******************************!*\
|
|
1589
|
+
!*** ./src/GeneratorModel.ts ***!
|
|
1590
|
+
\*******************************/
|
|
1591
|
+
/*! exports provided: getGeneratorModel */
|
|
1592
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1593
|
+
|
|
1594
|
+
"use strict";
|
|
1595
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1596
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getGeneratorModel", function() { return getGeneratorModel; });
|
|
1597
|
+
/* harmony import */ var _microchip_scf_device_lib_Setting__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @microchip/scf-device/lib/Setting */ "./node_modules/@microchip/scf-device/lib/Setting.js");
|
|
1598
|
+
/* harmony import */ var _microchip_scf_device_lib_Setting__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_microchip_scf_device_lib_Setting__WEBPACK_IMPORTED_MODULE_0__);
|
|
1599
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
1600
|
+
|
|
1601
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1602
|
+
|
|
1603
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1604
|
+
|
|
1605
|
+
|
|
1606
|
+
var getGeneratorModel = function getGeneratorModel(model, posSourceModel, negSourceModel1, header) {
|
|
1607
|
+
var customName_1 = model.getComponentValue("customName");
|
|
1608
|
+
var moduleName = model.getName();
|
|
1609
|
+
var registers = model.getRegisterValues();
|
|
1610
|
+
return _objectSpread({
|
|
1611
|
+
moduleNameLowerCase: moduleName.toLowerCase(),
|
|
1612
|
+
moduleNameUpperCase: moduleName.toUpperCase(),
|
|
1613
|
+
componentName: customName_1,
|
|
1614
|
+
moduleInstance: moduleName,
|
|
1615
|
+
posSources: convertToTemplatePosSrc(model, posSourceModel),
|
|
1616
|
+
negSources: convertToTemplateNegSrc(model, negSourceModel1),
|
|
1617
|
+
header: header === null || header === void 0 ? void 0 : header[0],
|
|
1618
|
+
compiler: "XC8 v2.32",
|
|
1619
|
+
tool: "MPLAB X v5.50"
|
|
1620
|
+
}, registers);
|
|
1621
|
+
};
|
|
1622
|
+
|
|
1623
|
+
var convertToTemplatePosSrc = function convertToTemplatePosSrc(model, source) {
|
|
1624
|
+
var _model$getHardware;
|
|
1625
|
+
|
|
1626
|
+
var pss = (_model$getHardware = model.getHardware()) === null || _model$getHardware === void 0 ? void 0 : _model$getHardware.getPeripheral().registers.OPACON3.settings.PSS;
|
|
1627
|
+
|
|
1628
|
+
if (pss == undefined) {
|
|
1629
|
+
return [];
|
|
1630
|
+
} else {
|
|
1631
|
+
return source.map(function (sourceData) {
|
|
1632
|
+
var _getOptionByAlias$val, _getOptionByAlias;
|
|
1633
|
+
|
|
1634
|
+
return {
|
|
1635
|
+
name: sourceData.customName + "_pos",
|
|
1636
|
+
value: (_getOptionByAlias$val = (_getOptionByAlias = Object(_microchip_scf_device_lib_Setting__WEBPACK_IMPORTED_MODULE_0__["getOptionByAlias"])(sourceData.source, pss)) === null || _getOptionByAlias === void 0 ? void 0 : _getOptionByAlias.value) !== null && _getOptionByAlias$val !== void 0 ? _getOptionByAlias$val : ""
|
|
1637
|
+
};
|
|
1638
|
+
});
|
|
1639
|
+
}
|
|
1640
|
+
};
|
|
1641
|
+
|
|
1642
|
+
var convertToTemplateNegSrc = function convertToTemplateNegSrc(model, source) {
|
|
1643
|
+
var _model$getHardware2;
|
|
1644
|
+
|
|
1645
|
+
var nss = (_model$getHardware2 = model.getHardware()) === null || _model$getHardware2 === void 0 ? void 0 : _model$getHardware2.getPeripheral().registers.OPACON1.settings.NSS;
|
|
1646
|
+
|
|
1647
|
+
if (nss == undefined) {
|
|
1648
|
+
return [];
|
|
1649
|
+
} else {
|
|
1650
|
+
return source.map(function (sourceData) {
|
|
1651
|
+
var _getOptionByAlias$val2, _getOptionByAlias2;
|
|
1652
|
+
|
|
1653
|
+
return {
|
|
1654
|
+
name: sourceData.customName.match(/Vss/) ? sourceData.customName : sourceData.customName + "_neg",
|
|
1655
|
+
value: (_getOptionByAlias$val2 = (_getOptionByAlias2 = Object(_microchip_scf_device_lib_Setting__WEBPACK_IMPORTED_MODULE_0__["getOptionByAlias"])(sourceData.source, nss)) === null || _getOptionByAlias2 === void 0 ? void 0 : _getOptionByAlias2.value) !== null && _getOptionByAlias$val2 !== void 0 ? _getOptionByAlias$val2 : ""
|
|
1656
|
+
};
|
|
1657
|
+
});
|
|
1658
|
+
}
|
|
1659
|
+
};
|
|
1660
|
+
|
|
1661
|
+
/***/ }),
|
|
1662
|
+
|
|
1663
|
+
/***/ "./src/ImageDataURLs.ts":
|
|
1664
|
+
/*!******************************!*\
|
|
1665
|
+
!*** ./src/ImageDataURLs.ts ***!
|
|
1666
|
+
\******************************/
|
|
1667
|
+
/*! exports provided: DIRECT_CONN, UNITY_GAIN, NON_INV_PGA, INV_PGA */
|
|
1668
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1669
|
+
|
|
1670
|
+
"use strict";
|
|
1671
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1672
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DIRECT_CONN", function() { return DIRECT_CONN; });
|
|
1673
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UNITY_GAIN", function() { return UNITY_GAIN; });
|
|
1674
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NON_INV_PGA", function() { return NON_INV_PGA; });
|
|
1675
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "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hxZ1xKXIE8ZpG2PRT5ySj5aJdIdC4lGFoa05FPkjLA0z9akWfMdXnxK8a/ycIbk+WYwTMvTJPqmMhznUmbCeeJc6k04T5xL4YnW0Mp+Knhj/eJBSimllNJ/VX8D9jO384MoF/wAAAAASUVORK5CYII=";
|
|
1677
|
+
var UNITY_GAIN = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATAAAABeBAMAAABWXFVeAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAqUExURf///z09PQICAqqqqtTU1CUlJVlZWefn5xISEomJiZubm729vfb29nV1dR8w18cAAASySURBVGje7dnvSxtnAAfwb5ZLziQXSKpxlbYv4qxaQiFdqHPK4LShMjbBNkSs7sVFR9yUA+mcrmO+sFWJq4VoyzCuL651dk4txLSuP8IgnYjaTVDnHGP6v+y5xGgyY7W1xmflvkSRPLnkk+f3PQJKlChRokSJEiV0hXW2z0ZohKly5fh8brfZbM72ekVx/e/A0NiwozT80FlR0f7NocFWnM5w2OEYGwsE1tdFr9dLgBZ3je9qbjybajGtMP+ORVx7a2ui2muhBBZNYv8boQkGBabAFJgCe4NgxbTCRpUa+5/AuAZKYWxuFqUwW30jnbA85sganTCoa/x0wjDfbacThg4rTycM5/Nb6IRh6nSEThjOfkspjBusoxMGtj6LAtgfDjnD5KckD62t0f7FHGk8fJgvmkL5l40zm6Xos4aatcOGJWSzKUn03RKdMCxYg9te8JgGGNryty0B71IBQ9m2iTZEBwxneyN0wjDqorIpyRPLx+isMTDJe+1k2EjhGizuHBiPA2oBCxcvQcOjaMbtrj5wGAxJe+0kmLGO9aDWOWWfywTuCvDwZcJbPO4w57oqDh6WvNfehFWS2fcyjxm7C0bhzBnoTwiGPrBdMgyGKqQBlrTXjsO4tadkzJJKE1x45s+c4zm9oDMBn6cThrZCN0m3OzETRhABdILb0jnbp12EXjAKgJhOGLd8YozkpiMhJf6F6PqkXbzkjBhP1vQhVmM5GTy+Sx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ts ***!
|
|
1686
|
+
\**************************/
|
|
1687
|
+
/*! exports provided: getCompletePinData, getRowData, getInputPinsData, getPinsData, getPinAttribs */
|
|
1688
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1689
|
+
|
|
1690
|
+
"use strict";
|
|
1691
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1692
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCompletePinData", function() { return getCompletePinData; });
|
|
1693
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getRowData", function() { return getRowData; });
|
|
1694
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getInputPinsData", function() { return getInputPinsData; });
|
|
1695
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPinsData", function() { return getPinsData; });
|
|
1696
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPinAttribs", function() { return getPinAttribs; });
|
|
1697
|
+
/* harmony import */ var _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @microchip/pin-standard */ "./node_modules/@microchip/pin-standard/lib/index.js");
|
|
1698
|
+
/* harmony import */ var _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__);
|
|
1699
|
+
/* harmony import */ var _microchip_pin_standard_lib_pin_standard__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @microchip/pin-standard/lib/pin-standard */ "./node_modules/@microchip/pin-standard/lib/pin-standard.js");
|
|
1700
|
+
/* harmony import */ var _microchip_pin_standard_lib_pin_standard__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_microchip_pin_standard_lib_pin_standard__WEBPACK_IMPORTED_MODULE_1__);
|
|
1701
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
1702
|
+
|
|
1703
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1704
|
+
|
|
1705
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1706
|
+
|
|
1707
|
+
|
|
1708
|
+
|
|
1709
|
+
// provide complete dynamic data for all pin rows. It overrides static pindata.json
|
|
1710
|
+
var getCompletePinData = function getCompletePinData(appModel) {
|
|
1711
|
+
// way to programatically override the json data
|
|
1712
|
+
return {};
|
|
1713
|
+
}; // overrides pin data for a particular row based on model.
|
|
1714
|
+
|
|
1715
|
+
function getRowData(appModel, rowData) {
|
|
1716
|
+
var _appModel$getHardware, _appModel$getHardware2, _pinPayload$QueryAdap;
|
|
1717
|
+
|
|
1718
|
+
var retRowJSONdata = rowData;
|
|
1719
|
+
var mod = (_appModel$getHardware = (_appModel$getHardware2 = appModel.getHardware()) === null || _appModel$getHardware2 === void 0 ? void 0 : _appModel$getHardware2.getName()) !== null && _appModel$getHardware !== void 0 ? _appModel$getHardware : "OPA";
|
|
1720
|
+
var pinPayload = appModel.getImportValue("pin_standard");
|
|
1721
|
+
var allPins = (_pinPayload$QueryAdap = pinPayload === null || pinPayload === void 0 ? void 0 : pinPayload[_microchip_pin_standard_lib_pin_standard__WEBPACK_IMPORTED_MODULE_1__["QueryAdapterKey"].ALLPINS]) !== null && _pinPayload$QueryAdap !== void 0 ? _pinPayload$QueryAdap : {};
|
|
1722
|
+
var allPinsData = getInputPinsData(allPins, mod);
|
|
1723
|
+
var posPinAttribs = getPinAttribs(allPinsData, "+");
|
|
1724
|
+
var negPinAttribs = getPinAttribs(allPinsData, "-");
|
|
1725
|
+
|
|
1726
|
+
if (/^posPins$/.test(rowData.name)) {
|
|
1727
|
+
if (appModel.getComponentValue("pchOpacon2") === mod + "IN+") {
|
|
1728
|
+
var _appModel$getAutoModu, _appModel$getComponen;
|
|
1729
|
+
|
|
1730
|
+
if (appModel.getComponentValue("pssOpacon3") === mod + "IN0+") {
|
|
1731
|
+
retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
|
|
1732
|
+
module: mod,
|
|
1733
|
+
"function": mod + "INx+",
|
|
1734
|
+
filter: _objectSpread(_objectSpread({}, retRowJSONdata.filter), {}, {
|
|
1735
|
+
module: mod
|
|
1736
|
+
}),
|
|
1737
|
+
behaviourMeta: {
|
|
1738
|
+
lockPinRegEx: mod + "IN0+"
|
|
1739
|
+
},
|
|
1740
|
+
attribs: posPinAttribs
|
|
1741
|
+
});
|
|
1742
|
+
} else if (appModel.getComponentValue("pssOpacon3") === mod + "IN1+") {
|
|
1743
|
+
retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
|
|
1744
|
+
module: mod,
|
|
1745
|
+
"function": mod + "INx+",
|
|
1746
|
+
filter: _objectSpread(_objectSpread({}, retRowJSONdata.filter), {}, {
|
|
1747
|
+
module: mod
|
|
1748
|
+
}),
|
|
1749
|
+
behaviourMeta: {
|
|
1750
|
+
lockPinRegEx: mod + "IN1+"
|
|
1751
|
+
},
|
|
1752
|
+
attribs: posPinAttribs
|
|
1753
|
+
});
|
|
1754
|
+
} else if (appModel.getComponentValue("pssOpacon3") === mod + "IN2+") {
|
|
1755
|
+
retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
|
|
1756
|
+
module: mod,
|
|
1757
|
+
"function": mod + "INx+",
|
|
1758
|
+
filter: _objectSpread(_objectSpread({}, retRowJSONdata.filter), {}, {
|
|
1759
|
+
module: mod
|
|
1760
|
+
}),
|
|
1761
|
+
behaviourMeta: {
|
|
1762
|
+
lockPinRegEx: mod + "IN2+"
|
|
1763
|
+
},
|
|
1764
|
+
attribs: posPinAttribs
|
|
1765
|
+
});
|
|
1766
|
+
} else if (appModel.getComponentValue("pssOpacon3") === mod + "IN3+") {
|
|
1767
|
+
retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
|
|
1768
|
+
module: mod,
|
|
1769
|
+
"function": mod + "INx+",
|
|
1770
|
+
filter: _objectSpread(_objectSpread({}, retRowJSONdata.filter), {}, {
|
|
1771
|
+
module: mod
|
|
1772
|
+
}),
|
|
1773
|
+
behaviourMeta: {
|
|
1774
|
+
lockPinRegEx: mod + "IN3+"
|
|
1775
|
+
},
|
|
1776
|
+
attribs: posPinAttribs
|
|
1777
|
+
});
|
|
1778
|
+
}
|
|
1779
|
+
|
|
1780
|
+
var rowActions = [];
|
|
1781
|
+
var posSrc = (_appModel$getAutoModu = appModel.getAutoModuleAppModel().getComponent("pssOpacon3")) === null || _appModel$getAutoModu === void 0 ? void 0 : _appModel$getAutoModu.component;
|
|
1782
|
+
|
|
1783
|
+
if (posSrc) {
|
|
1784
|
+
var _appModel$getPCPHelpe;
|
|
1785
|
+
|
|
1786
|
+
rowActions = rowActions.concat((_appModel$getPCPHelpe = appModel.getPCPHelper) === null || _appModel$getPCPHelpe === void 0 ? void 0 : _appModel$getPCPHelpe.call(appModel).stateActionBuilder(rowData).rowWithName("posPins").forComponent(posSrc).addIfLockedSetValue(mod + "IN0+", mod + "IN0+").addIfLockedSetValue(mod + "IN1+", mod + "IN1+").addIfLockedSetValue(mod + "IN2+", mod + "IN2+").addIfLockedSetValue(mod + "IN3+", mod + "IN3+").build());
|
|
1787
|
+
}
|
|
1788
|
+
|
|
1789
|
+
var neededAttribs = [_microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["pin_attribs_enum"].cname];
|
|
1790
|
+
var cnameAttribComponent = (_appModel$getComponen = appModel.getComponent("cnameAttribforPosPins")) === null || _appModel$getComponen === void 0 ? void 0 : _appModel$getComponen.component;
|
|
1791
|
+
|
|
1792
|
+
if (cnameAttribComponent) {
|
|
1793
|
+
var _appModel$getPCPHelpe2;
|
|
1794
|
+
|
|
1795
|
+
rowActions = rowActions.concat((_appModel$getPCPHelpe2 = appModel.getPCPHelper) === null || _appModel$getPCPHelpe2 === void 0 ? void 0 : _appModel$getPCPHelpe2.call(appModel).stateActionBuilder(rowData).rowWithName("posPins").forComponent(cnameAttribComponent).addIfLockedProvideAttribs(".*", neededAttribs).addIfUnlockedProvideAttribs(".*", neededAttribs).build());
|
|
1796
|
+
}
|
|
1797
|
+
|
|
1798
|
+
retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
|
|
1799
|
+
actions: rowActions
|
|
1800
|
+
});
|
|
1801
|
+
} else {
|
|
1802
|
+
retRowJSONdata = undefined;
|
|
1803
|
+
}
|
|
1804
|
+
} else if (/^negPins$/.test(rowData.name)) {
|
|
1805
|
+
var config = appModel.getComponentValue("customConfig");
|
|
1806
|
+
var negChannel = appModel.getComponentValue("nchOpacon2");
|
|
1807
|
+
|
|
1808
|
+
if (negChannel === mod + "IN-" || (config === null || config === void 0 ? void 0 : config.indexOf("Programmable Gain Amplifier")) !== -1 && negChannel === "GSEL" && config !== "Unity Gain Buffer") {
|
|
1809
|
+
var _appModel$getAutoModu2, _appModel$getComponen2;
|
|
1810
|
+
|
|
1811
|
+
if (appModel.getComponentValue("nssOpacon1") === mod + "IN0-") {
|
|
1812
|
+
retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
|
|
1813
|
+
module: mod,
|
|
1814
|
+
"function": mod + "INx-",
|
|
1815
|
+
filter: _objectSpread(_objectSpread({}, retRowJSONdata.filter), {}, {
|
|
1816
|
+
module: mod
|
|
1817
|
+
}),
|
|
1818
|
+
behaviourMeta: {
|
|
1819
|
+
lockPinRegEx: mod + "IN0-"
|
|
1820
|
+
},
|
|
1821
|
+
attribs: negPinAttribs
|
|
1822
|
+
});
|
|
1823
|
+
} else if (appModel.getComponentValue("nssOpacon1") === mod + "IN1-") {
|
|
1824
|
+
retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
|
|
1825
|
+
module: mod,
|
|
1826
|
+
"function": mod + "INx-",
|
|
1827
|
+
filter: _objectSpread(_objectSpread({}, retRowJSONdata.filter), {}, {
|
|
1828
|
+
module: mod
|
|
1829
|
+
}),
|
|
1830
|
+
behaviourMeta: {
|
|
1831
|
+
lockPinRegEx: mod + "IN1-"
|
|
1832
|
+
},
|
|
1833
|
+
attribs: negPinAttribs
|
|
1834
|
+
});
|
|
1835
|
+
} else if (appModel.getComponentValue("nssOpacon1") === mod + "IN2-") {
|
|
1836
|
+
retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
|
|
1837
|
+
module: mod,
|
|
1838
|
+
"function": mod + "INx-",
|
|
1839
|
+
filter: _objectSpread(_objectSpread({}, retRowJSONdata.filter), {}, {
|
|
1840
|
+
module: mod
|
|
1841
|
+
}),
|
|
1842
|
+
behaviourMeta: {
|
|
1843
|
+
lockPinRegEx: mod + "IN2-"
|
|
1844
|
+
},
|
|
1845
|
+
attribs: negPinAttribs
|
|
1846
|
+
});
|
|
1847
|
+
} else if (appModel.getComponentValue("nssOpacon1") === mod + "IN3-") {
|
|
1848
|
+
retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
|
|
1849
|
+
module: mod,
|
|
1850
|
+
"function": mod + "INx-",
|
|
1851
|
+
filter: _objectSpread(_objectSpread({}, retRowJSONdata.filter), {}, {
|
|
1852
|
+
module: mod
|
|
1853
|
+
}),
|
|
1854
|
+
behaviourMeta: {
|
|
1855
|
+
lockPinRegEx: mod + "IN3-"
|
|
1856
|
+
},
|
|
1857
|
+
attribs: negPinAttribs
|
|
1858
|
+
});
|
|
1859
|
+
} else if (appModel.getComponentValue("nssOpacon1") === "Vss") {
|
|
1860
|
+
retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
|
|
1861
|
+
module: mod,
|
|
1862
|
+
"function": mod + "INx-",
|
|
1863
|
+
filter: _objectSpread(_objectSpread({}, retRowJSONdata.filter), {}, {
|
|
1864
|
+
module: mod
|
|
1865
|
+
}),
|
|
1866
|
+
behaviourMeta: {
|
|
1867
|
+
lockPinRegEx: "^.{0}$"
|
|
1868
|
+
}
|
|
1869
|
+
});
|
|
1870
|
+
}
|
|
1871
|
+
|
|
1872
|
+
var _rowActions = [];
|
|
1873
|
+
var negSrc = (_appModel$getAutoModu2 = appModel.getAutoModuleAppModel().getComponent("nssOpacon1")) === null || _appModel$getAutoModu2 === void 0 ? void 0 : _appModel$getAutoModu2.component;
|
|
1874
|
+
|
|
1875
|
+
if (negSrc) {
|
|
1876
|
+
var _appModel$getPCPHelpe3;
|
|
1877
|
+
|
|
1878
|
+
_rowActions = _rowActions.concat((_appModel$getPCPHelpe3 = appModel.getPCPHelper) === null || _appModel$getPCPHelpe3 === void 0 ? void 0 : _appModel$getPCPHelpe3.call(appModel).stateActionBuilder(rowData).rowWithName("negPins").forComponent(negSrc).addIfLockedSetValue(mod + "IN0-", mod + "IN0-").addIfLockedSetValue(mod + "IN1-", mod + "IN1-").addIfLockedSetValue(mod + "IN2-", mod + "IN2-").addIfLockedSetValue(mod + "IN3-", mod + "IN3-").addIfUnLockedSetValue(".*", "Vss").build());
|
|
1879
|
+
}
|
|
1880
|
+
|
|
1881
|
+
var _neededAttribs = [_microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["pin_attribs_enum"].cname];
|
|
1882
|
+
|
|
1883
|
+
var _cnameAttribComponent = (_appModel$getComponen2 = appModel.getComponent("cnameAttribforNegPins")) === null || _appModel$getComponen2 === void 0 ? void 0 : _appModel$getComponen2.component;
|
|
1884
|
+
|
|
1885
|
+
if (_cnameAttribComponent) {
|
|
1886
|
+
var _appModel$getPCPHelpe4;
|
|
1887
|
+
|
|
1888
|
+
_rowActions = _rowActions.concat((_appModel$getPCPHelpe4 = appModel.getPCPHelper) === null || _appModel$getPCPHelpe4 === void 0 ? void 0 : _appModel$getPCPHelpe4.call(appModel).stateActionBuilder(rowData).rowWithName("negPins").forComponent(_cnameAttribComponent).addIfLockedProvideAttribs(".*", _neededAttribs).addIfUnlockedProvideAttribs(".*", _neededAttribs).build());
|
|
1889
|
+
}
|
|
1890
|
+
|
|
1891
|
+
retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
|
|
1892
|
+
actions: _rowActions
|
|
1893
|
+
});
|
|
1894
|
+
} else {
|
|
1895
|
+
retRowJSONdata = undefined;
|
|
1896
|
+
}
|
|
1897
|
+
} else if (/^outputPin$/.test(rowData.name)) {
|
|
1898
|
+
if (!appModel.isComponentValue("intoeOpacon3")) {
|
|
1899
|
+
retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
|
|
1900
|
+
module: mod,
|
|
1901
|
+
"function": mod + "OUT",
|
|
1902
|
+
filter: _objectSpread(_objectSpread({}, retRowJSONdata.filter), {}, {
|
|
1903
|
+
module: mod
|
|
1904
|
+
}),
|
|
1905
|
+
behaviourMeta: {
|
|
1906
|
+
lockPinRegEx: mod + "OUT"
|
|
1907
|
+
}
|
|
1908
|
+
});
|
|
1909
|
+
retRowJSONdata = _objectSpread({}, retRowJSONdata);
|
|
1910
|
+
} else {
|
|
1911
|
+
retRowJSONdata = undefined;
|
|
1912
|
+
}
|
|
1913
|
+
} else if (/^ppsPin$/.test(rowData.name)) {
|
|
1914
|
+
if (appModel.getComponentValue("orsOpaors") === "OPAxORPPS") {
|
|
1915
|
+
retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
|
|
1916
|
+
module: mod,
|
|
1917
|
+
"function": mod + "ORPPS",
|
|
1918
|
+
filter: _objectSpread(_objectSpread({}, retRowJSONdata.filter), {}, {
|
|
1919
|
+
module: mod
|
|
1920
|
+
})
|
|
1921
|
+
});
|
|
1922
|
+
retRowJSONdata = _objectSpread({}, retRowJSONdata);
|
|
1923
|
+
} else {
|
|
1924
|
+
retRowJSONdata = undefined;
|
|
1925
|
+
}
|
|
1926
|
+
}
|
|
1927
|
+
|
|
1928
|
+
return retRowJSONdata;
|
|
1929
|
+
}
|
|
1930
|
+
var getInputPinsData = function getInputPinsData(allPins, moduleName) {
|
|
1931
|
+
return getPinsData(allPins, /OPA\d(IN\d)(\D)/, moduleName);
|
|
1932
|
+
};
|
|
1933
|
+
var getPinsData = function getPinsData(allPins, aliasRegex, modName) {
|
|
1934
|
+
var pinData = {};
|
|
1935
|
+
Object.keys(allPins).forEach(function (pinName) {
|
|
1936
|
+
var pins = allPins[pinName];
|
|
1937
|
+
var modPins = pins[modName];
|
|
1938
|
+
|
|
1939
|
+
if (modPins) {
|
|
1940
|
+
Object.keys(modPins).forEach(function (key) {
|
|
1941
|
+
var opaPins = modPins[key].alias.match(aliasRegex);
|
|
1942
|
+
|
|
1943
|
+
if (opaPins) {
|
|
1944
|
+
var customName = pinName + "_" + opaPins[1];
|
|
1945
|
+
var funcName = opaPins[0];
|
|
1946
|
+
pinData[funcName] = {
|
|
1947
|
+
funcName: funcName,
|
|
1948
|
+
customName: customName,
|
|
1949
|
+
pinName: pinName
|
|
1950
|
+
};
|
|
1951
|
+
}
|
|
1952
|
+
});
|
|
1953
|
+
}
|
|
1954
|
+
});
|
|
1955
|
+
return pinData;
|
|
1956
|
+
};
|
|
1957
|
+
var getPinAttribs = function getPinAttribs(allPins, pinPolarity) {
|
|
1958
|
+
var pinAttribArr = [];
|
|
1959
|
+
Object.keys(allPins).filter(function (key) {
|
|
1960
|
+
return key.endsWith(pinPolarity);
|
|
1961
|
+
}).forEach(function (key) {
|
|
1962
|
+
pinAttribArr.push({
|
|
1963
|
+
aliasReEx: allPins[key].funcName,
|
|
1964
|
+
cname: allPins[key].customName
|
|
1965
|
+
});
|
|
1966
|
+
});
|
|
1967
|
+
return pinAttribArr;
|
|
1968
|
+
};
|
|
1969
|
+
|
|
1970
|
+
/***/ }),
|
|
1971
|
+
|
|
1972
|
+
/***/ "./src/moduleConfig.json":
|
|
1973
|
+
/*!*******************************!*\
|
|
1974
|
+
!*** ./src/moduleConfig.json ***!
|
|
1975
|
+
\*******************************/
|
|
1976
|
+
/*! exports provided: moduleName, deviceType, booleanValues, UIGroups, UIGroupCollapse, UIOrder, tabs, templates, imports, exports, hasPins, analytics, softwareData, peripherals, help, default */
|
|
1977
|
+
/***/ (function(module) {
|
|
1978
|
+
|
|
1979
|
+
module.exports = JSON.parse("{\"moduleName\":\"OPA\",\"deviceType\":\"PIC\",\"booleanValues\":{\"true\":\"Enabled\",\"false\":\"Disabled\"},\"UIGroups\":{\"software\":\"Software Settings\",\"hardware\":\"Hardware Settings\",\"channelSel\":\"Channel Selection\",\"feedbackSel\":\"Programmable Gain and Feedback Selection\",\"overrideSel\":\"Hardware Override Selection\"},\"UIGroupCollapse\":[\"feedbackSel\",\"overrideSel\"],\"UIOrder\":{\"software\":[\"*\"],\"hardware\":[\"enOpacon0\",\"cponOpacon0\",\"intoeOpacon3\",\"customConfig\",\"schematic\",\"mindiLink\",\"*\"],\"channelSel\":[\"pchOpacon2\",\"pssOpacon3\",\"nchOpacon2\",\"nssOpacon1\",\"*\"],\"feedbackSel\":[\"resonOpacon1\",\"gselOpacon1\",\"nonInvGain\",\"invGain\",\"fmsOpacon3\",\"*\"],\"overrideSel\":[\"orenOpahwc\",\"orsOpaors\",\"hwchOpahwc\",\"hwclOpahwc\",\"ptresOpacon4\",\"orpolOpahwc\",\"*\"]},\"tabs\":{\"main\":\"Easy View\",\"register\":\"Register Initialization\"},\"templates\":[{\"src\":\"output/source-template.c.ftl\",\"dest\":\"opa/src/${sourceFileName}\"},{\"src\":\"output/header-template.h.ftl\",\"dest\":\"opa/${headerFileName}\"}],\"imports\":{\"scf_pic8_opamp_v2\":{\"import\":{\"interfaceId\":{\"name\":\"scf-pic8-opamp-v2\",\"version\":\"1.0.0\"},\"isRequired\":true}},\"initializer_system\":{\"nodeModule\":{\"importName\":\"systemInit\",\"node\":\"@microchip/initializer-system\"},\"fullyTyped\":true,\"import\":{\"interfaceId\":{\"name\":\"initializer-system\",\"version\":\"^0\"}}},\"pin_standard\":{\"import\":{\"interfaceId\":{\"name\":\"pin-standard\",\"version\":\"^0\"}}},\"device_meta\":{\"import\":{\"interfaceId\":{\"name\":\"device-meta\",\"version\":\"^1.0.0\"}}}},\"exports\":{\"opa\":{\"interfaces\":[{\"interfaceId\":{\"name\":\"opa-output-parameters\",\"version\":\"1.0.0\"},\"components\":[\"customName\",\"enOpacon0\"]}]}},\"hasPins\":true,\"analytics\":{\"logAlwaysComps\":[\"enOpacon0\",\"cponOpacon0\",\"intoeOpacon3\",\"customConfig\",\"pchOpacon2\",\"pssOpacon3\",\"nchOpacon2\",\"nssOpacon1\",\"resonOpacon1\",\"gselOpacon1\",\"fmsOpacon3\",\"orenOpahwc\",\"orsOpaors\",\"hwchOpahwc\",\"hwclOpahwc\",\"ptresOpacon4\",\"orpolOpahwc\"],\"logOnChangeComps\":[],\"compMapping\":{\"enOpacon0\":\"OPAMP_Enable\",\"cponOpacon0\":\"OPAMP_EnableChargePump\",\"intoeOpacon3\":\"OPAMP_EnableInternalOutput\",\"customConfig\":\"OPAMP_Configuration\",\"pchOpacon2\":\"OPAMP_PositiveChannel\",\"pssOpacon3\":\"OPAMP_PositiveSource\",\"nchOpacon2\":\"OPAMP_NegativeChannel\",\"nssOpacon1\":\"OPAMP_NegativeSource\",\"resonOpacon1\":\"OPAMP_EnableResistorLadder\",\"gselOpacon1\":\"OPAMP_ResistorLadderSelection\",\"fmsOpacon3\":\"OPAMP_FeedbackMode\",\"orenOpahwc\":\"OPAMP_EnableHardwareOverride\",\"orsOpaors\":\"OPAMP_OverrideHighConfig\",\"hwchOpahwc\":\"OPAMP_OverrideSource\",\"hwclOpahwc\":\"OPAMP_OverrideLowConfig\",\"ptresOpacon4\":\"OPAMP_PeakTroughDetect\",\"orpolOpahwc\":\"OPAMP_InvertPolarity\"}},\"softwareData\":{\"customName\":{\"name\":\"customName\",\"category\":\"software\",\"description\":\"Custom Name\",\"type\":\"string\",\"defaultValue\":\"OPA\",\"group\":\"software\",\"tabs\":[\"main\"],\"validation\":true},\"customConfig\":{\"name\":\"customConfig\",\"description\":\"Op Amp Configuration\",\"type\":\"ComboBox\",\"defaultValue\":{\"value\":\"Direct Connection to Pins\",\"options\":[\"Direct Connection to Pins\",\"Unity Gain Buffer\",\"Non-Inverting Programmable Gain Amplifier\",\"Inverting Programmable Gain Amplifier\",\"Custom Configuration\"]},\"group\":\"hardware\",\"tabs\":[\"main\"],\"category\":\"software\"},\"nonInvGain\":{\"name\":\"nonInvGain\",\"description\":\"Gain (1 + R2/R1)\",\"type\":\"string\",\"defaultValue\":\"1.07\",\"group\":\"feedbackSel\",\"mode\":{\"masterComponent\":\"customConfig\",\"operation\":\"isVisible\",\"matchRegEx\":\"^Non-Inverting Programmable Gain Amplifier$\"},\"tabs\":[\"main\"],\"uiBehavior\":{\"readonly\":true},\"category\":\"software\"},\"invGain\":{\"name\":\"invGain\",\"description\":\"Gain [(R2/R1 + 1)(Vref/Vin) - (R2/R1)]\",\"type\":\"string\",\"defaultValue\":\"1.07(Vref/Vin) - 0.07\",\"group\":\"feedbackSel\",\"mode\":{\"masterComponent\":\"customConfig\",\"operation\":\"isVisible\",\"matchRegEx\":\"^Inverting Programmable Gain Amplifier$\"},\"tabs\":[\"main\"],\"uiBehavior\":{\"readonly\":true},\"category\":\"software\"},\"schematic\":{\"name\":\"schematic\",\"category\":\"software\",\"description\":\" \",\"type\":\"string\",\"format\":\"image\",\"defaultValue\":\"\",\"imageDescription\":\"Schematic diagram\",\"group\":\"hardware\",\"mode\":{\"masterComponent\":\"customConfig\",\"operation\":\"isVisible\",\"matchRegEx\":\"^(?!Custom Configuration).*$\"},\"tabs\":[\"main\"]},\"mindiLink\":{\"name\":\"mindiLink\",\"category\":\"software\",\"description\":\" \",\"type\":\"string\",\"format\":\"url\",\"defaultValue\":\"https://kits.microchip.com/redirect/4/PIC18Q41-00\",\"urlDescription\":\"Mindi(TM) Schematic\",\"group\":\"hardware\",\"mode\":{\"masterComponent\":\"customConfig\",\"operation\":\"isVisible\",\"matchRegEx\":\"^(?!Custom Configuration).*$\"},\"tabs\":[\"main\"]},\"cnameAttribforPosPins\":{\"name\":\"cnameAttribforPosPins\",\"description\":\"cnameAttrib for positive pin cname\",\"category\":\"software\",\"type\":\"string\",\"defaultValue\":\"{}\",\"group\":\"software\",\"tabs\":[\"main\"],\"isVisibleProperty\":\"doNotShow\"},\"cnameAttribforNegPins\":{\"name\":\"cnameAttribforNegPins\",\"description\":\"cnameAttrib for negative pin cname\",\"category\":\"software\",\"type\":\"string\",\"defaultValue\":\"{}\",\"group\":\"software\",\"tabs\":[\"main\"],\"isVisibleProperty\":\"doNotShow\"}},\"peripherals\":[{\"interfaceId\":{\"name\":\"scf-pic8-opamp-v2\",\"version\":\"1.0.0\"},\"registers\":{\"OPACON0\":[{\"setting\":\"EN\",\"name\":\"enOpacon0\",\"category\":\"hardware\",\"description\":\"Enable OpAmp\",\"overrideDefaultValue\":\"Enabled\",\"type\":\"boolean\",\"group\":\"hardware\",\"tabs\":[\"main\"],\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}},{\"setting\":\"CPON\",\"name\":\"cponOpacon0\",\"category\":\"hardware\",\"description\":\"Enable Charge Pump\",\"type\":\"boolean\",\"group\":\"hardware\",\"tabs\":[\"main\"],\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}},{\"setting\":\"UG\",\"name\":\"ugOpacon0\",\"category\":\"hardware\",\"description\":\"Unity Gain Select\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"],\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}}],\"OPACON1\":[{\"setting\":\"GSEL\",\"name\":\"gselOpacon1\",\"category\":\"hardware\",\"description\":\"Internal Resistor Ladder Selection\",\"type\":\"ComboBox\",\"group\":\"feedbackSel\",\"mode\":{\"masterComponent\":\"customConfig\",\"operation\":\"isEnabled\",\"matchRegEx\":\"(Programmable)|(Custom)\"},\"tabs\":[\"main\"],\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}},{\"setting\":\"RESON\",\"name\":\"resonOpacon1\",\"category\":\"hardware\",\"description\":\"Resistor Ladder\",\"type\":\"boolean\",\"group\":\"feedbackSel\",\"mode\":{\"masterComponent\":\"customConfig\",\"operation\":\"isEnabled\",\"matchRegEx\":\"^Custom Configuration$\"},\"tabs\":[\"main\"],\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}},{\"setting\":\"NSS\",\"name\":\"nssOpacon1\",\"category\":\"hardware\",\"description\":\"Negative Source Selection\",\"type\":\"ComboBox\",\"group\":\"channelSel\",\"mode\":{\"masterComponent\":\"nchOpacon2\",\"operation\":\"isEnabled\",\"matchRegEx\":\"OPA\\\\dIN-\"},\"tabs\":[\"main\"],\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}}],\"OPACON2\":[{\"setting\":\"NCH\",\"name\":\"nchOpacon2\",\"category\":\"hardware\",\"description\":\"Negative Channel\",\"type\":\"ComboBox\",\"group\":\"channelSel\",\"mode\":{\"masterComponent\":\"customConfig\",\"operation\":\"isEnabled\",\"matchRegEx\":\"^(?!Unity Gain Buffer).*$\"},\"tabs\":[\"main\"],\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}},{\"setting\":\"PCH\",\"name\":\"pchOpacon2\",\"category\":\"hardware\",\"description\":\"Positive Channel\",\"type\":\"ComboBox\",\"group\":\"channelSel\",\"tabs\":[\"main\"],\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}}],\"OPACON3\":[{\"setting\":\"FMS\",\"name\":\"fmsOpacon3\",\"category\":\"hardware\",\"description\":\"Feedback Mode Selection\",\"type\":\"ComboBox\",\"group\":\"feedbackSel\",\"mode\":{\"masterComponent\":\"customConfig\",\"operation\":\"isEnabled\",\"matchRegEx\":\"(Programmable)|(Custom)\"},\"tabs\":[\"main\"],\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}},{\"setting\":\"INTOE\",\"name\":\"intoeOpacon3\",\"category\":\"hardware\",\"description\":\"Enable Internal Output\",\"type\":\"boolean\",\"group\":\"hardware\",\"tabs\":[\"main\"],\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}},{\"setting\":\"PSS\",\"name\":\"pssOpacon3\",\"category\":\"hardware\",\"description\":\"Positive Source Selection\",\"type\":\"ComboBox\",\"group\":\"channelSel\",\"mode\":{\"masterComponent\":\"pchOpacon2\",\"operation\":\"isEnabled\",\"matchRegEx\":\"OPA\\\\dIN+\"},\"tabs\":[\"main\"],\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}}],\"OPACON4\":[{\"setting\":\"PTRES\",\"name\":\"ptresOpacon4\",\"category\":\"hardware\",\"description\":\"Peak/Trough Detect Reset\",\"type\":\"ComboBox\",\"group\":\"overrideSel\",\"tabs\":[\"main\"],\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}},{\"setting\":\"OFCST\",\"name\":\"ofcstOpacon4\",\"category\":\"hardware\",\"description\":\"Automatic Input Offset Voltage Calibration\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"]},{\"setting\":\"OFCSEL\",\"name\":\"ofcselOpacon4\",\"category\":\"hardware\",\"description\":\"Input Offset Voltage Source Selection\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"]}],\"OPAHWC\":[{\"setting\":\"OREN\",\"name\":\"orenOpahwc\",\"category\":\"hardware\",\"description\":\"Hardware Override\",\"type\":\"boolean\",\"group\":\"overrideSel\",\"tabs\":[\"main\"],\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}},{\"setting\":\"HWCH\",\"name\":\"hwchOpahwc\",\"category\":\"hardware\",\"description\":\"Override Control High Configuration\",\"type\":\"ComboBox\",\"group\":\"overrideSel\",\"tabs\":[\"main\"],\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}},{\"setting\":\"ORPOL\",\"name\":\"orpolOpahwc\",\"category\":\"hardware\",\"description\":\"Override Source Polarity\",\"type\":\"ComboBox\",\"group\":\"overrideSel\",\"tabs\":[\"main\"],\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}},{\"setting\":\"HWCL\",\"name\":\"hwclOpahwc\",\"category\":\"hardware\",\"description\":\"Override Control Low Configuration\",\"type\":\"ComboBox\",\"group\":\"overrideSel\",\"tabs\":[\"main\"],\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}}],\"OPAOFFSET\":[{\"setting\":\"OFFSET\",\"name\":\"offsetOpaoffset\",\"category\":\"hardware\",\"description\":\"Insert Description Here\",\"type\":\"string\",\"group\":\"hardware\",\"tabs\":[\"register\"]}],\"OPAORS\":[{\"setting\":\"ORS\",\"name\":\"orsOpaors\",\"category\":\"hardware\",\"description\":\"Hardware Override Source Selection\",\"type\":\"ComboBox\",\"group\":\"overrideSel\",\"tabs\":[\"main\"],\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}}]}}],\"help\":{\"url\":\"v2/keyword-lookup?keyword=scf-pic8-opamp-v2&redirect=true\",\"tooltip\":\"Click here to open documentation.\"}}");
|
|
1980
|
+
|
|
1981
|
+
/***/ }),
|
|
1982
|
+
|
|
1983
|
+
/***/ "./src/pinsdata.json":
|
|
1984
|
+
/*!***************************!*\
|
|
1985
|
+
!*** ./src/pinsdata.json ***!
|
|
1986
|
+
\***************************/
|
|
1987
|
+
/*! exports provided: rows, default */
|
|
1988
|
+
/***/ (function(module) {
|
|
1989
|
+
|
|
1990
|
+
module.exports = JSON.parse("{\"rows\":[{\"name\":\"posPins\",\"module\":\"OPA1\",\"function\":\"OPA1INx+\",\"direction\":\"input\",\"filter\":{\"module\":\"OPA1\",\"aliasReEx\":\"^OPA\\\\dIN\\\\d\\\\+$\"},\"behaviour\":\"SINGLE_PIN_MUX\",\"behaviourMeta\":{\"lockPinRegEx\":\"OPA1IN0+\"},\"attribs\":[{\"aliasReEx\":\"^OPA\\\\dIN\\\\d\\\\+$\",\"analog\":true,\"cname\":\"IN\"}]},{\"name\":\"negPins\",\"module\":\"OPA1\",\"function\":\"OPA1INx-\",\"direction\":\"input\",\"filter\":{\"module\":\"OPA1\",\"aliasReEx\":\"^OPA\\\\dIN\\\\d-$\"},\"behaviour\":\"OPTIONAL_PIN_MUX\",\"behaviourMeta\":{\"lockPinRegEx\":\"OPA1IN0-\"},\"attribs\":[{\"aliasReEx\":\"^OPA\\\\dIN\\\\d\\\\-$\",\"analog\":true,\"cname\":\"IN\"}]},{\"name\":\"outputPin\",\"module\":\"OPA1\",\"function\":\"OPA1OUT\",\"direction\":\"output\",\"filter\":{\"module\":\"OPA1\",\"aliasReEx\":\"^OPA\\\\dOUT$\"},\"behaviour\":\"ALWAYS_LOCKED\",\"attribs\":[{\"aliasReEx\":\".*\",\"analog\":true}]},{\"name\":\"ppsPin\",\"module\":\"OPA1\",\"function\":\"OPA1ORPPS\",\"direction\":\"input\",\"filter\":{\"module\":\"OPA1\",\"aliasReEx\":\"^OPA\\\\dOR$\"},\"behaviour\":\"PPS\",\"attribs\":[{\"aliasReEx\":\".*\",\"analog\":true}]}]}");
|
|
1991
|
+
|
|
1992
|
+
/***/ })
|
|
1993
|
+
|
|
1994
|
+
/******/ });
|
|
1995
|
+
//# sourceMappingURL=autoCreator.js.map
|