@mchp-mcc/clock-16bit-driver 1.1.1 → 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 +10 -0
- package/Readme.md +10 -0
- package/output/autoCreator.js +71 -22
- package/output/autoCreator.js.map +1 -1
- package/output/autoProcessor.js +71 -22
- package/output/autoProcessor.js.map +1 -1
- package/output/creator.js +71 -22
- package/output/creator.js.map +1 -1
- package/output/index.html +1 -1
- package/output/main.js +1 -1
- package/output/nullPrototype.json +6 -0
- package/output/processor.js +71 -22
- package/output/processor.js.map +1 -1
- package/output/reducer.js +70 -21
- package/output/reducer.js.map +1 -1
- package/package.json +12 -6
- package/src/DerivedData.ts +55 -7
- package/src/moduleConfig.json +8 -0
- package/tests/itf/Utils.ts +52 -0
- package/tests/itf/clock.test.ts +1165 -0
package/output/creator.js
CHANGED
@@ -11752,28 +11752,58 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
11752
11752
|
requestedRefClockOutputFrequency_HzValidator: _this.requestedRefClockOutputFrequency_HzValidator,
|
11753
11753
|
getCustomUiErrors: _this.getCustomUiErrors,
|
11754
11754
|
"clock-16bit-drv-interface_payloads": _this.getClockApplicationInterfacePayload,
|
11755
|
+
"clock-16bit-drv-interface_payload": _this.getDefaultClockApplicationInterfacePayload,
|
11755
11756
|
importName: _this.friendlyImportName,
|
11756
11757
|
exportName: _this.friendlyExportName
|
11757
11758
|
};
|
11758
11759
|
});
|
11759
11760
|
|
11761
|
+
_defineProperty(this, "getDeviceName", function () {
|
11762
|
+
var _this$dataModel, _this$dataModel$getIm, _this$dataModel$getIm2;
|
11763
|
+
|
11764
|
+
var deviceName = "";
|
11765
|
+
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;
|
11766
|
+
|
11767
|
+
if (deviceMetaData) {
|
11768
|
+
deviceName = deviceMetaData === null || deviceMetaData === void 0 ? void 0 : deviceMetaData.deviceName;
|
11769
|
+
}
|
11770
|
+
|
11771
|
+
return deviceName;
|
11772
|
+
});
|
11773
|
+
|
11774
|
+
_defineProperty(this, "isSecondaryDevice", function () {
|
11775
|
+
var deviceName = _this.getDeviceName(); // device name ends with "S" followed by a digit
|
11776
|
+
|
11777
|
+
|
11778
|
+
if (deviceName.match(/S\d$/)) {
|
11779
|
+
return true;
|
11780
|
+
}
|
11781
|
+
|
11782
|
+
return false;
|
11783
|
+
});
|
11784
|
+
|
11760
11785
|
_defineProperty(this, "isComponentEnabled", function (componentName) {
|
11761
11786
|
var isComponentEnabled = false;
|
11762
11787
|
|
11763
11788
|
if (componentName === COMPONENT_REF_CLOCK_SOURCE || componentName === COMPONENT_REQUESTED_REF_CLOCK_OUTPUT_FREQUENCY) {
|
11764
|
-
var _this$
|
11789
|
+
var _this$dataModel2;
|
11765
11790
|
|
11766
|
-
if (((_this$
|
11791
|
+
if (((_this$dataModel2 = _this.dataModel) === null || _this$dataModel2 === void 0 ? void 0 : _this$dataModel2.getComponentValue(COMPONENT_REF_CLOCK_ENABLE)) === true) {
|
11767
11792
|
isComponentEnabled = true;
|
11768
11793
|
}
|
11769
11794
|
} 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) {
|
11770
11795
|
isComponentEnabled = true;
|
11771
11796
|
} else if (componentName === COMPONENT_REQUESTED_SYSTEM_FREQUENCY) {
|
11772
|
-
var _this$
|
11797
|
+
var _this$dataModel3;
|
11773
11798
|
|
11774
|
-
if (((_this$
|
11799
|
+
if (((_this$dataModel3 = _this.dataModel) === null || _this$dataModel3 === void 0 ? void 0 : _this$dataModel3.getComponentValue(COMPONENT_SET_MAX_FREQUENCY)) === false) {
|
11775
11800
|
isComponentEnabled = true;
|
11776
11801
|
}
|
11802
|
+
} // Checking whether Secondary Device of Dual Core is being used
|
11803
|
+
|
11804
|
+
|
11805
|
+
if (componentName === COMPONENT_MAIN_CLOCK_SOURCE && _this.isSecondaryDevice()) {
|
11806
|
+
isComponentEnabled = false;
|
11777
11807
|
}
|
11778
11808
|
|
11779
11809
|
return isComponentEnabled;
|
@@ -11891,19 +11921,19 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
11891
11921
|
});
|
11892
11922
|
|
11893
11923
|
_defineProperty(this, "getMaxSystemClockFrequency", function () {
|
11894
|
-
var _this$
|
11924
|
+
var _this$dataModel4, _this$dataModel5;
|
11895
11925
|
|
11896
11926
|
var maxSystemClockFrequency = 0;
|
11897
11927
|
|
11898
11928
|
var interfaceData = _this.dataModel.getImportValue(CLOCK_16BIT_CONFIG_INTERFACE);
|
11899
11929
|
|
11900
|
-
if (interfaceData != undefined && ((_this$
|
11930
|
+
if (interfaceData != undefined && ((_this$dataModel4 = _this.dataModel) === null || _this$dataModel4 === void 0 ? void 0 : _this$dataModel4.getComponentValue("mainClockSource")) != "FRC Oscillator with Postscaler") {
|
11901
11931
|
var _interfaceData$mainCl5, _interfaceData$mainCl6;
|
11902
11932
|
|
11903
11933
|
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;
|
11904
11934
|
}
|
11905
11935
|
|
11906
|
-
if (((_this$
|
11936
|
+
if (((_this$dataModel5 = _this.dataModel) === null || _this$dataModel5 === void 0 ? void 0 : _this$dataModel5.getComponentValue("mainClockSource")) == "FRC Oscillator with Postscaler") {
|
11907
11937
|
if (_this.getClockPropertiesFromPayLoad()["FRC_CLOCK"] != undefined) {
|
11908
11938
|
var _this$getClockPropert;
|
11909
11939
|
|
@@ -11992,11 +12022,11 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
11992
12022
|
});
|
11993
12023
|
|
11994
12024
|
_defineProperty(this, "isRequestedSystemFrequencyVisible", function () {
|
11995
|
-
var _this$
|
12025
|
+
var _this$dataModel6;
|
11996
12026
|
|
11997
12027
|
var visible = false;
|
11998
12028
|
|
11999
|
-
if (((_this$
|
12029
|
+
if (((_this$dataModel6 = _this.dataModel) === null || _this$dataModel6 === void 0 ? void 0 : _this$dataModel6.getComponentValue(COMPONENT_SET_MAX_FREQUENCY)) === false) {
|
12000
12030
|
var mainClockSource = _this.dataModel.getComponentValue(COMPONENT_MAIN_CLOCK_SOURCE);
|
12001
12031
|
|
12002
12032
|
if (mainClockSource != undefined) {
|
@@ -12082,16 +12112,16 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
12082
12112
|
});
|
12083
12113
|
|
12084
12114
|
_defineProperty(this, "getMyAlerts", function () {
|
12085
|
-
var _this$
|
12115
|
+
var _this$dataModel8;
|
12086
12116
|
|
12087
12117
|
var alerts = [];
|
12088
12118
|
|
12089
12119
|
if (_this.isCanfdClockSupported() && _this.getCanfdClockRequestList()) {
|
12090
|
-
var _this$
|
12120
|
+
var _this$dataModel7;
|
12091
12121
|
|
12092
12122
|
var canfdClockSource = _this.dataModel.getComponentValue(COMPONENT_CANFD_CLOCK_SOURCE);
|
12093
12123
|
|
12094
|
-
var calculatedCanFdClockSrcFreq = (_this$
|
12124
|
+
var calculatedCanFdClockSrcFreq = (_this$dataModel7 = _this.dataModel) === null || _this$dataModel7 === void 0 ? void 0 : _this$dataModel7.getComponentValue("calculatedCanfdOutputFrequency_Hz");
|
12095
12125
|
|
12096
12126
|
if (calculatedCanFdClockSrcFreq && calculatedCanFdClockSrcFreq != "0.00 kHz") {
|
12097
12127
|
var canClkFreqVal = _this.getCalculatedCanfdOutputFrequency_Hz();
|
@@ -12127,10 +12157,10 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
12127
12157
|
}
|
12128
12158
|
}
|
12129
12159
|
|
12130
|
-
if ((_this$
|
12131
|
-
var _this$
|
12160
|
+
if ((_this$dataModel8 = _this.dataModel) === null || _this$dataModel8 === void 0 ? void 0 : _this$dataModel8.getComponentValue(COMPONENT_SET_MAX_FREQUENCY)) {
|
12161
|
+
var _this$dataModel9;
|
12132
12162
|
|
12133
|
-
var mainClockSource = (_this$
|
12163
|
+
var mainClockSource = (_this$dataModel9 = _this.dataModel) === null || _this$dataModel9 === void 0 ? void 0 : _this$dataModel9.getComponentValue(COMPONENT_MAIN_CLOCK_SOURCE);
|
12134
12164
|
|
12135
12165
|
if (mainClockSource != undefined && (mainClockSource === null || mainClockSource === void 0 ? void 0 : mainClockSource.indexOf(PLL)) < 0) {
|
12136
12166
|
alerts.push({
|
@@ -12734,9 +12764,9 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
12734
12764
|
});
|
12735
12765
|
|
12736
12766
|
_defineProperty(this, "canfdClockArg", function () {
|
12737
|
-
var _this$dataModel$getSt, _this$
|
12767
|
+
var _this$dataModel$getSt, _this$dataModel10, _this$dataModel10$get, _this$dataModel10$get2, _this$dataModel10$get3;
|
12738
12768
|
|
12739
|
-
var canClock = (_this$dataModel$getSt = (_this$
|
12769
|
+
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";
|
12740
12770
|
return {
|
12741
12771
|
canfdClockSource: canClock,
|
12742
12772
|
requestedCanfdClockOutputFrequency_Hz: _this.getRequestedCanfdClockFreq()
|
@@ -12748,10 +12778,10 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
12748
12778
|
});
|
12749
12779
|
|
12750
12780
|
_defineProperty(this, "getCanfdClockSrcFreq", function () {
|
12751
|
-
var _this$
|
12781
|
+
var _this$dataModel11, _this$dataModel11$get, _this$dataModel$getCo, _this$dataModel12;
|
12752
12782
|
|
12753
|
-
var interfaceData = (_this$
|
12754
|
-
var canClkSrc = (_this$dataModel$getCo = (_this$
|
12783
|
+
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;
|
12784
|
+
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";
|
12755
12785
|
var canClkFreq = Object(_Util__WEBPACK_IMPORTED_MODULE_3__["getCanfdClockFrequency"])(canClkSrc, interfaceData);
|
12756
12786
|
return Object(_Util__WEBPACK_IMPORTED_MODULE_3__["getCanClkDivFreq"])(canClkSrc, canClkFreq);
|
12757
12787
|
});
|
@@ -12925,6 +12955,25 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
12925
12955
|
return clockApplicationInterfacePayloads;
|
12926
12956
|
});
|
12927
12957
|
|
12958
|
+
_defineProperty(this, "getDefaultClockApplicationInterfacePayload", function () {
|
12959
|
+
var interfaceData = _this.dataModel.getImportValue(CLOCK_16BIT_CONFIG_INTERFACE);
|
12960
|
+
|
12961
|
+
if (interfaceData != undefined) {
|
12962
|
+
return {
|
12963
|
+
mainClockPayload: interfaceData.mainClockPayload,
|
12964
|
+
hasUSB: interfaceData.hasUSB,
|
12965
|
+
hasAuxClock: interfaceData.hasAuxClock,
|
12966
|
+
hasRefClock: interfaceData.hasRefClock,
|
12967
|
+
hasCanfdClock: interfaceData.hasCanfdClock,
|
12968
|
+
hasSecondaryOscillator: interfaceData.hasSecondaryOscillator,
|
12969
|
+
isSecondaryOscillatorEnabled: interfaceData.isSecondaryOscillatorEnabled,
|
12970
|
+
auxClockPayload: interfaceData.auxClockPayload,
|
12971
|
+
refClockPayload: interfaceData.refClockPayload,
|
12972
|
+
canfdClockPayload: interfaceData.canfdClockPayload
|
12973
|
+
};
|
12974
|
+
}
|
12975
|
+
});
|
12976
|
+
|
12928
12977
|
_defineProperty(this, "friendlyExportName", function (exportKey) {
|
12929
12978
|
var exportName;
|
12930
12979
|
|
@@ -13086,7 +13135,7 @@ var getCanClkDivFreq = function getCanClkDivFreq(canfdClockSource, clkSrcfreq) {
|
|
13086
13135
|
/*! exports provided: moduleName, deviceType, booleanValues, help, UIGroups, UIOrder, tabs, imports, exports, softwareData, default */
|
13087
13136
|
/***/ (function(module) {
|
13088
13137
|
|
13089
|
-
module.exports = JSON.parse("{\"moduleName\":\"Clock\",\"deviceType\":\"PIC\",\"booleanValues\":{\"true\":\"enabled\",\"false\":\"disabled\"},\"help\":{\"url\":\"v2/keyword-lookup?keyword=CLOCK_16BIT_MELODY_DRIVER&version=latest&redirect=true\",\"tooltip\":\"Click here to open documentation\"},\"UIGroups\":{\"systemClock\":\"System Clock\",\"auxClock\":\"Auxiliary Clock\",\"refClock\":\"Reference Clock\",\"canfdClock\":\"CAN FD Clock\"},\"UIOrder\":{\"systemClock\":[\"*\"],\"auxClock\":[\"*\"],\"refClock\":[\"*\"],\"canfdClock\":[\"*\"]},\"tabs\":{\"main\":\"Easy View\"},\"imports\":{\"clock_16bit_config_interface\":{\"nodeModule\":{\"importName\":\"clock_16bit_config_interface\",\"node\":\"@microchip/clock-16bit-config-interface\"},\"import\":{\"interfaceId\":{\"name\":\"clock-16bit-config-interface\",\"version\":\"^1.1.5\"},\"isRequired\":true}}},\"exports\":{\"canfd_clock\":{\"interfaces\":[{\"interfaceId\":{\"name\":\"canfd-clock-interface\",\"version\":\"1.0.0\"}}]},\"clock_16bit_drv_interface\":{\"interfaces\":[{\"interfaceId\":{\"name\":\"clock-16bit-drv-interface\",\"version\":\"1.0.0\"}}]}},\"softwareData\":{\"mainClockSource\":{\"name\":\"mainClockSource\",\"description\":\"System Clock Source\",\"type\":\"ComboBox\",\"defaultValue\":{\"value\":\"FRC Oscillator\",\"options\":[\"FRC Oscillator\",\"FRC Oscillator with Postscaler\",\"FRC Oscillator with PLL\",\"Primary Oscillator\",\"Primary Oscillator with PLL\",\"External Oscillator\",\"External Oscillator with PLL\",\"LPRC Oscillator\"]},\"group\":\"systemClock\",\"tabs\":[\"main\"],\"category\":\"software\"},\"mainClockInputFrequency_Hz\":{\"name\":\"mainClockInputFrequency_Hz\",\"description\":\"Input Frequency(in Hz)\",\"type\":\"number\",\"defaultValue\":8000000,\"group\":\"systemClock\",\"tabs\":[\"main\"],\"validation\":true,\"category\":\"software\"},\"requestedSystemFrequency_Hz\":{\"name\":\"requestedSystemFrequency_Hz\",\"description\":\"Requested System Frequency(in Hz)\",\"type\":\"number\",\"defaultValue\":8000000,\"group\":\"systemClock\",\"tabs\":[\"main\"],\"validation\":true,\"category\":\"software\"},\"setMaximumSystemFrequency\":{\"name\":\"setMaximumSystemFrequency\",\"description\":\"Set System(FOSC) Frequency to Maximum\",\"type\":\"boolean\",\"defaultValue\":false,\"group\":\"systemClock\",\"tabs\":[\"main\"],\"category\":\"software\"},\"calculatedSystemFrequency_Hz\":{\"name\":\"calculatedSystemFrequency_Hz\",\"description\":\"Calculated System Frequency(FOSC)\",\"type\":\"string\",\"defaultValue\":\"0\",\"group\":\"systemClock\",\"tabs\":[\"main\"],\"category\":\"software\",\"uiBehavior\":{\"readonly\":true}},\"instructionClockFrequency_Hz\":{\"name\":\"instructionClockFrequency_Hz\",\"description\":\"Calculated Peripheral Frequency(FOSC/2)\",\"type\":\"string\",\"defaultValue\":\"0\",\"group\":\"systemClock\",\"tabs\":[\"main\"],\"category\":\"software\",\"uiBehavior\":{\"readonly\":true}},\"fpllo\":{\"name\":\"fpllo\",\"description\":\"PLL Output Frequency(FPLLO)\",\"type\":\"string\",\"defaultValue\":\"0\",\"group\":\"systemClock\",\"tabs\":[\"main\"],\"category\":\"software\",\"uiBehavior\":{\"readonly\":true}},\"fvco\":{\"name\":\"fvco\",\"description\":\"VCO Frequency(FVCO)\",\"type\":\"string\",\"defaultValue\":\"0\",\"group\":\"systemClock\",\"tabs\":[\"main\"],\"category\":\"software\",\"uiBehavior\":{\"readonly\":true}},\"fvcoDivider\":{\"name\":\"fvcoDivider\",\"description\":\"FVCO Divider\",\"type\":\"ComboBox\",\"defaultValue\":{\"value\":\"4\",\"options\":[\"1\",\"2\",\"3\",\"4\"]},\"group\":\"systemClock\",\"tabs\":[\"main\"],\"category\":\"software\"},\"fvcoDiv\":{\"name\":\"fvcoDiv\",\"description\":\"VCO Divider Frequency(FVCODIV)\",\"type\":\"string\",\"defaultValue\":\"0\",\"group\":\"systemClock\",\"tabs\":[\"main\"],\"category\":\"software\",\"uiBehavior\":{\"readonly\":true}},\"usbClockFrequency_Hz\":{\"name\":\"usbClockFrequency_Hz\",\"description\":\"USB Frequency\",\"type\":\"string\",\"defaultValue\":\"0\",\"group\":\"systemClock\",\"tabs\":[\"main\"],\"category\":\"software\",\"uiBehavior\":{\"readonly\":true}},\"auxClockSource\":{\"name\":\"auxClockSource\",\"description\":\"Auxiliary Clock Source\",\"type\":\"ComboBox\",\"defaultValue\":{\"value\":\"FRC Oscillator\",\"options\":[\"FRC Oscillator\",\"FRC Oscillator with PLL\",\"Primary Oscillator\",\"Primary Oscillator with PLL\"]},\"group\":\"auxClock\",\"tabs\":[\"main\"],\"category\":\"software\"},\"auxClockInputFrequency_Hz\":{\"name\":\"auxClockInputFrequency_Hz\",\"description\":\"Auxiliary Clock Input Frequency(in Hz)\",\"type\":\"number\",\"defaultValue\":8000000,\"group\":\"auxClock\",\"tabs\":[\"main\"],\"validation\":true,\"category\":\"software\"},\"requestedAuxClockOutputFrequency_Hz\":{\"name\":\"requestedAuxClockOutputFrequency_Hz\",\"description\":\"Requested Auxiliary Clock Output Frequency(in Hz)\",\"type\":\"number\",\"defaultValue\":10000000,\"group\":\"auxClock\",\"tabs\":[\"main\"],\"validation\":true,\"category\":\"software\"},\"apllo\":{\"name\":\"apllo\",\"description\":\"Auxiliary PLL Output Frequency(AFPLLO)\",\"type\":\"string\",\"defaultValue\":\"0\",\"group\":\"auxClock\",\"tabs\":[\"main\"],\"category\":\"software\",\"uiBehavior\":{\"readonly\":true}},\"afvco\":{\"name\":\"afvco\",\"description\":\"Auxiliary VCO Frequency(AFVCO)\",\"type\":\"string\",\"defaultValue\":\"0\",\"group\":\"auxClock\",\"tabs\":[\"main\"],\"category\":\"software\",\"uiBehavior\":{\"readonly\":true}},\"afvcoDivider\":{\"name\":\"afvcoDivider\",\"description\":\"AFVCO Divider\",\"type\":\"ComboBox\",\"defaultValue\":{\"value\":\"4\",\"options\":[\"1\",\"2\",\"3\",\"4\"]},\"group\":\"auxClock\",\"tabs\":[\"main\"],\"category\":\"software\"},\"afvcoDiv\":{\"name\":\"afvcoDiv\",\"description\":\"Auxiliary VCO Divider Frequency(AFVCODIV)\",\"type\":\"string\",\"defaultValue\":\"0\",\"group\":\"auxClock\",\"tabs\":[\"main\"],\"category\":\"software\",\"uiBehavior\":{\"readonly\":true}},\"refClockEnable\":{\"name\":\"refClockEnable\",\"description\":\"Reference Clock Enable\",\"type\":\"boolean\",\"defaultValue\":false,\"group\":\"refClock\",\"tabs\":[\"main\"],\"category\":\"software\"},\"refClockSource\":{\"name\":\"refClockSource\",\"description\":\"REFO Clock Source\",\"type\":\"ComboBox\",\"defaultValue\":{\"value\":\"FOSC\",\"options\":[\"FOSC\",\"FOSC/2\",\"FRC Oscillator\",\"Primary Oscillator\",\"LPRC Oscillator\",\"BFRC Oscillator\",\"FVCO/4\",\"REFCLKI\"]},\"group\":\"refClock\",\"tabs\":[\"main\"],\"category\":\"software\"},\"requestedRefClockOutputFrequency_Hz\":{\"name\":\"requestedRefClockOutputFrequency_Hz\",\"description\":\"Requested REFO Frequency(in Hz)\",\"type\":\"number\",\"defaultValue\":8000000,\"group\":\"refClock\",\"tabs\":[\"main\"],\"category\":\"software\"},\"calculatedRefOutputFrequency_Hz\":{\"name\":\"calculatedRefOutputFrequency_Hz\",\"description\":\"Calculated REFO Frequency\",\"type\":\"string\",\"defaultValue\":\"0\",\"group\":\"refClock\",\"tabs\":[\"main\"],\"uiBehavior\":{\"readonly\":true},\"category\":\"software\"},\"canfdClockSource\":{\"name\":\"canfdClockSource\",\"description\":\"Clock Source\",\"type\":\"ComboBox\",\"defaultValue\":{\"value\":\"No Clock Selected\",\"options\":[\"No Clock Selected\"]},\"group\":\"canfdClock\",\"tabs\":[\"main\"],\"category\":\"software\"},\"canfdClkSrcFreq\":{\"name\":\"canfdClkSrcFreq\",\"description\":\"Clock Source Frequency\",\"type\":\"string\",\"defaultValue\":\"0.00 kHz\",\"group\":\"canfdClock\",\"uiBehavior\":{\"readonly\":true},\"tabs\":[\"main\"],\"category\":\"software\"},\"requestedCanfdClockOutputFrequency_Hz\":{\"name\":\"requestedCanfdClockOutputFrequency_Hz\",\"description\":\"Requested FCAN Frequency\",\"type\":\"string\",\"defaultValue\":\"0.00 kHz\",\"group\":\"canfdClock\",\"tabs\":[\"main\"],\"uiBehavior\":{\"readonly\":true},\"category\":\"software\"},\"calculatedCanfdOutputFrequency_Hz\":{\"name\":\"calculatedCanfdOutputFrequency_Hz\",\"description\":\"Calculated FCAN Frequency\",\"type\":\"string\",\"defaultValue\":\"0\",\"group\":\"canfdClock\",\"tabs\":[\"main\"],\"uiBehavior\":{\"readonly\":true},\"category\":\"software\"}}}");
|
13138
|
+
module.exports = JSON.parse("{\"moduleName\":\"Clock\",\"deviceType\":\"PIC\",\"booleanValues\":{\"true\":\"enabled\",\"false\":\"disabled\"},\"help\":{\"url\":\"v2/keyword-lookup?keyword=CLOCK_16BIT_MELODY_DRIVER&version=latest&redirect=true\",\"tooltip\":\"Click here to open documentation\"},\"UIGroups\":{\"systemClock\":\"System Clock\",\"auxClock\":\"Auxiliary Clock\",\"refClock\":\"Reference Clock\",\"canfdClock\":\"CAN FD Clock\"},\"UIOrder\":{\"systemClock\":[\"*\"],\"auxClock\":[\"*\"],\"refClock\":[\"*\"],\"canfdClock\":[\"*\"]},\"tabs\":{\"main\":\"Easy View\"},\"imports\":{\"clock_16bit_config_interface\":{\"nodeModule\":{\"importName\":\"clock_16bit_config_interface\",\"node\":\"@microchip/clock-16bit-config-interface\"},\"import\":{\"interfaceId\":{\"name\":\"clock-16bit-config-interface\",\"version\":\"^1.1.5\"},\"isRequired\":true}},\"device_meta\":{\"import\":{\"interfaceId\":{\"name\":\"device-meta\",\"version\":\"1.0.0\"}}}},\"exports\":{\"canfd_clock\":{\"interfaces\":[{\"interfaceId\":{\"name\":\"canfd-clock-interface\",\"version\":\"1.0.0\"}}]},\"clock_16bit_drv_interface\":{\"interfaces\":[{\"interfaceId\":{\"name\":\"clock-16bit-drv-interface\",\"version\":\"1.0.0\"}}]}},\"softwareData\":{\"mainClockSource\":{\"name\":\"mainClockSource\",\"description\":\"System Clock Source\",\"type\":\"ComboBox\",\"defaultValue\":{\"value\":\"FRC Oscillator\",\"options\":[\"FRC Oscillator\",\"FRC Oscillator with Postscaler\",\"FRC Oscillator with PLL\",\"Primary Oscillator\",\"Primary Oscillator with PLL\",\"External Oscillator\",\"External Oscillator with PLL\",\"LPRC Oscillator\"]},\"group\":\"systemClock\",\"tabs\":[\"main\"],\"category\":\"software\"},\"mainClockInputFrequency_Hz\":{\"name\":\"mainClockInputFrequency_Hz\",\"description\":\"Input Frequency(in Hz)\",\"type\":\"number\",\"defaultValue\":8000000,\"group\":\"systemClock\",\"tabs\":[\"main\"],\"validation\":true,\"category\":\"software\"},\"requestedSystemFrequency_Hz\":{\"name\":\"requestedSystemFrequency_Hz\",\"description\":\"Requested System Frequency(in Hz)\",\"type\":\"number\",\"defaultValue\":8000000,\"group\":\"systemClock\",\"tabs\":[\"main\"],\"validation\":true,\"category\":\"software\"},\"setMaximumSystemFrequency\":{\"name\":\"setMaximumSystemFrequency\",\"description\":\"Set System(FOSC) Frequency to Maximum\",\"type\":\"boolean\",\"defaultValue\":false,\"group\":\"systemClock\",\"tabs\":[\"main\"],\"category\":\"software\"},\"calculatedSystemFrequency_Hz\":{\"name\":\"calculatedSystemFrequency_Hz\",\"description\":\"Calculated System Frequency(FOSC)\",\"type\":\"string\",\"defaultValue\":\"0\",\"group\":\"systemClock\",\"tabs\":[\"main\"],\"category\":\"software\",\"uiBehavior\":{\"readonly\":true}},\"instructionClockFrequency_Hz\":{\"name\":\"instructionClockFrequency_Hz\",\"description\":\"Calculated Peripheral Frequency(FOSC/2)\",\"type\":\"string\",\"defaultValue\":\"0\",\"group\":\"systemClock\",\"tabs\":[\"main\"],\"category\":\"software\",\"uiBehavior\":{\"readonly\":true}},\"fpllo\":{\"name\":\"fpllo\",\"description\":\"PLL Output Frequency(FPLLO)\",\"type\":\"string\",\"defaultValue\":\"0\",\"group\":\"systemClock\",\"tabs\":[\"main\"],\"category\":\"software\",\"uiBehavior\":{\"readonly\":true}},\"fvco\":{\"name\":\"fvco\",\"description\":\"VCO Frequency(FVCO)\",\"type\":\"string\",\"defaultValue\":\"0\",\"group\":\"systemClock\",\"tabs\":[\"main\"],\"category\":\"software\",\"uiBehavior\":{\"readonly\":true}},\"fvcoDivider\":{\"name\":\"fvcoDivider\",\"description\":\"FVCO Divider\",\"type\":\"ComboBox\",\"defaultValue\":{\"value\":\"4\",\"options\":[\"1\",\"2\",\"3\",\"4\"]},\"group\":\"systemClock\",\"tabs\":[\"main\"],\"category\":\"software\"},\"fvcoDiv\":{\"name\":\"fvcoDiv\",\"description\":\"VCO Divider Frequency(FVCODIV)\",\"type\":\"string\",\"defaultValue\":\"0\",\"group\":\"systemClock\",\"tabs\":[\"main\"],\"category\":\"software\",\"uiBehavior\":{\"readonly\":true}},\"usbClockFrequency_Hz\":{\"name\":\"usbClockFrequency_Hz\",\"description\":\"USB Frequency\",\"type\":\"string\",\"defaultValue\":\"0\",\"group\":\"systemClock\",\"tabs\":[\"main\"],\"category\":\"software\",\"uiBehavior\":{\"readonly\":true}},\"auxClockSource\":{\"name\":\"auxClockSource\",\"description\":\"Auxiliary Clock Source\",\"type\":\"ComboBox\",\"defaultValue\":{\"value\":\"FRC Oscillator\",\"options\":[\"FRC Oscillator\",\"FRC Oscillator with PLL\",\"Primary Oscillator\",\"Primary Oscillator with PLL\"]},\"group\":\"auxClock\",\"tabs\":[\"main\"],\"category\":\"software\"},\"auxClockInputFrequency_Hz\":{\"name\":\"auxClockInputFrequency_Hz\",\"description\":\"Auxiliary Clock Input Frequency(in Hz)\",\"type\":\"number\",\"defaultValue\":8000000,\"group\":\"auxClock\",\"tabs\":[\"main\"],\"validation\":true,\"category\":\"software\"},\"requestedAuxClockOutputFrequency_Hz\":{\"name\":\"requestedAuxClockOutputFrequency_Hz\",\"description\":\"Requested Auxiliary Clock Output Frequency(in Hz)\",\"type\":\"number\",\"defaultValue\":10000000,\"group\":\"auxClock\",\"tabs\":[\"main\"],\"validation\":true,\"category\":\"software\"},\"apllo\":{\"name\":\"apllo\",\"description\":\"Auxiliary PLL Output Frequency(AFPLLO)\",\"type\":\"string\",\"defaultValue\":\"0\",\"group\":\"auxClock\",\"tabs\":[\"main\"],\"category\":\"software\",\"uiBehavior\":{\"readonly\":true}},\"afvco\":{\"name\":\"afvco\",\"description\":\"Auxiliary VCO Frequency(AFVCO)\",\"type\":\"string\",\"defaultValue\":\"0\",\"group\":\"auxClock\",\"tabs\":[\"main\"],\"category\":\"software\",\"uiBehavior\":{\"readonly\":true}},\"afvcoDivider\":{\"name\":\"afvcoDivider\",\"description\":\"AFVCO Divider\",\"type\":\"ComboBox\",\"defaultValue\":{\"value\":\"4\",\"options\":[\"1\",\"2\",\"3\",\"4\"]},\"group\":\"auxClock\",\"tabs\":[\"main\"],\"category\":\"software\"},\"afvcoDiv\":{\"name\":\"afvcoDiv\",\"description\":\"Auxiliary VCO Divider Frequency(AFVCODIV)\",\"type\":\"string\",\"defaultValue\":\"0\",\"group\":\"auxClock\",\"tabs\":[\"main\"],\"category\":\"software\",\"uiBehavior\":{\"readonly\":true}},\"refClockEnable\":{\"name\":\"refClockEnable\",\"description\":\"Reference Clock Enable\",\"type\":\"boolean\",\"defaultValue\":false,\"group\":\"refClock\",\"tabs\":[\"main\"],\"category\":\"software\"},\"refClockSource\":{\"name\":\"refClockSource\",\"description\":\"REFO Clock Source\",\"type\":\"ComboBox\",\"defaultValue\":{\"value\":\"FOSC\",\"options\":[\"FOSC\",\"FOSC/2\",\"FRC Oscillator\",\"Primary Oscillator\",\"LPRC Oscillator\",\"BFRC Oscillator\",\"FVCO/4\",\"REFCLKI\"]},\"group\":\"refClock\",\"tabs\":[\"main\"],\"category\":\"software\"},\"requestedRefClockOutputFrequency_Hz\":{\"name\":\"requestedRefClockOutputFrequency_Hz\",\"description\":\"Requested REFO Frequency(in Hz)\",\"type\":\"number\",\"defaultValue\":8000000,\"group\":\"refClock\",\"tabs\":[\"main\"],\"category\":\"software\"},\"calculatedRefOutputFrequency_Hz\":{\"name\":\"calculatedRefOutputFrequency_Hz\",\"description\":\"Calculated REFO Frequency\",\"type\":\"string\",\"defaultValue\":\"0\",\"group\":\"refClock\",\"tabs\":[\"main\"],\"uiBehavior\":{\"readonly\":true},\"category\":\"software\"},\"canfdClockSource\":{\"name\":\"canfdClockSource\",\"description\":\"Clock Source\",\"type\":\"ComboBox\",\"defaultValue\":{\"value\":\"No Clock Selected\",\"options\":[\"No Clock Selected\"]},\"group\":\"canfdClock\",\"tabs\":[\"main\"],\"category\":\"software\"},\"canfdClkSrcFreq\":{\"name\":\"canfdClkSrcFreq\",\"description\":\"Clock Source Frequency\",\"type\":\"string\",\"defaultValue\":\"0.00 kHz\",\"group\":\"canfdClock\",\"uiBehavior\":{\"readonly\":true},\"tabs\":[\"main\"],\"category\":\"software\"},\"requestedCanfdClockOutputFrequency_Hz\":{\"name\":\"requestedCanfdClockOutputFrequency_Hz\",\"description\":\"Requested FCAN Frequency\",\"type\":\"string\",\"defaultValue\":\"0.00 kHz\",\"group\":\"canfdClock\",\"tabs\":[\"main\"],\"uiBehavior\":{\"readonly\":true},\"category\":\"software\"},\"calculatedCanfdOutputFrequency_Hz\":{\"name\":\"calculatedCanfdOutputFrequency_Hz\",\"description\":\"Calculated FCAN Frequency\",\"type\":\"string\",\"defaultValue\":\"0\",\"group\":\"canfdClock\",\"tabs\":[\"main\"],\"uiBehavior\":{\"readonly\":true},\"category\":\"software\"}}}");
|
13090
13139
|
|
13091
13140
|
/***/ }),
|
13092
13141
|
|
@@ -13099,7 +13148,7 @@ module.exports = JSON.parse("{\"moduleName\":\"Clock\",\"deviceType\":\"PIC\",\"
|
|
13099
13148
|
|
13100
13149
|
__webpack_require__(/*! core-js/es/set/index */"./node_modules/core-js/es/set/index.js");
|
13101
13150
|
__webpack_require__(/*! core-js/es/map/index */"./node_modules/core-js/es/map/index.js");
|
13102
|
-
module.exports = __webpack_require__(/*! /home/jenkins/agent/workspace/Content_clock-16bit-driver_1.
|
13151
|
+
module.exports = __webpack_require__(/*! /home/jenkins/agent/workspace/Content_clock-16bit-driver_1.2.0/generated_module/src/creator.ts */"./generated_module/src/creator.ts");
|
13103
13152
|
|
13104
13153
|
|
13105
13154
|
/***/ })
|