@mchp-mcc/scf-pic8-pwm-v2 4.2.12 → 4.2.13
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 +3 -15
- package/Readme.md +3 -15
- package/output/autoCreator.js +59 -4
- package/output/autoCreator.js.map +1 -1
- package/output/autoProcessor.js +59 -4
- package/output/autoProcessor.js.map +1 -1
- package/output/creator.js +59 -4
- package/output/creator.js.map +1 -1
- package/output/processor.js +59 -4
- package/output/processor.js.map +1 -1
- package/output/pwm-v2.c.ftl +7 -7
- package/output/pwm-v2.h.ftl +1 -1
- package/package.json +5 -5
package/output/processor.js
CHANGED
|
@@ -8319,6 +8319,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8319
8319
|
/* harmony import */ var _microchip_scf_validators_lib__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_microchip_scf_validators_lib__WEBPACK_IMPORTED_MODULE_6__);
|
|
8320
8320
|
/* harmony import */ var _microchip_pins_interface_lib_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @microchip/pins-interface/lib/types */ "./node_modules/@microchip/pins-interface/lib/types.js");
|
|
8321
8321
|
/* harmony import */ var _microchip_pins_interface_lib_types__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_microchip_pins_interface_lib_types__WEBPACK_IMPORTED_MODULE_7__);
|
|
8322
|
+
/* harmony import */ var _generated_module_src_Utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../generated_module/src/Utils */ "./generated_module/src/Utils.ts");
|
|
8322
8323
|
function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { 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 it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
8323
8324
|
|
|
8324
8325
|
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); }
|
|
@@ -8337,6 +8338,10 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
8337
8338
|
|
|
8338
8339
|
|
|
8339
8340
|
|
|
8341
|
+
|
|
8342
|
+
var INTERFACE_ID = _interfaces_pwm_general_parameters__WEBPACK_IMPORTED_MODULE_2__["Interface"].getInterfaceId();
|
|
8343
|
+
var INTERFACE_KEY = "pwm_general"; // Defined in moduleConfig.json file
|
|
8344
|
+
|
|
8340
8345
|
var getDerivedData = function getDerivedData(dataModel) {
|
|
8341
8346
|
if (dataModel) {
|
|
8342
8347
|
return new MyDerivedData(dataModel);
|
|
@@ -8394,6 +8399,8 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
|
8394
8399
|
initializer_system_results: _this.initializer_system_results,
|
|
8395
8400
|
dutyCycleValidator: _this.dutyCycleValidator,
|
|
8396
8401
|
componentName: _this.componentName,
|
|
8402
|
+
pwmenPwmcon: _this.getPWMEnable,
|
|
8403
|
+
getMyProcessedArgValue: _this.getMyProcessedArgValue,
|
|
8397
8404
|
pwmdcValue: function pwmdcValue() {
|
|
8398
8405
|
return _this.getPwmCalculator().getCCPRValue();
|
|
8399
8406
|
},
|
|
@@ -8424,10 +8431,55 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
|
8424
8431
|
importName: _this.friendlyImportName,
|
|
8425
8432
|
componentNameValidator: _this.componentNameValidator,
|
|
8426
8433
|
getCustomUiErrors: _this.getCustomUiErrors,
|
|
8427
|
-
pins_interface_args: _this.getPinsinterfaceArgs
|
|
8434
|
+
pins_interface_args: _this.getPinsinterfaceArgs,
|
|
8435
|
+
getmodifiedRegisterValues: _this.getmodifiedRegisterValues
|
|
8428
8436
|
};
|
|
8429
8437
|
});
|
|
8430
8438
|
|
|
8439
|
+
_defineProperty(this, "getmodifiedRegisterValues", function () {
|
|
8440
|
+
var _this$getModel;
|
|
8441
|
+
|
|
8442
|
+
var registerValues = (_this$getModel = _this.getModel()) === null || _this$getModel === void 0 ? void 0 : _this$getModel.getRegisterValues();
|
|
8443
|
+
var modifiedValues = {};
|
|
8444
|
+
|
|
8445
|
+
if (registerValues) {
|
|
8446
|
+
Object(_generated_module_src_Utils__WEBPACK_IMPORTED_MODULE_8__["values"])(registerValues).forEach(function (register) {
|
|
8447
|
+
if (register.por !== register.valueAsHex) {
|
|
8448
|
+
modifiedValues[register.name] = register.valueAsHex;
|
|
8449
|
+
}
|
|
8450
|
+
});
|
|
8451
|
+
return modifiedValues;
|
|
8452
|
+
}
|
|
8453
|
+
|
|
8454
|
+
return undefined;
|
|
8455
|
+
});
|
|
8456
|
+
|
|
8457
|
+
_defineProperty(this, "getMyProcessedArgValue", function () {
|
|
8458
|
+
var _this$dataModel, _this$dataModel$getEx;
|
|
8459
|
+
|
|
8460
|
+
var args;
|
|
8461
|
+
var exportData = (_this$dataModel = _this.dataModel) === null || _this$dataModel === void 0 ? void 0 : (_this$dataModel$getEx = _this$dataModel.getExportInterfaces()) === null || _this$dataModel$getEx === void 0 ? void 0 : _this$dataModel$getEx.getInterface(INTERFACE_KEY, INTERFACE_ID);
|
|
8462
|
+
|
|
8463
|
+
if (exportData && exportData.args) {
|
|
8464
|
+
var moduleId = Object.keys(exportData.args)[0];
|
|
8465
|
+
args = exportData.args[moduleId];
|
|
8466
|
+
}
|
|
8467
|
+
|
|
8468
|
+
return args;
|
|
8469
|
+
});
|
|
8470
|
+
|
|
8471
|
+
_defineProperty(this, "getPWMEnable", function () {
|
|
8472
|
+
var _this$getMyProcessedA;
|
|
8473
|
+
|
|
8474
|
+
var status = (_this$getMyProcessedA = _this.getMyProcessedArgValue()) === null || _this$getMyProcessedA === void 0 ? void 0 : _this$getMyProcessedA.moduleEnable;
|
|
8475
|
+
|
|
8476
|
+
if (status !== undefined) {
|
|
8477
|
+
return status ? "enabled" : "disabled";
|
|
8478
|
+
}
|
|
8479
|
+
|
|
8480
|
+
return status;
|
|
8481
|
+
});
|
|
8482
|
+
|
|
8431
8483
|
_defineProperty(this, "friendlyImportName", function (importKey) {
|
|
8432
8484
|
if (importKey === "scf_pic8_pwm_v2") return "PWM Hardware";
|
|
8433
8485
|
if (importKey === "osc_clocks") return "Oscillator Clock";
|
|
@@ -8642,7 +8694,8 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
|
8642
8694
|
isdriverisr: false,
|
|
8643
8695
|
ispwmi_enabled: false,
|
|
8644
8696
|
ispwmpi_enabled: false,
|
|
8645
|
-
moduleName: _this.dataModel.getName()
|
|
8697
|
+
moduleName: _this.dataModel.getName(),
|
|
8698
|
+
modifiedRegisterList: _this.getmodifiedRegisterValues()
|
|
8646
8699
|
};
|
|
8647
8700
|
});
|
|
8648
8701
|
|
|
@@ -9099,7 +9152,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9099
9152
|
/* harmony import */ var _microchip_scf_interface__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @microchip/scf-interface */ "./node_modules/@microchip/scf-interface/lib/index.js");
|
|
9100
9153
|
/* harmony import */ var _microchip_scf_interface__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_microchip_scf_interface__WEBPACK_IMPORTED_MODULE_0__);
|
|
9101
9154
|
|
|
9102
|
-
/** The arguments to be provided to the implementation. */
|
|
9103
9155
|
|
|
9104
9156
|
var getInterfaceId = function getInterfaceId() {
|
|
9105
9157
|
return {
|
|
@@ -9133,7 +9185,10 @@ var createMock = function createMock() {
|
|
|
9133
9185
|
},
|
|
9134
9186
|
args: {
|
|
9135
9187
|
requestId: {
|
|
9136
|
-
customName: "MyModule"
|
|
9188
|
+
customName: "MyModule",
|
|
9189
|
+
moduleEnable: true,
|
|
9190
|
+
clockSource: "",
|
|
9191
|
+
clbBle: {}
|
|
9137
9192
|
}
|
|
9138
9193
|
}
|
|
9139
9194
|
};
|