@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 CHANGED
@@ -1,19 +1,7 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
- ## [4.2.12] - 2024-02-14
4
+ ## [4.2.13] - 2026-01-10
5
5
 
6
- ### Bug Fixes
7
- - **CC8SCRIP-19533** :- MCC Melody generates nonworking code with two PWM modules enabled
8
-
9
-
10
- ## [4.2.11] - 2023-09-27
11
-
12
- ### New Features
13
- - **CC8SCRIP-18261** :- Supported Alternative Pin Functionality (APFCON) for PIC12/PIC16 devices
14
-
15
-
16
- ## [4.2.10] - 2023-07-13
17
-
18
- ### New Features
19
- - **CC8SCRIP-16805** :- Add support for PIC12/16(L)F150x device family
6
+ ### New Features and Improvements
7
+ - **M8PD-16994** :- Added support for CLB synthesizer library
package/Readme.md CHANGED
@@ -18,19 +18,7 @@ This driver generates the following files:
18
18
  # Changelog
19
19
  All notable changes to this project will be documented in this file.
20
20
 
21
- ## [4.2.12] - 2024-02-14
21
+ ## [4.2.13] - 2026-01-10
22
22
 
23
- ### Bug Fixes
24
- - **CC8SCRIP-19533** :- MCC Melody generates nonworking code with two PWM modules enabled
25
-
26
-
27
- ## [4.2.11] - 2023-09-27
28
-
29
- ### New Features
30
- - **CC8SCRIP-18261** :- Supported Alternative Pin Functionality (APFCON) for PIC12/PIC16 devices
31
-
32
-
33
- ## [4.2.10] - 2023-07-13
34
-
35
- ### New Features
36
- - **CC8SCRIP-16805** :- Add support for PIC12/16(L)F150x device family
23
+ ### New Features and Improvements
24
+ - **M8PD-16994** :- Added support for CLB synthesizer library
@@ -3013,6 +3013,7 @@ __webpack_require__.r(__webpack_exports__);
3013
3013
  /* harmony import */ var _microchip_scf_validators_lib__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_microchip_scf_validators_lib__WEBPACK_IMPORTED_MODULE_6__);
3014
3014
  /* 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");
3015
3015
  /* 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__);
3016
+ /* harmony import */ var _generated_module_src_Utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../generated_module/src/Utils */ "./generated_module/src/Utils.ts");
3016
3017
  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; } } }; }
3017
3018
 
3018
3019
  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); }
@@ -3031,6 +3032,10 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
3031
3032
 
3032
3033
 
3033
3034
 
