@mchp-mcc/clock-16bit-driver 1.1.0 → 1.2.0
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 +20 -0
- package/Readme.md +20 -0
- package/output/autoCreator.js +148 -35
- package/output/autoCreator.js.map +1 -1
- package/output/autoProcessor.js +148 -35
- package/output/autoProcessor.js.map +1 -1
- package/output/creator.js +148 -35
- package/output/creator.js.map +1 -1
- package/output/index.html +1 -1
- package/output/main.js +1 -1
- package/output/nullPrototype.json +7 -1
- package/output/processor.js +148 -35
- package/output/processor.js.map +1 -1
- package/output/reducer.js +147 -34
- package/output/reducer.js.map +1 -1
- package/package.json +12 -6
- package/src/DerivedData.ts +171 -44
- package/src/catalog.json +2 -0
- package/src/moduleConfig.json +21 -2
- package/tests/itf/Utils.ts +52 -0
- package/tests/itf/clock.test.ts +1165 -0
package/output/reducer.js
CHANGED
@@ -33337,7 +33337,7 @@ module.exports = function(module) {
|
|
33337
33337
|
/*!****************************!*\
|
33338
33338
|
!*** ./src/DerivedData.ts ***!
|
33339
33339
|
\****************************/
|
33340
|
-
/*! exports provided: ARGUMENT_MAIN_CLK, COMPONENT_AUX_CLOCK_INPUT_FREQUENCY, COMPONENT_MAIN_CLOCK_INPUT_FREQUENCY, COMPONENT_REQUESTED_SYSTEM_FREQUENCY, COMPONENT_SET_MAX_FREQUENCY, COMPONENT_REQUESTED_AUX_CLOCK_OUTPUT_FREQUENCY, COMPONENT_REQUESTED_REF_CLOCK_OUTPUT_FREQUENCY, getMyDerivedData, getDerivedData, getSelectedCanfdFreq, isElementPresent */
|
33340
|
+
/*! exports provided: ARGUMENT_MAIN_CLK, COMPONENT_AUX_CLOCK_INPUT_FREQUENCY, COMPONENT_MAIN_CLOCK_INPUT_FREQUENCY, COMPONENT_CALCULATED_REF_OUTPUT_FREQUENCY, COMPONENT_REQUESTED_SYSTEM_FREQUENCY, COMPONENT_SET_MAX_FREQUENCY, COMPONENT_REQUESTED_AUX_CLOCK_OUTPUT_FREQUENCY, COMPONENT_REQUESTED_REF_CLOCK_OUTPUT_FREQUENCY, getMyDerivedData, getDerivedData, getSelectedCanfdFreq, isElementPresent */
|
33341
33341
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
33342
33342
|
|
33343
33343
|
"use strict";
|
@@ -33345,6 +33345,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
33345
33345
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ARGUMENT_MAIN_CLK", function() { return ARGUMENT_MAIN_CLK; });
|
33346
33346
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "COMPONENT_AUX_CLOCK_INPUT_FREQUENCY", function() { return COMPONENT_AUX_CLOCK_INPUT_FREQUENCY; });
|
33347
33347
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "COMPONENT_MAIN_CLOCK_INPUT_FREQUENCY", function() { return COMPONENT_MAIN_CLOCK_INPUT_FREQUENCY; });
|
33348
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "COMPONENT_CALCULATED_REF_OUTPUT_FREQUENCY", function() { return COMPONENT_CALCULATED_REF_OUTPUT_FREQUENCY; });
|
33348
33349
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "COMPONENT_REQUESTED_SYSTEM_FREQUENCY", function() { return COMPONENT_REQUESTED_SYSTEM_FREQUENCY; });
|
33349
33350
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "COMPONENT_SET_MAX_FREQUENCY", function() { return COMPONENT_SET_MAX_FREQUENCY; });
|
33350
33351
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "COMPONENT_REQUESTED_AUX_CLOCK_OUTPUT_FREQUENCY", function() { return COMPONENT_REQUESTED_AUX_CLOCK_OUTPUT_FREQUENCY; });
|
@@ -33381,9 +33382,12 @@ var CLOCK_16BIT_CONFIG_INTERFACE = "clock_16bit_config_interface";
|
|
33381
33382
|
var DIGITS_AFTER_DECIMAL_POINT = 2;
|
33382
33383
|
var COMPONENT_AUX_CLOCK_SOURCE = "auxClockSource";
|
33383
33384
|
var COMPONENT_MAIN_CLOCK_SOURCE = "mainClockSource";
|
33385
|
+
var COMPONENT_CAN_FD_CLOCK_SOURCE_FREQ = "canfdClkSrcFreq";
|
33384
33386
|
var COMPONENT_AUX_CLOCK_INPUT_FREQUENCY = "auxClockInputFrequency_Hz";
|
33385
33387
|
var COMPONENT_MAIN_CLOCK_INPUT_FREQUENCY = "mainClockInputFrequency_Hz";
|
33386
33388
|
var COMPONENT_REF_CLOCK_SOURCE = "refClockSource";
|
33389
|
+
var COMPONENT_REF_CLOCK_ENABLE = "refClockEnable";
|
33390
|
+
var COMPONENT_CALCULATED_REF_OUTPUT_FREQUENCY = "calculatedRefOutputFrequency_Hz";
|
33387
33391
|
var COMPONENT_CANFD_CLOCK_SOURCE = "canfdClockSource";
|
33388
33392
|
var COMPONENT_REQUESTED_SYSTEM_FREQUENCY = "requestedSystemFrequency_Hz";
|
33389
33393
|
var COMPONENT_FVCO_DIVIDER = "fvcoDivider";
|
@@ -33459,6 +33463,7 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
33459
33463
|
isVisible: _this.isComponentVisible,
|
33460
33464
|
requestedCanfdClockOutputFrequency_Hz: _this.getRequestedCanfdClockOutputFrequency_Hz,
|
33461
33465
|
getUiBehavior: _this.getUiBehavior,
|
33466
|
+
isEnabled: _this.isComponentEnabled,
|
33462
33467
|
mainClockInputFrequency_HzValidator: _this.mainClockInputFrequency_HzValidator,
|
33463
33468
|
auxClockInputFrequency_HzValidator: _this.auxClockInputFrequency_HzValidator,
|
33464
33469
|
requestedAuxClockOutputFrequency_HzValidator: _this.requestedAuxClockOutputFrequency_HzValidator,
|
@@ -33466,11 +33471,63 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
33466
33471
|
requestedRefClockOutputFrequency_HzValidator: _this.requestedRefClockOutputFrequency_HzValidator,
|
33467
33472
|
getCustomUiErrors: _this.getCustomUiErrors,
|
33468
33473
|
"clock-16bit-drv-interface_payloads": _this.getClockApplicationInterfacePayload,
|
33474
|
+
"clock-16bit-drv-interface_payload": _this.getDefaultClockApplicationInterfacePayload,
|
33469
33475
|
importName: _this.friendlyImportName,
|
33470
33476
|
exportName: _this.friendlyExportName
|
33471
33477
|
};
|
33472
33478
|
});
|
33473
33479
|
|
33480
|
+
_defineProperty(this, "getDeviceName", function () {
|
33481
|
+
var _this$dataModel, _this$dataModel$getIm, _this$dataModel$getIm2;
|
33482
|
+
|
33483
|
+
var deviceName = "";
|
33484
|
+
var deviceMetaData = (_this$dataModel = _this.dataModel) === null || _this$dataModel === void 0 ? void 0 : (_this$dataModel$getIm = _this$dataModel.getImports()) === null || _this$dataModel$getIm === void 0 ? void 0 : (_this$dataModel$getIm2 = _this$dataModel$getIm.device_meta) === null || _this$dataModel$getIm2 === void 0 ? void 0 : _this$dataModel$getIm2.payload;
|
33485
|
+
|
33486
|
+
if (deviceMetaData) {
|
33487
|
+
deviceName = deviceMetaData === null || deviceMetaData === void 0 ? void 0 : deviceMetaData.deviceName;
|
33488
|
+
}
|
33489
|
+
|
33490
|
+
return deviceName;
|
33491
|
+
});
|
33492
|
+
|
33493
|
+
_defineProperty(this, "isSecondaryDevice", function () {
|
33494
|
+
var deviceName = _this.getDeviceName(); // device name ends with "S" followed by a digit
|
33495
|
+
|
33496
|
+
|
33497
|
+
if (deviceName.match(/S\d$/)) {
|
33498
|
+
return true;
|
33499
|
+
}
|
33500
|
+
|
33501
|
+
return false;
|
33502
|
+
});
|
33503
|
+
|
33504
|
+
_defineProperty(this, "isComponentEnabled", function (componentName) {
|
33505
|
+
var isComponentEnabled = false;
|
33506
|
+
|
33507
|
+
if (componentName === COMPONENT_REF_CLOCK_SOURCE || componentName === COMPONENT_REQUESTED_REF_CLOCK_OUTPUT_FREQUENCY) {
|
33508
|
+
var _this$dataModel2;
|
33509
|
+
|
33510
|
+
if (((_this$dataModel2 = _this.dataModel) === null || _this$dataModel2 === void 0 ? void 0 : _this$dataModel2.getComponentValue(COMPONENT_REF_CLOCK_ENABLE)) === true) {
|
33511
|
+
isComponentEnabled = true;
|
33512
|
+
}
|
33513
|
+
} else if (componentName === COMPONENT_REF_CLOCK_ENABLE || componentName === COMPONENT_MAIN_CLOCK_SOURCE || componentName === COMPONENT_MAIN_CLOCK_INPUT_FREQUENCY || componentName === COMPONENT_SET_MAX_FREQUENCY || componentName === COMPONENT_FVCO_DIVIDER || componentName === COMPONENT_AUX_CLOCK_SOURCE || componentName === COMPONENT_CANFD_CLOCK_SOURCE || componentName === COMPONENT_AFVCO_DIVIDER || componentName === COMPONENT_AUX_CLOCK_INPUT_FREQUENCY || componentName === COMPONENT_REQUESTED_AUX_CLOCK_OUTPUT_FREQUENCY) {
|
33514
|
+
isComponentEnabled = true;
|
33515
|
+
} else if (componentName === COMPONENT_REQUESTED_SYSTEM_FREQUENCY) {
|
33516
|
+
var _this$dataModel3;
|
33517
|
+
|
33518
|
+
if (((_this$dataModel3 = _this.dataModel) === null || _this$dataModel3 === void 0 ? void 0 : _this$dataModel3.getComponentValue(COMPONENT_SET_MAX_FREQUENCY)) === false) {
|
33519
|
+
isComponentEnabled = true;
|
33520
|
+
}
|
33521
|
+
} // Checking whether Secondary Device of Dual Core is being used
|
33522
|
+
|
33523
|
+
|
33524
|
+
if (componentName === COMPONENT_MAIN_CLOCK_SOURCE && _this.isSecondaryDevice()) {
|
33525
|
+
isComponentEnabled = false;
|
33526
|
+
}
|
33527
|
+
|
33528
|
+
return isComponentEnabled;
|
33529
|
+
});
|
33530
|
+
|
33474
33531
|
_defineProperty(this, "getCustomUiErrors", function (componentName) {
|
33475
33532
|
var customErrors;
|
33476
33533
|
|
@@ -33556,6 +33613,18 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
33556
33613
|
return minClockFrequency;
|
33557
33614
|
});
|
33558
33615
|
|
33616
|
+
_defineProperty(this, "getClockPropertiesFromPayLoad", function () {
|
33617
|
+
var clockProperties;
|
33618
|
+
|
33619
|
+
var interfaceData = _this.dataModel.getImportValue(CLOCK_16BIT_CONFIG_INTERFACE);
|
33620
|
+
|
33621
|
+
if (interfaceData != undefined) {
|
33622
|
+
clockProperties = interfaceData === null || interfaceData === void 0 ? void 0 : interfaceData.clockProperties;
|
33623
|
+
}
|
33624
|
+
|
33625
|
+
return clockProperties;
|
33626
|
+
});
|
33627
|
+
|
33559
33628
|
_defineProperty(this, "getMaxClockFrequency", function () {
|
33560
33629
|
var maxClockFrequency = 0;
|
33561
33630
|
|
@@ -33571,16 +33640,26 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
33571
33640
|
});
|
33572
33641
|
|
33573
33642
|
_defineProperty(this, "getMaxSystemClockFrequency", function () {
|
33643
|
+
var _this$dataModel4, _this$dataModel5;
|
33644
|
+
|
33574
33645
|
var maxSystemClockFrequency = 0;
|
33575
33646
|
|
33576
33647
|
var interfaceData = _this.dataModel.getImportValue(CLOCK_16BIT_CONFIG_INTERFACE);
|
33577
33648
|
|
33578
|
-
if (interfaceData != undefined) {
|
33649
|
+
if (interfaceData != undefined && ((_this$dataModel4 = _this.dataModel) === null || _this$dataModel4 === void 0 ? void 0 : _this$dataModel4.getComponentValue("mainClockSource")) != "FRC Oscillator with Postscaler") {
|
33579
33650
|
var _interfaceData$mainCl5, _interfaceData$mainCl6;
|
33580
33651
|
|
33581
33652
|
maxSystemClockFrequency = (_interfaceData$mainCl5 = interfaceData === null || interfaceData === void 0 ? void 0 : (_interfaceData$mainCl6 = interfaceData.mainClockPayload) === null || _interfaceData$mainCl6 === void 0 ? void 0 : _interfaceData$mainCl6.maxSystemClockFrequency) !== null && _interfaceData$mainCl5 !== void 0 ? _interfaceData$mainCl5 : 0;
|
33582
33653
|
}
|
33583
33654
|
|
33655
|
+
if (((_this$dataModel5 = _this.dataModel) === null || _this$dataModel5 === void 0 ? void 0 : _this$dataModel5.getComponentValue("mainClockSource")) == "FRC Oscillator with Postscaler") {
|
33656
|
+
if (_this.getClockPropertiesFromPayLoad()["FRC_CLOCK"] != undefined) {
|
33657
|
+
var _this$getClockPropert;
|
33658
|
+
|
33659
|
+
maxSystemClockFrequency = Number((_this$getClockPropert = _this.getClockPropertiesFromPayLoad()["FRC_CLOCK"]) === null || _this$getClockPropert === void 0 ? void 0 : _this$getClockPropert.value);
|
33660
|
+
}
|
33661
|
+
}
|
33662
|
+
|
33584
33663
|
return maxSystemClockFrequency;
|
33585
33664
|
});
|
33586
33665
|
|
@@ -33592,7 +33671,7 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
33592
33671
|
uiBehavior = _defineProperty({}, "ui:help", "Requested FCAN frequency can be configured from CAN 2.0/CAN-FD modules in Drivers category");
|
33593
33672
|
break;
|
33594
33673
|
|
33595
|
-
case
|
33674
|
+
case COMPONENT_CAN_FD_CLOCK_SOURCE_FREQ:
|
33596
33675
|
uiBehavior = _defineProperty({}, "ui:help", "CAN FD clock source frequency should be less than or equal to 640 MHz");
|
33597
33676
|
break;
|
33598
33677
|
|
@@ -33650,13 +33729,11 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
33650
33729
|
_defineProperty(this, "isMainClockInputFrequencyVisible", function () {
|
33651
33730
|
var visible = false;
|
33652
33731
|
|
33653
|
-
|
33654
|
-
var mainClockSource = _this.dataModel.getComponentValue(COMPONENT_MAIN_CLOCK_SOURCE);
|
33732
|
+
var mainClockSource = _this.dataModel.getComponentValue(COMPONENT_MAIN_CLOCK_SOURCE);
|
33655
33733
|
|
33656
|
-
|
33657
|
-
|
33658
|
-
|
33659
|
-
}
|
33734
|
+
if (mainClockSource != undefined) {
|
33735
|
+
if ((mainClockSource === null || mainClockSource === void 0 ? void 0 : mainClockSource.indexOf(PRIMARY)) >= 0 || (mainClockSource === null || mainClockSource === void 0 ? void 0 : mainClockSource.indexOf(EXTERNAL)) >= 0) {
|
33736
|
+
visible = true;
|
33660
33737
|
}
|
33661
33738
|
}
|
33662
33739
|
|
@@ -33664,9 +33741,11 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
33664
33741
|
});
|
33665
33742
|
|
33666
33743
|
_defineProperty(this, "isRequestedSystemFrequencyVisible", function () {
|
33744
|
+
var _this$dataModel6;
|
33745
|
+
|
33667
33746
|
var visible = false;
|
33668
33747
|
|
33669
|
-
if (
|
33748
|
+
if (((_this$dataModel6 = _this.dataModel) === null || _this$dataModel6 === void 0 ? void 0 : _this$dataModel6.getComponentValue(COMPONENT_SET_MAX_FREQUENCY)) === false) {
|
33670
33749
|
var mainClockSource = _this.dataModel.getComponentValue(COMPONENT_MAIN_CLOCK_SOURCE);
|
33671
33750
|
|
33672
33751
|
if (mainClockSource != undefined) {
|
@@ -33734,14 +33813,10 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
33734
33813
|
}
|
33735
33814
|
|
33736
33815
|
return _visible;
|
33737
|
-
} else if (componentName === COMPONENT_REF_CLOCK_SOURCE || componentName === COMPONENT_REQUESTED_REF_CLOCK_OUTPUT_FREQUENCY || componentName ===
|
33816
|
+
} else if (componentName === COMPONENT_REF_CLOCK_SOURCE || componentName === COMPONENT_REQUESTED_REF_CLOCK_OUTPUT_FREQUENCY || componentName === COMPONENT_CALCULATED_REF_OUTPUT_FREQUENCY || componentName === COMPONENT_REF_CLOCK_ENABLE) {
|
33738
33817
|
return _this.isRefClockSupported();
|
33739
|
-
} else if (componentName === COMPONENT_CANFD_CLOCK_SOURCE || componentName === COMPONENT_REQUESTED_CANFD_CLOCK_OUTPUT_FREQUENCY || componentName === "calculatedCanfdOutputFrequency_Hz" || componentName ===
|
33818
|
+
} else if (componentName === COMPONENT_CANFD_CLOCK_SOURCE || componentName === COMPONENT_REQUESTED_CANFD_CLOCK_OUTPUT_FREQUENCY || componentName === "calculatedCanfdOutputFrequency_Hz" || componentName === COMPONENT_CAN_FD_CLOCK_SOURCE_FREQ) {
|
33740
33819
|
return _this.isCanfdClockSupported();
|
33741
|
-
} else if (componentName === COMPONENT_MAIN_CLOCK_SOURCE) {
|
33742
|
-
if (_this.dataModel.getComponentValue(COMPONENT_SET_MAX_FREQUENCY)) {
|
33743
|
-
return false;
|
33744
|
-
}
|
33745
33820
|
}
|
33746
33821
|
|
33747
33822
|
return true;
|
@@ -33756,14 +33831,16 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
33756
33831
|
});
|
33757
33832
|
|
33758
33833
|
_defineProperty(this, "getMyAlerts", function () {
|
33834
|
+
var _this$dataModel8;
|
33835
|
+
|
33759
33836
|
var alerts = [];
|
33760
33837
|
|
33761
33838
|
if (_this.isCanfdClockSupported() && _this.getCanfdClockRequestList()) {
|
33762
|
-
var _this$
|
33839
|
+
var _this$dataModel7;
|
33763
33840
|
|
33764
33841
|
var canfdClockSource = _this.dataModel.getComponentValue(COMPONENT_CANFD_CLOCK_SOURCE);
|
33765
33842
|
|
33766
|
-
var calculatedCanFdClockSrcFreq = (_this$
|
33843
|
+
var calculatedCanFdClockSrcFreq = (_this$dataModel7 = _this.dataModel) === null || _this$dataModel7 === void 0 ? void 0 : _this$dataModel7.getComponentValue("calculatedCanfdOutputFrequency_Hz");
|
33767
33844
|
|
33768
33845
|
if (calculatedCanFdClockSrcFreq && calculatedCanFdClockSrcFreq != "0.00 kHz") {
|
33769
33846
|
var canClkFreqVal = _this.getCalculatedCanfdOutputFrequency_Hz();
|
@@ -33799,6 +33876,19 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
33799
33876
|
}
|
33800
33877
|
}
|
33801
33878
|
|
33879
|
+
if ((_this$dataModel8 = _this.dataModel) === null || _this$dataModel8 === void 0 ? void 0 : _this$dataModel8.getComponentValue(COMPONENT_SET_MAX_FREQUENCY)) {
|
33880
|
+
var _this$dataModel9;
|
33881
|
+
|
33882
|
+
var mainClockSource = (_this$dataModel9 = _this.dataModel) === null || _this$dataModel9 === void 0 ? void 0 : _this$dataModel9.getComponentValue(COMPONENT_MAIN_CLOCK_SOURCE);
|
33883
|
+
|
33884
|
+
if (mainClockSource != undefined && (mainClockSource === null || mainClockSource === void 0 ? void 0 : mainClockSource.indexOf(PLL)) < 0) {
|
33885
|
+
alerts.push({
|
33886
|
+
type: _microchip_scf_common_lib_Processor__WEBPACK_IMPORTED_MODULE_0__["AlertTypes"].Warning,
|
33887
|
+
text: "Please select PLL as clock source."
|
33888
|
+
});
|
33889
|
+
}
|
33890
|
+
}
|
33891
|
+
|
33802
33892
|
return alerts;
|
33803
33893
|
});
|
33804
33894
|
|
@@ -34373,25 +34463,29 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
34373
34463
|
});
|
34374
34464
|
|
34375
34465
|
_defineProperty(this, "auxClockArg", function () {
|
34376
|
-
|
34377
|
-
|
34378
|
-
|
34379
|
-
|
34380
|
-
|
34381
|
-
|
34466
|
+
if (_this.dataModel.getComponentValue(COMPONENT_AUX_CLOCK_SOURCE) != "FRC Oscillator") {
|
34467
|
+
return {
|
34468
|
+
auxClockSource: _this.dataModel.getComponentValue(COMPONENT_AUX_CLOCK_SOURCE),
|
34469
|
+
auxClockInputFrequency_Hz: _this.dataModel.getComponentValue(COMPONENT_AUX_CLOCK_INPUT_FREQUENCY),
|
34470
|
+
requestedAuxClockOutputFrequency_Hz: _this.dataModel.getComponentValue(COMPONENT_REQUESTED_AUX_CLOCK_OUTPUT_FREQUENCY),
|
34471
|
+
afvcoDivider: Number(_this.dataModel.getComponentValue(COMPONENT_AFVCO_DIVIDER))
|
34472
|
+
};
|
34473
|
+
}
|
34382
34474
|
});
|
34383
34475
|
|
34384
34476
|
_defineProperty(this, "refClockArg", function () {
|
34385
|
-
|
34386
|
-
|
34387
|
-
|
34388
|
-
|
34477
|
+
if (_this.dataModel.getComponentValue(COMPONENT_REF_CLOCK_ENABLE) === true) {
|
34478
|
+
return {
|
34479
|
+
refClockSource: _this.dataModel.getComponentValue(COMPONENT_REF_CLOCK_SOURCE),
|
34480
|
+
requestedRefClockOutputFrequency_Hz: _this.dataModel.getComponentValue(COMPONENT_REQUESTED_REF_CLOCK_OUTPUT_FREQUENCY)
|
34481
|
+
};
|
34482
|
+
}
|
34389
34483
|
});
|
34390
34484
|
|
34391
34485
|
_defineProperty(this, "canfdClockArg", function () {
|
34392
|
-
var _this$dataModel$getSt, _this$
|
34486
|
+
var _this$dataModel$getSt, _this$dataModel10, _this$dataModel10$get, _this$dataModel10$get2, _this$dataModel10$get3;
|
34393
34487
|
|
34394
|
-
var canClock = (_this$dataModel$getSt = (_this$
|
34488
|
+
var canClock = (_this$dataModel$getSt = (_this$dataModel10 = _this.dataModel) === null || _this$dataModel10 === void 0 ? void 0 : (_this$dataModel10$get = _this$dataModel10.getState()) === null || _this$dataModel10$get === void 0 ? void 0 : (_this$dataModel10$get2 = _this$dataModel10$get.main) === null || _this$dataModel10$get2 === void 0 ? void 0 : (_this$dataModel10$get3 = _this$dataModel10$get2.canfdClock) === null || _this$dataModel10$get3 === void 0 ? void 0 : _this$dataModel10$get3.canfdClockSource) !== null && _this$dataModel$getSt !== void 0 ? _this$dataModel$getSt : "FVCO/4";
|
34395
34489
|
return {
|
34396
34490
|
canfdClockSource: canClock,
|
34397
34491
|
requestedCanfdClockOutputFrequency_Hz: _this.getRequestedCanfdClockFreq()
|
@@ -34403,10 +34497,10 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
34403
34497
|
});
|
34404
34498
|
|
34405
34499
|
_defineProperty(this, "getCanfdClockSrcFreq", function () {
|
34406
|
-
var _this$
|
34500
|
+
var _this$dataModel11, _this$dataModel11$get, _this$dataModel$getCo, _this$dataModel12;
|
34407
34501
|
|
34408
|
-
var interfaceData = (_this$
|
34409
|
-
var canClkSrc = (_this$dataModel$getCo = (_this$
|
34502
|
+
var interfaceData = (_this$dataModel11 = _this.dataModel) === null || _this$dataModel11 === void 0 ? void 0 : (_this$dataModel11$get = _this$dataModel11.getImportValue("clock_16bit_config_interface")) === null || _this$dataModel11$get === void 0 ? void 0 : _this$dataModel11$get.componentFrequenciesPayload;
|
34503
|
+
var canClkSrc = (_this$dataModel$getCo = (_this$dataModel12 = _this.dataModel) === null || _this$dataModel12 === void 0 ? void 0 : _this$dataModel12.getComponentValue("canfdClockSource")) !== null && _this$dataModel$getCo !== void 0 ? _this$dataModel$getCo : "FVCO/4";
|
34410
34504
|
var canClkFreq = Object(_Util__WEBPACK_IMPORTED_MODULE_3__["getCanfdClockFrequency"])(canClkSrc, interfaceData);
|
34411
34505
|
return Object(_Util__WEBPACK_IMPORTED_MODULE_3__["getCanClkDivFreq"])(canClkSrc, canClkFreq);
|
34412
34506
|
});
|
@@ -34580,6 +34674,25 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
34580
34674
|
return clockApplicationInterfacePayloads;
|
34581
34675
|
});
|
34582
34676
|
|
34677
|
+
_defineProperty(this, "getDefaultClockApplicationInterfacePayload", function () {
|
34678
|
+
var interfaceData = _this.dataModel.getImportValue(CLOCK_16BIT_CONFIG_INTERFACE);
|
34679
|
+
|
34680
|
+
if (interfaceData != undefined) {
|
34681
|
+
return {
|
34682
|
+
mainClockPayload: interfaceData.mainClockPayload,
|
34683
|
+
hasUSB: interfaceData.hasUSB,
|
34684
|
+
hasAuxClock: interfaceData.hasAuxClock,
|
34685
|
+
hasRefClock: interfaceData.hasRefClock,
|
34686
|
+
hasCanfdClock: interfaceData.hasCanfdClock,
|
34687
|
+
hasSecondaryOscillator: interfaceData.hasSecondaryOscillator,
|
34688
|
+
isSecondaryOscillatorEnabled: interfaceData.isSecondaryOscillatorEnabled,
|
34689
|
+
auxClockPayload: interfaceData.auxClockPayload,
|
34690
|
+
refClockPayload: interfaceData.refClockPayload,
|
34691
|
+
canfdClockPayload: interfaceData.canfdClockPayload
|
34692
|
+
};
|
34693
|
+
}
|
34694
|
+
});
|
34695
|
+
|
34583
34696
|
_defineProperty(this, "friendlyExportName", function (exportKey) {
|
34584
34697
|
var exportName;
|
34585
34698
|
|
@@ -34864,7 +34977,7 @@ var updateValue = function updateValue(key, existingValue, componentName, newVal
|
|
34864
34977
|
|
34865
34978
|
__webpack_require__(/*! core-js/es/set/index */"./node_modules/core-js/es/set/index.js");
|
34866
34979
|
__webpack_require__(/*! core-js/es/map/index */"./node_modules/core-js/es/map/index.js");
|
34867
|
-
module.exports = __webpack_require__(/*! /home/jenkins/agent/workspace/
|
34980
|
+
module.exports = __webpack_require__(/*! /home/jenkins/agent/workspace/Content_clock-16bit-driver_1.2.0/src/reducer.tsx */"./src/reducer.tsx");
|
34868
34981
|
|
34869
34982
|
|
34870
34983
|
/***/ })
|