@mchp-mcc/clock-16bit-driver 1.0.2 → 1.0.3
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 +6 -0
- package/output/creator.js +2 -2
- package/output/processor.js +41 -3
- package/output/processor.js.map +1 -1
- package/output/reducer.js +40 -2
- package/output/reducer.js.map +1 -1
- package/package.json +2 -2
- package/src/DerivedData.tsx +29 -0
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.0.3",
|
4
4
|
"scf": {
|
5
5
|
"reducer": "output/reducer.js",
|
6
6
|
"creator": "output/creator.js",
|
@@ -169,4 +169,4 @@
|
|
169
169
|
"description": "- Download & Install [nodejs](https://nodejs.org/en/download/)\r - Download & Install npm\r - Setup node & npm in enviroment path",
|
170
170
|
"main": "lib/generated_module/src/index.js",
|
171
171
|
"author": ""
|
172
|
-
}
|
172
|
+
}
|
package/src/DerivedData.tsx
CHANGED
@@ -110,6 +110,8 @@ class MyDerivedData implements DerivedData {
|
|
110
110
|
.requestedRefClockOutputFrequency_HzValidator,
|
111
111
|
getCustomUiErrors: this.getCustomUiErrors,
|
112
112
|
"clock-16bit-ux-interface_payloads": this.getClockApplicationInterfacePayload,
|
113
|
+
importName: this.friendlyImportName,
|
114
|
+
exportName: this.friendlyExportName,
|
113
115
|
};
|
114
116
|
};
|
115
117
|
|
@@ -1092,6 +1094,33 @@ class MyDerivedData implements DerivedData {
|
|
1092
1094
|
}
|
1093
1095
|
return clockApplicationInterfacePayloads;
|
1094
1096
|
};
|
1097
|
+
private friendlyExportName = (exportKey: string): string => {
|
1098
|
+
let exportName: string;
|
1099
|
+
switch (exportKey) {
|
1100
|
+
case "canfd_clock":
|
1101
|
+
exportName = "CAN FD Clock";
|
1102
|
+
break;
|
1103
|
+
case "clock_16bit_ux_interface":
|
1104
|
+
exportName = "Clock Drv Config";
|
1105
|
+
break;
|
1106
|
+
default:
|
1107
|
+
exportName = exportKey;
|
1108
|
+
break;
|
1109
|
+
}
|
1110
|
+
return exportName;
|
1111
|
+
};
|
1112
|
+
private friendlyImportName = (importKey: string): string => {
|
1113
|
+
let importName: string;
|
1114
|
+
switch (importKey) {
|
1115
|
+
case "clock_16bit_config_interface":
|
1116
|
+
importName = "Clock Configuration";
|
1117
|
+
break;
|
1118
|
+
default:
|
1119
|
+
importName = importKey;
|
1120
|
+
break;
|
1121
|
+
}
|
1122
|
+
return importName;
|
1123
|
+
};
|
1095
1124
|
}
|
1096
1125
|
|
1097
1126
|
export const getSelectedCanfdFreq = (freqList: number[]): number => {
|