@mchp-mcc/scf-pic8-pwm-v2 4.2.10 → 4.2.11
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 +6 -6
- package/Readme.md +6 -6
- package/output/autoCreator.js +76 -74
- package/output/autoCreator.js.map +1 -1
- package/output/autoProcessor.js +76 -74
- package/output/autoProcessor.js.map +1 -1
- package/output/creator.js +482 -101
- package/output/creator.js.map +1 -1
- package/output/nullPrototype.json +5 -5
- package/output/processor.js +482 -101
- package/output/processor.js.map +1 -1
- package/package.json +15 -15
package/output/processor.js
CHANGED
|
@@ -505,10 +505,10 @@ var filterModeOptions = function filterModeOptions(options, component, masterCom
|
|
|
505
505
|
|
|
506
506
|
var getProcessedHandle = function getProcessedHandle(handle, payload) {
|
|
507
507
|
if (handle) {
|
|
508
|
-
var _ref, _ref2, _ref3, _payload$customName;
|
|
508
|
+
var _ref, _ref2, _ref3, _payload$customName, _handle;
|
|
509
509
|
|
|
510
510
|
handle = _objectSpread(_objectSpread({}, handle), {}, {
|
|
511
|
-
label: (_ref = (_ref2 = (_ref3 = (_payload$customName = payload === null || payload === void 0 ? void 0 : payload.customName) !== null && _payload$customName !== void 0 ? _payload$customName :
|
|
511
|
+
label: (_ref = (_ref2 = (_ref3 = (_payload$customName = payload === null || payload === void 0 ? void 0 : payload.customName) !== null && _payload$customName !== void 0 ? _payload$customName : (_handle = handle) === null || _handle === void 0 ? void 0 : _handle.label) !== null && _ref3 !== void 0 ? _ref3 : payload === null || payload === void 0 ? void 0 : payload.moduleName) !== null && _ref2 !== void 0 ? _ref2 : payload === null || payload === void 0 ? void 0 : payload.name) !== null && _ref !== void 0 ? _ref : handle.providerId + " : " + handle.exportId
|
|
512
512
|
});
|
|
513
513
|
}
|
|
514
514
|
|
|
@@ -953,6 +953,7 @@ var QueryAdapterKey;
|
|
|
953
953
|
QueryAdapterKey["ALLPINS"] = "allpins";
|
|
954
954
|
QueryAdapterKey["ALLPINS_FOR_ATTRIBS"] = "allpins_for_attribs";
|
|
955
955
|
QueryAdapterKey["PPS"] = "pps";
|
|
956
|
+
QueryAdapterKey["APFCON"] = "apfcon";
|
|
956
957
|
QueryAdapterKey["PORTMUX"] = "portmux";
|
|
957
958
|
QueryAdapterKey["HASPPS"] = "hasPPS";
|
|
958
959
|
})(QueryAdapterKey = exports.QueryAdapterKey || (exports.QueryAdapterKey = {}));
|
|
@@ -1423,11 +1424,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
1423
1424
|
};
|
|
1424
1425
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
1425
1426
|
if (k2 === undefined) k2 = k;
|
|
1426
|
-
|
|
1427
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
1428
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
1429
|
-
}
|
|
1430
|
-
Object.defineProperty(o, k2, desc);
|
|
1427
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
1431
1428
|
}) : (function(o, m, k, k2) {
|
|
1432
1429
|
if (k2 === undefined) k2 = k;
|
|
1433
1430
|
o[k2] = m[k];
|
|
@@ -1455,7 +1452,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
1455
1452
|
};
|
|
1456
1453
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1457
1454
|
exports.getModel = void 0;
|
|
1458
|
-
var Processor = __importStar(__webpack_require__(/*! @microchip/scf-common/lib/Processor */ "./node_modules/@microchip/scf-common/lib/Processor.js"));
|
|
1455
|
+
var Processor = __importStar(__webpack_require__(/*! @microchip/scf-common/lib/Processor */ "./node_modules/@microchip/scf-automodule-impl/node_modules/@microchip/scf-common/lib/Processor.js"));
|
|
1459
1456
|
var AutoModuleAppModel_1 = __webpack_require__(/*! ../autoModule/AutoModuleAppModel */ "./node_modules/@microchip/scf-automodule-impl/lib/autoModule/AutoModuleAppModel.js");
|
|
1460
1457
|
var AutoModuleHelpers_1 = __webpack_require__(/*! ../autoModule/AutoModuleHelpers */ "./node_modules/@microchip/scf-automodule-impl/lib/autoModule/AutoModuleHelpers.js");
|
|
1461
1458
|
var getConfigData_1 = __webpack_require__(/*! ../autoModule/getConfigData */ "./node_modules/@microchip/scf-automodule-impl/lib/autoModule/getConfigData.js");
|
|
@@ -1729,11 +1726,7 @@ exports.toDictionary = toDictionary;
|
|
|
1729
1726
|
|
|
1730
1727
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
1731
1728
|
if (k2 === undefined) k2 = k;
|
|
1732
|
-
|
|
1733
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
1734
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
1735
|
-
}
|
|
1736
|
-
Object.defineProperty(o, k2, desc);
|
|
1729
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
1737
1730
|
}) : (function(o, m, k, k2) {
|
|
1738
1731
|
if (k2 === undefined) k2 = k;
|
|
1739
1732
|
o[k2] = m[k];
|
|
@@ -2119,7 +2112,7 @@ exports.MyAutoModuleAppModel = MyAutoModuleAppModel;
|
|
|
2119
2112
|
|
|
2120
2113
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2121
2114
|
exports.isFullyAssigned = exports.createPrototypeImport = void 0;
|
|
2122
|
-
var Processor_1 = __webpack_require__(/*! @microchip/scf-common/lib/Processor */ "./node_modules/@microchip/scf-common/lib/Processor.js");
|
|
2115
|
+
var Processor_1 = __webpack_require__(/*! @microchip/scf-common/lib/Processor */ "./node_modules/@microchip/scf-automodule-impl/node_modules/@microchip/scf-common/lib/Processor.js");
|
|
2123
2116
|
var Arrays_1 = __webpack_require__(/*! @microchip/scf-device/lib/util/Arrays */ "./node_modules/@microchip/scf-device/lib/util/Arrays.js");
|
|
2124
2117
|
var AutoModuleHelpers_1 = __webpack_require__(/*! ./AutoModuleHelpers */ "./node_modules/@microchip/scf-automodule-impl/lib/autoModule/AutoModuleHelpers.js");
|
|
2125
2118
|
var createPrototypeImport = function (interfaceName, config) {
|
|
@@ -2441,7 +2434,7 @@ var filterModeOptions = function (options, component, masterComponentValue) {
|
|
|
2441
2434
|
var getProcessedHandle = function (handle, payload) {
|
|
2442
2435
|
var _a, _b, _c, _d;
|
|
2443
2436
|
if (handle) {
|
|
2444
|
-
handle = __assign(__assign({}, handle), { label: (_d = (_c = (_b = (_a = payload === null || payload === void 0 ? void 0 : payload.customName) !== null && _a !== void 0 ? _a :
|
|
2437
|
+
handle = __assign(__assign({}, handle), { label: (_d = (_c = (_b = (_a = payload === null || payload === void 0 ? void 0 : payload.customName) !== null && _a !== void 0 ? _a : handle === null || handle === void 0 ? void 0 : handle.label) !== 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 });
|
|
2445
2438
|
}
|
|
2446
2439
|
return handle;
|
|
2447
2440
|
};
|
|
@@ -2547,11 +2540,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
2547
2540
|
};
|
|
2548
2541
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2549
2542
|
if (k2 === undefined) k2 = k;
|
|
2550
|
-
|
|
2551
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
2552
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
2553
|
-
}
|
|
2554
|
-
Object.defineProperty(o, k2, desc);
|
|
2543
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
2555
2544
|
}) : (function(o, m, k, k2) {
|
|
2556
2545
|
if (k2 === undefined) k2 = k;
|
|
2557
2546
|
o[k2] = m[k];
|
|
@@ -3462,11 +3451,7 @@ var ConfigBuilder = /** @class */ (function () {
|
|
|
3462
3451
|
|
|
3463
3452
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3464
3453
|
if (k2 === undefined) k2 = k;
|
|
3465
|
-
|
|
3466
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
3467
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
3468
|
-
}
|
|
3469
|
-
Object.defineProperty(o, k2, desc);
|
|
3454
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
3470
3455
|
}) : (function(o, m, k, k2) {
|
|
3471
3456
|
if (k2 === undefined) k2 = k;
|
|
3472
3457
|
o[k2] = m[k];
|
|
@@ -5111,7 +5096,7 @@ exports.PCPHelper = PCPHelper;
|
|
|
5111
5096
|
|
|
5112
5097
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5113
5098
|
exports.PCPStateActionBuilder = void 0;
|
|
5114
|
-
var pin_standard_1 = __webpack_require__(/*! @microchip/pin-standard */ "./node_modules/@microchip/pin-standard/lib/index.js");
|
|
5099
|
+
var pin_standard_1 = __webpack_require__(/*! @microchip/pin-standard */ "./node_modules/@microchip/scf-automodule-impl/node_modules/@microchip/pin-standard/lib/index.js");
|
|
5115
5100
|
var PCPStateActionBuilder = /** @class */ (function () {
|
|
5116
5101
|
function PCPStateActionBuilder(pinRow) {
|
|
5117
5102
|
this.actionDataArr = [];
|
|
@@ -5131,10 +5116,11 @@ var PCPStateActionBuilder = /** @class */ (function () {
|
|
|
5131
5116
|
this.tabId = tabId;
|
|
5132
5117
|
return this;
|
|
5133
5118
|
};
|
|
5134
|
-
PCPStateActionBuilder.prototype.addIfLockedSetValue = function (pinRegEx, value) {
|
|
5119
|
+
PCPStateActionBuilder.prototype.addIfLockedSetValue = function (pinRegEx, value, pinNameReEx) {
|
|
5135
5120
|
this.actionDataArr.push({
|
|
5136
5121
|
pinstate: pin_standard_1.pin_state.LOCKED,
|
|
5137
5122
|
validFor: pinRegEx,
|
|
5123
|
+
validForpinNameReEx: pinNameReEx,
|
|
5138
5124
|
value: value,
|
|
5139
5125
|
actiontype: pin_standard_1.actiontype.SETACTION,
|
|
5140
5126
|
});
|
|
@@ -5183,7 +5169,7 @@ var PCPStateActionBuilder = /** @class */ (function () {
|
|
|
5183
5169
|
this.actionDataArr.forEach(function (eachData) {
|
|
5184
5170
|
var _a;
|
|
5185
5171
|
var _b;
|
|
5186
|
-
|
|
5172
|
+
var actionObj = {
|
|
5187
5173
|
validFor: eachData.validFor,
|
|
5188
5174
|
state: (_a = {},
|
|
5189
5175
|
_a[eachData.pinstate] = {
|
|
@@ -5196,7 +5182,11 @@ var PCPStateActionBuilder = /** @class */ (function () {
|
|
|
5196
5182
|
},
|
|
5197
5183
|
_a),
|
|
5198
5184
|
actiontype: (_b = eachData.actiontype) !== null && _b !== void 0 ? _b : "",
|
|
5199
|
-
}
|
|
5185
|
+
};
|
|
5186
|
+
if (eachData.validForpinNameReEx !== undefined) {
|
|
5187
|
+
actionObj.validForpinNameReEx = eachData.validForpinNameReEx;
|
|
5188
|
+
}
|
|
5189
|
+
actionArr.push(actionObj);
|
|
5200
5190
|
});
|
|
5201
5191
|
}
|
|
5202
5192
|
return actionArr;
|
|
@@ -5941,6 +5931,396 @@ function createRowUid(prefix, postfix) {
|
|
|
5941
5931
|
}
|
|
5942
5932
|
//# sourceMappingURL=tables.js.map
|
|
5943
5933
|
|
|
5934
|
+
/***/ }),
|
|
5935
|
+
|
|
5936
|
+
/***/ "./node_modules/@microchip/scf-automodule-impl/node_modules/@microchip/pin-standard/lib/index.js":
|
|
5937
|
+
/*!*******************************************************************************************************!*\
|
|
5938
|
+
!*** ./node_modules/@microchip/scf-automodule-impl/node_modules/@microchip/pin-standard/lib/index.js ***!
|
|
5939
|
+
\*******************************************************************************************************/
|
|
5940
|
+
/*! no static exports found */
|
|
5941
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
5942
|
+
|
|
5943
|
+
"use strict";
|
|
5944
|
+
|
|
5945
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5946
|
+
var pin_standard_1 = __webpack_require__(/*! ./pin-standard */ "./node_modules/@microchip/scf-automodule-impl/node_modules/@microchip/pin-standard/lib/pin-standard.js");
|
|
5947
|
+
exports.pin_standard = pin_standard_1.pin_standard;
|
|
5948
|
+
exports.pin_state = pin_standard_1.pin_state;
|
|
5949
|
+
exports.direction = pin_standard_1.direction;
|
|
5950
|
+
exports.behaviour = pin_standard_1.behaviour;
|
|
5951
|
+
exports.data_schema = pin_standard_1.data_schema;
|
|
5952
|
+
exports.pin_attribs_enum = pin_standard_1.pin_attribs_enum;
|
|
5953
|
+
exports.actiontype = pin_standard_1.actiontype;
|
|
5954
|
+
exports.QueryAdapterKey = pin_standard_1.QueryAdapterKey;
|
|
5955
|
+
//# sourceMappingURL=index.js.map
|
|
5956
|
+
|
|
5957
|
+
/***/ }),
|
|
5958
|
+
|
|
5959
|
+
/***/ "./node_modules/@microchip/scf-automodule-impl/node_modules/@microchip/pin-standard/lib/pin-standard.js":
|
|
5960
|
+
/*!**************************************************************************************************************!*\
|
|
5961
|
+
!*** ./node_modules/@microchip/scf-automodule-impl/node_modules/@microchip/pin-standard/lib/pin-standard.js ***!
|
|
5962
|
+
\**************************************************************************************************************/
|
|
5963
|
+
/*! no static exports found */
|
|
5964
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
5965
|
+
|
|
5966
|
+
"use strict";
|
|
5967
|
+
|
|
5968
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5969
|
+
exports.pin_standard = function () {
|
|
5970
|
+
return {
|
|
5971
|
+
interfaceId: {
|
|
5972
|
+
name: "pin-standard",
|
|
5973
|
+
version: "0.1.0",
|
|
5974
|
+
},
|
|
5975
|
+
};
|
|
5976
|
+
};
|
|
5977
|
+
var QueryAdapterKey;
|
|
5978
|
+
(function (QueryAdapterKey) {
|
|
5979
|
+
QueryAdapterKey["ALLPINS"] = "allpins";
|
|
5980
|
+
QueryAdapterKey["ALLPINS_FOR_ATTRIBS"] = "allpins_for_attribs";
|
|
5981
|
+
QueryAdapterKey["PPS"] = "pps";
|
|
5982
|
+
QueryAdapterKey["PORTMUX"] = "portmux";
|
|
5983
|
+
QueryAdapterKey["HASPPS"] = "hasPPS";
|
|
5984
|
+
})(QueryAdapterKey = exports.QueryAdapterKey || (exports.QueryAdapterKey = {}));
|
|
5985
|
+
var pin_state;
|
|
5986
|
+
(function (pin_state) {
|
|
5987
|
+
pin_state["EMPTY"] = "E";
|
|
5988
|
+
pin_state["LOCKED"] = "L";
|
|
5989
|
+
pin_state["UNLOCK"] = "UL";
|
|
5990
|
+
pin_state["DiSABLE_LOCK"] = "DL";
|
|
5991
|
+
pin_state["UNLOCKED_DISABLED"] = "DUL";
|
|
5992
|
+
pin_state["LOCKED_LINK"] = "LL";
|
|
5993
|
+
pin_state["UNLOCKED_MUX"] = "MUL";
|
|
5994
|
+
pin_state["LOCKED_CONFLICT"] = "CL";
|
|
5995
|
+
})(pin_state = exports.pin_state || (exports.pin_state = {}));
|
|
5996
|
+
var pin_interrupts_enum;
|
|
5997
|
+
(function (pin_interrupts_enum) {
|
|
5998
|
+
pin_interrupts_enum["INTDIS_BUFFEN"] = "INTDIS_BUFFEN";
|
|
5999
|
+
pin_interrupts_enum["BOTH_EDGES"] = "BOTH_EDGES";
|
|
6000
|
+
pin_interrupts_enum["RISING_EDGE"] = "RISING_EDGE";
|
|
6001
|
+
pin_interrupts_enum["FALLING_EDGE"] = "FALLING_EDGE";
|
|
6002
|
+
pin_interrupts_enum["NONE"] = "NONE";
|
|
6003
|
+
pin_interrupts_enum["LOW_LEVEL"] = "LOW_LEVEL";
|
|
6004
|
+
})(pin_interrupts_enum = exports.pin_interrupts_enum || (exports.pin_interrupts_enum = {}));
|
|
6005
|
+
var pin_attribs_enum;
|
|
6006
|
+
(function (pin_attribs_enum) {
|
|
6007
|
+
pin_attribs_enum["aliasReEx"] = "aliasReEx";
|
|
6008
|
+
pin_attribs_enum["cname"] = "cname";
|
|
6009
|
+
pin_attribs_enum["high"] = "high";
|
|
6010
|
+
pin_attribs_enum["inv"] = "inv";
|
|
6011
|
+
pin_attribs_enum["wpu"] = "wpu";
|
|
6012
|
+
pin_attribs_enum["wpd"] = "wpd";
|
|
6013
|
+
pin_attribs_enum["od"] = "od";
|
|
6014
|
+
pin_attribs_enum["analog"] = "analog";
|
|
6015
|
+
pin_attribs_enum["ioc"] = "ioc";
|
|
6016
|
+
pin_attribs_enum["intcallback"] = "intcallback";
|
|
6017
|
+
pin_attribs_enum["alias"] = "alias";
|
|
6018
|
+
pin_attribs_enum["advInpBuff"] = "advInpBuff";
|
|
6019
|
+
})(pin_attribs_enum = exports.pin_attribs_enum || (exports.pin_attribs_enum = {}));
|
|
6020
|
+
var actiontype;
|
|
6021
|
+
(function (actiontype) {
|
|
6022
|
+
actiontype["SETACTION"] = "SETACTION";
|
|
6023
|
+
actiontype["ATTRIBACTION"] = "ATTRIBACTION";
|
|
6024
|
+
})(actiontype = exports.actiontype || (exports.actiontype = {}));
|
|
6025
|
+
var direction;
|
|
6026
|
+
(function (direction) {
|
|
6027
|
+
direction["output"] = "output";
|
|
6028
|
+
direction["input"] = "input";
|
|
6029
|
+
direction["bidirectional"] = "bidirectional";
|
|
6030
|
+
})(direction = exports.direction || (exports.direction = {}));
|
|
6031
|
+
var behaviour;
|
|
6032
|
+
(function (behaviour) {
|
|
6033
|
+
behaviour["LOCK_UNLOCK"] = "LOCK_UNLOCK";
|
|
6034
|
+
behaviour["ALWAYS_LOCKED"] = "ALWAYS_LOCKED";
|
|
6035
|
+
behaviour["SINGLE_PIN_MUX"] = "SINGLE_PIN_MUX";
|
|
6036
|
+
behaviour["OPTIONAL_PIN_MUX"] = "OPTIONAL_PIN_MUX";
|
|
6037
|
+
behaviour["PPS"] = "PPS";
|
|
6038
|
+
behaviour["APFCON"] = "APFCON";
|
|
6039
|
+
behaviour["PORTMUX"] = "PORTMUX";
|
|
6040
|
+
behaviour["EXCLUSIVE_LOCK"] = "EXCLUSIVE_LOCK";
|
|
6041
|
+
behaviour["LOCKED_DISABLED"] = "LOCKED_DISABLED";
|
|
6042
|
+
})(behaviour = exports.behaviour || (exports.behaviour = {}));
|
|
6043
|
+
//------------------------------------ schema ------------------------------------//
|
|
6044
|
+
exports.data_schema = {
|
|
6045
|
+
$schema: "http://json-schema.org/draft-07/schema#",
|
|
6046
|
+
$ref: "#/definitions/intf_data",
|
|
6047
|
+
definitions: {
|
|
6048
|
+
intf_data: {
|
|
6049
|
+
type: "object",
|
|
6050
|
+
properties: {
|
|
6051
|
+
rows: {
|
|
6052
|
+
type: "array",
|
|
6053
|
+
items: {
|
|
6054
|
+
$ref: "#/definitions/pin_row",
|
|
6055
|
+
},
|
|
6056
|
+
},
|
|
6057
|
+
},
|
|
6058
|
+
required: ["rows"],
|
|
6059
|
+
additionalProperties: false,
|
|
6060
|
+
},
|
|
6061
|
+
pin_row: {
|
|
6062
|
+
type: "object",
|
|
6063
|
+
properties: {
|
|
6064
|
+
name: {
|
|
6065
|
+
type: "string",
|
|
6066
|
+
},
|
|
6067
|
+
module: {
|
|
6068
|
+
type: "string",
|
|
6069
|
+
},
|
|
6070
|
+
function: {
|
|
6071
|
+
type: "string",
|
|
6072
|
+
},
|
|
6073
|
+
direction: {
|
|
6074
|
+
$ref: "#/definitions/direction",
|
|
6075
|
+
},
|
|
6076
|
+
filter: {
|
|
6077
|
+
$ref: "#/definitions/filter",
|
|
6078
|
+
},
|
|
6079
|
+
behaviour: {
|
|
6080
|
+
$ref: "#/definitions/behaviour",
|
|
6081
|
+
},
|
|
6082
|
+
behaviourMeta: {
|
|
6083
|
+
$ref: "#/definitions/behaviourMeta",
|
|
6084
|
+
},
|
|
6085
|
+
attribs: {
|
|
6086
|
+
type: "array",
|
|
6087
|
+
items: {
|
|
6088
|
+
$ref: "#/definitions/pin_attribs",
|
|
6089
|
+
},
|
|
6090
|
+
},
|
|
6091
|
+
groupsdata: {
|
|
6092
|
+
$ref: "#/definitions/pingroups_data",
|
|
6093
|
+
},
|
|
6094
|
+
actions: {},
|
|
6095
|
+
},
|
|
6096
|
+
required: ["name", "module", "function", "direction", "filter", "behaviour"],
|
|
6097
|
+
additionalProperties: false,
|
|
6098
|
+
},
|
|
6099
|
+
direction: {
|
|
6100
|
+
type: "string",
|
|
6101
|
+
enum: ["output", "input", "bidirectional"],
|
|
6102
|
+
},
|
|
6103
|
+
filter: {
|
|
6104
|
+
type: "object",
|
|
6105
|
+
properties: {
|
|
6106
|
+
module: {
|
|
6107
|
+
type: "string",
|
|
6108
|
+
},
|
|
6109
|
+
aliasReEx: {
|
|
6110
|
+
type: "string",
|
|
6111
|
+
},
|
|
6112
|
+
},
|
|
6113
|
+
required: ["module", "aliasReEx"],
|
|
6114
|
+
additionalProperties: false,
|
|
6115
|
+
},
|
|
6116
|
+
behaviour: {
|
|
6117
|
+
type: "string",
|
|
6118
|
+
enum: [
|
|
6119
|
+
"LOCK_UNLOCK",
|
|
6120
|
+
"ALWAYS_LOCKED",
|
|
6121
|
+
"SINGLE_PIN_MUX",
|
|
6122
|
+
"OPTIONAL_PIN_MUX",
|
|
6123
|
+
"PPS",
|
|
6124
|
+
"PORTMUX",
|
|
6125
|
+
"EXCLUSIVE_LOCK",
|
|
6126
|
+
"LOCKED_DISABLED",
|
|
6127
|
+
],
|
|
6128
|
+
},
|
|
6129
|
+
behaviourMeta: {
|
|
6130
|
+
type: "object",
|
|
6131
|
+
properties: {
|
|
6132
|
+
lockPinRegEx: {
|
|
6133
|
+
type: "string",
|
|
6134
|
+
},
|
|
6135
|
+
},
|
|
6136
|
+
required: ["lockPinRegEx"],
|
|
6137
|
+
additionalProperties: false,
|
|
6138
|
+
},
|
|
6139
|
+
pin_attribs: {
|
|
6140
|
+
type: "object",
|
|
6141
|
+
properties: {
|
|
6142
|
+
aliasReEx: {
|
|
6143
|
+
type: "string",
|
|
6144
|
+
},
|
|
6145
|
+
cname: {
|
|
6146
|
+
type: "string",
|
|
6147
|
+
},
|
|
6148
|
+
high: {
|
|
6149
|
+
type: "boolean",
|
|
6150
|
+
},
|
|
6151
|
+
inv: {
|
|
6152
|
+
type: "boolean",
|
|
6153
|
+
},
|
|
6154
|
+
wpu: {
|
|
6155
|
+
type: "boolean",
|
|
6156
|
+
},
|
|
6157
|
+
wpd: {
|
|
6158
|
+
type: "boolean",
|
|
6159
|
+
},
|
|
6160
|
+
od: {
|
|
6161
|
+
type: "boolean",
|
|
6162
|
+
},
|
|
6163
|
+
analog: {
|
|
6164
|
+
type: "boolean",
|
|
6165
|
+
},
|
|
6166
|
+
ioc: {
|
|
6167
|
+
$ref: "#/definitions/pin_interrupts_enum",
|
|
6168
|
+
},
|
|
6169
|
+
bidirection_out: {
|
|
6170
|
+
type: "boolean",
|
|
6171
|
+
},
|
|
6172
|
+
},
|
|
6173
|
+
required: ["aliasReEx"],
|
|
6174
|
+
additionalProperties: false,
|
|
6175
|
+
},
|
|
6176
|
+
pin_interrupts_enum: {
|
|
6177
|
+
type: "string",
|
|
6178
|
+
enum: [
|
|
6179
|
+
"INTDIS_BUFFEN",
|
|
6180
|
+
"BOTH_EDGES",
|
|
6181
|
+
"RISING_EDGE",
|
|
6182
|
+
"FALLING_EDGE",
|
|
6183
|
+
"NONE",
|
|
6184
|
+
"LOW_LEVEL",
|
|
6185
|
+
],
|
|
6186
|
+
},
|
|
6187
|
+
pingroups_data: {
|
|
6188
|
+
type: "object",
|
|
6189
|
+
properties: {
|
|
6190
|
+
groups: {
|
|
6191
|
+
type: "array",
|
|
6192
|
+
items: {
|
|
6193
|
+
$ref: "#/definitions/pins_group",
|
|
6194
|
+
},
|
|
6195
|
+
},
|
|
6196
|
+
},
|
|
6197
|
+
required: ["groups"],
|
|
6198
|
+
additionalProperties: false,
|
|
6199
|
+
},
|
|
6200
|
+
pins_group: {
|
|
6201
|
+
type: "object",
|
|
6202
|
+
properties: {
|
|
6203
|
+
name: {
|
|
6204
|
+
type: "string",
|
|
6205
|
+
},
|
|
6206
|
+
filter: {
|
|
6207
|
+
$ref: "#/definitions/grpfilter",
|
|
6208
|
+
},
|
|
6209
|
+
datapath: {
|
|
6210
|
+
type: "string",
|
|
6211
|
+
},
|
|
6212
|
+
},
|
|
6213
|
+
required: ["name", "filter"],
|
|
6214
|
+
additionalProperties: false,
|
|
6215
|
+
},
|
|
6216
|
+
grpfilter: {
|
|
6217
|
+
type: "object",
|
|
6218
|
+
properties: {
|
|
6219
|
+
aliasReEx: {
|
|
6220
|
+
type: "string",
|
|
6221
|
+
},
|
|
6222
|
+
},
|
|
6223
|
+
required: ["aliasReEx"],
|
|
6224
|
+
additionalProperties: false,
|
|
6225
|
+
},
|
|
6226
|
+
},
|
|
6227
|
+
};
|
|
6228
|
+
//# sourceMappingURL=pin-standard.js.map
|
|
6229
|
+
|
|
6230
|
+
/***/ }),
|
|
6231
|
+
|
|
6232
|
+
/***/ "./node_modules/@microchip/scf-automodule-impl/node_modules/@microchip/scf-common/lib/Processor.js":
|
|
6233
|
+
/*!*********************************************************************************************************!*\
|
|
6234
|
+
!*** ./node_modules/@microchip/scf-automodule-impl/node_modules/@microchip/scf-common/lib/Processor.js ***!
|
|
6235
|
+
\*********************************************************************************************************/
|
|
6236
|
+
/*! no static exports found */
|
|
6237
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
6238
|
+
|
|
6239
|
+
"use strict";
|
|
6240
|
+
|
|
6241
|
+
var __assign = (this && this.__assign) || function () {
|
|
6242
|
+
__assign = Object.assign || function(t) {
|
|
6243
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
6244
|
+
s = arguments[i];
|
|
6245
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6246
|
+
t[p] = s[p];
|
|
6247
|
+
}
|
|
6248
|
+
return t;
|
|
6249
|
+
};
|
|
6250
|
+
return __assign.apply(this, arguments);
|
|
6251
|
+
};
|
|
6252
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6253
|
+
var AlertTypes;
|
|
6254
|
+
(function (AlertTypes) {
|
|
6255
|
+
AlertTypes["Error"] = "error";
|
|
6256
|
+
AlertTypes["Warning"] = "warning";
|
|
6257
|
+
AlertTypes["Hint"] = "hint";
|
|
6258
|
+
})(AlertTypes = exports.AlertTypes || (exports.AlertTypes = {}));
|
|
6259
|
+
/**
|
|
6260
|
+
* Type guard function for SingletonProcessedResource
|
|
6261
|
+
* See User-Defined Type Guards in the Typescript Handbook on Advanced Types
|
|
6262
|
+
* @see https://www.typescriptlang.org/docs/handbook/advanced-types.html
|
|
6263
|
+
*/
|
|
6264
|
+
function hasOptions(dep) {
|
|
6265
|
+
return dep.options !== undefined;
|
|
6266
|
+
}
|
|
6267
|
+
exports.hasOptions = hasOptions;
|
|
6268
|
+
/**
|
|
6269
|
+
* Type guard function for SingletonProcessedResource
|
|
6270
|
+
* See User-Defined Type Guards in the Typescript Handbook on Advanced Types
|
|
6271
|
+
* @see https://www.typescriptlang.org/docs/handbook/advanced-types.html
|
|
6272
|
+
*/
|
|
6273
|
+
function isAssigned(dep) {
|
|
6274
|
+
return typeof dep.handle !== "undefined";
|
|
6275
|
+
}
|
|
6276
|
+
exports.isAssigned = isAssigned;
|
|
6277
|
+
/**
|
|
6278
|
+
* Type guard function for SingletonProcessedResource
|
|
6279
|
+
* See User-Defined Type Guards in the Typescript Handbook on Advanced Types
|
|
6280
|
+
* @see https://www.typescriptlang.org/docs/handbook/advanced-types.html
|
|
6281
|
+
*/
|
|
6282
|
+
function isUnassigned(dep) {
|
|
6283
|
+
return typeof dep.handle === "undefined";
|
|
6284
|
+
}
|
|
6285
|
+
exports.isUnassigned = isUnassigned;
|
|
6286
|
+
/**
|
|
6287
|
+
* Type guard function for SingletonExport
|
|
6288
|
+
* See User-Defined Type Guards in the Typescript Handbook on Advanced Types
|
|
6289
|
+
* @see https://www.typescriptlang.org/docs/handbook/advanced-types.html
|
|
6290
|
+
* @param resource the export to check on being a singleton
|
|
6291
|
+
* @deprecated No longer used. Replaced with dynamic singleton identification
|
|
6292
|
+
* at runtime.
|
|
6293
|
+
*/
|
|
6294
|
+
function isSingleton(resource) {
|
|
6295
|
+
return typeof resource.isSingleton !== "undefined" && resource.isSingleton;
|
|
6296
|
+
}
|
|
6297
|
+
exports.isSingleton = isSingleton;
|
|
6298
|
+
/**
|
|
6299
|
+
* Returns a copy of `populatedImport` with all options removed which
|
|
6300
|
+
* cause `optionFilter` to return false.
|
|
6301
|
+
*/
|
|
6302
|
+
function filterOptions(populatedImport, optionFilter) {
|
|
6303
|
+
if (populatedImport.options) {
|
|
6304
|
+
return __assign({}, populatedImport, { options: populatedImport.options.filter(optionFilter) });
|
|
6305
|
+
}
|
|
6306
|
+
return populatedImport;
|
|
6307
|
+
}
|
|
6308
|
+
exports.filterOptions = filterOptions;
|
|
6309
|
+
/**
|
|
6310
|
+
* Returns a copy of `populatedImport` with the options' handle labels
|
|
6311
|
+
* mapped according to `labelFactory`.
|
|
6312
|
+
*/
|
|
6313
|
+
function mapOptionLabels(populatedImport, labelFactory) {
|
|
6314
|
+
if (populatedImport.options) {
|
|
6315
|
+
return __assign({}, populatedImport, { options: populatedImport.options.map(function (option) {
|
|
6316
|
+
return __assign({}, option, { handle: __assign({}, option.handle, { label: labelFactory(option) }) });
|
|
6317
|
+
}) });
|
|
6318
|
+
}
|
|
6319
|
+
return populatedImport;
|
|
6320
|
+
}
|
|
6321
|
+
exports.mapOptionLabels = mapOptionLabels;
|
|
6322
|
+
|
|
6323
|
+
|
|
5944
6324
|
/***/ }),
|
|
5945
6325
|
|
|
5946
6326
|
/***/ "./node_modules/@microchip/scf-automodule-impl/node_modules/@microchip/scf-register-view-helper/lib/CreateRegisterView.js":
|
|
@@ -8466,8 +8846,7 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
|
8466
8846
|
|
|
8467
8847
|
_defineProperty(this, "getPinstandardArgs", function () {
|
|
8468
8848
|
var args = {
|
|
8469
|
-
queryAdapters: ["
|
|
8470
|
-
queryAdapterMap: _defineProperty({}, _microchip_pin_standard_lib_pin_standard__WEBPACK_IMPORTED_MODULE_7__["QueryAdapterKey"].ALLPINS, "^PWM[0-9]{0,1}$")
|
|
8849
|
+
queryAdapters: [_microchip_pin_standard_lib_pin_standard__WEBPACK_IMPORTED_MODULE_7__["QueryAdapterKey"].PPS, _microchip_pin_standard_lib_pin_standard__WEBPACK_IMPORTED_MODULE_7__["QueryAdapterKey"].APFCON]
|
|
8471
8850
|
};
|
|
8472
8851
|
return args;
|
|
8473
8852
|
});
|
|
@@ -8579,14 +8958,12 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
|
8579
8958
|
});
|
|
8580
8959
|
|
|
8581
8960
|
_defineProperty(this, "getMyAlerts", function () {
|
|
8582
|
-
var _this$dataModel$getCo2,
|
|
8961
|
+
var _this$dataModel$getCo2, _this$dataModel$getAs;
|
|
8583
8962
|
|
|
8584
8963
|
var alerts = [];
|
|
8585
8964
|
var timerSelection = (_this$dataModel$getCo2 = _this.dataModel.getComponentValue("timerSelection")) !== null && _this$dataModel$getCo2 !== void 0 ? _this$dataModel$getCo2 : "";
|
|
8586
|
-
var groupmatch = (_timerSelection$match = timerSelection.match(/^TMR([0-9])$/)) !== null && _timerSelection$match !== void 0 ? _timerSelection$match : "";
|
|
8587
|
-
var timersuffix = (groupmatch === null || groupmatch === void 0 ? void 0 : groupmatch.length) > 1 ? groupmatch[1] : "";
|
|
8588
8965
|
|
|
8589
|
-
if (_this.dataModel.getAssignedImport("Timer")
|
|
8966
|
+
if (_this.dataModel.getAssignedImport("Timer") === undefined || ((_this$dataModel$getAs = _this.dataModel.getAssignedImport("Timer")) === null || _this$dataModel$getAs === void 0 ? void 0 : _this$dataModel$getAs.options) !== undefined) {
|
|
8590
8967
|
alerts.push({
|
|
8591
8968
|
text: "Please select ".concat(timerSelection, " as the Timer Dependency."),
|
|
8592
8969
|
type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Warning
|
|
@@ -8674,10 +9051,10 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
|
8674
9051
|
});
|
|
8675
9052
|
|
|
8676
9053
|
_defineProperty(this, "ctselTimerSetting", function () {
|
|
8677
|
-
var _this$dataModel$getCo4, _timerSelection$
|
|
9054
|
+
var _this$dataModel$getCo4, _timerSelection$match;
|
|
8678
9055
|
|
|
8679
9056
|
var timerSelection = (_this$dataModel$getCo4 = _this.dataModel.getComponentValue("timerSelection")) !== null && _this$dataModel$getCo4 !== void 0 ? _this$dataModel$getCo4 : "";
|
|
8680
|
-
var groupmatch = (_timerSelection$
|
|
9057
|
+
var groupmatch = (_timerSelection$match = timerSelection.match(/^TMR([0-9])$/)) !== null && _timerSelection$match !== void 0 ? _timerSelection$match : "";
|
|
8681
9058
|
|
|
8682
9059
|
if (groupmatch.length > 1) {
|
|
8683
9060
|
var _this$dataModel$getHa3;
|
|
@@ -8811,19 +9188,11 @@ var getCompletePinData = function getCompletePinData(appModel) {
|
|
|
8811
9188
|
}; // overrides pin data for a particular row based on model.
|
|
8812
9189
|
|
|
8813
9190
|
function getRowData(appModel, rowData) {
|
|
8814
|
-
var _appModel$getName, _appModel$getImportVa, _appModel$getComponen, _appModel$getComponen2, _appModel$getComponen3, _appModel$getComponen4;
|
|
9191
|
+
var _appModel$getName, _appModel$getImportVa, _appModel$getImportVa2, _appModel$getImportVa3, _appModel$getImportVa4, _appModel$getImportVa5, _appModel$getImportVa6, _appModel$getComponen, _appModel$getComponen2, _appModel$getComponen3, _appModel$getComponen4, _appModel$getComponen5;
|
|
8815
9192
|
|
|
8816
9193
|
var moduleName = (_appModel$getName = appModel.getName()) !== null && _appModel$getName !== void 0 ? _appModel$getName : "PWM";
|
|
8817
|
-
var
|
|
8818
|
-
var
|
|
8819
|
-
var pinName = getPinName(modulePins, rowData.filter.aliasReEx);
|
|
8820
|
-
var pinBehaviour = getpinBehaviour(allPinsData, moduleName, pinName);
|
|
8821
|
-
var isPPS = pinBehaviour === "pps";
|
|
8822
|
-
var isAPFCON = pinBehaviour === "apfcon";
|
|
8823
|
-
|
|
8824
|
-
if (pinName === "") {
|
|
8825
|
-
return undefined;
|
|
8826
|
-
}
|
|
9194
|
+
var ppsData = (_appModel$getImportVa = appModel.getImportValue("pin_standard")) === null || _appModel$getImportVa === void 0 ? void 0 : (_appModel$getImportVa2 = _appModel$getImportVa["pps"]) === null || _appModel$getImportVa2 === void 0 ? void 0 : (_appModel$getImportVa3 = _appModel$getImportVa2["data"]) === null || _appModel$getImportVa3 === void 0 ? void 0 : _appModel$getImportVa3[moduleName];
|
|
9195
|
+
var apfconData = (_appModel$getImportVa4 = appModel.getImportValue("pin_standard")) === null || _appModel$getImportVa4 === void 0 ? void 0 : (_appModel$getImportVa5 = _appModel$getImportVa4["apfcon"]) === null || _appModel$getImportVa5 === void 0 ? void 0 : (_appModel$getImportVa6 = _appModel$getImportVa5["data"]) === null || _appModel$getImportVa6 === void 0 ? void 0 : _appModel$getImportVa6[moduleName];
|
|
8827
9196
|
|
|
8828
9197
|
if (rowData.name === "out") {
|
|
8829
9198
|
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
@@ -8833,10 +9202,10 @@ function getRowData(appModel, rowData) {
|
|
|
8833
9202
|
module: moduleName,
|
|
8834
9203
|
aliasReEx: "^".concat(moduleName, "(OUT){0,1}$")
|
|
8835
9204
|
},
|
|
8836
|
-
behaviour:
|
|
9205
|
+
behaviour: getPinBehaviour(ppsData, apfconData, rowData.filter.aliasReEx)
|
|
8837
9206
|
});
|
|
8838
9207
|
|
|
8839
|
-
if (appModel.isComponentValue("pwmoePwmcon") === true) {
|
|
9208
|
+
if (appModel.isComponentValue("pwmoePwmcon") === true && getPinBehaviour(ppsData, apfconData, rowData.filter.aliasReEx) === _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].LOCK_UNLOCK) {
|
|
8840
9209
|
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
8841
9210
|
behaviourMeta: {
|
|
8842
9211
|
lockPinRegEx: "^".concat(moduleName, "(OUT){0,1}$")
|
|
@@ -8844,13 +9213,17 @@ function getRowData(appModel, rowData) {
|
|
|
8844
9213
|
});
|
|
8845
9214
|
}
|
|
8846
9215
|
} else if (rowData.name === "pwmx0") {
|
|
9216
|
+
if (appModel.getComponentValue("pwmoe0Pwmaoe") === undefined) {
|
|
9217
|
+
return undefined;
|
|
9218
|
+
}
|
|
9219
|
+
|
|
8847
9220
|
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
8848
9221
|
module: moduleName,
|
|
8849
9222
|
"function": moduleName + "0OUT",
|
|
8850
9223
|
filter: _objectSpread(_objectSpread({}, rowData.filter), {}, {
|
|
8851
9224
|
module: moduleName
|
|
8852
9225
|
}),
|
|
8853
|
-
behaviour:
|
|
9226
|
+
behaviour: getPinBehaviour(ppsData, apfconData, rowData.filter.aliasReEx)
|
|
8854
9227
|
});
|
|
8855
9228
|
|
|
8856
9229
|
if (appModel.isComponentValue("pwmoe0Pwmaoe") === true) {
|
|
@@ -8861,13 +9234,17 @@ function getRowData(appModel, rowData) {
|
|
|
8861
9234
|
});
|
|
8862
9235
|
}
|
|
8863
9236
|
} else if (rowData.name === "pwmx1") {
|
|
9237
|
+
if (appModel.getComponentValue("pwmoe1Pwmaoe") === undefined) {
|
|
9238
|
+
return undefined;
|
|
9239
|
+
}
|
|
9240
|
+
|
|
8864
9241
|
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
8865
9242
|
module: moduleName,
|
|
8866
9243
|
"function": moduleName + "1OUT",
|
|
8867
9244
|
filter: _objectSpread(_objectSpread({}, rowData.filter), {}, {
|
|
8868
9245
|
module: moduleName
|
|
8869
9246
|
}),
|
|
8870
|
-
behaviour:
|
|
9247
|
+
behaviour: getPinBehaviour(ppsData, apfconData, rowData.filter.aliasReEx)
|
|
8871
9248
|
});
|
|
8872
9249
|
|
|
8873
9250
|
if (appModel.isComponentValue("pwmoe1Pwmaoe") === true) {
|
|
@@ -8878,13 +9255,17 @@ function getRowData(appModel, rowData) {
|
|
|
8878
9255
|
});
|
|
8879
9256
|
}
|
|
8880
9257
|
} else if (rowData.name === "pwmx2") {
|
|
9258
|
+
if (appModel.getComponentValue("pwmoe2Pwmaoe") === undefined) {
|
|
9259
|
+
return undefined;
|
|
9260
|
+
}
|
|
9261
|
+
|
|
8881
9262
|
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
8882
9263
|
module: moduleName,
|
|
8883
9264
|
"function": moduleName + "2OUT",
|
|
8884
9265
|
filter: _objectSpread(_objectSpread({}, rowData.filter), {}, {
|
|
8885
9266
|
module: moduleName
|
|
8886
9267
|
}),
|
|
8887
|
-
behaviour:
|
|
9268
|
+
behaviour: getPinBehaviour(ppsData, apfconData, rowData.filter.aliasReEx)
|
|
8888
9269
|
});
|
|
8889
9270
|
|
|
8890
9271
|
if (appModel.isComponentValue("pwmoe2Pwmaoe") === true) {
|
|
@@ -8895,13 +9276,17 @@ function getRowData(appModel, rowData) {
|
|
|
8895
9276
|
});
|
|
8896
9277
|
}
|
|
8897
9278
|
} else if (rowData.name === "pwmx3") {
|
|
9279
|
+
if (appModel.getComponentValue("pwmoe3Pwmaoe") === undefined) {
|
|
9280
|
+
return undefined;
|
|
9281
|
+
}
|
|
9282
|
+
|
|
8898
9283
|
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
8899
9284
|
module: moduleName,
|
|
8900
9285
|
"function": moduleName + "3OUT",
|
|
8901
9286
|
filter: _objectSpread(_objectSpread({}, rowData.filter), {}, {
|
|
8902
9287
|
module: moduleName
|
|
8903
9288
|
}),
|
|
8904
|
-
behaviour:
|
|
9289
|
+
behaviour: getPinBehaviour(ppsData, apfconData, rowData.filter.aliasReEx)
|
|
8905
9290
|
});
|
|
8906
9291
|
|
|
8907
9292
|
if (appModel.isComponentValue("pwmoe3Pwmaoe") === true) {
|
|
@@ -8914,33 +9299,40 @@ function getRowData(appModel, rowData) {
|
|
|
8914
9299
|
}
|
|
8915
9300
|
|
|
8916
9301
|
var rowActions = [];
|
|
8917
|
-
var
|
|
8918
|
-
var
|
|
8919
|
-
var
|
|
8920
|
-
var
|
|
9302
|
+
var pwmxRegcomponent = (_appModel$getComponen = appModel.getComponent("pwmoePwmcon")) === null || _appModel$getComponen === void 0 ? void 0 : _appModel$getComponen.component;
|
|
9303
|
+
var pwmx0Regcomponent = (_appModel$getComponen2 = appModel.getComponent("pwmoe0Pwmaoe")) === null || _appModel$getComponen2 === void 0 ? void 0 : _appModel$getComponen2.component;
|
|
9304
|
+
var pwmx1Regcomponent = (_appModel$getComponen3 = appModel.getComponent("pwmoe1Pwmaoe")) === null || _appModel$getComponen3 === void 0 ? void 0 : _appModel$getComponen3.component;
|
|
9305
|
+
var pwmx2Regcomponent = (_appModel$getComponen4 = appModel.getComponent("pwmoe2Pwmaoe")) === null || _appModel$getComponen4 === void 0 ? void 0 : _appModel$getComponen4.component;
|
|
9306
|
+
var pwmx3Regcomponent = (_appModel$getComponen5 = appModel.getComponent("pwmoe3Pwmaoe")) === null || _appModel$getComponen5 === void 0 ? void 0 : _appModel$getComponen5.component;
|
|
8921
9307
|
|
|
8922
|
-
if (
|
|
9308
|
+
if (pwmxRegcomponent && getPinBehaviour(ppsData, apfconData, "^".concat(moduleName, "(OUT){0,1}$")) === _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].LOCK_UNLOCK) {
|
|
8923
9309
|
var _appModel$getPCPHelpe;
|
|
8924
9310
|
|
|
8925
|
-
rowActions = rowActions.concat((_appModel$getPCPHelpe = appModel.getPCPHelper) === null || _appModel$getPCPHelpe === void 0 ? void 0 : _appModel$getPCPHelpe.call(appModel).stateActionBuilder(rowData).rowWithName("
|
|
9311
|
+
rowActions = rowActions.concat((_appModel$getPCPHelpe = appModel.getPCPHelper) === null || _appModel$getPCPHelpe === void 0 ? void 0 : _appModel$getPCPHelpe.call(appModel).stateActionBuilder(rowData).rowWithName("out").forComponent(pwmxRegcomponent).addIfLockedSetValue("^" + moduleName + "$", true).addIfUnLockedSetValue(".*", false).build());
|
|
8926
9312
|
}
|
|
8927
9313
|
|
|
8928
|
-
if (
|
|
9314
|
+
if (pwmx0Regcomponent) {
|
|
8929
9315
|
var _appModel$getPCPHelpe2;
|
|
8930
9316
|
|
|
8931
|
-
rowActions = rowActions.concat((_appModel$getPCPHelpe2 = appModel.getPCPHelper) === null || _appModel$getPCPHelpe2 === void 0 ? void 0 : _appModel$getPCPHelpe2.call(appModel).stateActionBuilder(rowData).rowWithName("
|
|
9317
|
+
rowActions = rowActions.concat((_appModel$getPCPHelpe2 = appModel.getPCPHelper) === null || _appModel$getPCPHelpe2 === void 0 ? void 0 : _appModel$getPCPHelpe2.call(appModel).stateActionBuilder(rowData).rowWithName("pwmx0").forComponent(pwmx0Regcomponent).addIfLockedSetValue(moduleName + "0", true).addIfUnLockedSetValue(".*", false).build());
|
|
8932
9318
|
}
|
|
8933
9319
|
|
|
8934
|
-
if (
|
|
9320
|
+
if (pwmx1Regcomponent) {
|
|
8935
9321
|
var _appModel$getPCPHelpe3;
|
|
8936
9322
|
|
|
8937
|
-
rowActions = rowActions.concat((_appModel$getPCPHelpe3 = appModel.getPCPHelper) === null || _appModel$getPCPHelpe3 === void 0 ? void 0 : _appModel$getPCPHelpe3.call(appModel).stateActionBuilder(rowData).rowWithName("
|
|
9323
|
+
rowActions = rowActions.concat((_appModel$getPCPHelpe3 = appModel.getPCPHelper) === null || _appModel$getPCPHelpe3 === void 0 ? void 0 : _appModel$getPCPHelpe3.call(appModel).stateActionBuilder(rowData).rowWithName("pwmx1").forComponent(pwmx1Regcomponent).addIfLockedSetValue(moduleName + "1", true).addIfUnLockedSetValue(".*", false).build());
|
|
8938
9324
|
}
|
|
8939
9325
|
|
|
8940
|
-
if (
|
|
9326
|
+
if (pwmx2Regcomponent) {
|
|
8941
9327
|
var _appModel$getPCPHelpe4;
|
|
8942
9328
|
|
|
8943
|
-
rowActions = rowActions.concat((_appModel$getPCPHelpe4 = appModel.getPCPHelper) === null || _appModel$getPCPHelpe4 === void 0 ? void 0 : _appModel$getPCPHelpe4.call(appModel).stateActionBuilder(rowData).rowWithName("
|
|
9329
|
+
rowActions = rowActions.concat((_appModel$getPCPHelpe4 = appModel.getPCPHelper) === null || _appModel$getPCPHelpe4 === void 0 ? void 0 : _appModel$getPCPHelpe4.call(appModel).stateActionBuilder(rowData).rowWithName("pwmx2").forComponent(pwmx2Regcomponent).addIfLockedSetValue(moduleName + "2", true).addIfUnLockedSetValue(".*", false).build());
|
|
9330
|
+
}
|
|
9331
|
+
|
|
9332
|
+
if (pwmx3Regcomponent) {
|
|
9333
|
+
var _appModel$getPCPHelpe5;
|
|
9334
|
+
|
|
9335
|
+
rowActions = rowActions.concat((_appModel$getPCPHelpe5 = appModel.getPCPHelper) === null || _appModel$getPCPHelpe5 === void 0 ? void 0 : _appModel$getPCPHelpe5.call(appModel).stateActionBuilder(rowData).rowWithName("pwmx3").forComponent(pwmx3Regcomponent).addIfLockedSetValue(moduleName + "3", true).addIfUnLockedSetValue(".*", false).build());
|
|
8944
9336
|
}
|
|
8945
9337
|
|
|
8946
9338
|
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
@@ -8949,48 +9341,37 @@ function getRowData(appModel, rowData) {
|
|
|
8949
9341
|
return rowData;
|
|
8950
9342
|
}
|
|
8951
9343
|
|
|
8952
|
-
var
|
|
8953
|
-
var
|
|
9344
|
+
var getPinBehaviour = function getPinBehaviour(ppsPins, apfconPins, pinRegEx) {
|
|
9345
|
+
var tempPinBehaviour = _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].LOCK_UNLOCK;
|
|
8954
9346
|
|
|
8955
|
-
|
|
8956
|
-
var
|
|
8957
|
-
|
|
8958
|
-
|
|
8959
|
-
|
|
8960
|
-
|
|
8961
|
-
|
|
8962
|
-
|
|
9347
|
+
if (ppsPins !== undefined) {
|
|
9348
|
+
for (var ppsPin in ppsPins) {
|
|
9349
|
+
if (ppsPin === "pps_out") {
|
|
9350
|
+
for (var ppsOut in ppsPins["pps_out"]) {
|
|
9351
|
+
if (ppsOut.match(new RegExp(pinRegEx, "ig"))) {
|
|
9352
|
+
tempPinBehaviour = _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].PPS;
|
|
9353
|
+
break;
|
|
9354
|
+
}
|
|
9355
|
+
}
|
|
9356
|
+
} else {
|
|
9357
|
+
if (ppsPin.match(new RegExp(pinRegEx, "ig"))) {
|
|
9358
|
+
tempPinBehaviour = _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].PPS;
|
|
9359
|
+
break;
|
|
9360
|
+
}
|
|
8963
9361
|
}
|
|
8964
9362
|
}
|
|
8965
9363
|
}
|
|
8966
9364
|
|
|
8967
|
-
|
|
8968
|
-
|
|
8969
|
-
|
|
8970
|
-
|
|
8971
|
-
|
|
8972
|
-
|
|
8973
|
-
if (pin.match(new RegExp(regEx, "g"))) {
|
|
8974
|
-
pinName = pin;
|
|
8975
|
-
}
|
|
8976
|
-
});
|
|
8977
|
-
return pinName;
|
|
8978
|
-
};
|
|
8979
|
-
|
|
8980
|
-
var getpinBehaviour = function getpinBehaviour(allPins, moduleName, pinName) {
|
|
8981
|
-
for (var portPin in allPins) {
|
|
8982
|
-
var _allPins$portPin2, _allPins$portPin2$mod;
|
|
8983
|
-
|
|
8984
|
-
var pinData = (_allPins$portPin2 = allPins[portPin]) === null || _allPins$portPin2 === void 0 ? void 0 : (_allPins$portPin2$mod = _allPins$portPin2[moduleName]) === null || _allPins$portPin2$mod === void 0 ? void 0 : _allPins$portPin2$mod[pinName];
|
|
8985
|
-
|
|
8986
|
-
if (pinData === null || pinData === void 0 ? void 0 : pinData["pps"]) {
|
|
8987
|
-
return "pps";
|
|
8988
|
-
} else if (pinData === null || pinData === void 0 ? void 0 : pinData["apfcon"]) {
|
|
8989
|
-
return "apfcon";
|
|
9365
|
+
if (apfconPins !== undefined) {
|
|
9366
|
+
for (var apfconPin in apfconPins) {
|
|
9367
|
+
if (apfconPin.match(new RegExp(pinRegEx, "ig"))) {
|
|
9368
|
+
tempPinBehaviour = _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].APFCON;
|
|
9369
|
+
break;
|
|
9370
|
+
}
|
|
8990
9371
|
}
|
|
8991
9372
|
}
|
|
8992
9373
|
|
|
8993
|
-
return
|
|
9374
|
+
return tempPinBehaviour;
|
|
8994
9375
|
};
|
|
8995
9376
|
|
|
8996
9377
|
/***/ }),
|
|
@@ -9189,7 +9570,7 @@ var Interface = {
|
|
|
9189
9570
|
/*! exports provided: moduleName, deviceType, booleanValues, UIGroups, UIOrder, hasPins, tabs, help, analytics, templates, imports, exports, softwareData, peripherals, default */
|
|
9190
9571
|
/***/ (function(module) {
|
|
9191
9572
|
|
|
9192
|
-
module.exports = JSON.parse("{\"moduleName\":\"PWM\",\"deviceType\":\"PIC\",\"booleanValues\":{\"true\":\"enabled\",\"false\":\"disabled\"},\"UIGroups\":{\"software\":\"Software Settings\",\"hardware\":\"Hardware Settings\",\"additional\":\"Additional Pin Settings\"},\"UIOrder\":{\"software\":[\"*\"],\"hardware\":[\"pwmenPwmcon\",\"pwmoePwmcon\",\"timerSelection\",\"dutyCycle\",\"pwmdcValue\",\"pwmpolPwmcon\",\"pwmPeriod\",\"pwmFrequency\",\"pwmResolution\",\"*\"],\"additional\":[\"pwmoe0Pwmaoe\",\"pwmoe1Pwmaoe\",\"pwmoe2Pwmaoe\",\"pwmoe3Pwmaoe\",\"*\"]},\"hasPins\":true,\"tabs\":{\"main\":\"Easy View\",\"register\":\"Register Initialization\"},\"help\":{\"url\":\"v2/keyword-lookup?keyword=scf-pic8-pwm-v2&redirect=true\",\"tooltip\":\"Click here to open documentation.\"},\"analytics\":{\"logAlwaysComps\":[\"pwmenPwmcon\",\"pwmFrequency\",\"pwmResolution\",\"pwmoePwmcon\"],\"logOnChangeComps\":[],\"compMapping\":{\"pwmenPwmcon\":\"PWM_Enable\",\"pwmFrequency\":\"PWM_Frequency\",\"pwmResolution\":\"PWM_Resolution\",\"pwmoePwmcon\":\"PWM_OutputEnable\"}},\"templates\":[{\"src\":\"output/pwm-v2.c.ftl\",\"dest\":\"pwm/src/${sourceFileName}\",\"generateWithHardware\":true},{\"src\":\"output/pwm-v2.h.ftl\",\"dest\":\"pwm/${headerFileName}\",\"generateWithHardware\":true}],\"imports\":{\"initializer_system\":{\"nodeModule\":{\"importName\":\"systemInit\",\"node\":\"@microchip/initializer-system\"},\"import\":{\"interfaceId\":{\"name\":\"initializer-system\",\"version\":\"^0
|
|
9573
|
+
module.exports = JSON.parse("{\"moduleName\":\"PWM\",\"deviceType\":\"PIC\",\"booleanValues\":{\"true\":\"enabled\",\"false\":\"disabled\"},\"UIGroups\":{\"software\":\"Software Settings\",\"hardware\":\"Hardware Settings\",\"additional\":\"Additional Pin Settings\"},\"UIOrder\":{\"software\":[\"*\"],\"hardware\":[\"pwmenPwmcon\",\"pwmoePwmcon\",\"timerSelection\",\"dutyCycle\",\"pwmdcValue\",\"pwmpolPwmcon\",\"pwmPeriod\",\"pwmFrequency\",\"pwmResolution\",\"*\"],\"additional\":[\"pwmoe0Pwmaoe\",\"pwmoe1Pwmaoe\",\"pwmoe2Pwmaoe\",\"pwmoe3Pwmaoe\",\"*\"]},\"hasPins\":true,\"tabs\":{\"main\":\"Easy View\",\"register\":\"Register Initialization\"},\"help\":{\"url\":\"v2/keyword-lookup?keyword=scf-pic8-pwm-v2&redirect=true\",\"tooltip\":\"Click here to open documentation.\"},\"analytics\":{\"logAlwaysComps\":[\"pwmenPwmcon\",\"pwmFrequency\",\"pwmResolution\",\"pwmoePwmcon\"],\"logOnChangeComps\":[],\"compMapping\":{\"pwmenPwmcon\":\"PWM_Enable\",\"pwmFrequency\":\"PWM_Frequency\",\"pwmResolution\":\"PWM_Resolution\",\"pwmoePwmcon\":\"PWM_OutputEnable\"}},\"templates\":[{\"src\":\"output/pwm-v2.c.ftl\",\"dest\":\"pwm/src/${sourceFileName}\",\"generateWithHardware\":true},{\"src\":\"output/pwm-v2.h.ftl\",\"dest\":\"pwm/${headerFileName}\",\"generateWithHardware\":true}],\"imports\":{\"initializer_system\":{\"nodeModule\":{\"importName\":\"systemInit\",\"node\":\"@microchip/initializer-system\"},\"import\":{\"interfaceId\":{\"name\":\"initializer-system\",\"version\":\"^0\"}}},\"scf_pic8_pwm_v2\":{\"import\":{\"interfaceId\":{\"name\":\"scf-pic8-pwm-v2\",\"version\":\"1.0.0\"},\"isRequired\":true}},\"osc_clocks\":{\"import\":{\"interfaceId\":{\"name\":\"osc-clocks\",\"version\":\"^0\"}}},\"Timer\":{\"import\":{\"interfaceId\":{\"name\":\"timer-2-4-6-general-parameters\",\"version\":\"^0\"}}},\"pin_standard\":{\"import\":{\"interfaceId\":{\"name\":\"pin-standard\",\"version\":\"^0\"}}},\"device_meta\":{\"import\":{\"interfaceId\":{\"name\":\"device-meta\",\"version\":\"^1.*\"}}}},\"exports\":{\"pwm_general\":{\"interfaces\":[{\"interfaceId\":{\"name\":\"pwm_general_parameters\",\"version\":\"0.1.0\"}}]}},\"softwareData\":{\"componentName\":{\"name\":\"componentName\",\"description\":\"Custom Name\",\"type\":\"string\",\"defaultValue\":\"PWM\",\"group\":\"software\",\"tabs\":[\"main\"],\"category\":\"software\",\"validation\":true},\"tmr2Dependency\":{\"name\":\"tmr2Dependency\",\"description\":\"Timer Dependency Selector\",\"category\":\"import\",\"type\":\"ComboBox\",\"group\":\"software\",\"tabs\":[\"main\"],\"importId\":\"Timer\"},\"timerSelection\":{\"name\":\"timerSelection\",\"description\":\"Select a Timer\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"defaultValue\":{\"value\":\"TMR2\",\"options\":[\"TMR2\",\"TMR4\",\"TMR6\"]},\"tabs\":[\"main\"],\"category\":\"software\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}},\"dutyCycle\":{\"name\":\"dutyCycle\",\"description\":\"Duty Cycle (%)\",\"type\":\"number\",\"defaultValue\":50,\"group\":\"hardware\",\"validation\":true,\"tabs\":[\"main\"],\"category\":\"software\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${instance}DC&redirect=true\"}},\"pwmdcValue\":{\"name\":\"pwmdcValue\",\"description\":\"PWMDC Value\",\"type\":\"number\",\"defaultValue\":0,\"group\":\"hardware\",\"uiBehavior\":{\"readonly\":true},\"tabs\":[\"main\"],\"category\":\"software\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${instance}DC&redirect=true\"}},\"pwmPeriod\":{\"name\":\"pwmPeriod\",\"description\":\"PWM Period (s)\",\"type\":\"number\",\"defaultValue\":0,\"group\":\"hardware\",\"uiBehavior\":{\"readonly\":true},\"tabs\":[\"main\"],\"category\":\"software\"},\"pwmFrequency\":{\"name\":\"pwmFrequency\",\"description\":\"PWM Frequency (Hz)\",\"type\":\"number\",\"defaultValue\":0,\"group\":\"hardware\",\"uiBehavior\":{\"readonly\":true},\"tabs\":[\"main\"],\"category\":\"software\"},\"pwmResolution\":{\"name\":\"pwmResolution\",\"description\":\"PWM Resolution (bits)\",\"type\":\"number\",\"defaultValue\":0,\"group\":\"hardware\",\"uiBehavior\":{\"readonly\":true},\"tabs\":[\"main\"],\"category\":\"software\"}},\"peripherals\":[{\"interfaceId\":{\"name\":\"scf-pic8-pwm-v2\",\"version\":\"1.0.0\"},\"registers\":{\"PWMTMRS\":[{\"setting\":\"CTSEL\",\"name\":\"ctselPwmtmrs\",\"category\":\"hardware\",\"description\":\"Insert Description Here\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"]}],\"CCPTMRS1\":[{\"setting\":\"CTSEL\",\"name\":\"ctselCcptmrs1\",\"description\":\"Insert Description Here\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"],\"category\":\"hardware\"}],\"CCPTMRS\":[{\"setting\":\"CTSEL\",\"name\":\"ctselCcptmrs\",\"category\":\"hardware\",\"description\":\"Insert Description Here\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"]}],\"PWMCON\":[{\"setting\":\"PWMPOL\",\"name\":\"pwmpolPwmcon\",\"description\":\"PWM Polarity\",\"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\":\"PWMOE\",\"name\":\"pwmoePwmcon\",\"category\":\"hardware\",\"description\":\"Output Enable\",\"type\":\"boolean\",\"group\":\"hardware\",\"tabs\":[\"main\"],\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}},{\"setting\":\"PWMOUT\",\"name\":\"pwmoutPwmcon\",\"description\":\"Insert Description Here\",\"type\":\"boolean\",\"group\":\"hardware\",\"tabs\":[\"register\"],\"category\":\"hardware\"},{\"setting\":\"PWMEN\",\"name\":\"pwmenPwmcon\",\"description\":\"PWM Enable\",\"type\":\"boolean\",\"group\":\"hardware\",\"overrideDefaultValue\":\"enabled\",\"tabs\":[\"main\"],\"category\":\"hardware\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}}],\"PWMAOE\":[{\"setting\":\"PWMOE0\",\"name\":\"pwmoe0Pwmaoe\",\"category\":\"hardware\",\"description\":\"Enable Additional Output 1\",\"type\":\"boolean\",\"group\":\"additional\",\"tabs\":[\"main\"]},{\"setting\":\"PWMOE1\",\"name\":\"pwmoe1Pwmaoe\",\"category\":\"hardware\",\"description\":\"Enable Additional Output 2\",\"type\":\"boolean\",\"group\":\"additional\",\"tabs\":[\"main\"]},{\"setting\":\"PWMOE2\",\"name\":\"pwmoe2Pwmaoe\",\"category\":\"hardware\",\"description\":\"Enable Additional Output 3\",\"type\":\"boolean\",\"group\":\"additional\",\"tabs\":[\"main\"]},{\"setting\":\"PWMOE3\",\"name\":\"pwmoe3Pwmaoe\",\"category\":\"hardware\",\"description\":\"Enable Additional Output 4\",\"type\":\"boolean\",\"group\":\"additional\",\"tabs\":[\"main\"]}],\"PWMDCH\":[{\"setting\":\"PWMDCH\",\"name\":\"pwmdchPwmdch\",\"description\":\"Insert Description Here\",\"type\":\"string\",\"group\":\"hardware\",\"tabs\":[\"register\"],\"category\":\"hardware\"}],\"PWMDCL\":[{\"setting\":\"PWMDCL\",\"name\":\"pwmdclPwmdcl\",\"description\":\"Insert Description Here\",\"type\":\"string\",\"group\":\"hardware\",\"tabs\":[\"register\"],\"category\":\"hardware\"}]}}]}");
|
|
9193
9574
|
|
|
9194
9575
|
/***/ }),
|
|
9195
9576
|
|