@mchp-mcc/scf-pic8-osc-v1 4.3.1 → 4.3.3

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.
@@ -0,0 +1,1624 @@
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); if (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 = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { 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); if (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 = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { 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/initializer-system/lib/package.json":
223
+ /*!*********************************************************************!*\
224
+ !*** ./node_modules/@microchip/initializer-system/lib/package.json ***!
225
+ \*********************************************************************/
226
+ /*! exports provided: name, version, license, main, typings, scripts, husky, lint-staged, bitBucketRepository, repository, publishConfig, jest, dependencies, devDependencies, files, notificationEmail, default */
227
+ /***/ (function(module) {
228
+
229
+ module.exports = JSON.parse("{\"name\":\"@microchip/initializer-system\",\"version\":\"0.5.4\",\"license\":\"SEE LICENSE IN LICENSE.txt\",\"main\":\"lib/src/index.js\",\"typings\":\"./lib/src/index.d.ts\",\"scripts\":{\"build\":\"tsc\",\"test\":\"jest\",\"lint:nofix\":\"eslint \\\"./src/**/*.{ts,tsx}\\\" --quiet\",\"lint\":\"tsc --noEmit && yarn lint:nofix --fix\"},\"husky\":{\"hooks\":{\"pre-commit\":\"tsc --noEmit && lint-staged\"}},\"lint-staged\":{\"./src/**/*.{ts,tsx}\":[\"eslint --fix\"]},\"bitBucketRepository\":\"https://bitbucket.microchip.com/projects/SCF/repos/initializer-system/browse\",\"repository\":{\"type\":\"git\",\"url\":\"git+ssh://git@https://bitbucket.microchip.com/scm/scf/initializer-system.git\"},\"publishConfig\":{\"registry\":\"https://artifacts.microchip.com/artifactory/api/npm/npm/\"},\"jest\":{\"testPathIgnorePatterns\":[\"/node_modules/\",\"/run/\",\"/lib/\"],\"modulePathIgnorePatterns\":[\"<rootDir>/run\"],\"preset\":\"ts-jest\",\"collectCoverage\":true},\"dependencies\":{\"@microchip/scf-common\":\"^3.6.0\",\"@microchip/scf-interface\":\"^1.4.0\"},\"devDependencies\":{\"@types/jest\":\"^24.0.14\",\"@types/node\":\"^12.0.10\",\"@typescript-eslint/eslint-plugin\":\"^2.27.0\",\"@typescript-eslint/parser\":\"^2.27.0\",\"eslint\":\"^6.8.0\",\"eslint-config-prettier\":\"^6.10.1\",\"eslint-plugin-prettier\":\"^3.1.2\",\"husky\":\"^4.2.4\",\"jest\":\"^24.8.0\",\"lint-staged\":\"^10.2.0\",\"prettier\":\"^2.0.4\",\"ts-jest\":\"^24.0.2\",\"typescript\":\"^3.8.3\"},\"files\":[\"lib/**/*\"],\"notificationEmail\":\"03234d44.microchip.com@amer.teams.ms\"}");
230
+
231
+ /***/ }),
232
+
233
+ /***/ "./node_modules/@microchip/initializer-system/lib/src/index.js":
234
+ /*!*********************************************************************!*\
235
+ !*** ./node_modules/@microchip/initializer-system/lib/src/index.js ***!
236
+ \*********************************************************************/
237
+ /*! no static exports found */
238
+ /***/ (function(module, exports, __webpack_require__) {
239
+
240
+ "use strict";
241
+
242
+ Object.defineProperty(exports, "__esModule", { value: true });
243
+ var initializer_system_1 = __webpack_require__(/*! ./initializer-system */ "./node_modules/@microchip/initializer-system/lib/src/initializer-system.js");
244
+ exports.Interface = initializer_system_1.Interface;
245
+ exports.INIT_PRIORITY = initializer_system_1.INIT_PRIORITY;
246
+ exports.sortInitializers = initializer_system_1.sortInitializers;
247
+ //# sourceMappingURL=index.js.map
248
+
249
+ /***/ }),
250
+
251
+ /***/ "./node_modules/@microchip/initializer-system/lib/src/initializer-system.js":
252
+ /*!**********************************************************************************!*\
253
+ !*** ./node_modules/@microchip/initializer-system/lib/src/initializer-system.js ***!
254
+ \**********************************************************************************/
255
+ /*! no static exports found */
256
+ /***/ (function(module, exports, __webpack_require__) {
257
+
258
+ "use strict";
259
+
260
+ var __spreadArrays = (this && this.__spreadArrays) || function () {
261
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
262
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
263
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
264
+ r[k] = a[j];
265
+ return r;
266
+ };
267
+ var __importStar = (this && this.__importStar) || function (mod) {
268
+ if (mod && mod.__esModule) return mod;
269
+ var result = {};
270
+ if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
271
+ result["default"] = mod;
272
+ return result;
273
+ };
274
+ Object.defineProperty(exports, "__esModule", { value: true });
275
+ var InterfaceTypes = __importStar(__webpack_require__(/*! @microchip/scf-interface */ "./node_modules/@microchip/scf-interface/lib/index.js"));
276
+ var pkgJson = __importStar(__webpack_require__(/*! ../package.json */ "./node_modules/@microchip/initializer-system/lib/package.json"));
277
+ var getInterfaceId = function () {
278
+ return {
279
+ name: InterfaceTypes.getInterfaceName(pkgJson),
280
+ version: InterfaceTypes.getInterfaceVersion(pkgJson),
281
+ };
282
+ };
283
+ exports.sortInitializers = function (initializers) {
284
+ var retinitializers = __spreadArrays(initializers);
285
+ retinitializers.sort(prioritySorter);
286
+ return retinitializers;
287
+ };
288
+ var prioritySorter = function (a, b) {
289
+ var _a, _b, _c, _d, _e, _f, _g, _h;
290
+ var result = 0;
291
+ var apriority = (_b = (_a = a === null || a === void 0 ? void 0 : a.initializer) === null || _a === void 0 ? void 0 : _a.priority) !== null && _b !== void 0 ? _b : INIT_PRIORITY.DEFAULT;
292
+ var bpriority = (_d = (_c = b === null || b === void 0 ? void 0 : b.initializer) === null || _c === void 0 ? void 0 : _c.priority) !== null && _d !== void 0 ? _d : INIT_PRIORITY.DEFAULT;
293
+ if (apriority < bpriority) {
294
+ result = -1;
295
+ }
296
+ else if (apriority > bpriority) {
297
+ result = 1;
298
+ }
299
+ else {
300
+ //same priority sort via intializer name alphabetically
301
+ result = (_h = (_f = (_e = a === null || a === void 0 ? void 0 : a.initializer) === null || _e === void 0 ? void 0 : _e.name) === null || _f === void 0 ? void 0 : _f.localeCompare((_g = b === null || b === void 0 ? void 0 : b.initializer) === null || _g === void 0 ? void 0 : _g.name)) !== null && _h !== void 0 ? _h : 0;
302
+ }
303
+ return result;
304
+ };
305
+ var INIT_PRIORITY;
306
+ (function (INIT_PRIORITY) {
307
+ INIT_PRIORITY[INIT_PRIORITY["START"] = 1] = "START";
308
+ INIT_PRIORITY[INIT_PRIORITY["PRE_PERIPHERAL"] = 50] = "PRE_PERIPHERAL";
309
+ INIT_PRIORITY[INIT_PRIORITY["PERIPHERAL"] = 100] = "PERIPHERAL";
310
+ INIT_PRIORITY[INIT_PRIORITY["POST_PERIPHERAL"] = 150] = "POST_PERIPHERAL";
311
+ INIT_PRIORITY[INIT_PRIORITY["DEFAULT"] = 200] = "DEFAULT";
312
+ INIT_PRIORITY[INIT_PRIORITY["PRE_SOFTWARE"] = 250] = "PRE_SOFTWARE";
313
+ INIT_PRIORITY[INIT_PRIORITY["SOFTWARE"] = 300] = "SOFTWARE";
314
+ INIT_PRIORITY[INIT_PRIORITY["POST_SOFTWARE"] = 350] = "POST_SOFTWARE";
315
+ INIT_PRIORITY[INIT_PRIORITY["END"] = 400] = "END";
316
+ })(INIT_PRIORITY = exports.INIT_PRIORITY || (exports.INIT_PRIORITY = {}));
317
+ var createMock = function () {
318
+ return {
319
+ interfaceId: getInterfaceId(),
320
+ payload: {
321
+ moduleName: "MyModule",
322
+ },
323
+ args: {},
324
+ results: {
325
+ requestId: {
326
+ initializer: {
327
+ name: "mymodule_init",
328
+ header: {
329
+ name: "mymodule.h",
330
+ path: "include/",
331
+ },
332
+ },
333
+ registerInit: [
334
+ {
335
+ name: "OSCCON1",
336
+ comment: "//Comments",
337
+ value: 55,
338
+ valueAsHex: "0x55",
339
+ },
340
+ ],
341
+ },
342
+ },
343
+ };
344
+ };
345
+ var createPrototypeImport = function () {
346
+ return {
347
+ interfaceId: getInterfaceId(),
348
+ };
349
+ };
350
+ var createPrototypeExport = function () {
351
+ return {
352
+ interfaces: [{ interfaceId: getInterfaceId() }],
353
+ };
354
+ };
355
+ exports.Interface = {
356
+ createPrototypeExport: createPrototypeExport,
357
+ createPrototypeImport: createPrototypeImport,
358
+ getInterfaceId: getInterfaceId,
359
+ createMock: createMock,
360
+ };
361
+ //# sourceMappingURL=initializer-system.js.map
362
+
363
+ /***/ }),
364
+
365
+ /***/ "./node_modules/@microchip/pin-standard/lib/index.js":
366
+ /*!***********************************************************!*\
367
+ !*** ./node_modules/@microchip/pin-standard/lib/index.js ***!
368
+ \***********************************************************/
369
+ /*! no static exports found */
370
+ /***/ (function(module, exports, __webpack_require__) {
371
+
372
+ "use strict";
373
+
374
+ Object.defineProperty(exports, "__esModule", { value: true });
375
+ var pin_standard_1 = __webpack_require__(/*! ./pin-standard */ "./node_modules/@microchip/pin-standard/lib/pin-standard.js");
376
+ exports.pin_standard = pin_standard_1.pin_standard;
377
+ exports.pin_state = pin_standard_1.pin_state;
378
+ exports.direction = pin_standard_1.direction;
379
+ exports.behaviour = pin_standard_1.behaviour;
380
+ exports.data_schema = pin_standard_1.data_schema;
381
+ exports.pin_attribs_enum = pin_standard_1.pin_attribs_enum;
382
+ exports.actiontype = pin_standard_1.actiontype;
383
+ exports.QueryAdapterKey = pin_standard_1.QueryAdapterKey;
384
+ //# sourceMappingURL=index.js.map
385
+
386
+ /***/ }),
387
+
388
+ /***/ "./node_modules/@microchip/pin-standard/lib/pin-standard.js":
389
+ /*!******************************************************************!*\
390
+ !*** ./node_modules/@microchip/pin-standard/lib/pin-standard.js ***!
391
+ \******************************************************************/
392
+ /*! no static exports found */
393
+ /***/ (function(module, exports, __webpack_require__) {
394
+
395
+ "use strict";
396
+
397
+ Object.defineProperty(exports, "__esModule", { value: true });
398
+ exports.pin_standard = function () {
399
+ return {
400
+ interfaceId: {
401
+ name: "pin-standard",
402
+ version: "0.1.0",
403
+ },
404
+ };
405
+ };
406
+ var QueryAdapterKey;
407
+ (function (QueryAdapterKey) {
408
+ QueryAdapterKey["ALLPINS"] = "allpins";
409
+ QueryAdapterKey["ALLPINS_FOR_ATTRIBS"] = "allpins_for_attribs";
410
+ QueryAdapterKey["PPS"] = "pps";
411
+ QueryAdapterKey["PORTMUX"] = "portmux";
412
+ QueryAdapterKey["HASPPS"] = "hasPPS";
413
+ })(QueryAdapterKey = exports.QueryAdapterKey || (exports.QueryAdapterKey = {}));
414
+ var pin_state;
415
+ (function (pin_state) {
416
+ pin_state["EMPTY"] = "E";
417
+ pin_state["LOCKED"] = "L";
418
+ pin_state["UNLOCK"] = "UL";
419
+ pin_state["DiSABLE_LOCK"] = "DL";
420
+ pin_state["UNLOCKED_DISABLED"] = "DUL";
421
+ pin_state["LOCKED_LINK"] = "LL";
422
+ pin_state["UNLOCKED_MUX"] = "MUL";
423
+ pin_state["LOCKED_CONFLICT"] = "CL";
424
+ })(pin_state = exports.pin_state || (exports.pin_state = {}));
425
+ var pin_interrupts_enum;
426
+ (function (pin_interrupts_enum) {
427
+ pin_interrupts_enum["INTDIS_BUFFEN"] = "INTDIS_BUFFEN";
428
+ pin_interrupts_enum["BOTH_EDGES"] = "BOTH_EDGES";
429
+ pin_interrupts_enum["RISING_EDGE"] = "RISING_EDGE";
430
+ pin_interrupts_enum["FALLING_EDGE"] = "FALLING_EDGE";
431
+ pin_interrupts_enum["NONE"] = "NONE";
432
+ pin_interrupts_enum["LOW_LEVEL"] = "LOW_LEVEL";
433
+ })(pin_interrupts_enum = exports.pin_interrupts_enum || (exports.pin_interrupts_enum = {}));
434
+ var pin_attribs_enum;
435
+ (function (pin_attribs_enum) {
436
+ pin_attribs_enum["aliasReEx"] = "aliasReEx";
437
+ pin_attribs_enum["cname"] = "cname";
438
+ pin_attribs_enum["high"] = "high";
439
+ pin_attribs_enum["inv"] = "inv";
440
+ pin_attribs_enum["wpu"] = "wpu";
441
+ pin_attribs_enum["wpd"] = "wpd";
442
+ pin_attribs_enum["od"] = "od";
443
+ pin_attribs_enum["analog"] = "analog";
444
+ pin_attribs_enum["ioc"] = "ioc";
445
+ pin_attribs_enum["intcallback"] = "intcallback";
446
+ pin_attribs_enum["alias"] = "alias";
447
+ })(pin_attribs_enum = exports.pin_attribs_enum || (exports.pin_attribs_enum = {}));
448
+ var actiontype;
449
+ (function (actiontype) {
450
+ actiontype["SETACTION"] = "SETACTION";
451
+ actiontype["ATTRIBACTION"] = "ATTRIBACTION";
452
+ })(actiontype = exports.actiontype || (exports.actiontype = {}));
453
+ var direction;
454
+ (function (direction) {
455
+ direction["output"] = "output";
456
+ direction["input"] = "input";
457
+ direction["bidirectional"] = "bidirectional";
458
+ })(direction = exports.direction || (exports.direction = {}));
459
+ var behaviour;
460
+ (function (behaviour) {
461
+ behaviour["LOCK_UNLOCK"] = "LOCK_UNLOCK";
462
+ behaviour["ALWAYS_LOCKED"] = "ALWAYS_LOCKED";
463
+ behaviour["SINGLE_PIN_MUX"] = "SINGLE_PIN_MUX";
464
+ behaviour["OPTIONAL_PIN_MUX"] = "OPTIONAL_PIN_MUX";
465
+ behaviour["PPS"] = "PPS";
466
+ behaviour["PORTMUX"] = "PORTMUX";
467
+ behaviour["EXCLUSIVE_LOCK"] = "EXCLUSIVE_LOCK";
468
+ behaviour["LOCKED_DISABLED"] = "LOCKED_DISABLED";
469
+ })(behaviour = exports.behaviour || (exports.behaviour = {}));
470
+ //------------------------------------ schema ------------------------------------//
471
+ exports.data_schema = {
472
+ $schema: "http://json-schema.org/draft-07/schema#",
473
+ $ref: "#/definitions/intf_data",
474
+ definitions: {
475
+ intf_data: {
476
+ type: "object",
477
+ properties: {
478
+ rows: {
479
+ type: "array",
480
+ items: {
481
+ $ref: "#/definitions/pin_row",
482
+ },
483
+ },
484
+ },
485
+ required: ["rows"],
486
+ additionalProperties: false,
487
+ },
488
+ pin_row: {
489
+ type: "object",
490
+ properties: {
491
+ name: {
492
+ type: "string",
493
+ },
494
+ module: {
495
+ type: "string",
496
+ },
497
+ function: {
498
+ type: "string",
499
+ },
500
+ direction: {
501
+ $ref: "#/definitions/direction",
502
+ },
503
+ filter: {
504
+ $ref: "#/definitions/filter",
505
+ },
506
+ behaviour: {
507
+ $ref: "#/definitions/behaviour",
508
+ },
509
+ behaviourMeta: {
510
+ $ref: "#/definitions/behaviourMeta",
511
+ },
512
+ attribs: {
513
+ type: "array",
514
+ items: {
515
+ $ref: "#/definitions/pin_attribs",
516
+ },
517
+ },
518
+ groupsdata: {
519
+ $ref: "#/definitions/pingroups_data",
520
+ },
521
+ actions: {},
522
+ },
523
+ required: ["name", "module", "function", "direction", "filter", "behaviour"],
524
+ additionalProperties: false,
525
+ },
526
+ direction: {
527
+ type: "string",
528
+ enum: ["output", "input", "bidirectional"],
529
+ },
530
+ filter: {
531
+ type: "object",
532
+ properties: {
533
+ module: {
534
+ type: "string",
535
+ },
536
+ aliasReEx: {
537
+ type: "string",
538
+ },
539
+ },
540
+ required: ["module", "aliasReEx"],
541
+ additionalProperties: false,
542
+ },
543
+ behaviour: {
544
+ type: "string",
545
+ enum: [
546
+ "LOCK_UNLOCK",
547
+ "ALWAYS_LOCKED",
548
+ "SINGLE_PIN_MUX",
549
+ "OPTIONAL_PIN_MUX",
550
+ "PPS",
551
+ "PORTMUX",
552
+ "EXCLUSIVE_LOCK",
553
+ "LOCKED_DISABLED",
554
+ ],
555
+ },
556
+ behaviourMeta: {
557
+ type: "object",
558
+ properties: {
559
+ lockPinRegEx: {
560
+ type: "string",
561
+ },
562
+ },
563
+ required: ["lockPinRegEx"],
564
+ additionalProperties: false,
565
+ },
566
+ pin_attribs: {
567
+ type: "object",
568
+ properties: {
569
+ aliasReEx: {
570
+ type: "string",
571
+ },
572
+ cname: {
573
+ type: "string",
574
+ },
575
+ high: {
576
+ type: "boolean",
577
+ },
578
+ inv: {
579
+ type: "boolean",
580
+ },
581
+ wpu: {
582
+ type: "boolean",
583
+ },
584
+ wpd: {
585
+ type: "boolean",
586
+ },
587
+ od: {
588
+ type: "boolean",
589
+ },
590
+ analog: {
591
+ type: "boolean",
592
+ },
593
+ ioc: {
594
+ $ref: "#/definitions/pin_interrupts_enum",
595
+ },
596
+ bidirection_out: {
597
+ type: "boolean",
598
+ },
599
+ },
600
+ required: ["aliasReEx"],
601
+ additionalProperties: false,
602
+ },
603
+ pin_interrupts_enum: {
604
+ type: "string",
605
+ enum: [
606
+ "INTDIS_BUFFEN",
607
+ "BOTH_EDGES",
608
+ "RISING_EDGE",
609
+ "FALLING_EDGE",
610
+ "NONE",
611
+ "LOW_LEVEL",
612
+ ],
613
+ },
614
+ pingroups_data: {
615
+ type: "object",
616
+ properties: {
617
+ groups: {
618
+ type: "array",
619
+ items: {
620
+ $ref: "#/definitions/pins_group",
621
+ },
622
+ },
623
+ },
624
+ required: ["groups"],
625
+ additionalProperties: false,
626
+ },
627
+ pins_group: {
628
+ type: "object",
629
+ properties: {
630
+ name: {
631
+ type: "string",
632
+ },
633
+ filter: {
634
+ $ref: "#/definitions/grpfilter",
635
+ },
636
+ datapath: {
637
+ type: "string",
638
+ },
639
+ },
640
+ required: ["name", "filter"],
641
+ additionalProperties: false,
642
+ },
643
+ grpfilter: {
644
+ type: "object",
645
+ properties: {
646
+ aliasReEx: {
647
+ type: "string",
648
+ },
649
+ },
650
+ required: ["aliasReEx"],
651
+ additionalProperties: false,
652
+ },
653
+ },
654
+ };
655
+ //# sourceMappingURL=pin-standard.js.map
656
+
657
+ /***/ }),
658
+
659
+ /***/ "./node_modules/@microchip/scf-common/lib/Processor.js":
660
+ /*!*************************************************************!*\
661
+ !*** ./node_modules/@microchip/scf-common/lib/Processor.js ***!
662
+ \*************************************************************/
663
+ /*! no static exports found */
664
+ /***/ (function(module, exports, __webpack_require__) {
665
+
666
+ "use strict";
667
+
668
+ var __assign = (this && this.__assign) || function () {
669
+ __assign = Object.assign || function(t) {
670
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
671
+ s = arguments[i];
672
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
673
+ t[p] = s[p];
674
+ }
675
+ return t;
676
+ };
677
+ return __assign.apply(this, arguments);
678
+ };
679
+ Object.defineProperty(exports, "__esModule", { value: true });
680
+ exports.mapOptionLabels = exports.filterOptions = exports.isSingleton = exports.isUnassigned = exports.isAssigned = exports.hasOptions = exports.AlertTypes = void 0;
681
+ var AlertTypes;
682
+ (function (AlertTypes) {
683
+ AlertTypes["Error"] = "error";
684
+ AlertTypes["Warning"] = "warning";
685
+ AlertTypes["Hint"] = "hint";
686
+ })(AlertTypes = exports.AlertTypes || (exports.AlertTypes = {}));
687
+ /**
688
+ * See User-Defined Type Guards in the Typescript Handbook on Advanced Types
689
+ * @see https://www.typescriptlang.org/docs/handbook/advanced-types.html
690
+ */
691
+ function hasOptions(dep) {
692
+ return dep.options !== undefined;
693
+ }
694
+ exports.hasOptions = hasOptions;
695
+ /**
696
+ * See User-Defined Type Guards in the Typescript Handbook on Advanced Types
697
+ * @see https://www.typescriptlang.org/docs/handbook/advanced-types.html
698
+ */
699
+ function isAssigned(dep) {
700
+ return typeof dep.handle !== "undefined";
701
+ }
702
+ exports.isAssigned = isAssigned;
703
+ /**
704
+ * See User-Defined Type Guards in the Typescript Handbook on Advanced Types
705
+ * @see https://www.typescriptlang.org/docs/handbook/advanced-types.html
706
+ */
707
+ function isUnassigned(dep) {
708
+ return typeof dep.handle === "undefined";
709
+ }
710
+ exports.isUnassigned = isUnassigned;
711
+ /**
712
+ * Type guard function for SingletonExport
713
+ * See User-Defined Type Guards in the Typescript Handbook on Advanced Types
714
+ * @see https://www.typescriptlang.org/docs/handbook/advanced-types.html
715
+ * @param resource the export to check on being a singleton
716
+ * @deprecated No longer used. Replaced with dynamic singleton identification
717
+ * at runtime.
718
+ */
719
+ function isSingleton(resource) {
720
+ return typeof resource.isSingleton !== "undefined" && resource.isSingleton;
721
+ }
722
+ exports.isSingleton = isSingleton;
723
+ /**
724
+ * Returns a copy of `populatedImport` with all options removed which
725
+ * cause `optionFilter` to return false.
726
+ */
727
+ function filterOptions(populatedImport, optionFilter) {
728
+ if (populatedImport.options) {
729
+ return __assign(__assign({}, populatedImport), { options: populatedImport.options.filter(optionFilter) });
730
+ }
731
+ return populatedImport;
732
+ }
733
+ exports.filterOptions = filterOptions;
734
+ /**
735
+ * Returns a copy of `populatedImport` with the options' handle labels
736
+ * mapped according to `labelFactory`.
737
+ */
738
+ function mapOptionLabels(populatedImport, labelFactory) {
739
+ if (populatedImport.options) {
740
+ return __assign(__assign({}, populatedImport), { options: populatedImport.options.map(function (option) {
741
+ return __assign(__assign({}, option), { handle: __assign(__assign({}, option.handle), { label: labelFactory(option) }) });
742
+ }) });
743
+ }
744
+ return populatedImport;
745
+ }
746
+ exports.mapOptionLabels = mapOptionLabels;
747
+ //# sourceMappingURL=Processor.js.map
748
+
749
+ /***/ }),
750
+
751
+ /***/ "./node_modules/@microchip/scf-interface/lib/c-function-types.js":
752
+ /*!***********************************************************************!*\
753
+ !*** ./node_modules/@microchip/scf-interface/lib/c-function-types.js ***!
754
+ \***********************************************************************/
755
+ /*! no static exports found */
756
+ /***/ (function(module, exports, __webpack_require__) {
757
+
758
+ "use strict";
759
+
760
+ Object.defineProperty(exports, "__esModule", { value: true });
761
+ exports.buildSimpleApi = function (functions) {
762
+ var api = {};
763
+ for (var key in functions) {
764
+ api[key] = buildFunction(functions[key]);
765
+ }
766
+ return api;
767
+ };
768
+ var buildFunction = function (cFunction) {
769
+ return cFunction.returns + " " + cFunction.name + "(" + buildArguments(cFunction.arguments) + ")";
770
+ };
771
+ var buildArguments = function (args) {
772
+ if (args) {
773
+ return args.map(function (arg) { return arg.type + " " + arg.name; }).join(", ");
774
+ }
775
+ else {
776
+ return "void";
777
+ }
778
+ };
779
+
780
+
781
+ /***/ }),
782
+
783
+ /***/ "./node_modules/@microchip/scf-interface/lib/helpers.js":
784
+ /*!**************************************************************!*\
785
+ !*** ./node_modules/@microchip/scf-interface/lib/helpers.js ***!
786
+ \**************************************************************/
787
+ /*! no static exports found */
788
+ /***/ (function(module, exports, __webpack_require__) {
789
+
790
+ "use strict";
791
+
792
+ Object.defineProperty(exports, "__esModule", { value: true });
793
+ exports.getInterfaceName = function (pkgJson) {
794
+ var strReplace = "@microchip/";
795
+ var interfaceName;
796
+ if (pkgJson) {
797
+ interfaceName = pkgJson["name"];
798
+ if (interfaceName) {
799
+ interfaceName = interfaceName.replace(strReplace, "");
800
+ }
801
+ }
802
+ if (!interfaceName) {
803
+ throw new Error("Invalid Interface Name...!");
804
+ }
805
+ return interfaceName;
806
+ };
807
+ exports.getInterfaceVersion = function (pkgJson) {
808
+ var versionRegex = new RegExp("\\d+.\\d+.\\d+");
809
+ var version;
810
+ if (pkgJson) {
811
+ version = pkgJson["version"];
812
+ }
813
+ if (!version && !versionRegex.test(version)) {
814
+ throw new Error("Invalid Interface Version...!");
815
+ }
816
+ return version;
817
+ };
818
+
819
+
820
+ /***/ }),
821
+
822
+ /***/ "./node_modules/@microchip/scf-interface/lib/index.js":
823
+ /*!************************************************************!*\
824
+ !*** ./node_modules/@microchip/scf-interface/lib/index.js ***!
825
+ \************************************************************/
826
+ /*! no static exports found */
827
+ /***/ (function(module, exports, __webpack_require__) {
828
+
829
+ "use strict";
830
+
831
+ Object.defineProperty(exports, "__esModule", { value: true });
832
+ var c_function_types_1 = __webpack_require__(/*! ./c-function-types */ "./node_modules/@microchip/scf-interface/lib/c-function-types.js");
833
+ exports.buildSimpleApi = c_function_types_1.buildSimpleApi;
834
+ var helpers_1 = __webpack_require__(/*! ./helpers */ "./node_modules/@microchip/scf-interface/lib/helpers.js");
835
+ exports.getInterfaceName = helpers_1.getInterfaceName;
836
+ exports.getInterfaceVersion = helpers_1.getInterfaceVersion;
837
+
838
+
839
+ /***/ }),
840
+
841
+ /***/ "./src/ClockCalculator.ts":
842
+ /*!********************************!*\
843
+ !*** ./src/ClockCalculator.ts ***!
844
+ \********************************/
845
+ /*! exports provided: ClockCalculator */
846
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
847
+
848
+ "use strict";
849
+ __webpack_require__.r(__webpack_exports__);
850
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClockCalculator", function() { return ClockCalculator; });
851
+ /* harmony import */ var _StringConstants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./StringConstants */ "./src/StringConstants.ts");
852
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
853
+
854
+ 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; }
855
+
856
+
857
+ var ClockCalculator = // in Hz
858
+ // in Hz
859
+ function ClockCalculator(oscSelect, HFInternalClk, externalClk, clkDivider) {
860
+ var _this = this;
861
+
862
+ _classCallCheck(this, ClockCalculator);
863
+
864
+ _defineProperty(this, "lfintosc", "31000");
865
+
866
+ _defineProperty(this, "mfintosc", "500000");
867
+
868
+ _defineProperty(this, "mfintosc_31KHz", "31250");
869
+
870
+ _defineProperty(this, "sosc", "32768");
871
+
872
+ _defineProperty(this, "oscSelect", void 0);
873
+
874
+ _defineProperty(this, "HFInternalClk", void 0);
875
+
876
+ _defineProperty(this, "externalClk", void 0);
877
+
878
+ _defineProperty(this, "clkDivider", void 0);
879
+
880
+ _defineProperty(this, "MAX_PLL", 16000000);
881
+
882
+ _defineProperty(this, "MIN_PLL", 3000000);
883
+
884
+ _defineProperty(this, "getCurrentSystemClk", function () {
885
+ var currentSystemClk;
886
+ var HFClk;
887
+
888
+ if (_this.oscSelect === _StringConstants__WEBPACK_IMPORTED_MODULE_0__["StringConstants"].SOSC) {
889
+ currentSystemClk = 32768 / _this.clkDivider;
890
+ } else if (_this.oscSelect === _StringConstants__WEBPACK_IMPORTED_MODULE_0__["StringConstants"].LFINTOSC) {
891
+ currentSystemClk = 31000 / _this.clkDivider;
892
+ } else if (_this.oscSelect === _StringConstants__WEBPACK_IMPORTED_MODULE_0__["StringConstants"].HFINTOSC) {
893
+ var _this$HFInternalClk$r, _this$HFInternalClk;
894
+
895
+ HFClk = parseInt((_this$HFInternalClk$r = (_this$HFInternalClk = _this.HFInternalClk) === null || _this$HFInternalClk === void 0 ? void 0 : _this$HFInternalClk.replace("_MHz", "")) !== null && _this$HFInternalClk$r !== void 0 ? _this$HFInternalClk$r : "1000000");
896
+ currentSystemClk = HFClk * 1000000 / _this.clkDivider;
897
+ } else if (_this.oscSelect === _StringConstants__WEBPACK_IMPORTED_MODULE_0__["StringConstants"].HFINTOSC_2xPLL) {
898
+ var _this$HFInternalClk$r2, _this$HFInternalClk2;
899
+
900
+ HFClk = parseInt((_this$HFInternalClk$r2 = (_this$HFInternalClk2 = _this.HFInternalClk) === null || _this$HFInternalClk2 === void 0 ? void 0 : _this$HFInternalClk2.replace("_MHz", "")) !== null && _this$HFInternalClk$r2 !== void 0 ? _this$HFInternalClk$r2 : "1000000");
901
+
902
+ if (HFClk == 8 || HFClk == 12 || HFClk == 16) {
903
+ currentSystemClk = HFClk * 2 * 1000000 / _this.clkDivider;
904
+ } else {
905
+ currentSystemClk = HFClk * 1000000 / _this.clkDivider;
906
+ }
907
+ } else if (_this.oscSelect === _StringConstants__WEBPACK_IMPORTED_MODULE_0__["StringConstants"].EXTOSC) {
908
+ currentSystemClk = _this.externalClk / _this.clkDivider;
909
+ } else {
910
+ if (_this.externalClk <= _this.MIN_PLL || _this.externalClk > _this.MAX_PLL) {
911
+ currentSystemClk = _this.externalClk / _this.clkDivider;
912
+ } else {
913
+ currentSystemClk = _this.externalClk * 4 / _this.clkDivider;
914
+ }
915
+ }
916
+
917
+ return Math.round(currentSystemClk);
918
+ });
919
+
920
+ _defineProperty(this, "getHfIntOsc", function () {
921
+ var _this$HFInternalClk$r3, _this$HFInternalClk3;
922
+
923
+ return (_this$HFInternalClk$r3 = (_this$HFInternalClk3 = _this.HFInternalClk) === null || _this$HFInternalClk3 === void 0 ? void 0 : _this$HFInternalClk3.replace("_MHz", "000000")) !== null && _this$HFInternalClk$r3 !== void 0 ? _this$HFInternalClk$r3 : "1000000";
924
+ });
925
+
926
+ _defineProperty(this, "getMfIntOsc", function () {
927
+ return _this.mfintosc;
928
+ });
929
+
930
+ _defineProperty(this, "getMfIntOsc_31KHz", function () {
931
+ return _this.mfintosc_31KHz;
932
+ });
933
+
934
+ _defineProperty(this, "getLfIntOsc", function () {
935
+ return _this.lfintosc;
936
+ });
937
+
938
+ _defineProperty(this, "getExtOsc", function () {
939
+ return _this.externalClk.toString();
940
+ });
941
+
942
+ _defineProperty(this, "getSosc", function () {
943
+ return _this.sosc;
944
+ });
945
+
946
+ this.oscSelect = oscSelect;
947
+ this.HFInternalClk = HFInternalClk;
948
+ this.externalClk = externalClk;
949
+ this.clkDivider = clkDivider;
950
+ };
951
+
952
+ /***/ }),
953
+
954
+ /***/ "./src/CreatorFunctions.ts":
955
+ /*!*********************************!*\
956
+ !*** ./src/CreatorFunctions.ts ***!
957
+ \*********************************/
958
+ /*! exports provided: getCreatorFunctions */
959
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
960
+
961
+ "use strict";
962
+ __webpack_require__.r(__webpack_exports__);
963
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCreatorFunctions", function() { return getCreatorFunctions; });
964
+ var getCreatorFunctions = function getCreatorFunctions() {
965
+ return {
966
+ shouldImport: shouldImport
967
+ };
968
+ };
969
+
970
+ var shouldImport = function shouldImport(importKey, state) {
971
+ return true;
972
+ };
973
+
974
+ /***/ }),
975
+
976
+ /***/ "./src/DerivedData.ts":
977
+ /*!****************************!*\
978
+ !*** ./src/DerivedData.ts ***!
979
+ \****************************/
980
+ /*! exports provided: getDerivedData, EmptyDerivedData, MyDerivedData */
981
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
982
+
983
+ "use strict";
984
+ __webpack_require__.r(__webpack_exports__);
985
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDerivedData", function() { return getDerivedData; });
986
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmptyDerivedData", function() { return EmptyDerivedData; });
987
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MyDerivedData", function() { return MyDerivedData; });
988
+ /* 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");
989
+ /* 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__);
990
+ /* harmony import */ var _ClockCalculator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ClockCalculator */ "./src/ClockCalculator.ts");
991
+ /* harmony import */ var _microchip_initializer_system__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @microchip/initializer-system */ "./node_modules/@microchip/initializer-system/lib/src/index.js");
992
+ /* harmony import */ var _microchip_initializer_system__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_microchip_initializer_system__WEBPACK_IMPORTED_MODULE_2__);
993
+ /* harmony import */ var _StringConstants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./StringConstants */ "./src/StringConstants.ts");
994
+ /* harmony import */ var _generated_module_src_pins_PCPHelper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../generated_module/src/pins/PCPHelper */ "./generated_module/src/pins/PCPHelper.ts");
995
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
996
+
997
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
998
+
999
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1000
+
1001
+ 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; }
1002
+
1003
+
1004
+
1005
+
1006
+
1007
+
1008
+ var getDerivedData = function getDerivedData(dataModel) {
1009
+ if (dataModel) {
1010
+ return new MyDerivedData(dataModel);
1011
+ }
1012
+
1013
+ return new EmptyDerivedData();
1014
+ }; //This data will be used at the creator stage and relies on only the state
1015
+
1016
+ var EmptyDerivedData = function EmptyDerivedData() {
1017
+ _classCallCheck(this, EmptyDerivedData);
1018
+
1019
+ _defineProperty(this, "getMyFunctions", function () {
1020
+ return {};
1021
+ });
1022
+
1023
+ _defineProperty(this, "getModel", function () {
1024
+ return undefined;
1025
+ });
1026
+ }; //This data will be used at the processor stage
1027
+
1028
+ var MyDerivedData = function MyDerivedData(dataModel) {
1029
+ var _this = this;
1030
+
1031
+ _classCallCheck(this, MyDerivedData);
1032
+
1033
+ _defineProperty(this, "dataModel", void 0);
1034
+
1035
+ _defineProperty(this, "clockCalculator", void 0);
1036
+
1037
+ _defineProperty(this, "getClockCalculator", function () {
1038
+ if (!_this.clockCalculator) {
1039
+ var _this$getModel$getCom, _this$getModel$getCom2, _this$getModel$getCom3, _this$getModel$getCom4;
1040
+
1041
+ _this.clockCalculator = new _ClockCalculator__WEBPACK_IMPORTED_MODULE_1__["ClockCalculator"]((_this$getModel$getCom = _this.getModel().getComponentValue("noscOsccon1")) !== null && _this$getModel$getCom !== void 0 ? _this$getModel$getCom : "", (_this$getModel$getCom2 = _this.getModel().getComponentValue("hffrqOscfrq")) !== null && _this$getModel$getCom2 !== void 0 ? _this$getModel$getCom2 : "", (_this$getModel$getCom3 = _this.getModel().getComponentValue("externalClk")) !== null && _this$getModel$getCom3 !== void 0 ? _this$getModel$getCom3 : 32768, parseInt((_this$getModel$getCom4 = _this.getModel().getComponentValue("ndivOsccon1")) !== null && _this$getModel$getCom4 !== void 0 ? _this$getModel$getCom4 : ""));
1042
+ }
1043
+
1044
+ return _this.clockCalculator;
1045
+ });
1046
+
1047
+ _defineProperty(this, "getMyFunctions", function () {
1048
+ return {
1049
+ moduleName: _this.getModuleName,
1050
+ alerts: _this.getMyAlerts,
1051
+ isEnabled: _this.isEnabled,
1052
+ isVisible: _this.isVisible,
1053
+ currentSystemClk: function currentSystemClk() {
1054
+ return _this.getClockCalculator().getCurrentSystemClk();
1055
+ },
1056
+ "fosc-hz_payload": function foscHz_payload() {
1057
+ return _this.getClockCalculator().getCurrentSystemClk().toString();
1058
+ },
1059
+ initializer_system_results: _this.initializer_system_results,
1060
+ config_device_results: _this.config_device_results,
1061
+ templateData: _this.getTemplateData,
1062
+ config_request_args: function config_request_args() {
1063
+ return ["FEXTOSC", "CLKOUTEN", "MCLRE", "LVP"];
1064
+ },
1065
+ "osc-clocks_payload": _this.getOscClocksProcessedPayload,
1066
+ doNotShow: function doNotShow() {
1067
+ return false;
1068
+ },
1069
+ getPinsLogic: _generated_module_src_pins_PCPHelper__WEBPACK_IMPORTED_MODULE_4__["getPinsLogic"],
1070
+ importName: _this.friendlyImportName
1071
+ };
1072
+ });
1073
+
1074
+ _defineProperty(this, "friendlyImportName", function (importKey) {
1075
+ if (importKey === "scf_pic8_osc_v1") return "Oscillator Hardware";
1076
+ if (importKey === "initializer_system") return "system.c Initialize()";
1077
+ if (importKey === "config_device") return "Configuration Device";
1078
+ if (importKey === "config_request") return "Configuration Request";
1079
+ if (importKey === "pin_standard") return "Pins";
1080
+ return importKey;
1081
+ });
1082
+
1083
+ _defineProperty(this, "getOscClocksProcessedPayload", function () {
1084
+ var _this$getClockCalcula, _this$getClockCalcula2, _this$getClockCalcula3, _this$getClockCalcula4, _this$getClockCalcula5, _this$getClockCalcula6, _this$getClockCalcula7;
1085
+
1086
+ var oscObj = {
1087
+ extosc: (_this$getClockCalcula = _this.getClockCalculator().getExtOsc()) !== null && _this$getClockCalcula !== void 0 ? _this$getClockCalcula : "32768",
1088
+ fosc: (_this$getClockCalcula2 = _this.getClockCalculator().getCurrentSystemClk().toString()) !== null && _this$getClockCalcula2 !== void 0 ? _this$getClockCalcula2 : "1000000",
1089
+ hfintosc: (_this$getClockCalcula3 = _this.getClockCalculator().getHfIntOsc()) !== null && _this$getClockCalcula3 !== void 0 ? _this$getClockCalcula3 : "1000000",
1090
+ lfintosc: (_this$getClockCalcula4 = _this.getClockCalculator().getLfIntOsc()) !== null && _this$getClockCalcula4 !== void 0 ? _this$getClockCalcula4 : "31000",
1091
+ mfintosc: (_this$getClockCalcula5 = _this.getClockCalculator().getMfIntOsc()) !== null && _this$getClockCalcula5 !== void 0 ? _this$getClockCalcula5 : "500000",
1092
+ mfintosc_31Khz: (_this$getClockCalcula6 = _this.getClockCalculator().getMfIntOsc_31KHz()) !== null && _this$getClockCalcula6 !== void 0 ? _this$getClockCalcula6 : "31250",
1093
+ sosc: (_this$getClockCalcula7 = _this.getClockCalculator().getSosc()) !== null && _this$getClockCalcula7 !== void 0 ? _this$getClockCalcula7 : "32768"
1094
+ };
1095
+ var hasSosc = _this.dataModel.isComponentValue("soscenOscen") !== undefined ? true : false;
1096
+
1097
+ if (hasSosc) {
1098
+ oscObj.hasSosc = true;
1099
+ oscObj.soscEnabled = _this.dataModel.isComponentValue("soscenOscen");
1100
+ oscObj.soscPowerMode = _this.dataModel.getComponentValue("soscpwrOsccon3");
1101
+ }
1102
+
1103
+ return oscObj;
1104
+ });
1105
+
1106
+ _defineProperty(this, "getModuleName", function () {
1107
+ return "Clock Control";
1108
+ });
1109
+
1110
+ _defineProperty(this, "getModel", function () {
1111
+ return _this.dataModel;
1112
+ });
1113
+
1114
+ _defineProperty(this, "getTemplateData", function () {
1115
+ var _this$dataModel$isCom;
1116
+
1117
+ var headers = {
1118
+ name: "clock.h",
1119
+ path: "../"
1120
+ }; // const initRegisters = this.dataModel.getRegisterValues();
1121
+
1122
+ var registerValues = _this.dataModel.getRegisterValues();
1123
+
1124
+ return _objectSpread({
1125
+ productName: "CCL",
1126
+ productVersion: "1.8.2",
1127
+ compiler: "XC8 v2.20",
1128
+ tool: "MPLAB X 5.40",
1129
+ deviceFrequency: _this.getClockCalculator().getCurrentSystemClk().toString(),
1130
+ // initRegisters: initRegisters,
1131
+ header: headers,
1132
+ moduleNameUpperCase: _this.getModuleName().toUpperCase(),
1133
+ moduleNameLowerCase: _this.getModuleName().toLowerCase(),
1134
+ isPllEnabled: (_this$dataModel$isCom = _this.dataModel.isComponentValue("pllenOscen")) !== null && _this$dataModel$isCom !== void 0 ? _this$dataModel$isCom : false
1135
+ }, registerValues);
1136
+ });
1137
+
1138
+ _defineProperty(this, "initializer_system_results", function () {
1139
+ return {
1140
+ initializer: {
1141
+ name: "CLOCK_Initialize",
1142
+ header: {
1143
+ name: "clock.h",
1144
+ path: "system/"
1145
+ },
1146
+ priority: _microchip_initializer_system__WEBPACK_IMPORTED_MODULE_2__["INIT_PRIORITY"].START
1147
+ }
1148
+ };
1149
+ });
1150
+
1151
+ _defineProperty(this, "config_device_results", function () {
1152
+ return {
1153
+ headers: [{
1154
+ name: "clock.h",
1155
+ path: "system/"
1156
+ }]
1157
+ };
1158
+ });
1159
+
1160
+ _defineProperty(this, "isEnabled", function (componentName) {
1161
+ var _this$dataModel$getCo;
1162
+
1163
+ switch (componentName) {
1164
+ case "hffrqOscfrq":
1165
+ return ((_this$dataModel$getCo = _this.dataModel.getComponentValue("noscOsccon1")) === null || _this$dataModel$getCo === void 0 ? void 0 : _this$dataModel$getCo.indexOf("HF")) != -1;
1166
+
1167
+ case "currentSystemClk":
1168
+ return false;
1169
+
1170
+ case "lfIntOscFreq":
1171
+ return false;
1172
+
1173
+ default:
1174
+ return true;
1175
+ }
1176
+ });
1177
+
1178
+ _defineProperty(this, "isVisible", function (componentName) {
1179
+ var componentValue = _this.dataModel.getComponentValue("noscOsccon1");
1180
+
1181
+ switch (componentName) {
1182
+ case "externalClk":
1183
+ if (componentValue === _StringConstants__WEBPACK_IMPORTED_MODULE_3__["StringConstants"].EXTOSC || componentValue === _StringConstants__WEBPACK_IMPORTED_MODULE_3__["StringConstants"].EXTOSC_4xPLL) {
1184
+ return true;
1185
+ } else {
1186
+ return false;
1187
+ }
1188
+
1189
+ case "lfIntOscFreq":
1190
+ if (componentValue != _StringConstants__WEBPACK_IMPORTED_MODULE_3__["StringConstants"].LFINTOSC) {
1191
+ return false;
1192
+ } else {
1193
+ return true;
1194
+ }
1195
+
1196
+ case "hffrqOscfrq":
1197
+ if (componentValue != _StringConstants__WEBPACK_IMPORTED_MODULE_3__["StringConstants"].HFINTOSC && componentValue != _StringConstants__WEBPACK_IMPORTED_MODULE_3__["StringConstants"].HFINTOSC_2xPLL) {
1198
+ return false;
1199
+ } else {
1200
+ return true;
1201
+ }
1202
+
1203
+ default:
1204
+ return true;
1205
+ }
1206
+ });
1207
+
1208
+ _defineProperty(this, "getDynamicComponetDefaultValue", function (componentName) {
1209
+ var _this$dataModel$getIm, _selectedOptionVal;
1210
+
1211
+ var externalClkSelectedOptions = (_this$dataModel$getIm = _this.dataModel.getImportValue("config_request")) === null || _this$dataModel$getIm === void 0 ? void 0 : _this$dataModel$getIm[componentName];
1212
+ var selectedOptionVal;
1213
+
1214
+ if (externalClkSelectedOptions) {
1215
+ selectedOptionVal = externalClkSelectedOptions["defaultValue"]["value"];
1216
+ }
1217
+
1218
+ return (_selectedOptionVal = selectedOptionVal) !== null && _selectedOptionVal !== void 0 ? _selectedOptionVal : undefined;
1219
+ });
1220
+
1221
+ _defineProperty(this, "getMyAlerts", function () {
1222
+ var _this$getDynamicCompo, _this$getModel$getCom5, _this$getModel$getCom6, _this$dataModel$getCo2, _this$dataModel$getCo3;
1223
+
1224
+ var alerts = [];
1225
+ var selectedOptionVal = (_this$getDynamicCompo = _this.getDynamicComponetDefaultValue("FEXTOSC")) !== null && _this$getDynamicCompo !== void 0 ? _this$getDynamicCompo : "";
1226
+
1227
+ var noscOsccon1 = _this.dataModel.getComponentValue("noscOsccon1");
1228
+
1229
+ if (noscOsccon1 === _StringConstants__WEBPACK_IMPORTED_MODULE_3__["StringConstants"].EXTOSC_4xPLL || noscOsccon1 === _StringConstants__WEBPACK_IMPORTED_MODULE_3__["StringConstants"].EXTOSC) {
1230
+ alerts.push({
1231
+ type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Hint,
1232
+ text: 'Please configure required "External Oscillator Selection" in System Module config bits'
1233
+ });
1234
+ }
1235
+
1236
+ if (noscOsccon1 === _StringConstants__WEBPACK_IMPORTED_MODULE_3__["StringConstants"].EXTOSC_4xPLL && (((_this$getModel$getCom5 = _this.getModel().getComponentValue("externalClk")) !== null && _this$getModel$getCom5 !== void 0 ? _this$getModel$getCom5 : 0) <= _this.getClockCalculator().MIN_PLL || ((_this$getModel$getCom6 = _this.getModel().getComponentValue("externalClk")) !== null && _this$getModel$getCom6 !== void 0 ? _this$getModel$getCom6 : 0) > _this.getClockCalculator().MAX_PLL)) {
1237
+ alerts.push({
1238
+ type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Warning,
1239
+ text: "The frequency selected does not fall within the PLL locking range. Therefore, the actual frequency produced by hardware maybe unpredictable when the PLL is enabled. Either change the clock frequency or select a different option in Oscillator select."
1240
+ });
1241
+ }
1242
+
1243
+ if (noscOsccon1 === _StringConstants__WEBPACK_IMPORTED_MODULE_3__["StringConstants"].EXTOSC_4xPLL || noscOsccon1 === _StringConstants__WEBPACK_IMPORTED_MODULE_3__["StringConstants"].EXTOSC) {
1244
+ var _this$getModel$getCom7;
1245
+
1246
+ if ((selectedOptionVal === null || selectedOptionVal === void 0 ? void 0 : selectedOptionVal.indexOf("external clock")) != -1 && _this.getClockCalculator().getCurrentSystemClk() > _StringConstants__WEBPACK_IMPORTED_MODULE_3__["StringConstants"].ExtClkFreq_64MHz) {
1247
+ alerts.push({
1248
+ type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Warning,
1249
+ text: "External clock frequency is greater than recommended value (" + _StringConstants__WEBPACK_IMPORTED_MODULE_3__["StringConstants"].ExtClkFreq_64MHz + " Hz)"
1250
+ });
1251
+ }
1252
+
1253
+ if ((selectedOptionVal === null || selectedOptionVal === void 0 ? void 0 : selectedOptionVal.indexOf("crystal oscillator")) != -1 && ((_this$getModel$getCom7 = _this.getModel().getComponentValue("externalClk")) !== null && _this$getModel$getCom7 !== void 0 ? _this$getModel$getCom7 : 0) > 16000000 && _this.getClockCalculator().getCurrentSystemClk() > _StringConstants__WEBPACK_IMPORTED_MODULE_3__["StringConstants"].ExtClkFreq_20MHz) {
1254
+ alerts.push({
1255
+ type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Warning,
1256
+ text: "External clock frequency is greater than recommended value (" + _StringConstants__WEBPACK_IMPORTED_MODULE_3__["StringConstants"].ExtClkFreq_20MHz + " Hz)"
1257
+ });
1258
+ }
1259
+
1260
+ if (selectedOptionVal.indexOf("Oscillator not enabled") != -1 && _this.getClockCalculator().getCurrentSystemClk() > _StringConstants__WEBPACK_IMPORTED_MODULE_3__["StringConstants"].ExtClkFreq_32MHz) {
1261
+ alerts.push({
1262
+ type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Warning,
1263
+ text: "External clock frequency is greater than recommended value (" + _StringConstants__WEBPACK_IMPORTED_MODULE_3__["StringConstants"].ExtClkFreq_32MHz + " Hz)"
1264
+ });
1265
+ }
1266
+ }
1267
+
1268
+ var HFClk = parseInt((_this$dataModel$getCo2 = (_this$dataModel$getCo3 = _this.dataModel.getComponentValue("hffrqOscfrq")) === null || _this$dataModel$getCo3 === void 0 ? void 0 : _this$dataModel$getCo3.replace("_MHz", "")) !== null && _this$dataModel$getCo2 !== void 0 ? _this$dataModel$getCo2 : "0");
1269
+
1270
+ if (_this.dataModel.getComponentValue("noscOsccon1") === _StringConstants__WEBPACK_IMPORTED_MODULE_3__["StringConstants"].HFINTOSC_2xPLL && (HFClk == 1 || HFClk == 2 || HFClk == 4 || HFClk == 32)) {
1271
+ alerts.push({
1272
+ type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Warning,
1273
+ text: "The frequency set in HF Internal Clock may not get generated by the clock hardware properly since it does not fall within the 2xPLL range of 8-16 MHz. Therefore, it is recommended that the option 'HFINTOSC' be selected in the Oscillator select combo box."
1274
+ });
1275
+ }
1276
+
1277
+ return alerts;
1278
+ });
1279
+
1280
+ this.dataModel = dataModel;
1281
+ };
1282
+
1283
+ /***/ }),
1284
+
1285
+ /***/ "./src/PinsLogic.ts":
1286
+ /*!**************************!*\
1287
+ !*** ./src/PinsLogic.ts ***!
1288
+ \**************************/
1289
+ /*! exports provided: getCompletePinData, getRowData */
1290
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1291
+
1292
+ "use strict";
1293
+ __webpack_require__.r(__webpack_exports__);
1294
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCompletePinData", function() { return getCompletePinData; });
1295
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getRowData", function() { return getRowData; });
1296
+ /* harmony import */ var _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @microchip/pin-standard */ "./node_modules/@microchip/pin-standard/lib/index.js");
1297
+ /* harmony import */ var _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__);
1298
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
1299
+
1300
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
1301
+
1302
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
1303
+
1304
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
1305
+
1306
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
1307
+
1308
+ 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; }
1309
+
1310
+
1311
+ // provide complete dynamic data for all pin rows. It overrides static pindata.json
1312
+ var getCompletePinData = function getCompletePinData(appModel) {
1313
+ // way to programatically override the json data
1314
+ return {};
1315
+ }; // overrides pin data for a particular row based on model.
1316
+
1317
+ function getRowData(appModel, rowData) {
1318
+ var _appModel$getImportVa, _appModel$getImportVa2, _appModel$getImportVa3, _appModel$getImportVa4;
1319
+
1320
+ var retRowJSONdata = rowData;
1321
+ var rowActions = [];
1322
+ var clockOutEnable = (_appModel$getImportVa = appModel.getImportValue("config_request")) === null || _appModel$getImportVa === void 0 ? void 0 : _appModel$getImportVa["CLKOUTEN"];
1323
+
1324
+ if (clockOutEnable) {
1325
+ var _appModel$getPCPHelpe;
1326
+
1327
+ delete clockOutEnable["setting"];
1328
+ delete clockOutEnable["displayOptionSetting"];
1329
+ var selectedOption = clockOutEnable["defaultValue"]["value"];
1330
+
1331
+ if (selectedOption.indexOf("CLKOUT function is enabled") != -1) {
1332
+ if (rowData.name === "clockout") {
1333
+ retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
1334
+ behaviourMeta: {
1335
+ lockPinRegEx: "CLKOUT"
1336
+ }
1337
+ });
1338
+ }
1339
+ }
1340
+
1341
+ var isPic18ClkOut = selectedOption === "CLKOUT function is enabled" || selectedOption === "CLKOUT function is disabled" ? true : false;
1342
+ var actionArr = (_appModel$getPCPHelpe = appModel.getPCPHelper) === null || _appModel$getPCPHelpe === void 0 ? void 0 : _appModel$getPCPHelpe.call(appModel).stateActionBuilder(rowData).rowWithName("clockout").forComponent(clockOutEnable).addIfLockedSetValue("CLKOUT", isPic18ClkOut ? "CLKOUT function is enabled" : "CLKOUT function is enabled; FOSC/4 clock appears at OSC2").addIfUnLockedSetValue(".*", isPic18ClkOut ? "CLKOUT function is disabled" : "CLKOUT function is disabled; i/o or oscillator function on OSC2").build(); // Provide the module reference(scriptID) of remote config bits module
1343
+
1344
+ var _iterator = _createForOfIteratorHelper(actionArr),
1345
+ _step;
1346
+
1347
+ try {
1348
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
1349
+ var eachAction = _step.value;
1350
+ var lockedState = eachAction.state[_microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["pin_state"].LOCKED];
1351
+
1352
+ if (lockedState) {
1353
+ var _appModel$getAssigned, _appModel$getAssigned2;
1354
+
1355
+ lockedState.meta = {
1356
+ to: (_appModel$getAssigned = appModel.getAssignedImport("config_request")) === null || _appModel$getAssigned === void 0 ? void 0 : (_appModel$getAssigned2 = _appModel$getAssigned.handle) === null || _appModel$getAssigned2 === void 0 ? void 0 : _appModel$getAssigned2.providerId
1357
+ };
1358
+ }
1359
+
1360
+ var unlockedState = eachAction.state[_microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["pin_state"].UNLOCK];
1361
+
1362
+ if (unlockedState) {
1363
+ var _appModel$getAssigned3, _appModel$getAssigned4;
1364
+
1365
+ unlockedState.meta = {
1366
+ to: (_appModel$getAssigned3 = appModel.getAssignedImport("config_request")) === null || _appModel$getAssigned3 === void 0 ? void 0 : (_appModel$getAssigned4 = _appModel$getAssigned3.handle) === null || _appModel$getAssigned4 === void 0 ? void 0 : _appModel$getAssigned4.providerId
1367
+ };
1368
+ }
1369
+
1370
+ rowActions.push(eachAction);
1371
+ }
1372
+ } catch (err) {
1373
+ _iterator.e(err);
1374
+ } finally {
1375
+ _iterator.f();
1376
+ }
1377
+ }
1378
+
1379
+ var extClkSelect = (_appModel$getImportVa2 = appModel.getImportValue("config_request")) === null || _appModel$getImportVa2 === void 0 ? void 0 : _appModel$getImportVa2["FEXTOSC"];
1380
+
1381
+ if (extClkSelect) {
1382
+ var _appModel$getComponen;
1383
+
1384
+ delete extClkSelect["setting"];
1385
+ delete extClkSelect["displayOptionSetting"];
1386
+ var _selectedOption = extClkSelect["defaultValue"]["value"];
1387
+
1388
+ if (_selectedOption.indexOf("(external clock)") != -1 || _selectedOption.indexOf("EC") != -1) {
1389
+ if (rowData.name === "osc1" || rowData.name === "osc2") {
1390
+ retRowJSONdata = undefined;
1391
+ }
1392
+ }
1393
+
1394
+ if (_selectedOption.indexOf("(crystal oscillator)") != -1) {
1395
+ if (rowData.name === "clockin") {
1396
+ retRowJSONdata = undefined;
1397
+ }
1398
+ }
1399
+
1400
+ if (_selectedOption.indexOf("Oscillator not enabled") != -1 || _selectedOption.indexOf("Reserved") != -1) {
1401
+ if (rowData.name === "clockin" || rowData.name === "osc1" || rowData.name === "osc2") {
1402
+ retRowJSONdata = undefined;
1403
+ }
1404
+ } // Restricting pin actions for clockin, osc1 and osc2 pin rows
1405
+
1406
+
1407
+ var mclrKey = (_appModel$getComponen = appModel.getComponent("mclrUnusedKey")) === null || _appModel$getComponen === void 0 ? void 0 : _appModel$getComponen.component;
1408
+
1409
+ if (mclrKey) {
1410
+ var _appModel$getPCPHelpe2, _appModel$getPCPHelpe3, _appModel$getPCPHelpe4;
1411
+
1412
+ rowActions = rowActions.concat((_appModel$getPCPHelpe2 = appModel.getPCPHelper) === null || _appModel$getPCPHelpe2 === void 0 ? void 0 : _appModel$getPCPHelpe2.call(appModel).stateActionBuilder(rowData).rowWithName("clockin").forComponent(mclrKey).addIfLockedSetValue(".*", "").addIfUnLockedSetValue(".*", "").build());
1413
+ rowActions = rowActions.concat((_appModel$getPCPHelpe3 = appModel.getPCPHelper) === null || _appModel$getPCPHelpe3 === void 0 ? void 0 : _appModel$getPCPHelpe3.call(appModel).stateActionBuilder(rowData).rowWithName("osc1").forComponent(mclrKey).addIfLockedSetValue(".*", "").addIfUnLockedSetValue(".*", "").build());
1414
+ rowActions = rowActions.concat((_appModel$getPCPHelpe4 = appModel.getPCPHelper) === null || _appModel$getPCPHelpe4 === void 0 ? void 0 : _appModel$getPCPHelpe4.call(appModel).stateActionBuilder(rowData).rowWithName("osc2").forComponent(mclrKey).addIfLockedSetValue(".*", "").addIfUnLockedSetValue(".*", "").build());
1415
+ }
1416
+ }
1417
+
1418
+ var mclrEnable = (_appModel$getImportVa3 = appModel.getImportValue("config_request")) === null || _appModel$getImportVa3 === void 0 ? void 0 : _appModel$getImportVa3["MCLRE"];
1419
+ var lvpEnable = (_appModel$getImportVa4 = appModel.getImportValue("config_request")) === null || _appModel$getImportVa4 === void 0 ? void 0 : _appModel$getImportVa4["LVP"];
1420
+
1421
+ if (mclrEnable && lvpEnable) {
1422
+ delete mclrEnable["setting"];
1423
+ delete mclrEnable["displayOptionSetting"];
1424
+ var selectedMclrOption = mclrEnable["defaultValue"]["value"];
1425
+ delete lvpEnable["setting"];
1426
+ delete lvpEnable["displayOptionSetting"];
1427
+ var selectedLvpOption = lvpEnable["defaultValue"]["value"];
1428
+
1429
+ if (selectedLvpOption.indexOf("HV on MCLR/VPP must be used for programming") != -1 || selectedLvpOption.indexOf("High Voltage on MCLR/Vpp must be used for programming") != -1) {
1430
+ if (selectedMclrOption.indexOf("MCLR pin is MCLR") != -1 || selectedMclrOption.indexOf("MCLR pin is Master Clear function") != -1 || selectedMclrOption === "MCLR pin (RE3) is MCLR") {
1431
+ if (rowData.name === "reset" && retRowJSONdata) {
1432
+ retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
1433
+ behaviourMeta: {
1434
+ lockPinRegEx: "MCLR"
1435
+ }
1436
+ });
1437
+ }
1438
+ }
1439
+
1440
+ var isPic18Mclr = selectedMclrOption === "If LVP = 0, MCLR pin is MCLR; If LVP = 1, RE3 pin function is MCLR " || selectedMclrOption === "If LVP = 0, MCLR pin function is port defined function; If LVP =1, RE3 pin fuction is MCLR" ? true : false;
1441
+ var isQ10Mclr = selectedMclrOption === "MCLR pin (RE3) is MCLR" || selectedMclrOption === "If LVP = 0, MCLR pin (RE3) is an input; If LVP =1, MCLR pin (RE3) is MCLR" ? true : false;
1442
+ var _actionArr = []; // For handling Q10 devices
1443
+
1444
+ if (isQ10Mclr) {
1445
+ var _appModel$getPCPHelpe5;
1446
+
1447
+ _actionArr = (_appModel$getPCPHelpe5 = appModel.getPCPHelper) === null || _appModel$getPCPHelpe5 === void 0 ? void 0 : _appModel$getPCPHelpe5.call(appModel).stateActionBuilder(rowData).rowWithName("reset").forComponent(mclrEnable).addIfLockedSetValue("MCLR", "MCLR pin (RE3) is MCLR").addIfUnLockedSetValue(".*", "If LVP = 0, MCLR pin (RE3) is an input; If LVP =1, MCLR pin (RE3) is MCLR").build();
1448
+ } else {
1449
+ var _appModel$getPCPHelpe6;
1450
+
1451
+ _actionArr = (_appModel$getPCPHelpe6 = appModel.getPCPHelper) === null || _appModel$getPCPHelpe6 === void 0 ? void 0 : _appModel$getPCPHelpe6.call(appModel).stateActionBuilder(rowData).rowWithName("reset").forComponent(mclrEnable).addIfLockedSetValue("MCLR", isPic18Mclr ? "If LVP = 0, MCLR pin is MCLR; If LVP = 1, RE3 pin function is MCLR " : "MCLR pin is Master Clear function").addIfUnLockedSetValue(".*", isPic18Mclr ? "If LVP = 0, MCLR pin function is port defined function; If LVP =1, RE3 pin fuction is MCLR" : "MCLR pin function is port defined function").build();
1452
+ } // Provide the module reference(scriptID) of remote config bits module
1453
+
1454
+
1455
+ var _iterator2 = _createForOfIteratorHelper(_actionArr),
1456
+ _step2;
1457
+
1458
+ try {
1459
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
1460
+ var _eachAction = _step2.value;
1461
+ var _lockedState = _eachAction.state[_microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["pin_state"].LOCKED];
1462
+
1463
+ if (_lockedState) {
1464
+ var _appModel$getAssigned5, _appModel$getAssigned6;
1465
+
1466
+ _lockedState.meta = {
1467
+ to: (_appModel$getAssigned5 = appModel.getAssignedImport("config_request")) === null || _appModel$getAssigned5 === void 0 ? void 0 : (_appModel$getAssigned6 = _appModel$getAssigned5.handle) === null || _appModel$getAssigned6 === void 0 ? void 0 : _appModel$getAssigned6.providerId
1468
+ };
1469
+ }
1470
+
1471
+ var _unlockedState = _eachAction.state[_microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["pin_state"].UNLOCK];
1472
+
1473
+ if (_unlockedState) {
1474
+ var _appModel$getAssigned7, _appModel$getAssigned8;
1475
+
1476
+ _unlockedState.meta = {
1477
+ to: (_appModel$getAssigned7 = appModel.getAssignedImport("config_request")) === null || _appModel$getAssigned7 === void 0 ? void 0 : (_appModel$getAssigned8 = _appModel$getAssigned7.handle) === null || _appModel$getAssigned8 === void 0 ? void 0 : _appModel$getAssigned8.providerId
1478
+ };
1479
+ }
1480
+
1481
+ rowActions.push(_eachAction);
1482
+ }
1483
+ } catch (err) {
1484
+ _iterator2.e(err);
1485
+ } finally {
1486
+ _iterator2.f();
1487
+ }
1488
+ } else {
1489
+ var _appModel$getComponen2;
1490
+
1491
+ if (selectedMclrOption) {
1492
+ if (rowData.name === "reset" && retRowJSONdata) {
1493
+ retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
1494
+ behaviourMeta: {
1495
+ lockPinRegEx: "MCLR"
1496
+ }
1497
+ });
1498
+ }
1499
+ }
1500
+
1501
+ var _mclrKey = (_appModel$getComponen2 = appModel.getComponent("mclrUnusedKey")) === null || _appModel$getComponen2 === void 0 ? void 0 : _appModel$getComponen2.component;
1502
+
1503
+ if (_mclrKey) {
1504
+ var _appModel$getPCPHelpe7;
1505
+
1506
+ rowActions = rowActions.concat((_appModel$getPCPHelpe7 = appModel.getPCPHelper) === null || _appModel$getPCPHelpe7 === void 0 ? void 0 : _appModel$getPCPHelpe7.call(appModel).stateActionBuilder(rowData).rowWithName("reset").forComponent(_mclrKey).addIfLockedSetValue(".*", "").addIfUnLockedSetValue(".*", "").build());
1507
+ }
1508
+ }
1509
+ }
1510
+
1511
+ var noscOsccon1 = appModel.getComponentValue("noscOsccon1");
1512
+
1513
+ if (noscOsccon1 === "HFINTOSC" || noscOsccon1 === "LFINTOSC" || noscOsccon1 === "SOSC" || noscOsccon1 === "HFINTOSC with 2x PLL") {
1514
+ if (rowData.name === "clockin") {
1515
+ retRowJSONdata = undefined;
1516
+ }
1517
+
1518
+ if (rowData.name === "osc1") {
1519
+ retRowJSONdata = undefined;
1520
+ }
1521
+
1522
+ if (rowData.name === "osc2") {
1523
+ retRowJSONdata = undefined;
1524
+ }
1525
+ }
1526
+
1527
+ if (rowData.name === "sosci") {
1528
+ if (noscOsccon1 === "SOSC" && retRowJSONdata) {
1529
+ retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
1530
+ behaviourMeta: {
1531
+ lockPinRegEx: "SOSCI"
1532
+ }
1533
+ });
1534
+ } else {
1535
+ retRowJSONdata = undefined;
1536
+ }
1537
+ }
1538
+
1539
+ if (rowData.name === "sosco") {
1540
+ if (noscOsccon1 === "SOSC" && retRowJSONdata) {
1541
+ retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
1542
+ behaviourMeta: {
1543
+ lockPinRegEx: "SOSCO"
1544
+ }
1545
+ });
1546
+ } else {
1547
+ retRowJSONdata = undefined;
1548
+ }
1549
+ }
1550
+
1551
+ if (retRowJSONdata) retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
1552
+ actions: rowActions
1553
+ });
1554
+ return retRowJSONdata;
1555
+ }
1556
+
1557
+ /***/ }),
1558
+
1559
+ /***/ "./src/StringConstants.ts":
1560
+ /*!********************************!*\
1561
+ !*** ./src/StringConstants.ts ***!
1562
+ \********************************/
1563
+ /*! exports provided: StringConstants */
1564
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1565
+
1566
+ "use strict";
1567
+ __webpack_require__.r(__webpack_exports__);
1568
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StringConstants", function() { return StringConstants; });
1569
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1570
+
1571
+ 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; }
1572
+
1573
+ var StringConstants = function StringConstants() {
1574
+ _classCallCheck(this, StringConstants);
1575
+ };
1576
+
1577
+ _defineProperty(StringConstants, "SOSC", "SOSC");
1578
+
1579
+ _defineProperty(StringConstants, "LFINTOSC", "LFINTOSC");
1580
+
1581
+ _defineProperty(StringConstants, "HFINTOSC", "HFINTOSC");
1582
+
1583
+ _defineProperty(StringConstants, "HFINTOSC_2xPLL", "HFINTOSC with 2x PLL");
1584
+
1585
+ _defineProperty(StringConstants, "EXTOSC", "EXTOSC");
1586
+
1587
+ _defineProperty(StringConstants, "EXTOSC_4xPLL", "EXTOSC with 4x PLL");
1588
+
1589
+ _defineProperty(StringConstants, "OSC_NOT_NEEDED", "Oscillator not needed");
1590
+
1591
+ _defineProperty(StringConstants, "ON", "ON");
1592
+
1593
+ _defineProperty(StringConstants, "ExtClkFreq_64MHz", 64000000);
1594
+
1595
+ _defineProperty(StringConstants, "ExtClkFreq_20MHz", 20000000);
1596
+
1597
+ _defineProperty(StringConstants, "ExtClkFreq_32MHz", 32000000);
1598
+
1599
+ /***/ }),
1600
+
1601
+ /***/ "./src/moduleConfig.json":
1602
+ /*!*******************************!*\
1603
+ !*** ./src/moduleConfig.json ***!
1604
+ \*******************************/
1605
+ /*! exports provided: moduleName, deviceType, booleanValues, hasPins, UIGroups, UIOrder, tabs, analytics, templates, help, imports, exports, softwareData, peripherals, default */
1606
+ /***/ (function(module) {
1607
+
1608
+ module.exports = JSON.parse("{\"moduleName\":\"Clock Control\",\"deviceType\":\"PIC\",\"booleanValues\":{\"true\":\"enabled\",\"false\":\"disabled\"},\"hasPins\":true,\"UIGroups\":{\"hardware\":\"Clock Settings\",\"advanced\":\"Advanced Settings\"},\"UIOrder\":{\"hardware\":[\"currentSystemClk\",\"noscOsccon1\",\"externalClk\",\"lfIntOscFreq\",\"hffrqOscfrq\",\"ndivOsccon1\",\"*\"]},\"tabs\":{\"main\":\"Easy View\",\"register\":\"Register Initialization\"},\"analytics\":{\"logAlwaysComps\":[\"noscOsccon1\",\"hffrqOscfrq\",\"ndivOsccon1\",\"soscpwrOsccon3\",\"cswholdOsccon3\",\"pllenOscen\",\"actenActcon\",\"actudActcon\",\"tun\"],\"logOnChangeComps\":[],\"compMapping\":{\"noscOsccon1\":\"ClockSourceSelection\",\"hffrqOscfrq\":\"HF_InternalClock\",\"ndivOsccon1\":\"ClockDivider\",\"soscpwrOsccon3\":\"SecondaryOscillatorPowerModeSelect\",\"cswholdOsccon3\":\"ClockSwitchHoldControl\",\"pllenOscen\":\"PLL_Enable\",\"actenActcon\":\"ActiveClockTuning\",\"actudActcon\":\"ActiveClockTuningUpdate\",\"tun\":\"HFINTOSC_FrequencyTuning\"}},\"templates\":[{\"src\":\"output/clock.c.ftl\",\"dest\":\"system/src/clock.c\",\"generateWithHardware\":true},{\"src\":\"output/clock.h.ftl\",\"dest\":\"system/clock.h\",\"generateWithHardware\":true}],\"help\":{\"url\":\"v2/keyword-lookup?keyword=scf-pic8-osc-v1&redirect=true\",\"tooltip\":\"Click here to open documentation.\"},\"imports\":{\"scf_pic8_osc_v1\":{\"import\":{\"interfaceId\":{\"name\":\"scf-pic8-osc-v1\",\"version\":\"1.0.0\"},\"isRequired\":true}},\"initializer_system\":{\"nodeModule\":{\"importName\":\"systemInit\",\"node\":\"@microchip/initializer-system\"},\"fullyTyped\":true,\"import\":{\"interfaceId\":{\"name\":\"initializer-system\",\"version\":\"^0.5.3\"}}},\"config_device\":{\"nodeModule\":{\"importName\":\"config_device\",\"node\":\"@microchip/config-device\"},\"fullyTyped\":true,\"import\":{\"interfaceId\":{\"name\":\"config-device\",\"version\":\"^1.1.1\"}}},\"config_request\":{\"nodeModule\":{\"importName\":\"config_request\",\"node\":\"@microchip/config-request\"},\"fullyTyped\":true,\"import\":{\"interfaceId\":{\"name\":\"config-request\",\"version\":\"^2.0.1\"}}},\"pin_standard\":{\"import\":{\"interfaceId\":{\"name\":\"pin-standard\",\"version\":\"^0.1.0\"}}},\"device_meta\":{\"import\":{\"interfaceId\":{\"name\":\"device-meta\",\"version\":\"1.0.0\"}}}},\"exports\":{\"osc_clocks\":{\"interfaces\":[{\"interfaceId\":{\"name\":\"osc-clocks\",\"version\":\"0.2.0\"},\"fullyTyped\":true,\"nodeModule\":{\"importName\":\"osc_clocks\",\"node\":\"@microchip/osc-clocks\"}}]},\"fosc\":{\"interfaces\":[{\"interfaceId\":{\"name\":\"fosc-hz\",\"version\":\"0.3.0\"},\"fullyTyped\":true,\"nodeModule\":{\"importName\":\"fosc_hz\",\"node\":\"@microchip/fosc-hz\"}}]}},\"softwareData\":{\"currentSystemClk\":{\"name\":\"currentSystemClk\",\"description\":\"System Clock (Hz)\",\"type\":\"number\",\"defaultValue\":0,\"group\":\"hardware\",\"tabs\":[\"main\"],\"uiBehavior\":{\"readonly\":true},\"category\":\"software\"},\"externalClk\":{\"name\":\"externalClk\",\"description\":\"External Clock (Hz)\",\"type\":\"number\",\"defaultValue\":32768,\"group\":\"hardware\",\"tabs\":[\"main\"],\"category\":\"software\"},\"lfIntOscFreq\":{\"name\":\"lfIntOscFreq\",\"description\":\"LF Internal Clock (Hz)\",\"type\":\"number\",\"defaultValue\":31000,\"group\":\"hardware\",\"uiBehavior\":{\"readonly\":true},\"tabs\":[\"main\"],\"category\":\"software\"},\"mclrUnusedKey\":{\"name\":\"mclrUnusedKey\",\"description\":\"Custom Name\",\"type\":\"string\",\"defaultValue\":\"key\",\"group\":\"software\",\"tabs\":[\"main\"],\"category\":\"software\"}},\"peripherals\":[{\"interfaceId\":{\"name\":\"scf-pic8-osc-v1\",\"version\":\"1.0.0\"},\"registers\":{\"OSCCON1\":[{\"setting\":\"NDIV\",\"name\":\"ndivOsccon1\",\"description\":\"Clock Divider\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"main\"],\"overrideDefaultValue\":\"4\",\"category\":\"hardware\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}},{\"setting\":\"NOSC\",\"name\":\"noscOsccon1\",\"description\":\"Clock Source\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"main\"],\"overrideDefaultValue\":\"HFINTOSC\",\"category\":\"hardware\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}}],\"OSCCON2\":[{\"setting\":\"CDIV\",\"name\":\"cdivOsccon2\",\"description\":\"Current Divider Select\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"],\"category\":\"hardware\"},{\"setting\":\"COSC\",\"name\":\"coscOsccon2\",\"description\":\"Current Oscillator Source Select\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"],\"category\":\"hardware\"}],\"OSCCON3\":[{\"setting\":\"NOSCR\",\"name\":\"noscrOsccon3\",\"description\":\"New Oscillator is Ready\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"],\"category\":\"hardware\"},{\"setting\":\"ORDY\",\"name\":\"ordyOsccon3\",\"description\":\"Oscillator Ready\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"],\"category\":\"hardware\"},{\"setting\":\"SOSCPWR\",\"name\":\"soscpwrOsccon3\",\"description\":\"Secondary Oscillator Power Mode Select\",\"type\":\"ComboBox\",\"group\":\"advanced\",\"tabs\":[\"main\"],\"category\":\"hardware\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}},{\"setting\":\"CSWHOLD\",\"name\":\"cswholdOsccon3\",\"description\":\"Clock Switch Hold Control\",\"type\":\"ComboBox\",\"group\":\"advanced\",\"tabs\":[\"main\"],\"category\":\"hardware\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}}],\"OSCEN\":[{\"setting\":\"EXTOEN\",\"name\":\"extoenOscen\",\"description\":\"External Oscillator\",\"type\":\"boolean\",\"group\":\"advanced\",\"tabs\":[\"main\"],\"category\":\"hardware\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"},\"isVisibleProperty\":\"doNotShow\"},{\"setting\":\"HFOEN\",\"name\":\"hfoenOscen\",\"description\":\"HFINTOSC\",\"type\":\"boolean\",\"group\":\"advanced\",\"tabs\":[\"main\"],\"category\":\"hardware\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"},\"isVisibleProperty\":\"doNotShow\"},{\"setting\":\"MFOEN\",\"name\":\"mfoenOscen\",\"description\":\"MFINTOSC\",\"type\":\"boolean\",\"group\":\"advanced\",\"tabs\":[\"main\"],\"category\":\"hardware\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"},\"isVisibleProperty\":\"doNotShow\"},{\"setting\":\"LFOEN\",\"name\":\"lfoenOscen\",\"description\":\"LFINTOSC\",\"type\":\"boolean\",\"group\":\"advanced\",\"tabs\":[\"main\"],\"category\":\"hardware\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"},\"isVisibleProperty\":\"doNotShow\"},{\"setting\":\"SOSCEN\",\"name\":\"soscenOscen\",\"description\":\"Secondary Oscillator\",\"type\":\"boolean\",\"group\":\"advanced\",\"tabs\":[\"main\"],\"category\":\"hardware\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}},{\"setting\":\"ADOEN\",\"name\":\"adoenOscen\",\"description\":\"ADCRC Oscillator\",\"type\":\"boolean\",\"group\":\"advanced\",\"tabs\":[\"main\"],\"category\":\"hardware\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"},\"isVisibleProperty\":\"doNotShow\"},{\"setting\":\"PLLEN\",\"name\":\"pllenOscen\",\"category\":\"hardware\",\"description\":\"PLL Enable\",\"type\":\"boolean\",\"group\":\"advanced\",\"tabs\":[\"main\"],\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}}],\"OSCFRQ\":[{\"setting\":\"HFFRQ\",\"name\":\"hffrqOscfrq\",\"description\":\"HF Internal Clock\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"main\"],\"category\":\"hardware\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}}],\"OSCSTAT\":[{\"setting\":\"PLLR\",\"name\":\"pllrOscstat\",\"description\":\"PLL is Ready\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"],\"category\":\"hardware\"},{\"setting\":\"ADOR\",\"name\":\"adorOscstat\",\"description\":\"ADCRC Oscillator Ready\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"],\"category\":\"hardware\"},{\"setting\":\"SOR\",\"name\":\"sorOscstat\",\"description\":\"Secondary Oscillator (SOSC) Ready\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"],\"category\":\"hardware\"},{\"setting\":\"LFOR\",\"name\":\"lforOscstat\",\"description\":\"LFINTOSC Ready\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"],\"category\":\"hardware\"},{\"setting\":\"MFOR\",\"name\":\"mforOscstat\",\"description\":\"MFINTOSC Ready\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"],\"category\":\"hardware\"},{\"setting\":\"HFOR\",\"name\":\"hforOscstat\",\"description\":\"HFINTOSC Ready\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"],\"category\":\"hardware\"},{\"setting\":\"EXTOR\",\"name\":\"extorOscstat\",\"description\":\"External Oscillator Ready\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"],\"category\":\"hardware\"}],\"OSCTUNE\":[{\"setting\":\"TUN\",\"name\":\"tun\",\"description\":\"HFINTOSC Frequency Tuning\",\"group\":\"advanced\",\"type\":\"register\",\"tabs\":[\"main\"],\"category\":\"hardware\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}}],\"ACTCON\":[{\"setting\":\"ACTEN\",\"name\":\"actenActcon\",\"description\":\"Active Clock Tuning\",\"type\":\"boolean\",\"group\":\"advanced\",\"tabs\":[\"main\"],\"category\":\"hardware\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}},{\"setting\":\"ACTUD\",\"name\":\"actudActcon\",\"description\":\"Active Clock Tuning Update\",\"type\":\"boolean\",\"group\":\"advanced\",\"tabs\":[\"main\"],\"category\":\"hardware\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}},{\"setting\":\"ACTLOCK\",\"name\":\"actlockActcon\",\"description\":\"Active Clock Tuning Lock Status\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"],\"category\":\"hardware\"},{\"setting\":\"ACTORS\",\"name\":\"actorsActcon\",\"description\":\"Active Clock Tuning Out-of-Range Status\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"],\"category\":\"hardware\"}],\"FSCMCON\":[{\"setting\":\"FSCMFEV\",\"name\":\"fscmfevFscmcon\",\"category\":\"hardware\",\"description\":\"Insert Description Here\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"]},{\"setting\":\"FSCMFFI\",\"name\":\"fscmffiFscmcon\",\"category\":\"hardware\",\"description\":\"Insert Description Here\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"]},{\"setting\":\"FSCMPEV\",\"name\":\"fscmpevFscmcon\",\"category\":\"hardware\",\"description\":\"Insert Description Here\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"]},{\"setting\":\"FSCMPFI\",\"name\":\"fscmpfiFscmcon\",\"category\":\"hardware\",\"description\":\"Insert Description Here\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"]},{\"setting\":\"FSCMSEV\",\"name\":\"fscmsevFscmcon\",\"category\":\"hardware\",\"description\":\"Insert Description Here\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"]},{\"setting\":\"FSCMSFI\",\"name\":\"fscmsfiFscmcon\",\"category\":\"hardware\",\"description\":\"Insert Description Here\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"]}]},\"properties\":[\"PLLType\",\"freqMaxEC\",\"freqMaxHS\",\"freqMinPLLEC\",\"freqMaxPLLEC\",\"freqMinPLLINTOSC\",\"freqMaxPLLINTOSC\"]}]}");
1609
+
1610
+ /***/ }),
1611
+
1612
+ /***/ "./src/pinsdata.json":
1613
+ /*!***************************!*\
1614
+ !*** ./src/pinsdata.json ***!
1615
+ \***************************/
1616
+ /*! exports provided: rows, default */
1617
+ /***/ (function(module) {
1618
+
1619
+ module.exports = JSON.parse("{\"rows\":[{\"name\":\"clockout\",\"module\":\"OSC\",\"function\":\"CLKOUT\",\"direction\":\"output\",\"filter\":{\"module\":\"CLOCK CONTROL\",\"aliasReEx\":\"CLKOUT\"},\"behaviour\":\"EXCLUSIVE_LOCK\"},{\"name\":\"clockin\",\"module\":\"OSC\",\"function\":\"CLKIN\",\"direction\":\"input\",\"filter\":{\"module\":\"CLOCK CONTROL\",\"aliasReEx\":\"CLKIN\"},\"behaviour\":\"EXCLUSIVE_LOCK\",\"behaviourMeta\":{\"lockPinRegEx\":\"CLKIN\"}},{\"name\":\"osc1\",\"module\":\"OSC\",\"function\":\"OSC1\",\"direction\":\"input\",\"filter\":{\"module\":\"CLOCK CONTROL\",\"aliasReEx\":\"OSC1\"},\"behaviour\":\"EXCLUSIVE_LOCK\",\"behaviourMeta\":{\"lockPinRegEx\":\"OSC1\"}},{\"name\":\"osc2\",\"module\":\"OSC\",\"function\":\"OSC2\",\"direction\":\"input\",\"filter\":{\"module\":\"CLOCK CONTROL\",\"aliasReEx\":\"OSC2\"},\"behaviour\":\"EXCLUSIVE_LOCK\",\"behaviourMeta\":{\"lockPinRegEx\":\"OSC2\"}},{\"name\":\"sosci\",\"module\":\"OSC\",\"function\":\"SOSCI\",\"direction\":\"input\",\"filter\":{\"module\":\"CLOCK CONTROL\",\"aliasReEx\":\"SOSCI\"},\"behaviour\":\"ALWAYS_LOCKED\"},{\"name\":\"sosco\",\"module\":\"OSC\",\"function\":\"SOSCO\",\"direction\":\"output\",\"filter\":{\"module\":\"CLOCK CONTROL\",\"aliasReEx\":\"SOSCO\"},\"behaviour\":\"LOCK_UNLOCK\"},{\"name\":\"reset\",\"module\":\"RESET\",\"function\":\"MCLR\",\"direction\":\"input\",\"filter\":{\"module\":\"RESET\",\"aliasReEx\":\"MCLR\"},\"behaviour\":\"EXCLUSIVE_LOCK\"}]}");
1620
+
1621
+ /***/ })
1622
+
1623
+ /******/ });
1624
+ //# sourceMappingURL=autoCreator.js.map