3035
+
3036
+ var INTERFACE_ID = _interfaces_pwm_general_parameters__WEBPACK_IMPORTED_MODULE_2__["Interface"].getInterfaceId();
3037
+ var INTERFACE_KEY = "pwm_general"; // Defined in moduleConfig.json file
3038
+
3034
3039
  var getDerivedData = function getDerivedData(dataModel) {
3035
3040
  if (dataModel) {
3036
3041
  return new MyDerivedData(dataModel);
@@ -3088,6 +3093,8 @@ var MyDerivedData = function MyDerivedData(dataModel) {
3088
3093
  initializer_system_results: _this.initializer_system_results,
3089
3094
  dutyCycleValidator: _this.dutyCycleValidator,
3090
3095
  componentName: _this.componentName,
3096
+ pwmenPwmcon: _this.getPWMEnable,
3097
+ getMyProcessedArgValue: _this.getMyProcessedArgValue,
3091
3098
  pwmdcValue: function pwmdcValue() {
3092
3099
  return _this.getPwmCalculator().getCCPRValue();
3093
3100
  },
@@ -3118,10 +3125,55 @@ var MyDerivedData = function MyDerivedData(dataModel) {
3118
3125
  importName: _this.friendlyImportName,
3119
3126
  componentNameValidator: _this.componentNameValidator,
3120
3127
  getCustomUiErrors: _this.getCustomUiErrors,
3121
- pins_interface_args: _this.getPinsinterfaceArgs
3128
+ pins_interface_args: _this.getPinsinterfaceArgs,
3129
+ getmodifiedRegisterValues: _this.getmodifiedRegisterValues
3122
3130
  };
3123
3131
  });
3124
3132
 
3133
+ _defineProperty(this, "getmodifiedRegisterValues", function () {
3134
+ var _this$getModel;
3135
+
3136
+ var registerValues = (_this$getModel = _this.getModel()) === null || _this$getModel === void 0 ? void 0 : _this$getModel.getRegisterValues();
3137
+ var modifiedValues = {};
3138
+
3139
+ if (registerValues) {
3140
+ Object(_generated_module_src_Utils__WEBPACK_IMPORTED_MODULE_8__["values"])(registerValues).forEach(function (register) {
3141
+ if (register.por !== register.valueAsHex) {
3142
+ modifiedValues[register.name] = register.valueAsHex;
3143
+ }
3144
+ });
3145
+ return modifiedValues;
3146
+ }
3147
+
3148
+ return undefined;
3149
+ });
3150
+
3151
+ _defineProperty(this, "getMyProcessedArgValue", function () {
3152
+ var _this$dataModel, _this$dataModel$getEx;
3153
+
3154
+ var args;
3155
+ 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);
3156
+
3157
+ if (exportData && exportData.args) {
3158
+ var moduleId = Object.keys(exportData.args)[0];
3159
+ args = exportData.args[moduleId];
3160
+ }
3161
+
3162
+ return args;
3163
+ });
3164
+
3165
+ _defineProperty(this, "getPWMEnable", function () {
3166
+ var _this$getMyProcessedA;
3167
+
3168
+ var status = (_this$getMyProcessedA = _this.getMyProcessedArgValue()) === null || _this$getMyProcessedA === void 0 ? void 0 : _this$getMyProcessedA.moduleEnable;
3169
+
3170
+ if (status !== undefined) {
3171
+ return status ? "enabled" : "disabled";
3172
+ }
3173
+
3174
+ return status;
3175
+ });
3176
+
3125
3177
  _defineProperty(this, "friendlyImportName", function (importKey) {
3126
3178
  if (importKey === "scf_pic8_pwm_v2") return "PWM Hardware";
3127
3179
  if (importKey === "osc_clocks") return "Oscillator Clock";
@@ -3336,7 +3388,8 @@ var MyDerivedData = function MyDerivedData(dataModel) {
3336
3388
  isdriverisr: false,
3337
3389
  ispwmi_enabled: false,
3338
3390
  ispwmpi_enabled: false,
3339
- moduleName: _this.dataModel.getName()
3391
+ moduleName: _this.dataModel.getName(),
3392
+ modifiedRegisterList: _this.getmodifiedRegisterValues()
3340
3393
  };
3341
3394
  });
3342
3395
 
@@ -3793,7 +3846,6 @@ __webpack_require__.r(__webpack_exports__);
3793
3846
  /* harmony import */ var _microchip_scf_interface__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @microchip/scf-interface */ "./node_modules/@microchip/scf-interface/lib/index.js");
3794
3847
  /* harmony import */ var _microchip_scf_interface__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_microchip_scf_interface__WEBPACK_IMPORTED_MODULE_0__);
3795
3848
 
3796
- /** The arguments to be provided to the implementation. */
3797
3849
 
3798
3850
  var getInterfaceId = function getInterfaceId() {
3799
3851
  return {
@@ -3827,7 +3879,10 @@ var createMock = function createMock() {
3827
3879
  },
3828
3880
  args: {
3829
3881
  requestId: {
3830
- customName: "MyModule"
3882
+ customName: "MyModule",
3883
+ moduleEnable: true,
3884
+ clockSource: "",
3885
+ clbBle: {}
3831
3886
  }
3832
3887
  }
3833
3888
  };