@mchp-mcc/scf-pic8-osc-v1 4.3.4 → 4.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Changelog.md +9 -14
- package/LICENSE.txt +1 -1
- package/Readme.md +9 -14
- package/output/autoCreator.js +450 -452
- package/output/autoCreator.js.map +1 -1
- package/output/autoProcessor.js +450 -453
- package/output/autoProcessor.js.map +1 -1
- package/output/clock.c.ftl +60 -29
- package/output/clock.h.ftl +3 -1
- package/output/creator.js +1362 -615
- package/output/creator.js.map +1 -1
- package/output/nullPrototype.json +24 -14
- package/output/processor.js +1362 -615
- package/output/processor.js.map +1 -1
- package/package.json +47 -33
package/output/processor.js
CHANGED
|
@@ -143,40 +143,34 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
143
143
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPinsData", function() { return getPinsData; });
|
|
144
144
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPinsLogic", function() { return getPinsLogic; });
|
|
145
145
|
/* harmony import */ var _getUserData__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../getUserData */ "./generated_module/src/getUserData.ts");
|
|
146
|
-
function
|
|
147
|
-
|
|
148
|
-
function _objectSpread(
|
|
149
|
-
|
|
150
|
-
function
|
|
151
|
-
|
|
152
|
-
|
|
146
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
147
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
148
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
149
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
150
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
151
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
153
152
|
|
|
154
153
|
var mockPinsLogic = function mockPinsLogic(getPinsData) {
|
|
155
154
|
var getCompletePinData = function getCompletePinData(appModel) {
|
|
156
155
|
return {};
|
|
157
156
|
};
|
|
158
|
-
|
|
159
157
|
var getRowData = function getRowData(appModel, rowData) {
|
|
160
158
|
return rowData;
|
|
161
159
|
};
|
|
162
|
-
|
|
163
160
|
return {
|
|
164
161
|
getCompletePinData: getCompletePinData,
|
|
165
162
|
getRowData: getRowData,
|
|
166
163
|
getPinsData: getPinsData
|
|
167
164
|
};
|
|
168
165
|
};
|
|
169
|
-
|
|
170
166
|
var getPinsData = function getPinsData() {
|
|
171
167
|
var _getPinsDataFromFile;
|
|
172
|
-
|
|
173
168
|
return (_getPinsDataFromFile = Object(_getUserData__WEBPACK_IMPORTED_MODULE_0__["getPinsDataFromFile"])()) !== null && _getPinsDataFromFile !== void 0 ? _getPinsDataFromFile : {
|
|
174
169
|
rows: []
|
|
175
170
|
};
|
|
176
171
|
};
|
|
177
172
|
var getPinsLogic = function getPinsLogic() {
|
|
178
173
|
var pinsLogic = Object(_getUserData__WEBPACK_IMPORTED_MODULE_0__["getPinsLogicFromFile"])();
|
|
179
|
-
|
|
180
174
|
if (pinsLogic) {
|
|
181
175
|
return _objectSpread(_objectSpread({}, pinsLogic), {}, {
|
|
182
176
|
getPinsData: getPinsData
|
|
@@ -201,13 +195,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
201
195
|
/* harmony import */ var _microchip_scf_automodule_impl__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @microchip/scf-automodule-impl */ "./node_modules/@microchip/scf-automodule-impl/lib/index.js");
|
|
202
196
|
/* harmony import */ var _microchip_scf_automodule_impl__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_microchip_scf_automodule_impl__WEBPACK_IMPORTED_MODULE_0__);
|
|
203
197
|
/* harmony import */ var _getUserData__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./getUserData */ "./generated_module/src/getUserData.ts");
|
|
204
|
-
function
|
|
205
|
-
|
|
206
|
-
function _objectSpread(
|
|
207
|
-
|
|
208
|
-
function
|
|
209
|
-
|
|
210
|
-
|
|
198
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
199
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
200
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
201
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
202
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
203
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
211
204
|
|
|
212
205
|
|
|
213
206
|
function createProcessor(getDerivedData) {
|
|
@@ -217,160 +210,14 @@ function createProcessor(getDerivedData) {
|
|
|
217
210
|
getModuleConfig: _getUserData__WEBPACK_IMPORTED_MODULE_1__["getModuleConfigFromFile"]
|
|
218
211
|
}, getDerivedData(dataModel));
|
|
219
212
|
};
|
|
220
|
-
|
|
221
213
|
return Object(_microchip_scf_automodule_impl__WEBPACK_IMPORTED_MODULE_0__["process"])(initialModule, stage, derivedDataGetter);
|
|
222
214
|
};
|
|
223
|
-
|
|
224
215
|
return hook;
|
|
225
216
|
}
|
|
226
|
-
|
|
227
217
|
var process = createProcessor(_getUserData__WEBPACK_IMPORTED_MODULE_1__["getDerivedData"]);
|
|
228
218
|
|
|
229
219
|
/***/ }),
|
|
230
220
|
|
|
231
|
-
/***/ "./node_modules/@microchip/initializer-system/lib/package.json":
|
|
232
|
-
/*!*********************************************************************!*\
|
|
233
|
-
!*** ./node_modules/@microchip/initializer-system/lib/package.json ***!
|
|
234
|
-
\*********************************************************************/
|
|
235
|
-
/*! exports provided: name, version, license, main, typings, scripts, husky, lint-staged, bitBucketRepository, repository, publishConfig, jest, dependencies, devDependencies, files, notificationEmail, default */
|
|
236
|
-
/***/ (function(module) {
|
|
237
|
-
|
|
238
|
-
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\"}");
|
|
239
|
-
|
|
240
|
-
/***/ }),
|
|
241
|
-
|
|
242
|
-
/***/ "./node_modules/@microchip/initializer-system/lib/src/index.js":
|
|
243
|
-
/*!*********************************************************************!*\
|
|
244
|
-
!*** ./node_modules/@microchip/initializer-system/lib/src/index.js ***!
|
|
245
|
-
\*********************************************************************/
|
|
246
|
-
/*! no static exports found */
|
|
247
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
248
|
-
|
|
249
|
-
"use strict";
|
|
250
|
-
|
|
251
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
252
|
-
var initializer_system_1 = __webpack_require__(/*! ./initializer-system */ "./node_modules/@microchip/initializer-system/lib/src/initializer-system.js");
|
|
253
|
-
exports.Interface = initializer_system_1.Interface;
|
|
254
|
-
exports.INIT_PRIORITY = initializer_system_1.INIT_PRIORITY;
|
|
255
|
-
exports.sortInitializers = initializer_system_1.sortInitializers;
|
|
256
|
-
//# sourceMappingURL=index.js.map
|
|
257
|
-
|
|
258
|
-
/***/ }),
|
|
259
|
-
|
|
260
|
-
/***/ "./node_modules/@microchip/initializer-system/lib/src/initializer-system.js":
|
|
261
|
-
/*!**********************************************************************************!*\
|
|
262
|
-
!*** ./node_modules/@microchip/initializer-system/lib/src/initializer-system.js ***!
|
|
263
|
-
\**********************************************************************************/
|
|
264
|
-
/*! no static exports found */
|
|
265
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
266
|
-
|
|
267
|
-
"use strict";
|
|
268
|
-
|
|
269
|
-
var __spreadArrays = (this && this.__spreadArrays) || function () {
|
|
270
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
271
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
272
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
273
|
-
r[k] = a[j];
|
|
274
|
-
return r;
|
|
275
|
-
};
|
|
276
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
277
|
-
if (mod && mod.__esModule) return mod;
|
|
278
|
-
var result = {};
|
|
279
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
280
|
-
result["default"] = mod;
|
|
281
|
-
return result;
|
|
282
|
-
};
|
|
283
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
284
|
-
var InterfaceTypes = __importStar(__webpack_require__(/*! @microchip/scf-interface */ "./node_modules/@microchip/scf-interface/lib/index.js"));
|
|
285
|
-
var pkgJson = __importStar(__webpack_require__(/*! ../package.json */ "./node_modules/@microchip/initializer-system/lib/package.json"));
|
|
286
|
-
var getInterfaceId = function () {
|
|
287
|
-
return {
|
|
288
|
-
name: InterfaceTypes.getInterfaceName(pkgJson),
|
|
289
|
-
version: InterfaceTypes.getInterfaceVersion(pkgJson),
|
|
290
|
-
};
|
|
291
|
-
};
|
|
292
|
-
exports.sortInitializers = function (initializers) {
|
|
293
|
-
var retinitializers = __spreadArrays(initializers);
|
|
294
|
-
retinitializers.sort(prioritySorter);
|
|
295
|
-
return retinitializers;
|
|
296
|
-
};
|
|
297
|
-
var prioritySorter = function (a, b) {
|
|
298
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
299
|
-
var result = 0;
|
|
300
|
-
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;
|
|
301
|
-
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;
|
|
302
|
-
if (apriority < bpriority) {
|
|
303
|
-
result = -1;
|
|
304
|
-
}
|
|
305
|
-
else if (apriority > bpriority) {
|
|
306
|
-
result = 1;
|
|
307
|
-
}
|
|
308
|
-
else {
|
|
309
|
-
//same priority sort via intializer name alphabetically
|
|
310
|
-
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;
|
|
311
|
-
}
|
|
312
|
-
return result;
|
|
313
|
-
};
|
|
314
|
-
var INIT_PRIORITY;
|
|
315
|
-
(function (INIT_PRIORITY) {
|
|
316
|
-
INIT_PRIORITY[INIT_PRIORITY["START"] = 1] = "START";
|
|
317
|
-
INIT_PRIORITY[INIT_PRIORITY["PRE_PERIPHERAL"] = 50] = "PRE_PERIPHERAL";
|
|
318
|
-
INIT_PRIORITY[INIT_PRIORITY["PERIPHERAL"] = 100] = "PERIPHERAL";
|
|
319
|
-
INIT_PRIORITY[INIT_PRIORITY["POST_PERIPHERAL"] = 150] = "POST_PERIPHERAL";
|
|
320
|
-
INIT_PRIORITY[INIT_PRIORITY["DEFAULT"] = 200] = "DEFAULT";
|
|
321
|
-
INIT_PRIORITY[INIT_PRIORITY["PRE_SOFTWARE"] = 250] = "PRE_SOFTWARE";
|
|
322
|
-
INIT_PRIORITY[INIT_PRIORITY["SOFTWARE"] = 300] = "SOFTWARE";
|
|
323
|
-
INIT_PRIORITY[INIT_PRIORITY["POST_SOFTWARE"] = 350] = "POST_SOFTWARE";
|
|
324
|
-
INIT_PRIORITY[INIT_PRIORITY["END"] = 400] = "END";
|
|
325
|
-
})(INIT_PRIORITY = exports.INIT_PRIORITY || (exports.INIT_PRIORITY = {}));
|
|
326
|
-
var createMock = function () {
|
|
327
|
-
return {
|
|
328
|
-
interfaceId: getInterfaceId(),
|
|
329
|
-
payload: {
|
|
330
|
-
moduleName: "MyModule",
|
|
331
|
-
},
|
|
332
|
-
args: {},
|
|
333
|
-
results: {
|
|
334
|
-
requestId: {
|
|
335
|
-
initializer: {
|
|
336
|
-
name: "mymodule_init",
|
|
337
|
-
header: {
|
|
338
|
-
name: "mymodule.h",
|
|
339
|
-
path: "include/",
|
|
340
|
-
},
|
|
341
|
-
},
|
|
342
|
-
registerInit: [
|
|
343
|
-
{
|
|
344
|
-
name: "OSCCON1",
|
|
345
|
-
comment: "//Comments",
|
|
346
|
-
value: 55,
|
|
347
|
-
valueAsHex: "0x55",
|
|
348
|
-
},
|
|
349
|
-
],
|
|
350
|
-
},
|
|
351
|
-
},
|
|
352
|
-
};
|
|
353
|
-
};
|
|
354
|
-
var createPrototypeImport = function () {
|
|
355
|
-
return {
|
|
356
|
-
interfaceId: getInterfaceId(),
|
|
357
|
-
};
|
|
358
|
-
};
|
|
359
|
-
var createPrototypeExport = function () {
|
|
360
|
-
return {
|
|
361
|
-
interfaces: [{ interfaceId: getInterfaceId() }],
|
|
362
|
-
};
|
|
363
|
-
};
|
|
364
|
-
exports.Interface = {
|
|
365
|
-
createPrototypeExport: createPrototypeExport,
|
|
366
|
-
createPrototypeImport: createPrototypeImport,
|
|
367
|
-
getInterfaceId: getInterfaceId,
|
|
368
|
-
createMock: createMock,
|
|
369
|
-
};
|
|
370
|
-
//# sourceMappingURL=initializer-system.js.map
|
|
371
|
-
|
|
372
|
-
/***/ }),
|
|
373
|
-
|
|
374
221
|
/***/ "./node_modules/@microchip/melody-automodule-interface/lib/src/Tables.js":
|
|
375
222
|
/*!*******************************************************************************!*\
|
|
376
223
|
!*** ./node_modules/@microchip/melody-automodule-interface/lib/src/Tables.js ***!
|
|
@@ -391,52 +238,23 @@ var RowPrefix;
|
|
|
391
238
|
|
|
392
239
|
/***/ }),
|
|
393
240
|
|
|
394
|
-
/***/ "./node_modules/@microchip/
|
|
395
|
-
|
|
396
|
-
!*** ./node_modules/@microchip/
|
|
397
|
-
|
|
398
|
-
/*! no static exports found */
|
|
399
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
400
|
-
|
|
401
|
-
"use strict";
|
|
402
|
-
|
|
403
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
404
|
-
var pin_standard_1 = __webpack_require__(/*! ./pin-standard */ "./node_modules/@microchip/pin-standard/lib/pin-standard.js");
|
|
405
|
-
exports.pin_standard = pin_standard_1.pin_standard;
|
|
406
|
-
exports.pin_state = pin_standard_1.pin_state;
|
|
407
|
-
exports.direction = pin_standard_1.direction;
|
|
408
|
-
exports.behaviour = pin_standard_1.behaviour;
|
|
409
|
-
exports.data_schema = pin_standard_1.data_schema;
|
|
410
|
-
exports.pin_attribs_enum = pin_standard_1.pin_attribs_enum;
|
|
411
|
-
exports.actiontype = pin_standard_1.actiontype;
|
|
412
|
-
exports.QueryAdapterKey = pin_standard_1.QueryAdapterKey;
|
|
413
|
-
//# sourceMappingURL=index.js.map
|
|
414
|
-
|
|
415
|
-
/***/ }),
|
|
416
|
-
|
|
417
|
-
/***/ "./node_modules/@microchip/pin-standard/lib/pin-standard.js":
|
|
418
|
-
/*!******************************************************************!*\
|
|
419
|
-
!*** ./node_modules/@microchip/pin-standard/lib/pin-standard.js ***!
|
|
420
|
-
\******************************************************************/
|
|
241
|
+
/***/ "./node_modules/@microchip/pins-interface/lib/types.js":
|
|
242
|
+
/*!*************************************************************!*\
|
|
243
|
+
!*** ./node_modules/@microchip/pins-interface/lib/types.js ***!
|
|
244
|
+
\*************************************************************/
|
|
421
245
|
/*! no static exports found */
|
|
422
246
|
/***/ (function(module, exports, __webpack_require__) {
|
|
423
247
|
|
|
424
248
|
"use strict";
|
|
425
249
|
|
|
426
250
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
427
|
-
exports.
|
|
428
|
-
return {
|
|
429
|
-
interfaceId: {
|
|
430
|
-
name: "pin-standard",
|
|
431
|
-
version: "0.1.0",
|
|
432
|
-
},
|
|
433
|
-
};
|
|
434
|
-
};
|
|
251
|
+
exports.data_schema = exports.PIN_ARCH = exports.behaviour = exports.direction = exports.actiontype = exports.pin_attribs_enum = exports.pin_interrupts_enum = exports.pin_state = exports.QueryAdapterKey = void 0;
|
|
435
252
|
var QueryAdapterKey;
|
|
436
253
|
(function (QueryAdapterKey) {
|
|
437
254
|
QueryAdapterKey["ALLPINS"] = "allpins";
|
|
438
255
|
QueryAdapterKey["ALLPINS_FOR_ATTRIBS"] = "allpins_for_attribs";
|
|
439
256
|
QueryAdapterKey["PPS"] = "pps";
|
|
257
|
+
QueryAdapterKey["APFCON"] = "apfcon";
|
|
440
258
|
QueryAdapterKey["PORTMUX"] = "portmux";
|
|
441
259
|
QueryAdapterKey["HASPPS"] = "hasPPS";
|
|
442
260
|
})(QueryAdapterKey = exports.QueryAdapterKey || (exports.QueryAdapterKey = {}));
|
|
@@ -473,6 +291,7 @@ var pin_attribs_enum;
|
|
|
473
291
|
pin_attribs_enum["ioc"] = "ioc";
|
|
474
292
|
pin_attribs_enum["intcallback"] = "intcallback";
|
|
475
293
|
pin_attribs_enum["alias"] = "alias";
|
|
294
|
+
pin_attribs_enum["advInpBuff"] = "advInpBuff";
|
|
476
295
|
})(pin_attribs_enum = exports.pin_attribs_enum || (exports.pin_attribs_enum = {}));
|
|
477
296
|
var actiontype;
|
|
478
297
|
(function (actiontype) {
|
|
@@ -492,10 +311,18 @@ var behaviour;
|
|
|
492
311
|
behaviour["SINGLE_PIN_MUX"] = "SINGLE_PIN_MUX";
|
|
493
312
|
behaviour["OPTIONAL_PIN_MUX"] = "OPTIONAL_PIN_MUX";
|
|
494
313
|
behaviour["PPS"] = "PPS";
|
|
314
|
+
behaviour["APFCON"] = "APFCON";
|
|
495
315
|
behaviour["PORTMUX"] = "PORTMUX";
|
|
496
316
|
behaviour["EXCLUSIVE_LOCK"] = "EXCLUSIVE_LOCK";
|
|
497
317
|
behaviour["LOCKED_DISABLED"] = "LOCKED_DISABLED";
|
|
498
318
|
})(behaviour = exports.behaviour || (exports.behaviour = {}));
|
|
319
|
+
var PIN_ARCH;
|
|
320
|
+
(function (PIN_ARCH) {
|
|
321
|
+
PIN_ARCH["PIC18F"] = "PIC18F";
|
|
322
|
+
PIN_ARCH["AVR8"] = "AVR8";
|
|
323
|
+
PIN_ARCH["PIC16F"] = "PIC16F";
|
|
324
|
+
PIN_ARCH["PIC24F"] = "PIC24F";
|
|
325
|
+
})(PIN_ARCH = exports.PIN_ARCH || (exports.PIN_ARCH = {}));
|
|
499
326
|
//------------------------------------ schema ------------------------------------//
|
|
500
327
|
exports.data_schema = {
|
|
501
328
|
$schema: "http://json-schema.org/draft-07/schema#",
|
|
@@ -681,7 +508,7 @@ exports.data_schema = {
|
|
|
681
508
|
},
|
|
682
509
|
},
|
|
683
510
|
};
|
|
684
|
-
//# sourceMappingURL=
|
|
511
|
+
//# sourceMappingURL=types.js.map
|
|
685
512
|
|
|
686
513
|
/***/ }),
|
|
687
514
|
|
|
@@ -708,7 +535,6 @@ var __assign = (this && this.__assign) || function () {
|
|
|
708
535
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
709
536
|
exports.logAnalytics = exports.getAnalyticsDefault = void 0;
|
|
710
537
|
var getConfigData_1 = __webpack_require__(/*! ../autoModule/getConfigData */ "./node_modules/@microchip/scf-automodule-impl/lib/autoModule/getConfigData.js");
|
|
711
|
-
var autoModuleViewHelpers_1 = __webpack_require__(/*! ../autoModule/views/autoModuleViewHelpers */ "./node_modules/@microchip/scf-automodule-impl/lib/autoModule/views/autoModuleViewHelpers.js");
|
|
712
538
|
var getAnalyticsDefault = function (model) {
|
|
713
539
|
var logAlwaysComps = [];
|
|
714
540
|
var stateChangeComps = [];
|
|
@@ -738,9 +564,7 @@ var logAlwaysStaticAndDynamicData = function (model, moduleconfig, alwaysCompsDe
|
|
|
738
564
|
var resultantAnalyticsKey = void 0;
|
|
739
565
|
if (eachDesiredComp !== "*") {
|
|
740
566
|
compObj = (_a = allComps[eachDesiredComp]) === null || _a === void 0 ? void 0 : _a.component;
|
|
741
|
-
if (
|
|
742
|
-
!isCompCategoryAllowed(compObj) ||
|
|
743
|
-
(0, autoModuleViewHelpers_1.isComponentInvisible)(compObj, model))
|
|
567
|
+
if (compObj === undefined || !isCompCategoryAllowed(compObj))
|
|
744
568
|
continue;
|
|
745
569
|
correctMapping = (_b = moduleconfig.analytics) === null || _b === void 0 ? void 0 : _b.compMapping[eachDesiredComp];
|
|
746
570
|
resultantAnalyticsKey = !correctMapping
|
|
@@ -749,7 +573,7 @@ var logAlwaysStaticAndDynamicData = function (model, moduleconfig, alwaysCompsDe
|
|
|
749
573
|
: eachDesiredComp
|
|
750
574
|
: correctMapping;
|
|
751
575
|
var value = model.getComponentValue(eachDesiredComp);
|
|
752
|
-
if (value) {
|
|
576
|
+
if (value !== undefined) {
|
|
753
577
|
retData[resultantAnalyticsKey] = value;
|
|
754
578
|
}
|
|
755
579
|
}
|
|
@@ -757,8 +581,7 @@ var logAlwaysStaticAndDynamicData = function (model, moduleconfig, alwaysCompsDe
|
|
|
757
581
|
for (var eachCompName in allComps) {
|
|
758
582
|
correctMapping = (_c = moduleconfig.analytics) === null || _c === void 0 ? void 0 : _c.compMapping[eachCompName];
|
|
759
583
|
compObj = allComps[eachCompName].component;
|
|
760
|
-
if (!isCompCategoryAllowed(compObj)
|
|
761
|
-
(0, autoModuleViewHelpers_1.isComponentInvisible)(compObj, model))
|
|
584
|
+
if (!isCompCategoryAllowed(compObj))
|
|
762
585
|
continue;
|
|
763
586
|
resultantAnalyticsKey = !correctMapping
|
|
764
587
|
? compObj.category === "hardware"
|
|
@@ -808,9 +631,7 @@ var logOnChangeStaticAndDynamicData = function (moduleconfig, model, moduleState
|
|
|
808
631
|
var correctMapping = (_a = moduleconfig.analytics) === null || _a === void 0 ? void 0 : _a.compMapping[eachChangedCompKey];
|
|
809
632
|
var allComps = model.getAutoModuleAppModel().getAllComponents();
|
|
810
633
|
var compObj = (_b = allComps[eachChangedCompKey]) === null || _b === void 0 ? void 0 : _b.component;
|
|
811
|
-
if (
|
|
812
|
-
!isCompCategoryAllowed(compObj) ||
|
|
813
|
-
(0, autoModuleViewHelpers_1.isComponentInvisible)(compObj, model))
|
|
634
|
+
if (compObj === undefined || !isCompCategoryAllowed(compObj))
|
|
814
635
|
continue;
|
|
815
636
|
var resultantAnalyticsKey = !correctMapping
|
|
816
637
|
? compObj.category === "hardware"
|
|
@@ -1094,8 +915,33 @@ var MyAppModel = /** @class */ (function () {
|
|
|
1094
915
|
return filteredImports;
|
|
1095
916
|
};
|
|
1096
917
|
this.isComponentValue = function (componentName) {
|
|
918
|
+
var _a;
|
|
1097
919
|
var value = _this.getComponentValue(componentName);
|
|
1098
|
-
|
|
920
|
+
var regex = new RegExp("enabled?");
|
|
921
|
+
var isValue = false;
|
|
922
|
+
if (value) {
|
|
923
|
+
if (typeof value === "string") {
|
|
924
|
+
if (value === "true") {
|
|
925
|
+
isValue = true;
|
|
926
|
+
}
|
|
927
|
+
else if (value === "false") {
|
|
928
|
+
isValue = false;
|
|
929
|
+
}
|
|
930
|
+
else {
|
|
931
|
+
isValue = regex.test((_a = String(value)) === null || _a === void 0 ? void 0 : _a.toLowerCase());
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
else if (typeof value === "boolean") {
|
|
935
|
+
isValue = value;
|
|
936
|
+
}
|
|
937
|
+
else {
|
|
938
|
+
isValue = false;
|
|
939
|
+
}
|
|
940
|
+
}
|
|
941
|
+
else {
|
|
942
|
+
isValue = false;
|
|
943
|
+
}
|
|
944
|
+
return isValue;
|
|
1099
945
|
};
|
|
1100
946
|
this.getComponent = function (componentName) {
|
|
1101
947
|
return _this.getAutoModuleAppModel().getComponent(componentName);
|
|
@@ -1309,8 +1155,16 @@ var MyAutoModuleAppModel = /** @class */ (function () {
|
|
|
1309
1155
|
};
|
|
1310
1156
|
};
|
|
1311
1157
|
this.getSoftwareComponentValue = function (tab, component) {
|
|
1312
|
-
var _a, _b, _c, _d;
|
|
1158
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1313
1159
|
var overriddenValue = _this.model.getDerivedFunction(component.name);
|
|
1160
|
+
if (overriddenValue != undefined && (component.type === "time" || component.type === "frequency")) {
|
|
1161
|
+
if (overriddenValue.defaultValue) {
|
|
1162
|
+
return overriddenValue.defaultValue;
|
|
1163
|
+
}
|
|
1164
|
+
else {
|
|
1165
|
+
return ((_d = (_c = (_b = (_a = _this.state) === null || _a === void 0 ? void 0 : _a[tab]) === null || _b === void 0 ? void 0 : _b[component.group]) === null || _c === void 0 ? void 0 : _c[component.name]) !== null && _d !== void 0 ? _d : component.defaultValue);
|
|
1166
|
+
}
|
|
1167
|
+
}
|
|
1314
1168
|
if (overriddenValue != undefined) {
|
|
1315
1169
|
return overriddenValue;
|
|
1316
1170
|
}
|
|
@@ -1322,7 +1176,7 @@ var MyAutoModuleAppModel = /** @class */ (function () {
|
|
|
1322
1176
|
return processedArg.value;
|
|
1323
1177
|
}
|
|
1324
1178
|
}
|
|
1325
|
-
return ((
|
|
1179
|
+
return ((_h = (_g = (_f = (_e = _this.state) === null || _e === void 0 ? void 0 : _e[tab]) === null || _f === void 0 ? void 0 : _f[component.group]) === null || _g === void 0 ? void 0 : _g[component.name]) !== null && _h !== void 0 ? _h : AutoModuleHelper.getDefaultValue(_this.model.getDerivedFunctions().overrideDefaultValues, component));
|
|
1326
1180
|
};
|
|
1327
1181
|
this.getHardwareComponentValue = function (tab, component, setting) {
|
|
1328
1182
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
@@ -1378,6 +1232,27 @@ var MyAutoModuleAppModel = /** @class */ (function () {
|
|
|
1378
1232
|
.getExportInterfaces()
|
|
1379
1233
|
.getProcessedArgValue(component.name);
|
|
1380
1234
|
if (processedArg != undefined) {
|
|
1235
|
+
if (setting &&
|
|
1236
|
+
setting.options &&
|
|
1237
|
+
typeof processedArg.value === "boolean") {
|
|
1238
|
+
var result_1 = "";
|
|
1239
|
+
if (processedArg.value === true) {
|
|
1240
|
+
var settingOptions = setting.options;
|
|
1241
|
+
settingOptions.forEach(function (eachOption) {
|
|
1242
|
+
if (eachOption.alias.toLowerCase().startsWith("enable")) {
|
|
1243
|
+
result_1 = eachOption.alias;
|
|
1244
|
+
}
|
|
1245
|
+
});
|
|
1246
|
+
}
|
|
1247
|
+
else if (processedArg.value === false) {
|
|
1248
|
+
setting.options.forEach(function (eachOption) {
|
|
1249
|
+
if (eachOption.alias.toLowerCase().startsWith("disable")) {
|
|
1250
|
+
result_1 = eachOption.alias;
|
|
1251
|
+
}
|
|
1252
|
+
});
|
|
1253
|
+
}
|
|
1254
|
+
return result_1;
|
|
1255
|
+
}
|
|
1381
1256
|
return processedArg.value;
|
|
1382
1257
|
}
|
|
1383
1258
|
}
|
|
@@ -1402,6 +1277,24 @@ var MyAutoModuleAppModel = /** @class */ (function () {
|
|
|
1402
1277
|
}
|
|
1403
1278
|
return "None";
|
|
1404
1279
|
};
|
|
1280
|
+
this.getFileLoadComponentValue = function (component) {
|
|
1281
|
+
var _a;
|
|
1282
|
+
var fileContents;
|
|
1283
|
+
fileContents = (_a = _this.model.getPrototypeModule().loadedFiles) === null || _a === void 0 ? void 0 : _a[component.name];
|
|
1284
|
+
return fileContents;
|
|
1285
|
+
};
|
|
1286
|
+
this.getFileSaveComponentValue = function (component) {
|
|
1287
|
+
var _a;
|
|
1288
|
+
var fileContents = undefined;
|
|
1289
|
+
var overriddenValue = _this.model.getDerivedFunction(component.name);
|
|
1290
|
+
if (overriddenValue !== undefined) {
|
|
1291
|
+
fileContents = overriddenValue;
|
|
1292
|
+
}
|
|
1293
|
+
else {
|
|
1294
|
+
fileContents = (_a = component.fileMeta) === null || _a === void 0 ? void 0 : _a.defaultContent;
|
|
1295
|
+
}
|
|
1296
|
+
return fileContents;
|
|
1297
|
+
};
|
|
1405
1298
|
this.getDefaultValue = function (optionType, setting) {
|
|
1406
1299
|
var _a;
|
|
1407
1300
|
if (optionType == undefined)
|
|
@@ -1497,6 +1390,14 @@ var MyAutoModuleAppModel = /** @class */ (function () {
|
|
|
1497
1390
|
_this.componentList[componentName].value =
|
|
1498
1391
|
_this.getDependencyComponentValue(component);
|
|
1499
1392
|
}
|
|
1393
|
+
else if (component.category === "file_load") {
|
|
1394
|
+
_this.componentList[componentName].value =
|
|
1395
|
+
_this.getFileLoadComponentValue(component);
|
|
1396
|
+
}
|
|
1397
|
+
else if (component.category === "file_save") {
|
|
1398
|
+
_this.componentList[componentName].value =
|
|
1399
|
+
_this.getFileSaveComponentValue(component);
|
|
1400
|
+
}
|
|
1500
1401
|
_this.componentList[componentName].component.actions =
|
|
1501
1402
|
_this.getActions(component);
|
|
1502
1403
|
}
|
|
@@ -1578,7 +1479,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
1578
1479
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
1579
1480
|
};
|
|
1580
1481
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1581
|
-
exports.getFriendlyInterfaceId = exports.getModuleDefaultDescription = exports.DependencySelector = exports.getProcessedHandle = exports.getSettingOptionsIfPresent = exports.getOverrideDefaultValue = exports.getSettingDefaultIfPresent = exports.getOptionValueByName = exports.getSettingFromComponent = exports.getSettingBits = exports.getRegisterValues = exports.hasConfigBits = exports.getComboOptions = exports.getDefaultValue = exports.castComponent = void 0;
|
|
1482
|
+
exports.getFriendlyInterfaceId = exports.getModuleDefaultDescription = exports.DependencySelector = exports.populateLoadedFiles = exports.getProcessedHandle = exports.filterModeOptions = exports.getSettingOptionsIfPresent = exports.getOverrideDefaultValue = exports.getSettingDefaultIfPresent = exports.getOptionValueByName = exports.getSettingFromComponent = exports.getSettingBits = exports.getRegisterValues = exports.hasConfigBits = exports.getComboOptions = exports.getDefaultValue = exports.castComponent = void 0;
|
|
1582
1483
|
var CalculateRegisterValue_1 = __importDefault(__webpack_require__(/*! @microchip/scf-device/lib/CalculateRegisterValue */ "./node_modules/@microchip/scf-device/lib/CalculateRegisterValue.js"));
|
|
1583
1484
|
var Setting_1 = __webpack_require__(/*! @microchip/scf-device/lib/Setting */ "./node_modules/@microchip/scf-device/lib/Setting.js");
|
|
1584
1485
|
var Arrays_1 = __webpack_require__(/*! @microchip/scf-device/lib/util/Arrays */ "./node_modules/@microchip/scf-device/lib/util/Arrays.js");
|
|
@@ -1638,6 +1539,7 @@ var getRegisterValues = function (model, interfaceName) {
|
|
|
1638
1539
|
valueAsHex: "0x00",
|
|
1639
1540
|
name: reg === null || reg === void 0 ? void 0 : reg.name,
|
|
1640
1541
|
alias: (_c = reg === null || reg === void 0 ? void 0 : reg.alias) !== null && _c !== void 0 ? _c : reg === null || reg === void 0 ? void 0 : reg.name,
|
|
1542
|
+
por: reg.defaultValue,
|
|
1641
1543
|
settings: {},
|
|
1642
1544
|
};
|
|
1643
1545
|
}
|
|
@@ -1700,14 +1602,17 @@ var sortComments = function (comments, register) {
|
|
|
1700
1602
|
return comments.join("");
|
|
1701
1603
|
};
|
|
1702
1604
|
var getSettingBits = function (register, setting, value, deviceType) {
|
|
1703
|
-
var _a
|
|
1704
|
-
var
|
|
1605
|
+
var _a;
|
|
1606
|
+
var option = (0, Setting_1.getOptionByAlias)(value, setting);
|
|
1607
|
+
var setValNumber = Number((_a = option === null || option === void 0 ? void 0 : option.value) !== null && _a !== void 0 ? _a : 0);
|
|
1705
1608
|
var settingValue = {
|
|
1706
1609
|
alias: setting.alias,
|
|
1707
1610
|
name: setting.name,
|
|
1708
1611
|
value: setValNumber !== null && setValNumber !== void 0 ? setValNumber : 0,
|
|
1709
1612
|
valueAsHex: "0x" + setValNumber.toString(16).toUpperCase(),
|
|
1710
1613
|
valueAsDescription: value,
|
|
1614
|
+
type: setting.type,
|
|
1615
|
+
optionName: option === null || option === void 0 ? void 0 : option.name,
|
|
1711
1616
|
bitName: deviceType === "PIC"
|
|
1712
1617
|
? "".concat(register.name, "bits.").concat(setting.name)
|
|
1713
1618
|
: "".concat(register.name, ".").concat(setting.name),
|
|
@@ -1808,7 +1713,7 @@ var getSettingOptionsIfPresent = function (component, setting, masterComponentVa
|
|
|
1808
1713
|
var options = [""];
|
|
1809
1714
|
if (setting) {
|
|
1810
1715
|
var filteredOptions = component.mode
|
|
1811
|
-
? filterModeOptions((_a = setting.options) !== null && _a !== void 0 ? _a : [], component, masterComponentValue)
|
|
1716
|
+
? (0, exports.filterModeOptions)((_a = setting.options) !== null && _a !== void 0 ? _a : [], component, masterComponentValue)
|
|
1812
1717
|
: setting.options;
|
|
1813
1718
|
options = (0, Arrays_1.map)(filteredOptions !== null && filteredOptions !== void 0 ? filteredOptions : [], function (option) { var _a, _b; return (_b = option[(_a = component.displayOptionSetting) !== null && _a !== void 0 ? _a : "alias"]) !== null && _b !== void 0 ? _b : option.alias; });
|
|
1814
1719
|
}
|
|
@@ -1828,6 +1733,10 @@ var filterModeOptions = function (options, component, masterComponentValue) {
|
|
|
1828
1733
|
}
|
|
1829
1734
|
return false;
|
|
1830
1735
|
});
|
|
1736
|
+
// optionModes : when Key value are not same
|
|
1737
|
+
if (mode === undefined) {
|
|
1738
|
+
mode = masterComponentValue;
|
|
1739
|
+
}
|
|
1831
1740
|
var filteredOptions = (0, Arrays_1.filter)(options !== null && options !== void 0 ? options : [], function (option) {
|
|
1832
1741
|
var _a, _b, _c, _d;
|
|
1833
1742
|
if (option.mode && mode) {
|
|
@@ -1840,14 +1749,37 @@ var filterModeOptions = function (options, component, masterComponentValue) {
|
|
|
1840
1749
|
});
|
|
1841
1750
|
return filteredOptions;
|
|
1842
1751
|
};
|
|
1752
|
+
exports.filterModeOptions = filterModeOptions;
|
|
1843
1753
|
var getProcessedHandle = function (handle, payload) {
|
|
1844
|
-
var _a, _b, _c;
|
|
1754
|
+
var _a, _b, _c, _d;
|
|
1845
1755
|
if (handle) {
|
|
1846
|
-
handle = __assign(__assign({}, handle), { label: (_c = (_b = (_a =
|
|
1756
|
+
handle = __assign(__assign({}, handle), { label: (_d = (_c = (_b = (_a = handle === null || handle === void 0 ? void 0 : handle.label) !== null && _a !== void 0 ? _a : payload === null || payload === void 0 ? void 0 : payload.customName) !== null && _b !== void 0 ? _b : payload === null || payload === void 0 ? void 0 : payload.moduleName) !== null && _c !== void 0 ? _c : payload === null || payload === void 0 ? void 0 : payload.name) !== null && _d !== void 0 ? _d : handle.providerId + " : " + handle.exportId });
|
|
1847
1757
|
}
|
|
1848
1758
|
return handle;
|
|
1849
1759
|
};
|
|
1850
1760
|
exports.getProcessedHandle = getProcessedHandle;
|
|
1761
|
+
var populateLoadedFiles = function (processedOutput) {
|
|
1762
|
+
var _a;
|
|
1763
|
+
var result = __assign({}, processedOutput);
|
|
1764
|
+
var consolidatedFiles = {};
|
|
1765
|
+
//pushing all the inmemory files provided from Melody
|
|
1766
|
+
if (result.loadedFiles !== undefined) {
|
|
1767
|
+
for (var eachFileId in result.loadedFiles) {
|
|
1768
|
+
var eachFile = result.loadedFiles[eachFileId];
|
|
1769
|
+
consolidatedFiles[eachFileId] = eachFile;
|
|
1770
|
+
}
|
|
1771
|
+
}
|
|
1772
|
+
//pushing all the instate files stored in state(project) - NOTE: if same fileId exists in state and memory then state will be given priority
|
|
1773
|
+
if (((_a = result.state) === null || _a === void 0 ? void 0 : _a.loadedFiles) !== undefined) {
|
|
1774
|
+
for (var eachFileId in result.state.loadedFiles) {
|
|
1775
|
+
var eachFile = result.state.loadedFiles[eachFileId];
|
|
1776
|
+
consolidatedFiles[eachFileId] = eachFile;
|
|
1777
|
+
}
|
|
1778
|
+
}
|
|
1779
|
+
result.loadedFiles = consolidatedFiles;
|
|
1780
|
+
return result;
|
|
1781
|
+
};
|
|
1782
|
+
exports.populateLoadedFiles = populateLoadedFiles;
|
|
1851
1783
|
var DependencySelector = /** @class */ (function () {
|
|
1852
1784
|
function DependencySelector(model, component) {
|
|
1853
1785
|
var _this = this;
|
|
@@ -1872,7 +1804,7 @@ var DependencySelector = /** @class */ (function () {
|
|
|
1872
1804
|
if (this.shouldAllowUnselectDependency(thisImport, options)) {
|
|
1873
1805
|
dropdownOptions.push(this.noneSelection);
|
|
1874
1806
|
}
|
|
1875
|
-
if (options) {
|
|
1807
|
+
if (options !== undefined) {
|
|
1876
1808
|
for (var option in options) {
|
|
1877
1809
|
dropdownOptions.push(this.createOptionEntry(options[option]));
|
|
1878
1810
|
}
|
|
@@ -1885,9 +1817,7 @@ var DependencySelector = /** @class */ (function () {
|
|
|
1885
1817
|
return names;
|
|
1886
1818
|
};
|
|
1887
1819
|
DependencySelector.prototype.shouldAllowUnselectDependency = function (thisImport, options) {
|
|
1888
|
-
return
|
|
1889
|
-
thisImport.isUnassignable != false &&
|
|
1890
|
-
options !== undefined);
|
|
1820
|
+
return thisImport != undefined && thisImport.isUnassignable != false;
|
|
1891
1821
|
};
|
|
1892
1822
|
return DependencySelector;
|
|
1893
1823
|
}());
|
|
@@ -2048,7 +1978,7 @@ var getConfigBits = function (model) {
|
|
|
2048
1978
|
var configBits = (_b = configModule.registers) === null || _b === void 0 ? void 0 : _b[configName];
|
|
2049
1979
|
templateConfigBits_1 = __assign(__assign({}, templateConfigBits_1), (_a = {}, _a[configName] = {}, _a));
|
|
2050
1980
|
configBits === null || configBits === void 0 ? void 0 : configBits.forEach(function (configBit) {
|
|
2051
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
1981
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
2052
1982
|
var register = registers_1 === null || registers_1 === void 0 ? void 0 : registers_1[configName];
|
|
2053
1983
|
var value;
|
|
2054
1984
|
if (register && !register.settings) {
|
|
@@ -2058,20 +1988,20 @@ var getConfigBits = function (model) {
|
|
|
2058
1988
|
else {
|
|
2059
1989
|
var setting = (_d = (_c = registers_1 === null || registers_1 === void 0 ? void 0 : registers_1[configName]) === null || _c === void 0 ? void 0 : _c.settings) === null || _d === void 0 ? void 0 : _d[configBit.setting];
|
|
2060
1990
|
value =
|
|
2061
|
-
(_g = (_f = (0, Arrays_1.find)((_e = setting === null || setting === void 0 ? void 0 : setting.options) !== null && _e !== void 0 ? _e : [], function (option) {
|
|
1991
|
+
(_k = (_j = (_g = (_f = (0, Arrays_1.find)((_e = setting === null || setting === void 0 ? void 0 : setting.options) !== null && _e !== void 0 ? _e : [], function (option) {
|
|
2062
1992
|
var _a, _b, _c;
|
|
2063
1993
|
return option.description ===
|
|
2064
1994
|
((_a = model.getComponent(configBit.name)) === null || _a === void 0 ? void 0 : _a.value) ||
|
|
2065
1995
|
option.alias ===
|
|
2066
1996
|
((_b = model.getComponent(configBit.name)) === null || _b === void 0 ? void 0 : _b.value) ||
|
|
2067
1997
|
option.name === ((_c = model.getComponent(configBit.name)) === null || _c === void 0 ? void 0 : _c.value);
|
|
2068
|
-
})) === null || _f === void 0 ? void 0 : _f.name) !== null && _g !== void 0 ? _g : "";
|
|
1998
|
+
})) === null || _f === void 0 ? void 0 : _f.name) !== null && _g !== void 0 ? _g : (_h = model.getComponent(configBit.name)) === null || _h === void 0 ? void 0 : _h.value) !== null && _j !== void 0 ? _j : setting === null || setting === void 0 ? void 0 : setting.defaultValue) !== null && _k !== void 0 ? _k : "";
|
|
2069
1999
|
}
|
|
2070
2000
|
templateConfigBits_1[configName][configBit.setting] = {
|
|
2071
2001
|
name: configBit.setting,
|
|
2072
2002
|
value: value,
|
|
2073
2003
|
description: configBit.description,
|
|
2074
|
-
valueAsDescription: (
|
|
2004
|
+
valueAsDescription: (_l = model.getComponent(configBit.name)) === null || _l === void 0 ? void 0 : _l.value,
|
|
2075
2005
|
};
|
|
2076
2006
|
});
|
|
2077
2007
|
});
|
|
@@ -2157,10 +2087,10 @@ exports.getAutoSdlHelp = getAutoSdlHelp;
|
|
|
2157
2087
|
|
|
2158
2088
|
/***/ }),
|
|
2159
2089
|
|
|
2160
|
-
/***/ "./node_modules/@microchip/scf-automodule-impl/lib/autoModule/
|
|
2161
|
-
|
|
2162
|
-
!*** ./node_modules/@microchip/scf-automodule-impl/lib/autoModule/
|
|
2163
|
-
|
|
2090
|
+
/***/ "./node_modules/@microchip/scf-automodule-impl/lib/autoModule/FrequencyComponentHelper.js":
|
|
2091
|
+
/*!************************************************************************************************!*\
|
|
2092
|
+
!*** ./node_modules/@microchip/scf-automodule-impl/lib/autoModule/FrequencyComponentHelper.js ***!
|
|
2093
|
+
\************************************************************************************************/
|
|
2164
2094
|
/*! no static exports found */
|
|
2165
2095
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2166
2096
|
|
|
@@ -2178,70 +2108,592 @@ var __assign = (this && this.__assign) || function () {
|
|
|
2178
2108
|
return __assign.apply(this, arguments);
|
|
2179
2109
|
};
|
|
2180
2110
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2181
|
-
exports.
|
|
2182
|
-
var
|
|
2183
|
-
var
|
|
2184
|
-
var
|
|
2185
|
-
|
|
2186
|
-
|
|
2111
|
+
exports.getFreqCompSchema = exports.isFrequencyComponent = exports.isFreqUnitInState = exports.isFreqValueInState = exports.isFreqComponentInState = exports.getFreqCompFormData = void 0;
|
|
2112
|
+
var getFreqCompFormData = function (model, component, tab) {
|
|
2113
|
+
var _a;
|
|
2114
|
+
var componentValue = {
|
|
2115
|
+
value: component.defaultValue.value,
|
|
2116
|
+
unit: component.defaultValue.unit
|
|
2117
|
+
};
|
|
2118
|
+
if (component.frequencyMeta) {
|
|
2119
|
+
// Min value update
|
|
2120
|
+
if (component.frequencyMeta.min) {
|
|
2121
|
+
componentValue = __assign(__assign({}, componentValue), { min: {
|
|
2122
|
+
value: component.frequencyMeta.min.value,
|
|
2123
|
+
unit: component.frequencyMeta.min.unit
|
|
2124
|
+
} });
|
|
2125
|
+
}
|
|
2126
|
+
// Max value update
|
|
2127
|
+
if (component.frequencyMeta.max) {
|
|
2128
|
+
componentValue = __assign(__assign({}, componentValue), { max: {
|
|
2129
|
+
value: component.frequencyMeta.max.value,
|
|
2130
|
+
unit: component.frequencyMeta.max.unit
|
|
2131
|
+
} });
|
|
2132
|
+
}
|
|
2133
|
+
// Options update
|
|
2134
|
+
if (component.frequencyMeta.unitOptions) {
|
|
2135
|
+
componentValue = __assign(__assign({}, componentValue), { options: component.frequencyMeta.unitOptions });
|
|
2136
|
+
}
|
|
2187
2137
|
}
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
2195
|
-
/* const mode = find(setting.tabs, (mode => {
|
|
2196
|
-
return mode === "registerFilter"
|
|
2197
|
-
})) */ // TODO : Multiple modes support
|
|
2198
|
-
if (((_a = setting === null || setting === void 0 ? void 0 : setting.mode) === null || _a === void 0 ? void 0 : _a.operation) === "registerFilter") {
|
|
2199
|
-
var targetStr = (_c = model === null || model === void 0 ? void 0 : model.getComponent((_b = setting === null || setting === void 0 ? void 0 : setting.mode) === null || _b === void 0 ? void 0 : _b.masterComponent)) === null || _c === void 0 ? void 0 : _c.value;
|
|
2200
|
-
var matchRegEx = new RegExp((_e = (_d = setting === null || setting === void 0 ? void 0 : setting.mode) === null || _d === void 0 ? void 0 : _d.matchRegEx) !== null && _e !== void 0 ? _e : "");
|
|
2201
|
-
if (!matchRegEx.test(targetStr)) {
|
|
2202
|
-
var settingObj = (_h = (_g = (_f = modifiedHardwarePeripheral === null || modifiedHardwarePeripheral === void 0 ? void 0 : modifiedHardwarePeripheral.registers) === null || _f === void 0 ? void 0 : _f[registerName]) === null || _g === void 0 ? void 0 : _g.settings) === null || _h === void 0 ? void 0 : _h[setting.setting];
|
|
2203
|
-
if (settingObj !== undefined) {
|
|
2204
|
-
(_l = (_k = (_j = modifiedHardwarePeripheral === null || modifiedHardwarePeripheral === void 0 ? void 0 : modifiedHardwarePeripheral.registers) === null || _j === void 0 ? void 0 : _j[registerName]) === null || _k === void 0 ? void 0 : _k.settings) === null || _l === void 0 ? true : delete _l[setting.setting];
|
|
2205
|
-
}
|
|
2206
|
-
else {
|
|
2207
|
-
(_m = modifiedHardwarePeripheral === null || modifiedHardwarePeripheral === void 0 ? void 0 : modifiedHardwarePeripheral.registers) === null || _m === void 0 ? true : delete _m[registerName];
|
|
2208
|
-
}
|
|
2209
|
-
delFlag = true;
|
|
2210
|
-
}
|
|
2211
|
-
}
|
|
2212
|
-
});
|
|
2213
|
-
if (delFlag &&
|
|
2214
|
-
(0, Utils_1.getKeys)((_d = (_c = (_b = modifiedHardwarePeripheral === null || modifiedHardwarePeripheral === void 0 ? void 0 : modifiedHardwarePeripheral.registers) === null || _b === void 0 ? void 0 : _b[registerName]) === null || _c === void 0 ? void 0 : _c.settings) !== null && _d !== void 0 ? _d : [])
|
|
2215
|
-
.length <= 0) {
|
|
2216
|
-
(_f = (_e = modifiedHardwarePeripheral === null || modifiedHardwarePeripheral === void 0 ? void 0 : modifiedHardwarePeripheral.registers) === null || _e === void 0 ? void 0 : _e[registerName]) === null || _f === void 0 ? true : delete _f.settings;
|
|
2217
|
-
(_g = modifiedHardwarePeripheral === null || modifiedHardwarePeripheral === void 0 ? void 0 : modifiedHardwarePeripheral.registers) === null || _g === void 0 ? true : delete _g[registerName];
|
|
2138
|
+
// Form data updation based on dynamic data
|
|
2139
|
+
var updatedFreqComp = (model.getDerivedFunctions() && model.getDerivedFunctions()[component.name] != null) ? (_a = model.getDerivedFunctions()) === null || _a === void 0 ? void 0 : _a[component.name]() : undefined;
|
|
2140
|
+
if (updatedFreqComp) {
|
|
2141
|
+
// Default value update
|
|
2142
|
+
if (updatedFreqComp.defaultValue) {
|
|
2143
|
+
componentValue = __assign(__assign({}, componentValue), { value: updatedFreqComp.defaultValue.value, unit: updatedFreqComp.defaultValue.unit });
|
|
2218
2144
|
}
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2145
|
+
// Min, Max and Options update
|
|
2146
|
+
if (updatedFreqComp.frequencyMeta) {
|
|
2147
|
+
if (updatedFreqComp.frequencyMeta.min) {
|
|
2148
|
+
componentValue = __assign(__assign({}, componentValue), { min: {
|
|
2149
|
+
value: updatedFreqComp.frequencyMeta.min.value,
|
|
2150
|
+
unit: updatedFreqComp.frequencyMeta.min.unit,
|
|
2151
|
+
} });
|
|
2152
|
+
}
|
|
2153
|
+
if (updatedFreqComp.frequencyMeta.max) {
|
|
2154
|
+
componentValue = __assign(__assign({}, componentValue), { max: {
|
|
2155
|
+
value: updatedFreqComp.frequencyMeta.max.value,
|
|
2156
|
+
unit: updatedFreqComp.frequencyMeta.max.unit,
|
|
2157
|
+
} });
|
|
2158
|
+
}
|
|
2159
|
+
if (updatedFreqComp.frequencyMeta.unitOptions) {
|
|
2160
|
+
componentValue = __assign(__assign({}, componentValue), { options: updatedFreqComp.frequencyMeta.unitOptions });
|
|
2233
2161
|
}
|
|
2234
2162
|
}
|
|
2235
|
-
}
|
|
2236
|
-
|
|
2163
|
+
}
|
|
2164
|
+
if (!isFreqComponentInState(model, component, tab)) {
|
|
2165
|
+
return componentValue;
|
|
2166
|
+
}
|
|
2167
|
+
else {
|
|
2168
|
+
var modelState = model.getState();
|
|
2169
|
+
var tabState = modelState ? modelState[tab] : undefined;
|
|
2170
|
+
if (isFreqValueInState(model, component, tab)) {
|
|
2171
|
+
var valueChanged = tabState[component.group][component.name].value;
|
|
2172
|
+
componentValue = __assign(__assign({}, componentValue), { value: valueChanged });
|
|
2173
|
+
}
|
|
2174
|
+
if (isFreqUnitInState(model, component, tab)) {
|
|
2175
|
+
var unitChanged = tabState[component.group][component.name].unit;
|
|
2176
|
+
componentValue = __assign(__assign({}, componentValue), { unit: unitChanged });
|
|
2177
|
+
}
|
|
2178
|
+
return componentValue;
|
|
2179
|
+
}
|
|
2237
2180
|
};
|
|
2238
|
-
exports.
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2181
|
+
exports.getFreqCompFormData = getFreqCompFormData;
|
|
2182
|
+
function isFreqComponentInState(model, component, tab) {
|
|
2183
|
+
var modelState = model.getState();
|
|
2184
|
+
var tabState = modelState ? modelState[tab] : undefined;
|
|
2185
|
+
return (tabState && tabState[component.group] && tabState[component.group][component.name]);
|
|
2186
|
+
}
|
|
2187
|
+
exports.isFreqComponentInState = isFreqComponentInState;
|
|
2188
|
+
function isFreqValueInState(model, component, tab) {
|
|
2189
|
+
var modelState = model.getState();
|
|
2190
|
+
var tabState = modelState ? modelState[tab] : undefined;
|
|
2191
|
+
return (tabState && tabState[component.group] && tabState[component.group][component.name] && tabState[component.group][component.name].value);
|
|
2192
|
+
}
|
|
2193
|
+
exports.isFreqValueInState = isFreqValueInState;
|
|
2194
|
+
function isFreqUnitInState(model, component, tab) {
|
|
2195
|
+
var modelState = model.getState();
|
|
2196
|
+
var tabState = modelState ? modelState[tab] : undefined;
|
|
2197
|
+
return (tabState && tabState[component.group] && tabState[component.group][component.name] && tabState[component.group][component.name].unit);
|
|
2198
|
+
}
|
|
2199
|
+
exports.isFreqUnitInState = isFreqUnitInState;
|
|
2200
|
+
function isFrequencyComponent(component) {
|
|
2201
|
+
return (component.category === "software" &&
|
|
2202
|
+
component.type === "frequency");
|
|
2203
|
+
}
|
|
2204
|
+
exports.isFrequencyComponent = isFrequencyComponent;
|
|
2205
|
+
function getFreqCompSchema(component, derivedFunctions) {
|
|
2206
|
+
var _a, _b;
|
|
2207
|
+
//Schema creation with static moduleConfig data
|
|
2208
|
+
var schema = {
|
|
2209
|
+
type: "object",
|
|
2210
|
+
$id: "frequency",
|
|
2211
|
+
title: (_b = (_a = derivedFunctions === null || derivedFunctions === void 0 ? void 0 : derivedFunctions.overrideTitle) === null || _a === void 0 ? void 0 : _a.call(derivedFunctions, component.name)) !== null && _b !== void 0 ? _b : component.description,
|
|
2212
|
+
properties: {
|
|
2213
|
+
value: {
|
|
2214
|
+
type: "number",
|
|
2215
|
+
default: component.defaultValue.value,
|
|
2216
|
+
},
|
|
2217
|
+
unit: {
|
|
2218
|
+
type: "string",
|
|
2219
|
+
default: component.defaultValue.unit,
|
|
2220
|
+
}
|
|
2221
|
+
},
|
|
2222
|
+
};
|
|
2223
|
+
if (component.frequencyMeta) {
|
|
2224
|
+
// Min value update
|
|
2225
|
+
if (component.frequencyMeta.min) {
|
|
2226
|
+
schema = __assign(__assign({}, schema), { properties: __assign(__assign({}, schema.properties), { min: {
|
|
2227
|
+
type: "object",
|
|
2228
|
+
properties: {
|
|
2229
|
+
value: {
|
|
2230
|
+
type: "number",
|
|
2231
|
+
default: component.frequencyMeta.min.value,
|
|
2232
|
+
},
|
|
2233
|
+
unit: {
|
|
2234
|
+
type: "string",
|
|
2235
|
+
default: component.frequencyMeta.min.unit,
|
|
2236
|
+
}
|
|
2237
|
+
}
|
|
2238
|
+
} }) });
|
|
2239
|
+
}
|
|
2240
|
+
// Max value update
|
|
2241
|
+
if (component.frequencyMeta.max) {
|
|
2242
|
+
schema = __assign(__assign({}, schema), { properties: __assign(__assign({}, schema.properties), { max: {
|
|
2243
|
+
type: "object",
|
|
2244
|
+
properties: {
|
|
2245
|
+
value: {
|
|
2246
|
+
type: "number",
|
|
2247
|
+
default: component.frequencyMeta.max.value,
|
|
2248
|
+
},
|
|
2249
|
+
unit: {
|
|
2250
|
+
type: "string",
|
|
2251
|
+
default: component.frequencyMeta.max.unit,
|
|
2252
|
+
}
|
|
2253
|
+
}
|
|
2254
|
+
} }) });
|
|
2255
|
+
}
|
|
2256
|
+
// Unit options update
|
|
2257
|
+
if (component.frequencyMeta.unitOptions) {
|
|
2258
|
+
schema = __assign(__assign({}, schema), { properties: __assign(__assign({}, schema.properties), { options: {
|
|
2259
|
+
type: "array",
|
|
2260
|
+
items: {
|
|
2261
|
+
type: "string",
|
|
2262
|
+
enum: component.frequencyMeta.unitOptions,
|
|
2263
|
+
}
|
|
2264
|
+
} }) });
|
|
2265
|
+
}
|
|
2266
|
+
}
|
|
2267
|
+
//Schema updation based on dynamic data
|
|
2268
|
+
var updatedFreqComp = (derivedFunctions && derivedFunctions[component.name] != null) ? derivedFunctions === null || derivedFunctions === void 0 ? void 0 : derivedFunctions[component.name]() : undefined;
|
|
2269
|
+
if (updatedFreqComp) {
|
|
2270
|
+
// description update
|
|
2271
|
+
if (updatedFreqComp.description) {
|
|
2272
|
+
schema = __assign(__assign({}, schema), { title: updatedFreqComp.description });
|
|
2273
|
+
}
|
|
2274
|
+
// defaultValue update
|
|
2275
|
+
if (updatedFreqComp.defaultValue) {
|
|
2276
|
+
schema = __assign(__assign({}, schema), { properties: __assign(__assign({}, schema.properties), { value: {
|
|
2277
|
+
type: "number",
|
|
2278
|
+
default: updatedFreqComp.defaultValue.value,
|
|
2279
|
+
}, unit: {
|
|
2280
|
+
type: "string",
|
|
2281
|
+
default: updatedFreqComp.defaultValue.unit,
|
|
2282
|
+
} }) });
|
|
2283
|
+
}
|
|
2284
|
+
// frequencyMeta update
|
|
2285
|
+
if (updatedFreqComp.frequencyMeta) {
|
|
2286
|
+
// Min value and unit update
|
|
2287
|
+
if (updatedFreqComp.frequencyMeta.min) {
|
|
2288
|
+
schema = __assign(__assign({}, schema), { properties: __assign(__assign({}, schema.properties), { min: {
|
|
2289
|
+
type: "object",
|
|
2290
|
+
properties: {
|
|
2291
|
+
value: {
|
|
2292
|
+
type: "number",
|
|
2293
|
+
default: updatedFreqComp.frequencyMeta.min.value,
|
|
2294
|
+
},
|
|
2295
|
+
unit: {
|
|
2296
|
+
type: "string",
|
|
2297
|
+
default: updatedFreqComp.frequencyMeta.min.unit,
|
|
2298
|
+
}
|
|
2299
|
+
}
|
|
2300
|
+
} }) });
|
|
2301
|
+
}
|
|
2302
|
+
// Max value and unit update
|
|
2303
|
+
if (updatedFreqComp.frequencyMeta.max) {
|
|
2304
|
+
schema = __assign(__assign({}, schema), { properties: __assign(__assign({}, schema.properties), { max: {
|
|
2305
|
+
type: "object",
|
|
2306
|
+
properties: {
|
|
2307
|
+
value: {
|
|
2308
|
+
type: "number",
|
|
2309
|
+
default: updatedFreqComp.frequencyMeta.max.value,
|
|
2310
|
+
},
|
|
2311
|
+
unit: {
|
|
2312
|
+
type: "string",
|
|
2313
|
+
default: updatedFreqComp.frequencyMeta.max.unit,
|
|
2314
|
+
}
|
|
2315
|
+
}
|
|
2316
|
+
} }) });
|
|
2317
|
+
}
|
|
2318
|
+
// Unit options update
|
|
2319
|
+
if (updatedFreqComp.frequencyMeta.unitOptions) {
|
|
2320
|
+
schema = __assign(__assign({}, schema), { properties: __assign(__assign({}, schema.properties), { options: {
|
|
2321
|
+
type: "array",
|
|
2322
|
+
items: {
|
|
2323
|
+
type: "string",
|
|
2324
|
+
enum: updatedFreqComp.frequencyMeta.unitOptions,
|
|
2325
|
+
}
|
|
2326
|
+
} }) });
|
|
2327
|
+
}
|
|
2328
|
+
}
|
|
2329
|
+
}
|
|
2330
|
+
return schema;
|
|
2331
|
+
}
|
|
2332
|
+
exports.getFreqCompSchema = getFreqCompSchema;
|
|
2333
|
+
//# sourceMappingURL=FrequencyComponentHelper.js.map
|
|
2334
|
+
|
|
2335
|
+
/***/ }),
|
|
2336
|
+
|
|
2337
|
+
/***/ "./node_modules/@microchip/scf-automodule-impl/lib/autoModule/RegisterFilterMode.js":
|
|
2338
|
+
/*!******************************************************************************************!*\
|
|
2339
|
+
!*** ./node_modules/@microchip/scf-automodule-impl/lib/autoModule/RegisterFilterMode.js ***!
|
|
2340
|
+
\******************************************************************************************/
|
|
2341
|
+
/*! no static exports found */
|
|
2342
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2343
|
+
|
|
2344
|
+
"use strict";
|
|
2345
|
+
|
|
2346
|
+
var __assign = (this && this.__assign) || function () {
|
|
2347
|
+
__assign = Object.assign || function(t) {
|
|
2348
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
2349
|
+
s = arguments[i];
|
|
2350
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
2351
|
+
t[p] = s[p];
|
|
2352
|
+
}
|
|
2353
|
+
return t;
|
|
2354
|
+
};
|
|
2355
|
+
return __assign.apply(this, arguments);
|
|
2356
|
+
};
|
|
2357
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2358
|
+
exports.hasModes = exports.processRegisterModes = void 0;
|
|
2359
|
+
var Utils_1 = __webpack_require__(/*! ../Utils */ "./node_modules/@microchip/scf-automodule-impl/lib/Utils.js");
|
|
2360
|
+
var processRegisterModes = function (peripheral, hardwarePeripheral, model) {
|
|
2361
|
+
var _a, _b;
|
|
2362
|
+
if (!(0, exports.hasModes)(peripheral)) {
|
|
2363
|
+
return hardwarePeripheral;
|
|
2364
|
+
}
|
|
2365
|
+
var modifiedHardwarePeripheral = __assign(__assign({}, hardwarePeripheral), { registers: __assign({}, hardwarePeripheral.registers) });
|
|
2366
|
+
(_b = (0, Utils_1.getKeys)((_a = peripheral === null || peripheral === void 0 ? void 0 : peripheral.registers) !== null && _a !== void 0 ? _a : {})) === null || _b === void 0 ? void 0 : _b.forEach(function (registerName) {
|
|
2367
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
2368
|
+
var settings = (_a = peripheral === null || peripheral === void 0 ? void 0 : peripheral.registers) === null || _a === void 0 ? void 0 : _a[registerName];
|
|
2369
|
+
var delFlag = false;
|
|
2370
|
+
settings === null || settings === void 0 ? void 0 : settings.forEach(function (setting) {
|
|
2371
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
2372
|
+
/* const mode = find(setting.tabs, (mode => {
|
|
2373
|
+
return mode === "registerFilter"
|
|
2374
|
+
})) */ // TODO : Multiple modes support
|
|
2375
|
+
if (((_a = setting === null || setting === void 0 ? void 0 : setting.mode) === null || _a === void 0 ? void 0 : _a.operation) === "registerFilter") {
|
|
2376
|
+
var targetStr = (_c = model === null || model === void 0 ? void 0 : model.getComponent((_b = setting === null || setting === void 0 ? void 0 : setting.mode) === null || _b === void 0 ? void 0 : _b.masterComponent)) === null || _c === void 0 ? void 0 : _c.value;
|
|
2377
|
+
var matchRegEx = new RegExp((_e = (_d = setting === null || setting === void 0 ? void 0 : setting.mode) === null || _d === void 0 ? void 0 : _d.matchRegEx) !== null && _e !== void 0 ? _e : "");
|
|
2378
|
+
if (!matchRegEx.test(targetStr)) {
|
|
2379
|
+
var settingObj = (_h = (_g = (_f = modifiedHardwarePeripheral === null || modifiedHardwarePeripheral === void 0 ? void 0 : modifiedHardwarePeripheral.registers) === null || _f === void 0 ? void 0 : _f[registerName]) === null || _g === void 0 ? void 0 : _g.settings) === null || _h === void 0 ? void 0 : _h[setting.setting];
|
|
2380
|
+
if (settingObj !== undefined) {
|
|
2381
|
+
(_l = (_k = (_j = modifiedHardwarePeripheral === null || modifiedHardwarePeripheral === void 0 ? void 0 : modifiedHardwarePeripheral.registers) === null || _j === void 0 ? void 0 : _j[registerName]) === null || _k === void 0 ? void 0 : _k.settings) === null || _l === void 0 ? true : delete _l[setting.setting];
|
|
2382
|
+
}
|
|
2383
|
+
else {
|
|
2384
|
+
(_m = modifiedHardwarePeripheral === null || modifiedHardwarePeripheral === void 0 ? void 0 : modifiedHardwarePeripheral.registers) === null || _m === void 0 ? true : delete _m[registerName];
|
|
2385
|
+
}
|
|
2386
|
+
delFlag = true;
|
|
2387
|
+
}
|
|
2388
|
+
}
|
|
2389
|
+
});
|
|
2390
|
+
if (delFlag &&
|
|
2391
|
+
(0, Utils_1.getKeys)((_d = (_c = (_b = modifiedHardwarePeripheral === null || modifiedHardwarePeripheral === void 0 ? void 0 : modifiedHardwarePeripheral.registers) === null || _b === void 0 ? void 0 : _b[registerName]) === null || _c === void 0 ? void 0 : _c.settings) !== null && _d !== void 0 ? _d : [])
|
|
2392
|
+
.length <= 0) {
|
|
2393
|
+
(_f = (_e = modifiedHardwarePeripheral === null || modifiedHardwarePeripheral === void 0 ? void 0 : modifiedHardwarePeripheral.registers) === null || _e === void 0 ? void 0 : _e[registerName]) === null || _f === void 0 ? true : delete _f.settings;
|
|
2394
|
+
(_g = modifiedHardwarePeripheral === null || modifiedHardwarePeripheral === void 0 ? void 0 : modifiedHardwarePeripheral.registers) === null || _g === void 0 ? true : delete _g[registerName];
|
|
2395
|
+
}
|
|
2396
|
+
});
|
|
2397
|
+
return modifiedHardwarePeripheral;
|
|
2398
|
+
};
|
|
2399
|
+
exports.processRegisterModes = processRegisterModes;
|
|
2400
|
+
var hasModes = function (peripheral) {
|
|
2401
|
+
var _a, _b;
|
|
2402
|
+
var flag = false;
|
|
2403
|
+
(_b = (0, Utils_1.getKeys)((_a = peripheral === null || peripheral === void 0 ? void 0 : peripheral.registers) !== null && _a !== void 0 ? _a : {})) === null || _b === void 0 ? void 0 : _b.forEach(function (registerName) {
|
|
2404
|
+
var _a;
|
|
2405
|
+
var settings = (_a = peripheral === null || peripheral === void 0 ? void 0 : peripheral.registers) === null || _a === void 0 ? void 0 : _a[registerName];
|
|
2406
|
+
for (var _i = 0, _b = settings !== null && settings !== void 0 ? settings : []; _i < _b.length; _i++) {
|
|
2407
|
+
var setting = _b[_i];
|
|
2408
|
+
if ((setting === null || setting === void 0 ? void 0 : setting.mode) !== undefined) {
|
|
2409
|
+
flag = true;
|
|
2410
|
+
}
|
|
2411
|
+
}
|
|
2412
|
+
});
|
|
2413
|
+
return flag;
|
|
2414
|
+
};
|
|
2415
|
+
exports.hasModes = hasModes;
|
|
2416
|
+
//# sourceMappingURL=RegisterFilterMode.js.map
|
|
2417
|
+
|
|
2418
|
+
/***/ }),
|
|
2419
|
+
|
|
2420
|
+
/***/ "./node_modules/@microchip/scf-automodule-impl/lib/autoModule/TimeComponentHelper.js":
|
|
2421
|
+
/*!*******************************************************************************************!*\
|
|
2422
|
+
!*** ./node_modules/@microchip/scf-automodule-impl/lib/autoModule/TimeComponentHelper.js ***!
|
|
2423
|
+
\*******************************************************************************************/
|
|
2424
|
+
/*! no static exports found */
|
|
2425
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2426
|
+
|
|
2427
|
+
"use strict";
|
|
2428
|
+
|
|
2429
|
+
var __assign = (this && this.__assign) || function () {
|
|
2430
|
+
__assign = Object.assign || function(t) {
|
|
2431
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
2432
|
+
s = arguments[i];
|
|
2433
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
2434
|
+
t[p] = s[p];
|
|
2435
|
+
}
|
|
2436
|
+
return t;
|
|
2437
|
+
};
|
|
2438
|
+
return __assign.apply(this, arguments);
|
|
2439
|
+
};
|
|
2440
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2441
|
+
exports.getTimeComponentSchema = exports.isTimeComponent = exports.isTimeUnitInState = exports.isTimeValueInState = exports.isTimeComponentInState = exports.getTimeComponentFormData = void 0;
|
|
2442
|
+
var getTimeComponentFormData = function (model, component, tab) {
|
|
2443
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
2444
|
+
var componentValue = {
|
|
2445
|
+
value: component.defaultValue.value,
|
|
2446
|
+
unit: component.defaultValue.unit
|
|
2447
|
+
};
|
|
2448
|
+
var updatedTimeComponent = (model.getDerivedFunctions() && model.getDerivedFunctions()[component.name] != null) ? (_a = model.getDerivedFunctions()) === null || _a === void 0 ? void 0 : _a[component.name]() : undefined;
|
|
2449
|
+
if (updatedTimeComponent) {
|
|
2450
|
+
if (updatedTimeComponent.defaultValue) {
|
|
2451
|
+
componentValue = {
|
|
2452
|
+
value: updatedTimeComponent.defaultValue.value,
|
|
2453
|
+
unit: updatedTimeComponent.defaultValue.unit,
|
|
2454
|
+
};
|
|
2455
|
+
}
|
|
2456
|
+
else {
|
|
2457
|
+
componentValue = {
|
|
2458
|
+
value: component.defaultValue.value,
|
|
2459
|
+
unit: component.defaultValue.unit,
|
|
2460
|
+
};
|
|
2461
|
+
}
|
|
2462
|
+
if (updatedTimeComponent.timeMeta) {
|
|
2463
|
+
if (updatedTimeComponent.timeMeta.min) {
|
|
2464
|
+
componentValue = __assign(__assign({}, componentValue), { min: {
|
|
2465
|
+
value: updatedTimeComponent.timeMeta.min.value,
|
|
2466
|
+
unit: updatedTimeComponent.timeMeta.min.unit,
|
|
2467
|
+
} });
|
|
2468
|
+
}
|
|
2469
|
+
else {
|
|
2470
|
+
componentValue = __assign(__assign({}, componentValue), { min: {
|
|
2471
|
+
value: (_c = (_b = component.timeMeta) === null || _b === void 0 ? void 0 : _b.min) === null || _c === void 0 ? void 0 : _c.value,
|
|
2472
|
+
unit: (_e = (_d = component.timeMeta) === null || _d === void 0 ? void 0 : _d.min) === null || _e === void 0 ? void 0 : _e.unit,
|
|
2473
|
+
} });
|
|
2474
|
+
}
|
|
2475
|
+
if (updatedTimeComponent.timeMeta.max) {
|
|
2476
|
+
componentValue = __assign(__assign({}, componentValue), { max: {
|
|
2477
|
+
value: updatedTimeComponent.timeMeta.max.value,
|
|
2478
|
+
unit: updatedTimeComponent.timeMeta.max.unit,
|
|
2479
|
+
} });
|
|
2480
|
+
}
|
|
2481
|
+
else {
|
|
2482
|
+
componentValue = __assign(__assign({}, componentValue), { max: {
|
|
2483
|
+
value: (_g = (_f = component.timeMeta) === null || _f === void 0 ? void 0 : _f.max) === null || _g === void 0 ? void 0 : _g.value,
|
|
2484
|
+
unit: (_j = (_h = component.timeMeta) === null || _h === void 0 ? void 0 : _h.max) === null || _j === void 0 ? void 0 : _j.unit,
|
|
2485
|
+
} });
|
|
2486
|
+
}
|
|
2487
|
+
if (updatedTimeComponent.timeMeta.unitOptions) {
|
|
2488
|
+
componentValue = __assign(__assign({}, componentValue), { options: updatedTimeComponent.timeMeta.unitOptions });
|
|
2489
|
+
}
|
|
2490
|
+
else {
|
|
2491
|
+
componentValue = __assign(__assign({}, componentValue), { options: (_k = component.timeMeta) === null || _k === void 0 ? void 0 : _k.unitOptions });
|
|
2492
|
+
}
|
|
2493
|
+
}
|
|
2494
|
+
}
|
|
2495
|
+
else if (component.timeMeta) {
|
|
2496
|
+
componentValue = {
|
|
2497
|
+
value: component.defaultValue.value,
|
|
2498
|
+
unit: component.defaultValue.unit,
|
|
2499
|
+
};
|
|
2500
|
+
if (component.timeMeta.min) {
|
|
2501
|
+
componentValue = __assign(__assign({}, componentValue), { min: {
|
|
2502
|
+
value: component.timeMeta.min.value,
|
|
2503
|
+
unit: component.timeMeta.min.unit,
|
|
2504
|
+
} });
|
|
2505
|
+
}
|
|
2506
|
+
if (component.timeMeta.max) {
|
|
2507
|
+
componentValue = __assign(__assign({}, componentValue), { max: {
|
|
2508
|
+
value: component.timeMeta.max.value,
|
|
2509
|
+
unit: component.timeMeta.max.unit,
|
|
2510
|
+
} });
|
|
2511
|
+
}
|
|
2512
|
+
if (component.timeMeta.unitOptions) {
|
|
2513
|
+
componentValue = __assign(__assign({}, componentValue), { options: component.timeMeta.unitOptions });
|
|
2514
|
+
}
|
|
2515
|
+
}
|
|
2516
|
+
else {
|
|
2517
|
+
componentValue = {
|
|
2518
|
+
value: component.defaultValue.value,
|
|
2519
|
+
unit: component.defaultValue.unit,
|
|
2520
|
+
};
|
|
2521
|
+
}
|
|
2522
|
+
if (!isTimeComponentInState(model, component, tab)) {
|
|
2523
|
+
return componentValue;
|
|
2524
|
+
}
|
|
2525
|
+
else {
|
|
2526
|
+
var modelState = model.getState();
|
|
2527
|
+
var tabState = modelState ? modelState[tab] : undefined;
|
|
2528
|
+
if (isTimeValueInState(model, component, tab)) {
|
|
2529
|
+
var valueChanged = tabState[component.group][component.name].value;
|
|
2530
|
+
componentValue = __assign(__assign({}, componentValue), { value: valueChanged });
|
|
2531
|
+
}
|
|
2532
|
+
if (isTimeUnitInState(model, component, tab)) {
|
|
2533
|
+
var unitChanged = tabState[component.group][component.name].unit;
|
|
2534
|
+
componentValue = __assign(__assign({}, componentValue), { unit: unitChanged });
|
|
2535
|
+
}
|
|
2536
|
+
return componentValue;
|
|
2537
|
+
}
|
|
2538
|
+
};
|
|
2539
|
+
exports.getTimeComponentFormData = getTimeComponentFormData;
|
|
2540
|
+
function isTimeComponentInState(model, component, tab) {
|
|
2541
|
+
var modelState = model.getState();
|
|
2542
|
+
var tabState = modelState ? modelState[tab] : undefined;
|
|
2543
|
+
return (tabState && tabState[component.group] && tabState[component.group][component.name]);
|
|
2544
|
+
}
|
|
2545
|
+
exports.isTimeComponentInState = isTimeComponentInState;
|
|
2546
|
+
function isTimeValueInState(model, component, tab) {
|
|
2547
|
+
var modelState = model.getState();
|
|
2548
|
+
var tabState = modelState ? modelState[tab] : undefined;
|
|
2549
|
+
return (tabState && tabState[component.group] && tabState[component.group][component.name] && tabState[component.group][component.name].value);
|
|
2550
|
+
}
|
|
2551
|
+
exports.isTimeValueInState = isTimeValueInState;
|
|
2552
|
+
function isTimeUnitInState(model, component, tab) {
|
|
2553
|
+
var modelState = model.getState();
|
|
2554
|
+
var tabState = modelState ? modelState[tab] : undefined;
|
|
2555
|
+
return (tabState && tabState[component.group] && tabState[component.group][component.name] && tabState[component.group][component.name].unit);
|
|
2556
|
+
}
|
|
2557
|
+
exports.isTimeUnitInState = isTimeUnitInState;
|
|
2558
|
+
function isTimeComponent(component) {
|
|
2559
|
+
return (component.category === "software" &&
|
|
2560
|
+
component.type === "time");
|
|
2561
|
+
}
|
|
2562
|
+
exports.isTimeComponent = isTimeComponent;
|
|
2563
|
+
function getTimeComponentSchema(component, derivedFunctions) {
|
|
2564
|
+
var _a, _b;
|
|
2565
|
+
//Schema creation with static moduleConfig data
|
|
2566
|
+
var schema = {
|
|
2567
|
+
type: "object",
|
|
2568
|
+
$id: "timeComponent",
|
|
2569
|
+
title: (_b = (_a = derivedFunctions === null || derivedFunctions === void 0 ? void 0 : derivedFunctions.overrideTitle) === null || _a === void 0 ? void 0 : _a.call(derivedFunctions, component.name)) !== null && _b !== void 0 ? _b : component.description,
|
|
2570
|
+
properties: {
|
|
2571
|
+
value: {
|
|
2572
|
+
type: "number",
|
|
2573
|
+
default: component.defaultValue.value,
|
|
2574
|
+
},
|
|
2575
|
+
unit: {
|
|
2576
|
+
type: "string",
|
|
2577
|
+
default: component.defaultValue.unit,
|
|
2578
|
+
}
|
|
2579
|
+
},
|
|
2580
|
+
};
|
|
2581
|
+
if (component.timeMeta) {
|
|
2582
|
+
// Min value update
|
|
2583
|
+
if (component.timeMeta.min) {
|
|
2584
|
+
schema = __assign(__assign({}, schema), { properties: __assign(__assign({}, schema.properties), { min: {
|
|
2585
|
+
type: "object",
|
|
2586
|
+
properties: {
|
|
2587
|
+
value: {
|
|
2588
|
+
type: "number",
|
|
2589
|
+
default: component.timeMeta.min.value,
|
|
2590
|
+
},
|
|
2591
|
+
unit: {
|
|
2592
|
+
type: "string",
|
|
2593
|
+
default: component.timeMeta.min.unit,
|
|
2594
|
+
}
|
|
2595
|
+
}
|
|
2596
|
+
} }) });
|
|
2597
|
+
}
|
|
2598
|
+
// Max value update
|
|
2599
|
+
if (component.timeMeta.max) {
|
|
2600
|
+
schema = __assign(__assign({}, schema), { properties: __assign(__assign({}, schema.properties), { max: {
|
|
2601
|
+
type: "object",
|
|
2602
|
+
properties: {
|
|
2603
|
+
value: {
|
|
2604
|
+
type: "number",
|
|
2605
|
+
default: component.timeMeta.max.value,
|
|
2606
|
+
},
|
|
2607
|
+
unit: {
|
|
2608
|
+
type: "string",
|
|
2609
|
+
default: component.timeMeta.max.unit,
|
|
2610
|
+
}
|
|
2611
|
+
}
|
|
2612
|
+
} }) });
|
|
2613
|
+
}
|
|
2614
|
+
// Unit options update
|
|
2615
|
+
if (component.timeMeta.unitOptions) {
|
|
2616
|
+
schema = __assign(__assign({}, schema), { properties: __assign(__assign({}, schema.properties), { options: {
|
|
2617
|
+
type: "array",
|
|
2618
|
+
items: {
|
|
2619
|
+
type: "string",
|
|
2620
|
+
enum: component.timeMeta.unitOptions,
|
|
2621
|
+
}
|
|
2622
|
+
} }) });
|
|
2623
|
+
}
|
|
2624
|
+
}
|
|
2625
|
+
//Schema updation based on dynamic data
|
|
2626
|
+
var updatedTimeComponent = (derivedFunctions && derivedFunctions[component.name] != null) ? derivedFunctions === null || derivedFunctions === void 0 ? void 0 : derivedFunctions[component.name]() : undefined;
|
|
2627
|
+
if (updatedTimeComponent) {
|
|
2628
|
+
// description update
|
|
2629
|
+
if (updatedTimeComponent.description) {
|
|
2630
|
+
schema = __assign(__assign({}, schema), { title: updatedTimeComponent.description });
|
|
2631
|
+
}
|
|
2632
|
+
// defaultValue update
|
|
2633
|
+
if (updatedTimeComponent.defaultValue) {
|
|
2634
|
+
schema = __assign(__assign({}, schema), { properties: __assign(__assign({}, schema.properties), { value: {
|
|
2635
|
+
type: "number",
|
|
2636
|
+
default: updatedTimeComponent.defaultValue.value,
|
|
2637
|
+
}, unit: {
|
|
2638
|
+
type: "string",
|
|
2639
|
+
default: updatedTimeComponent.defaultValue.unit,
|
|
2640
|
+
} }) });
|
|
2641
|
+
}
|
|
2642
|
+
// timeMeta update
|
|
2643
|
+
if (updatedTimeComponent.timeMeta) {
|
|
2644
|
+
// Min value and unit update
|
|
2645
|
+
if (updatedTimeComponent.timeMeta.min) {
|
|
2646
|
+
schema = __assign(__assign({}, schema), { properties: __assign(__assign({}, schema.properties), { min: {
|
|
2647
|
+
type: "object",
|
|
2648
|
+
properties: {
|
|
2649
|
+
value: {
|
|
2650
|
+
type: "number",
|
|
2651
|
+
default: updatedTimeComponent.timeMeta.min.value,
|
|
2652
|
+
},
|
|
2653
|
+
unit: {
|
|
2654
|
+
type: "string",
|
|
2655
|
+
default: updatedTimeComponent.timeMeta.min.unit,
|
|
2656
|
+
}
|
|
2657
|
+
}
|
|
2658
|
+
} }) });
|
|
2659
|
+
}
|
|
2660
|
+
// Max value and unit update
|
|
2661
|
+
if (updatedTimeComponent.timeMeta.max) {
|
|
2662
|
+
schema = __assign(__assign({}, schema), { properties: __assign(__assign({}, schema.properties), { max: {
|
|
2663
|
+
type: "object",
|
|
2664
|
+
properties: {
|
|
2665
|
+
value: {
|
|
2666
|
+
type: "number",
|
|
2667
|
+
default: updatedTimeComponent.timeMeta.max.value,
|
|
2668
|
+
},
|
|
2669
|
+
unit: {
|
|
2670
|
+
type: "string",
|
|
2671
|
+
default: updatedTimeComponent.timeMeta.max.unit,
|
|
2672
|
+
}
|
|
2673
|
+
}
|
|
2674
|
+
} }) });
|
|
2675
|
+
}
|
|
2676
|
+
// Unit options update
|
|
2677
|
+
if (updatedTimeComponent.timeMeta.unitOptions) {
|
|
2678
|
+
schema = __assign(__assign({}, schema), { properties: __assign(__assign({}, schema.properties), { options: {
|
|
2679
|
+
type: "array",
|
|
2680
|
+
items: {
|
|
2681
|
+
type: "string",
|
|
2682
|
+
enum: updatedTimeComponent.timeMeta.unitOptions,
|
|
2683
|
+
}
|
|
2684
|
+
} }) });
|
|
2685
|
+
}
|
|
2686
|
+
}
|
|
2687
|
+
}
|
|
2688
|
+
return schema;
|
|
2689
|
+
}
|
|
2690
|
+
exports.getTimeComponentSchema = getTimeComponentSchema;
|
|
2691
|
+
//# sourceMappingURL=TimeComponentHelper.js.map
|
|
2692
|
+
|
|
2693
|
+
/***/ }),
|
|
2694
|
+
|
|
2695
|
+
/***/ "./node_modules/@microchip/scf-automodule-impl/lib/autoModule/getConfigData.js":
|
|
2696
|
+
/*!*************************************************************************************!*\
|
|
2245
2697
|
!*** ./node_modules/@microchip/scf-automodule-impl/lib/autoModule/getConfigData.js ***!
|
|
2246
2698
|
\*************************************************************************************/
|
|
2247
2699
|
/*! no static exports found */
|
|
@@ -2564,6 +3016,8 @@ exports.createFormData = void 0;
|
|
|
2564
3016
|
var tables_1 = __webpack_require__(/*! ../../tables/tables */ "./node_modules/@microchip/scf-automodule-impl/lib/tables/tables.js");
|
|
2565
3017
|
var Utils_1 = __webpack_require__(/*! ../../Utils */ "./node_modules/@microchip/scf-automodule-impl/lib/Utils.js");
|
|
2566
3018
|
var schema_1 = __webpack_require__(/*! ./schema */ "./node_modules/@microchip/scf-automodule-impl/lib/autoModule/views/schema.js");
|
|
3019
|
+
var TimeComponentHelper_1 = __webpack_require__(/*! ../TimeComponentHelper */ "./node_modules/@microchip/scf-automodule-impl/lib/autoModule/TimeComponentHelper.js");
|
|
3020
|
+
var FrequencyComponentHelper_1 = __webpack_require__(/*! ../FrequencyComponentHelper */ "./node_modules/@microchip/scf-automodule-impl/lib/autoModule/FrequencyComponentHelper.js");
|
|
2567
3021
|
function createFormData(tab, config, model) {
|
|
2568
3022
|
var _a;
|
|
2569
3023
|
var formData = {};
|
|
@@ -2576,10 +3030,28 @@ function createFormData(tab, config, model) {
|
|
|
2576
3030
|
}
|
|
2577
3031
|
var component = entry.component;
|
|
2578
3032
|
var value = model.getComponentValue(component.name);
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
3033
|
+
var regex = new RegExp("[en,dis]abled?");
|
|
3034
|
+
if (component.type === "boolean") {
|
|
3035
|
+
if (value && typeof value === 'string') {
|
|
3036
|
+
if (regex.test(value.toLowerCase()) && typeof config.booleanValues.true === "string") {
|
|
3037
|
+
var configVal = config.booleanValues.true;
|
|
3038
|
+
if (configVal.toLowerCase() === "enable") {
|
|
3039
|
+
value = value.toLowerCase().startsWith(configVal.toLowerCase());
|
|
3040
|
+
}
|
|
3041
|
+
else {
|
|
3042
|
+
value = configVal.toLowerCase().startsWith(value.toLowerCase());
|
|
3043
|
+
}
|
|
3044
|
+
}
|
|
3045
|
+
else if (value === "true") {
|
|
3046
|
+
value = true;
|
|
3047
|
+
}
|
|
3048
|
+
else if (value === "false") {
|
|
3049
|
+
value = false;
|
|
3050
|
+
}
|
|
3051
|
+
}
|
|
3052
|
+
else if (value && typeof value === 'boolean') {
|
|
3053
|
+
value = value;
|
|
3054
|
+
}
|
|
2583
3055
|
}
|
|
2584
3056
|
if (component.type === "DescriptionOnly") {
|
|
2585
3057
|
value = null;
|
|
@@ -2590,6 +3062,18 @@ function createFormData(tab, config, model) {
|
|
|
2590
3062
|
if (component.category === "table") {
|
|
2591
3063
|
value = (0, tables_1.getTableFormData)(model, component, tab);
|
|
2592
3064
|
}
|
|
3065
|
+
if (component.category === "file_load") {
|
|
3066
|
+
value = "";
|
|
3067
|
+
}
|
|
3068
|
+
if (component.type === "time") {
|
|
3069
|
+
value = (0, TimeComponentHelper_1.getTimeComponentFormData)(model, component, tab);
|
|
3070
|
+
}
|
|
3071
|
+
if (component.type === "frequency") {
|
|
3072
|
+
value = (0, FrequencyComponentHelper_1.getFreqCompFormData)(model, component, tab);
|
|
3073
|
+
}
|
|
3074
|
+
if (component.category === "file_save") {
|
|
3075
|
+
value = "";
|
|
3076
|
+
}
|
|
2593
3077
|
formData[component.group] = __assign(__assign({}, formData[component.group]), (_a = {}, _a[component.name] = value, _a));
|
|
2594
3078
|
});
|
|
2595
3079
|
}
|
|
@@ -2630,10 +3114,10 @@ function createScfUiSchema(tab, config, model) {
|
|
|
2630
3114
|
var _a;
|
|
2631
3115
|
var scfUiSchema = {};
|
|
2632
3116
|
if (config) {
|
|
2633
|
-
var
|
|
2634
|
-
(_a = (0, Utils_1.
|
|
2635
|
-
var _a, _b, _c, _d;
|
|
2636
|
-
var component =
|
|
3117
|
+
var components_1 = getAllComponents(model);
|
|
3118
|
+
(_a = (0, Utils_1.getKeys)(components_1)) === null || _a === void 0 ? void 0 : _a.forEach(function (eachKey) {
|
|
3119
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
3120
|
+
var component = components_1[eachKey].component;
|
|
2637
3121
|
var name = component.name, group = component.group;
|
|
2638
3122
|
var schema = {};
|
|
2639
3123
|
if (component.tabs.indexOf(tab) == -1)
|
|
@@ -2655,8 +3139,24 @@ function createScfUiSchema(tab, config, model) {
|
|
|
2655
3139
|
schema["tooltip"] = getTooltip(component);
|
|
2656
3140
|
}
|
|
2657
3141
|
}
|
|
3142
|
+
if (component.category === "file_load") {
|
|
3143
|
+
schema["fileLoadProps"] = {};
|
|
3144
|
+
schema["fileLoadProps"]["fileId"] = eachKey;
|
|
3145
|
+
schema["fileLoadProps"]["saveState"] = (_c = (_b = component.fileMeta) === null || _b === void 0 ? void 0 : _b.saveState) !== null && _c !== void 0 ? _c : false;
|
|
3146
|
+
schema["fileLoadProps"]["filter"] = (_d = component.fileMeta) === null || _d === void 0 ? void 0 : _d.filter;
|
|
3147
|
+
schema["fileLoadProps"]["type"] = "file_load";
|
|
3148
|
+
schema["fileLoadProps"]["compText"] = (_e = component.fileMeta) === null || _e === void 0 ? void 0 : _e.compText;
|
|
3149
|
+
}
|
|
3150
|
+
if (component.category === "file_save") {
|
|
3151
|
+
schema["fileSaveProps"] = {};
|
|
3152
|
+
schema["fileSaveProps"]["fileId"] = eachKey;
|
|
3153
|
+
schema["fileSaveProps"]["fileContents"] = model.getComponentValue(component.name);
|
|
3154
|
+
schema["fileSaveProps"]["fileName"] = (_f = component.fileMeta) === null || _f === void 0 ? void 0 : _f.defaultName;
|
|
3155
|
+
schema["fileSaveProps"]["type"] = "file_save";
|
|
3156
|
+
schema["fileSaveProps"]["compText"] = (_g = component.fileMeta) === null || _g === void 0 ? void 0 : _g.compText;
|
|
3157
|
+
}
|
|
2658
3158
|
if (component.category === "table") {
|
|
2659
|
-
var tableState = (
|
|
3159
|
+
var tableState = (_k = (_j = (_h = model === null || model === void 0 ? void 0 : model.getState()) === null || _h === void 0 ? void 0 : _h[tab]) === null || _j === void 0 ? void 0 : _j[group]) === null || _k === void 0 ? void 0 : _k[name];
|
|
2660
3160
|
var uids = (0, tables_1.createTableUids)(component, tab, model, tableState);
|
|
2661
3161
|
schema["table"] = getTableUiSchema(component, uids);
|
|
2662
3162
|
actions = (0, tables_1.getTableActions)(component, tab, model, uids);
|
|
@@ -2758,10 +3258,12 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
2758
3258
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
2759
3259
|
};
|
|
2760
3260
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2761
|
-
exports.isInvalidTab = exports.createSchema = void 0;
|
|
3261
|
+
exports.getDependencyComponentSchema = exports.isInvalidTab = exports.createSchema = void 0;
|
|
2762
3262
|
var tables_1 = __webpack_require__(/*! ../../tables/tables */ "./node_modules/@microchip/scf-automodule-impl/lib/tables/tables.js");
|
|
2763
3263
|
var Utils_1 = __webpack_require__(/*! ../../Utils */ "./node_modules/@microchip/scf-automodule-impl/lib/Utils.js");
|
|
2764
3264
|
var AutoModuleHelpers_1 = __webpack_require__(/*! ../AutoModuleHelpers */ "./node_modules/@microchip/scf-automodule-impl/lib/autoModule/AutoModuleHelpers.js");
|
|
3265
|
+
var TimeComponentHelper_1 = __webpack_require__(/*! ../TimeComponentHelper */ "./node_modules/@microchip/scf-automodule-impl/lib/autoModule/TimeComponentHelper.js");
|
|
3266
|
+
var FrequencyComponentHelper_1 = __webpack_require__(/*! ../FrequencyComponentHelper */ "./node_modules/@microchip/scf-automodule-impl/lib/autoModule/FrequencyComponentHelper.js");
|
|
2765
3267
|
var autoModuleViewHelpers_1 = __webpack_require__(/*! ./autoModuleViewHelpers */ "./node_modules/@microchip/scf-automodule-impl/lib/autoModule/views/autoModuleViewHelpers.js");
|
|
2766
3268
|
function createSchema(tab, config, viewModel) {
|
|
2767
3269
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
@@ -2846,6 +3348,12 @@ function addComponentSchema(component, viewModel) {
|
|
|
2846
3348
|
else if (component.category === "import") {
|
|
2847
3349
|
return getDependencyComponentSchema(component, viewModel);
|
|
2848
3350
|
}
|
|
3351
|
+
else if (component.category === "file_load") {
|
|
3352
|
+
return getFileLoadComponentSchema(component, viewModel);
|
|
3353
|
+
}
|
|
3354
|
+
else if (component.category === "file_save") {
|
|
3355
|
+
return getFileSaveComponentSchema(component, viewModel);
|
|
3356
|
+
}
|
|
2849
3357
|
else if (component["category"] === "table") {
|
|
2850
3358
|
return (0, tables_1.getTableComponentSchema)(component, viewModel);
|
|
2851
3359
|
}
|
|
@@ -2876,6 +3384,12 @@ function getSoftwareComponentSchema(component, derivedFunctions) {
|
|
|
2876
3384
|
title: component.description,
|
|
2877
3385
|
};
|
|
2878
3386
|
}
|
|
3387
|
+
else if (component.type === "time") {
|
|
3388
|
+
schema = (0, TimeComponentHelper_1.getTimeComponentSchema)(component, derivedFunctions);
|
|
3389
|
+
}
|
|
3390
|
+
else if (component.type === "frequency") {
|
|
3391
|
+
schema = (0, FrequencyComponentHelper_1.getFreqCompSchema)(component, derivedFunctions);
|
|
3392
|
+
}
|
|
2879
3393
|
else {
|
|
2880
3394
|
schema = {
|
|
2881
3395
|
type: component.type,
|
|
@@ -2891,15 +3405,18 @@ function getSoftwareComponentSchema(component, derivedFunctions) {
|
|
|
2891
3405
|
return schema;
|
|
2892
3406
|
}
|
|
2893
3407
|
function getDependencyComponentSchema(component, viewModel) {
|
|
2894
|
-
var _a, _b, _c, _d, _e;
|
|
3408
|
+
var _a, _b, _c, _d, _e, _f;
|
|
2895
3409
|
var schema = {};
|
|
3410
|
+
if (((_a = component.uiBehavior) === null || _a === void 0 ? void 0 : _a["ui:widget"]) === "hidden") {
|
|
3411
|
+
return;
|
|
3412
|
+
}
|
|
2896
3413
|
if (component.type === "ComboBox" && viewModel.model) {
|
|
2897
3414
|
var dependencySelector = new AutoModuleHelpers_1.DependencySelector(viewModel.model, component);
|
|
2898
3415
|
if (dependencySelector.getDropdownOptionNames().length <= 0) {
|
|
2899
3416
|
return schema;
|
|
2900
3417
|
}
|
|
2901
3418
|
var dropdownOptions = dependencySelector.getDropdownOptionNames();
|
|
2902
|
-
var assignedImport = (
|
|
3419
|
+
var assignedImport = (_c = (_b = viewModel.createProcessedImports) === null || _b === void 0 ? void 0 : _b.call(viewModel, "views")) === null || _c === void 0 ? void 0 : _c[component.importId];
|
|
2903
3420
|
var NONE_1 = "None";
|
|
2904
3421
|
var assignedName = NONE_1;
|
|
2905
3422
|
var selectedDependency = viewModel.model.getComponentValue(component.name);
|
|
@@ -2916,25 +3433,48 @@ function getDependencyComponentSchema(component, viewModel) {
|
|
|
2916
3433
|
dropdownOptions = __spreadArray([NONE_1], dropdownOptions.filter(function (item) { return item !== NONE_1; }), true);
|
|
2917
3434
|
schema = {
|
|
2918
3435
|
type: "string",
|
|
2919
|
-
title: (
|
|
3436
|
+
title: (_f = (_e = (_d = viewModel.getDerivedFunction).overrideTitle) === null || _e === void 0 ? void 0 : _e.call(_d, component.name)) !== null && _f !== void 0 ? _f : component.description,
|
|
2920
3437
|
default: assignedName,
|
|
2921
3438
|
enum: dropdownOptions,
|
|
2922
3439
|
};
|
|
2923
3440
|
}
|
|
2924
3441
|
return schema;
|
|
2925
3442
|
}
|
|
2926
|
-
|
|
2927
|
-
|
|
3443
|
+
exports.getDependencyComponentSchema = getDependencyComponentSchema;
|
|
3444
|
+
function getFileLoadComponentSchema(component, viewModel) {
|
|
3445
|
+
var _a, _b, _c;
|
|
2928
3446
|
var schema = {};
|
|
2929
|
-
|
|
2930
|
-
|
|
3447
|
+
if (viewModel.model) {
|
|
3448
|
+
schema = {
|
|
3449
|
+
type: "string",
|
|
3450
|
+
title: (_c = (_b = (_a = viewModel.getDerivedFunction).overrideTitle) === null || _b === void 0 ? void 0 : _b.call(_a, component.name)) !== null && _c !== void 0 ? _c : component.description,
|
|
3451
|
+
};
|
|
3452
|
+
}
|
|
3453
|
+
return schema;
|
|
3454
|
+
}
|
|
3455
|
+
function getFileSaveComponentSchema(component, viewModel) {
|
|
3456
|
+
var _a, _b, _c;
|
|
3457
|
+
var schema = {};
|
|
3458
|
+
if (viewModel.model) {
|
|
3459
|
+
schema = {
|
|
3460
|
+
type: "string",
|
|
3461
|
+
title: (_c = (_b = (_a = viewModel.getDerivedFunction).overrideTitle) === null || _b === void 0 ? void 0 : _b.call(_a, component.name)) !== null && _c !== void 0 ? _c : component.description,
|
|
3462
|
+
};
|
|
3463
|
+
}
|
|
3464
|
+
return schema;
|
|
3465
|
+
}
|
|
3466
|
+
function getHardwareComponentSchema(component, viewModel) {
|
|
3467
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
3468
|
+
var schema = {};
|
|
3469
|
+
var model = viewModel.model;
|
|
3470
|
+
if (model) {
|
|
2931
3471
|
if (model.getComponentValue(component.name) !== undefined &&
|
|
2932
3472
|
component.type !== "register") {
|
|
2933
3473
|
if (component.type === "ComboBox") {
|
|
2934
3474
|
var setting = (0, AutoModuleHelpers_1.getSettingFromComponent)(model, component);
|
|
2935
3475
|
schema = {
|
|
2936
3476
|
type: "string",
|
|
2937
|
-
title: (_c = (_b = (_a = viewModel.
|
|
3477
|
+
title: (_c = (_b = (_a = viewModel.viewModel.derivedFunctions) === null || _a === void 0 ? void 0 : _a.overrideTitle) === null || _b === void 0 ? void 0 : _b.call(_a, component.name)) !== null && _c !== void 0 ? _c : component.description,
|
|
2938
3478
|
default: (0, AutoModuleHelpers_1.getSettingDefaultIfPresent)(component, setting, (_e = (_d = model
|
|
2939
3479
|
.getDerivedFunctions()).overrideDefaultValues) === null || _e === void 0 ? void 0 : _e.call(_d, component.name)),
|
|
2940
3480
|
enum: (0, AutoModuleHelpers_1.getSettingOptionsIfPresent)(component, setting, model.getComponentValue((_g = (_f = component.mode) === null || _f === void 0 ? void 0 : _f.masterComponent) !== null && _g !== void 0 ? _g : "")),
|
|
@@ -2943,7 +3483,7 @@ function getHardwareComponentSchema(component, viewModel) {
|
|
|
2943
3483
|
else {
|
|
2944
3484
|
schema = {
|
|
2945
3485
|
type: component.type,
|
|
2946
|
-
title: (_k = (_j = (_h = viewModel.
|
|
3486
|
+
title: (_k = (_j = (_h = viewModel.viewModel.derivedFunctions) === null || _h === void 0 ? void 0 : _h.overrideTitle) === null || _j === void 0 ? void 0 : _j.call(_h, component.name)) !== null && _k !== void 0 ? _k : component.description,
|
|
2947
3487
|
};
|
|
2948
3488
|
}
|
|
2949
3489
|
}
|
|
@@ -3023,9 +3563,10 @@ function createUiSchema(tab, config, viewModel) {
|
|
|
3023
3563
|
.map(function (name) { return tableCols_1[name].title.length; })
|
|
3024
3564
|
.reduce(function (a, b) { return Math.max(a, b); });
|
|
3025
3565
|
colNames.forEach(function (name) {
|
|
3026
|
-
var _a, _b, _c, _d, _e, _f;
|
|
3566
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
3027
3567
|
var isColEditable = !tableCols_1[name].readonly;
|
|
3028
3568
|
var columnWidth = defaultColumnWidth_1[name];
|
|
3569
|
+
var disableRowsForCol = (_c = (_b = (_a = viewModel.viewModel.derivedFunctions) === null || _a === void 0 ? void 0 : _a.disableTableCells) === null || _b === void 0 ? void 0 : _b.call(_a, name)) !== null && _c !== void 0 ? _c : [];
|
|
3029
3570
|
columns_1.push({
|
|
3030
3571
|
dataField: name,
|
|
3031
3572
|
editable: isColEditable ? undefined : false,
|
|
@@ -3038,11 +3579,12 @@ function createUiSchema(tab, config, viewModel) {
|
|
|
3038
3579
|
dataSort: tableCols_1[name].isSortable,
|
|
3039
3580
|
headerAlign: displayHeadersDiagonally_1
|
|
3040
3581
|
? defaultAlignment_1
|
|
3041
|
-
: (
|
|
3042
|
-
dataAlign: (
|
|
3043
|
-
disabledRows: (
|
|
3582
|
+
: (_e = (_d = tableCols_1[name].headerAlign) !== null && _d !== void 0 ? _d : tableCols_1[name].dataAlign) !== null && _e !== void 0 ? _e : defaultAlignment_1,
|
|
3583
|
+
dataAlign: (_g = (_f = tableCols_1[name].dataAlign) !== null && _f !== void 0 ? _f : tableCols_1[name].headerAlign) !== null && _g !== void 0 ? _g : defaultAlignment_1,
|
|
3584
|
+
disabledRows: (_h = tableCols_1[name].disabledRows) !== null && _h !== void 0 ? _h : disableRowsForCol,
|
|
3044
3585
|
tdStyle: (0, tables_1.getCellStyle)(tableCols_1[name].readonly),
|
|
3045
|
-
headerText: (
|
|
3586
|
+
headerText: (_j = tableCols_1[name]) === null || _j === void 0 ? void 0 : _j["columnTip"],
|
|
3587
|
+
hidden: (_m = (_l = (_k = viewModel.viewModel.derivedFunctions) === null || _k === void 0 ? void 0 : _k.hideTableColumn) === null || _l === void 0 ? void 0 : _l.call(_k, name)) !== null && _m !== void 0 ? _m : false,
|
|
3046
3588
|
});
|
|
3047
3589
|
});
|
|
3048
3590
|
columns_1 = columns_1.map(function (col) {
|
|
@@ -3078,7 +3620,7 @@ function getUiSchemaExportArg(name, viewModel) {
|
|
|
3078
3620
|
}
|
|
3079
3621
|
function getUiBehavior(component, viewModel) {
|
|
3080
3622
|
var _a, _b;
|
|
3081
|
-
var _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
3623
|
+
var _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
3082
3624
|
var uiBehavior = {};
|
|
3083
3625
|
if (component.uiBehavior) {
|
|
3084
3626
|
(_d = (0, Utils_1.getKeys)((_c = component.uiBehavior) !== null && _c !== void 0 ? _c : {})) === null || _d === void 0 ? void 0 : _d.forEach(function (key) {
|
|
@@ -3099,21 +3641,35 @@ function getUiBehavior(component, viewModel) {
|
|
|
3099
3641
|
else if ((0, autoModuleViewHelpers_1.isImage)(component)) {
|
|
3100
3642
|
uiBehavior["ui:widget"] = "image";
|
|
3101
3643
|
}
|
|
3644
|
+
else if (component.category === "file_load") {
|
|
3645
|
+
uiBehavior["ui:field"] = "file_load";
|
|
3646
|
+
uiBehavior["ui:readonly"] = (_e = component.uiBehavior) === null || _e === void 0 ? void 0 : _e.readonly;
|
|
3647
|
+
}
|
|
3648
|
+
else if (component.type === "time") {
|
|
3649
|
+
uiBehavior["ui:field"] = "TimeComponent";
|
|
3650
|
+
}
|
|
3651
|
+
else if (component.type === "frequency") {
|
|
3652
|
+
uiBehavior["ui:field"] = "frequency";
|
|
3653
|
+
}
|
|
3654
|
+
else if (component.category === "file_save") {
|
|
3655
|
+
uiBehavior["ui:field"] = "file_save";
|
|
3656
|
+
uiBehavior["ui:readonly"] = (_f = component.uiBehavior) === null || _f === void 0 ? void 0 : _f.readonly;
|
|
3657
|
+
}
|
|
3102
3658
|
var overriddenBehavior = {};
|
|
3103
3659
|
if (viewModel) {
|
|
3104
|
-
var overriddenValue = (
|
|
3660
|
+
var overriddenValue = (_h = (_g = viewModel.getDerivedFunction).getUiBehavior) === null || _h === void 0 ? void 0 : _h.call(_g, component.name);
|
|
3105
3661
|
if (overriddenValue != undefined) {
|
|
3106
3662
|
overriddenBehavior = __assign(__assign({}, overriddenBehavior), overriddenValue);
|
|
3107
|
-
if (((
|
|
3663
|
+
if (((_j = (0, Utils_1.getKeys)(overriddenBehavior !== null && overriddenBehavior !== void 0 ? overriddenBehavior : {})) === null || _j === void 0 ? void 0 : _j.indexOf("readonly")) != -1) {
|
|
3108
3664
|
overriddenBehavior["ui:readonly"] = overriddenBehavior["readonly"];
|
|
3109
3665
|
delete overriddenBehavior["readonly"];
|
|
3110
3666
|
}
|
|
3111
3667
|
}
|
|
3112
|
-
var isEnabled = (
|
|
3668
|
+
var isEnabled = (_m = (_l = (_k = viewModel.getDerivedFunction).isEnabled) === null || _l === void 0 ? void 0 : _l.call(_k, component.name)) !== null && _m !== void 0 ? _m : (0, autoModuleViewHelpers_1.isModeActive)("isEnabled", component, viewModel.viewModel.getComponent);
|
|
3113
3669
|
if (isEnabled != undefined) {
|
|
3114
3670
|
overriddenBehavior = __assign(__assign({}, overriddenBehavior), (_a = {}, _a["ui:readonly"] = !isEnabled, _a));
|
|
3115
3671
|
}
|
|
3116
|
-
var isVisible = (
|
|
3672
|
+
var isVisible = (_p = (_o = viewModel.getDerivedFunction).isVisible) === null || _p === void 0 ? void 0 : _p.call(_o, component.name);
|
|
3117
3673
|
if (isVisible != undefined) {
|
|
3118
3674
|
if (!isVisible) {
|
|
3119
3675
|
overriddenBehavior = __assign(__assign({}, overriddenBehavior), (_b = {}, _b["ui:widget"] = "hidden", _b));
|
|
@@ -3277,12 +3833,18 @@ var createPrototypeImports = function (state, creatorFunctions, config) {
|
|
|
3277
3833
|
});
|
|
3278
3834
|
}
|
|
3279
3835
|
(_c = (0, Arrays_1.getKeys)((_b = config === null || config === void 0 ? void 0 : config.imports) !== null && _b !== void 0 ? _b : {})) === null || _c === void 0 ? void 0 : _c.forEach(function (key) {
|
|
3280
|
-
var _a;
|
|
3281
|
-
var
|
|
3282
|
-
var imp = (
|
|
3283
|
-
var args = (
|
|
3284
|
-
|
|
3285
|
-
|
|
3836
|
+
var _a, _b;
|
|
3837
|
+
var _c, _d, _e, _f, _g;
|
|
3838
|
+
var imp = (_c = config === null || config === void 0 ? void 0 : config.imports) === null || _c === void 0 ? void 0 : _c[key];
|
|
3839
|
+
var args = (_d = creatorFunctions === null || creatorFunctions === void 0 ? void 0 : creatorFunctions.getCreatorImportArgs) === null || _d === void 0 ? void 0 : _d.call(creatorFunctions, key, state);
|
|
3840
|
+
var shouldOrder = (_f = (_e = creatorFunctions.updateImportWithShouldAssignDescOrder) === null || _e === void 0 ? void 0 : _e.call(creatorFunctions, key)) !== null && _f !== void 0 ? _f : imp === null || imp === void 0 ? void 0 : imp.import.shouldAssignDescendantsInOrder;
|
|
3841
|
+
if (imp) {
|
|
3842
|
+
if (((_g = creatorFunctions === null || creatorFunctions === void 0 ? void 0 : creatorFunctions.shouldImport) === null || _g === void 0 ? void 0 : _g.call(creatorFunctions, key, state)) != false) {
|
|
3843
|
+
prototypeImports = __assign(__assign({}, prototypeImports), (_a = {}, _a[key] = __assign(__assign({}, imp.import), { args: args }), _a));
|
|
3844
|
+
}
|
|
3845
|
+
if (shouldOrder && shouldOrder.length > 0) {
|
|
3846
|
+
prototypeImports = __assign(__assign({}, prototypeImports), (_b = {}, _b[key] = __assign(__assign({}, imp.import), { args: args, shouldAssignDescendantsInOrder: shouldOrder }), _b));
|
|
3847
|
+
}
|
|
3286
3848
|
}
|
|
3287
3849
|
});
|
|
3288
3850
|
return prototypeImports;
|
|
@@ -3479,13 +4041,14 @@ var MyImportInterfaces = /** @class */ (function () {
|
|
|
3479
4041
|
var processedImports = _this.filterImports();
|
|
3480
4042
|
(_a = (0, Utils_1.getKeys)(processedImports !== null && processedImports !== void 0 ? processedImports : {})) === null || _a === void 0 ? void 0 : _a.forEach(function (key) {
|
|
3481
4043
|
var _a;
|
|
3482
|
-
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
4044
|
+
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
3483
4045
|
processedImports = __assign(__assign({}, processedImports), (_a = {}, _a[key] = __assign(__assign(__assign({}, processedImports[key]), { args: stage === "arguments"
|
|
3484
4046
|
? (_b = _this.model) === null || _b === void 0 ? void 0 : _b.getDerivedFunction(key + "_args")
|
|
3485
4047
|
: (_c = processedImports[key]) === null || _c === void 0 ? void 0 : _c.args, results: stage === "results"
|
|
3486
4048
|
? _this.getResults(processedImports, key)
|
|
3487
|
-
: (_d = processedImports[key]) === null || _d === void 0 ? void 0 : _d.results, name: (_e = _this.model.getDerivedFunction("importName", key)) !== null && _e !== void 0 ? _e : (_f = processedImports[key]) === null || _f === void 0 ? void 0 : _f.name, handle: (0, AutoModuleHelpers_1.getProcessedHandle)(processedImports[key].handle, processedImports[key].payload), options: (_j = _this.getProcessedImportOptions(key, (_h = (_g = processedImports[key]) === null || _g === void 0 ? void 0 : _g.options) !== null && _h !== void 0 ? _h : [])) !== null && _j !== void 0 ? _j : processedImports[key].options
|
|
3488
|
-
|
|
4049
|
+
: (_d = processedImports[key]) === null || _d === void 0 ? void 0 : _d.results, name: (_e = _this.model.getDerivedFunction("importName", key)) !== null && _e !== void 0 ? _e : (_f = processedImports[key]) === null || _f === void 0 ? void 0 : _f.name, handle: (0, AutoModuleHelpers_1.getProcessedHandle)(processedImports[key].handle, processedImports[key].payload), options: (_j = _this.getProcessedImportOptions(key, (_h = (_g = processedImports[key]) === null || _g === void 0 ? void 0 : _g.options) !== null && _h !== void 0 ? _h : [])) !== null && _j !== void 0 ? _j : processedImports[key].options, shouldAssignDescendantsInOrder: (_m = (_l = (_k = _this.model
|
|
4050
|
+
.getDerivedFunctions()).updateImportWithShouldAssignDescOrder) === null || _l === void 0 ? void 0 : _l.call(_k, key)) !== null && _m !== void 0 ? _m : processedImports[key].shouldAssignDescendantsInOrder }), (_p = (_o = _this.model
|
|
4051
|
+
.getDerivedFunctions()).overrideImport) === null || _p === void 0 ? void 0 : _p.call(_o, key, processedImports[key])), _a));
|
|
3489
4052
|
});
|
|
3490
4053
|
return processedImports;
|
|
3491
4054
|
};
|
|
@@ -3504,7 +4067,7 @@ var MyImportInterfaces = /** @class */ (function () {
|
|
|
3504
4067
|
return modifiedOptions;
|
|
3505
4068
|
};
|
|
3506
4069
|
this.getResults = function (imports, key) {
|
|
3507
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
|
|
4070
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
|
3508
4071
|
var importResults = (_a = _this.model) === null || _a === void 0 ? void 0 : _a.getDerivedFunction(key + "_results");
|
|
3509
4072
|
if (importResults)
|
|
3510
4073
|
return importResults;
|
|
@@ -3524,11 +4087,14 @@ var MyImportInterfaces = /** @class */ (function () {
|
|
|
3524
4087
|
else if (imp.interfaceId.name === "pin-standard") {
|
|
3525
4088
|
return (_e = (_d = _this.model).getPCPHelper) === null || _e === void 0 ? void 0 : _e.call(_d).getData();
|
|
3526
4089
|
}
|
|
4090
|
+
else if (imp.interfaceId.name === "pins-interface") {
|
|
4091
|
+
return (_g = (_f = _this.model).getPCPHelper) === null || _g === void 0 ? void 0 : _g.call(_f).getData();
|
|
4092
|
+
}
|
|
3527
4093
|
else if (imp.interfaceId.name === "interrupt-standard") {
|
|
3528
4094
|
var interrupts_1 = [];
|
|
3529
4095
|
var actions_1 = {};
|
|
3530
|
-
var isHighPriority_1 = (
|
|
3531
|
-
(
|
|
4096
|
+
var isHighPriority_1 = (_k = (_j = (_h = _this.model) === null || _h === void 0 ? void 0 : _h.getImportValue("interrupt_standard")) === null || _j === void 0 ? void 0 : _j.isHighPriority) !== null && _k !== void 0 ? _k : {};
|
|
4097
|
+
(_o = (0, Utils_1.values)((_m = (_l = _this.model.getHardware()) === null || _l === void 0 ? void 0 : _l.getPeripheral().interrupts) !== null && _m !== void 0 ? _m : {})) === null || _o === void 0 ? void 0 : _o.forEach(function (interrupt) {
|
|
3532
4098
|
var _a, _b;
|
|
3533
4099
|
var _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
|
|
3534
4100
|
if (!interrupt)
|
|
@@ -3564,13 +4130,13 @@ var MyImportInterfaces = /** @class */ (function () {
|
|
|
3564
4130
|
return {
|
|
3565
4131
|
interruptList: interrupts_1,
|
|
3566
4132
|
interruptActions: actions_1,
|
|
3567
|
-
moduleName: (
|
|
4133
|
+
moduleName: (_p = _this.model.getName()) !== null && _p !== void 0 ? _p : "",
|
|
3568
4134
|
};
|
|
3569
4135
|
}
|
|
3570
4136
|
else if (imp.interfaceId.name === "api-prefix-registration") {
|
|
3571
4137
|
var apiPrefixResults = {
|
|
3572
|
-
apiPrefix: (
|
|
3573
|
-
moduleName: (
|
|
4138
|
+
apiPrefix: (_s = (_r = (_q = _this.model) === null || _q === void 0 ? void 0 : _q.getDerivedFunctions()) === null || _r === void 0 ? void 0 : _r.apiPrefix) !== null && _s !== void 0 ? _s : (_t = _this.model) === null || _t === void 0 ? void 0 : _t.getComponentValue("componentName"),
|
|
4139
|
+
moduleName: (_u = _this.model) === null || _u === void 0 ? void 0 : _u.getName(),
|
|
3574
4140
|
};
|
|
3575
4141
|
return apiPrefixResults;
|
|
3576
4142
|
}
|
|
@@ -3871,7 +4437,7 @@ exports.PCPHelper = PCPHelper;
|
|
|
3871
4437
|
|
|
3872
4438
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3873
4439
|
exports.PCPStateActionBuilder = void 0;
|
|
3874
|
-
var
|
|
4440
|
+
var types_1 = __webpack_require__(/*! @microchip/pins-interface/lib/types */ "./node_modules/@microchip/pins-interface/lib/types.js");
|
|
3875
4441
|
var PCPStateActionBuilder = /** @class */ (function () {
|
|
3876
4442
|
function PCPStateActionBuilder(pinRow) {
|
|
3877
4443
|
this.actionDataArr = [];
|
|
@@ -3891,30 +4457,31 @@ var PCPStateActionBuilder = /** @class */ (function () {
|
|
|
3891
4457
|
this.tabId = tabId;
|
|
3892
4458
|
return this;
|
|
3893
4459
|
};
|
|
3894
|
-
PCPStateActionBuilder.prototype.addIfLockedSetValue = function (pinRegEx, value) {
|
|
4460
|
+
PCPStateActionBuilder.prototype.addIfLockedSetValue = function (pinRegEx, value, pinNameReEx) {
|
|
3895
4461
|
this.actionDataArr.push({
|
|
3896
|
-
pinstate:
|
|
4462
|
+
pinstate: types_1.pin_state.LOCKED,
|
|
3897
4463
|
validFor: pinRegEx,
|
|
4464
|
+
validForpinNameReEx: pinNameReEx,
|
|
3898
4465
|
value: value,
|
|
3899
|
-
actiontype:
|
|
4466
|
+
actiontype: types_1.actiontype.SETACTION,
|
|
3900
4467
|
});
|
|
3901
4468
|
return this;
|
|
3902
4469
|
};
|
|
3903
4470
|
PCPStateActionBuilder.prototype.addIfLockedProvideAttribs = function (pinRegEx, attribs) {
|
|
3904
4471
|
this.actionDataArr.push({
|
|
3905
|
-
pinstate:
|
|
4472
|
+
pinstate: types_1.pin_state.LOCKED,
|
|
3906
4473
|
validFor: pinRegEx,
|
|
3907
4474
|
value: this.formAttribs(attribs),
|
|
3908
|
-
actiontype:
|
|
4475
|
+
actiontype: types_1.actiontype.ATTRIBACTION,
|
|
3909
4476
|
});
|
|
3910
4477
|
return this;
|
|
3911
4478
|
};
|
|
3912
4479
|
PCPStateActionBuilder.prototype.addIfUnlockedProvideAttribs = function (pinRegEx, attribs) {
|
|
3913
4480
|
this.actionDataArr.push({
|
|
3914
|
-
pinstate:
|
|
4481
|
+
pinstate: types_1.pin_state.UNLOCK,
|
|
3915
4482
|
validFor: pinRegEx,
|
|
3916
4483
|
value: this.formAttribs(attribs),
|
|
3917
|
-
actiontype:
|
|
4484
|
+
actiontype: types_1.actiontype.ATTRIBACTION,
|
|
3918
4485
|
});
|
|
3919
4486
|
return this;
|
|
3920
4487
|
};
|
|
@@ -3925,10 +4492,10 @@ var PCPStateActionBuilder = /** @class */ (function () {
|
|
|
3925
4492
|
};
|
|
3926
4493
|
PCPStateActionBuilder.prototype.addIfUnLockedSetValue = function (pinRegEx, value) {
|
|
3927
4494
|
this.actionDataArr.push({
|
|
3928
|
-
pinstate:
|
|
4495
|
+
pinstate: types_1.pin_state.UNLOCK,
|
|
3929
4496
|
validFor: pinRegEx,
|
|
3930
4497
|
value: value,
|
|
3931
|
-
actiontype:
|
|
4498
|
+
actiontype: types_1.actiontype.SETACTION,
|
|
3932
4499
|
});
|
|
3933
4500
|
return this;
|
|
3934
4501
|
};
|
|
@@ -3943,7 +4510,7 @@ var PCPStateActionBuilder = /** @class */ (function () {
|
|
|
3943
4510
|
this.actionDataArr.forEach(function (eachData) {
|
|
3944
4511
|
var _a;
|
|
3945
4512
|
var _b;
|
|
3946
|
-
|
|
4513
|
+
var actionObj = {
|
|
3947
4514
|
validFor: eachData.validFor,
|
|
3948
4515
|
state: (_a = {},
|
|
3949
4516
|
_a[eachData.pinstate] = {
|
|
@@ -3956,7 +4523,11 @@ var PCPStateActionBuilder = /** @class */ (function () {
|
|
|
3956
4523
|
},
|
|
3957
4524
|
_a),
|
|
3958
4525
|
actiontype: (_b = eachData.actiontype) !== null && _b !== void 0 ? _b : "",
|
|
3959
|
-
}
|
|
4526
|
+
};
|
|
4527
|
+
if (eachData.validForpinNameReEx !== undefined) {
|
|
4528
|
+
actionObj.validForpinNameReEx = eachData.validForpinNameReEx;
|
|
4529
|
+
}
|
|
4530
|
+
actionArr.push(actionObj);
|
|
3960
4531
|
});
|
|
3961
4532
|
}
|
|
3962
4533
|
return actionArr;
|
|
@@ -4013,10 +4584,12 @@ var AnalyticsHelper_1 = __webpack_require__(/*! ./Analytics/AnalyticsHelper */ "
|
|
|
4013
4584
|
*/
|
|
4014
4585
|
var process = function (initialModule, stage, getDerivedData) {
|
|
4015
4586
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
|
|
4587
|
+
initialModule = (0, AutoModuleHelpers_1.populateLoadedFiles)(initialModule);
|
|
4016
4588
|
var model = (0, AppModel_1.getModel)(initialModule, getDerivedData);
|
|
4017
4589
|
if (!model)
|
|
4018
4590
|
return initialModule;
|
|
4019
4591
|
var processedOutput = __assign({}, initialModule);
|
|
4592
|
+
processedOutput = __assign(__assign({}, processedOutput), { showRegisterEditor: (0, getConfigData_1.getConfigData)(model).showRegisterEditor });
|
|
4020
4593
|
switch (stage) {
|
|
4021
4594
|
case "arguments":
|
|
4022
4595
|
processedOutput = __assign(__assign({}, processedOutput), { imports: (_a = model
|
|
@@ -4192,7 +4765,7 @@ function getTableComponentSchema(component, viewModel) {
|
|
|
4192
4765
|
}
|
|
4193
4766
|
return {
|
|
4194
4767
|
type: "array",
|
|
4195
|
-
title: (_d = (_c = (_b = viewModel.
|
|
4768
|
+
title: (_d = (_c = (_b = viewModel.viewModel.derivedFunctions) === null || _b === void 0 ? void 0 : _b.overrideTitle) === null || _c === void 0 ? void 0 : _c.call(_b, component.name)) !== null && _d !== void 0 ? _d : component.description,
|
|
4196
4769
|
items: {
|
|
4197
4770
|
type: "object",
|
|
4198
4771
|
properties: __assign({}, tableColumns),
|
|
@@ -4555,7 +5128,7 @@ function getTableUiSchema(table, columns) {
|
|
|
4555
5128
|
var tableUi = {
|
|
4556
5129
|
tableCols: columns,
|
|
4557
5130
|
search: table["isSearchable"],
|
|
4558
|
-
striped:
|
|
5131
|
+
striped: false,
|
|
4559
5132
|
bordered: false,
|
|
4560
5133
|
};
|
|
4561
5134
|
if (table["canRemoveRows"]) {
|
|
@@ -4599,6 +5172,7 @@ function getDiagonalHeaderStyles(maxHeaderSize) {
|
|
|
4599
5172
|
return {
|
|
4600
5173
|
position: "relative",
|
|
4601
5174
|
bottom: "-7px",
|
|
5175
|
+
pointerEvents: "none",
|
|
4602
5176
|
left: "6px",
|
|
4603
5177
|
transformOrigin: "bottom left",
|
|
4604
5178
|
transform: "rotate(-30deg)",
|
|
@@ -4789,7 +5363,7 @@ function mapOptionLabels(populatedImport, labelFactory) {
|
|
|
4789
5363
|
return populatedImport;
|
|
4790
5364
|
}
|
|
4791
5365
|
exports.mapOptionLabels = mapOptionLabels;
|
|
4792
|
-
|
|
5366
|
+
|
|
4793
5367
|
|
|
4794
5368
|
/***/ }),
|
|
4795
5369
|
|
|
@@ -4918,7 +5492,7 @@ var CalculateRegisterValue = /** @class */ (function () {
|
|
|
4918
5492
|
var value = registerValue;
|
|
4919
5493
|
value &= ~setting.getMask(); // Clear bits
|
|
4920
5494
|
value |= setting.getShiftedValue(); // Set bits
|
|
4921
|
-
return value;
|
|
5495
|
+
return value >>> 0;
|
|
4922
5496
|
};
|
|
4923
5497
|
this.getUnmodifiedSettings = function () {
|
|
4924
5498
|
var _a, _b;
|
|
@@ -5021,7 +5595,7 @@ var OptionSettingValue = /** @class */ (function (_super) {
|
|
|
5021
5595
|
};
|
|
5022
5596
|
return OptionSettingValue;
|
|
5023
5597
|
}(SettingValue));
|
|
5024
|
-
|
|
5598
|
+
|
|
5025
5599
|
|
|
5026
5600
|
/***/ }),
|
|
5027
5601
|
|
|
@@ -5041,7 +5615,7 @@ var getSettingByAlias = function (alias, register) {
|
|
|
5041
5615
|
return (_a = register.settings) === null || _a === void 0 ? void 0 : _a[alias];
|
|
5042
5616
|
};
|
|
5043
5617
|
exports.getSettingByAlias = getSettingByAlias;
|
|
5044
|
-
|
|
5618
|
+
|
|
5045
5619
|
|
|
5046
5620
|
/***/ }),
|
|
5047
5621
|
|
|
@@ -5095,8 +5669,12 @@ var getBitRange = function (setting) {
|
|
|
5095
5669
|
};
|
|
5096
5670
|
exports.getBitRange = getBitRange;
|
|
5097
5671
|
var getOptionByAlias = function (alias, setting) {
|
|
5098
|
-
var _a;
|
|
5099
|
-
|
|
5672
|
+
var _a, _b;
|
|
5673
|
+
var result = (0, Arrays_1.find)((_a = setting === null || setting === void 0 ? void 0 : setting.options) !== null && _a !== void 0 ? _a : [], function (option) { return option.alias == alias; });
|
|
5674
|
+
if (!result) {
|
|
5675
|
+
result = (0, Arrays_1.find)((_b = setting === null || setting === void 0 ? void 0 : setting.options) !== null && _b !== void 0 ? _b : [], function (option) { return option.description == alias; });
|
|
5676
|
+
}
|
|
5677
|
+
return result;
|
|
5100
5678
|
};
|
|
5101
5679
|
exports.getOptionByAlias = getOptionByAlias;
|
|
5102
5680
|
var getOptionByName = function (name, setting) {
|
|
@@ -5131,7 +5709,7 @@ function getBitRangeLow(processedHex) {
|
|
|
5131
5709
|
return processedHex.length - 1;
|
|
5132
5710
|
}
|
|
5133
5711
|
}
|
|
5134
|
-
|
|
5712
|
+
|
|
5135
5713
|
|
|
5136
5714
|
/***/ }),
|
|
5137
5715
|
|
|
@@ -5190,7 +5768,7 @@ var values = function (obj) {
|
|
|
5190
5768
|
return (_a = (0, exports.getKeys)(obj)) === null || _a === void 0 ? void 0 : _a.map(function (key) { return obj[key]; });
|
|
5191
5769
|
};
|
|
5192
5770
|
exports.values = values;
|
|
5193
|
-
|
|
5771
|
+
|
|
5194
5772
|
|
|
5195
5773
|
/***/ }),
|
|
5196
5774
|
|
|
@@ -5520,7 +6098,7 @@ var CreateRegisterView = /** @class */ (function () {
|
|
|
5520
6098
|
return CreateRegisterView;
|
|
5521
6099
|
}());
|
|
5522
6100
|
exports.CreateRegisterView = CreateRegisterView;
|
|
5523
|
-
|
|
6101
|
+
|
|
5524
6102
|
|
|
5525
6103
|
/***/ }),
|
|
5526
6104
|
|
|
@@ -5668,13 +6246,13 @@ var SettingViewModel = /** @class */ (function () {
|
|
|
5668
6246
|
this.getValue = function () {
|
|
5669
6247
|
var value = _this.getRegisterValue();
|
|
5670
6248
|
value &= _this.getMask();
|
|
5671
|
-
return value
|
|
6249
|
+
return value >>> _this.getShift();
|
|
5672
6250
|
};
|
|
5673
6251
|
this.getShift = function () {
|
|
5674
6252
|
var mask = _this.getMask();
|
|
5675
6253
|
var shiftIndex = 0;
|
|
5676
6254
|
while (!(mask & 0x1)) {
|
|
5677
|
-
mask = mask
|
|
6255
|
+
mask = mask >>> 1;
|
|
5678
6256
|
shiftIndex++;
|
|
5679
6257
|
}
|
|
5680
6258
|
return shiftIndex;
|
|
@@ -5682,7 +6260,7 @@ var SettingViewModel = /** @class */ (function () {
|
|
|
5682
6260
|
this.getMaxValue = function () {
|
|
5683
6261
|
var mask = _this.getMask();
|
|
5684
6262
|
while (!(mask & 0x1)) {
|
|
5685
|
-
mask = mask
|
|
6263
|
+
mask = mask >>> 1;
|
|
5686
6264
|
}
|
|
5687
6265
|
return mask;
|
|
5688
6266
|
};
|
|
@@ -5696,7 +6274,7 @@ var SettingViewModel = /** @class */ (function () {
|
|
|
5696
6274
|
}());
|
|
5697
6275
|
exports.SettingViewModel = SettingViewModel;
|
|
5698
6276
|
var nullSafe = function (array) { return array !== null && array !== void 0 ? array : []; };
|
|
5699
|
-
|
|
6277
|
+
|
|
5700
6278
|
|
|
5701
6279
|
/***/ }),
|
|
5702
6280
|
|
|
@@ -5839,7 +6417,244 @@ var UiSchemaBuilder = /** @class */ (function () {
|
|
|
5839
6417
|
return UiSchemaBuilder;
|
|
5840
6418
|
}());
|
|
5841
6419
|
exports.UiSchemaBuilder = UiSchemaBuilder;
|
|
5842
|
-
|
|
6420
|
+
|
|
6421
|
+
|
|
6422
|
+
/***/ }),
|
|
6423
|
+
|
|
6424
|
+
/***/ "./node_modules/@microchip/sys-init-basic-interface/lib/api.js":
|
|
6425
|
+
/*!*********************************************************************!*\
|
|
6426
|
+
!*** ./node_modules/@microchip/sys-init-basic-interface/lib/api.js ***!
|
|
6427
|
+
\*********************************************************************/
|
|
6428
|
+
/*! no static exports found */
|
|
6429
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
6430
|
+
|
|
6431
|
+
"use strict";
|
|
6432
|
+
|
|
6433
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6434
|
+
if (k2 === undefined) k2 = k;
|
|
6435
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
6436
|
+
}) : (function(o, m, k, k2) {
|
|
6437
|
+
if (k2 === undefined) k2 = k;
|
|
6438
|
+
o[k2] = m[k];
|
|
6439
|
+
}));
|
|
6440
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
6441
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
6442
|
+
}) : function(o, v) {
|
|
6443
|
+
o["default"] = v;
|
|
6444
|
+
});
|
|
6445
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
6446
|
+
if (mod && mod.__esModule) return mod;
|
|
6447
|
+
var result = {};
|
|
6448
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
6449
|
+
__setModuleDefault(result, mod);
|
|
6450
|
+
return result;
|
|
6451
|
+
};
|
|
6452
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6453
|
+
exports.createPrototypeExport = exports.createPrototypeImport = exports.getInterfaceId = void 0;
|
|
6454
|
+
var InterfaceTypes = __importStar(__webpack_require__(/*! @microchip/scf-interface */ "./node_modules/@microchip/scf-interface/lib/index.js"));
|
|
6455
|
+
var pkgJson = __webpack_require__(/*! ../package.json */ "./node_modules/@microchip/sys-init-basic-interface/package.json");
|
|
6456
|
+
exports.getInterfaceId = function () {
|
|
6457
|
+
return {
|
|
6458
|
+
name: InterfaceTypes.getInterfaceName(pkgJson),
|
|
6459
|
+
version: InterfaceTypes.getInterfaceVersion(pkgJson),
|
|
6460
|
+
};
|
|
6461
|
+
};
|
|
6462
|
+
exports.createPrototypeImport = function () {
|
|
6463
|
+
return {
|
|
6464
|
+
interfaceId: exports.getInterfaceId(),
|
|
6465
|
+
};
|
|
6466
|
+
};
|
|
6467
|
+
exports.createPrototypeExport = function () {
|
|
6468
|
+
return {
|
|
6469
|
+
interfaces: [{ interfaceId: exports.getInterfaceId() }],
|
|
6470
|
+
};
|
|
6471
|
+
};
|
|
6472
|
+
|
|
6473
|
+
|
|
6474
|
+
/***/ }),
|
|
6475
|
+
|
|
6476
|
+
/***/ "./node_modules/@microchip/sys-init-basic-interface/lib/index.js":
|
|
6477
|
+
/*!***********************************************************************!*\
|
|
6478
|
+
!*** ./node_modules/@microchip/sys-init-basic-interface/lib/index.js ***!
|
|
6479
|
+
\***********************************************************************/
|
|
6480
|
+
/*! no static exports found */
|
|
6481
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
6482
|
+
|
|
6483
|
+
"use strict";
|
|
6484
|
+
|
|
6485
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6486
|
+
var sys_init_basic_interface_1 = __webpack_require__(/*! ./sys-init-basic-interface */ "./node_modules/@microchip/sys-init-basic-interface/lib/sys-init-basic-interface.js");
|
|
6487
|
+
Object.defineProperty(exports, "Interface", { enumerable: true, get: function () { return sys_init_basic_interface_1.Interface; } });
|
|
6488
|
+
Object.defineProperty(exports, "INIT_PRIORITY", { enumerable: true, get: function () { return sys_init_basic_interface_1.INIT_PRIORITY; } });
|
|
6489
|
+
Object.defineProperty(exports, "prioritySorter", { enumerable: true, get: function () { return sys_init_basic_interface_1.prioritySorter; } });
|
|
6490
|
+
Object.defineProperty(exports, "sortSysInitInitializers", { enumerable: true, get: function () { return sys_init_basic_interface_1.sortSysInitInitializers; } });
|
|
6491
|
+
|
|
6492
|
+
|
|
6493
|
+
/***/ }),
|
|
6494
|
+
|
|
6495
|
+
/***/ "./node_modules/@microchip/sys-init-basic-interface/lib/mock.js":
|
|
6496
|
+
/*!**********************************************************************!*\
|
|
6497
|
+
!*** ./node_modules/@microchip/sys-init-basic-interface/lib/mock.js ***!
|
|
6498
|
+
\**********************************************************************/
|
|
6499
|
+
/*! no static exports found */
|
|
6500
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
6501
|
+
|
|
6502
|
+
"use strict";
|
|
6503
|
+
|
|
6504
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6505
|
+
exports.createMock = void 0;
|
|
6506
|
+
var api_1 = __webpack_require__(/*! ./api */ "./node_modules/@microchip/sys-init-basic-interface/lib/api.js");
|
|
6507
|
+
exports.createMock = function () {
|
|
6508
|
+
return {
|
|
6509
|
+
interfaceId: api_1.getInterfaceId(),
|
|
6510
|
+
payload: {
|
|
6511
|
+
moduleName: "MyModule",
|
|
6512
|
+
},
|
|
6513
|
+
args: {},
|
|
6514
|
+
results: {
|
|
6515
|
+
requestId: {
|
|
6516
|
+
initializers: [
|
|
6517
|
+
{
|
|
6518
|
+
name: "mymodule_init1();",
|
|
6519
|
+
header: {
|
|
6520
|
+
name: "../mymodule.h",
|
|
6521
|
+
path: "include/",
|
|
6522
|
+
},
|
|
6523
|
+
priority: 1,
|
|
6524
|
+
},
|
|
6525
|
+
],
|
|
6526
|
+
localInitializers: [
|
|
6527
|
+
{
|
|
6528
|
+
funcDec: "void mymodule_init2(void);",
|
|
6529
|
+
name: "mymodule_init2();",
|
|
6530
|
+
funcBody: "/** \n * @ingroup systemdriver\n * @brief Initializes the Peripheral module.\n * @param None.\n * @return None.\n * void mymodule_init2(void){\n * //IOCMD IOC enabled; CLKRMD CLKR enabled;\n * PMD0 = 0x0;\n * }\n */",
|
|
6531
|
+
priority: 1,
|
|
6532
|
+
},
|
|
6533
|
+
],
|
|
6534
|
+
},
|
|
6535
|
+
},
|
|
6536
|
+
};
|
|
6537
|
+
};
|
|
6538
|
+
|
|
6539
|
+
|
|
6540
|
+
/***/ }),
|
|
6541
|
+
|
|
6542
|
+
/***/ "./node_modules/@microchip/sys-init-basic-interface/lib/sys-init-basic-interface.js":
|
|
6543
|
+
/*!******************************************************************************************!*\
|
|
6544
|
+
!*** ./node_modules/@microchip/sys-init-basic-interface/lib/sys-init-basic-interface.js ***!
|
|
6545
|
+
\******************************************************************************************/
|
|
6546
|
+
/*! no static exports found */
|
|
6547
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
6548
|
+
|
|
6549
|
+
"use strict";
|
|
6550
|
+
|
|
6551
|
+
var __assign = (this && this.__assign) || function () {
|
|
6552
|
+
__assign = Object.assign || function(t) {
|
|
6553
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
6554
|
+
s = arguments[i];
|
|
6555
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6556
|
+
t[p] = s[p];
|
|
6557
|
+
}
|
|
6558
|
+
return t;
|
|
6559
|
+
};
|
|
6560
|
+
return __assign.apply(this, arguments);
|
|
6561
|
+
};
|
|
6562
|
+
var __spreadArrays = (this && this.__spreadArrays) || function () {
|
|
6563
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
6564
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
6565
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
6566
|
+
r[k] = a[j];
|
|
6567
|
+
return r;
|
|
6568
|
+
};
|
|
6569
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6570
|
+
exports.Interface = exports.sortSysInitInitializers = exports.prioritySorter = exports.INIT_PRIORITY = void 0;
|
|
6571
|
+
var mock_1 = __webpack_require__(/*! ./mock */ "./node_modules/@microchip/sys-init-basic-interface/lib/mock.js");
|
|
6572
|
+
var api_1 = __webpack_require__(/*! ./api */ "./node_modules/@microchip/sys-init-basic-interface/lib/api.js");
|
|
6573
|
+
var INIT_PRIORITY;
|
|
6574
|
+
(function (INIT_PRIORITY) {
|
|
6575
|
+
INIT_PRIORITY[INIT_PRIORITY["START"] = 1] = "START";
|
|
6576
|
+
INIT_PRIORITY[INIT_PRIORITY["PRE_PERIPHERAL"] = 50] = "PRE_PERIPHERAL";
|
|
6577
|
+
INIT_PRIORITY[INIT_PRIORITY["PERIPHERAL"] = 100] = "PERIPHERAL";
|
|
6578
|
+
INIT_PRIORITY[INIT_PRIORITY["POST_PERIPHERAL"] = 150] = "POST_PERIPHERAL";
|
|
6579
|
+
INIT_PRIORITY[INIT_PRIORITY["DEFAULT"] = 200] = "DEFAULT";
|
|
6580
|
+
INIT_PRIORITY[INIT_PRIORITY["PRE_SOFTWARE"] = 250] = "PRE_SOFTWARE";
|
|
6581
|
+
INIT_PRIORITY[INIT_PRIORITY["SOFTWARE"] = 300] = "SOFTWARE";
|
|
6582
|
+
INIT_PRIORITY[INIT_PRIORITY["POST_SOFTWARE"] = 350] = "POST_SOFTWARE";
|
|
6583
|
+
INIT_PRIORITY[INIT_PRIORITY["END"] = 400] = "END";
|
|
6584
|
+
})(INIT_PRIORITY = exports.INIT_PRIORITY || (exports.INIT_PRIORITY = {}));
|
|
6585
|
+
/** Sorting initializer based on the priority. */
|
|
6586
|
+
exports.prioritySorter = function (a, b) {
|
|
6587
|
+
var _a, _b, _c, _d;
|
|
6588
|
+
var result = 0;
|
|
6589
|
+
var apriority = (_a = a === null || a === void 0 ? void 0 : a.initializer.priority) !== null && _a !== void 0 ? _a : INIT_PRIORITY.DEFAULT;
|
|
6590
|
+
var bpriority = (_b = b === null || b === void 0 ? void 0 : b.initializer.priority) !== null && _b !== void 0 ? _b : INIT_PRIORITY.DEFAULT;
|
|
6591
|
+
if (apriority < bpriority) {
|
|
6592
|
+
result = -1;
|
|
6593
|
+
}
|
|
6594
|
+
else if (apriority > bpriority) {
|
|
6595
|
+
result = 1;
|
|
6596
|
+
}
|
|
6597
|
+
else {
|
|
6598
|
+
//same priority sort via intializer name alphabetically
|
|
6599
|
+
result = (_d = (_c = a === null || a === void 0 ? void 0 : a.initializer.name) === null || _c === void 0 ? void 0 : _c.localeCompare(b === null || b === void 0 ? void 0 : b.initializer.name)) !== null && _d !== void 0 ? _d : 0;
|
|
6600
|
+
}
|
|
6601
|
+
return result;
|
|
6602
|
+
};
|
|
6603
|
+
/**Creating list - combination of initializers and localInitializers */
|
|
6604
|
+
exports.sortSysInitInitializers = function (data) {
|
|
6605
|
+
var retinitializers = __spreadArrays(data);
|
|
6606
|
+
var initSystemList = [];
|
|
6607
|
+
//iterating initializers[]
|
|
6608
|
+
for (var _i = 0, retinitializers_1 = retinitializers; _i < retinitializers_1.length; _i++) {
|
|
6609
|
+
var entry = retinitializers_1[_i];
|
|
6610
|
+
if (entry.initializers) {
|
|
6611
|
+
for (var _a = 0, _b = entry.initializers; _a < _b.length; _a++) {
|
|
6612
|
+
var subentry = _b[_a];
|
|
6613
|
+
// if (subentry) {
|
|
6614
|
+
var temp = {
|
|
6615
|
+
initializer: __assign(__assign({}, subentry), { isLocalInit: false, isNewInterface: true }),
|
|
6616
|
+
};
|
|
6617
|
+
initSystemList.push(temp);
|
|
6618
|
+
// }
|
|
6619
|
+
}
|
|
6620
|
+
}
|
|
6621
|
+
}
|
|
6622
|
+
//iterating localInitializers[]
|
|
6623
|
+
for (var _c = 0, retinitializers_2 = retinitializers; _c < retinitializers_2.length; _c++) {
|
|
6624
|
+
var entry = retinitializers_2[_c];
|
|
6625
|
+
if (entry.localInitializers) {
|
|
6626
|
+
for (var _d = 0, _e = entry.localInitializers; _d < _e.length; _d++) {
|
|
6627
|
+
var subentry = _e[_d];
|
|
6628
|
+
// if (subentry) {
|
|
6629
|
+
var temp = {
|
|
6630
|
+
initializer: __assign(__assign({}, subentry), { isLocalInit: true, isNewInterface: true }),
|
|
6631
|
+
};
|
|
6632
|
+
initSystemList.push(temp);
|
|
6633
|
+
// }
|
|
6634
|
+
}
|
|
6635
|
+
}
|
|
6636
|
+
}
|
|
6637
|
+
initSystemList.sort(exports.prioritySorter);
|
|
6638
|
+
return initSystemList;
|
|
6639
|
+
};
|
|
6640
|
+
exports.Interface = {
|
|
6641
|
+
createPrototypeExport: api_1.createPrototypeExport,
|
|
6642
|
+
createPrototypeImport: api_1.createPrototypeImport,
|
|
6643
|
+
getInterfaceId: api_1.getInterfaceId,
|
|
6644
|
+
createMock: mock_1.createMock,
|
|
6645
|
+
};
|
|
6646
|
+
|
|
6647
|
+
|
|
6648
|
+
/***/ }),
|
|
6649
|
+
|
|
6650
|
+
/***/ "./node_modules/@microchip/sys-init-basic-interface/package.json":
|
|
6651
|
+
/*!***********************************************************************!*\
|
|
6652
|
+
!*** ./node_modules/@microchip/sys-init-basic-interface/package.json ***!
|
|
6653
|
+
\***********************************************************************/
|
|
6654
|
+
/*! exports provided: name, version, license, main, typings, scripts, husky, lint-staged, jest, dependencies, devDependencies, files, notificationEmail, default */
|
|
6655
|
+
/***/ (function(module) {
|
|
6656
|
+
|
|
6657
|
+
module.exports = JSON.parse("{\"name\":\"@microchip/sys-init-basic-interface\",\"version\":\"1.0.0\",\"license\":\"SEE LICENSE IN LICENSE.txt\",\"main\":\"lib/index.js\",\"typings\":\"./lib/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\"]},\"jest\":{\"testPathIgnorePatterns\":[\"/node_modules/\",\"/run/\",\"/lib/\"],\"modulePathIgnorePatterns\":[\"<rootDir>/run\"],\"preset\":\"ts-jest\",\"collectCoverage\":true,\"coverageThreshold\":{\"./src\":{\"branches\":80,\"functions\":80,\"lines\":80,\"statements\":80}}},\"dependencies\":{\"@microchip/scf-common\":\"^3.22.2\",\"@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\"}");
|
|
5843
6658
|
|
|
5844
6659
|
/***/ }),
|
|
5845
6660
|
|
|
@@ -5854,56 +6669,45 @@ exports.UiSchemaBuilder = UiSchemaBuilder;
|
|
|
5854
6669
|
__webpack_require__.r(__webpack_exports__);
|
|
5855
6670
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClockCalculator", function() { return ClockCalculator; });
|
|
5856
6671
|
/* harmony import */ var _StringConstants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./StringConstants */ "./src/StringConstants.ts");
|
|
6672
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
6673
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
6674
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
5857
6675
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6676
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6677
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6678
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
5858
6679
|
|
|
5859
|
-
|
|
5860
|
-
|
|
5861
|
-
|
|
5862
|
-
var ClockCalculator = // in Hz
|
|
6680
|
+
var ClockCalculator = /*#__PURE__*/_createClass(
|
|
5863
6681
|
// in Hz
|
|
6682
|
+
|
|
5864
6683
|
function ClockCalculator(oscSelect, HFInternalClk, externalClk, clkDivider) {
|
|
5865
6684
|
var _this = this;
|
|
5866
|
-
|
|
5867
6685
|
_classCallCheck(this, ClockCalculator);
|
|
5868
|
-
|
|
5869
6686
|
_defineProperty(this, "lfintosc", "31000");
|
|
5870
|
-
|
|
5871
6687
|
_defineProperty(this, "mfintosc", "500000");
|
|
5872
|
-
|
|
5873
6688
|
_defineProperty(this, "mfintosc_31KHz", "31250");
|
|
5874
|
-
|
|
5875
6689
|
_defineProperty(this, "sosc", "32768");
|
|
5876
|
-
|
|
5877
6690
|
_defineProperty(this, "oscSelect", void 0);
|
|
5878
|
-
|
|
5879
6691
|
_defineProperty(this, "HFInternalClk", void 0);
|
|
5880
|
-
|
|
5881
6692
|
_defineProperty(this, "externalClk", void 0);
|
|
5882
|
-
|
|
5883
6693
|
_defineProperty(this, "clkDivider", void 0);
|
|
5884
|
-
|
|
5885
6694
|
_defineProperty(this, "MAX_PLL", 16000000);
|
|
5886
|
-
|
|
6695
|
+
// in Hz
|
|
5887
6696
|
_defineProperty(this, "MIN_PLL", 3000000);
|
|
5888
|
-
|
|
5889
6697
|
_defineProperty(this, "getCurrentSystemClk", function () {
|
|
5890
6698
|
var currentSystemClk;
|
|
5891
6699
|
var HFClk;
|
|
5892
|
-
|
|
5893
6700
|
if (_this.oscSelect === _StringConstants__WEBPACK_IMPORTED_MODULE_0__["StringConstants"].SOSC) {
|
|
5894
6701
|
currentSystemClk = 32768 / _this.clkDivider;
|
|
5895
6702
|
} else if (_this.oscSelect === _StringConstants__WEBPACK_IMPORTED_MODULE_0__["StringConstants"].LFINTOSC) {
|
|
5896
6703
|
currentSystemClk = 31000 / _this.clkDivider;
|
|
5897
6704
|
} else if (_this.oscSelect === _StringConstants__WEBPACK_IMPORTED_MODULE_0__["StringConstants"].HFINTOSC) {
|
|
5898
6705
|
var _this$HFInternalClk$r, _this$HFInternalClk;
|
|
5899
|
-
|
|
5900
6706
|
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");
|
|
5901
6707
|
currentSystemClk = HFClk * 1000000 / _this.clkDivider;
|
|
5902
6708
|
} else if (_this.oscSelect === _StringConstants__WEBPACK_IMPORTED_MODULE_0__["StringConstants"].HFINTOSC_2xPLL) {
|
|
5903
6709
|
var _this$HFInternalClk$r2, _this$HFInternalClk2;
|
|
5904
|
-
|
|
5905
6710
|
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");
|
|
5906
|
-
|
|
5907
6711
|
if (HFClk == 8 || HFClk == 12 || HFClk == 16) {
|
|
5908
6712
|
currentSystemClk = HFClk * 2 * 1000000 / _this.clkDivider;
|
|
5909
6713
|
} else {
|
|
@@ -5918,41 +6722,32 @@ function ClockCalculator(oscSelect, HFInternalClk, externalClk, clkDivider) {
|
|
|
5918
6722
|
currentSystemClk = _this.externalClk * 4 / _this.clkDivider;
|
|
5919
6723
|
}
|
|
5920
6724
|
}
|
|
5921
|
-
|
|
5922
6725
|
return Math.round(currentSystemClk);
|
|
5923
6726
|
});
|
|
5924
|
-
|
|
5925
6727
|
_defineProperty(this, "getHfIntOsc", function () {
|
|
5926
6728
|
var _this$HFInternalClk$r3, _this$HFInternalClk3;
|
|
5927
|
-
|
|
5928
6729
|
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";
|
|
5929
6730
|
});
|
|
5930
|
-
|
|
5931
6731
|
_defineProperty(this, "getMfIntOsc", function () {
|
|
5932
6732
|
return _this.mfintosc;
|
|
5933
6733
|
});
|
|
5934
|
-
|
|
5935
6734
|
_defineProperty(this, "getMfIntOsc_31KHz", function () {
|
|
5936
6735
|
return _this.mfintosc_31KHz;
|
|
5937
6736
|
});
|
|
5938
|
-
|
|
5939
6737
|
_defineProperty(this, "getLfIntOsc", function () {
|
|
5940
6738
|
return _this.lfintosc;
|
|
5941
6739
|
});
|
|
5942
|
-
|
|
5943
6740
|
_defineProperty(this, "getExtOsc", function () {
|
|
5944
6741
|
return _this.externalClk.toString();
|
|
5945
6742
|
});
|
|
5946
|
-
|
|
5947
6743
|
_defineProperty(this, "getSosc", function () {
|
|
5948
6744
|
return _this.sosc;
|
|
5949
6745
|
});
|
|
5950
|
-
|
|
5951
6746
|
this.oscSelect = oscSelect;
|
|
5952
6747
|
this.HFInternalClk = HFInternalClk;
|
|
5953
6748
|
this.externalClk = externalClk;
|
|
5954
6749
|
this.clkDivider = clkDivider;
|
|
5955
|
-
};
|
|
6750
|
+
});
|
|
5956
6751
|
|
|
5957
6752
|
/***/ }),
|
|
5958
6753
|
|
|
@@ -5971,7 +6766,6 @@ var getCreatorFunctions = function getCreatorFunctions() {
|
|
|
5971
6766
|
shouldImport: shouldImport
|
|
5972
6767
|
};
|
|
5973
6768
|
};
|
|
5974
|
-
|
|
5975
6769
|
var shouldImport = function shouldImport(importKey, state) {
|
|
5976
6770
|
return true;
|
|
5977
6771
|
};
|
|
@@ -5993,18 +6787,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5993
6787
|
/* 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");
|
|
5994
6788
|
/* 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__);
|
|
5995
6789
|
/* harmony import */ var _ClockCalculator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ClockCalculator */ "./src/ClockCalculator.ts");
|
|
5996
|
-
/* harmony import */ var
|
|
5997
|
-
/* harmony import */ var
|
|
5998
|
-
/* harmony import */ var
|
|
5999
|
-
/* harmony import */ var
|
|
6000
|
-
function
|
|
6001
|
-
|
|
6002
|
-
function
|
|
6003
|
-
|
|
6790
|
+
/* harmony import */ var _StringConstants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./StringConstants */ "./src/StringConstants.ts");
|
|
6791
|
+
/* harmony import */ var _generated_module_src_pins_PCPHelper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../generated_module/src/pins/PCPHelper */ "./generated_module/src/pins/PCPHelper.ts");
|
|
6792
|
+
/* harmony import */ var _microchip_sys_init_basic_interface__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @microchip/sys-init-basic-interface */ "./node_modules/@microchip/sys-init-basic-interface/lib/index.js");
|
|
6793
|
+
/* harmony import */ var _microchip_sys_init_basic_interface__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_microchip_sys_init_basic_interface__WEBPACK_IMPORTED_MODULE_4__);
|
|
6794
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
6795
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
6796
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
6004
6797
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6005
|
-
|
|
6006
|
-
function
|
|
6007
|
-
|
|
6798
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6799
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6800
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
6008
6801
|
|
|
6009
6802
|
|
|
6010
6803
|
|
|
@@ -6014,41 +6807,33 @@ var getDerivedData = function getDerivedData(dataModel) {
|
|
|
6014
6807
|
if (dataModel) {
|
|
6015
6808
|
return new MyDerivedData(dataModel);
|
|
6016
6809
|
}
|
|
6017
|
-
|
|
6018
6810
|
return new EmptyDerivedData();
|
|
6019
|
-
};
|
|
6811
|
+
};
|
|
6020
6812
|
|
|
6021
|
-
|
|
6813
|
+
//This data will be used at the creator stage and relies on only the state
|
|
6814
|
+
var EmptyDerivedData = /*#__PURE__*/_createClass(function EmptyDerivedData() {
|
|
6022
6815
|
_classCallCheck(this, EmptyDerivedData);
|
|
6023
|
-
|
|
6024
6816
|
_defineProperty(this, "getMyFunctions", function () {
|
|
6025
6817
|
return {};
|
|
6026
6818
|
});
|
|
6027
|
-
|
|
6028
6819
|
_defineProperty(this, "getModel", function () {
|
|
6029
6820
|
return undefined;
|
|
6030
6821
|
});
|
|
6031
|
-
};
|
|
6822
|
+
});
|
|
6032
6823
|
|
|
6033
|
-
|
|
6824
|
+
//This data will be used at the processor stage
|
|
6825
|
+
var MyDerivedData = /*#__PURE__*/_createClass(function MyDerivedData(dataModel) {
|
|
6034
6826
|
var _this = this;
|
|
6035
|
-
|
|
6036
6827
|
_classCallCheck(this, MyDerivedData);
|
|
6037
|
-
|
|
6038
6828
|
_defineProperty(this, "dataModel", void 0);
|
|
6039
|
-
|
|
6040
6829
|
_defineProperty(this, "clockCalculator", void 0);
|
|
6041
|
-
|
|
6042
6830
|
_defineProperty(this, "getClockCalculator", function () {
|
|
6043
6831
|
if (!_this.clockCalculator) {
|
|
6044
6832
|
var _this$getModel$getCom, _this$getModel$getCom2, _this$getModel$getCom3, _this$getModel$getCom4;
|
|
6045
|
-
|
|
6046
6833
|
_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 : ""));
|
|
6047
6834
|
}
|
|
6048
|
-
|
|
6049
6835
|
return _this.clockCalculator;
|
|
6050
6836
|
});
|
|
6051
|
-
|
|
6052
6837
|
_defineProperty(this, "getMyFunctions", function () {
|
|
6053
6838
|
return {
|
|
6054
6839
|
moduleName: _this.getModuleName,
|
|
@@ -6062,69 +6847,92 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
|
6062
6847
|
"fosc-hz_payload": function foscHz_payload() {
|
|
6063
6848
|
return _this.getClockCalculator().getCurrentSystemClk().toString();
|
|
6064
6849
|
},
|
|
6065
|
-
|
|
6850
|
+
sys_init_basic_interface_results: _this.sys_init_basic_interface_results,
|
|
6066
6851
|
config_device_results: _this.config_device_results,
|
|
6067
6852
|
templateData: _this.getTemplateData,
|
|
6068
|
-
|
|
6069
|
-
|
|
6070
|
-
},
|
|
6853
|
+
overrideDefaultValues: _this.overrideDefaultValue,
|
|
6854
|
+
configbits_basic_interface_args: _this.getConfigbitsBasicInterfaceArgs,
|
|
6071
6855
|
"osc-clocks_payload": _this.getOscClocksProcessedPayload,
|
|
6856
|
+
"clock-basic-interface_payload": _this.getClockProcessedPayload,
|
|
6072
6857
|
doNotShow: function doNotShow() {
|
|
6073
6858
|
return false;
|
|
6074
6859
|
},
|
|
6075
|
-
getPinsLogic:
|
|
6860
|
+
getPinsLogic: _generated_module_src_pins_PCPHelper__WEBPACK_IMPORTED_MODULE_3__["getPinsLogic"],
|
|
6076
6861
|
importName: _this.friendlyImportName
|
|
6077
6862
|
};
|
|
6078
6863
|
});
|
|
6079
|
-
|
|
6080
6864
|
_defineProperty(this, "friendlyImportName", function (importKey) {
|
|
6081
6865
|
if (importKey === "scf_pic8_osc_v1") return "Oscillator Hardware";
|
|
6082
|
-
if (importKey === "
|
|
6866
|
+
if (importKey === "sys_init_basic_interface") return "system.c Initialize()";
|
|
6083
6867
|
if (importKey === "config_device") return "Configuration Device";
|
|
6084
|
-
if (importKey === "
|
|
6085
|
-
if (importKey === "
|
|
6868
|
+
if (importKey === "configbits_basic_interface") return "Configuration Request";
|
|
6869
|
+
if (importKey === "pins_interface") return "Pins";
|
|
6086
6870
|
return importKey;
|
|
6087
6871
|
});
|
|
6088
|
-
|
|
6872
|
+
_defineProperty(this, "sys_init_basic_interface_results", function () {
|
|
6873
|
+
return {
|
|
6874
|
+
initializers: [{
|
|
6875
|
+
name: "CLOCK_Initialize();",
|
|
6876
|
+
header: {
|
|
6877
|
+
name: "clock.h",
|
|
6878
|
+
path: "system/"
|
|
6879
|
+
},
|
|
6880
|
+
priority: _microchip_sys_init_basic_interface__WEBPACK_IMPORTED_MODULE_4__["INIT_PRIORITY"].START
|
|
6881
|
+
}]
|
|
6882
|
+
};
|
|
6883
|
+
});
|
|
6884
|
+
_defineProperty(this, "getConfigbitsBasicInterfaceArgs", function () {
|
|
6885
|
+
return {
|
|
6886
|
+
configsReq: ["FEXTOSC", "CLKOUTEN", "MCLRE", "LVP", "RSTOSC"]
|
|
6887
|
+
};
|
|
6888
|
+
});
|
|
6889
|
+
_defineProperty(this, "getDynamicComponetDefaultValue", function (componentName) {
|
|
6890
|
+
var _this$dataModel$getIm, _selectedOptionVal;
|
|
6891
|
+
var externalClkSelectedOptions = (_this$dataModel$getIm = _this.dataModel.getImportValue("configbits_basic_interface")) === null || _this$dataModel$getIm === void 0 || (_this$dataModel$getIm = _this$dataModel$getIm.configsResp) === null || _this$dataModel$getIm === void 0 ? void 0 : _this$dataModel$getIm[componentName];
|
|
6892
|
+
var selectedOptionVal;
|
|
6893
|
+
if (externalClkSelectedOptions) {
|
|
6894
|
+
selectedOptionVal = externalClkSelectedOptions["defaultValue"]["value"];
|
|
6895
|
+
}
|
|
6896
|
+
return (_selectedOptionVal = selectedOptionVal) !== null && _selectedOptionVal !== void 0 ? _selectedOptionVal : undefined;
|
|
6897
|
+
});
|
|
6089
6898
|
_defineProperty(this, "getResOscValue", function () {
|
|
6090
6899
|
var resetOscValue = _this.getDynamicComponetDefaultValue("RSTOSC");
|
|
6091
|
-
|
|
6092
6900
|
var actualOscValue;
|
|
6093
|
-
|
|
6094
6901
|
if ((resetOscValue === null || resetOscValue === void 0 ? void 0 : resetOscValue.indexOf("4x PLL")) !== -1) {
|
|
6095
|
-
actualOscValue = "EXTOSC
|
|
6902
|
+
actualOscValue = "EXTOSC with 4x PLL";
|
|
6096
6903
|
} else if ((resetOscValue === null || resetOscValue === void 0 ? void 0 : resetOscValue.indexOf("Secondary Oscillator")) !== -1) {
|
|
6097
6904
|
actualOscValue = "SOSC";
|
|
6098
6905
|
} else if ((resetOscValue === null || resetOscValue === void 0 ? void 0 : resetOscValue.indexOf("Low-Frequency")) !== -1) {
|
|
6099
6906
|
actualOscValue = "LFINTOSC";
|
|
6100
6907
|
} else if ((resetOscValue === null || resetOscValue === void 0 ? void 0 : resetOscValue.indexOf("HFINTOSC with HFFRQ = 4 MHz and CDIV = 4:1")) !== -1) {
|
|
6101
6908
|
actualOscValue = "HFINTOSC";
|
|
6909
|
+
} else if ((resetOscValue === null || resetOscValue === void 0 ? void 0 : resetOscValue.indexOf("HFINTOSC with HFFRQ = 64 MHz and CDIV = 1:1")) !== -1) {
|
|
6910
|
+
actualOscValue = "HFINTOSC";
|
|
6102
6911
|
} else if ((resetOscValue === null || resetOscValue === void 0 ? void 0 : resetOscValue.indexOf("FEXTOSC")) !== -1) {
|
|
6103
6912
|
actualOscValue = "EXTOSC";
|
|
6104
6913
|
} else {
|
|
6105
6914
|
actualOscValue = undefined;
|
|
6106
6915
|
}
|
|
6107
|
-
|
|
6108
6916
|
return actualOscValue;
|
|
6109
6917
|
});
|
|
6110
|
-
|
|
6111
6918
|
_defineProperty(this, "getPLLStatus", function () {
|
|
6112
6919
|
var pllStatus = _this.getResOscValue();
|
|
6113
|
-
|
|
6114
6920
|
var pllEnable = _this.dataModel.isComponentValue("pllenOscen");
|
|
6115
|
-
|
|
6116
|
-
if (pllStatus === "EXTOSC
|
|
6921
|
+
var clkSrcVal = _this.dataModel.getComponentValue("noscOsccon1");
|
|
6922
|
+
if (pllStatus === "EXTOSC with 4x PLL") {
|
|
6117
6923
|
return true;
|
|
6118
6924
|
} else if (pllEnable === true) {
|
|
6119
6925
|
return true;
|
|
6926
|
+
} else if ((clkSrcVal === null || clkSrcVal === void 0 ? void 0 : clkSrcVal.indexOf("4x PLL")) !== -1) {
|
|
6927
|
+
return true;
|
|
6928
|
+
} else if ((clkSrcVal === null || clkSrcVal === void 0 ? void 0 : clkSrcVal.indexOf("2x PLL")) !== -1) {
|
|
6929
|
+
return true;
|
|
6120
6930
|
} else {
|
|
6121
6931
|
return false;
|
|
6122
6932
|
}
|
|
6123
6933
|
});
|
|
6124
|
-
|
|
6125
6934
|
_defineProperty(this, "getOscClocksProcessedPayload", function () {
|
|
6126
6935
|
var _this$getClockCalcula, _this$getClockCalcula2, _this$getClockCalcula3, _this$getClockCalcula4, _this$getClockCalcula5, _this$getClockCalcula6, _this$getClockCalcula7;
|
|
6127
|
-
|
|
6128
6936
|
var oscObj = {
|
|
6129
6937
|
extosc: (_this$getClockCalcula = _this.getClockCalculator().getExtOsc()) !== null && _this$getClockCalcula !== void 0 ? _this$getClockCalcula : "32768",
|
|
6130
6938
|
fosc: (_this$getClockCalcula2 = _this.getClockCalculator().getCurrentSystemClk().toString()) !== null && _this$getClockCalcula2 !== void 0 ? _this$getClockCalcula2 : "1000000",
|
|
@@ -6135,57 +6943,60 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
|
6135
6943
|
sosc: (_this$getClockCalcula7 = _this.getClockCalculator().getSosc()) !== null && _this$getClockCalcula7 !== void 0 ? _this$getClockCalcula7 : "32768"
|
|
6136
6944
|
};
|
|
6137
6945
|
var hasSosc = _this.dataModel.isComponentValue("soscenOscen") !== undefined ? true : false;
|
|
6138
|
-
|
|
6139
6946
|
if (hasSosc) {
|
|
6140
6947
|
oscObj.hasSosc = true;
|
|
6141
6948
|
oscObj.soscEnabled = _this.dataModel.isComponentValue("soscenOscen");
|
|
6142
6949
|
oscObj.soscPowerMode = _this.dataModel.getComponentValue("soscpwrOsccon3");
|
|
6143
6950
|
}
|
|
6144
|
-
|
|
6145
6951
|
return oscObj;
|
|
6146
6952
|
});
|
|
6147
|
-
|
|
6953
|
+
_defineProperty(this, "getClockProcessedPayload", function () {
|
|
6954
|
+
var _this$getClockCalcula8, _this$getClockCalcula9, _this$getClockCalcula10, _this$getClockCalcula11, _this$getClockCalcula12, _this$getClockCalcula13, _this$getClockCalcula14;
|
|
6955
|
+
var clockObj = {
|
|
6956
|
+
fosc: (_this$getClockCalcula8 = _this.getClockCalculator().getCurrentSystemClk().toString()) !== null && _this$getClockCalcula8 !== void 0 ? _this$getClockCalcula8 : "1000000",
|
|
6957
|
+
extosc: (_this$getClockCalcula9 = _this.getClockCalculator().getExtOsc()) !== null && _this$getClockCalcula9 !== void 0 ? _this$getClockCalcula9 : "32768",
|
|
6958
|
+
hfintosc: (_this$getClockCalcula10 = _this.getClockCalculator().getHfIntOsc()) !== null && _this$getClockCalcula10 !== void 0 ? _this$getClockCalcula10 : "1000000",
|
|
6959
|
+
lfintosc: (_this$getClockCalcula11 = _this.getClockCalculator().getLfIntOsc()) !== null && _this$getClockCalcula11 !== void 0 ? _this$getClockCalcula11 : "31000",
|
|
6960
|
+
mfintosc: (_this$getClockCalcula12 = _this.getClockCalculator().getMfIntOsc()) !== null && _this$getClockCalcula12 !== void 0 ? _this$getClockCalcula12 : "500000",
|
|
6961
|
+
mfintosc_31Khz: (_this$getClockCalcula13 = _this.getClockCalculator().getMfIntOsc_31KHz()) !== null && _this$getClockCalcula13 !== void 0 ? _this$getClockCalcula13 : "31250",
|
|
6962
|
+
sosc: (_this$getClockCalcula14 = _this.getClockCalculator().getSosc()) !== null && _this$getClockCalcula14 !== void 0 ? _this$getClockCalcula14 : "32768"
|
|
6963
|
+
};
|
|
6964
|
+
var hasSosc = _this.dataModel.isComponentValue("soscenOscen") !== undefined ? true : false;
|
|
6965
|
+
if (hasSosc) {
|
|
6966
|
+
clockObj.hasSosc = true;
|
|
6967
|
+
clockObj.soscEnabled = _this.dataModel.isComponentValue("soscenOscen");
|
|
6968
|
+
clockObj.soscPowerMode = _this.dataModel.getComponentValue("soscpwrOsccon3");
|
|
6969
|
+
}
|
|
6970
|
+
return clockObj;
|
|
6971
|
+
});
|
|
6148
6972
|
_defineProperty(this, "getModuleName", function () {
|
|
6149
6973
|
return "Clock Control";
|
|
6150
6974
|
});
|
|
6151
|
-
|
|
6152
6975
|
_defineProperty(this, "getModel", function () {
|
|
6153
6976
|
return _this.dataModel;
|
|
6154
6977
|
});
|
|
6155
|
-
|
|
6156
6978
|
_defineProperty(this, "getTemplateData", function () {
|
|
6157
6979
|
var _this$getPLLStatus;
|
|
6158
|
-
|
|
6159
6980
|
var headers = {
|
|
6160
6981
|
name: "clock.h",
|
|
6161
6982
|
path: "../"
|
|
6162
|
-
};
|
|
6163
|
-
|
|
6164
|
-
|
|
6165
|
-
|
|
6166
|
-
return _objectSpread({
|
|
6983
|
+
};
|
|
6984
|
+
var initRegisters = _this.dataModel.getRegisterValues();
|
|
6985
|
+
//const registerValues = this.dataModel.getRegisterValues();
|
|
6986
|
+
return {
|
|
6167
6987
|
deviceFrequency: _this.getClockCalculator().getCurrentSystemClk().toString(),
|
|
6168
|
-
|
|
6988
|
+
initRegisters: initRegisters,
|
|
6169
6989
|
header: headers,
|
|
6170
6990
|
moduleNameUpperCase: _this.getModuleName().toUpperCase(),
|
|
6171
6991
|
moduleNameLowerCase: _this.getModuleName().toLowerCase(),
|
|
6172
|
-
|
|
6173
|
-
|
|
6174
|
-
|
|
6992
|
+
PackageVersion: "4.3.6",
|
|
6993
|
+
isPllEnabled: (_this$getPLLStatus = _this.getPLLStatus()) !== null && _this$getPLLStatus !== void 0 ? _this$getPLLStatus : false,
|
|
6994
|
+
//...registerValues,
|
|
6175
6995
|
|
|
6176
|
-
|
|
6177
|
-
|
|
6178
|
-
initializer: {
|
|
6179
|
-
name: "CLOCK_Initialize",
|
|
6180
|
-
header: {
|
|
6181
|
-
name: "clock.h",
|
|
6182
|
-
path: "system/"
|
|
6183
|
-
},
|
|
6184
|
-
priority: _microchip_initializer_system__WEBPACK_IMPORTED_MODULE_2__["INIT_PRIORITY"].START
|
|
6185
|
-
}
|
|
6996
|
+
initializerOptimize: _this.getModel().getComponentValue("generateInitializerCode") !== "Initialize all registers" ? true : false,
|
|
6997
|
+
generateCommentedCode: _this.getModel().getComponentValue("generateInitializerCode") === "Generate with commented unmodified registers" ? true : false
|
|
6186
6998
|
};
|
|
6187
6999
|
});
|
|
6188
|
-
|
|
6189
7000
|
_defineProperty(this, "config_device_results", function () {
|
|
6190
7001
|
return {
|
|
6191
7002
|
headers: [{
|
|
@@ -6194,129 +7005,119 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
|
6194
7005
|
}]
|
|
6195
7006
|
};
|
|
6196
7007
|
});
|
|
6197
|
-
|
|
6198
7008
|
_defineProperty(this, "isEnabled", function (componentName) {
|
|
6199
7009
|
var _this$dataModel$getCo;
|
|
6200
|
-
|
|
6201
7010
|
switch (componentName) {
|
|
6202
7011
|
case "hffrqOscfrq":
|
|
6203
7012
|
return ((_this$dataModel$getCo = _this.dataModel.getComponentValue("noscOsccon1")) === null || _this$dataModel$getCo === void 0 ? void 0 : _this$dataModel$getCo.indexOf("HF")) != -1;
|
|
6204
|
-
|
|
6205
7013
|
case "currentSystemClk":
|
|
6206
7014
|
return false;
|
|
6207
|
-
|
|
6208
7015
|
case "lfIntOscFreq":
|
|
6209
7016
|
return false;
|
|
6210
|
-
|
|
6211
7017
|
default:
|
|
6212
7018
|
return true;
|
|
6213
7019
|
}
|
|
6214
7020
|
});
|
|
6215
|
-
|
|
6216
7021
|
_defineProperty(this, "isVisible", function (componentName) {
|
|
6217
7022
|
var componentValue = _this.dataModel.getComponentValue("noscOsccon1");
|
|
6218
|
-
|
|
6219
7023
|
switch (componentName) {
|
|
6220
7024
|
case "externalClk":
|
|
6221
|
-
if (componentValue ===
|
|
7025
|
+
if (componentValue === _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].EXTOSC || componentValue === _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].EXTOSC_4xPLL) {
|
|
6222
7026
|
return true;
|
|
6223
7027
|
} else {
|
|
6224
7028
|
return false;
|
|
6225
7029
|
}
|
|
6226
|
-
|
|
6227
7030
|
case "lfIntOscFreq":
|
|
6228
|
-
if (componentValue !=
|
|
7031
|
+
if (componentValue != _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].LFINTOSC) {
|
|
6229
7032
|
return false;
|
|
6230
7033
|
} else {
|
|
6231
7034
|
return true;
|
|
6232
7035
|
}
|
|
6233
|
-
|
|
6234
7036
|
case "hffrqOscfrq":
|
|
6235
|
-
if (componentValue !=
|
|
7037
|
+
if (componentValue != _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].HFINTOSC && componentValue != _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].HFINTOSC_2xPLL) {
|
|
6236
7038
|
return false;
|
|
6237
7039
|
} else {
|
|
6238
7040
|
return true;
|
|
6239
7041
|
}
|
|
6240
|
-
|
|
6241
7042
|
default:
|
|
6242
7043
|
return true;
|
|
6243
7044
|
}
|
|
6244
7045
|
});
|
|
6245
|
-
|
|
6246
|
-
|
|
6247
|
-
var _this$dataModel$
|
|
6248
|
-
|
|
6249
|
-
var
|
|
6250
|
-
|
|
6251
|
-
|
|
6252
|
-
|
|
6253
|
-
|
|
7046
|
+
_defineProperty(this, "getfoscOptions", function () {
|
|
7047
|
+
var _this$dataModel$getHa, _this$dataModel$getHa2, _MHz$replace, _MHz;
|
|
7048
|
+
var foscOptions = (_this$dataModel$getHa = (_this$dataModel$getHa2 = _this.dataModel.getHardware()) === null || _this$dataModel$getHa2 === void 0 || (_this$dataModel$getHa2 = _this$dataModel$getHa2.getPeripheral()) === null || _this$dataModel$getHa2 === void 0 || (_this$dataModel$getHa2 = _this$dataModel$getHa2.registers.OSCFRQ) === null || _this$dataModel$getHa2 === void 0 || (_this$dataModel$getHa2 = _this$dataModel$getHa2.settings) === null || _this$dataModel$getHa2 === void 0 ? void 0 : _this$dataModel$getHa2.HFFRQ.options) !== null && _this$dataModel$getHa !== void 0 ? _this$dataModel$getHa : [];
|
|
7049
|
+
var defaultVal;
|
|
7050
|
+
var refClk = parseInt((_MHz$replace = (_MHz = "1_MHz") === null || _MHz === void 0 ? void 0 : _MHz.replace("_MHz", "")) !== null && _MHz$replace !== void 0 ? _MHz$replace : 0);
|
|
7051
|
+
if (foscOptions) {
|
|
7052
|
+
foscOptions.forEach(function (option) {
|
|
7053
|
+
var _option$name$replace, _option$name;
|
|
7054
|
+
var HFClk = parseInt((_option$name$replace = (_option$name = option.name) === null || _option$name === void 0 ? void 0 : _option$name.replace("_MHz", "")) !== null && _option$name$replace !== void 0 ? _option$name$replace : 0);
|
|
7055
|
+
if (HFClk > refClk) {
|
|
7056
|
+
refClk = HFClk;
|
|
7057
|
+
defaultVal = option.name;
|
|
7058
|
+
}
|
|
7059
|
+
});
|
|
6254
7060
|
}
|
|
6255
|
-
|
|
6256
|
-
|
|
7061
|
+
return defaultVal;
|
|
7062
|
+
});
|
|
7063
|
+
_defineProperty(this, "overrideDefaultValue", function (componentName) {
|
|
7064
|
+
var defVal = undefined;
|
|
7065
|
+
switch (componentName) {
|
|
7066
|
+
case "hffrqOscfrq":
|
|
7067
|
+
defVal = _this.getfoscOptions();
|
|
7068
|
+
break;
|
|
7069
|
+
}
|
|
7070
|
+
return defVal;
|
|
6257
7071
|
});
|
|
6258
|
-
|
|
6259
7072
|
_defineProperty(this, "getMyAlerts", function () {
|
|
6260
7073
|
var _this$getDynamicCompo, _this$getModel$getCom5, _this$getModel$getCom6, _this$dataModel$getCo2, _this$dataModel$getCo3;
|
|
6261
|
-
|
|
6262
7074
|
var alerts = [];
|
|
6263
7075
|
var selectedOptionVal = (_this$getDynamicCompo = _this.getDynamicComponetDefaultValue("FEXTOSC")) !== null && _this$getDynamicCompo !== void 0 ? _this$getDynamicCompo : "";
|
|
6264
|
-
|
|
6265
7076
|
var noscOsccon1 = _this.dataModel.getComponentValue("noscOsccon1");
|
|
6266
|
-
|
|
6267
|
-
if (noscOsccon1 === _StringConstants__WEBPACK_IMPORTED_MODULE_3__["StringConstants"].EXTOSC_4xPLL || noscOsccon1 === _StringConstants__WEBPACK_IMPORTED_MODULE_3__["StringConstants"].EXTOSC) {
|
|
7077
|
+
if (noscOsccon1 === _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].EXTOSC_4xPLL || noscOsccon1 === _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].EXTOSC) {
|
|
6268
7078
|
alerts.push({
|
|
6269
7079
|
type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Hint,
|
|
6270
7080
|
text: 'Please configure required "External Oscillator Selection" in System Module config bits'
|
|
6271
7081
|
});
|
|
6272
7082
|
}
|
|
6273
|
-
|
|
6274
|
-
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)) {
|
|
7083
|
+
if (noscOsccon1 === _StringConstants__WEBPACK_IMPORTED_MODULE_2__["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)) {
|
|
6275
7084
|
alerts.push({
|
|
6276
7085
|
type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Warning,
|
|
6277
7086
|
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."
|
|
6278
7087
|
});
|
|
6279
7088
|
}
|
|
6280
|
-
|
|
6281
|
-
if (noscOsccon1 === _StringConstants__WEBPACK_IMPORTED_MODULE_3__["StringConstants"].EXTOSC_4xPLL || noscOsccon1 === _StringConstants__WEBPACK_IMPORTED_MODULE_3__["StringConstants"].EXTOSC) {
|
|
7089
|
+
if (noscOsccon1 === _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].EXTOSC_4xPLL || noscOsccon1 === _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].EXTOSC) {
|
|
6282
7090
|
var _this$getModel$getCom7;
|
|
6283
|
-
|
|
6284
|
-
if ((selectedOptionVal === null || selectedOptionVal === void 0 ? void 0 : selectedOptionVal.indexOf("external clock")) != -1 && _this.getClockCalculator().getCurrentSystemClk() > _StringConstants__WEBPACK_IMPORTED_MODULE_3__["StringConstants"].ExtClkFreq_64MHz) {
|
|
7091
|
+
if ((selectedOptionVal === null || selectedOptionVal === void 0 ? void 0 : selectedOptionVal.indexOf("external clock")) != -1 && _this.getClockCalculator().getCurrentSystemClk() > _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].ExtClkFreq_64MHz) {
|
|
6285
7092
|
alerts.push({
|
|
6286
7093
|
type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Warning,
|
|
6287
|
-
text: "External clock frequency is greater than recommended value (" +
|
|
7094
|
+
text: "External clock frequency is greater than recommended value (" + _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].ExtClkFreq_64MHz + " Hz)"
|
|
6288
7095
|
});
|
|
6289
7096
|
}
|
|
6290
|
-
|
|
6291
|
-
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) {
|
|
7097
|
+
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_2__["StringConstants"].ExtClkFreq_20MHz) {
|
|
6292
7098
|
alerts.push({
|
|
6293
7099
|
type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Warning,
|
|
6294
|
-
text: "External clock frequency is greater than recommended value (" +
|
|
7100
|
+
text: "External clock frequency is greater than recommended value (" + _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].ExtClkFreq_20MHz + " Hz)"
|
|
6295
7101
|
});
|
|
6296
7102
|
}
|
|
6297
|
-
|
|
6298
|
-
if (selectedOptionVal.indexOf("Oscillator not enabled") != -1 && _this.getClockCalculator().getCurrentSystemClk() > _StringConstants__WEBPACK_IMPORTED_MODULE_3__["StringConstants"].ExtClkFreq_32MHz) {
|
|
7103
|
+
if (selectedOptionVal.indexOf("Oscillator not enabled") != -1 && _this.getClockCalculator().getCurrentSystemClk() > _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].ExtClkFreq_32MHz) {
|
|
6299
7104
|
alerts.push({
|
|
6300
7105
|
type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Warning,
|
|
6301
|
-
text: "External clock frequency is greater than recommended value (" +
|
|
7106
|
+
text: "External clock frequency is greater than recommended value (" + _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].ExtClkFreq_32MHz + " Hz)"
|
|
6302
7107
|
});
|
|
6303
7108
|
}
|
|
6304
7109
|
}
|
|
6305
|
-
|
|
6306
7110
|
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");
|
|
6307
|
-
|
|
6308
|
-
if (_this.dataModel.getComponentValue("noscOsccon1") === _StringConstants__WEBPACK_IMPORTED_MODULE_3__["StringConstants"].HFINTOSC_2xPLL && (HFClk == 1 || HFClk == 2 || HFClk == 4 || HFClk == 32)) {
|
|
7111
|
+
if (_this.dataModel.getComponentValue("noscOsccon1") === _StringConstants__WEBPACK_IMPORTED_MODULE_2__["StringConstants"].HFINTOSC_2xPLL && (HFClk == 1 || HFClk == 2 || HFClk == 4 || HFClk == 32)) {
|
|
6309
7112
|
alerts.push({
|
|
6310
7113
|
type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Warning,
|
|
6311
7114
|
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."
|
|
6312
7115
|
});
|
|
6313
7116
|
}
|
|
6314
|
-
|
|
6315
7117
|
return alerts;
|
|
6316
7118
|
});
|
|
6317
|
-
|
|
6318
7119
|
this.dataModel = dataModel;
|
|
6319
|
-
};
|
|
7120
|
+
});
|
|
6320
7121
|
|
|
6321
7122
|
/***/ }),
|
|
6322
7123
|
|
|
@@ -6331,41 +7132,35 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
|
6331
7132
|
__webpack_require__.r(__webpack_exports__);
|
|
6332
7133
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCompletePinData", function() { return getCompletePinData; });
|
|
6333
7134
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getRowData", function() { return getRowData; });
|
|
6334
|
-
/* harmony import */ var
|
|
6335
|
-
/* harmony import */ var
|
|
6336
|
-
function
|
|
6337
|
-
|
|
7135
|
+
/* harmony import */ var _microchip_pins_interface_lib_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @microchip/pins-interface/lib/types */ "./node_modules/@microchip/pins-interface/lib/types.js");
|
|
7136
|
+
/* harmony import */ var _microchip_pins_interface_lib_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_microchip_pins_interface_lib_types__WEBPACK_IMPORTED_MODULE_0__);
|
|
7137
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
7138
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { 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 = it.call(o); }, 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; } } }; }
|
|
6338
7139
|
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); }
|
|
6339
|
-
|
|
6340
|
-
function
|
|
6341
|
-
|
|
6342
|
-
function
|
|
6343
|
-
|
|
6344
|
-
function
|
|
6345
|
-
|
|
6346
|
-
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; }
|
|
6347
|
-
|
|
7140
|
+
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; }
|
|
7141
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7142
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7143
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7144
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7145
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
6348
7146
|
|
|
6349
7147
|
// provide complete dynamic data for all pin rows. It overrides static pindata.json
|
|
6350
7148
|
var getCompletePinData = function getCompletePinData(appModel) {
|
|
6351
7149
|
// way to programatically override the json data
|
|
6352
7150
|
return {};
|
|
6353
|
-
};
|
|
7151
|
+
};
|
|
6354
7152
|
|
|
7153
|
+
// overrides pin data for a particular row based on model.
|
|
6355
7154
|
function getRowData(appModel, rowData) {
|
|
6356
7155
|
var _appModel$getImportVa, _appModel$getImportVa2, _appModel$getImportVa3, _appModel$getImportVa4;
|
|
6357
|
-
|
|
6358
7156
|
var retRowJSONdata = rowData;
|
|
6359
7157
|
var rowActions = [];
|
|
6360
|
-
var clockOutEnable = (_appModel$getImportVa = appModel.getImportValue("
|
|
6361
|
-
|
|
7158
|
+
var clockOutEnable = (_appModel$getImportVa = appModel.getImportValue("configbits_basic_interface")) === null || _appModel$getImportVa === void 0 || (_appModel$getImportVa = _appModel$getImportVa.configsResp) === null || _appModel$getImportVa === void 0 ? void 0 : _appModel$getImportVa["CLKOUTEN"];
|
|
6362
7159
|
if (clockOutEnable) {
|
|
6363
7160
|
var _appModel$getPCPHelpe;
|
|
6364
|
-
|
|
6365
7161
|
delete clockOutEnable["setting"];
|
|
6366
7162
|
delete clockOutEnable["displayOptionSetting"];
|
|
6367
7163
|
var selectedOption = clockOutEnable["defaultValue"]["value"];
|
|
6368
|
-
|
|
6369
7164
|
if (selectedOption.indexOf("CLKOUT function is enabled") != -1) {
|
|
6370
7165
|
if (rowData.name === "clockout") {
|
|
6371
7166
|
retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
|
|
@@ -6375,36 +7170,28 @@ function getRowData(appModel, rowData) {
|
|
|
6375
7170
|
});
|
|
6376
7171
|
}
|
|
6377
7172
|
}
|
|
6378
|
-
|
|
6379
7173
|
var isPic18ClkOut = selectedOption === "CLKOUT function is enabled" || selectedOption === "CLKOUT function is disabled" ? true : false;
|
|
6380
|
-
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();
|
|
6381
|
-
|
|
7174
|
+
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();
|
|
7175
|
+
// Provide the module reference(scriptID) of remote config bits module
|
|
6382
7176
|
var _iterator = _createForOfIteratorHelper(actionArr),
|
|
6383
|
-
|
|
6384
|
-
|
|
7177
|
+
_step;
|
|
6385
7178
|
try {
|
|
6386
7179
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
6387
7180
|
var eachAction = _step.value;
|
|
6388
|
-
var lockedState = eachAction.state[
|
|
6389
|
-
|
|
7181
|
+
var lockedState = eachAction.state[_microchip_pins_interface_lib_types__WEBPACK_IMPORTED_MODULE_0__["pin_state"].LOCKED];
|
|
6390
7182
|
if (lockedState) {
|
|
6391
|
-
var _appModel$getAssigned
|
|
6392
|
-
|
|
7183
|
+
var _appModel$getAssigned;
|
|
6393
7184
|
lockedState.meta = {
|
|
6394
|
-
to: (_appModel$getAssigned = appModel.getAssignedImport("
|
|
7185
|
+
to: (_appModel$getAssigned = appModel.getAssignedImport("configbits_basic_interface")) === null || _appModel$getAssigned === void 0 || (_appModel$getAssigned = _appModel$getAssigned.handle) === null || _appModel$getAssigned === void 0 ? void 0 : _appModel$getAssigned.providerId
|
|
6395
7186
|
};
|
|
6396
7187
|
}
|
|
6397
|
-
|
|
6398
|
-
var unlockedState = eachAction.state[_microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["pin_state"].UNLOCK];
|
|
6399
|
-
|
|
7188
|
+
var unlockedState = eachAction.state[_microchip_pins_interface_lib_types__WEBPACK_IMPORTED_MODULE_0__["pin_state"].UNLOCK];
|
|
6400
7189
|
if (unlockedState) {
|
|
6401
|
-
var _appModel$
|
|
6402
|
-
|
|
7190
|
+
var _appModel$getAssigned2;
|
|
6403
7191
|
unlockedState.meta = {
|
|
6404
|
-
to: (_appModel$
|
|
7192
|
+
to: (_appModel$getAssigned2 = appModel.getAssignedImport("configbits_basic_interface")) === null || _appModel$getAssigned2 === void 0 || (_appModel$getAssigned2 = _appModel$getAssigned2.handle) === null || _appModel$getAssigned2 === void 0 ? void 0 : _appModel$getAssigned2.providerId
|
|
6405
7193
|
};
|
|
6406
7194
|
}
|
|
6407
|
-
|
|
6408
7195
|
rowActions.push(eachAction);
|
|
6409
7196
|
}
|
|
6410
7197
|
} catch (err) {
|
|
@@ -6413,49 +7200,38 @@ function getRowData(appModel, rowData) {
|
|
|
6413
7200
|
_iterator.f();
|
|
6414
7201
|
}
|
|
6415
7202
|
}
|
|
6416
|
-
|
|
6417
|
-
var extClkSelect = (_appModel$getImportVa2 = appModel.getImportValue("config_request")) === null || _appModel$getImportVa2 === void 0 ? void 0 : _appModel$getImportVa2["FEXTOSC"];
|
|
6418
|
-
|
|
7203
|
+
var extClkSelect = (_appModel$getImportVa2 = appModel.getImportValue("configbits_basic_interface")) === null || _appModel$getImportVa2 === void 0 || (_appModel$getImportVa2 = _appModel$getImportVa2.configsResp) === null || _appModel$getImportVa2 === void 0 ? void 0 : _appModel$getImportVa2["FEXTOSC"];
|
|
6419
7204
|
if (extClkSelect) {
|
|
6420
7205
|
var _appModel$getComponen;
|
|
6421
|
-
|
|
6422
7206
|
delete extClkSelect["setting"];
|
|
6423
7207
|
delete extClkSelect["displayOptionSetting"];
|
|
6424
7208
|
var _selectedOption = extClkSelect["defaultValue"]["value"];
|
|
6425
|
-
|
|
6426
7209
|
if (_selectedOption.indexOf("(external clock)") != -1 || _selectedOption.indexOf("EC") != -1) {
|
|
6427
7210
|
if (rowData.name === "osc1" || rowData.name === "osc2") {
|
|
6428
7211
|
retRowJSONdata = undefined;
|
|
6429
7212
|
}
|
|
6430
7213
|
}
|
|
6431
|
-
|
|
6432
7214
|
if (_selectedOption.indexOf("(crystal oscillator)") != -1) {
|
|
6433
7215
|
if (rowData.name === "clockin") {
|
|
6434
7216
|
retRowJSONdata = undefined;
|
|
6435
7217
|
}
|
|
6436
7218
|
}
|
|
6437
|
-
|
|
6438
7219
|
if (_selectedOption.indexOf("Oscillator not enabled") != -1 || _selectedOption.indexOf("Reserved") != -1) {
|
|
6439
7220
|
if (rowData.name === "clockin" || rowData.name === "osc1" || rowData.name === "osc2") {
|
|
6440
7221
|
retRowJSONdata = undefined;
|
|
6441
7222
|
}
|
|
6442
|
-
}
|
|
6443
|
-
|
|
6444
|
-
|
|
7223
|
+
}
|
|
7224
|
+
// Restricting pin actions for clockin, osc1 and osc2 pin rows
|
|
6445
7225
|
var mclrKey = (_appModel$getComponen = appModel.getComponent("mclrUnusedKey")) === null || _appModel$getComponen === void 0 ? void 0 : _appModel$getComponen.component;
|
|
6446
|
-
|
|
6447
7226
|
if (mclrKey) {
|
|
6448
7227
|
var _appModel$getPCPHelpe2, _appModel$getPCPHelpe3, _appModel$getPCPHelpe4;
|
|
6449
|
-
|
|
6450
7228
|
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());
|
|
6451
7229
|
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());
|
|
6452
7230
|
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());
|
|
6453
7231
|
}
|
|
6454
7232
|
}
|
|
6455
|
-
|
|
6456
|
-
var
|
|
6457
|
-
var lvpEnable = (_appModel$getImportVa4 = appModel.getImportValue("config_request")) === null || _appModel$getImportVa4 === void 0 ? void 0 : _appModel$getImportVa4["LVP"];
|
|
6458
|
-
|
|
7233
|
+
var mclrEnable = (_appModel$getImportVa3 = appModel.getImportValue("configbits_basic_interface")) === null || _appModel$getImportVa3 === void 0 || (_appModel$getImportVa3 = _appModel$getImportVa3.configsResp) === null || _appModel$getImportVa3 === void 0 ? void 0 : _appModel$getImportVa3["MCLRE"];
|
|
7234
|
+
var lvpEnable = (_appModel$getImportVa4 = appModel.getImportValue("configbits_basic_interface")) === null || _appModel$getImportVa4 === void 0 || (_appModel$getImportVa4 = _appModel$getImportVa4.configsResp) === null || _appModel$getImportVa4 === void 0 ? void 0 : _appModel$getImportVa4["LVP"];
|
|
6459
7235
|
if (mclrEnable && lvpEnable) {
|
|
6460
7236
|
delete mclrEnable["setting"];
|
|
6461
7237
|
delete mclrEnable["displayOptionSetting"];
|
|
@@ -6463,7 +7239,6 @@ function getRowData(appModel, rowData) {
|
|
|
6463
7239
|
delete lvpEnable["setting"];
|
|
6464
7240
|
delete lvpEnable["displayOptionSetting"];
|
|
6465
7241
|
var selectedLvpOption = lvpEnable["defaultValue"]["value"];
|
|
6466
|
-
|
|
6467
7242
|
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) {
|
|
6468
7243
|
if (selectedMclrOption.indexOf("MCLR pin is MCLR") != -1 || selectedMclrOption.indexOf("MCLR pin is Master Clear function") != -1 || selectedMclrOption === "MCLR pin (RE3) is MCLR") {
|
|
6469
7244
|
if (rowData.name === "reset" && retRowJSONdata) {
|
|
@@ -6474,48 +7249,39 @@ function getRowData(appModel, rowData) {
|
|
|
6474
7249
|
});
|
|
6475
7250
|
}
|
|
6476
7251
|
}
|
|
6477
|
-
|
|
6478
7252
|
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;
|
|
6479
7253
|
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;
|
|
6480
|
-
var _actionArr = [];
|
|
7254
|
+
var _actionArr = [];
|
|
6481
7255
|
|
|
7256
|
+
// For handling Q10 devices
|
|
6482
7257
|
if (isQ10Mclr) {
|
|
6483
7258
|
var _appModel$getPCPHelpe5;
|
|
6484
|
-
|
|
6485
7259
|
_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();
|
|
6486
7260
|
} else {
|
|
6487
7261
|
var _appModel$getPCPHelpe6;
|
|
6488
|
-
|
|
6489
7262
|
_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();
|
|
6490
|
-
}
|
|
6491
|
-
|
|
7263
|
+
}
|
|
6492
7264
|
|
|
7265
|
+
// Provide the module reference(scriptID) of remote config bits module
|
|
6493
7266
|
var _iterator2 = _createForOfIteratorHelper(_actionArr),
|
|
6494
|
-
|
|
6495
|
-
|
|
7267
|
+
_step2;
|
|
6496
7268
|
try {
|
|
6497
7269
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
6498
7270
|
var _eachAction = _step2.value;
|
|
6499
|
-
var _lockedState = _eachAction.state[
|
|
6500
|
-
|
|
7271
|
+
var _lockedState = _eachAction.state[_microchip_pins_interface_lib_types__WEBPACK_IMPORTED_MODULE_0__["pin_state"].LOCKED];
|
|
6501
7272
|
if (_lockedState) {
|
|
6502
|
-
var _appModel$
|
|
6503
|
-
|
|
7273
|
+
var _appModel$getAssigned3;
|
|
6504
7274
|
_lockedState.meta = {
|
|
6505
|
-
to: (_appModel$
|
|
7275
|
+
to: (_appModel$getAssigned3 = appModel.getAssignedImport("configbits_basic_interface")) === null || _appModel$getAssigned3 === void 0 || (_appModel$getAssigned3 = _appModel$getAssigned3.handle) === null || _appModel$getAssigned3 === void 0 ? void 0 : _appModel$getAssigned3.providerId
|
|
6506
7276
|
};
|
|
6507
7277
|
}
|
|
6508
|
-
|
|
6509
|
-
var _unlockedState = _eachAction.state[_microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["pin_state"].UNLOCK];
|
|
6510
|
-
|
|
7278
|
+
var _unlockedState = _eachAction.state[_microchip_pins_interface_lib_types__WEBPACK_IMPORTED_MODULE_0__["pin_state"].UNLOCK];
|
|
6511
7279
|
if (_unlockedState) {
|
|
6512
|
-
var _appModel$
|
|
6513
|
-
|
|
7280
|
+
var _appModel$getAssigned4;
|
|
6514
7281
|
_unlockedState.meta = {
|
|
6515
|
-
to: (_appModel$
|
|
7282
|
+
to: (_appModel$getAssigned4 = appModel.getAssignedImport("configbits_basic_interface")) === null || _appModel$getAssigned4 === void 0 || (_appModel$getAssigned4 = _appModel$getAssigned4.handle) === null || _appModel$getAssigned4 === void 0 ? void 0 : _appModel$getAssigned4.providerId
|
|
6516
7283
|
};
|
|
6517
7284
|
}
|
|
6518
|
-
|
|
6519
7285
|
rowActions.push(_eachAction);
|
|
6520
7286
|
}
|
|
6521
7287
|
} catch (err) {
|
|
@@ -6525,7 +7291,6 @@ function getRowData(appModel, rowData) {
|
|
|
6525
7291
|
}
|
|
6526
7292
|
} else {
|
|
6527
7293
|
var _appModel$getComponen2;
|
|
6528
|
-
|
|
6529
7294
|
if (selectedMclrOption) {
|
|
6530
7295
|
if (rowData.name === "reset" && retRowJSONdata) {
|
|
6531
7296
|
retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
|
|
@@ -6535,33 +7300,25 @@ function getRowData(appModel, rowData) {
|
|
|
6535
7300
|
});
|
|
6536
7301
|
}
|
|
6537
7302
|
}
|
|
6538
|
-
|
|
6539
7303
|
var _mclrKey = (_appModel$getComponen2 = appModel.getComponent("mclrUnusedKey")) === null || _appModel$getComponen2 === void 0 ? void 0 : _appModel$getComponen2.component;
|
|
6540
|
-
|
|
6541
7304
|
if (_mclrKey) {
|
|
6542
7305
|
var _appModel$getPCPHelpe7;
|
|
6543
|
-
|
|
6544
7306
|
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());
|
|
6545
7307
|
}
|
|
6546
7308
|
}
|
|
6547
7309
|
}
|
|
6548
|
-
|
|
6549
7310
|
var noscOsccon1 = appModel.getComponentValue("noscOsccon1");
|
|
6550
|
-
|
|
6551
7311
|
if (noscOsccon1 === "HFINTOSC" || noscOsccon1 === "LFINTOSC" || noscOsccon1 === "SOSC" || noscOsccon1 === "HFINTOSC with 2x PLL") {
|
|
6552
7312
|
if (rowData.name === "clockin") {
|
|
6553
7313
|
retRowJSONdata = undefined;
|
|
6554
7314
|
}
|
|
6555
|
-
|
|
6556
7315
|
if (rowData.name === "osc1") {
|
|
6557
7316
|
retRowJSONdata = undefined;
|
|
6558
7317
|
}
|
|
6559
|
-
|
|
6560
7318
|
if (rowData.name === "osc2") {
|
|
6561
7319
|
retRowJSONdata = undefined;
|
|
6562
7320
|
}
|
|
6563
7321
|
}
|
|
6564
|
-
|
|
6565
7322
|
if (rowData.name === "sosci") {
|
|
6566
7323
|
if (noscOsccon1 === "SOSC" && retRowJSONdata) {
|
|
6567
7324
|
retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
|
|
@@ -6573,7 +7330,6 @@ function getRowData(appModel, rowData) {
|
|
|
6573
7330
|
retRowJSONdata = undefined;
|
|
6574
7331
|
}
|
|
6575
7332
|
}
|
|
6576
|
-
|
|
6577
7333
|
if (rowData.name === "sosco") {
|
|
6578
7334
|
if (noscOsccon1 === "SOSC" && retRowJSONdata) {
|
|
6579
7335
|
retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
|
|
@@ -6585,7 +7341,6 @@ function getRowData(appModel, rowData) {
|
|
|
6585
7341
|
retRowJSONdata = undefined;
|
|
6586
7342
|
}
|
|
6587
7343
|
}
|
|
6588
|
-
|
|
6589
7344
|
if (retRowJSONdata) retRowJSONdata = _objectSpread(_objectSpread({}, retRowJSONdata), {}, {
|
|
6590
7345
|
actions: rowActions
|
|
6591
7346
|
});
|
|
@@ -6604,34 +7359,26 @@ function getRowData(appModel, rowData) {
|
|
|
6604
7359
|
"use strict";
|
|
6605
7360
|
__webpack_require__.r(__webpack_exports__);
|
|
6606
7361
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StringConstants", function() { return StringConstants; });
|
|
7362
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
7363
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
7364
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
6607
7365
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6608
|
-
|
|
6609
|
-
function
|
|
6610
|
-
|
|
6611
|
-
var StringConstants = function StringConstants() {
|
|
7366
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7367
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7368
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7369
|
+
var StringConstants = /*#__PURE__*/_createClass(function StringConstants() {
|
|
6612
7370
|
_classCallCheck(this, StringConstants);
|
|
6613
|
-
};
|
|
6614
|
-
|
|
7371
|
+
});
|
|
6615
7372
|
_defineProperty(StringConstants, "SOSC", "SOSC");
|
|
6616
|
-
|
|
6617
7373
|
_defineProperty(StringConstants, "LFINTOSC", "LFINTOSC");
|
|
6618
|
-
|
|
6619
7374
|
_defineProperty(StringConstants, "HFINTOSC", "HFINTOSC");
|
|
6620
|
-
|
|
6621
7375
|
_defineProperty(StringConstants, "HFINTOSC_2xPLL", "HFINTOSC with 2x PLL");
|
|
6622
|
-
|
|
6623
7376
|
_defineProperty(StringConstants, "EXTOSC", "EXTOSC");
|
|
6624
|
-
|
|
6625
|
-
_defineProperty(StringConstants, "EXTOSC_4xPLL", "EXTOSC with 4x PLL");
|
|
6626
|
-
|
|
7377
|
+
_defineProperty(StringConstants, "EXTOSC_4xPLL", "EXTOSC with 4x PLL");
|
|
6627
7378
|
_defineProperty(StringConstants, "OSC_NOT_NEEDED", "Oscillator not needed");
|
|
6628
|
-
|
|
6629
7379
|
_defineProperty(StringConstants, "ON", "ON");
|
|
6630
|
-
|
|
6631
7380
|
_defineProperty(StringConstants, "ExtClkFreq_64MHz", 64000000);
|
|
6632
|
-
|
|
6633
7381
|
_defineProperty(StringConstants, "ExtClkFreq_20MHz", 20000000);
|
|
6634
|
-
|
|
6635
7382
|
_defineProperty(StringConstants, "ExtClkFreq_32MHz", 32000000);
|
|
6636
7383
|
|
|
6637
7384
|
/***/ }),
|
|
@@ -6643,7 +7390,7 @@ _defineProperty(StringConstants, "ExtClkFreq_32MHz", 32000000);
|
|
|
6643
7390
|
/*! exports provided: moduleName, deviceType, booleanValues, hasPins, UIGroups, UIOrder, tabs, analytics, templates, help, imports, exports, softwareData, peripherals, default */
|
|
6644
7391
|
/***/ (function(module) {
|
|
6645
7392
|
|
|
6646
|
-
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\"]}]}");
|
|
7393
|
+
module.exports = JSON.parse("{\"moduleName\":\"Clock Control\",\"deviceType\":\"PIC\",\"booleanValues\":{\"true\":\"enabled\",\"false\":\"disabled\"},\"hasPins\":true,\"UIGroups\":{\"software\":\"Software Settings\",\"hardware\":\"Clock Settings\",\"advanced\":\"Advanced Settings\"},\"UIOrder\":{\"software\":[\"*\"],\"hardware\":[\"currentSystemClk\",\"noscOsccon1\",\"externalClk\",\"lfIntOscFreq\",\"hffrqOscfrq\",\"ndivOsccon1\",\"*\"]},\"tabs\":{\"main\":\"Easy View\",\"register\":\"Register Initialization\"},\"analytics\":{\"logAlwaysComps\":[\"noscOsccon1\",\"hffrqOscfrq\",\"ndivOsccon1\",\"soscpwrOsccon3\",\"cswholdOsccon3\",\"pllenOscen\",\"actenActcon\",\"actudActcon\",\"tunOsctune\"],\"logOnChangeComps\":[],\"compMapping\":{\"noscOsccon1\":\"ClockSourceSelection\",\"hffrqOscfrq\":\"HF_InternalClock\",\"ndivOsccon1\":\"ClockDivider\",\"soscpwrOsccon3\":\"SecondaryOscillatorPowerModeSelect\",\"cswholdOsccon3\":\"ClockSwitchHoldControl\",\"pllenOscen\":\"PLL_Enable\",\"actenActcon\":\"ActiveClockTuning\",\"actudActcon\":\"ActiveClockTuningUpdate\",\"tunOsctune\":\"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\":\"The Oscillator module offers a wide selection of clock sources that allows it to be used in a large range of applications.\"},\"imports\":{\"scf_pic8_osc_v1\":{\"import\":{\"interfaceId\":{\"name\":\"scf-pic8-osc-v1\",\"version\":\"^1\"},\"isRequired\":true}},\"config_device\":{\"nodeModule\":{\"importName\":\"config_device\",\"node\":\"@microchip/config-device\"},\"fullyTyped\":true,\"import\":{\"interfaceId\":{\"name\":\"config-device\",\"version\":\"^1\"}}},\"sys_init_basic_interface\":{\"import\":{\"interfaceId\":{\"name\":\"sys-init-basic-interface\",\"version\":\"^1\"}},\"nodeModule\":{\"importName\":\"SysInitBasic\",\"node\":\"@microchip/sys-init-basic-interface\"}},\"configbits_basic_interface\":{\"import\":{\"interfaceId\":{\"name\":\"configbits-basic-interface\",\"version\":\"^1\"}},\"fullyTyped\":true,\"nodeModule\":{\"importName\":\"configbits_basic_interface\",\"node\":\"@microchip/configbits-basic-interface\"}},\"pins_interface\":{\"import\":{\"interfaceId\":{\"name\":\"pins-interface\",\"version\":\"^1\"}}},\"device_meta\":{\"import\":{\"interfaceId\":{\"name\":\"device-meta\",\"version\":\"^1\"}}}},\"exports\":{\"osc_clocks\":{\"interfaces\":[{\"interfaceId\":{\"name\":\"osc-clocks\",\"version\":\"0.2.0\"},\"fullyTyped\":true,\"nodeModule\":{\"importName\":\"osc_clocks\",\"node\":\"@microchip/osc-clocks\"}}]},\"clock_basic_interface\":{\"interfaces\":[{\"interfaceId\":{\"name\":\"clock-basic-interface\",\"version\":\"1.0.0\"},\"fullyTyped\":true,\"nodeModule\":{\"importName\":\"clock_basic_interface\",\"node\":\"@microchip/clock-basic-interface\"}}]},\"fosc\":{\"interfaces\":[{\"interfaceId\":{\"name\":\"fosc-hz\",\"version\":\"0.3.0\"},\"fullyTyped\":true,\"nodeModule\":{\"importName\":\"fosc_hz\",\"node\":\"@microchip/fosc-hz\"}}]}},\"softwareData\":{\"generateInitializerCode\":{\"name\":\"generateInitializerCode\",\"description\":\"Generate Initializer Code\",\"type\":\"ComboBox\",\"defaultValue\":{\"value\":\"Initialize all registers\",\"options\":[\"Initialize all registers\",\"Generate only modified registers\",\"Generate with commented unmodified registers\"]},\"group\":\"software\",\"tabs\":[\"main\"],\"category\":\"software\"},\"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\":[\"Register\"],\"category\":\"software\",\"isVisibleProperty\":\"doNotShow\"}},\"peripherals\":[{\"interfaceId\":{\"name\":\"scf-pic8-osc-v1\",\"version\":\"^1\"},\"registers\":{\"OSCCON1\":[{\"setting\":\"NDIV\",\"name\":\"ndivOsccon1\",\"description\":\"Clock Divider\",\"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\"}},{\"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\":\"tunOsctune\",\"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\"]}]}");
|
|
6647
7394
|
|
|
6648
7395
|
/***/ }),
|
|
6649
7396
|
|