@mchp-mcc/scf-pic8-pwm-v2 4.2.8 → 4.2.10
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 +8 -10
- package/Readme.md +8 -10
- package/output/autoCreator.js +486 -11
- package/output/autoCreator.js.map +1 -1
- package/output/autoProcessor.js +486 -11
- package/output/autoProcessor.js.map +1 -1
- package/output/creator.js +213 -11
- package/output/creator.js.map +1 -1
- package/output/processor.js +213 -11
- package/output/processor.js.map +1 -1
- package/package.json +12 -11
- package/src/CreatorFunctions.ts +0 -17
- package/src/DerivedData.test.ts +0 -654
- package/src/DerivedData.ts +0 -333
- package/src/GeneratorModel.test.tsx +0 -39
- package/src/GeneratorModel.tsx +0 -65
- package/src/PinsLogic.test.ts +0 -103
- package/src/PinsLogic.ts +0 -26
- package/src/PwmCalculator.test.tsx +0 -113
- package/src/PwmCalculator.tsx +0 -67
- package/src/catalog.json +0 -23
- package/src/interfaces/pwm_general_parameters.test.tsx +0 -40
- package/src/interfaces/pwm_general_parameters.tsx +0 -121
- package/src/moduleConfig.json +0 -371
- package/src/pinlogic.json +0 -20
- package/src/pinsdata.json +0 -15
package/output/autoProcessor.js
CHANGED
|
@@ -880,6 +880,302 @@ var getPinsLogic = function getPinsLogic() {
|
|
|
880
880
|
|
|
881
881
|
/***/ }),
|
|
882
882
|
|
|
883
|
+
/***/ "./node_modules/@microchip/pin-standard/lib/index.js":
|
|
884
|
+
/*!***********************************************************!*\
|
|
885
|
+
!*** ./node_modules/@microchip/pin-standard/lib/index.js ***!
|
|
886
|
+
\***********************************************************/
|
|
887
|
+
/*! no static exports found */
|
|
888
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
889
|
+
|
|
890
|
+
"use strict";
|
|
891
|
+
|
|
892
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
893
|
+
var pin_standard_1 = __webpack_require__(/*! ./pin-standard */ "./node_modules/@microchip/pin-standard/lib/pin-standard.js");
|
|
894
|
+
exports.pin_standard = pin_standard_1.pin_standard;
|
|
895
|
+
exports.pin_state = pin_standard_1.pin_state;
|
|
896
|
+
exports.direction = pin_standard_1.direction;
|
|
897
|
+
exports.behaviour = pin_standard_1.behaviour;
|
|
898
|
+
exports.data_schema = pin_standard_1.data_schema;
|
|
899
|
+
exports.pin_attribs_enum = pin_standard_1.pin_attribs_enum;
|
|
900
|
+
exports.actiontype = pin_standard_1.actiontype;
|
|
901
|
+
exports.QueryAdapterKey = pin_standard_1.QueryAdapterKey;
|
|
902
|
+
//# sourceMappingURL=index.js.map
|
|
903
|
+
|
|
904
|
+
/***/ }),
|
|
905
|
+
|
|
906
|
+
/***/ "./node_modules/@microchip/pin-standard/lib/pin-standard.js":
|
|
907
|
+
/*!******************************************************************!*\
|
|
908
|
+
!*** ./node_modules/@microchip/pin-standard/lib/pin-standard.js ***!
|
|
909
|
+
\******************************************************************/
|
|
910
|
+
/*! no static exports found */
|
|
911
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
912
|
+
|
|
913
|
+
"use strict";
|
|
914
|
+
|
|
915
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
916
|
+
exports.pin_standard = function () {
|
|
917
|
+
return {
|
|
918
|
+
interfaceId: {
|
|
919
|
+
name: "pin-standard",
|
|
920
|
+
version: "0.1.0",
|
|
921
|
+
},
|
|
922
|
+
};
|
|
923
|
+
};
|
|
924
|
+
var QueryAdapterKey;
|
|
925
|
+
(function (QueryAdapterKey) {
|
|
926
|
+
QueryAdapterKey["ALLPINS"] = "allpins";
|
|
927
|
+
QueryAdapterKey["ALLPINS_FOR_ATTRIBS"] = "allpins_for_attribs";
|
|
928
|
+
QueryAdapterKey["PPS"] = "pps";
|
|
929
|
+
QueryAdapterKey["PORTMUX"] = "portmux";
|
|
930
|
+
QueryAdapterKey["HASPPS"] = "hasPPS";
|
|
931
|
+
})(QueryAdapterKey = exports.QueryAdapterKey || (exports.QueryAdapterKey = {}));
|
|
932
|
+
var pin_state;
|
|
933
|
+
(function (pin_state) {
|
|
934
|
+
pin_state["EMPTY"] = "E";
|
|
935
|
+
pin_state["LOCKED"] = "L";
|
|
936
|
+
pin_state["UNLOCK"] = "UL";
|
|
937
|
+
pin_state["DiSABLE_LOCK"] = "DL";
|
|
938
|
+
pin_state["UNLOCKED_DISABLED"] = "DUL";
|
|
939
|
+
pin_state["LOCKED_LINK"] = "LL";
|
|
940
|
+
pin_state["UNLOCKED_MUX"] = "MUL";
|
|
941
|
+
pin_state["LOCKED_CONFLICT"] = "CL";
|
|
942
|
+
})(pin_state = exports.pin_state || (exports.pin_state = {}));
|
|
943
|
+
var pin_interrupts_enum;
|
|
944
|
+
(function (pin_interrupts_enum) {
|
|
945
|
+
pin_interrupts_enum["INTDIS_BUFFEN"] = "INTDIS_BUFFEN";
|
|
946
|
+
pin_interrupts_enum["BOTH_EDGES"] = "BOTH_EDGES";
|
|
947
|
+
pin_interrupts_enum["RISING_EDGE"] = "RISING_EDGE";
|
|
948
|
+
pin_interrupts_enum["FALLING_EDGE"] = "FALLING_EDGE";
|
|
949
|
+
pin_interrupts_enum["NONE"] = "NONE";
|
|
950
|
+
pin_interrupts_enum["LOW_LEVEL"] = "LOW_LEVEL";
|
|
951
|
+
})(pin_interrupts_enum = exports.pin_interrupts_enum || (exports.pin_interrupts_enum = {}));
|
|
952
|
+
var pin_attribs_enum;
|
|
953
|
+
(function (pin_attribs_enum) {
|
|
954
|
+
pin_attribs_enum["aliasReEx"] = "aliasReEx";
|
|
955
|
+
pin_attribs_enum["cname"] = "cname";
|
|
956
|
+
pin_attribs_enum["high"] = "high";
|
|
957
|
+
pin_attribs_enum["inv"] = "inv";
|
|
958
|
+
pin_attribs_enum["wpu"] = "wpu";
|
|
959
|
+
pin_attribs_enum["wpd"] = "wpd";
|
|
960
|
+
pin_attribs_enum["od"] = "od";
|
|
961
|
+
pin_attribs_enum["analog"] = "analog";
|
|
962
|
+
pin_attribs_enum["ioc"] = "ioc";
|
|
963
|
+
pin_attribs_enum["intcallback"] = "intcallback";
|
|
964
|
+
pin_attribs_enum["alias"] = "alias";
|
|
965
|
+
pin_attribs_enum["advInpBuff"] = "advInpBuff";
|
|
966
|
+
})(pin_attribs_enum = exports.pin_attribs_enum || (exports.pin_attribs_enum = {}));
|
|
967
|
+
var actiontype;
|
|
968
|
+
(function (actiontype) {
|
|
969
|
+
actiontype["SETACTION"] = "SETACTION";
|
|
970
|
+
actiontype["ATTRIBACTION"] = "ATTRIBACTION";
|
|
971
|
+
})(actiontype = exports.actiontype || (exports.actiontype = {}));
|
|
972
|
+
var direction;
|
|
973
|
+
(function (direction) {
|
|
974
|
+
direction["output"] = "output";
|
|
975
|
+
direction["input"] = "input";
|
|
976
|
+
direction["bidirectional"] = "bidirectional";
|
|
977
|
+
})(direction = exports.direction || (exports.direction = {}));
|
|
978
|
+
var behaviour;
|
|
979
|
+
(function (behaviour) {
|
|
980
|
+
behaviour["LOCK_UNLOCK"] = "LOCK_UNLOCK";
|
|
981
|
+
behaviour["ALWAYS_LOCKED"] = "ALWAYS_LOCKED";
|
|
982
|
+
behaviour["SINGLE_PIN_MUX"] = "SINGLE_PIN_MUX";
|
|
983
|
+
behaviour["OPTIONAL_PIN_MUX"] = "OPTIONAL_PIN_MUX";
|
|
984
|
+
behaviour["PPS"] = "PPS";
|
|
985
|
+
behaviour["APFCON"] = "APFCON";
|
|
986
|
+
behaviour["PORTMUX"] = "PORTMUX";
|
|
987
|
+
behaviour["EXCLUSIVE_LOCK"] = "EXCLUSIVE_LOCK";
|
|
988
|
+
behaviour["LOCKED_DISABLED"] = "LOCKED_DISABLED";
|
|
989
|
+
})(behaviour = exports.behaviour || (exports.behaviour = {}));
|
|
990
|
+
//------------------------------------ schema ------------------------------------//
|
|
991
|
+
exports.data_schema = {
|
|
992
|
+
$schema: "http://json-schema.org/draft-07/schema#",
|
|
993
|
+
$ref: "#/definitions/intf_data",
|
|
994
|
+
definitions: {
|
|
995
|
+
intf_data: {
|
|
996
|
+
type: "object",
|
|
997
|
+
properties: {
|
|
998
|
+
rows: {
|
|
999
|
+
type: "array",
|
|
1000
|
+
items: {
|
|
1001
|
+
$ref: "#/definitions/pin_row",
|
|
1002
|
+
},
|
|
1003
|
+
},
|
|
1004
|
+
},
|
|
1005
|
+
required: ["rows"],
|
|
1006
|
+
additionalProperties: false,
|
|
1007
|
+
},
|
|
1008
|
+
pin_row: {
|
|
1009
|
+
type: "object",
|
|
1010
|
+
properties: {
|
|
1011
|
+
name: {
|
|
1012
|
+
type: "string",
|
|
1013
|
+
},
|
|
1014
|
+
module: {
|
|
1015
|
+
type: "string",
|
|
1016
|
+
},
|
|
1017
|
+
function: {
|
|
1018
|
+
type: "string",
|
|
1019
|
+
},
|
|
1020
|
+
direction: {
|
|
1021
|
+
$ref: "#/definitions/direction",
|
|
1022
|
+
},
|
|
1023
|
+
filter: {
|
|
1024
|
+
$ref: "#/definitions/filter",
|
|
1025
|
+
},
|
|
1026
|
+
behaviour: {
|
|
1027
|
+
$ref: "#/definitions/behaviour",
|
|
1028
|
+
},
|
|
1029
|
+
behaviourMeta: {
|
|
1030
|
+
$ref: "#/definitions/behaviourMeta",
|
|
1031
|
+
},
|
|
1032
|
+
attribs: {
|
|
1033
|
+
type: "array",
|
|
1034
|
+
items: {
|
|
1035
|
+
$ref: "#/definitions/pin_attribs",
|
|
1036
|
+
},
|
|
1037
|
+
},
|
|
1038
|
+
groupsdata: {
|
|
1039
|
+
$ref: "#/definitions/pingroups_data",
|
|
1040
|
+
},
|
|
1041
|
+
actions: {},
|
|
1042
|
+
},
|
|
1043
|
+
required: ["name", "module", "function", "direction", "filter", "behaviour"],
|
|
1044
|
+
additionalProperties: false,
|
|
1045
|
+
},
|
|
1046
|
+
direction: {
|
|
1047
|
+
type: "string",
|
|
1048
|
+
enum: ["output", "input", "bidirectional"],
|
|
1049
|
+
},
|
|
1050
|
+
filter: {
|
|
1051
|
+
type: "object",
|
|
1052
|
+
properties: {
|
|
1053
|
+
module: {
|
|
1054
|
+
type: "string",
|
|
1055
|
+
},
|
|
1056
|
+
aliasReEx: {
|
|
1057
|
+
type: "string",
|
|
1058
|
+
},
|
|
1059
|
+
},
|
|
1060
|
+
required: ["module", "aliasReEx"],
|
|
1061
|
+
additionalProperties: false,
|
|
1062
|
+
},
|
|
1063
|
+
behaviour: {
|
|
1064
|
+
type: "string",
|
|
1065
|
+
enum: [
|
|
1066
|
+
"LOCK_UNLOCK",
|
|
1067
|
+
"ALWAYS_LOCKED",
|
|
1068
|
+
"SINGLE_PIN_MUX",
|
|
1069
|
+
"OPTIONAL_PIN_MUX",
|
|
1070
|
+
"PPS",
|
|
1071
|
+
"PORTMUX",
|
|
1072
|
+
"EXCLUSIVE_LOCK",
|
|
1073
|
+
"LOCKED_DISABLED",
|
|
1074
|
+
],
|
|
1075
|
+
},
|
|
1076
|
+
behaviourMeta: {
|
|
1077
|
+
type: "object",
|
|
1078
|
+
properties: {
|
|
1079
|
+
lockPinRegEx: {
|
|
1080
|
+
type: "string",
|
|
1081
|
+
},
|
|
1082
|
+
},
|
|
1083
|
+
required: ["lockPinRegEx"],
|
|
1084
|
+
additionalProperties: false,
|
|
1085
|
+
},
|
|
1086
|
+
pin_attribs: {
|
|
1087
|
+
type: "object",
|
|
1088
|
+
properties: {
|
|
1089
|
+
aliasReEx: {
|
|
1090
|
+
type: "string",
|
|
1091
|
+
},
|
|
1092
|
+
cname: {
|
|
1093
|
+
type: "string",
|
|
1094
|
+
},
|
|
1095
|
+
high: {
|
|
1096
|
+
type: "boolean",
|
|
1097
|
+
},
|
|
1098
|
+
inv: {
|
|
1099
|
+
type: "boolean",
|
|
1100
|
+
},
|
|
1101
|
+
wpu: {
|
|
1102
|
+
type: "boolean",
|
|
1103
|
+
},
|
|
1104
|
+
wpd: {
|
|
1105
|
+
type: "boolean",
|
|
1106
|
+
},
|
|
1107
|
+
od: {
|
|
1108
|
+
type: "boolean",
|
|
1109
|
+
},
|
|
1110
|
+
analog: {
|
|
1111
|
+
type: "boolean",
|
|
1112
|
+
},
|
|
1113
|
+
ioc: {
|
|
1114
|
+
$ref: "#/definitions/pin_interrupts_enum",
|
|
1115
|
+
},
|
|
1116
|
+
bidirection_out: {
|
|
1117
|
+
type: "boolean",
|
|
1118
|
+
},
|
|
1119
|
+
},
|
|
1120
|
+
required: ["aliasReEx"],
|
|
1121
|
+
additionalProperties: false,
|
|
1122
|
+
},
|
|
1123
|
+
pin_interrupts_enum: {
|
|
1124
|
+
type: "string",
|
|
1125
|
+
enum: [
|
|
1126
|
+
"INTDIS_BUFFEN",
|
|
1127
|
+
"BOTH_EDGES",
|
|
1128
|
+
"RISING_EDGE",
|
|
1129
|
+
"FALLING_EDGE",
|
|
1130
|
+
"NONE",
|
|
1131
|
+
"LOW_LEVEL",
|
|
1132
|
+
],
|
|
1133
|
+
},
|
|
1134
|
+
pingroups_data: {
|
|
1135
|
+
type: "object",
|
|
1136
|
+
properties: {
|
|
1137
|
+
groups: {
|
|
1138
|
+
type: "array",
|
|
1139
|
+
items: {
|
|
1140
|
+
$ref: "#/definitions/pins_group",
|
|
1141
|
+
},
|
|
1142
|
+
},
|
|
1143
|
+
},
|
|
1144
|
+
required: ["groups"],
|
|
1145
|
+
additionalProperties: false,
|
|
1146
|
+
},
|
|
1147
|
+
pins_group: {
|
|
1148
|
+
type: "object",
|
|
1149
|
+
properties: {
|
|
1150
|
+
name: {
|
|
1151
|
+
type: "string",
|
|
1152
|
+
},
|
|
1153
|
+
filter: {
|
|
1154
|
+
$ref: "#/definitions/grpfilter",
|
|
1155
|
+
},
|
|
1156
|
+
datapath: {
|
|
1157
|
+
type: "string",
|
|
1158
|
+
},
|
|
1159
|
+
},
|
|
1160
|
+
required: ["name", "filter"],
|
|
1161
|
+
additionalProperties: false,
|
|
1162
|
+
},
|
|
1163
|
+
grpfilter: {
|
|
1164
|
+
type: "object",
|
|
1165
|
+
properties: {
|
|
1166
|
+
aliasReEx: {
|
|
1167
|
+
type: "string",
|
|
1168
|
+
},
|
|
1169
|
+
},
|
|
1170
|
+
required: ["aliasReEx"],
|
|
1171
|
+
additionalProperties: false,
|
|
1172
|
+
},
|
|
1173
|
+
},
|
|
1174
|
+
};
|
|
1175
|
+
//# sourceMappingURL=pin-standard.js.map
|
|
1176
|
+
|
|
1177
|
+
/***/ }),
|
|
1178
|
+
|
|
883
1179
|
/***/ "./node_modules/@microchip/scf-automodule-impl/lib/autoModule/ContextualHelp.js":
|
|
884
1180
|
/*!**************************************************************************************!*\
|
|
885
1181
|
!*** ./node_modules/@microchip/scf-automodule-impl/lib/autoModule/ContextualHelp.js ***!
|
|
@@ -2735,6 +3031,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2735
3031
|
/* harmony import */ var _generated_module_src_pins_PCPHelper__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../generated_module/src/pins/PCPHelper */ "./generated_module/src/pins/PCPHelper.ts");
|
|
2736
3032
|
/* harmony import */ var _microchip_scf_validators_lib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @microchip/scf-validators/lib */ "./node_modules/@microchip/scf-validators/lib/index.js");
|
|
2737
3033
|
/* harmony import */ var _microchip_scf_validators_lib__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_microchip_scf_validators_lib__WEBPACK_IMPORTED_MODULE_6__);
|
|
3034
|
+
/* harmony import */ var _microchip_pin_standard_lib_pin_standard__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @microchip/pin-standard/lib/pin-standard */ "./node_modules/@microchip/pin-standard/lib/pin-standard.js");
|
|
3035
|
+
/* harmony import */ var _microchip_pin_standard_lib_pin_standard__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_microchip_pin_standard_lib_pin_standard__WEBPACK_IMPORTED_MODULE_7__);
|
|
2738
3036
|
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; } } }; }
|
|
2739
3037
|
|
|
2740
3038
|
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); }
|
|
@@ -2752,6 +3050,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
2752
3050
|
|
|
2753
3051
|
|
|
2754
3052
|
|
|
3053
|
+
|
|
2755
3054
|
var getDerivedData = function getDerivedData(dataModel) {
|
|
2756
3055
|
if (dataModel) {
|
|
2757
3056
|
return new MyDerivedData(dataModel);
|
|
@@ -2838,7 +3137,8 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
|
2838
3137
|
getPinsLogic: _generated_module_src_pins_PCPHelper__WEBPACK_IMPORTED_MODULE_5__["getPinsLogic"],
|
|
2839
3138
|
importName: _this.friendlyImportName,
|
|
2840
3139
|
componentNameValidator: _this.componentNameValidator,
|
|
2841
|
-
getCustomUiErrors: _this.getCustomUiErrors
|
|
3140
|
+
getCustomUiErrors: _this.getCustomUiErrors,
|
|
3141
|
+
pin_standard_args: _this.getPinstandardArgs
|
|
2842
3142
|
};
|
|
2843
3143
|
});
|
|
2844
3144
|
|
|
@@ -2881,6 +3181,14 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
|
2881
3181
|
}
|
|
2882
3182
|
});
|
|
2883
3183
|
|
|
3184
|
+
_defineProperty(this, "getPinstandardArgs", function () {
|
|
3185
|
+
var args = {
|
|
3186
|
+
queryAdapters: ["pps", "apfcon"],
|
|
3187
|
+
queryAdapterMap: _defineProperty({}, _microchip_pin_standard_lib_pin_standard__WEBPACK_IMPORTED_MODULE_7__["QueryAdapterKey"].ALLPINS, "^PWM[0-9]{0,1}$")
|
|
3188
|
+
};
|
|
3189
|
+
return args;
|
|
3190
|
+
});
|
|
3191
|
+
|
|
2884
3192
|
_defineProperty(this, "overrideDefaultOptions", function (componentName) {
|
|
2885
3193
|
switch (componentName) {
|
|
2886
3194
|
case "timerSelection":
|
|
@@ -3204,37 +3512,204 @@ var getHeaderFiles = function getHeaderFiles(model) {
|
|
|
3204
3512
|
__webpack_require__.r(__webpack_exports__);
|
|
3205
3513
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCompletePinData", function() { return getCompletePinData; });
|
|
3206
3514
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getRowData", function() { return getRowData; });
|
|
3515
|
+
/* harmony import */ var _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @microchip/pin-standard */ "./node_modules/@microchip/pin-standard/lib/index.js");
|
|
3516
|
+
/* harmony import */ var _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__);
|
|
3207
3517
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
3208
3518
|
|
|
3209
3519
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
3210
3520
|
|
|
3211
3521
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
3212
3522
|
|
|
3213
|
-
// provide complete dynamic data for all pin rows. It overrides static pindata.json
|
|
3523
|
+
// provide complete dynamic data for all pin rows. It overrides static pindata.json
|
|
3524
|
+
|
|
3214
3525
|
var getCompletePinData = function getCompletePinData(appModel) {
|
|
3215
3526
|
// way to programatically override the json data
|
|
3216
3527
|
return {};
|
|
3217
3528
|
}; // overrides pin data for a particular row based on model.
|
|
3218
3529
|
|
|
3219
3530
|
function getRowData(appModel, rowData) {
|
|
3220
|
-
var _appModel$
|
|
3531
|
+
var _appModel$getName, _appModel$getImportVa, _appModel$getComponen, _appModel$getComponen2, _appModel$getComponen3, _appModel$getComponen4;
|
|
3221
3532
|
|
|
3222
|
-
var
|
|
3533
|
+
var moduleName = (_appModel$getName = appModel.getName()) !== null && _appModel$getName !== void 0 ? _appModel$getName : "PWM";
|
|
3534
|
+
var allPinsData = (_appModel$getImportVa = appModel.getImportValue("pin_standard")) === null || _appModel$getImportVa === void 0 ? void 0 : _appModel$getImportVa.allpins;
|
|
3535
|
+
var modulePins = getModulePins(allPinsData, moduleName);
|
|
3536
|
+
var pinName = getPinName(modulePins, rowData.filter.aliasReEx);
|
|
3537
|
+
var pinBehaviour = getpinBehaviour(allPinsData, moduleName, pinName);
|
|
3538
|
+
var isPPS = pinBehaviour === "pps";
|
|
3539
|
+
var isAPFCON = pinBehaviour === "apfcon";
|
|
3540
|
+
|
|
3541
|
+
if (pinName === "") {
|
|
3542
|
+
return undefined;
|
|
3543
|
+
}
|
|
3223
3544
|
|
|
3224
3545
|
if (rowData.name === "out") {
|
|
3225
3546
|
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3226
|
-
module:
|
|
3227
|
-
"function":
|
|
3547
|
+
module: moduleName,
|
|
3548
|
+
"function": moduleName + "OUT",
|
|
3228
3549
|
filter: {
|
|
3229
|
-
module:
|
|
3230
|
-
aliasReEx: "
|
|
3231
|
-
}
|
|
3550
|
+
module: moduleName,
|
|
3551
|
+
aliasReEx: "^".concat(moduleName, "(OUT){0,1}$")
|
|
3552
|
+
},
|
|
3553
|
+
behaviour: isPPS ? _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].PPS : isAPFCON ? _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].APFCON : _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].LOCK_UNLOCK
|
|
3232
3554
|
});
|
|
3555
|
+
|
|
3556
|
+
if (appModel.isComponentValue("pwmoePwmcon") === true) {
|
|
3557
|
+
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3558
|
+
behaviourMeta: {
|
|
3559
|
+
lockPinRegEx: "^".concat(moduleName, "(OUT){0,1}$")
|
|
3560
|
+
}
|
|
3561
|
+
});
|
|
3562
|
+
}
|
|
3563
|
+
} else if (rowData.name === "pwmx0") {
|
|
3564
|
+
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3565
|
+
module: moduleName,
|
|
3566
|
+
"function": moduleName + "0OUT",
|
|
3567
|
+
filter: _objectSpread(_objectSpread({}, rowData.filter), {}, {
|
|
3568
|
+
module: moduleName
|
|
3569
|
+
}),
|
|
3570
|
+
behaviour: isPPS ? _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].PPS : isAPFCON ? _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].APFCON : _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].LOCK_UNLOCK
|
|
3571
|
+
});
|
|
3572
|
+
|
|
3573
|
+
if (appModel.isComponentValue("pwmoe0Pwmaoe") === true) {
|
|
3574
|
+
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3575
|
+
behaviourMeta: {
|
|
3576
|
+
lockPinRegEx: moduleName + "0"
|
|
3577
|
+
}
|
|
3578
|
+
});
|
|
3579
|
+
}
|
|
3580
|
+
} else if (rowData.name === "pwmx1") {
|
|
3581
|
+
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3582
|
+
module: moduleName,
|
|
3583
|
+
"function": moduleName + "1OUT",
|
|
3584
|
+
filter: _objectSpread(_objectSpread({}, rowData.filter), {}, {
|
|
3585
|
+
module: moduleName
|
|
3586
|
+
}),
|
|
3587
|
+
behaviour: isPPS ? _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].PPS : isAPFCON ? _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].APFCON : _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].LOCK_UNLOCK
|
|
3588
|
+
});
|
|
3589
|
+
|
|
3590
|
+
if (appModel.isComponentValue("pwmoe1Pwmaoe") === true) {
|
|
3591
|
+
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3592
|
+
behaviourMeta: {
|
|
3593
|
+
lockPinRegEx: moduleName + "1"
|
|
3594
|
+
}
|
|
3595
|
+
});
|
|
3596
|
+
}
|
|
3597
|
+
} else if (rowData.name === "pwmx2") {
|
|
3598
|
+
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3599
|
+
module: moduleName,
|
|
3600
|
+
"function": moduleName + "2OUT",
|
|
3601
|
+
filter: _objectSpread(_objectSpread({}, rowData.filter), {}, {
|
|
3602
|
+
module: moduleName
|
|
3603
|
+
}),
|
|
3604
|
+
behaviour: isPPS ? _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].PPS : isAPFCON ? _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].APFCON : _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].LOCK_UNLOCK
|
|
3605
|
+
});
|
|
3606
|
+
|
|
3607
|
+
if (appModel.isComponentValue("pwmoe2Pwmaoe") === true) {
|
|
3608
|
+
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3609
|
+
behaviourMeta: {
|
|
3610
|
+
lockPinRegEx: moduleName + "2"
|
|
3611
|
+
}
|
|
3612
|
+
});
|
|
3613
|
+
}
|
|
3614
|
+
} else if (rowData.name === "pwmx3") {
|
|
3615
|
+
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3616
|
+
module: moduleName,
|
|
3617
|
+
"function": moduleName + "3OUT",
|
|
3618
|
+
filter: _objectSpread(_objectSpread({}, rowData.filter), {}, {
|
|
3619
|
+
module: moduleName
|
|
3620
|
+
}),
|
|
3621
|
+
behaviour: isPPS ? _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].PPS : isAPFCON ? _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].APFCON : _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__["behaviour"].LOCK_UNLOCK
|
|
3622
|
+
});
|
|
3623
|
+
|
|
3624
|
+
if (appModel.isComponentValue("pwmoe3Pwmaoe") === true) {
|
|
3625
|
+
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3626
|
+
behaviourMeta: {
|
|
3627
|
+
lockPinRegEx: moduleName + "3"
|
|
3628
|
+
}
|
|
3629
|
+
});
|
|
3630
|
+
}
|
|
3631
|
+
}
|
|
3632
|
+
|
|
3633
|
+
var rowActions = [];
|
|
3634
|
+
var pwmx0Regcomponent = (_appModel$getComponen = appModel.getComponent("pwmoe0Pwmaoe")) === null || _appModel$getComponen === void 0 ? void 0 : _appModel$getComponen.component;
|
|
3635
|
+
var pwmx1Regcomponent = (_appModel$getComponen2 = appModel.getComponent("pwmoe1Pwmaoe")) === null || _appModel$getComponen2 === void 0 ? void 0 : _appModel$getComponen2.component;
|
|
3636
|
+
var pwmx2Regcomponent = (_appModel$getComponen3 = appModel.getComponent("pwmoe2Pwmaoe")) === null || _appModel$getComponen3 === void 0 ? void 0 : _appModel$getComponen3.component;
|
|
3637
|
+
var pwmx3Regcomponent = (_appModel$getComponen4 = appModel.getComponent("pwmoe3Pwmaoe")) === null || _appModel$getComponen4 === void 0 ? void 0 : _appModel$getComponen4.component;
|
|
3638
|
+
|
|
3639
|
+
if (pwmx0Regcomponent) {
|
|
3640
|
+
var _appModel$getPCPHelpe;
|
|
3641
|
+
|
|
3642
|
+
rowActions = rowActions.concat((_appModel$getPCPHelpe = appModel.getPCPHelper) === null || _appModel$getPCPHelpe === void 0 ? void 0 : _appModel$getPCPHelpe.call(appModel).stateActionBuilder(rowData).rowWithName("pwmx0").forComponent(pwmx0Regcomponent).addIfLockedSetValue(moduleName + "0", true).addIfUnLockedSetValue(".*", false).build());
|
|
3643
|
+
}
|
|
3644
|
+
|
|
3645
|
+
if (pwmx1Regcomponent) {
|
|
3646
|
+
var _appModel$getPCPHelpe2;
|
|
3647
|
+
|
|
3648
|
+
rowActions = rowActions.concat((_appModel$getPCPHelpe2 = appModel.getPCPHelper) === null || _appModel$getPCPHelpe2 === void 0 ? void 0 : _appModel$getPCPHelpe2.call(appModel).stateActionBuilder(rowData).rowWithName("pwmx1").forComponent(pwmx1Regcomponent).addIfLockedSetValue(moduleName + "1", true).addIfUnLockedSetValue(".*", false).build());
|
|
3649
|
+
}
|
|
3650
|
+
|
|
3651
|
+
if (pwmx2Regcomponent) {
|
|
3652
|
+
var _appModel$getPCPHelpe3;
|
|
3653
|
+
|
|
3654
|
+
rowActions = rowActions.concat((_appModel$getPCPHelpe3 = appModel.getPCPHelper) === null || _appModel$getPCPHelpe3 === void 0 ? void 0 : _appModel$getPCPHelpe3.call(appModel).stateActionBuilder(rowData).rowWithName("pwmx2").forComponent(pwmx2Regcomponent).addIfLockedSetValue(moduleName + "2", true).addIfUnLockedSetValue(".*", false).build());
|
|
3233
3655
|
}
|
|
3234
3656
|
|
|
3657
|
+
if (pwmx3Regcomponent) {
|
|
3658
|
+
var _appModel$getPCPHelpe4;
|
|
3659
|
+
|
|
3660
|
+
rowActions = rowActions.concat((_appModel$getPCPHelpe4 = appModel.getPCPHelper) === null || _appModel$getPCPHelpe4 === void 0 ? void 0 : _appModel$getPCPHelpe4.call(appModel).stateActionBuilder(rowData).rowWithName("pwmx3").forComponent(pwmx3Regcomponent).addIfLockedSetValue(moduleName + "3", true).addIfUnLockedSetValue(".*", false).build());
|
|
3661
|
+
}
|
|
3662
|
+
|
|
3663
|
+
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3664
|
+
actions: rowActions
|
|
3665
|
+
});
|
|
3235
3666
|
return rowData;
|
|
3236
3667
|
}
|
|
3237
3668
|
|
|
3669
|
+
var getModulePins = function getModulePins(allPins, moduleName) {
|
|
3670
|
+
var pins = [];
|
|
3671
|
+
|
|
3672
|
+
for (var portPin in allPins) {
|
|
3673
|
+
var _allPins$portPin;
|
|
3674
|
+
|
|
3675
|
+
var modulePins = (_allPins$portPin = allPins[portPin]) === null || _allPins$portPin === void 0 ? void 0 : _allPins$portPin[moduleName];
|
|
3676
|
+
|
|
3677
|
+
for (var modulePin in modulePins) {
|
|
3678
|
+
if (pins.indexOf(modulePin) === -1) {
|
|
3679
|
+
pins.push(modulePin);
|
|
3680
|
+
}
|
|
3681
|
+
}
|
|
3682
|
+
}
|
|
3683
|
+
|
|
3684
|
+
return pins;
|
|
3685
|
+
};
|
|
3686
|
+
|
|
3687
|
+
var getPinName = function getPinName(modulePins, regEx) {
|
|
3688
|
+
var pinName = "";
|
|
3689
|
+
modulePins.forEach(function (pin) {
|
|
3690
|
+
if (pin.match(new RegExp(regEx, "g"))) {
|
|
3691
|
+
pinName = pin;
|
|
3692
|
+
}
|
|
3693
|
+
});
|
|
3694
|
+
return pinName;
|
|
3695
|
+
};
|
|
3696
|
+
|
|
3697
|
+
var getpinBehaviour = function getpinBehaviour(allPins, moduleName, pinName) {
|
|
3698
|
+
for (var portPin in allPins) {
|
|
3699
|
+
var _allPins$portPin2, _allPins$portPin2$mod;
|
|
3700
|
+
|
|
3701
|
+
var pinData = (_allPins$portPin2 = allPins[portPin]) === null || _allPins$portPin2 === void 0 ? void 0 : (_allPins$portPin2$mod = _allPins$portPin2[moduleName]) === null || _allPins$portPin2$mod === void 0 ? void 0 : _allPins$portPin2$mod[pinName];
|
|
3702
|
+
|
|
3703
|
+
if (pinData === null || pinData === void 0 ? void 0 : pinData["pps"]) {
|
|
3704
|
+
return "pps";
|
|
3705
|
+
} else if (pinData === null || pinData === void 0 ? void 0 : pinData["apfcon"]) {
|
|
3706
|
+
return "apfcon";
|
|
3707
|
+
}
|
|
3708
|
+
}
|
|
3709
|
+
|
|
3710
|
+
return "lock_unlock";
|
|
3711
|
+
};
|
|
3712
|
+
|
|
3238
3713
|
/***/ }),
|
|
3239
3714
|
|
|
3240
3715
|
/***/ "./src/PwmCalculator.tsx":
|
|
@@ -3431,7 +3906,7 @@ var Interface = {
|
|
|
3431
3906
|
/*! exports provided: moduleName, deviceType, booleanValues, UIGroups, UIOrder, hasPins, tabs, help, analytics, templates, imports, exports, softwareData, peripherals, default */
|
|
3432
3907
|
/***/ (function(module) {
|
|
3433
3908
|
|
|
3434
|
-
module.exports = JSON.parse("{\"moduleName\":\"PWM\",\"deviceType\":\"PIC\",\"booleanValues\":{\"true\":\"enabled\",\"false\":\"disabled\"},\"UIGroups\":{\"software\":\"Software Settings\",\"hardware\":\"Hardware Settings\"},\"UIOrder\":{\"software\":[\"*\"],\"hardware\":[\"pwmenPwmcon\",\"timerSelection\",\"dutyCycle\",\"pwmdcValue\",\"pwmpolPwmcon\",\"pwmPeriod\",\"pwmFrequency\",\"pwmResolution\",\"*\"]},\"hasPins\":true,\"tabs\":{\"main\":\"Easy View\",\"register\":\"Register Initialization\"},\"help\":{\"url\":\"v2/keyword-lookup?keyword=scf-pic8-pwm-v2&redirect=true\",\"tooltip\":\"Click here to open documentation.\"},\"analytics\":{\"logAlwaysComps\":[\"pwmenPwmcon\",\"pwmFrequency\",\"pwmResolution\"],\"logOnChangeComps\":[],\"compMapping\":{\"pwmenPwmcon\":\"PWM_Enable\",\"pwmFrequency\":\"PWM_Frequency\",\"pwmResolution\":\"PWM_Resolution\"}},\"templates\":[{\"src\":\"output/pwm-v2.c.ftl\",\"dest\":\"pwm/src/${sourceFileName}\",\"generateWithHardware\":true},{\"src\":\"output/pwm-v2.h.ftl\",\"dest\":\"pwm/${headerFileName}\",\"generateWithHardware\":true}],\"imports\":{\"initializer_system\":{\"nodeModule\":{\"importName\":\"systemInit\",\"node\":\"@microchip/initializer-system\"},\"import\":{\"interfaceId\":{\"name\":\"initializer-system\",\"version\":\"^0.5.3\"}}},\"scf_pic8_pwm_v2\":{\"import\":{\"interfaceId\":{\"name\":\"scf-pic8-pwm-v2\",\"version\":\"1.0.0\"},\"isRequired\":true}},\"osc_clocks\":{\"import\":{\"interfaceId\":{\"name\":\"osc-clocks\",\"version\":\"^0.2.0\"}}},\"Timer\":{\"import\":{\"interfaceId\":{\"name\":\"timer-2-4-6-general-parameters\",\"version\":\"^0.2.0\"}}},\"pin_standard\":{\"import\":{\"interfaceId\":{\"name\":\"pin-standard\",\"version\":\"^0.1.0\"}}},\"device_meta\":{\"import\":{\"interfaceId\":{\"name\":\"device-meta\",\"version\":\"^1\"}}}},\"exports\":{\"pwm_general\":{\"interfaces\":[{\"interfaceId\":{\"name\":\"pwm_general_parameters\",\"version\":\"0.1.0\"}}]}},\"softwareData\":{\"componentName\":{\"name\":\"componentName\",\"description\":\"Custom Name\",\"type\":\"string\",\"defaultValue\":\"PWM\",\"group\":\"software\",\"tabs\":[\"main\"],\"category\":\"software\",\"validation\":true},\"tmr2Dependency\":{\"name\":\"tmr2Dependency\",\"description\":\"Timer Dependency Selector\",\"category\":\"import\",\"type\":\"ComboBox\",\"group\":\"software\",\"tabs\":[\"main\"],\"importId\":\"Timer\"},\"timerSelection\":{\"name\":\"timerSelection\",\"description\":\"Select a Timer\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"defaultValue\":{\"value\":\"TMR2\",\"options\":[\"TMR2\",\"TMR4\",\"TMR6\"]},\"tabs\":[\"main\"],\"category\":\"software\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}},\"dutyCycle\":{\"name\":\"dutyCycle\",\"description\":\"Duty Cycle (%)\",\"type\":\"number\",\"defaultValue\":50,\"group\":\"hardware\",\"validation\":true,\"tabs\":[\"main\"],\"category\":\"software\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${instance}DC&redirect=true\"}},\"pwmdcValue\":{\"name\":\"pwmdcValue\",\"description\":\"PWMDC Value\",\"type\":\"number\",\"defaultValue\":0,\"group\":\"hardware\",\"uiBehavior\":{\"readonly\":true},\"tabs\":[\"main\"],\"category\":\"software\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${instance}DC&redirect=true\"}},\"pwmPeriod\":{\"name\":\"pwmPeriod\",\"description\":\"PWM Period (s)\",\"type\":\"number\",\"defaultValue\":0,\"group\":\"hardware\",\"uiBehavior\":{\"readonly\":true},\"tabs\":[\"main\"],\"category\":\"software\"},\"pwmFrequency\":{\"name\":\"pwmFrequency\",\"description\":\"PWM Frequency (Hz)\",\"type\":\"number\",\"defaultValue\":0,\"group\":\"hardware\",\"uiBehavior\":{\"readonly\":true},\"tabs\":[\"main\"],\"category\":\"software\"},\"pwmResolution\":{\"name\":\"pwmResolution\",\"description\":\"PWM Resolution (bits)\",\"type\":\"number\",\"defaultValue\":0,\"group\":\"hardware\",\"uiBehavior\":{\"readonly\":true},\"tabs\":[\"main\"],\"category\":\"software\"}},\"peripherals\":[{\"interfaceId\":{\"name\":\"scf-pic8-pwm-v2\",\"version\":\"1.0.0\"},\"registers\":{\"PWMTMRS\":[{\"setting\":\"CTSEL\",\"name\":\"ctselPwmtmrs\",\"category\":\"hardware\",\"description\":\"Insert Description Here\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"]}],\"CCPTMRS1\":[{\"setting\":\"CTSEL\",\"name\":\"ctselCcptmrs1\",\"description\":\"Insert Description Here\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"],\"category\":\"hardware\"}],\"CCPTMRS\":[{\"setting\":\"CTSEL\",\"name\":\"ctselCcptmrs\",\"category\":\"hardware\",\"description\":\"Insert Description Here\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"]}],\"PWMCON\":[{\"setting\":\"PWMPOL\",\"name\":\"pwmpolPwmcon\",\"description\":\"PWM Polarity\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"main\"],\"category\":\"hardware\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}},{\"setting\":\"PWMOUT\",\"name\":\"pwmoutPwmcon\",\"description\":\"Insert Description Here\",\"type\":\"boolean\",\"group\":\"hardware\",\"tabs\":[\"register\"],\"category\":\"hardware\"},{\"setting\":\"PWMEN\",\"name\":\"pwmenPwmcon\",\"description\":\"PWM Enable\",\"type\":\"boolean\",\"group\":\"hardware\",\"overrideDefaultValue\":\"enabled\",\"tabs\":[\"main\"],\"category\":\"hardware\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}}],\"PWMDCH\":[{\"setting\":\"PWMDCH\",\"name\":\"pwmdchPwmdch\",\"description\":\"Insert Description Here\",\"type\":\"string\",\"group\":\"hardware\",\"tabs\":[\"register\"],\"category\":\"hardware\"}],\"PWMDCL\":[{\"setting\":\"PWMDCL\",\"name\":\"pwmdclPwmdcl\",\"description\":\"Insert Description Here\",\"type\":\"string\",\"group\":\"hardware\",\"tabs\":[\"register\"],\"category\":\"hardware\"}]}}]}");
|
|
3909
|
+
module.exports = JSON.parse("{\"moduleName\":\"PWM\",\"deviceType\":\"PIC\",\"booleanValues\":{\"true\":\"enabled\",\"false\":\"disabled\"},\"UIGroups\":{\"software\":\"Software Settings\",\"hardware\":\"Hardware Settings\",\"additional\":\"Additional Pin Settings\"},\"UIOrder\":{\"software\":[\"*\"],\"hardware\":[\"pwmenPwmcon\",\"pwmoePwmcon\",\"timerSelection\",\"dutyCycle\",\"pwmdcValue\",\"pwmpolPwmcon\",\"pwmPeriod\",\"pwmFrequency\",\"pwmResolution\",\"*\"],\"additional\":[\"pwmoe0Pwmaoe\",\"pwmoe1Pwmaoe\",\"pwmoe2Pwmaoe\",\"pwmoe3Pwmaoe\",\"*\"]},\"hasPins\":true,\"tabs\":{\"main\":\"Easy View\",\"register\":\"Register Initialization\"},\"help\":{\"url\":\"v2/keyword-lookup?keyword=scf-pic8-pwm-v2&redirect=true\",\"tooltip\":\"Click here to open documentation.\"},\"analytics\":{\"logAlwaysComps\":[\"pwmenPwmcon\",\"pwmFrequency\",\"pwmResolution\",\"pwmoePwmcon\"],\"logOnChangeComps\":[],\"compMapping\":{\"pwmenPwmcon\":\"PWM_Enable\",\"pwmFrequency\":\"PWM_Frequency\",\"pwmResolution\":\"PWM_Resolution\",\"pwmoePwmcon\":\"PWM_OutputEnable\"}},\"templates\":[{\"src\":\"output/pwm-v2.c.ftl\",\"dest\":\"pwm/src/${sourceFileName}\",\"generateWithHardware\":true},{\"src\":\"output/pwm-v2.h.ftl\",\"dest\":\"pwm/${headerFileName}\",\"generateWithHardware\":true}],\"imports\":{\"initializer_system\":{\"nodeModule\":{\"importName\":\"systemInit\",\"node\":\"@microchip/initializer-system\"},\"import\":{\"interfaceId\":{\"name\":\"initializer-system\",\"version\":\"^0.5.3\"}}},\"scf_pic8_pwm_v2\":{\"import\":{\"interfaceId\":{\"name\":\"scf-pic8-pwm-v2\",\"version\":\"1.0.0\"},\"isRequired\":true}},\"osc_clocks\":{\"import\":{\"interfaceId\":{\"name\":\"osc-clocks\",\"version\":\"^0.2.0\"}}},\"Timer\":{\"import\":{\"interfaceId\":{\"name\":\"timer-2-4-6-general-parameters\",\"version\":\"^0.2.0\"}}},\"pin_standard\":{\"import\":{\"interfaceId\":{\"name\":\"pin-standard\",\"version\":\"^0.1.0\"}}},\"device_meta\":{\"import\":{\"interfaceId\":{\"name\":\"device-meta\",\"version\":\"^1\"}}}},\"exports\":{\"pwm_general\":{\"interfaces\":[{\"interfaceId\":{\"name\":\"pwm_general_parameters\",\"version\":\"0.1.0\"}}]}},\"softwareData\":{\"componentName\":{\"name\":\"componentName\",\"description\":\"Custom Name\",\"type\":\"string\",\"defaultValue\":\"PWM\",\"group\":\"software\",\"tabs\":[\"main\"],\"category\":\"software\",\"validation\":true},\"tmr2Dependency\":{\"name\":\"tmr2Dependency\",\"description\":\"Timer Dependency Selector\",\"category\":\"import\",\"type\":\"ComboBox\",\"group\":\"software\",\"tabs\":[\"main\"],\"importId\":\"Timer\"},\"timerSelection\":{\"name\":\"timerSelection\",\"description\":\"Select a Timer\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"defaultValue\":{\"value\":\"TMR2\",\"options\":[\"TMR2\",\"TMR4\",\"TMR6\"]},\"tabs\":[\"main\"],\"category\":\"software\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}},\"dutyCycle\":{\"name\":\"dutyCycle\",\"description\":\"Duty Cycle (%)\",\"type\":\"number\",\"defaultValue\":50,\"group\":\"hardware\",\"validation\":true,\"tabs\":[\"main\"],\"category\":\"software\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${instance}DC&redirect=true\"}},\"pwmdcValue\":{\"name\":\"pwmdcValue\",\"description\":\"PWMDC Value\",\"type\":\"number\",\"defaultValue\":0,\"group\":\"hardware\",\"uiBehavior\":{\"readonly\":true},\"tabs\":[\"main\"],\"category\":\"software\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${instance}DC&redirect=true\"}},\"pwmPeriod\":{\"name\":\"pwmPeriod\",\"description\":\"PWM Period (s)\",\"type\":\"number\",\"defaultValue\":0,\"group\":\"hardware\",\"uiBehavior\":{\"readonly\":true},\"tabs\":[\"main\"],\"category\":\"software\"},\"pwmFrequency\":{\"name\":\"pwmFrequency\",\"description\":\"PWM Frequency (Hz)\",\"type\":\"number\",\"defaultValue\":0,\"group\":\"hardware\",\"uiBehavior\":{\"readonly\":true},\"tabs\":[\"main\"],\"category\":\"software\"},\"pwmResolution\":{\"name\":\"pwmResolution\",\"description\":\"PWM Resolution (bits)\",\"type\":\"number\",\"defaultValue\":0,\"group\":\"hardware\",\"uiBehavior\":{\"readonly\":true},\"tabs\":[\"main\"],\"category\":\"software\"}},\"peripherals\":[{\"interfaceId\":{\"name\":\"scf-pic8-pwm-v2\",\"version\":\"1.0.0\"},\"registers\":{\"PWMTMRS\":[{\"setting\":\"CTSEL\",\"name\":\"ctselPwmtmrs\",\"category\":\"hardware\",\"description\":\"Insert Description Here\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"]}],\"CCPTMRS1\":[{\"setting\":\"CTSEL\",\"name\":\"ctselCcptmrs1\",\"description\":\"Insert Description Here\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"],\"category\":\"hardware\"}],\"CCPTMRS\":[{\"setting\":\"CTSEL\",\"name\":\"ctselCcptmrs\",\"category\":\"hardware\",\"description\":\"Insert Description Here\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"register\"]}],\"PWMCON\":[{\"setting\":\"PWMPOL\",\"name\":\"pwmpolPwmcon\",\"description\":\"PWM Polarity\",\"type\":\"ComboBox\",\"group\":\"hardware\",\"tabs\":[\"main\"],\"category\":\"hardware\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}},{\"setting\":\"PWMOE\",\"name\":\"pwmoePwmcon\",\"category\":\"hardware\",\"description\":\"Output Enable\",\"type\":\"boolean\",\"group\":\"hardware\",\"tabs\":[\"main\"],\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}},{\"setting\":\"PWMOUT\",\"name\":\"pwmoutPwmcon\",\"description\":\"Insert Description Here\",\"type\":\"boolean\",\"group\":\"hardware\",\"tabs\":[\"register\"],\"category\":\"hardware\"},{\"setting\":\"PWMEN\",\"name\":\"pwmenPwmcon\",\"description\":\"PWM Enable\",\"type\":\"boolean\",\"group\":\"hardware\",\"overrideDefaultValue\":\"enabled\",\"tabs\":[\"main\"],\"category\":\"hardware\",\"sdlHelp\":{\"tooltip\":\"Click for more Information\",\"url\":\"v2/keyword-lookup?keyword=atmel;device:${deviceName};register:${registerName}&redirect=true\"}}],\"PWMAOE\":[{\"setting\":\"PWMOE0\",\"name\":\"pwmoe0Pwmaoe\",\"category\":\"hardware\",\"description\":\"Enable Additional Output 1\",\"type\":\"boolean\",\"group\":\"additional\",\"tabs\":[\"main\"]},{\"setting\":\"PWMOE1\",\"name\":\"pwmoe1Pwmaoe\",\"category\":\"hardware\",\"description\":\"Enable Additional Output 2\",\"type\":\"boolean\",\"group\":\"additional\",\"tabs\":[\"main\"]},{\"setting\":\"PWMOE2\",\"name\":\"pwmoe2Pwmaoe\",\"category\":\"hardware\",\"description\":\"Enable Additional Output 3\",\"type\":\"boolean\",\"group\":\"additional\",\"tabs\":[\"main\"]},{\"setting\":\"PWMOE3\",\"name\":\"pwmoe3Pwmaoe\",\"category\":\"hardware\",\"description\":\"Enable Additional Output 4\",\"type\":\"boolean\",\"group\":\"additional\",\"tabs\":[\"main\"]}],\"PWMDCH\":[{\"setting\":\"PWMDCH\",\"name\":\"pwmdchPwmdch\",\"description\":\"Insert Description Here\",\"type\":\"string\",\"group\":\"hardware\",\"tabs\":[\"register\"],\"category\":\"hardware\"}],\"PWMDCL\":[{\"setting\":\"PWMDCL\",\"name\":\"pwmdclPwmdcl\",\"description\":\"Insert Description Here\",\"type\":\"string\",\"group\":\"hardware\",\"tabs\":[\"register\"],\"category\":\"hardware\"}]}}]}");
|
|
3435
3910
|
|
|
3436
3911
|
/***/ }),
|
|
3437
3912
|
|
|
@@ -3442,7 +3917,7 @@ module.exports = JSON.parse("{\"moduleName\":\"PWM\",\"deviceType\":\"PIC\",\"bo
|
|
|
3442
3917
|
/*! exports provided: rows, default */
|
|
3443
3918
|
/***/ (function(module) {
|
|
3444
3919
|
|
|
3445
|
-
module.exports = JSON.parse("{\"rows\":[{\"name\":\"out\",\"module\":\"
|
|
3920
|
+
module.exports = JSON.parse("{\"rows\":[{\"name\":\"out\",\"module\":\"PWM1\",\"function\":\"PWM1\",\"direction\":\"output\",\"filter\":{\"module\":\"PWM1\",\"aliasReEx\":\"^PWM\\\\d(OUT){0,1}$\"},\"behaviour\":\"PPS\"},{\"name\":\"pwmx0\",\"module\":\"PWM1\",\"function\":\"PWM10OUT\",\"direction\":\"output\",\"filter\":{\"module\":\"PWM1\",\"aliasReEx\":\"^PWM[0-9]0(OUT){0,1}$\"},\"behaviour\":\"PPS\"},{\"name\":\"pwmx1\",\"module\":\"PWM1\",\"function\":\"PWM10OUT\",\"direction\":\"output\",\"filter\":{\"module\":\"PWM1\",\"aliasReEx\":\"^PWM[0-9]1(OUT){0,1}$\"},\"behaviour\":\"PPS\"},{\"name\":\"pwmx2\",\"module\":\"PWM1\",\"function\":\"PWM10OUT\",\"direction\":\"output\",\"filter\":{\"module\":\"PWM1\",\"aliasReEx\":\"^PWM[0-9]2(OUT){0,1}$\"},\"behaviour\":\"PPS\"},{\"name\":\"pwmx3\",\"module\":\"PWM1\",\"function\":\"PWM10OUT\",\"direction\":\"output\",\"filter\":{\"module\":\"PWM1\",\"aliasReEx\":\"^PWM[0-9]3(OUT){0,1}$\"},\"behaviour\":\"PPS\"}]}");
|
|
3446
3921
|
|
|
3447
3922
|
/***/ })
|
|
3448
3923
|
|