@mchp-mcc/clock-16bit-driver 1.0.3 → 1.1.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 +6 -0
- package/Readme.md +30 -12
- package/lib/generated_module/src/index.js +0 -5
- package/output/04701ca33ce96d3254191b8bb4be6080.ttf +0 -0
- package/output/0af28946b49fa427ea09eb020906b421.otf +0 -0
- package/output/0ffc720f1bf788849cc8ce9e79376cb3.eot +0 -0
- package/output/1ac124f8c2620ca86850329afeb7c0bd.otf +0 -0
- package/output/1c89d58269b6e0c5f3d9d9876325b4ba.woff2 +0 -0
- package/output/1d0d8b66fa1da76d69b95b6d0ed5cca9.svg +336 -0
- package/output/1d79a0559e5f13294dee77456b02b56f.woff +0 -0
- package/output/2509c35b0cfc629f81e50ce5ef62e4d3.woff +0 -0
- package/output/252a41f69d4c320154a12092f6fbbedd.ttf +0 -0
- package/output/2aeabc9e8ed0aef227d72fee83c14462.eot +0 -0
- package/output/2c8903475ef5366ce36603d79ba02d25.woff2 +0 -0
- package/output/39c65dcc08f7edb347b62cee45cd7048.gif +0 -0
- package/output/3dfc3dd20959a5bac99f7d9152530aa9.woff +0 -0
- package/output/61747992dd9a412e601e3defa3f3baa6.ttf +0 -0
- package/output/61bf3cad3150daa5af2dab9aaa02e3ff.woff +0 -0
- package/output/6240b67b77d9bac167d7834f793e83ff.woff2 +0 -0
- package/output/6441e63a57ccc5105bad045142bc31eb.png +0 -0
- package/output/6e408e472d90198222ef851e45a6070d.eot +0 -0
- package/output/7435e6c2064f36f486266e516e9838b8.woff2 +0 -0
- package/output/75e0e55bdb3e82dcacf88e90bf17bac6.eot +0 -0
- package/output/7d6bf0009e0d61e7e6f376fccab8bb09.woff +0 -0
- package/output/7ebd6258cbbc40b4f0e108e444bcb9b1.woff +0 -0
- package/output/87a454b233bedae23f8d1be11e8b4f68.woff +0 -0
- package/output/926388f043fc8117b35b84b241a7f688.svg +334 -0
- package/output/9347db5956a89b0bab38d3e610eee01d.gif +0 -0
- package/output/94f5fdef85538cbd160aa2b71e67ab27.otf +0 -0
- package/output/a0cf4179f3139f862d55dea472a2315c.woff2 +0 -0
- package/output/a356e361ee6765f3d6d4c1d4664f12ab.eot +0 -0
- package/output/autoCreator.js +7745 -0
- package/output/autoCreator.js.map +1 -0
- package/output/autoProcessor.js +7747 -0
- package/output/autoProcessor.js.map +1 -0
- package/output/b49c708cb6f62d20fb57be4c6f736662.woff +0 -0
- package/output/bb3b405a4608d51ddb1306c2f641f3dd.svg +332 -0
- package/output/c2e128a00fca2640240d88892e29dc53.eot +0 -0
- package/output/cbc22e9676acf295231bfecc426fe916.eot +0 -0
- package/output/creator.js +11766 -3997
- package/output/creator.js.map +1 -1
- package/output/dae0d67b5b0a7332e0d555379c67e4de.eot +0 -0
- package/output/df17d4e30091735253a854052256d95d.woff +0 -0
- package/output/ec32d6be7329ece0789ccf9d0d519c4d.ttf +0 -0
- package/output/ec806460121999bcfb12bc264d46d41e.woff2 +0 -0
- package/output/eef5282a2e59fca7c3b7a96adbb3d649.otf +0 -0
- package/output/f2ebdee8c2343f558a0221d276957606.woff2 +0 -0
- package/output/f38c5a57b52cb6dda8141610603f6a58.eot +0 -0
- package/output/f78429ed0f939ede1ddb454a60a2bc0f.woff2 +0 -0
- package/output/fa2c83d2f35244bb10dcfef484ba6431.svg +211 -0
- package/output/fbbc016360f4b50975e254398a7b6964.ttf +0 -0
- package/output/index.html +1 -1
- package/output/main.js +155020 -0
- package/output/main.js.map +1 -0
- package/output/nullPrototype.json +4 -4
- package/output/processor.js +5083 -5632
- package/output/processor.js.map +1 -1
- package/output/reducer.js +17680 -619
- package/output/reducer.js.map +1 -1
- package/package.json +26 -20
- package/src/CreatorFunctions.ts +1 -1
- package/src/{DerivedData.tsx → DerivedData.ts} +81 -42
- package/src/moduleConfig.json +15 -4
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@mchp-mcc/clock-16bit-driver",
|
3
|
-
"version": "1.0
|
3
|
+
"version": "1.1.0",
|
4
4
|
"scf": {
|
5
5
|
"reducer": "output/reducer.js",
|
6
6
|
"creator": "output/creator.js",
|
@@ -10,14 +10,18 @@
|
|
10
10
|
"main": "auto"
|
11
11
|
},
|
12
12
|
"displayName": "Clock",
|
13
|
-
"category": "System"
|
13
|
+
"category": "System",
|
14
|
+
"autoProcessor": "output/autoProcessor.js",
|
15
|
+
"autoCreator": "output/autoCreator.js"
|
14
16
|
},
|
15
17
|
"scf-automodule": {
|
16
18
|
"mode": "react",
|
17
19
|
"hookPaths": {
|
18
|
-
"processor": "generated_module/src/processor.
|
19
|
-
"creator": "generated_module/src/creator.
|
20
|
-
"reducer": "src/reducer.tsx"
|
20
|
+
"processor": "generated_module/src/processor.ts",
|
21
|
+
"creator": "generated_module/src/creator.ts",
|
22
|
+
"reducer": "src/reducer.tsx",
|
23
|
+
"App": "src/App.tsx",
|
24
|
+
"view": "src/index.tsx"
|
21
25
|
},
|
22
26
|
"shouldNotifyOnDeploy": false
|
23
27
|
},
|
@@ -39,7 +43,8 @@
|
|
39
43
|
"update-auto-module": "yarn add @microchip/scf-automodule -D && yarn updateProject",
|
40
44
|
"build-run-dir-future": "node config/extract-run-directory-future.js",
|
41
45
|
"profile": "jest profile",
|
42
|
-
"release": "yarn build && yarn test && node -e 'require(\"./config/scf-project-scripts\").releaseProject()'"
|
46
|
+
"release": "yarn build && yarn test && node -e 'require(\"./config/scf-project-scripts\").releaseProject()'",
|
47
|
+
"postprocess": "node config/appendPrototype.js"
|
43
48
|
},
|
44
49
|
"husky": {
|
45
50
|
"hooks": {
|
@@ -76,16 +81,15 @@
|
|
76
81
|
"@mchp-mcc/pic-8bit-types": "^5.4.1",
|
77
82
|
"@microchip/api-prefix-registration": "^0.1.0",
|
78
83
|
"@microchip/canfd-clock-interface": "^1.0.0",
|
79
|
-
"@microchip/clock-16bit-config-interface": "^1.1.
|
84
|
+
"@microchip/clock-16bit-config-interface": "^1.1.2",
|
80
85
|
"@microchip/clock-16bit-interface": "^1.1.0",
|
81
86
|
"@microchip/fosc-hz": "^0.1.2",
|
82
|
-
"@microchip/pin-standard": "^0.
|
83
|
-
"@microchip/scf-
|
84
|
-
"@microchip/scf-
|
85
|
-
"@microchip/scf-device": "^8.2.0",
|
87
|
+
"@microchip/pin-standard": "^0.4.1",
|
88
|
+
"@microchip/scf-common": "^3.17.0",
|
89
|
+
"@microchip/scf-device": "^8.5.0",
|
86
90
|
"@microchip/scf-integration-test": "^1.0.0",
|
87
91
|
"@microchip/scf-interface": "^1.4.0",
|
88
|
-
"@microchip/scf-register-view-helper": "^2.
|
92
|
+
"@microchip/scf-register-view-helper": "^2.5.0"
|
89
93
|
},
|
90
94
|
"devDependencies": {
|
91
95
|
"@babel/core": "^7.9.6",
|
@@ -94,12 +98,13 @@
|
|
94
98
|
"@babel/preset-react": "^7.9.4",
|
95
99
|
"@babel/preset-typescript": "^7.9.0",
|
96
100
|
"@microchip/initializer-system": "^0.5.3",
|
101
|
+
"@microchip/melody-automodule-interface": "^1.6.2",
|
97
102
|
"@microchip/pic-8bit-types": "^5.0.1",
|
98
|
-
"@microchip/run-directory": "^2.
|
99
|
-
"@microchip/
|
100
|
-
"@microchip/scf-automodule": "
|
101
|
-
"@microchip/scf-autoview": "^3.
|
102
|
-
"@microchip/scf-autoview-impl": "^3.
|
103
|
+
"@microchip/run-directory": "^4.2.0",
|
104
|
+
"@microchip/scf-automodule": "^5.6.3",
|
105
|
+
"@microchip/scf-automodule-impl": "^1.8.2",
|
106
|
+
"@microchip/scf-autoview": "^3.26.1",
|
107
|
+
"@microchip/scf-autoview-impl": "^3.9.2",
|
103
108
|
"@microchip/scf-project-scripts": "^1.0.0",
|
104
109
|
"@types/core-js": "^2.5.1",
|
105
110
|
"@types/enzyme": "^3.9.3",
|
@@ -151,9 +156,10 @@
|
|
151
156
|
"postcss-loader": "^3.0.0",
|
152
157
|
"postcss-safe-parser": "^4.0.2",
|
153
158
|
"prettier": "^2.0.5",
|
154
|
-
"react": "^
|
155
|
-
"react-dom": "^
|
159
|
+
"react": "^17.0.1",
|
160
|
+
"react-dom": "^17.0.1",
|
156
161
|
"react-redux": "^7.2.0",
|
162
|
+
"sass": "~1.32.0",
|
157
163
|
"sass-loader": "^9.0.2",
|
158
164
|
"style-loader": "^1.2.1",
|
159
165
|
"ts-jest": "^24.0.2",
|
@@ -169,4 +175,4 @@
|
|
169
175
|
"description": "- Download & Install [nodejs](https://nodejs.org/en/download/)\r - Download & Install npm\r - Setup node & npm in enviroment path",
|
170
176
|
"main": "lib/generated_module/src/index.js",
|
171
177
|
"author": ""
|
172
|
-
}
|
178
|
+
}
|
package/src/CreatorFunctions.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { CreatorFunctions } from "@microchip/
|
1
|
+
import { CreatorFunctions } from "@microchip/melody-automodule-interface";
|
2
2
|
import { MyState } from "../generated_module/src/types/AutoModuleTypes";
|
3
3
|
|
4
4
|
export const getCreatorFunctions = (): CreatorFunctions => {
|
@@ -8,8 +8,8 @@ import {
|
|
8
8
|
} from "../generated_module/src/types/AutoModuleTypes";
|
9
9
|
import { forEach, getKeys } from "../generated_module/src/Utils";
|
10
10
|
import { getCanClkDivFreq, getCanfdClockFrequency, MAX_CANFD_CLK_SRC_FREQ } from "./Util";
|
11
|
-
import * as
|
12
|
-
import { ExportArg } from "@microchip/
|
11
|
+
import * as clock_16bit_drv_interface from "@microchip/clock-16bit-config-interface";
|
12
|
+
import { ExportArg } from "@microchip/melody-automodule-interface/lib/src/InterfaceTypes";
|
13
13
|
import _find from "lodash.find";
|
14
14
|
import { InterfaceId } from "@microchip/scf-common";
|
15
15
|
|
@@ -26,6 +26,7 @@ const COMPONENT_REF_CLOCK_SOURCE = "refClockSource";
|
|
26
26
|
const COMPONENT_CANFD_CLOCK_SOURCE = "canfdClockSource";
|
27
27
|
export const COMPONENT_REQUESTED_SYSTEM_FREQUENCY = "requestedSystemFrequency_Hz";
|
28
28
|
const COMPONENT_FVCO_DIVIDER = "fvcoDivider";
|
29
|
+
export const COMPONENT_SET_MAX_FREQUENCY = "setMaximumSystemFrequency";
|
29
30
|
export const COMPONENT_REQUESTED_AUX_CLOCK_OUTPUT_FREQUENCY =
|
30
31
|
"requestedAuxClockOutputFrequency_Hz";
|
31
32
|
const COMPONENT_AFVCO_DIVIDER = "afvcoDivider";
|
@@ -38,6 +39,7 @@ const PRIMARY = "Primary";
|
|
38
39
|
const PLL = "PLL";
|
39
40
|
const POSTSCALER = "Postscaler";
|
40
41
|
const EXTERNAL = "External";
|
42
|
+
const CLOCK_16BIT_DRV_INTERFACE = "clock-16bit-drv-interface";
|
41
43
|
|
42
44
|
const MEGA_HERTZ = 1000000;
|
43
45
|
const KILO_HERTZ = 1000;
|
@@ -109,7 +111,8 @@ class MyDerivedData implements DerivedData {
|
|
109
111
|
requestedRefClockOutputFrequency_HzValidator: this
|
110
112
|
.requestedRefClockOutputFrequency_HzValidator,
|
111
113
|
getCustomUiErrors: this.getCustomUiErrors,
|
112
|
-
"clock-16bit-
|
114
|
+
"clock-16bit-drv-interface_payloads": this
|
115
|
+
.getClockApplicationInterfacePayload,
|
113
116
|
importName: this.friendlyImportName,
|
114
117
|
exportName: this.friendlyExportName,
|
115
118
|
};
|
@@ -293,15 +296,17 @@ class MyDerivedData implements DerivedData {
|
|
293
296
|
|
294
297
|
private isMainClockInputFrequencyVisible = (): boolean => {
|
295
298
|
let visible = false;
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
if (
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
299
|
+
if (!this.dataModel.getComponentValue(COMPONENT_SET_MAX_FREQUENCY)) {
|
300
|
+
const mainClockSource = this.dataModel.getComponentValue(
|
301
|
+
COMPONENT_MAIN_CLOCK_SOURCE,
|
302
|
+
);
|
303
|
+
if (mainClockSource != undefined) {
|
304
|
+
if (
|
305
|
+
mainClockSource?.indexOf(PRIMARY) >= 0 ||
|
306
|
+
mainClockSource?.indexOf(EXTERNAL) >= 0
|
307
|
+
) {
|
308
|
+
visible = true;
|
309
|
+
}
|
305
310
|
}
|
306
311
|
}
|
307
312
|
return visible;
|
@@ -309,15 +314,17 @@ class MyDerivedData implements DerivedData {
|
|
309
314
|
|
310
315
|
private isRequestedSystemFrequencyVisible = (): boolean => {
|
311
316
|
let visible = false;
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
if (
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
317
|
+
if (!this.dataModel.getComponentValue(COMPONENT_SET_MAX_FREQUENCY)) {
|
318
|
+
const mainClockSource = this.dataModel.getComponentValue(
|
319
|
+
COMPONENT_MAIN_CLOCK_SOURCE,
|
320
|
+
);
|
321
|
+
if (mainClockSource != undefined) {
|
322
|
+
if (
|
323
|
+
mainClockSource?.indexOf(PLL) >= 0 ||
|
324
|
+
mainClockSource.indexOf(POSTSCALER) >= 0
|
325
|
+
) {
|
326
|
+
visible = true;
|
327
|
+
}
|
321
328
|
}
|
322
329
|
}
|
323
330
|
return visible;
|
@@ -393,6 +400,10 @@ class MyDerivedData implements DerivedData {
|
|
393
400
|
componentName === "canfdClkSrcFreq"
|
394
401
|
) {
|
395
402
|
return this.isCanfdClockSupported();
|
403
|
+
} else if (componentName === COMPONENT_MAIN_CLOCK_SOURCE) {
|
404
|
+
if (this.dataModel.getComponentValue(COMPONENT_SET_MAX_FREQUENCY)) {
|
405
|
+
return false;
|
406
|
+
}
|
396
407
|
}
|
397
408
|
return true;
|
398
409
|
};
|
@@ -469,6 +480,16 @@ class MyDerivedData implements DerivedData {
|
|
469
480
|
return;
|
470
481
|
};
|
471
482
|
|
483
|
+
private getActualMainClockSource = (): string | undefined => {
|
484
|
+
const interfaceData: clock_16bit_config_interface.ProcessedPayload = this.dataModel.getImportValue(
|
485
|
+
CLOCK_16BIT_CONFIG_INTERFACE,
|
486
|
+
);
|
487
|
+
if (interfaceData != undefined) {
|
488
|
+
return interfaceData.mainClockPayload?.mainClockSource;
|
489
|
+
}
|
490
|
+
return undefined;
|
491
|
+
};
|
492
|
+
|
472
493
|
private getActualSystemFrequency = (): string => {
|
473
494
|
let systemFrequency: number | undefined;
|
474
495
|
const interfaceData: clock_16bit_config_interface.ProcessedPayload = this.dataModel.getImportValue(
|
@@ -868,6 +889,8 @@ class MyDerivedData implements DerivedData {
|
|
868
889
|
return this.getRefClockSource();
|
869
890
|
case COMPONENT_REQUESTED_REF_CLOCK_OUTPUT_FREQUENCY:
|
870
891
|
return this.getRequestedRefClockOutputFrequencyInHz();
|
892
|
+
case COMPONENT_SET_MAX_FREQUENCY:
|
893
|
+
return this.getMaxFrequencySetFlag();
|
871
894
|
default:
|
872
895
|
break;
|
873
896
|
}
|
@@ -910,6 +933,9 @@ class MyDerivedData implements DerivedData {
|
|
910
933
|
COMPONENT_REQUESTED_SYSTEM_FREQUENCY,
|
911
934
|
),
|
912
935
|
fvcoDivider: Number(this.dataModel.getComponentValue(COMPONENT_FVCO_DIVIDER)),
|
936
|
+
setMaximumSystemFrequency: this.dataModel.getComponentValue(
|
937
|
+
COMPONENT_SET_MAX_FREQUENCY,
|
938
|
+
),
|
913
939
|
};
|
914
940
|
};
|
915
941
|
|
@@ -961,112 +987,125 @@ class MyDerivedData implements DerivedData {
|
|
961
987
|
return getCanClkDivFreq(canClkSrc, canClkFreq);
|
962
988
|
};
|
963
989
|
|
964
|
-
public
|
990
|
+
public getExportArgFromDriverInterface = (
|
991
|
+
componentName: string,
|
992
|
+
): ExportArg | undefined => {
|
965
993
|
const exportData = this.dataModel.getExportInterfaces().getInterfaceData();
|
966
994
|
if (exportData != undefined) {
|
967
995
|
const expArg = _find(
|
968
996
|
exportData,
|
969
997
|
(i) =>
|
970
|
-
i.interface ===
|
971
|
-
i.name === componentName,
|
998
|
+
i.interface === CLOCK_16BIT_DRV_INTERFACE && i.name === componentName,
|
972
999
|
);
|
973
1000
|
return expArg;
|
974
1001
|
}
|
975
1002
|
};
|
976
1003
|
|
977
1004
|
private getMainClockSource = (): any => {
|
978
|
-
const mainClockArg = this.
|
1005
|
+
const mainClockArg = this.getExportArgFromDriverInterface(ARGUMENT_MAIN_CLK)
|
1006
|
+
?.value;
|
979
1007
|
if (mainClockArg != undefined) {
|
980
1008
|
return mainClockArg?.mainClockSource;
|
981
1009
|
}
|
982
1010
|
};
|
983
1011
|
|
1012
|
+
private getMaxFrequencySetFlag = (): any => {
|
1013
|
+
const mainClockArg = this.getExportArgFromDriverInterface(ARGUMENT_MAIN_CLK)
|
1014
|
+
?.value;
|
1015
|
+
if (mainClockArg != undefined) {
|
1016
|
+
return Boolean(mainClockArg?.setMaximumSystemFrequency);
|
1017
|
+
}
|
1018
|
+
};
|
1019
|
+
|
984
1020
|
private getMainClockInputFrequencyInHz = (): any => {
|
985
|
-
const mainClockArg = this.
|
1021
|
+
const mainClockArg = this.getExportArgFromDriverInterface(ARGUMENT_MAIN_CLK)
|
1022
|
+
?.value;
|
986
1023
|
if (mainClockArg != undefined) {
|
987
1024
|
return mainClockArg?.mainClockInputFrequency_Hz;
|
988
1025
|
}
|
989
1026
|
};
|
990
1027
|
|
991
1028
|
private getRequestedSystemFrequencyInHz = (): any => {
|
992
|
-
const mainClockArg = this.
|
1029
|
+
const mainClockArg = this.getExportArgFromDriverInterface(ARGUMENT_MAIN_CLK)
|
1030
|
+
?.value;
|
993
1031
|
if (mainClockArg != undefined) {
|
994
1032
|
return mainClockArg?.requestedSystemFrequency_Hz;
|
995
1033
|
}
|
996
1034
|
};
|
997
1035
|
|
998
1036
|
private getFvcoDivider = (): any => {
|
999
|
-
const mainClockArg = this.
|
1037
|
+
const mainClockArg = this.getExportArgFromDriverInterface(ARGUMENT_MAIN_CLK)
|
1038
|
+
?.value;
|
1000
1039
|
if (mainClockArg != undefined) {
|
1001
1040
|
return String(mainClockArg.fvcoDivider);
|
1002
1041
|
}
|
1003
1042
|
};
|
1004
1043
|
|
1005
1044
|
private getAuxClockSource = (): any => {
|
1006
|
-
const auxClockArg = this.
|
1045
|
+
const auxClockArg = this.getExportArgFromDriverInterface(ARGUMENT_AUX_CLK)?.value;
|
1007
1046
|
if (auxClockArg != undefined) {
|
1008
1047
|
return auxClockArg.auxClockSource;
|
1009
1048
|
}
|
1010
1049
|
};
|
1011
1050
|
|
1012
1051
|
private getAuxClockInputFrequencyInHz = (): any => {
|
1013
|
-
const auxClockArg = this.
|
1052
|
+
const auxClockArg = this.getExportArgFromDriverInterface(ARGUMENT_AUX_CLK)?.value;
|
1014
1053
|
if (auxClockArg != undefined) {
|
1015
1054
|
return auxClockArg.auxClockInputFrequency_Hz;
|
1016
1055
|
}
|
1017
1056
|
};
|
1018
1057
|
|
1019
1058
|
private getRequestedAuxClockOutputFrequencyInHz = (): any => {
|
1020
|
-
const auxClockArg = this.
|
1059
|
+
const auxClockArg = this.getExportArgFromDriverInterface(ARGUMENT_AUX_CLK)?.value;
|
1021
1060
|
if (auxClockArg != undefined) {
|
1022
1061
|
return auxClockArg.requestedAuxClockOutputFrequency_Hz;
|
1023
1062
|
}
|
1024
1063
|
};
|
1025
1064
|
|
1026
1065
|
private getAfvcoDivider = (): any => {
|
1027
|
-
const auxClockArg = this.
|
1066
|
+
const auxClockArg = this.getExportArgFromDriverInterface(ARGUMENT_AUX_CLK)?.value;
|
1028
1067
|
if (auxClockArg != undefined) {
|
1029
1068
|
return auxClockArg.afvcoDivider;
|
1030
1069
|
}
|
1031
1070
|
};
|
1032
1071
|
|
1033
1072
|
private getRefClockSource = (): any => {
|
1034
|
-
const refClockArg = this.
|
1073
|
+
const refClockArg = this.getExportArgFromDriverInterface(ARGUMENT_REF_CLK)?.value;
|
1035
1074
|
if (refClockArg != undefined) {
|
1036
1075
|
return refClockArg.refClockSource;
|
1037
1076
|
}
|
1038
1077
|
};
|
1039
1078
|
|
1040
1079
|
private getRequestedRefClockOutputFrequencyInHz = (): any => {
|
1041
|
-
const refClockArg = this.
|
1080
|
+
const refClockArg = this.getExportArgFromDriverInterface(ARGUMENT_REF_CLK)?.value;
|
1042
1081
|
if (refClockArg != undefined) {
|
1043
1082
|
return refClockArg.requestedRefClockOutputFrequency_Hz;
|
1044
1083
|
}
|
1045
1084
|
};
|
1046
1085
|
|
1047
1086
|
private getCanfdClockSource = (): any => {
|
1048
|
-
const refClockArg = this.
|
1087
|
+
const refClockArg = this.getExportArgFromDriverInterface("canfdClockArg")?.value;
|
1049
1088
|
if (refClockArg != undefined) {
|
1050
1089
|
return refClockArg.canfdClockSource;
|
1051
1090
|
}
|
1052
1091
|
};
|
1053
1092
|
|
1054
|
-
private
|
1093
|
+
private getClock16bitDrvInterfaceId = (): InterfaceId => {
|
1055
1094
|
return {
|
1056
|
-
name:
|
1057
|
-
version: "
|
1095
|
+
name: CLOCK_16BIT_DRV_INTERFACE,
|
1096
|
+
version: "1.0.0",
|
1058
1097
|
};
|
1059
1098
|
};
|
1060
1099
|
|
1061
1100
|
private getClockApplicationInterfacePayload = ():
|
1062
1101
|
| Processor.Dictionary<clock_16bit_config_interface.ProcessedPayload>
|
1063
1102
|
| undefined => {
|
1064
|
-
const clockApplicationInterfacePayloads: Processor.Dictionary<
|
1103
|
+
const clockApplicationInterfacePayloads: Processor.Dictionary<clock_16bit_drv_interface.ProcessedPayload> = {};
|
1065
1104
|
const clockApplicationInterfaceRequests:
|
1066
|
-
| Processor.Dictionary<
|
1105
|
+
| Processor.Dictionary<clock_16bit_drv_interface.Arguments>
|
1067
1106
|
| undefined = this.dataModel
|
1068
1107
|
.getExportInterfaces()
|
1069
|
-
.getInterface("
|
1108
|
+
.getInterface("clock_16bit_drv_interface", this.getClock16bitDrvInterfaceId())
|
1070
1109
|
?.args;
|
1071
1110
|
const interfaceData: clock_16bit_config_interface.ProcessedPayload = this.dataModel.getImportValue(
|
1072
1111
|
CLOCK_16BIT_CONFIG_INTERFACE,
|
@@ -1100,7 +1139,7 @@ class MyDerivedData implements DerivedData {
|
|
1100
1139
|
case "canfd_clock":
|
1101
1140
|
exportName = "CAN FD Clock";
|
1102
1141
|
break;
|
1103
|
-
case "
|
1142
|
+
case "clock_16bit_drv_interface":
|
1104
1143
|
exportName = "Clock Drv Config";
|
1105
1144
|
break;
|
1106
1145
|
default:
|
package/src/moduleConfig.json
CHANGED
@@ -41,7 +41,7 @@
|
|
41
41
|
"import": {
|
42
42
|
"interfaceId": {
|
43
43
|
"name": "clock-16bit-config-interface",
|
44
|
-
"version": "^1.1.
|
44
|
+
"version": "^1.1.2"
|
45
45
|
},
|
46
46
|
"isRequired": true
|
47
47
|
}
|
@@ -58,12 +58,12 @@
|
|
58
58
|
}
|
59
59
|
]
|
60
60
|
},
|
61
|
-
"
|
61
|
+
"clock_16bit_drv_interface": {
|
62
62
|
"interfaces": [
|
63
63
|
{
|
64
64
|
"interfaceId": {
|
65
|
-
"name": "clock-16bit-
|
66
|
-
"version": "
|
65
|
+
"name": "clock-16bit-drv-interface",
|
66
|
+
"version": "1.0.0"
|
67
67
|
}
|
68
68
|
}
|
69
69
|
]
|
@@ -117,6 +117,17 @@
|
|
117
117
|
"validation": true,
|
118
118
|
"category": "software"
|
119
119
|
},
|
120
|
+
"setMaximumSystemFrequency": {
|
121
|
+
"name": "setMaximumSystemFrequency",
|
122
|
+
"description": "Set System(FOSC) Frequency to Maximum",
|
123
|
+
"type": "boolean",
|
124
|
+
"defaultValue": false,
|
125
|
+
"group": "systemClock",
|
126
|
+
"tabs": [
|
127
|
+
"main"
|
128
|
+
],
|
129
|
+
"category": "software"
|
130
|
+
},
|
120
131
|
"calculatedSystemFrequency_Hz": {
|
121
132
|
"name": "calculatedSystemFrequency_Hz",
|
122
133
|
"description": "Calculated System Frequency(FOSC)",
|