@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/autoCreator.js
CHANGED
|
@@ -878,6 +878,302 @@ var getPinsLogic = function getPinsLogic() {
|
|
|
878
878
|
|
|
879
879
|
/***/ }),
|
|
880
880
|
|
|
881
|
+
/***/ "./node_modules/@microchip/pin-standard/lib/index.js":
|
|
882
|
+
/*!***********************************************************!*\
|
|
883
|
+
!*** ./node_modules/@microchip/pin-standard/lib/index.js ***!
|
|
884
|
+
\***********************************************************/
|
|
885
|
+
/*! no static exports found */
|
|
886
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
887
|
+
|
|
888
|
+
"use strict";
|
|
889
|
+
|
|
890
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
891
|
+
var pin_standard_1 = __webpack_require__(/*! ./pin-standard */ "./node_modules/@microchip/pin-standard/lib/pin-standard.js");
|
|
892
|
+
exports.pin_standard = pin_standard_1.pin_standard;
|
|
893
|
+
exports.pin_state = pin_standard_1.pin_state;
|
|
894
|
+
exports.direction = pin_standard_1.direction;
|
|
895
|
+
exports.behaviour = pin_standard_1.behaviour;
|
|
896
|
+
exports.data_schema = pin_standard_1.data_schema;
|
|
897
|
+
exports.pin_attribs_enum = pin_standard_1.pin_attribs_enum;
|
|
898
|
+
exports.actiontype = pin_standard_1.actiontype;
|
|
899
|
+
exports.QueryAdapterKey = pin_standard_1.QueryAdapterKey;
|
|
900
|
+
//# sourceMappingURL=index.js.map
|
|
901
|
+
|
|
902
|
+
/***/ }),
|
|
903
|
+
|
|
904
|
+
/***/ "./node_modules/@microchip/pin-standard/lib/pin-standard.js":
|
|
905
|
+
/*!******************************************************************!*\
|
|
906
|
+
!*** ./node_modules/@microchip/pin-standard/lib/pin-standard.js ***!
|
|
907
|
+
\******************************************************************/
|
|
908
|
+
/*! no static exports found */
|
|
909
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
910
|
+
|
|
911
|
+
"use strict";
|
|
912
|
+
|
|
913
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
914
|
+
exports.pin_standard = function () {
|
|
915
|
+
return {
|
|
916
|
+
interfaceId: {
|
|
917
|
+
name: "pin-standard",
|
|
918
|
+
version: "0.1.0",
|
|
919
|
+
},
|
|
920
|
+
};
|
|
921
|
+
};
|
|
922
|
+
var QueryAdapterKey;
|
|
923
|
+
(function (QueryAdapterKey) {
|
|
924
|
+
QueryAdapterKey["ALLPINS"] = "allpins";
|
|
925
|
+
QueryAdapterKey["ALLPINS_FOR_ATTRIBS"] = "allpins_for_attribs";
|
|
926
|
+
QueryAdapterKey["PPS"] = "pps";
|
|
927
|
+
QueryAdapterKey["PORTMUX"] = "portmux";
|
|
928
|
+
QueryAdapterKey["HASPPS"] = "hasPPS";
|
|
929
|
+
})(QueryAdapterKey = exports.QueryAdapterKey || (exports.QueryAdapterKey = {}));
|
|
930
|
+
var pin_state;
|
|
931
|
+
(function (pin_state) {
|
|
932
|
+
pin_state["EMPTY"] = "E";
|
|
933
|
+
pin_state["LOCKED"] = "L";
|
|
934
|
+
pin_state["UNLOCK"] = "UL";
|
|
935
|
+
pin_state["DiSABLE_LOCK"] = "DL";
|
|
936
|
+
pin_state["UNLOCKED_DISABLED"] = "DUL";
|
|
937
|
+
pin_state["LOCKED_LINK"] = "LL";
|
|
938
|
+
pin_state["UNLOCKED_MUX"] = "MUL";
|
|
939
|
+
pin_state["LOCKED_CONFLICT"] = "CL";
|
|
940
|
+
})(pin_state = exports.pin_state || (exports.pin_state = {}));
|
|
941
|
+
var pin_interrupts_enum;
|
|
942
|
+
(function (pin_interrupts_enum) {
|
|
943
|
+
pin_interrupts_enum["INTDIS_BUFFEN"] = "INTDIS_BUFFEN";
|
|
944
|
+
pin_interrupts_enum["BOTH_EDGES"] = "BOTH_EDGES";
|
|
945
|
+
pin_interrupts_enum["RISING_EDGE"] = "RISING_EDGE";
|
|
946
|
+
pin_interrupts_enum["FALLING_EDGE"] = "FALLING_EDGE";
|
|
947
|
+
pin_interrupts_enum["NONE"] = "NONE";
|
|
948
|
+
pin_interrupts_enum["LOW_LEVEL"] = "LOW_LEVEL";
|
|
949
|
+
})(pin_interrupts_enum = exports.pin_interrupts_enum || (exports.pin_interrupts_enum = {}));
|
|
950
|
+
var pin_attribs_enum;
|
|
951
|
+
(function (pin_attribs_enum) {
|
|
952
|
+
pin_attribs_enum["aliasReEx"] = "aliasReEx";
|
|
953
|
+
pin_attribs_enum["cname"] = "cname";
|
|
954
|
+
pin_attribs_enum["high"] = "high";
|
|
955
|
+
pin_attribs_enum["inv"] = "inv";
|
|
956
|
+
pin_attribs_enum["wpu"] = "wpu";
|
|
957
|
+
pin_attribs_enum["wpd"] = "wpd";
|
|
958
|
+
pin_attribs_enum["od"] = "od";
|
|
959
|
+
pin_attribs_enum["analog"] = "analog";
|
|
960
|
+
pin_attribs_enum["ioc"] = "ioc";
|
|
961
|
+
pin_attribs_enum["intcallback"] = "intcallback";
|
|
962
|
+
pin_attribs_enum["alias"] = "alias";
|
|
963
|
+
pin_attribs_enum["advInpBuff"] = "advInpBuff";
|
|
964
|
+
})(pin_attribs_enum = exports.pin_attribs_enum || (exports.pin_attribs_enum = {}));
|
|
965
|
+
var actiontype;
|
|
966
|
+
(function (actiontype) {
|
|
967
|
+
actiontype["SETACTION"] = "SETACTION";
|
|
968
|
+
actiontype["ATTRIBACTION"] = "ATTRIBACTION";
|
|
969
|
+
})(actiontype = exports.actiontype || (exports.actiontype = {}));
|
|
970
|
+
var direction;
|
|
971
|
+
(function (direction) {
|
|
972
|
+
direction["output"] = "output";
|
|
973
|
+
direction["input"] = "input";
|
|
974
|
+
direction["bidirectional"] = "bidirectional";
|
|
975
|
+
})(direction = exports.direction || (exports.direction = {}));
|
|
976
|
+
var behaviour;
|
|
977
|
+
(function (behaviour) {
|
|
978
|
+
behaviour["LOCK_UNLOCK"] = "LOCK_UNLOCK";
|
|
979
|
+
behaviour["ALWAYS_LOCKED"] = "ALWAYS_LOCKED";
|
|
980
|
+
behaviour["SINGLE_PIN_MUX"] = "SINGLE_PIN_MUX";
|
|
981
|
+
behaviour["OPTIONAL_PIN_MUX"] = "OPTIONAL_PIN_MUX";
|
|
982
|
+
behaviour["PPS"] = "PPS";
|
|
983
|
+
behaviour["APFCON"] = "APFCON";
|
|
984
|
+
behaviour["PORTMUX"] = "PORTMUX";
|
|
985
|
+
behaviour["EXCLUSIVE_LOCK"] = "EXCLUSIVE_LOCK";
|
|
986
|
+
behaviour["LOCKED_DISABLED"] = "LOCKED_DISABLED";
|
|
987
|
+
})(behaviour = exports.behaviour || (exports.behaviour = {}));
|
|
988
|
+
//------------------------------------ schema ------------------------------------//
|
|
989
|
+
exports.data_schema = {
|
|
990
|
+
$schema: "http://json-schema.org/draft-07/schema#",
|
|
991
|
+
$ref: "#/definitions/intf_data",
|
|
992
|
+
definitions: {
|
|
993
|
+
intf_data: {
|
|
994
|
+
type: "object",
|
|
995
|
+
properties: {
|
|
996
|
+
rows: {
|
|
997
|
+
type: "array",
|
|
998
|
+
items: {
|
|
999
|
+
$ref: "#/definitions/pin_row",
|
|
1000
|
+
},
|
|
1001
|
+
},
|
|
1002
|
+
},
|
|
1003
|
+
required: ["rows"],
|
|
1004
|
+
additionalProperties: false,
|
|
1005
|
+
},
|
|
1006
|
+
pin_row: {
|
|
1007
|
+
type: "object",
|
|
1008
|
+
properties: {
|
|
1009
|
+
name: {
|
|
1010
|
+
type: "string",
|
|
1011
|
+
},
|
|
1012
|
+
module: {
|
|
1013
|
+
type: "string",
|
|
1014
|
+
},
|
|
1015
|
+
function: {
|
|
1016
|
+
type: "string",
|
|
1017
|
+
},
|
|
1018
|
+
direction: {
|
|
1019
|
+
$ref: "#/definitions/direction",
|
|
1020
|
+
},
|
|
1021
|
+
filter: {
|
|
1022
|
+
$ref: "#/definitions/filter",
|
|
1023
|
+
},
|
|
1024
|
+
behaviour: {
|
|
1025
|
+
$ref: "#/definitions/behaviour",
|
|
1026
|
+
},
|
|
1027
|
+
behaviourMeta: {
|
|
1028
|
+
$ref: "#/definitions/behaviourMeta",
|
|
1029
|
+
},
|
|
1030
|
+
attribs: {
|
|
1031
|
+
type: "array",
|
|
1032
|
+
items: {
|
|
1033
|
+
$ref: "#/definitions/pin_attribs",
|
|
1034
|
+
},
|
|
1035
|
+
},
|
|
1036
|
+
groupsdata: {
|
|
1037
|
+
$ref: "#/definitions/pingroups_data",
|
|
1038
|
+
},
|
|
1039
|
+
actions: {},
|
|
1040
|
+
},
|
|
1041
|
+
required: ["name", "module", "function", "direction", "filter", "behaviour"],
|
|
1042
|
+
additionalProperties: false,
|
|
1043
|
+
},
|
|
1044
|
+
direction: {
|
|
1045
|
+
type: "string",
|
|
1046
|
+
enum: ["output", "input", "bidirectional"],
|
|
1047
|
+
},
|
|
1048
|
+
filter: {
|
|
1049
|
+
type: "object",
|
|
1050
|
+
properties: {
|
|
1051
|
+
module: {
|
|
1052
|
+
type: "string",
|
|
1053
|
+
},
|
|
1054
|
+
aliasReEx: {
|
|
1055
|
+
type: "string",
|
|
1056
|
+
},
|
|
1057
|
+
},
|
|
1058
|
+
required: ["module", "aliasReEx"],
|
|
1059
|
+
additionalProperties: false,
|
|
1060
|
+
},
|
|
1061
|
+
behaviour: {
|
|
1062
|
+
type: "string",
|
|
1063
|
+
enum: [
|
|
1064
|
+
"LOCK_UNLOCK",
|
|
1065
|
+
"ALWAYS_LOCKED",
|
|
1066
|
+
"SINGLE_PIN_MUX",
|
|
1067
|
+
"OPTIONAL_PIN_MUX",
|
|
1068
|
+
"PPS",
|
|
1069
|
+
"PORTMUX",
|
|
1070
|
+
"EXCLUSIVE_LOCK",
|
|
1071
|
+
"LOCKED_DISABLED",
|
|
1072
|
+
],
|
|
1073
|
+
},
|
|
1074
|
+
behaviourMeta: {
|
|
1075
|
+
type: "object",
|
|
1076
|
+
properties: {
|
|
1077
|
+
lockPinRegEx: {
|
|
1078
|
+
type: "string",
|
|
1079
|
+
},
|
|
1080
|
+
},
|
|
1081
|
+
required: ["lockPinRegEx"],
|
|
1082
|
+
additionalProperties: false,
|
|
1083
|
+
},
|
|
1084
|
+
pin_attribs: {
|
|
1085
|
+
type: "object",
|
|
1086
|
+
properties: {
|
|
1087
|
+
aliasReEx: {
|
|
1088
|
+
type: "string",
|
|
1089
|
+
},
|
|
1090
|
+
cname: {
|
|
1091
|
+
type: "string",
|
|
1092
|
+
},
|
|
1093
|
+
high: {
|
|
1094
|
+
type: "boolean",
|
|
1095
|
+
},
|
|
1096
|
+
inv: {
|
|
1097
|
+
type: "boolean",
|
|
1098
|
+
},
|
|
1099
|
+
wpu: {
|
|
1100
|
+
type: "boolean",
|
|
1101
|
+
},
|
|
1102
|
+
wpd: {
|
|
1103
|
+
type: "boolean",
|
|
1104
|
+
},
|
|
1105
|
+
od: {
|
|
1106
|
+
type: "boolean",
|
|
1107
|
+
},
|
|
1108
|
+
analog: {
|
|
1109
|
+
type: "boolean",
|
|
1110
|
+
},
|
|
1111
|
+
ioc: {
|
|
1112
|
+
$ref: "#/definitions/pin_interrupts_enum",
|
|
1113
|
+
},
|
|
1114
|
+
bidirection_out: {
|
|
1115
|
+
type: "boolean",
|
|
1116
|
+
},
|
|
1117
|
+
},
|
|
1118
|
+
required: ["aliasReEx"],
|
|
1119
|
+
additionalProperties: false,
|
|
1120
|
+
},
|
|
1121
|
+
pin_interrupts_enum: {
|
|
1122
|
+
type: "string",
|
|
1123
|
+
enum: [
|
|
1124
|
+
"INTDIS_BUFFEN",
|
|
1125
|
+
"BOTH_EDGES",
|
|
1126
|
+
"RISING_EDGE",
|
|
1127
|
+
"FALLING_EDGE",
|
|
1128
|
+
"NONE",
|
|
1129
|
+
"LOW_LEVEL",
|
|
1130
|
+
],
|
|
1131
|
+
},
|
|
1132
|
+
pingroups_data: {
|
|
1133
|
+
type: "object",
|
|
1134
|
+
properties: {
|
|
1135
|
+
groups: {
|
|
1136
|
+
type: "array",
|
|
1137
|
+
items: {
|
|
1138
|
+
$ref: "#/definitions/pins_group",
|
|
1139
|
+
},
|
|
1140
|
+
},
|
|
1141
|
+
},
|
|
1142
|
+
required: ["groups"],
|
|
1143
|
+
additionalProperties: false,
|
|
1144
|
+
},
|
|
1145
|
+
pins_group: {
|
|
1146
|
+
type: "object",
|
|
1147
|
+
properties: {
|
|
1148
|
+
name: {
|
|
1149
|
+
type: "string",
|
|
1150
|
+
},
|
|
1151
|
+
filter: {
|
|
1152
|
+
$ref: "#/definitions/grpfilter",
|
|
1153
|
+
},
|
|
1154
|
+
datapath: {
|
|
1155
|
+
type: "string",
|
|
1156
|
+
},
|
|
1157
|
+
},
|
|
1158
|
+
required: ["name", "filter"],
|
|
1159
|
+
additionalProperties: false,
|
|
1160
|
+
},
|
|
1161
|
+
grpfilter: {
|
|
1162
|
+
type: "object",
|
|
1163
|
+
properties: {
|
|
1164
|
+
aliasReEx: {
|
|
1165
|
+
type: "string",
|
|
1166
|
+
},
|
|
1167
|
+
},
|
|
1168
|
+
required: ["aliasReEx"],
|
|
1169
|
+
additionalProperties: false,
|
|
1170
|
+
},
|
|
1171
|
+
},
|
|
1172
|
+
};
|
|
1173
|
+
//# sourceMappingURL=pin-standard.js.map
|
|
1174
|
+
|
|
1175
|
+
/***/ }),
|
|
1176
|
+
|
|
881
1177
|
/***/ "./node_modules/@microchip/scf-automodule-impl/lib/autoModule/ContextualHelp.js":
|
|
882
1178
|
/*!**************************************************************************************!*\
|
|
883
1179
|
!*** ./node_modules/@microchip/scf-automodule-impl/lib/autoModule/ContextualHelp.js ***!
|
|
@@ -2733,6 +3029,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2733
3029
|
/* 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");
|
|
2734
3030
|
/* 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");
|
|
2735
3031
|
/* harmony import */ var _microchip_scf_validators_lib__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_microchip_scf_validators_lib__WEBPACK_IMPORTED_MODULE_6__);
|
|
3032
|
+
/* 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");
|
|
3033
|
+
/* 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__);
|
|
2736
3034
|
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; } } }; }
|
|
2737
3035
|
|
|
2738
3036
|
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); }
|
|
@@ -2750,6 +3048,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
2750
3048
|
|
|
2751
3049
|
|
|
2752
3050
|
|
|
3051
|
+
|
|
2753
3052
|
var getDerivedData = function getDerivedData(dataModel) {
|
|
2754
3053
|
if (dataModel) {
|
|
2755
3054
|
return new MyDerivedData(dataModel);
|
|
@@ -2836,7 +3135,8 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
|
2836
3135
|
getPinsLogic: _generated_module_src_pins_PCPHelper__WEBPACK_IMPORTED_MODULE_5__["getPinsLogic"],
|
|
2837
3136
|
importName: _this.friendlyImportName,
|
|
2838
3137
|
componentNameValidator: _this.componentNameValidator,
|
|
2839
|
-
getCustomUiErrors: _this.getCustomUiErrors
|
|
3138
|
+
getCustomUiErrors: _this.getCustomUiErrors,
|
|
3139
|
+
pin_standard_args: _this.getPinstandardArgs
|
|
2840
3140
|
};
|
|
2841
3141
|
});
|
|
2842
3142
|
|
|
@@ -2879,6 +3179,14 @@ var MyDerivedData = function MyDerivedData(dataModel) {
|
|
|
2879
3179
|
}
|
|
2880
3180
|
});
|
|
2881
3181
|
|
|
3182
|
+
_defineProperty(this, "getPinstandardArgs", function () {
|
|
3183
|
+
var args = {
|
|
3184
|
+
queryAdapters: ["pps", "apfcon"],
|
|
3185
|
+
queryAdapterMap: _defineProperty({}, _microchip_pin_standard_lib_pin_standard__WEBPACK_IMPORTED_MODULE_7__["QueryAdapterKey"].ALLPINS, "^PWM[0-9]{0,1}$")
|
|
3186
|
+
};
|
|
3187
|
+
return args;
|
|
3188
|
+
});
|
|
3189
|
+
|
|
2882
3190
|
_defineProperty(this, "overrideDefaultOptions", function (componentName) {
|
|
2883
3191
|
switch (componentName) {
|
|
2884
3192
|
case "timerSelection":
|
|
@@ -3202,37 +3510,204 @@ var getHeaderFiles = function getHeaderFiles(model) {
|
|
|
3202
3510
|
__webpack_require__.r(__webpack_exports__);
|
|
3203
3511
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCompletePinData", function() { return getCompletePinData; });
|
|
3204
3512
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getRowData", function() { return getRowData; });
|
|
3513
|
+
/* harmony import */ var _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @microchip/pin-standard */ "./node_modules/@microchip/pin-standard/lib/index.js");
|
|
3514
|
+
/* harmony import */ var _microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_microchip_pin_standard__WEBPACK_IMPORTED_MODULE_0__);
|
|
3205
3515
|
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; }
|
|
3206
3516
|
|
|
3207
3517
|
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; }
|
|
3208
3518
|
|
|
3209
3519
|
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; }
|
|
3210
3520
|
|
|
3211
|
-
// provide complete dynamic data for all pin rows. It overrides static pindata.json
|
|
3521
|
+
// provide complete dynamic data for all pin rows. It overrides static pindata.json
|
|
3522
|
+
|
|
3212
3523
|
var getCompletePinData = function getCompletePinData(appModel) {
|
|
3213
3524
|
// way to programatically override the json data
|
|
3214
3525
|
return {};
|
|
3215
3526
|
}; // overrides pin data for a particular row based on model.
|
|
3216
3527
|
|
|
3217
3528
|
function getRowData(appModel, rowData) {
|
|
3218
|
-
var _appModel$
|
|
3529
|
+
var _appModel$getName, _appModel$getImportVa, _appModel$getComponen, _appModel$getComponen2, _appModel$getComponen3, _appModel$getComponen4;
|
|
3219
3530
|
|
|
3220
|
-
var
|
|
3531
|
+
var moduleName = (_appModel$getName = appModel.getName()) !== null && _appModel$getName !== void 0 ? _appModel$getName : "PWM";
|
|
3532
|
+
var allPinsData = (_appModel$getImportVa = appModel.getImportValue("pin_standard")) === null || _appModel$getImportVa === void 0 ? void 0 : _appModel$getImportVa.allpins;
|
|
3533
|
+
var modulePins = getModulePins(allPinsData, moduleName);
|
|
3534
|
+
var pinName = getPinName(modulePins, rowData.filter.aliasReEx);
|
|
3535
|
+
var pinBehaviour = getpinBehaviour(allPinsData, moduleName, pinName);
|
|
3536
|
+
var isPPS = pinBehaviour === "pps";
|
|
3537
|
+
var isAPFCON = pinBehaviour === "apfcon";
|
|
3538
|
+
|
|
3539
|
+
if (pinName === "") {
|
|
3540
|
+
return undefined;
|
|
3541
|
+
}
|
|
3221
3542
|
|
|
3222
3543
|
if (rowData.name === "out") {
|
|
3223
3544
|
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3224
|
-
module:
|
|
3225
|
-
"function":
|
|
3545
|
+
module: moduleName,
|
|
3546
|
+
"function": moduleName + "OUT",
|
|
3226
3547
|
filter: {
|
|
3227
|
-
module:
|
|
3228
|
-
aliasReEx: "
|
|
3229
|
-
}
|
|
3548
|
+
module: moduleName,
|
|
3549
|
+
aliasReEx: "^".concat(moduleName, "(OUT){0,1}$")
|
|
3550
|
+
},
|
|
3551
|
+
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
|
|
3230
3552
|
});
|
|
3553
|
+
|
|
3554
|
+
if (appModel.isComponentValue("pwmoePwmcon") === true) {
|
|
3555
|
+
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3556
|
+
behaviourMeta: {
|
|
3557
|
+
lockPinRegEx: "^".concat(moduleName, "(OUT){0,1}$")
|
|
3558
|
+
}
|
|
3559
|
+
});
|
|
3560
|
+
}
|
|
3561
|
+
} else if (rowData.name === "pwmx0") {
|
|
3562
|
+
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3563
|
+
module: moduleName,
|
|
3564
|
+
"function": moduleName + "0OUT",
|
|
3565
|
+
filter: _objectSpread(_objectSpread({}, rowData.filter), {}, {
|
|
3566
|
+
module: moduleName
|
|
3567
|
+
}),
|
|
3568
|
+
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
|
|
3569
|
+
});
|
|
3570
|
+
|
|
3571
|
+
if (appModel.isComponentValue("pwmoe0Pwmaoe") === true) {
|
|
3572
|
+
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3573
|
+
behaviourMeta: {
|
|
3574
|
+
lockPinRegEx: moduleName + "0"
|
|
3575
|
+
}
|
|
3576
|
+
});
|
|
3577
|
+
}
|
|
3578
|
+
} else if (rowData.name === "pwmx1") {
|
|
3579
|
+
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3580
|
+
module: moduleName,
|
|
3581
|
+
"function": moduleName + "1OUT",
|
|
3582
|
+
filter: _objectSpread(_objectSpread({}, rowData.filter), {}, {
|
|
3583
|
+
module: moduleName
|
|
3584
|
+
}),
|
|
3585
|
+
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
|
|
3586
|
+
});
|
|
3587
|
+
|
|
3588
|
+
if (appModel.isComponentValue("pwmoe1Pwmaoe") === true) {
|
|
3589
|
+
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3590
|
+
behaviourMeta: {
|
|
3591
|
+
lockPinRegEx: moduleName + "1"
|
|
3592
|
+
}
|
|
3593
|
+
});
|
|
3594
|
+
}
|
|
3595
|
+
} else if (rowData.name === "pwmx2") {
|
|
3596
|
+
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3597
|
+
module: moduleName,
|
|
3598
|
+
"function": moduleName + "2OUT",
|
|
3599
|
+
filter: _objectSpread(_objectSpread({}, rowData.filter), {}, {
|
|
3600
|
+
module: moduleName
|
|
3601
|
+
}),
|
|
3602
|
+
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
|
|
3603
|
+
});
|
|
3604
|
+
|
|
3605
|
+
if (appModel.isComponentValue("pwmoe2Pwmaoe") === true) {
|
|
3606
|
+
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3607
|
+
behaviourMeta: {
|
|
3608
|
+
lockPinRegEx: moduleName + "2"
|
|
3609
|
+
}
|
|
3610
|
+
});
|
|
3611
|
+
}
|
|
3612
|
+
} else if (rowData.name === "pwmx3") {
|
|
3613
|
+
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3614
|
+
module: moduleName,
|
|
3615
|
+
"function": moduleName + "3OUT",
|
|
3616
|
+
filter: _objectSpread(_objectSpread({}, rowData.filter), {}, {
|
|
3617
|
+
module: moduleName
|
|
3618
|
+
}),
|
|
3619
|
+
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
|
|
3620
|
+
});
|
|
3621
|
+
|
|
3622
|
+
if (appModel.isComponentValue("pwmoe3Pwmaoe") === true) {
|
|
3623
|
+
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3624
|
+
behaviourMeta: {
|
|
3625
|
+
lockPinRegEx: moduleName + "3"
|
|
3626
|
+
}
|
|
3627
|
+
});
|
|
3628
|
+
}
|
|
3629
|
+
}
|
|
3630
|
+
|
|
3631
|
+
var rowActions = [];
|
|
3632
|
+
var pwmx0Regcomponent = (_appModel$getComponen = appModel.getComponent("pwmoe0Pwmaoe")) === null || _appModel$getComponen === void 0 ? void 0 : _appModel$getComponen.component;
|
|
3633
|
+
var pwmx1Regcomponent = (_appModel$getComponen2 = appModel.getComponent("pwmoe1Pwmaoe")) === null || _appModel$getComponen2 === void 0 ? void 0 : _appModel$getComponen2.component;
|
|
3634
|
+
var pwmx2Regcomponent = (_appModel$getComponen3 = appModel.getComponent("pwmoe2Pwmaoe")) === null || _appModel$getComponen3 === void 0 ? void 0 : _appModel$getComponen3.component;
|
|
3635
|
+
var pwmx3Regcomponent = (_appModel$getComponen4 = appModel.getComponent("pwmoe3Pwmaoe")) === null || _appModel$getComponen4 === void 0 ? void 0 : _appModel$getComponen4.component;
|
|
3636
|
+
|
|
3637
|
+
if (pwmx0Regcomponent) {
|
|
3638
|
+
var _appModel$getPCPHelpe;
|
|
3639
|
+
|
|
3640
|
+
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());
|
|
3641
|
+
}
|
|
3642
|
+
|
|
3643
|
+
if (pwmx1Regcomponent) {
|
|
3644
|
+
var _appModel$getPCPHelpe2;
|
|
3645
|
+
|
|
3646
|
+
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());
|
|
3647
|
+
}
|
|
3648
|
+
|
|
3649
|
+
if (pwmx2Regcomponent) {
|
|
3650
|
+
var _appModel$getPCPHelpe3;
|
|
3651
|
+
|
|
3652
|
+
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());
|
|
3231
3653
|
}
|
|
3232
3654
|
|
|
3655
|
+
if (pwmx3Regcomponent) {
|
|
3656
|
+
var _appModel$getPCPHelpe4;
|
|
3657
|
+
|
|
3658
|
+
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());
|
|
3659
|
+
}
|
|
3660
|
+
|
|
3661
|
+
rowData = _objectSpread(_objectSpread({}, rowData), {}, {
|
|
3662
|
+
actions: rowActions
|
|
3663
|
+
});
|
|
3233
3664
|
return rowData;
|
|
3234
3665
|
}
|
|
3235
3666
|
|
|
3667
|
+
var getModulePins = function getModulePins(allPins, moduleName) {
|
|
3668
|
+
var pins = [];
|
|
3669
|
+
|
|
3670
|
+
for (var portPin in allPins) {
|
|
3671
|
+
var _allPins$portPin;
|
|
3672
|
+
|
|
3673
|
+
var modulePins = (_allPins$portPin = allPins[portPin]) === null || _allPins$portPin === void 0 ? void 0 : _allPins$portPin[moduleName];
|
|
3674
|
+
|
|
3675
|
+
for (var modulePin in modulePins) {
|
|
3676
|
+
if (pins.indexOf(modulePin) === -1) {
|
|
3677
|
+
pins.push(modulePin);
|
|
3678
|
+
}
|
|
3679
|
+
}
|
|
3680
|
+
}
|
|
3681
|
+
|
|
3682
|
+
return pins;
|
|
3683
|
+
};
|
|
3684
|
+
|
|
3685
|
+
var getPinName = function getPinName(modulePins, regEx) {
|
|
3686
|
+
var pinName = "";
|
|
3687
|
+
modulePins.forEach(function (pin) {
|
|
3688
|
+
if (pin.match(new RegExp(regEx, "g"))) {
|
|
3689
|
+
pinName = pin;
|
|
3690
|
+
}
|
|
3691
|
+
});
|
|
3692
|
+
return pinName;
|
|
3693
|
+
};
|
|
3694
|
+
|
|
3695
|
+
var getpinBehaviour = function getpinBehaviour(allPins, moduleName, pinName) {
|
|
3696
|
+
for (var portPin in allPins) {
|
|
3697
|
+
var _allPins$portPin2, _allPins$portPin2$mod;
|
|
3698
|
+
|
|
3699
|
+
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];
|
|
3700
|
+
|
|
3701
|
+
if (pinData === null || pinData === void 0 ? void 0 : pinData["pps"]) {
|
|
3702
|
+
return "pps";
|
|
3703
|
+
} else if (pinData === null || pinData === void 0 ? void 0 : pinData["apfcon"]) {
|
|
3704
|
+
return "apfcon";
|
|
3705
|
+
}
|
|
3706
|
+
}
|
|
3707
|
+
|
|
3708
|
+
return "lock_unlock";
|
|
3709
|
+
};
|
|
3710
|
+
|
|
3236
3711
|
/***/ }),
|
|
3237
3712
|
|
|
3238
3713
|
/***/ "./src/PwmCalculator.tsx":
|
|
@@ -3429,7 +3904,7 @@ var Interface = {
|
|
|
3429
3904
|
/*! exports provided: moduleName, deviceType, booleanValues, UIGroups, UIOrder, hasPins, tabs, help, analytics, templates, imports, exports, softwareData, peripherals, default */
|
|
3430
3905
|
/***/ (function(module) {
|
|
3431
3906
|
|
|
3432
|
-
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\"}]}}]}");
|
|
3907
|
+
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\"}]}}]}");
|
|
3433
3908
|
|
|
3434
3909
|
/***/ }),
|
|
3435
3910
|
|
|
@@ -3440,7 +3915,7 @@ module.exports = JSON.parse("{\"moduleName\":\"PWM\",\"deviceType\":\"PIC\",\"bo
|
|
|
3440
3915
|
/*! exports provided: rows, default */
|
|
3441
3916
|
/***/ (function(module) {
|
|
3442
3917
|
|
|
3443
|
-
module.exports = JSON.parse("{\"rows\":[{\"name\":\"out\",\"module\":\"
|
|
3918
|
+
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\"}]}");
|
|
3444
3919
|
|
|
3445
3920
|
/***/ })
|
|
3446
3921
|
|