@mchp-mcc/scf-pic8-ccp-v1 4.0.8 → 4.0.9
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 +12 -0
- package/Readme.md +12 -0
- package/output/autoCreator.js +112 -2
- package/output/autoCreator.js.map +1 -1
- package/output/autoProcessor.js +112 -2
- package/output/autoProcessor.js.map +1 -1
- package/output/capture-header-template.h.ftl +31 -31
- package/output/capture-source-template.c.ftl +12 -12
- package/output/compare-header-template.h.ftl +30 -29
- package/output/compare-source-template.c.ftl +7 -7
- package/output/creator.js +112 -2
- package/output/creator.js.map +1 -1
- package/output/default-header-template.h.ftl +6 -7
- package/output/default-source-template.c.ftl +2 -2
- package/output/processor.js +112 -2
- package/output/processor.js.map +1 -1
- package/output/pwm-header-template.h.ftl +15 -15
- package/output/pwm-source-template.c.ftl +7 -7
- package/package.json +9 -9
- package/src/DerivedData.test.ts +2 -7
- package/src/DerivedData.ts +28 -0
- package/src/moduleConfig.json +47 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack://autoCreator/webpack/bootstrap","webpack://autoCreator/./generated_module/src/autoCreator.ts","webpack://autoCreator/./generated_module/src/getUserData.ts","webpack://autoCreator/./generated_module/src/pins/PCPHelper.ts","webpack://autoCreator/./node_modules/@microchip/pin-standard/lib/index.js","webpack://autoCreator/./node_modules/@microchip/pin-standard/lib/pin-standard.js","webpack://autoCreator/./node_modules/@microchip/scf-automodule-impl/lib/Utils.js","webpack://autoCreator/./node_modules/@microchip/scf-automodule-impl/lib/autoModule/AutoModuleHelpers.js","webpack://autoCreator/./node_modules/@microchip/scf-automodule-impl/lib/autoModule/getConfigData.js","webpack://autoCreator/./node_modules/@microchip/scf-automodule-impl/lib/interrupts/InterruptActions.js","webpack://autoCreator/./node_modules/@microchip/scf-common/lib/Processor.js","webpack://autoCreator/./node_modules/@microchip/scf-device/lib/CalculateRegisterValue.js","webpack://autoCreator/./node_modules/@microchip/scf-device/lib/Register.js","webpack://autoCreator/./node_modules/@microchip/scf-device/lib/Setting.js","webpack://autoCreator/./node_modules/@microchip/scf-device/lib/util/Arrays.js","webpack://autoCreator/./node_modules/@microchip/scf-interface/lib/c-function-types.js","webpack://autoCreator/./node_modules/@microchip/scf-interface/lib/helpers.js","webpack://autoCreator/./node_modules/@microchip/scf-interface/lib/index.js","webpack://autoCreator/./node_modules/core-js/es/math/log10.js","webpack://autoCreator/./node_modules/core-js/es/string/includes.js","webpack://autoCreator/./node_modules/core-js/features/math/log10.js","webpack://autoCreator/./node_modules/core-js/features/string/includes.js","webpack://autoCreator/./node_modules/core-js/internals/a-function.js","webpack://autoCreator/./node_modules/core-js/internals/an-object.js","webpack://autoCreator/./node_modules/core-js/internals/array-includes.js","webpack://autoCreator/./node_modules/core-js/internals/classof-raw.js","webpack://autoCreator/./node_modules/core-js/internals/copy-constructor-properties.js","webpack://autoCreator/./node_modules/core-js/internals/correct-is-regexp-logic.js","webpack://autoCreator/./node_modules/core-js/internals/create-non-enumerable-property.js","webpack://autoCreator/./node_modules/core-js/internals/create-property-descriptor.js","webpack://autoCreator/./node_modules/core-js/internals/descriptors.js","webpack://autoCreator/./node_modules/core-js/internals/document-create-element.js","webpack://autoCreator/./node_modules/core-js/internals/entry-unbind.js","webpack://autoCreator/./node_modules/core-js/internals/enum-bug-keys.js","webpack://autoCreator/./node_modules/core-js/internals/export.js","webpack://autoCreator/./node_modules/core-js/internals/fails.js","webpack://autoCreator/./node_modules/core-js/internals/function-bind-context.js","webpack://autoCreator/./node_modules/core-js/internals/get-built-in.js","webpack://autoCreator/./node_modules/core-js/internals/global.js","webpack://autoCreator/./node_modules/core-js/internals/has.js","webpack://autoCreator/./node_modules/core-js/internals/hidden-keys.js","webpack://autoCreator/./node_modules/core-js/internals/ie8-dom-define.js","webpack://autoCreator/./node_modules/core-js/internals/indexed-object.js","webpack://autoCreator/./node_modules/core-js/internals/inspect-source.js","webpack://autoCreator/./node_modules/core-js/internals/internal-state.js","webpack://autoCreator/./node_modules/core-js/internals/is-forced.js","webpack://autoCreator/./node_modules/core-js/internals/is-object.js","webpack://autoCreator/./node_modules/core-js/internals/is-pure.js","webpack://autoCreator/./node_modules/core-js/internals/is-regexp.js","webpack://autoCreator/./node_modules/core-js/internals/native-symbol.js","webpack://autoCreator/./node_modules/core-js/internals/native-weak-map.js","webpack://autoCreator/./node_modules/core-js/internals/not-a-regexp.js","webpack://autoCreator/./node_modules/core-js/internals/object-define-property.js","webpack://autoCreator/./node_modules/core-js/internals/object-get-own-property-descriptor.js","webpack://autoCreator/./node_modules/core-js/internals/object-get-own-property-names.js","webpack://autoCreator/./node_modules/core-js/internals/object-get-own-property-symbols.js","webpack://autoCreator/./node_modules/core-js/internals/object-keys-internal.js","webpack://autoCreator/./node_modules/core-js/internals/object-property-is-enumerable.js","webpack://autoCreator/./node_modules/core-js/internals/own-keys.js","webpack://autoCreator/./node_modules/core-js/internals/path.js","webpack://autoCreator/./node_modules/core-js/internals/redefine.js","webpack://autoCreator/./node_modules/core-js/internals/require-object-coercible.js","webpack://autoCreator/./node_modules/core-js/internals/set-global.js","webpack://autoCreator/./node_modules/core-js/internals/shared-key.js","webpack://autoCreator/./node_modules/core-js/internals/shared-store.js","webpack://autoCreator/./node_modules/core-js/internals/shared.js","webpack://autoCreator/./node_modules/core-js/internals/to-absolute-index.js","webpack://autoCreator/./node_modules/core-js/internals/to-indexed-object.js","webpack://autoCreator/./node_modules/core-js/internals/to-integer.js","webpack://autoCreator/./node_modules/core-js/internals/to-length.js","webpack://autoCreator/./node_modules/core-js/internals/to-primitive.js","webpack://autoCreator/./node_modules/core-js/internals/uid.js","webpack://autoCreator/./node_modules/core-js/internals/use-symbol-as-uid.js","webpack://autoCreator/./node_modules/core-js/internals/well-known-symbol.js","webpack://autoCreator/./node_modules/core-js/modules/es.math.log10.js","webpack://autoCreator/./node_modules/core-js/modules/es.string.includes.js","webpack://autoCreator/(webpack)/buildin/global.js","webpack://autoCreator/./src/Alerts.tsx","webpack://autoCreator/./src/CreatorFunctions.ts","webpack://autoCreator/./src/DerivedData.ts","webpack://autoCreator/./src/GeneratorModel.tsx","webpack://autoCreator/./src/PinsLogic.ts","webpack://autoCreator/./src/PwmCalculator.tsx","webpack://autoCreator/./src/interfaces/ccp_interface.tsx"],"names":["createAutoCreator","getCreatorFunctions","getModuleConfig","getModuleConfigFromFile","getCreatorFunctionsUser","getPinsDataFromFile","require","undefined","getPinsLogicFromFile","mockPinsLogic","getPinsData","getCompletePinData","appModel","getRowData","rowData","rows","getPinsLogic","pinsLogic","getInputSignalAlerts","dataModel","inputSignal","getComponentValue","peripheralOption","peripheralImportKey","includes","replace","getImportValue","type","AlertTypes","Warning","text","instance","moduleName","Hint","getName","getCcpTimerAlerts","ccpTimer","substring","length","getPwmTimerAlerts","pwmTimer","shouldImport","getCreatorImportArgs","importKey","state","ccpMode","main","hardware","ctsCcpcap","getDerivedData","MyDerivedData","EmptyDerivedData","getModuleName","customName","getModel","templateName","getTemplateName","pinData","getMyPinData","templateData","getGeneratorModel","alerts","getMyAlerts","overrideDefaultValues","overrideDefaultValue","overrideOptions","showImportComponent","filterImports","getProcessedArgValue","getCcpInterfacePayload","getSignalSrcPayload","getTriggerSrcPayload","getSelectedMode","getInterruptEnable","getCCPRValue","getCCPRHValue","getCCPRLValue","getSelectedTimer","getPwmPeriod","getPwmFrequency","getPwmResolution","getDutyCycleValidator","getComponentName","getEnableCcp","getCcpMode","getCaptureMode","getInputSrc","getCompareMode","getCcpTimerSrc","getDutyCycle","getAlignment","getPwmTimerSrc","getEnableInterrupt","initializer_system_results","isrCallback","getInterruptActions","filterInterrupts","friendlyImportName","pwmCalculator","PwmCalculator","Number","getPRValue","getPrescaler","getFosc","getHardware","getPeripheral","name","interruptName","actionFor","InterruptActionsBuilder","createActionBuilder","createActionFor","addActionIfEnabled","addActionIfDisabled","buildActions","test","src","toLowerCase","componentName","getModuleInstance","getTimerOptions","result","CCPTMRS","getPeripheralDescription","registers","timerSelectOptions","settings","CTSEL","options","eachoptn","timeroptnregex","optnmatch","alias","match","correctOptnName","push","initializer","header","getHeaderFiles","intName","interfaceApi","createFirmwareApi","enableCCP","isComponentValue","capture","getCapturePayload","compare","getComparePayload","pwm","getPwmPayload","enabledInterrupt","hasInterrupts","mode","inputSrc","timerSrc","dutyCycle","alignment","ccprValue","period","frequency","resolution","exportArgs","alert","tmrOption","getTimerClockAlerts","Processor","getTMR2ClockSrc","imports","filteredImports","ccpModeSelected","capSrcSelected","ccpTmrSelected","pwmTmrSelected","getPeripheralInstance","filterImportBySetting","option","payload","regexpNumber","inst","indexOf","getTMR1ClockSrc","getTimerSync","getSelectedCcpTimer","getSelectedPwmTimer","minimum","maximum","fosc","periodRegisterValue","prescaleValue","clocksource","clockSource","enableSynchronization","getPwmCalculator","toFixed","toString","ccprhValue","ccprlValue","argName","arg","getRequestedArgFrom","CCPInterface","getInterfaceId","interfaceId","cmpExport","getExportInterfaces","getInterface","args","chosen","Object","keys","getRequestedArg","getCapTimerSrc","getComTimerSrc","model","hardwareSettings","moduleNameLowerCase","moduleNameUpperCase","toUpperCase","componentNameLowerCase","getRegisterValues","interrupts","getInterrupts","ccpInterface","intPayload","isVectoredInterrupt","vectoredInterruptEnable","IVTBaseAddress","String","ivtBaseAddress","ccpInterruptPriorityHigh","isHighPriority","getIRQname","irqName","CCPI","handlerName","moduleInstance","headerFiles","api","simpleApi","isVectoredInterruptEnabled","IRQname","isInterruptEnabled","initialDutyValue","version","path","retRowJSONdata","module","filter","direction","bidirectional","attribs","aliasReEx","analog","bidirection_out","prValue","prescaler","pwmPeriod","pwmFrequency","Math","round","pwmResolution","log10","floor","dutyCycleRatio","dcRatio","pulseWidth","createMock","Interface","requestId","enableInterrupt","createApi","prefix","Initialize","returns","IsCapturedDataReady","CaptureRead","SetCompareCount","arguments","OutputStatusGet","IsCompareComplete","LoadDutyValue","DefaultCallBack","SetCallBack","CaptureISR","CompareISR","createPrototypeImport","createPrototypeExport","interfaces","createC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ACA,CAAC,0DAA0D;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,wFAAwF;AACzF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,+EAA+E;AAChF;AACA;AACA;AACA;AACA,CAAC,6DAA6D;AAC9D;AACA;AACA;AACA;AACA;AACA,CAAC,0DAA0D;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,0DAA0D;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB,aAAa;AACb;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB,2BAA2B;AAC3B,aAAa;AACb;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB,aAAa;AACb;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA,wC;;;;;;;;;;;;ACnQa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yDAAyD,iBAAiB,EAAE;AAC5E;AACA;AACA;AACA,sDAAsD,8BAA8B,EAAE;AACtF;AACA;AACA;AACA,yDAAyD,8BAA8B,EAAE;AACzF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,iC;;;;;;;;;;;;ACvCa;AACb;AACA;AACA,gDAAgD,OAAO;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C;AAC5C;AACA,8CAA8C,cAAc;AAC5D;AACA,+CAA+C,mBAAO,CAAC,4HAAkD;AACzG,gBAAgB,mBAAO,CAAC,8FAAmC;AAC3D,eAAe,mBAAO,CAAC,sGAAuC;AAC9D,cAAc,mBAAO,CAAC,4EAAU;AAChC,sBAAsB,mBAAO,CAAC,sGAAiB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kGAAkG;AAClG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8GAA8G;AAC9G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,+FAA+F;AAC/F;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8JAA8J;AAC9J,0FAA0F,gBAAgB;AAC1G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sIAAsI,YAAY,oJAAoJ,EAAE;AACxS;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iLAAiL;AACjL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,qCAAqC,YAAY,8TAA8T;AAC/W;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kEAAkE,iCAAiC,EAAE;AACrG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6C;;;;;;;;;;;;ACrVa;AACb;AACA;AACA,gDAAgD,OAAO;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C,cAAc;AAC5D;AACA;AACA,cAAc,mBAAO,CAAC,4EAAU;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,wBAAwB,kBAAkB,EAAE;AAC7D,gEAAgE;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,yC;;;;;;;;;;;;AC3Da;AACb;AACA;AACA,gDAAgD,OAAO;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C,cAAc;AAC5D;AACA,0BAA0B,mBAAO,CAAC,0HAAiC;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C,aAAa,2IAA2I;AACtM;AACA;AACA,8CAA8C,aAAa,iFAAiF;AAC5I;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C,aAAa,2IAA2I;AACtM;AACA;AACA,8CAA8C,aAAa,iFAAiF;AAC5I;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4GAA4G,+BAA+B,EAAE;AAC7I;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4GAA4G,+BAA+B,EAAE;AAC7I;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4C;;;;;;;;;;;;ACrKa;AACb;AACA;AACA,gDAAgD,OAAO;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,6DAA6D;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,qBAAqB,wDAAwD;AAChH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,qBAAqB;AACxD,2CAA2C,YAAY,6BAA6B,mBAAmB,8BAA8B,GAAG;AACxI,aAAa,GAAG;AAChB;AACA;AACA;AACA;AACA,qC;;;;;;;;;;;;AChFa;AACb;AACA;AACA;AACA,cAAc,gBAAgB,sCAAsC,iBAAiB,EAAE;AACvF,6BAA6B,8EAA8E;AAC3G;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,sBAAsB;AAC7C;AACA;AACA,CAAC;AACD;AACA,4EAA4E,OAAO;AACnF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C,cAAc;AAC5D,gBAAgB,mBAAO,CAAC,sEAAW;AACnC,iBAAiB,mBAAO,CAAC,wEAAY;AACrC,eAAe,mBAAO,CAAC,8EAAe;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,wCAAwC;AACxC,+CAA+C;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,qIAAqI,4DAA4D,uDAAuD,EAAE;AAC1P;AACA;AACA,wCAAwC,8DAA8D;AACtG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC,0BAA0B;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,oCAAoC,mCAAmC;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C,6CAA6C;AACzF,oCAAoC,2BAA2B;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,sCAAsC,oBAAoB;AAC1D;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,sCAAsC,mCAAmC;AACzE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,kD;;;;;;;;;;;;AC5Na;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA,oC;;;;;;;;;;;;ACRa;AACb,8CAA8C,cAAc;AAC5D;AACA,eAAe,mBAAO,CAAC,8EAAe;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+JAA+J,8BAA8B,EAAE;AAC/L;AACA;AACA;AACA;AACA,+JAA+J,4BAA4B,EAAE;AAC7L;AACA;AACA;AACA;AACA,6GAA6G,0CAA0C,EAAE;AACzJ;AACA;AACA;AACA;AACA,4GAA4G,oBAAoB,EAAE;AAClI;AACA;AACA;AACA;AACA,4GAA4G,2BAA2B,EAAE;AACzI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mC;;;;;;;;;;;;AC9Ea;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,gBAAgB;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wGAAwG,iBAAiB,EAAE;AAC3H;AACA;AACA,kC;;;;;;;;;;;;AC/Ca;AACb,8CAA8C,cAAc;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,EAAEA,WAAW,GAClBA,WADkB,GAElB,CAAC;AAAElI,UAAI,EAAEqK,MAAM,CAAC1J,WAAP,KAAuB,IAA/B;AAAqC+H,UAAI,EAAE;AAA3C,KAAD;AALH,GAAP;AAOH,CAfD;;AA2BO,IAAMuB,SAAoB,GAAG;AAChCmB,uBAAqB,EAAEA,qBADS;AAEhCD,uBAAqB,EAAEA,qBAFS;AAGhCpF,gBAAc,EAAEA,cAHgB;AAIhCiE,YAAU,EAAEA,UAJoB;AAKhC7H,mBAAiB,EAAEA;AALa,CAA7B,C","file":"autoCreator.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./generated_module/src/autoCreator.ts\");\n","import { CreatorFunctions } from \"@microchip/melody-automodule-interface\";\nimport {\n getCreatorFunctions as getCreatorFunctionsUser,\n getModuleConfigFromFile,\n} from \"./getUserData\";\n\nconst createAutoCreator = (\n getCreatorFunctions: () => CreatorFunctions,\n): (() => CreatorFunctions) => {\n return (): CreatorFunctions => {\n return {\n getModuleConfig: getModuleConfigFromFile,\n ...getCreatorFunctions(),\n };\n };\n};\n\nexport const getCreatorFunctions = createAutoCreator(getCreatorFunctionsUser);\n","import { ModuleConfig } from \"@microchip/melody-automodule-interface/lib/src/ModuleConfig\";\nimport { PinsData } from \"@microchip/melody-automodule-interface/lib/src/pins\";\nimport { PinsLogic } from \"@microchip/melody-automodule-interface/lib/src/types\";\nexport { getCreatorFunctions } from \"../../src/CreatorFunctions\";\nexport { getDerivedData } from \"../../src/DerivedData\";\n\nexport const getPinsDataFromFile = (): PinsData | undefined => {\n try {\n return require(\"../../src/pinsdata.json\");\n } catch {\n return undefined;\n }\n};\n\nexport const getPinsLogicFromFile = (): PinsLogic | undefined => {\n try {\n return require(\"../../src/PinsLogic.ts\");\n } catch {\n return undefined;\n }\n};\n\nexport const getModuleConfigFromFile = (): ModuleConfig | undefined => {\n try {\n return require(\"../../src/moduleConfig.json\");\n } catch {\n return undefined;\n }\n};\n","import { pin_row } from \"@microchip/pin-standard\";\nimport { PinsData } from \"@microchip/melody-automodule-interface/lib/src/pins\";\nimport {\n AppModel,\n PinsLogic,\n} from \"@microchip/melody-automodule-interface/lib/src/types\";\nimport { getPinsDataFromFile, getPinsLogicFromFile } from \"../getUserData\";\n\nconst mockPinsLogic = (getPinsData: GetPinsData): PinsLogic => {\n const getCompletePinData = (appModel: AppModel): any => {\n return {};\n };\n const getRowData = (appModel: AppModel, rowData: pin_row): pin_row => {\n return rowData;\n };\n return {\n getCompletePinData: getCompletePinData,\n getRowData: getRowData,\n getPinsData: getPinsData,\n };\n};\n\ntype GetPinsData = typeof getPinsData;\nexport const getPinsData = (): PinsData => getPinsDataFromFile() ?? { rows: [] };\n\nexport const getPinsLogic = (): PinsLogic => {\n const pinsLogic = getPinsLogicFromFile();\n if (pinsLogic) {\n return {\n ...pinsLogic,\n getPinsData: getPinsData,\n };\n } else {\n return mockPinsLogic(getPinsData);\n }\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar pin_standard_1 = require(\"./pin-standard\");\nexports.pin_standard = pin_standard_1.pin_standard;\nexports.pin_state = pin_standard_1.pin_state;\nexports.direction = pin_standard_1.direction;\nexports.behaviour = pin_standard_1.behaviour;\nexports.data_schema = pin_standard_1.data_schema;\nexports.pin_attribs_enum = pin_standard_1.pin_attribs_enum;\nexports.actiontype = pin_standard_1.actiontype;\nexports.QueryAdapterKey = pin_standard_1.QueryAdapterKey;\n//# sourceMappingURL=index.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.pin_standard = function () {\n return {\n interfaceId: {\n name: \"pin-standard\",\n version: \"0.1.0\",\n },\n };\n};\nvar QueryAdapterKey;\n(function (QueryAdapterKey) {\n QueryAdapterKey[\"ALLPINS\"] = \"allpins\";\n QueryAdapterKey[\"ALLPINS_FOR_ATTRIBS\"] = \"allpins_for_attribs\";\n QueryAdapterKey[\"PPS\"] = \"pps\";\n QueryAdapterKey[\"PORTMUX\"] = \"portmux\";\n QueryAdapterKey[\"HASPPS\"] = \"hasPPS\";\n})(QueryAdapterKey = exports.QueryAdapterKey || (exports.QueryAdapterKey = {}));\nvar pin_state;\n(function (pin_state) {\n pin_state[\"EMPTY\"] = \"E\";\n pin_state[\"LOCKED\"] = \"L\";\n pin_state[\"UNLOCK\"] = \"UL\";\n pin_state[\"DiSABLE_LOCK\"] = \"DL\";\n pin_state[\"UNLOCKED_DISABLED\"] = \"DUL\";\n pin_state[\"LOCKED_LINK\"] = \"LL\";\n pin_state[\"UNLOCKED_MUX\"] = \"MUL\";\n pin_state[\"LOCKED_CONFLICT\"] = \"CL\";\n})(pin_state = exports.pin_state || (exports.pin_state = {}));\nvar pin_interrupts_enum;\n(function (pin_interrupts_enum) {\n pin_interrupts_enum[\"INTDIS_BUFFEN\"] = \"INTDIS_BUFFEN\";\n pin_interrupts_enum[\"BOTH_EDGES\"] = \"BOTH_EDGES\";\n pin_interrupts_enum[\"RISING_EDGE\"] = \"RISING_EDGE\";\n pin_interrupts_enum[\"FALLING_EDGE\"] = \"FALLING_EDGE\";\n pin_interrupts_enum[\"NONE\"] = \"NONE\";\n pin_interrupts_enum[\"LOW_LEVEL\"] = \"LOW_LEVEL\";\n})(pin_interrupts_enum = exports.pin_interrupts_enum || (exports.pin_interrupts_enum = {}));\nvar pin_attribs_enum;\n(function (pin_attribs_enum) {\n pin_attribs_enum[\"aliasReEx\"] = \"aliasReEx\";\n pin_attribs_enum[\"cname\"] = \"cname\";\n pin_attribs_enum[\"high\"] = \"high\";\n pin_attribs_enum[\"inv\"] = \"inv\";\n pin_attribs_enum[\"wpu\"] = \"wpu\";\n pin_attribs_enum[\"wpd\"] = \"wpd\";\n pin_attribs_enum[\"od\"] = \"od\";\n pin_attribs_enum[\"analog\"] = \"analog\";\n pin_attribs_enum[\"ioc\"] = \"ioc\";\n pin_attribs_enum[\"intcallback\"] = \"intcallback\";\n pin_attribs_enum[\"alias\"] = \"alias\";\n})(pin_attribs_enum = exports.pin_attribs_enum || (exports.pin_attribs_enum = {}));\nvar actiontype;\n(function (actiontype) {\n actiontype[\"SETACTION\"] = \"SETACTION\";\n actiontype[\"ATTRIBACTION\"] = \"ATTRIBACTION\";\n})(actiontype = exports.actiontype || (exports.actiontype = {}));\nvar direction;\n(function (direction) {\n direction[\"output\"] = \"output\";\n direction[\"input\"] = \"input\";\n direction[\"bidirectional\"] = \"bidirectional\";\n})(direction = exports.direction || (exports.direction = {}));\nvar behaviour;\n(function (behaviour) {\n behaviour[\"LOCK_UNLOCK\"] = \"LOCK_UNLOCK\";\n behaviour[\"ALWAYS_LOCKED\"] = \"ALWAYS_LOCKED\";\n behaviour[\"SINGLE_PIN_MUX\"] = \"SINGLE_PIN_MUX\";\n behaviour[\"OPTIONAL_PIN_MUX\"] = \"OPTIONAL_PIN_MUX\";\n behaviour[\"PPS\"] = \"PPS\";\n behaviour[\"PORTMUX\"] = \"PORTMUX\";\n behaviour[\"EXCLUSIVE_LOCK\"] = \"EXCLUSIVE_LOCK\";\n behaviour[\"LOCKED_DISABLED\"] = \"LOCKED_DISABLED\";\n})(behaviour = exports.behaviour || (exports.behaviour = {}));\n//------------------------------------ schema ------------------------------------//\nexports.data_schema = {\n $schema: \"http://json-schema.org/draft-07/schema#\",\n $ref: \"#/definitions/intf_data\",\n definitions: {\n intf_data: {\n type: \"object\",\n properties: {\n rows: {\n type: \"array\",\n items: {\n $ref: \"#/definitions/pin_row\",\n },\n },\n },\n required: [\"rows\"],\n additionalProperties: false,\n },\n pin_row: {\n type: \"object\",\n properties: {\n name: {\n type: \"string\",\n },\n module: {\n type: \"string\",\n },\n function: {\n type: \"string\",\n },\n direction: {\n $ref: \"#/definitions/direction\",\n },\n filter: {\n $ref: \"#/definitions/filter\",\n },\n behaviour: {\n $ref: \"#/definitions/behaviour\",\n },\n behaviourMeta: {\n $ref: \"#/definitions/behaviourMeta\",\n },\n attribs: {\n type: \"array\",\n items: {\n $ref: \"#/definitions/pin_attribs\",\n },\n },\n groupsdata: {\n $ref: \"#/definitions/pingroups_data\",\n },\n actions: {},\n },\n required: [\"name\", \"module\", \"function\", \"direction\", \"filter\", \"behaviour\"],\n additionalProperties: false,\n },\n direction: {\n type: \"string\",\n enum: [\"output\", \"input\", \"bidirectional\"],\n },\n filter: {\n type: \"object\",\n properties: {\n module: {\n type: \"string\",\n },\n aliasReEx: {\n type: \"string\",\n },\n },\n required: [\"module\", \"aliasReEx\"],\n additionalProperties: false,\n },\n behaviour: {\n type: \"string\",\n enum: [\n \"LOCK_UNLOCK\",\n \"ALWAYS_LOCKED\",\n \"SINGLE_PIN_MUX\",\n \"OPTIONAL_PIN_MUX\",\n \"PPS\",\n \"PORTMUX\",\n \"EXCLUSIVE_LOCK\",\n \"LOCKED_DISABLED\",\n ],\n },\n behaviourMeta: {\n type: \"object\",\n properties: {\n lockPinRegEx: {\n type: \"string\",\n },\n },\n required: [\"lockPinRegEx\"],\n additionalProperties: false,\n },\n pin_attribs: {\n type: \"object\",\n properties: {\n aliasReEx: {\n type: \"string\",\n },\n cname: {\n type: \"string\",\n },\n high: {\n type: \"boolean\",\n },\n inv: {\n type: \"boolean\",\n },\n wpu: {\n type: \"boolean\",\n },\n wpd: {\n type: \"boolean\",\n },\n od: {\n type: \"boolean\",\n },\n analog: {\n type: \"boolean\",\n },\n ioc: {\n $ref: \"#/definitions/pin_interrupts_enum\",\n },\n bidirection_out: {\n type: \"boolean\",\n },\n },\n required: [\"aliasReEx\"],\n additionalProperties: false,\n },\n pin_interrupts_enum: {\n type: \"string\",\n enum: [\n \"INTDIS_BUFFEN\",\n \"BOTH_EDGES\",\n \"RISING_EDGE\",\n \"FALLING_EDGE\",\n \"NONE\",\n \"LOW_LEVEL\",\n ],\n },\n pingroups_data: {\n type: \"object\",\n properties: {\n groups: {\n type: \"array\",\n items: {\n $ref: \"#/definitions/pins_group\",\n },\n },\n },\n required: [\"groups\"],\n additionalProperties: false,\n },\n pins_group: {\n type: \"object\",\n properties: {\n name: {\n type: \"string\",\n },\n filter: {\n $ref: \"#/definitions/grpfilter\",\n },\n datapath: {\n type: \"string\",\n },\n },\n required: [\"name\", \"filter\"],\n additionalProperties: false,\n },\n grpfilter: {\n type: \"object\",\n properties: {\n aliasReEx: {\n type: \"string\",\n },\n },\n required: [\"aliasReEx\"],\n additionalProperties: false,\n },\n },\n};\n//# sourceMappingURL=pin-standard.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.toDictionary = exports.assertNotNull = exports.map = exports.forEach = exports.values = exports.getKeys = void 0;\n/** @returns the non-prototype keys of the given object */\nvar getKeys = function (obj) {\n return Object.getOwnPropertyNames(obj);\n};\nexports.getKeys = getKeys;\n/**\n * Gets the values of a map as a list\n * @param obj\n * @returns\n */\nvar values = function (obj) {\n return (0, exports.getKeys)(obj).map(function (key) { return obj[key]; });\n};\nexports.values = values;\nvar forEach = function (obj, action) {\n (0, exports.getKeys)(obj).forEach(function (key) { return action(key, obj[key]); });\n};\nexports.forEach = forEach;\nvar map = function (obj, mapper) {\n return (0, exports.getKeys)(obj).map(function (key) { return mapper(key, obj[key]); });\n};\nexports.map = map;\nvar assertNotNull = function (val, msg) {\n if (val == null) {\n throw new Error(msg);\n }\n};\nexports.assertNotNull = assertNotNull;\nvar toDictionary = function (arr, keyMapper, valueMapper) {\n var result = {};\n arr.forEach(function (entry) {\n result[keyMapper(entry)] = valueMapper(entry);\n });\n return result;\n};\nexports.toDictionary = toDictionary;\n//# sourceMappingURL=Utils.js.map","\"use strict\";\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getFriendlyInterfaceId = exports.getModuleDefaultDescription = exports.DependencySelector = exports.getProcessedHandle = exports.getSettingOptionsIfPresent = exports.getOverrideDefaultValue = exports.getSettingDefaultIfPresent = exports.getOptionValueByName = exports.getSettingFromComponent = exports.getSettingBits = exports.getRegisterValues = exports.hasConfigBits = exports.getComboOptions = exports.getDefaultValue = exports.castComponent = void 0;\nvar CalculateRegisterValue_1 = __importDefault(require(\"@microchip/scf-device/lib/CalculateRegisterValue\"));\nvar Setting_1 = require(\"@microchip/scf-device/lib/Setting\");\nvar Arrays_1 = require(\"@microchip/scf-device/lib/util/Arrays\");\nvar Utils_1 = require(\"../Utils\");\nvar getConfigData_1 = require(\"./getConfigData\");\nvar castComponent = function (component) {\n switch (component.category) {\n case \"software\":\n return component;\n case \"import\":\n return component;\n case \"hardware\":\n return component;\n default:\n throw Error(\"Unsupported Component Type\");\n }\n};\nexports.castComponent = castComponent;\nvar getDefaultValue = function (overrideDefaultValues, component) {\n var _a;\n return ((_a = overrideDefaultValues === null || overrideDefaultValues === void 0 ? void 0 : overrideDefaultValues(component.name)) !== null && _a !== void 0 ? _a : (component.type === \"ComboBox\"\n ? component.defaultValue.value\n : component.defaultValue));\n};\nexports.getDefaultValue = getDefaultValue;\nvar getComboOptions = function (overrideOptions, component) {\n var _a, _b;\n return (_a = overrideOptions === null || overrideOptions === void 0 ? void 0 : overrideOptions(component.name)) !== null && _a !== void 0 ? _a : (_b = component === null || component === void 0 ? void 0 : component.defaultValue) === null || _b === void 0 ? void 0 : _b[\"options\"];\n};\nexports.getComboOptions = getComboOptions;\nvar hasConfigBits = function (interfaceName) {\n var _a;\n return ((_a = (0, exports.getFriendlyInterfaceId)(interfaceName)) === null || _a === void 0 ? void 0 : _a.indexOf(\"configuration_bits\")) != -1;\n};\nexports.hasConfigBits = hasConfigBits;\nvar getRegisterValues = function (model, interfaceName) {\n var _a;\n var registers = {};\n var config = (0, getConfigData_1.getConfigData)(model);\n interfaceName = (0, exports.getFriendlyInterfaceId)(interfaceName);\n (_a = config === null || config === void 0 ? void 0 : config.peripherals) === null || _a === void 0 ? void 0 : _a.forEach(function (peripheral) {\n var _a, _b, _c;\n var peripheralName = (_a = (0, exports.getFriendlyInterfaceId)(peripheral.interfaceId.name)) !== null && _a !== void 0 ? _a : \"\";\n if ((0, exports.hasConfigBits)(peripheralName))\n return;\n if ((interfaceName != undefined && peripheralName !== interfaceName) ||\n !peripheral.registers)\n return;\n (_c = (0, Utils_1.getKeys)((_b = peripheral.registers) !== null && _b !== void 0 ? _b : {})) === null || _c === void 0 ? void 0 : _c.forEach(function (regName) {\n var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;\n var registerValue;\n var reg = (_b = (_a = model.getHardware(peripheralName)) === null || _a === void 0 ? void 0 : _a.getPeripheral().registers) === null || _b === void 0 ? void 0 : _b[regName];\n if (reg) {\n registerValue = {\n comment: \"\",\n value: 0,\n valueAsHex: \"0x00\",\n name: reg === null || reg === void 0 ? void 0 : reg.name,\n alias: (_c = reg === null || reg === void 0 ? void 0 : reg.alias) !== null && _c !== void 0 ? _c : reg === null || reg === void 0 ? void 0 : reg.name,\n settings: {},\n };\n }\n else {\n return;\n }\n var registerVal = CalculateRegisterValue_1.default.for(reg);\n var comments = [];\n (_d = peripheral.registers) === null || _d === void 0 ? void 0 : _d[regName].forEach(function (set) {\n var _a, _b, _c, _d, _e;\n var setting = (_a = reg.settings) === null || _a === void 0 ? void 0 : _a[set.setting];\n if (setting) {\n if (setting.type !== \"R\") {\n //Add Comments\n comments.push(\"\".concat(set.setting, \" \").concat(model.getComponentValue(set.name), \"; \"));\n }\n if (registerValue === null || registerValue === void 0 ? void 0 : registerValue.settings) {\n registerValue.settings[setting.alias] = (0, exports.getSettingBits)(reg, setting, (_b = model.getComponent(set.name)) === null || _b === void 0 ? void 0 : _b.value, (_c = config === null || config === void 0 ? void 0 : config.deviceType) !== null && _c !== void 0 ? _c : \"PIC\");\n }\n switch (set.type) {\n case \"ComboBox\":\n case \"boolean\":\n registerVal.withNumberValue(setting, (_e = (0, exports.getOptionValueByName)(setting, (_d = model.getComponent(set.name)) === null || _d === void 0 ? void 0 : _d.value)) !== null && _e !== void 0 ? _e : 0);\n break;\n case \"number\":\n registerVal.withNumberValue(setting, model.getComponentValue(set.name));\n break;\n case \"register\":\n case \"string\":\n registerVal.withNumberValue(setting, Number(model.getComponentValue(set.name)));\n break;\n default:\n break;\n }\n }\n });\n if (reg.settings) {\n registerValue.value = registerVal.asNumber();\n }\n else {\n registerValue.value = Number((_j = model.getComponentValue((_h = (_g = (_f = (_e = peripheral.registers) === null || _e === void 0 ? void 0 : _e[regName]) === null || _f === void 0 ? void 0 : _f[0]) === null || _g === void 0 ? void 0 : _g.name) !== null && _h !== void 0 ? _h : \"\")) !== null && _j !== void 0 ? _j : 0);\n comments.push(\"\".concat(registerValue.name, \" \").concat(registerValue.value, \"; \"));\n }\n registerValue.valueAsHex =\n \"0x\" + registerValue.value.toString(16).toUpperCase();\n registerValue.comment = sortComments(comments, reg);\n registers[(_k = reg === null || reg === void 0 ? void 0 : reg.alias) !== null && _k !== void 0 ? _k : reg.name] = registerValue;\n });\n });\n return registers;\n};\nexports.getRegisterValues = getRegisterValues;\nvar sortComments = function (comments, register) {\n comments.sort(function (a, b) {\n var _a, _b, _c, _d;\n var settingA = (_a = register.settings) === null || _a === void 0 ? void 0 : _a[(_b = a.split[\" \"]) === null || _b === void 0 ? void 0 : _b[0]];\n var settingB = (_c = register.settings) === null || _c === void 0 ? void 0 : _c[(_d = b.split(\" \")) === null || _d === void 0 ? void 0 : _d[0]];\n return Number(settingB === null || settingB === void 0 ? void 0 : settingB.mask) - Number(settingA === null || settingA === void 0 ? void 0 : settingA.mask);\n });\n return comments.join(\"\");\n};\nvar getSettingBits = function (register, setting, value, deviceType) {\n var _a, _b;\n var setValNumber = Number((_b = (_a = (0, Setting_1.getOptionByAlias)(value, setting)) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : 0);\n var settingValue = {\n alias: setting.alias,\n name: setting.name,\n value: setValNumber !== null && setValNumber !== void 0 ? setValNumber : 0,\n valueAsHex: \"0x\" + setValNumber.toString(16).toUpperCase(),\n valueAsDescription: value,\n bitName: deviceType === \"PIC\"\n ? \"\".concat(register.name, \"bits.\").concat(setting.name)\n : \"\".concat(register.name, \".\").concat(setting.name),\n };\n return settingValue;\n};\nexports.getSettingBits = getSettingBits;\nvar getRegisterFromComponent = function (hardware, component) {\n var _a, _b, _c, _d, _e;\n var registerName = (_a = component.name\n .replace(component.setting.toLowerCase(), \"\")) === null || _a === void 0 ? void 0 : _a.toUpperCase();\n var register = (_b = hardware === null || hardware === void 0 ? void 0 : hardware.registers) === null || _b === void 0 ? void 0 : _b[registerName];\n if (register) {\n return register;\n }\n else {\n var regName = (_c = component.name\n .replace(component.setting.toLowerCase(), \"\")) === null || _c === void 0 ? void 0 : _c.toUpperCase();\n var registers = (0, Utils_1.getKeys)((_d = hardware === null || hardware === void 0 ? void 0 : hardware.registers) !== null && _d !== void 0 ? _d : {});\n for (var _i = 0, _f = registers !== null && registers !== void 0 ? registers : []; _i < _f.length; _i++) {\n var reg = _f[_i];\n var modifiedRegName = reg.replace(/_/g, \"\");\n if (regName === modifiedRegName) {\n return (_e = hardware === null || hardware === void 0 ? void 0 : hardware.registers) === null || _e === void 0 ? void 0 : _e[reg];\n }\n }\n }\n};\nvar getSettingFromComponent = function (model, component) {\n var _a;\n var config = (0, getConfigData_1.getConfigData)(model);\n var setting;\n if (model) {\n (_a = config === null || config === void 0 ? void 0 : config.peripherals) === null || _a === void 0 ? void 0 : _a.forEach(function (peripheral) {\n var _a, _b, _c;\n if (setting)\n return;\n var peripheralName = (0, exports.getFriendlyInterfaceId)(peripheral.interfaceId.name);\n var hardware = (_a = model.getHardware(peripheralName)) === null || _a === void 0 ? void 0 : _a.getPeripheral();\n var register = getRegisterFromComponent(hardware, component);\n if (register && !register.settings) {\n //No settings for this particular register. Create one\n setting = {\n alias: (_b = register.alias) !== null && _b !== void 0 ? _b : register.name,\n name: register.name,\n defaultValue: register.defaultValue,\n type: register.type,\n description: register.desc,\n porDefault: register.defaultValue,\n };\n }\n else {\n setting = (_c = register === null || register === void 0 ? void 0 : register.settings) === null || _c === void 0 ? void 0 : _c[component.setting];\n }\n });\n }\n return setting;\n};\nexports.getSettingFromComponent = getSettingFromComponent;\nvar getOptionValueByName = function (setting, optionName) {\n if (!setting)\n return undefined;\n var optionValue = setting.porDefault;\n if (setting.options) {\n setting.options.forEach(function (option) {\n if (option.name === optionName || option.description === optionName) {\n optionValue = option.value;\n }\n });\n }\n return Number(optionValue);\n};\nexports.getOptionValueByName = getOptionValueByName;\nvar getSettingDefaultIfPresent = function (component, setting, overrideDefaultValue) {\n var _a, _b;\n var defaultValue;\n if (overrideDefaultValue !== undefined) {\n return overrideDefaultValue;\n }\n if (component.overrideDefaultValue) {\n return component.overrideDefaultValue;\n }\n if (setting === null || setting === void 0 ? void 0 : setting.defaultValue) {\n var option = (0, Setting_1.getOptionByName)(setting.defaultValue, setting);\n defaultValue =\n (_b = option === null || option === void 0 ? void 0 : option[(_a = component.displayOptionSetting) !== null && _a !== void 0 ? _a : \"alias\"]) !== null && _b !== void 0 ? _b : setting.defaultValue;\n }\n return defaultValue;\n};\nexports.getSettingDefaultIfPresent = getSettingDefaultIfPresent;\nvar getOverrideDefaultValue = function (component, model) {\n var _a, _b;\n return (_b = (_a = model.getDerivedFunctions()).overrideDefaultValues) === null || _b === void 0 ? void 0 : _b.call(_a, component.name);\n};\nexports.getOverrideDefaultValue = getOverrideDefaultValue;\nvar getSettingOptionsIfPresent = function (component, setting, masterComponentValue) {\n var _a;\n var options = [\"\"];\n if (setting) {\n var filteredOptions = component.mode\n ? filterModeOptions((_a = setting.options) !== null && _a !== void 0 ? _a : [], component, masterComponentValue)\n : setting.options;\n options = (0, Arrays_1.map)(filteredOptions !== null && filteredOptions !== void 0 ? filteredOptions : [], function (option) { var _a, _b; return (_b = option[(_a = component.displayOptionSetting) !== null && _a !== void 0 ? _a : \"alias\"]) !== null && _b !== void 0 ? _b : option.alias; });\n }\n return options;\n};\nexports.getSettingOptionsIfPresent = getSettingOptionsIfPresent;\nvar filterModeOptions = function (options, component, masterComponentValue) {\n var _a, _b, _c, _d;\n if (((_a = component.mode) === null || _a === void 0 ? void 0 : _a.operation) != \"filterOptions\" || masterComponentValue == undefined)\n return options;\n //Determine mode\n var mode = (0, Arrays_1.find)((_d = (0, Utils_1.getKeys)((_c = (_b = component.mode) === null || _b === void 0 ? void 0 : _b.optionModes) !== null && _c !== void 0 ? _c : {})) !== null && _d !== void 0 ? _d : [], function (mode) {\n var _a, _b, _c, _d;\n var match = (_b = (_a = component.mode) === null || _a === void 0 ? void 0 : _a.optionModes) === null || _b === void 0 ? void 0 : _b[mode];\n if (match) {\n return ((_d = (_c = masterComponentValue === null || masterComponentValue === void 0 ? void 0 : masterComponentValue.match(match)) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : -1) > 0;\n }\n return false;\n });\n var filteredOptions = (0, Arrays_1.filter)(options !== null && options !== void 0 ? options : [], function (option) {\n var _a, _b, _c, _d;\n if (option.mode && mode) {\n var match = (_b = (_a = component.mode) === null || _a === void 0 ? void 0 : _a.optionModes) === null || _b === void 0 ? void 0 : _b[mode];\n if (match) {\n return ((_d = (_c = option.mode.match(match)) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : -1) > 0;\n }\n }\n return true;\n });\n return filteredOptions;\n};\nvar getProcessedHandle = function (handle, payload) {\n var _a, _b, _c;\n if (handle) {\n handle = __assign(__assign({}, handle), { label: (_c = (_b = (_a = payload === null || payload === void 0 ? void 0 : payload.moduleName) !== null && _a !== void 0 ? _a : payload === null || payload === void 0 ? void 0 : payload.name) !== null && _b !== void 0 ? _b : handle.label) !== null && _c !== void 0 ? _c : handle.providerId + \" : \" + handle.exportId });\n }\n return handle;\n};\nexports.getProcessedHandle = getProcessedHandle;\nvar DependencySelector = /** @class */ (function () {\n function DependencySelector(model, component) {\n var _this = this;\n this.noneSelection = { label: \"None\" };\n this.createOptionEntry = function (option) {\n return {\n label: _this.createOptionLabel(option.handle, option.payload),\n value: option,\n };\n };\n this.createOptionLabel = function (handle, payload) {\n var _a, _b;\n return (_b = (_a = (0, exports.getProcessedHandle)(handle, payload)) === null || _a === void 0 ? void 0 : _a.label) !== null && _b !== void 0 ? _b : \"\";\n };\n this.model = model;\n this.component = component;\n }\n DependencySelector.prototype.generateDropdownOptions = function () {\n var dropdownOptions = [];\n var thisImport = this.model.getImports()[this.component.importId];\n var options = thisImport === null || thisImport === void 0 ? void 0 : thisImport.options;\n if (this.shouldAllowUnselectDependency(thisImport, options)) {\n dropdownOptions.push(this.noneSelection);\n }\n if (options) {\n for (var option in options) {\n dropdownOptions.push(this.createOptionEntry(options[option]));\n }\n }\n return dropdownOptions;\n };\n DependencySelector.prototype.getDropdownOptionNames = function () {\n var names = [];\n this.generateDropdownOptions().forEach(function (option) { return names.push(option.label); });\n return names;\n };\n DependencySelector.prototype.shouldAllowUnselectDependency = function (thisImport, options) {\n return (thisImport != undefined &&\n thisImport.isUnassignable != false &&\n options !== undefined);\n };\n return DependencySelector;\n}());\nexports.DependencySelector = DependencySelector;\nfunction getModuleDefaultDescription() {\n //TODO: Need to refactor this so that gets it from the source.\n //Alternatively, we could get it during the automodule update process and fetch it from there...\n return undefined;\n}\nexports.getModuleDefaultDescription = getModuleDefaultDescription;\nvar getFriendlyInterfaceId = function (interfaceName) {\n interfaceName = interfaceName === null || interfaceName === void 0 ? void 0 : interfaceName.replace(/ /g, \"\").replace(/-/g, \"_\");\n return interfaceName;\n};\nexports.getFriendlyInterfaceId = getFriendlyInterfaceId;\n//# sourceMappingURL=AutoModuleHelpers.js.map","\"use strict\";\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getConfigData = void 0;\n/* eslint-disable @typescript-eslint/no-var-requires */\nvar Utils_1 = require(\"../Utils\");\nvar getConfigData = function (model) {\n var _a, _b;\n var config = (_b = model === null || model === void 0 ? void 0 : (_a = model.getDerivedData()).getModuleConfig) === null || _b === void 0 ? void 0 : _b.call(_a);\n config = ConfigBuilder.for(config)\n .withDynamicConfigData(model)\n .withDynamicComponents(model)\n .build();\n return config;\n};\nexports.getConfigData = getConfigData;\nvar ConfigBuilder = /** @class */ (function () {\n function ConfigBuilder(config) {\n var _this = this;\n this.build = function () {\n return _this.config;\n };\n this.withDynamicConfigData = function (model) {\n var _a;\n return new ConfigBuilder((_a = model === null || model === void 0 ? void 0 : model.getDerivedFunction(\"getDynamicConfigData\", _this.config)) !== null && _a !== void 0 ? _a : _this.config);\n };\n this.withDynamicComponents = function (model) {\n var _a, _b;\n var dynamicComponents = (_b = model === null || model === void 0 ? void 0 : (_a = model.getDerivedFunctions()).getDynamicComponents) === null || _b === void 0 ? void 0 : _b.call(_a);\n if (dynamicComponents) {\n var dynamicComponentMap = (0, Utils_1.toDictionary)(dynamicComponents, function (component) {\n var _a;\n _this.config.UIGroups[component.group] =\n (_a = _this.config.UIGroups[component.group]) !== null && _a !== void 0 ? _a : component.group;\n return component.name;\n }, function (component) { return component; });\n _this.config.softwareData = __assign(__assign({}, _this.config.softwareData), dynamicComponentMap);\n }\n return new ConfigBuilder(_this.config);\n };\n this.config = config;\n }\n ConfigBuilder.for = function (config) {\n if (!config)\n throw console.error(\"Cannot find ModuleConfig\");\n return new ConfigBuilder(config);\n };\n return ConfigBuilder;\n}());\n//# sourceMappingURL=getConfigData.js.map","\"use strict\";\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getDefaultInterruptActions = exports.InterruptActionsBuilder = void 0;\nvar AutoModuleHelpers_1 = require(\"../autoModule/AutoModuleHelpers\");\nvar InterruptActionsBuilder = /** @class */ (function () {\n function InterruptActionsBuilder(model) {\n var _this = this;\n this.actions = [];\n this.createActionFor = function (componentName) {\n var _a;\n _this.actions = _this.buildActions();\n _this.curComponent = componentName\n ? (_a = _this.model.getComponent(componentName)) === null || _a === void 0 ? void 0 : _a.component\n : undefined;\n _this.curComponentName = componentName;\n _this.tableRowId = undefined;\n _this.tableRowCol = undefined;\n _this.tableCellPath = undefined;\n return _this;\n };\n this.addActionIfEnabled = function (actionValue) {\n if (!_this.curComponentName || !_this.curComponent)\n return _this;\n if (!_this.isActionValueAcceptable(_this.curComponent, actionValue))\n return _this;\n var payload = {\n tabId: _this.curComponent.tabs[0],\n value: actionValue,\n };\n if (_this.curComponent.category === \"table\") {\n if (!_this.tableCellPath)\n return _this;\n payload = __assign(__assign({}, payload), { path: \"\".concat(_this.curComponent.group, \".\").concat(_this.curComponent.name, \".\").concat(_this.tableCellPath), rowId: _this.tableRowId });\n }\n else {\n payload = __assign(__assign({}, payload), { path: \"\".concat(_this.curComponent.group, \".\").concat(_this.curComponent.name) });\n }\n _this.actions.push({\n validFor: true,\n action: {\n type: \"[FORM] SUBMIT\",\n payload: payload,\n },\n });\n return _this;\n };\n this.addActionIfDisabled = function (actionValue) {\n if (!_this.curComponentName || !_this.curComponent)\n return _this;\n if (!_this.isActionValueAcceptable(_this.curComponent, actionValue))\n return _this;\n var payload = {\n tabId: _this.curComponent.tabs[0],\n value: actionValue,\n };\n if (_this.curComponent.category === \"table\") {\n if (!_this.tableCellPath)\n return _this;\n payload = __assign(__assign({}, payload), { path: \"\".concat(_this.curComponent.group, \".\").concat(_this.curComponent.name, \".\").concat(_this.tableCellPath), rowId: _this.tableRowId });\n }\n else {\n payload = __assign(__assign({}, payload), { path: \"\".concat(_this.curComponent.group, \".\").concat(_this.curComponent.name) });\n }\n _this.actions.push({\n validFor: false,\n action: {\n type: \"[FORM] SUBMIT\",\n payload: payload,\n },\n });\n return _this;\n };\n this.setPathToTableCell = function (rowIndex, colName) {\n var _a;\n if (((_a = _this.curComponent) === null || _a === void 0 ? void 0 : _a.category) !== \"table\")\n return _this;\n _this.tableRowId = rowIndex;\n _this.tableRowCol = colName;\n _this.tableCellPath = \"\".concat(rowIndex, \".\").concat(colName);\n return _this;\n };\n this.isActionValueAcceptable = function (component, actionValue) {\n var _a, _b, _c, _d, _e, _f, _g, _h;\n if (component.category === \"hardware\") {\n if (component.type === \"ComboBox\") {\n var options = (_a = (0, AutoModuleHelpers_1.getSettingFromComponent)(_this.model, component)) === null || _a === void 0 ? void 0 : _a.options;\n if (!(options === null || options === void 0 ? void 0 : options.some(function (option) {\n var _a;\n return option[(_a = component[\"displayOptionSetting\"]) !== null && _a !== void 0 ? _a : \"alias\"] ===\n actionValue;\n }))) {\n return false;\n }\n }\n else if (component.type === \"boolean\") {\n // if (actionValue !== \"enabled\" && actionValue !== \"disabled\") {\n if (actionValue !== true && actionValue !== false) {\n return false;\n }\n }\n }\n else if (component.category === \"software\") {\n if (component.type === \"ComboBox\") {\n var options = component[\"options\"];\n if (!(options === null || options === void 0 ? void 0 : options.some(function (option) { return option === actionValue; }))) {\n return false;\n }\n }\n else if (component.type === \"boolean\") {\n if (actionValue !== true && actionValue !== false) {\n return false;\n }\n }\n }\n else if (component.category === \"table\") {\n if (!_this.tableRowCol)\n return false;\n if (((_c = (_b = component.columns) === null || _b === void 0 ? void 0 : _b[_this.tableRowCol]) === null || _c === void 0 ? void 0 : _c.type) === \"ComboBox\") {\n var options = (_f = (_e = (_d = component.columns) === null || _d === void 0 ? void 0 : _d[_this.tableRowCol]) === null || _e === void 0 ? void 0 : _e.defaultValue) === null || _f === void 0 ? void 0 : _f[\"options\"];\n if (!(options === null || options === void 0 ? void 0 : options.some(function (option) { return option === actionValue; }))) {\n return false;\n }\n }\n else if (((_h = (_g = component.columns) === null || _g === void 0 ? void 0 : _g[_this.tableRowCol]) === null || _h === void 0 ? void 0 : _h.type) === \"boolean\") {\n if (actionValue !== true && actionValue !== false) {\n return false;\n }\n }\n }\n return true;\n };\n this.buildActions = function () {\n return _this.actions;\n };\n this.model = model;\n }\n InterruptActionsBuilder.createActionBuilder = function (model) {\n return new InterruptActionsBuilder(model);\n };\n return InterruptActionsBuilder;\n}());\nexports.InterruptActionsBuilder = InterruptActionsBuilder;\nfunction getDefaultInterruptActions(model, componentName) {\n if (!componentName)\n return [];\n return (InterruptActionsBuilder.createActionBuilder(model)\n .createActionFor(componentName)\n .addActionIfEnabled(true)\n .addActionIfDisabled(false)\n // .addActionIfEnabled(\"enabled\")\n // .addActionIfDisabled(\"disabled\")\n .buildActions());\n}\nexports.getDefaultInterruptActions = getDefaultInterruptActions;\n//# sourceMappingURL=InterruptActions.js.map","\"use strict\";\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.mapOptionLabels = exports.filterOptions = exports.isSingleton = exports.isUnassigned = exports.isAssigned = exports.hasOptions = exports.AlertTypes = void 0;\nvar AlertTypes;\n(function (AlertTypes) {\n AlertTypes[\"Error\"] = \"error\";\n AlertTypes[\"Warning\"] = \"warning\";\n AlertTypes[\"Hint\"] = \"hint\";\n})(AlertTypes = exports.AlertTypes || (exports.AlertTypes = {}));\n/**\n * See User-Defined Type Guards in the Typescript Handbook on Advanced Types\n * @see https://www.typescriptlang.org/docs/handbook/advanced-types.html\n */\nfunction hasOptions(dep) {\n return dep.options !== undefined;\n}\nexports.hasOptions = hasOptions;\n/**\n * See User-Defined Type Guards in the Typescript Handbook on Advanced Types\n * @see https://www.typescriptlang.org/docs/handbook/advanced-types.html\n */\nfunction isAssigned(dep) {\n return typeof dep.handle !== \"undefined\";\n}\nexports.isAssigned = isAssigned;\n/**\n * See User-Defined Type Guards in the Typescript Handbook on Advanced Types\n * @see https://www.typescriptlang.org/docs/handbook/advanced-types.html\n */\nfunction isUnassigned(dep) {\n return typeof dep.handle === \"undefined\";\n}\nexports.isUnassigned = isUnassigned;\n/**\n * Type guard function for SingletonExport\n * See User-Defined Type Guards in the Typescript Handbook on Advanced Types\n * @see https://www.typescriptlang.org/docs/handbook/advanced-types.html\n * @param resource the export to check on being a singleton\n * @deprecated No longer used. Replaced with dynamic singleton identification\n * at runtime.\n */\nfunction isSingleton(resource) {\n return typeof resource.isSingleton !== \"undefined\" && resource.isSingleton;\n}\nexports.isSingleton = isSingleton;\n/**\n * Returns a copy of `populatedImport` with all options removed which\n * cause `optionFilter` to return false.\n */\nfunction filterOptions(populatedImport, optionFilter) {\n if (populatedImport.options) {\n return __assign(__assign({}, populatedImport), { options: populatedImport.options.filter(optionFilter) });\n }\n return populatedImport;\n}\nexports.filterOptions = filterOptions;\n/**\n * Returns a copy of `populatedImport` with the options' handle labels\n * mapped according to `labelFactory`.\n */\nfunction mapOptionLabels(populatedImport, labelFactory) {\n if (populatedImport.options) {\n return __assign(__assign({}, populatedImport), { options: populatedImport.options.map(function (option) {\n return __assign(__assign({}, option), { handle: __assign(__assign({}, option.handle), { label: labelFactory(option) }) });\n }) });\n }\n return populatedImport;\n}\nexports.mapOptionLabels = mapOptionLabels;\n//# sourceMappingURL=Processor.js.map","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar Setting_1 = require(\"./Setting\");\nvar Register_1 = require(\"./Register\");\nvar Arrays_1 = require(\"./util/Arrays\");\n/** Builder pattern */\nvar CalculateRegisterValue = /** @class */ (function () {\n function CalculateRegisterValue(register) {\n var _this = this;\n this.modifiedSettings = [];\n /** Assign a numerical value to the given `Setting`. */\n this.withNumberValue = function (setting, value) {\n if (setting === undefined) {\n throw new Error(\"Cannot assign number value to setting, setting is undefined.\");\n }\n if (!_this.getSetting(setting)) {\n throw new Error(\"Setting \".concat(setting.alias, \" is not present in Register \").concat(_this.register.name));\n }\n _this.modifiedSettings = __spreadArray(__spreadArray([], _this.modifiedSettings, true), [\n new NumberSettingValue(setting, value),\n ], false);\n return _this;\n };\n /** Assign the given `Option` to the given `Setting`. */\n this.withOption = function (setting, option) {\n if (setting === undefined) {\n throw new Error(\"Cannot assign option to setting, setting is undefined.\");\n }\n if (!_this.getSetting(setting)) {\n throw new Error(\"Setting \".concat(setting.alias, \" is not present in Register \").concat(_this.register.name));\n }\n if (!option || !_this.getOption(setting, option)) {\n throw new Error(\"Option \".concat(option === null || option === void 0 ? void 0 : option.name, \" is not present in Setting \").concat(setting.name));\n }\n _this.modifiedSettings = __spreadArray(__spreadArray([], _this.modifiedSettings, true), [\n new OptionSettingValue(setting, option),\n ], false);\n return _this;\n };\n /** Assign the `Option` matching the given alias to the given `Setting`. */\n this.withOptionAlias = function (setting, optionAlias) {\n if (setting === undefined) {\n throw new Error(\"Cannot assign option alias to setting, setting is undefined.\");\n }\n var option = (0, Setting_1.getOptionByAlias)(optionAlias, setting);\n if (option === undefined) {\n throw new Error(\"Option Alias: \\\"\".concat(optionAlias, \"\\\" not present in Setting: \\\"\").concat(setting.name, \"\\\".\"));\n }\n return _this.withOption(setting, option);\n };\n /** Assign the `Option` matching the given name to the given `Setting`. */\n this.withOptionName = function (setting, optionName) {\n if (setting === undefined) {\n throw new Error(\"Cannot assign option name to setting, setting is undefined.\");\n }\n var option = (0, Setting_1.getOptionByName)(optionName, setting);\n if (option === undefined) {\n throw new Error(\"Option Name: \\\"\".concat(optionName, \"\\\" not present in Setting: \\\"\").concat(setting.name, \"\\\".\"));\n }\n return _this.withOption(setting, option);\n };\n /** Assign the `Option` matching the given description to the given `Setting`. */\n this.withOptionDescription = function (setting, optionDescription) {\n if (setting === undefined) {\n throw new Error(\"Cannot assign option description to setting, setting is undefined.\");\n }\n var option = (0, Setting_1.getOptionByDescription)(optionDescription, setting);\n if (option === undefined) {\n throw new Error(\"Option Description: \\\"\".concat(optionDescription, \"\\\" not present in Setting: \\\"\").concat(setting.name, \"\\\".\"));\n }\n return _this.withOption(setting, option);\n };\n this.getSetting = function (setting) {\n return (0, Register_1.getSettingByAlias)(setting.alias, _this.register);\n };\n this.getOption = function (setting, option) {\n return (option === null || option === void 0 ? void 0 : option.name) ? (0, Setting_1.getOptionByName)(option.name, setting) : undefined;\n };\n this.calculate = function () {\n var registerValue = 0;\n _this.modifiedSettings.forEach(function (modifiedSetting) {\n registerValue = _this.setValue(modifiedSetting, registerValue);\n });\n var unmodifiedSettings = _this.getUnmodifiedSettings();\n unmodifiedSettings.forEach(function (unmodifiedSetting) {\n registerValue = _this.setValue(SettingValue.defaultValue(unmodifiedSetting), registerValue);\n });\n return Number(registerValue);\n };\n this.setValue = function (setting, registerValue) {\n var value = registerValue;\n value &= ~setting.getMask(); // Clear bits\n value |= setting.getShiftedValue(); // Set bits\n return value;\n };\n this.getUnmodifiedSettings = function () {\n var _a, _b;\n var modifiedSettingNames = (0, Arrays_1.map)(_this.modifiedSettings, function (setting) {\n return setting.getName();\n });\n return (0, Arrays_1.filter)((_b = (0, Arrays_1.values)((_a = _this.register.settings) !== null && _a !== void 0 ? _a : {})) !== null && _b !== void 0 ? _b : [], function (setting) { return modifiedSettingNames.indexOf(setting.name) < 0; });\n };\n /** Calculate and print the register's value as a hex string. */\n this.asHexString = function () { return CalculateRegisterValue.toHexString(_this.calculate()); };\n /** Calculate and print the register's value as a binary string. */\n this.asBinaryString = function () {\n return CalculateRegisterValue.toBinaryString(_this.calculate());\n };\n /** Calculate and print the register's value as a decimal string. */\n this.asDecimalString = function () {\n return CalculateRegisterValue.toDecimalString(_this.calculate());\n };\n /** Calculate and return the register's value as a number. */\n this.asNumber = function () { return _this.calculate(); };\n this.register = register;\n }\n /** Creates a register value calculation object for the given register. */\n CalculateRegisterValue.for = function (register) {\n return new CalculateRegisterValue(register);\n };\n /** Format the given number as a hex string value. */\n CalculateRegisterValue.toHexString = function (value) {\n if (value == null) {\n throw new Error(\"CalculateRegisterValue.toHexString() illegal argument exception. Value must not be null.\");\n }\n return \"0x\" + value.toString(16);\n };\n /** Format the given number as a binary string value. */\n CalculateRegisterValue.toBinaryString = function (value) {\n if (value == null) {\n throw new Error(\"CalculateRegisterValue.toBinaryString() illegal argument exception. Value must not be null.\");\n }\n return \"0b\" + value.toString(2);\n };\n /** Format the given number as a decimal string value. */\n CalculateRegisterValue.toDecimalString = function (value) {\n if (value == null) {\n throw new Error(\"CalculateRegisterValue.toDecimalString() illegal argument exception. Value must not be null.\");\n }\n return value.toString();\n };\n return CalculateRegisterValue;\n}());\nexports.default = CalculateRegisterValue;\nvar SettingValue = /** @class */ (function () {\n function SettingValue(setting) {\n var _this = this;\n this.getMask = function () { return Number(_this.setting.mask); };\n this.getShift = function () {\n var mask = _this.getMask();\n var shiftIndex = 0;\n while (!(mask & 0x1)) {\n mask = mask >> 1;\n shiftIndex++;\n }\n return shiftIndex;\n };\n this.getShiftedValue = function () { return _this.getValue() << _this.getShift(); };\n this.getName = function () { return _this.setting.name; };\n this.setting = setting;\n }\n SettingValue.defaultValue = function (setting) {\n var value = Number(setting.porDefault);\n return new NumberSettingValue(setting, value);\n };\n return SettingValue;\n}());\nvar NumberSettingValue = /** @class */ (function (_super) {\n __extends(NumberSettingValue, _super);\n function NumberSettingValue(setting, value) {\n var _this = _super.call(this, setting) || this;\n _this.getValue = function () { return _this.value; };\n _this.value = value;\n return _this;\n }\n return NumberSettingValue;\n}(SettingValue));\nvar OptionSettingValue = /** @class */ (function (_super) {\n __extends(OptionSettingValue, _super);\n function OptionSettingValue(setting, option) {\n var _this = _super.call(this, setting) || this;\n _this.getValue = function () { return Number(_this.option.value); };\n _this.option = option;\n return _this;\n }\n OptionSettingValue.fromDefaultValue = function (setting, value) {\n var foundValueByName = (0, Setting_1.getOptionByName)(value, setting);\n if (foundValueByName)\n return new OptionSettingValue(setting, foundValueByName);\n var foundValueByAlias = (0, Setting_1.getOptionByAlias)(value, setting);\n if (foundValueByAlias)\n return new OptionSettingValue(setting, foundValueByAlias);\n throw new Error(\"Unable to create default value '\".concat(value, \"' for setting '\").concat(setting.name, \"'.\"));\n };\n return OptionSettingValue;\n}(SettingValue));\n//# sourceMappingURL=CalculateRegisterValue.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getSettingByAlias = void 0;\nvar getSettingByAlias = function (alias, register) {\n var _a;\n return (_a = register.settings) === null || _a === void 0 ? void 0 : _a[alias];\n};\nexports.getSettingByAlias = getSettingByAlias;\n//# sourceMappingURL=Register.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getOptionDescriptions = exports.getOptionNames = exports.getOptionByDescription = exports.getOptionByName = exports.getOptionByAlias = exports.getBitRange = exports.getBitLabel = void 0;\nvar Arrays_1 = require(\"./util/Arrays\");\n/**\n * Converts a hexadecimal string to binary.\n * Any leading zeros are removed from the returned string.\n */\nvar hexToBinary = function (hex) {\n return parseInt(hex, 16).toString(2);\n};\n/**\n * Returns a string of the corresponding bit position(s).\n */\nvar getBitLabel = function (setting) {\n if (setting.mask === undefined) {\n return undefined;\n }\n var bitRange = (0, exports.getBitRange)(setting);\n if (!bitRange)\n return undefined;\n if (bitRange.high === bitRange.low) {\n return \"bit \".concat(bitRange.high);\n }\n return \"bit \".concat(bitRange.high, \"-\").concat(bitRange.low);\n};\nexports.getBitLabel = getBitLabel;\n/**\n * Converts the hexadecimal mask provided within the register setting\n * and returns an interface containing the corresponding low and high bit positions.\n */\nvar getBitRange = function (setting) {\n if (!setting.mask)\n return undefined;\n var processedHex = hexToBinary(setting.mask);\n return {\n high: processedHex.length - 1,\n low: getBitRangeLow(processedHex),\n };\n};\nexports.getBitRange = getBitRange;\nvar getOptionByAlias = function (alias, setting) {\n var _a;\n return (0, Arrays_1.find)((_a = setting === null || setting === void 0 ? void 0 : setting.options) !== null && _a !== void 0 ? _a : [], function (option) { return option.alias == alias; });\n};\nexports.getOptionByAlias = getOptionByAlias;\nvar getOptionByName = function (name, setting) {\n var _a;\n return (0, Arrays_1.find)((_a = setting === null || setting === void 0 ? void 0 : setting.options) !== null && _a !== void 0 ? _a : [], function (option) { return option.name == name; });\n};\nexports.getOptionByName = getOptionByName;\nvar getOptionByDescription = function (description, setting) {\n var _a;\n return (0, Arrays_1.find)((_a = setting.options) !== null && _a !== void 0 ? _a : [], function (option) { return option.description == description; });\n};\nexports.getOptionByDescription = getOptionByDescription;\nvar getOptionNames = function (setting) {\n var _a;\n return (0, Arrays_1.map)((_a = setting.options) !== null && _a !== void 0 ? _a : [], function (option) { return option.name; });\n};\nexports.getOptionNames = getOptionNames;\nvar getOptionDescriptions = function (setting) {\n var _a;\n return (0, Arrays_1.map)((_a = setting.options) !== null && _a !== void 0 ? _a : [], function (option) { return option.description; });\n};\nexports.getOptionDescriptions = getOptionDescriptions;\nfunction getBitRangeLow(processedHex) {\n if (processedHex.charAt(1) === \"1\") {\n var index = 1;\n while (processedHex.charAt(index) === \"1\") {\n index++;\n }\n return processedHex.length - index;\n }\n else {\n return processedHex.length - 1;\n }\n}\n//# sourceMappingURL=Setting.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.values = exports.getKeys = exports.find = exports.filter = exports.map = void 0;\nvar map = function (arr, callback) {\n var result = [];\n arr.forEach(function (value, index) {\n result[index] = callback(value);\n });\n return result;\n};\nexports.map = map;\nvar filter = function (arr, callback) {\n var result = [];\n arr.forEach(function (value) {\n if (callback(value)) {\n result.push(value);\n }\n });\n return result;\n};\nexports.filter = filter;\n/**\n * Iterates over elements of the array, returning the first element that the predicate returns truthy for.\n */\nvar find = function (arr, callback) {\n for (var i = 0; i < arr.length; i++) {\n if (callback(arr[i])) {\n return arr[i];\n }\n }\n return undefined;\n};\nexports.find = find;\n/** @returns the non-prototype keys of the given object */\nvar getKeys = function (obj) {\n if (!obj)\n return undefined;\n return Object.getOwnPropertyNames(obj);\n};\nexports.getKeys = getKeys;\nvar values = function (obj) {\n var _a;\n if (!obj)\n return undefined;\n return (_a = (0, exports.getKeys)(obj)) === null || _a === void 0 ? void 0 : _a.map(function (key) { return obj[key]; });\n};\nexports.values = values;\n//# sourceMappingURL=Arrays.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.buildSimpleApi = function (functions) {\n var api = {};\n for (var key in functions) {\n api[key] = buildFunction(functions[key]);\n }\n return api;\n};\nvar buildFunction = function (cFunction) {\n return cFunction.returns + \" \" + cFunction.name + \"(\" + buildArguments(cFunction.arguments) + \")\";\n};\nvar buildArguments = function (args) {\n if (args) {\n return args.map(function (arg) { return arg.type + \" \" + arg.name; }).join(\", \");\n }\n else {\n return \"void\";\n }\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getInterfaceName = function (pkgJson) {\n var strReplace = \"@microchip/\";\n var interfaceName;\n if (pkgJson) {\n interfaceName = pkgJson[\"name\"];\n if (interfaceName) {\n interfaceName = interfaceName.replace(strReplace, \"\");\n }\n }\n if (!interfaceName) {\n throw new Error(\"Invalid Interface Name...!\");\n }\n return interfaceName;\n};\nexports.getInterfaceVersion = function (pkgJson) {\n var versionRegex = new RegExp(\"\\\\d+.\\\\d+.\\\\d+\");\n var version;\n if (pkgJson) {\n version = pkgJson[\"version\"];\n }\n if (!version && !versionRegex.test(version)) {\n throw new Error(\"Invalid Interface Version...!\");\n }\n return version;\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar c_function_types_1 = require(\"./c-function-types\");\nexports.buildSimpleApi = c_function_types_1.buildSimpleApi;\nvar helpers_1 = require(\"./helpers\");\nexports.getInterfaceName = helpers_1.getInterfaceName;\nexports.getInterfaceVersion = helpers_1.getInterfaceVersion;\n","require('../../modules/es.math.log10');\nvar path = require('../../internals/path');\n\nmodule.exports = path.Math.log10;\n","require('../../modules/es.string.includes');\nvar entryUnbind = require('../../internals/entry-unbind');\n\nmodule.exports = entryUnbind('String', 'includes');\n","var parent = require('../../es/math/log10');\n\nmodule.exports = parent;\n","var parent = require('../../es/string/includes');\n\nmodule.exports = parent;\n","module.exports = function (it) {\n if (typeof it != 'function') {\n throw TypeError(String(it) + ' is not a function');\n } return it;\n};\n","var isObject = require('../internals/is-object');\n\nmodule.exports = function (it) {\n if (!isObject(it)) {\n throw TypeError(String(it) + ' is not an object');\n } return it;\n};\n","var toIndexedObject = require('../internals/to-indexed-object');\nvar toLength = require('../internals/to-length');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\n\n// `Array.prototype.{ indexOf, includes }` methods implementation\nvar createMethod = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.includes` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n};\n","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n","var has = require('../internals/has');\nvar ownKeys = require('../internals/own-keys');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar definePropertyModule = require('../internals/object-define-property');\n\nmodule.exports = function (target, source) {\n var keys = ownKeys(source);\n var defineProperty = definePropertyModule.f;\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar MATCH = wellKnownSymbol('match');\n\nmodule.exports = function (METHOD_NAME) {\n var regexp = /./;\n try {\n '/./'[METHOD_NAME](regexp);\n } catch (e) {\n try {\n regexp[MATCH] = false;\n return '/./'[METHOD_NAME](regexp);\n } catch (f) { /* empty */ }\n } return false;\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = DESCRIPTORS ? function (object, key, value) {\n return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","var fails = require('../internals/fails');\n\n// Thank's IE8 for his funny defineProperty\nmodule.exports = !fails(function () {\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;\n});\n","var global = require('../internals/global');\nvar isObject = require('../internals/is-object');\n\nvar document = global.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS = isObject(document) && isObject(document.createElement);\n\nmodule.exports = function (it) {\n return EXISTS ? document.createElement(it) : {};\n};\n","var global = require('../internals/global');\nvar bind = require('../internals/function-bind-context');\n\nvar call = Function.call;\n\nmodule.exports = function (CONSTRUCTOR, METHOD, length) {\n return bind(call, global[CONSTRUCTOR].prototype[METHOD], length);\n};\n","// IE8- don't enum bug keys\nmodule.exports = [\n 'constructor',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toLocaleString',\n 'toString',\n 'valueOf'\n];\n","var global = require('../internals/global');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar redefine = require('../internals/redefine');\nvar setGlobal = require('../internals/set-global');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar isForced = require('../internals/is-forced');\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.noTargetGet - prevent calling a getter on target\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var FORCED, target, key, targetProperty, sourceProperty, descriptor;\n if (GLOBAL) {\n target = global;\n } else if (STATIC) {\n target = global[TARGET] || setGlobal(TARGET, {});\n } else {\n target = (global[TARGET] || {}).prototype;\n }\n if (target) for (key in source) {\n sourceProperty = source[key];\n if (options.noTargetGet) {\n descriptor = getOwnPropertyDescriptor(target, key);\n targetProperty = descriptor && descriptor.value;\n } else targetProperty = target[key];\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contained in target\n if (!FORCED && targetProperty !== undefined) {\n if (typeof sourceProperty === typeof targetProperty) continue;\n copyConstructorProperties(sourceProperty, targetProperty);\n }\n // add a flag to not completely full polyfills\n if (options.sham || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(sourceProperty, 'sham', true);\n }\n // extend global\n redefine(target, key, sourceProperty, options);\n }\n};\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n};\n","var aFunction = require('../internals/a-function');\n\n// optional / simple context binding\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 0: return function () {\n return fn.call(that);\n };\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","var path = require('../internals/path');\nvar global = require('../internals/global');\n\nvar aFunction = function (variable) {\n return typeof variable == 'function' ? variable : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global[namespace])\n : path[namespace] && path[namespace][method] || global[namespace] && global[namespace][method];\n};\n","var check = function (it) {\n return it && it.Math == Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nmodule.exports =\n // eslint-disable-next-line no-undef\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n check(typeof self == 'object' && self) ||\n check(typeof global == 'object' && global) ||\n // eslint-disable-next-line no-new-func\n Function('return this')();\n","var hasOwnProperty = {}.hasOwnProperty;\n\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n","module.exports = {};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar createElement = require('../internals/document-create-element');\n\n// Thank's IE8 for his funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () { return 7; }\n }).a != 7;\n});\n","var fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\n\nvar split = ''.split;\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins\n return !Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) == 'String' ? split.call(it, '') : Object(it);\n} : Object;\n","var store = require('../internals/shared-store');\n\nvar functionToString = Function.toString;\n\n// this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper\nif (typeof store.inspectSource != 'function') {\n store.inspectSource = function (it) {\n return functionToString.call(it);\n };\n}\n\nmodule.exports = store.inspectSource;\n","var NATIVE_WEAK_MAP = require('../internals/native-weak-map');\nvar global = require('../internals/global');\nvar isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar objectHas = require('../internals/has');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar WeakMap = global.WeakMap;\nvar set, get, has;\n\nvar enforce = function (it) {\n return has(it) ? get(it) : set(it, {});\n};\n\nvar getterFor = function (TYPE) {\n return function (it) {\n var state;\n if (!isObject(it) || (state = get(it)).type !== TYPE) {\n throw TypeError('Incompatible receiver, ' + TYPE + ' required');\n } return state;\n };\n};\n\nif (NATIVE_WEAK_MAP) {\n var store = new WeakMap();\n var wmget = store.get;\n var wmhas = store.has;\n var wmset = store.set;\n set = function (it, metadata) {\n wmset.call(store, it, metadata);\n return metadata;\n };\n get = function (it) {\n return wmget.call(store, it) || {};\n };\n has = function (it) {\n return wmhas.call(store, it);\n };\n} else {\n var STATE = sharedKey('state');\n hiddenKeys[STATE] = true;\n set = function (it, metadata) {\n createNonEnumerableProperty(it, STATE, metadata);\n return metadata;\n };\n get = function (it) {\n return objectHas(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return objectHas(it, STATE);\n };\n}\n\nmodule.exports = {\n set: set,\n get: get,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n};\n","var fails = require('../internals/fails');\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value == POLYFILL ? true\n : value == NATIVE ? false\n : typeof detection == 'function' ? fails(detection)\n : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n","module.exports = false;\n","var isObject = require('../internals/is-object');\nvar classof = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar MATCH = wellKnownSymbol('match');\n\n// `IsRegExp` abstract operation\n// https://tc39.github.io/ecma262/#sec-isregexp\nmodule.exports = function (it) {\n var isRegExp;\n return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n // Chrome 38 Symbol has incorrect toString conversion\n // eslint-disable-next-line no-undef\n return !String(Symbol());\n});\n","var global = require('../internals/global');\nvar inspectSource = require('../internals/inspect-source');\n\nvar WeakMap = global.WeakMap;\n\nmodule.exports = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap));\n","var isRegExp = require('../internals/is-regexp');\n\nmodule.exports = function (it) {\n if (isRegExp(it)) {\n throw TypeError(\"The method doesn't accept regular expressions\");\n } return it;\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar anObject = require('../internals/an-object');\nvar toPrimitive = require('../internals/to-primitive');\n\nvar nativeDefineProperty = Object.defineProperty;\n\n// `Object.defineProperty` method\n// https://tc39.github.io/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? nativeDefineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return nativeDefineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPrimitive = require('../internals/to-primitive');\nvar has = require('../internals/has');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\n\nvar nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPrimitive(P, true);\n if (IE8_DOM_DEFINE) try {\n return nativeGetOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (has(O, P)) return createPropertyDescriptor(!propertyIsEnumerableModule.f.call(O, P), O[P]);\n};\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\nvar hiddenKeys = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.github.io/ecma262/#sec-object.getownpropertynames\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n};\n","exports.f = Object.getOwnPropertySymbols;\n","var has = require('../internals/has');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar indexOf = require('../internals/array-includes').indexOf;\nvar hiddenKeys = require('../internals/hidden-keys');\n\nmodule.exports = function (object, names) {\n var O = toIndexedObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~indexOf(result, key) || result.push(key);\n }\n return result;\n};\n","'use strict';\nvar nativePropertyIsEnumerable = {}.propertyIsEnumerable;\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor(this, V);\n return !!descriptor && descriptor.enumerable;\n} : nativePropertyIsEnumerable;\n","var getBuiltIn = require('../internals/get-built-in');\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar anObject = require('../internals/an-object');\n\n// all object keys, includes non-enumerable and symbols\nmodule.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {\n var keys = getOwnPropertyNamesModule.f(anObject(it));\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;\n};\n","var global = require('../internals/global');\n\nmodule.exports = global;\n","var global = require('../internals/global');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar has = require('../internals/has');\nvar setGlobal = require('../internals/set-global');\nvar inspectSource = require('../internals/inspect-source');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar getInternalState = InternalStateModule.get;\nvar enforceInternalState = InternalStateModule.enforce;\nvar TEMPLATE = String(String).split('String');\n\n(module.exports = function (O, key, value, options) {\n var unsafe = options ? !!options.unsafe : false;\n var simple = options ? !!options.enumerable : false;\n var noTargetGet = options ? !!options.noTargetGet : false;\n if (typeof value == 'function') {\n if (typeof key == 'string' && !has(value, 'name')) createNonEnumerableProperty(value, 'name', key);\n enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');\n }\n if (O === global) {\n if (simple) O[key] = value;\n else setGlobal(key, value);\n return;\n } else if (!unsafe) {\n delete O[key];\n } else if (!noTargetGet && O[key]) {\n simple = true;\n }\n if (simple) O[key] = value;\n else createNonEnumerableProperty(O, key, value);\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, 'toString', function toString() {\n return typeof this == 'function' && getInternalState(this).source || inspectSource(this);\n});\n","// `RequireObjectCoercible` abstract operation\n// https://tc39.github.io/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n","var global = require('../internals/global');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\n\nmodule.exports = function (key, value) {\n try {\n createNonEnumerableProperty(global, key, value);\n } catch (error) {\n global[key] = value;\n } return value;\n};\n","var shared = require('../internals/shared');\nvar uid = require('../internals/uid');\n\nvar keys = shared('keys');\n\nmodule.exports = function (key) {\n return keys[key] || (keys[key] = uid(key));\n};\n","var global = require('../internals/global');\nvar setGlobal = require('../internals/set-global');\n\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || setGlobal(SHARED, {});\n\nmodule.exports = store;\n","var IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.6.4',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2020 Denis Pushkarev (zloirock.ru)'\n});\n","var toInteger = require('../internals/to-integer');\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n var integer = toInteger(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n","// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject = require('../internals/indexed-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nmodule.exports = function (it) {\n return IndexedObject(requireObjectCoercible(it));\n};\n","var ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `ToInteger` abstract operation\n// https://tc39.github.io/ecma262/#sec-tointeger\nmodule.exports = function (argument) {\n return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);\n};\n","var toInteger = require('../internals/to-integer');\n\nvar min = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.github.io/ecma262/#sec-tolength\nmodule.exports = function (argument) {\n return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n","var isObject = require('../internals/is-object');\n\n// `ToPrimitive` abstract operation\n// https://tc39.github.io/ecma262/#sec-toprimitive\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (input, PREFERRED_STRING) {\n if (!isObject(input)) return input;\n var fn, val;\n if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;\n if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;\n if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n","var id = 0;\nvar postfix = Math.random();\n\nmodule.exports = function (key) {\n return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);\n};\n","var NATIVE_SYMBOL = require('../internals/native-symbol');\n\nmodule.exports = NATIVE_SYMBOL\n // eslint-disable-next-line no-undef\n && !Symbol.sham\n // eslint-disable-next-line no-undef\n && typeof Symbol.iterator == 'symbol';\n","var global = require('../internals/global');\nvar shared = require('../internals/shared');\nvar has = require('../internals/has');\nvar uid = require('../internals/uid');\nvar NATIVE_SYMBOL = require('../internals/native-symbol');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar WellKnownSymbolsStore = shared('wks');\nvar Symbol = global.Symbol;\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : Symbol && Symbol.withoutSetter || uid;\n\nmodule.exports = function (name) {\n if (!has(WellKnownSymbolsStore, name)) {\n if (NATIVE_SYMBOL && has(Symbol, name)) WellKnownSymbolsStore[name] = Symbol[name];\n else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);\n } return WellKnownSymbolsStore[name];\n};\n","var $ = require('../internals/export');\n\nvar log = Math.log;\nvar LOG10E = Math.LOG10E;\n\n// `Math.log10` method\n// https://tc39.github.io/ecma262/#sec-math.log10\n$({ target: 'Math', stat: true }, {\n log10: function log10(x) {\n return log(x) * LOG10E;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar notARegExp = require('../internals/not-a-regexp');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar correctIsRegExpLogic = require('../internals/correct-is-regexp-logic');\n\n// `String.prototype.includes` method\n// https://tc39.github.io/ecma262/#sec-string.prototype.includes\n$({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {\n includes: function includes(searchString /* , position = 0 */) {\n return !!~String(requireObjectCoercible(this))\n .indexOf(notARegExp(searchString), arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","import { Alert, AlertTypes } from \"@microchip/scf-common/lib/Processor\";\nimport { AppModel } from \"../generated_module/src/types/AutoModuleTypes\";\nimport includes from \"core-js/features/string/includes\";\n\nexport function getInputSignalAlerts(dataModel: AppModel): Alert {\n const inputSignal: any = dataModel.getComponentValue(\"ctsCcpcap\");\n let peripheralOption: any;\n let peripheralImportKey: any;\n\n if (includes(inputSignal, \"CMP\")) {\n // when source is: CMP1_out || CMP_out || CMP3_out\n peripheralOption = inputSignal.replace(\"_OUT\", \"\");\n peripheralImportKey = \"CMP\";\n } else if (includes(inputSignal, \"CLC\")) {\n // when source is: CLC1OUT || CLC2OUT || CLC3OUT || CLC4OUT || CLC5OUT || CLC6OUT || CLC7OUT || CLC8OUT\n peripheralOption = inputSignal.replace(\"_OUT\", \"\");\n peripheralImportKey = \"CLC\";\n }\n\n if (dataModel.getImportValue(peripheralImportKey) === undefined) {\n return {\n type: AlertTypes.Warning,\n text: `Configure ${peripheralOption} for Capture Input Source in the ${peripheralImportKey} Dependency Selector.`,\n };\n } else {\n let instance = \"\";\n if (includes(inputSignal, \"CMP\")) {\n // when source is: CMP1_out || CMP_out || CMP3_out\n instance = dataModel.getImportValue(peripheralImportKey).moduleName;\n } else if (includes(inputSignal, \"CLC\")) {\n // when source is: CLC1OUT || CLC2OUT || CLC3OUT || CLC4OUT || CLC5OUT || CLC6OUT || CLC7OUT || CLC8OUT\n instance = dataModel.getImportValue(peripheralImportKey).moduleName;\n }\n\n if (peripheralOption === instance) {\n return {\n type: AlertTypes.Hint,\n text: `${dataModel.getName()} uses ${peripheralOption} as Capture Input Source.`,\n };\n } else {\n return {\n type: AlertTypes.Warning,\n text: `Configure ${peripheralOption} for Capture Input Source in the ${peripheralImportKey} Dependency Selector.`,\n };\n }\n }\n}\n\nexport function getCcpTimerAlerts(dataModel: AppModel): Alert {\n const ccpTimer: any = dataModel.getComponentValue(\"ccpTimer\");\n const peripheralOption = \"TMR\" + ccpTimer.substring(ccpTimer.length - 1);\n\n if (dataModel.getImportValue(\"TMR1_3_5\") === undefined) {\n return {\n type: AlertTypes.Warning,\n text: `Please configure ${peripheralOption} for ${dataModel.getComponentValue(\n \"ccpMode\",\n )} mode in the TMR Dependency Selector.`,\n };\n } else {\n const instance = dataModel.getImportValue(\"TMR1_3_5\").moduleName;\n if (peripheralOption === instance) {\n return {\n type: AlertTypes.Hint,\n text: `The ${dataModel.getName()} module uses ${peripheralOption}.`,\n };\n } else {\n return {\n type: AlertTypes.Warning,\n text: `Please configure ${peripheralOption} for ${dataModel.getComponentValue(\n \"ccpMode\",\n )} mode in the TMR Dependency Selector.`,\n };\n }\n }\n}\n\nexport function getPwmTimerAlerts(dataModel: AppModel): Alert {\n const pwmTimer: any = dataModel.getComponentValue(\"pwmTimer\");\n const peripheralOption = \"TMR\" + pwmTimer.substring(pwmTimer.length - 1);\n\n if (dataModel.getImportValue(\"TMR2_4_6\") === undefined) {\n return {\n type: AlertTypes.Warning,\n text: `Please configure ${peripheralOption} for ${dataModel.getComponentValue(\n \"ccpMode\",\n )} mode in the TMR Dependency Selector.`,\n };\n } else {\n const instance = dataModel.getImportValue(\"TMR2_4_6\").moduleName;\n if (peripheralOption === instance) {\n return {\n type: AlertTypes.Hint,\n text: `The ${dataModel.getName()} module uses ${peripheralOption}.`,\n };\n } else {\n return {\n type: AlertTypes.Warning,\n text: `Please configure ${peripheralOption} for ${dataModel.getComponentValue(\n \"ccpMode\",\n )} mode in the TMR Dependency Selector.`,\n };\n }\n }\n}\n","import { CreatorFunctions } from \"@microchip/melody-automodule-interface\";\nimport { MyState } from \"../generated_module/src/types/AutoModuleTypes\";\nimport includes from \"core-js/features/string/includes\";\n\nexport const getCreatorFunctions = (): CreatorFunctions => {\n return {\n shouldImport: shouldImport,\n getCreatorImportArgs: getCreatorImportArgs,\n };\n};\n\nexport const shouldImport = (importKey: string, state: MyState | undefined): boolean => {\n let shouldImport = false;\n\n const ccpMode: string = state?.main?.hardware?.ccpMode ?? \"off/reset\";\n const inputSignal: string = state?.main?.hardware?.ctsCcpcap ?? \"CCP1 pin\";\n // const ccpTimer: string = state?.main?.hardware?.ccpTimer ?? \"Timer 1\";\n // const pwmTimer: string = state?.main?.hardware?.pwmTimer ?? \"Timer 2\";\n\n if (importKey === \"CMP\") {\n if (ccpMode === \"Capture\" && includes(inputSignal, \"CMP\")) {\n shouldImport = true;\n }\n } else if (importKey === \"CLC\") {\n if (ccpMode === \"Capture\" && includes(inputSignal, \"CLC\")) {\n shouldImport = true;\n }\n } else if (importKey === \"TMR1_3_5\") {\n if (ccpMode === \"Capture\" || ccpMode === \"Compare\") {\n shouldImport = true;\n }\n } else if (importKey === \"TMR2_4_6\") {\n if (ccpMode === \"PWM\") {\n shouldImport = true;\n }\n } else {\n shouldImport = true;\n }\n\n return shouldImport;\n};\n\nconst getCreatorImportArgs = (importKey: string, state: MyState): any | undefined => {\n return undefined;\n};\n","import {\n AppModel,\n DerivedData,\n DerivedFunctions,\n} from \"../generated_module/src/types/AutoModuleTypes\";\nimport * as Processor from \"@microchip/scf-common/lib/Processor\";\nimport * as CCPInterface from \"./interfaces/ccp_interface\";\nimport * as SignalSrcInterface from \"./interfaces/signal-source\";\nimport * as TriggerSrcInterface from \"./interfaces/trigger-source\";\nimport { PwmCalculator } from \"./PwmCalculator\";\nimport { ExportArg } from \"@microchip/melody-automodule-interface/lib/src/InterfaceTypes\";\nimport { getInputSignalAlerts, getCcpTimerAlerts, getPwmTimerAlerts } from \"./Alerts\";\nimport { Module } from \"@microchip/scf-device\";\nimport { MyImports } from \"../generated_module/src/types\";\nimport * as initializer_system from \"@microchip/initializer-system\";\nimport { getGeneratorModel, createFirmwareApi, getHeaderFiles } from \"./GeneratorModel\";\nimport includes from \"core-js/features/string/includes\";\nimport { InterruptActions } from \"@microchip/melody-automodule-interface/lib/src/InterruptTypes\";\nimport { InterruptActionsBuilder } from \"@microchip/scf-automodule-impl/lib/interrupts/InterruptActions\";\nimport { InterfaceId } from \"@microchip/scf-common/lib/InterfaceId\";\nimport { getPinsLogic } from \"../generated_module/src/pins/PCPHelper\";\n\nexport const getDerivedData = (dataModel: AppModel): DerivedData => {\n if (dataModel) {\n return new MyDerivedData(dataModel);\n }\n return new EmptyDerivedData();\n};\n\nclass EmptyDerivedData implements DerivedData {\n getMyFunctions = (): DerivedFunctions => {\n return {};\n };\n getModel = (): AppModel | undefined => {\n return undefined;\n };\n}\n\nclass MyDerivedData implements DerivedData {\n private dataModel: AppModel;\n private pwmCalculator: PwmCalculator;\n\n constructor(dataModel: AppModel) {\n this.dataModel = dataModel;\n }\n\n getMyFunctions = (): DerivedFunctions => {\n return {\n moduleName: this.getModuleName,\n customName: (): any => this.getModel().getComponentValue(\"componentName\"),\n templateName: this.getTemplateName,\n pinData: this.getMyPinData,\n templateData: (): any => getGeneratorModel(this.getModel()),\n alerts: this.getMyAlerts,\n overrideDefaultValues: this.overrideDefaultValue,\n overrideOptions: this.overrideOptions,\n showImportComponent: (): any => false,\n filterImports: this.filterImports,\n getProcessedArgValue: this.getProcessedArgValue,\n [\"ccp-interface_payload\"]: this.getCcpInterfacePayload,\n [\"signal-source_payload\"]: this.getSignalSrcPayload,\n [\"trigger-source_payload\"]: this.getTriggerSrcPayload,\n ccpmCcpcon: this.getSelectedMode,\n ccpi: this.getInterruptEnable,\n ccprValue: this.getCCPRValue,\n ccprhCcprh: this.getCCPRHValue,\n ccprlCcprl: this.getCCPRLValue,\n ctselCcptmrs: this.getSelectedTimer,\n pwmPeriod: this.getPwmPeriod,\n pwmFrequency: this.getPwmFrequency,\n pwmResolution: this.getPwmResolution,\n dutyCycleValidator: this.getDutyCycleValidator,\n isDefaultMode: (): boolean =>\n this.getModel().getComponentValue(\"ccpMode\") === \"off/reset\",\n isCaptureMode: (): boolean =>\n this.getModel().getComponentValue(\"ccpMode\") === \"Capture\",\n isCompareMode: (): boolean =>\n this.getModel().getComponentValue(\"ccpMode\") === \"Compare\",\n isPwmMode: (): boolean =>\n this.getModel().getComponentValue(\"ccpMode\") === \"PWM\",\n componentName: this.getComponentName,\n enCcpcon: this.getEnableCcp,\n ccpMode: this.getCcpMode,\n captureMode: this.getCaptureMode,\n ctsCcpcap: this.getInputSrc,\n compareMode: this.getCompareMode,\n ccpTimer: this.getCcpTimerSrc,\n dutyCycle: this.getDutyCycle,\n fmtCcpcon: this.getAlignment,\n pwmTimer: this.getPwmTimerSrc,\n interruptEnable: this.getEnableInterrupt,\n initializer_system_results: this.initializer_system_results,\n isrCallback: this.isrCallback,\n getInterruptActions: this.getInterruptActions,\n filterInterrupts: this.filterInterrupts,\n getPinsLogic: getPinsLogic,\n importName: this.friendlyImportName,\n };\n };\n\n private friendlyImportName = (importKey: string): string => {\n if (importKey === \"scf_pic8_ccp_v1\") return \"CCP Hardware\";\n if (importKey === \"osc_clocks\") return \"Oscillator Clock\";\n if (importKey === \"initializer_system\") return \"system.c Initialize()\";\n if (importKey === \"pin_standard\") return \"Pins\";\n if (importKey === \"interrupt_standard\") return \"Interrupts\";\n return importKey;\n };\n\n getPwmCalculator = (): PwmCalculator => {\n if (!this.pwmCalculator) {\n this.pwmCalculator = new PwmCalculator(\n Number(this.getPRValue()),\n Number(this.getPrescaler()),\n Number(this.getFosc()),\n Number(this.getModel().getComponentValue(\"dutyCycle\")),\n );\n }\n return this.pwmCalculator;\n };\n\n public getModel = (): AppModel => {\n return this.dataModel;\n };\n\n public getModuleName = (): string => {\n return this.getModel().getHardware()?.getPeripheral()?.name ?? \"CCP1\";\n };\n\n private getInterruptActions = (\n interruptName: string,\n actionFor: string,\n ): InterruptActions => {\n return InterruptActionsBuilder.createActionBuilder(this.getModel())\n .createActionFor(\"interruptEnable\")\n .addActionIfEnabled(true)\n .addActionIfDisabled(false)\n .buildActions();\n };\n\n private filterInterrupts = (interruptName: string): boolean => {\n switch (interruptName) {\n case \"CCPI\":\n return /^(Capture|Compare)$/.test(\n this.getModel().getComponentValue(\"ccpMode\") ?? \"\",\n );\n default:\n return false;\n }\n };\n\n private getTemplateName = (src: string): any => {\n if (\n src === \"output/default-source-template.c.ftl\" ||\n src === \"output/capture-source-template.c.ftl\"\n ) {\n return \"capture/src/\" + this.getModel().getName().toLowerCase() + \".c\";\n } else if (\n src === \"output/default-header-template.h.ftl\" ||\n src === \"output/capture-header-template.h.ftl\"\n ) {\n return \"capture/\" + this.getModel().getName().toLowerCase() + \".h\";\n } else if (src === \"output/compare-source-template.c.ftl\") {\n return \"compare/src/\" + this.getModel().getName().toLowerCase() + \".c\";\n } else if (src === \"output/compare-header-template.h.ftl\") {\n return \"compare/\" + this.getModel().getName().toLowerCase() + \".h\";\n } else if (src === \"output/pwm-source-template.c.ftl\") {\n return \"pwm/src/\" + this.getModel().getName().toLowerCase() + \".c\";\n } else if (src === \"output/pwm-header-template.h.ftl\") {\n return \"pwm/\" + this.getModel().getName().toLowerCase() + \".h\";\n } else return undefined;\n };\n\n private overrideDefaultValue = (componentName: string): any => {\n if (componentName === \"componentName\") {\n if (this.getModel().getComponentValue(\"ccpMode\") === \"PWM\") {\n return \"PWM\" + this.getModuleInstance();\n } else {\n return this.getModel().getHardware()?.getPeripheral()?.name ?? \"CCP\";\n }\n }\n return undefined;\n };\n\n private overrideOptions = (componentName: string): any => {\n switch (componentName) {\n case \"ccpTimer\":\n return this.getTimerOptions();\n case \"pwmTimer\":\n return this.getTimerOptions();\n default:\n break;\n }\n return undefined;\n };\n\n private getTimerOptions = (): string[] | undefined => {\n const result: string[] = [];\n const CCPTMRS = this.getModel().getPeripheralDescription()?.registers?.CCPTMRS;\n if (CCPTMRS) {\n const timerSelectOptions = CCPTMRS.settings?.CTSEL;\n for (const eachoptn of timerSelectOptions?.options ?? []) {\n if (\n this.getModel().getComponentValue(\"ccpMode\") === \"Capture\" ||\n this.getModel().getComponentValue(\"ccpMode\") === \"Compare\"\n ) {\n const timeroptnregex = /^CCP[0-9]timer([0-9])$/i;\n const optnmatch = eachoptn.alias.match(timeroptnregex);\n const correctOptnName =\n (optnmatch?.length ?? 0) > 1 ? \"Timer \" + optnmatch?.[1] : \"\";\n if (correctOptnName) {\n result.push(correctOptnName);\n }\n } else if (this.getModel().getComponentValue(\"ccpMode\") === \"PWM\") {\n const timeroptnregex = /^PWM[0-9]timer([0-9])$/i;\n const optnmatch = eachoptn.alias.match(timeroptnregex);\n const correctOptnName =\n (optnmatch?.length ?? 0) > 1 ? \"Timer \" + optnmatch?.[1] : \"\";\n if (correctOptnName) {\n result.push(correctOptnName);\n }\n }\n }\n } else {\n if (\n this.getModel().getComponentValue(\"ccpMode\") === \"Capture\" ||\n this.getModel().getComponentValue(\"ccpMode\") === \"Compare\"\n ) {\n result.push(\"Timer 1\");\n } else if (this.getModel().getComponentValue(\"ccpMode\") === \"PWM\") {\n result.push(\"Timer 2\");\n }\n }\n return result;\n };\n\n public getModuleInstance = (): string => {\n return this.getModel()\n .getName()\n .substring(this.getModel().getName().length - 1);\n };\n\n private initializer_system_results = (): initializer_system.Results => {\n return {\n initializer: {\n name: this.getModel().getComponentValue(\"componentName\") + \"_Initialize\",\n header: getHeaderFiles(this.getModel())[0],\n },\n };\n };\n\n private isrCallback = (intName: string): any => {\n if (\n this.getModel().getComponentValue(\"ccpMode\") === \"Capture\" ||\n this.getModel().getComponentValue(\"ccpMode\") === \"Compare\"\n ) {\n return {\n name:\n this.getModel().getComponentValue(\"componentName\") +\n \"_\" +\n this.getModel().getComponentValue(\"ccpMode\") +\n \"ISR\",\n header: getHeaderFiles(this.getModel())[0],\n };\n } else {\n return {\n name: this.getModel().getComponentValue(\"componentName\") + \"_ISR\",\n header: getHeaderFiles(this.getModel())[0],\n };\n }\n };\n\n private getCcpInterfacePayload = (): CCPInterface.ProcessedPayload => {\n const dataModel: AppModel = this.getModel();\n const getCCPRValue = this.getCCPRValue;\n const getPwmFrequency = this.getPwmFrequency;\n const getPwmPeriod = this.getPwmPeriod;\n const getPwmResolution = this.getPwmResolution;\n return {\n interfaceApi: createFirmwareApi(this.getModel()),\n customName: this.getModel().getComponentValue(\"componentName\"),\n enableCCP: this.getModel().isComponentValue(\"enCcpcon\"),\n ccpMode: this.getModel().getComponentValue(\"ccpMode\"),\n capture: getCapturePayload(),\n compare: getComparePayload(),\n pwm: getPwmPayload(),\n enabledInterrupt: this.getModel().isComponentValue(\"interruptEnable\"),\n moduleName: this.getModel().getName(),\n hasInterrupts: true,\n };\n\n function getCapturePayload(): any {\n if (dataModel.getComponentValue(\"ccpMode\") === \"Capture\") {\n return {\n mode: dataModel.getComponentValue(\"captureMode\"),\n inputSrc: dataModel.getComponentValue(\"ctsCcpcap\"),\n timerSrc: dataModel.getComponentValue(\"ccpTimer\"),\n };\n }\n }\n\n function getComparePayload(): any {\n if (dataModel.getComponentValue(\"ccpMode\") === \"Compare\") {\n return {\n mode: dataModel.getComponentValue(\"compareMode\"),\n timerSrc: dataModel.getComponentValue(\"ccpTimer\"),\n };\n }\n }\n\n function getPwmPayload(): any {\n if (dataModel.getComponentValue(\"ccpMode\") === \"PWM\") {\n return {\n dutyCycle: dataModel.getComponentValue(\"dutyCycle\"),\n alignment: dataModel.getComponentValue(\"fmtCcpcon\"),\n ccprValue: getCCPRValue(),\n period: getPwmPeriod(),\n frequency: getPwmFrequency(),\n resolution: getPwmResolution(),\n timerSrc: dataModel.getComponentValue(\"pwmTimer\"),\n };\n }\n }\n };\n\n private getSignalSrcPayload = (): SignalSrcInterface.ProcessedPayload => {\n return {\n moduleName: this.getModuleName(),\n customName: this.getModel().getComponentValue(\"componentName\"),\n };\n };\n\n private getTriggerSrcPayload = (): TriggerSrcInterface.ProcessedPayload => {\n return {\n moduleName: this.getModuleName(),\n customName: this.getModel().getComponentValue(\"componentName\"),\n };\n };\n\n private getProcessedArgValue = (\n componentName: string,\n exportArgs: ExportArg[],\n ): ExportArg | undefined => {\n return undefined;\n };\n\n private getMyPinData = (): any => {\n return {};\n };\n\n private getMyAlerts = (): Processor.Alert[] => {\n const alerts: Processor.Alert[] = [];\n let alert: Processor.Alert | undefined;\n let tmrOption: string;\n const ccpTimer: any = this.getModel().getComponentValue(\"ccpTimer\");\n const pwmTimer: any = this.getModel().getComponentValue(\"pwmTimer\");\n\n switch (this.getModel().getComponentValue(\"ccpMode\")) {\n case \"Capture\":\n if (\n includes(this.getModel().getComponentValue(\"ctsCcpcap\"), \"CMP\") ||\n includes(this.getModel().getComponentValue(\"ctsCcpcap\"), \"CLC\")\n ) {\n alerts.push(getInputSignalAlerts(this.getModel()));\n }\n alerts.push(getCcpTimerAlerts(this.getModel()));\n\n tmrOption = \"TMR\" + ccpTimer.substring(ccpTimer.length - 1);\n\n if (\n this.getModel().getImportValue(\"TMR1_3_5\") !== undefined &&\n this.getModel().getImportValue(\"TMR1_3_5\").moduleName == tmrOption\n ) {\n alert = this.getTimerClockAlerts();\n if (alert !== undefined) {\n alerts.push(alert);\n }\n }\n\n alerts.push({\n type: Processor.AlertTypes.Hint,\n text: \"Please refer to the assigned timer for captured values.\",\n });\n break;\n case \"Compare\":\n alerts.push(getCcpTimerAlerts(this.getModel()));\n\n tmrOption = \"TMR\" + ccpTimer.substring(ccpTimer.length - 1);\n\n if (\n this.getModel().getImportValue(\"TMR1_3_5\") !== undefined &&\n this.getModel().getImportValue(\"TMR1_3_5\").moduleName == tmrOption\n ) {\n alert = this.getTimerClockAlerts();\n if (alert !== undefined) {\n alerts.push(alert);\n }\n }\n\n alerts.push({\n type: Processor.AlertTypes.Hint,\n text:\n \"Please refer to the assigned timer to adjust the Compare trip point.\",\n });\n break;\n case \"PWM\":\n alerts.push(getPwmTimerAlerts(this.getModel()));\n tmrOption = \"TMR\" + pwmTimer.substring(pwmTimer.length - 1);\n\n if (\n this.getModel().getImportValue(\"TMR2_4_6\") !== undefined &&\n this.getModel().getImportValue(\"TMR2_4_6\").moduleName == tmrOption &&\n this.getTMR2ClockSrc() != \"FOSC/4\"\n ) {\n alerts.push({\n type: Processor.AlertTypes.Warning,\n text:\n \"In order to use the PWM mode, please configure \" +\n this.getModel().getComponentValue(\"pwmTimer\") +\n \" to use FOSC/4 as clock source.\",\n });\n }\n\n alerts.push({\n type: Processor.AlertTypes.Hint,\n text:\n \"Please refer to the assigned timer to adjust the PWM frequency.\",\n });\n break;\n default:\n }\n return alerts;\n };\n\n private filterImports = (imports: MyImports): MyImports => {\n let filteredImports: MyImports = imports;\n const ccpModeSelected: string =\n this.getModel().getComponentValue(\"ccpMode\") ?? \"off/reset\";\n const capSrcSelected: string =\n this.getModel().getComponentValue(\"ctsCcpcap\") ?? \"CCP1 pin\";\n const ccpTmrSelected: string =\n this.getModel().getComponentValue(\"ccpTimer\") ?? \"Timer 1\";\n const pwmTmrSelected: string =\n this.getModel().getComponentValue(\"pwmTimer\") ?? \"Timer 2\";\n if (this.getPeripheralInstance() !== undefined) {\n filteredImports = this.getModel().filterImportBySetting(\n imports,\n \"scf_pic8_ccp_v1\",\n (option: Processor.Option<Module>): boolean => {\n return option.payload?.name === this.getPeripheralInstance();\n },\n ) as MyImports;\n }\n if (ccpModeSelected === \"Capture\") {\n filteredImports = this.getModel().filterImportBySetting(\n filteredImports ? filteredImports : imports,\n \"TMR1_3_5\", //Import Key\n (option: Processor.Option<any>): any => {\n const regexpNumber = /\\d/;\n const inst = ccpTmrSelected.match(regexpNumber);\n if (ccpTmrSelected.indexOf(\"Timer\") !== -1) {\n return option.payload.moduleName === \"TMR\" + inst;\n }\n },\n ) as MyImports;\n if (includes(capSrcSelected, \"CMP\")) {\n // when source is: CMP1_out || CMP_out || CMP3_out\n filteredImports = this.getModel().filterImportBySetting(\n filteredImports ? filteredImports : imports,\n \"CMP\", //Import Key\n (option: Processor.Option<any>): any => {\n const regexpNumber = /\\d/;\n const inst = capSrcSelected.match(regexpNumber);\n if (capSrcSelected.indexOf(\"CMP\") !== -1) {\n return option.payload.moduleName === \"CMP\" + inst;\n }\n },\n ) as MyImports;\n } else if (includes(capSrcSelected, \"CLC\")) {\n // when source is: CLC1OUT || CLC2OUT || CLC3OUT || CLC4OUT || CLC5OUT || CLC6OUT || CLC7OUT || CLC8OUT\n filteredImports = this.getModel().filterImportBySetting(\n filteredImports ? filteredImports : imports,\n \"CLC\", //Import Key\n (option: Processor.Option<any>): any => {\n const regexpNumber = /\\d/;\n const inst = capSrcSelected.match(regexpNumber);\n if (capSrcSelected.indexOf(\"CLC\") !== -1) {\n return option.payload.moduleName === \"CLC\" + inst;\n }\n },\n ) as MyImports;\n }\n } else if (ccpModeSelected === \"Compare\") {\n filteredImports = this.getModel().filterImportBySetting(\n filteredImports ? filteredImports : imports,\n \"TMR1_3_5\",\n (option: Processor.Option<any>): any => {\n const regexpNumber = /\\d/;\n const inst = ccpTmrSelected.match(regexpNumber);\n if (ccpTmrSelected.indexOf(\"Timer\") !== -1) {\n return option.payload.moduleName === \"TMR\" + inst;\n }\n },\n ) as MyImports;\n } else if (ccpModeSelected === \"PWM\") {\n filteredImports = this.getModel().filterImportBySetting(\n filteredImports ? filteredImports : imports,\n \"TMR2_4_6\",\n (option: Processor.Option<any>): any => {\n const regexpNumber = /\\d/;\n const inst = pwmTmrSelected.match(regexpNumber);\n if (pwmTmrSelected.indexOf(\"Timer\") !== -1) {\n return option.payload.moduleName === \"TMR\" + inst;\n }\n },\n ) as MyImports;\n }\n\n return filteredImports;\n };\n\n private getTimerClockAlerts = (): Processor.Alert | undefined => {\n if (\n this.getTMR1ClockSrc() === \"External\" ||\n this.getTMR1ClockSrc() === \"EXTOSC\"\n ) {\n if (this.getTimerSync() != \"synchronize\") {\n return {\n type: Processor.AlertTypes.Warning,\n text:\n \"Configure \" +\n this.getModel().getComponentValue(\"ccpTimer\") +\n \" to operate as a synchronous counter to use it as the \" +\n this.getModel().getComponentValue(\"ccpMode\") +\n \" source.\",\n };\n }\n } else if (this.getTMR1ClockSrc() != \"FOSC/4\") {\n return {\n type: Processor.AlertTypes.Warning,\n text:\n \"Configure \" +\n this.getModel().getComponentValue(\"ccpTimer\") +\n \" to operate on a frequency, equal to or lesser than FOSC/4, to use it as the \" +\n this.getModel().getComponentValue(\"ccpMode\") +\n \" source.\",\n };\n } else {\n return undefined;\n }\n };\n\n private getSelectedMode = (): any => {\n switch (this.getModel().getComponentValue(\"ccpMode\")) {\n case \"off/reset\":\n return this.getModel().getComponentValue(\"ccpMode\");\n case \"Capture\":\n return this.getModel().getComponentValue(\"captureMode\");\n case \"Compare\":\n return this.getModel().getComponentValue(\"compareMode\");\n case \"PWM\":\n return this.getModel().getComponentValue(\"ccpMode\");\n default:\n return \"off/reset\";\n }\n };\n\n private getSelectedTimer = (): any => {\n switch (this.getModel().getComponentValue(\"ccpMode\")) {\n case \"off/reset\":\n return \"CCP\" + this.getModuleInstance() + \"timer1\";\n case \"Capture\":\n return this.getSelectedCcpTimer();\n case \"Compare\":\n return this.getSelectedCcpTimer();\n case \"PWM\":\n return this.getSelectedPwmTimer();\n default:\n return \"CCP\" + this.getModuleInstance() + \"timer1\";\n }\n };\n\n private getSelectedCcpTimer = (): any => {\n switch (this.getModel().getComponentValue(\"ccpTimer\")) {\n case \"Timer 1\":\n return \"CCP\" + this.getModuleInstance() + \"timer1\";\n case \"Timer 3\":\n return \"CCP\" + this.getModuleInstance() + \"timer3\";\n case \"Timer 5\":\n return \"CCP\" + this.getModuleInstance() + \"timer5\";\n default:\n return \"CCP\" + this.getModuleInstance() + \"timer1\";\n }\n };\n\n private getSelectedPwmTimer = (): any => {\n switch (this.getModel().getComponentValue(\"pwmTimer\")) {\n case \"Timer 2\":\n return \"PWM\" + this.getModuleInstance() + \"timer2\";\n case \"Timer 4\":\n return \"PWM\" + this.getModuleInstance() + \"timer4\";\n case \"Timer 6\":\n return \"PWM\" + this.getModuleInstance() + \"timer6\";\n default:\n return \"PWM\" + this.getModuleInstance() + \"timer2\";\n }\n };\n\n private getInterruptEnable = (): any => {\n switch (this.getModel().getComponentValue(\"ccpMode\")) {\n case \"off/reset\":\n return false;\n case \"Capture\":\n return this.getModel().getComponentValue(\"interruptEnable\");\n case \"Compare\":\n return this.getModel().getComponentValue(\"interruptEnable\");\n case \"PWM\":\n return false;\n default:\n return false;\n }\n };\n\n private getDutyCycleValidator = (): any => {\n return {\n minimum: 0,\n maximum: 100,\n };\n };\n\n private getFosc = (): any => {\n return this.getModel().getImportValue(\"osc_clocks\").fosc ?? 0;\n };\n\n private getPRValue = (): number => {\n // const pwmTimer = this.getModel().getComponentValue(\"pwmTimer\") ?? \"Timer 2\";\n // const peripheralOption = \"TMR\" + pwmTimer.substring(pwmTimer.length - 1);\n return Number(\n this.getModel().getImportValue(\"TMR2_4_6\")?.periodRegisterValue ?? 0,\n );\n };\n\n private getPrescaler = (): number => {\n // const pwmTimer = this.getModel().getComponentValue(\"pwmTimer\") ?? \"Timer 2\";\n // const peripheralOption = \"TMR\" + pwmTimer.substring(pwmTimer.length - 1);\n return Number(this.getModel().getImportValue(\"TMR2_4_6\")?.prescaleValue ?? 1);\n };\n\n private getTMR1ClockSrc = (): any => {\n // const ccpTimer = this.getModel().getComponentValue(\"ccpTimer\") ?? \"Timer 1\";\n // const peripheralOption = \"TMR\" + ccpTimer.substring(ccpTimer.length - 1);\n return this.getModel().getImportValue(\"TMR1_3_5\").clocksource;\n };\n\n private getTMR2ClockSrc = (): any => {\n // const pwmTimer = this.getModel().getComponentValue(\"pwmTimer\") ?? \"Timer 2\";\n // const peripheralOption = \"TMR\" + pwmTimer.substring(pwmTimer.length - 1);\n return this.getModel().getImportValue(\"TMR2_4_6\").clockSource;\n };\n\n private getTimerSync = (): any => {\n // const ccpTimer = this.getModel().getComponentValue(\"ccpTimer\") ?? \"Timer 1\";\n // const peripheralOption = \"TMR\" + ccpTimer.substring(ccpTimer.length - 1);\n return this.getModel().getImportValue(\"TMR1_3_5\").enableSynchronization;\n };\n\n private getPwmPeriod = (): string => {\n // const pwmTimer = this.getModel().getComponentValue(\"pwmTimer\") ?? \"Timer 2\";\n // const peripheralOption = \"TMR\" + pwmTimer.substring(pwmTimer.length - 1);\n if (this.getModel().getImportValue(\"TMR2_4_6\") !== undefined) {\n return this.getPwmCalculator().getPwmPeriod().toFixed(3).toString();\n } else {\n return \"0\";\n }\n };\n\n private getPwmFrequency = (): string => {\n // const pwmTimer = this.getModel().getComponentValue(\"pwmTimer\") ?? \"Timer 2\";\n // const peripheralOption = \"TMR\" + pwmTimer.substring(pwmTimer.length - 1);\n if (this.getModel().getImportValue(\"TMR2_4_6\") !== undefined) {\n return this.getPwmCalculator().getPwmFrequency().toFixed(3).toString();\n } else {\n return \"0\";\n }\n };\n\n private getPwmResolution = (): string => {\n // const pwmTimer = this.getModel().getComponentValue(\"pwmTimer\") ?? \"Timer 2\";\n // const peripheralOption = \"TMR\" + pwmTimer.substring(pwmTimer.length - 1);\n if (this.getModel().getImportValue(\"TMR2_4_6\") !== undefined) {\n return this.getPwmCalculator().getPwmResolution().toString();\n } else {\n return \"0\";\n }\n };\n\n private getCCPRValue = (): string => {\n // const pwmTimer = this.getModel().getComponentValue(\"pwmTimer\") ?? \"Timer 2\";\n // const peripheralOption = \"TMR\" + pwmTimer.substring(pwmTimer.length - 1);\n if (this.getModel().getImportValue(\"TMR2_4_6\") !== undefined) {\n return this.getPwmCalculator().getCCPRValue().toString();\n } else {\n return \"0\";\n }\n };\n\n private getCCPRHValue = (): string => {\n if (this.getModel().getComponentValue(\"ccpMode\") == \"PWM\") {\n let ccprValue = Number(this.getCCPRValue());\n if (this.getModel().getComponentValue(\"fmtCcpcon\") == \"left_aligned\") {\n ccprValue = ccprValue << 6;\n }\n const ccprhValue = ccprValue >> 8;\n return ccprhValue.toString();\n } else {\n return \"0\";\n }\n };\n\n private getCCPRLValue = (): string => {\n if (this.getModel().getComponentValue(\"ccpMode\") == \"PWM\") {\n let ccprValue = Number(this.getCCPRValue());\n if (this.getModel().getComponentValue(\"fmtCcpcon\") == \"left_aligned\") {\n ccprValue = ccprValue << 6;\n }\n const ccprlValue = ccprValue & 0xff;\n return ccprlValue.toString();\n } else {\n return \"0\";\n }\n };\n\n private getRequestedArg = (argName: string): any => {\n const arg = this.getRequestedArgFrom(\n CCPInterface.Interface.getInterfaceId(),\n argName,\n );\n if (arg != undefined) {\n return arg;\n }\n };\n\n private getRequestedArgFrom = (interfaceId: InterfaceId, argName: string): any => {\n const cmpExport = this.getModel()\n .getExportInterfaces()\n .getInterface(\"ccp\", interfaceId);\n if (cmpExport && cmpExport.args) {\n const chosen = Object.keys(cmpExport.args)[0];\n const args = cmpExport.args[chosen];\n if (args && args[argName] != undefined) {\n return args[argName];\n }\n }\n };\n\n private getComponentName = (): string => {\n return this.getRequestedArg(\"customName\");\n };\n\n private getCcpMode = (): string => {\n return this.getRequestedArg(\"ccpMode\");\n };\n\n private getEnableCcp = (): boolean => {\n return this.getRequestedArg(\"enableCCP\");\n };\n\n private getCaptureMode = (): string => {\n return this.getRequestedArg(\"capture\")?.mode;\n };\n\n private getInputSrc = (): string => {\n return this.getRequestedArg(\"capture\")?.inputSrc;\n };\n\n private getCapTimerSrc = (): string => {\n return this.getRequestedArg(\"capture\")?.timerSrc;\n };\n\n private getCompareMode = (): string => {\n return this.getRequestedArg(\"compare\")?.mode;\n };\n\n private getComTimerSrc = (): string => {\n return this.getRequestedArg(\"compare\")?.timerSrc;\n };\n\n private getCcpTimerSrc = (): string | undefined => {\n if (this.getModel().getComponentValue(\"ccpMode\") === \"Capture\") {\n return this.getCapTimerSrc();\n } else if (this.getModel().getComponentValue(\"ccpMode\") === \"Compare\") {\n return this.getComTimerSrc();\n }\n };\n\n private getDutyCycle = (): number => {\n return this.getRequestedArg(\"pwm\")?.dutyCycle;\n };\n\n private getAlignment = (): string => {\n return this.getRequestedArg(\"pwm\")?.alignment;\n };\n\n private getPwmTimerSrc = (): string => {\n return this.getRequestedArg(\"pwm\")?.timerSrc;\n };\n\n private getEnableInterrupt = (): boolean => {\n return this.getRequestedArg(\"enableInterrupt\");\n };\n\n private getPeripheralInstance = (): string => {\n return this.getRequestedArg(\"moduleName\");\n };\n}\n","import { AppModel } from \"../generated_module/src/types/AutoModuleTypes\";\nimport * as CCPInterface from \"./interfaces/ccp_interface\";\nimport { FirmwareAPIPayload, HeaderFile } from \"@microchip/scf-interface\";\nimport * as interrupt_standard from \"@microchip/interrupt-standard\";\n\nexport const getGeneratorModel = (model: AppModel): any => {\n const hardwareSettings = model.getPeripheralDescription();\n if (hardwareSettings === undefined) return {};\n const moduleName = model.getName();\n const moduleNameLowerCase = moduleName.toLowerCase();\n const moduleNameUpperCase = moduleNameLowerCase.toUpperCase();\n const componentName = model.getComponentValue(\"componentName\") ?? model.getName();\n const componentNameLowerCase = componentName.toLowerCase();\n const registers = model.getRegisterValues();\n const interrupts = model.getInterrupts();\n\n const ccpInterface = createFirmwareApi(model);\n const intPayload:\n | interrupt_standard.ProcessedPayload\n | undefined = model.getImportValue(\"interrupt_standard\");\n const isVectoredInterrupt = intPayload?.isVectoredInterrupt\n ? intPayload?.vectoredInterruptEnable ?? false\n : false;\n const IVTBaseAddress = String(`${intPayload?.ivtBaseAddress ?? 8}`);\n const ccpInterruptPriorityHigh = intPayload?.isHighPriority?.[\"CCPI\"] ?? true;\n const getIRQname = (): string => {\n const interrupts = hardwareSettings.interrupts;\n const irqName = interrupts?.CCPI?.handlerName ?? \"_CCP\";\n return irqName.replace(\"_\", \"\");\n };\n\n return {\n moduleNameLowerCase: moduleNameLowerCase,\n moduleNameUpperCase: moduleNameUpperCase,\n moduleInstance: hardwareSettings.instance,\n componentName: componentName,\n componentNameLowerCase: componentNameLowerCase,\n header: ccpInterface.headerFiles?.[0],\n api: ccpInterface.api,\n simpleApi: ccpInterface.simpleApi,\n interface: ccpInterface,\n isVectoredInterruptEnabled: isVectoredInterrupt,\n IVTBaseAddress: IVTBaseAddress,\n isHighPriority: ccpInterruptPriorityHigh,\n IRQname: getIRQname(),\n\n ccpModeSelected: model.getComponentValue(\"ccpMode\"),\n isInterruptEnabled: model.isComponentValue(\"interruptEnable\"),\n initialDutyValue: model.getComponentValue(\"ccprValue\"),\n ccpTimer: model.getComponentValue(\"ccpTimer\"),\n pwmTimer: model.getComponentValue(\"pwmTimer\"),\n version: \"2.01\",\n\n //Registers and Settings\n ...registers,\n ...interrupts,\n };\n};\n\nexport const getHeaderFiles = (model: AppModel): HeaderFile[] => {\n if (model.getComponentValue(\"ccpMode\") === \"Capture\") {\n return [\n {\n name: model.getName().toLowerCase() + \".h\",\n path: \"capture/\",\n },\n ];\n } else if (model.getComponentValue(\"ccpMode\") === \"Compare\") {\n return [\n {\n name: model.getName().toLowerCase() + \".h\",\n path: \"compare/\",\n },\n ];\n } else if (model.getComponentValue(\"ccpMode\") === \"PWM\") {\n return [\n {\n name: model.getName().toLowerCase() + \".h\",\n path: \"pwm/\",\n },\n ];\n } else {\n return [\n {\n name: model.getName().toLowerCase() + \".h\",\n path: \"capture/\",\n },\n ];\n }\n};\n\nexport const createFirmwareApi = (\n model: AppModel,\n): FirmwareAPIPayload<CCPInterface.API> => {\n return CCPInterface.Interface.createFirmwareApi(\n model.getComponentValue(\"componentName\"),\n getHeaderFiles(model),\n );\n};\n","import { AppModel } from \"../generated_module/src/types/AutoModuleTypes\";\nimport { pin_row, direction } from \"@microchip/pin-standard\";\n\n// provide complete dynamic data for all pin rows. It overrides static pindata.json\nexport const getCompletePinData = (appModel: AppModel): any => {\n // way to programatically override the json data\n return {};\n};\n\n// overrides pin data for a particular row based on model.S\nexport function getRowData(appModel: AppModel, rowData: pin_row): pin_row | undefined {\n let retRowJSONdata: pin_row | undefined = rowData;\n\n if (rowData.name === \"ccpPps\") {\n retRowJSONdata = {\n ...retRowJSONdata,\n module: appModel.getName(),\n function: appModel.getName(),\n filter: { ...rowData.filter, module: appModel.getName() },\n };\n }\n\n if (rowData.name === \"ccpPps\") {\n if (appModel.getComponentValue(\"ccpMode\") === \"Capture\") {\n retRowJSONdata = {\n ...retRowJSONdata,\n direction: direction.bidirectional,\n attribs: [\n {\n aliasReEx: \".*\",\n analog: false,\n bidirection_out: false,\n },\n ],\n };\n } else if (\n appModel.getComponentValue(\"ccpMode\") === \"PWM\" ||\n appModel.getComponentValue(\"ccpMode\") === \"Compare\"\n ) {\n retRowJSONdata = {\n ...retRowJSONdata,\n direction: direction.bidirectional,\n attribs: [\n {\n aliasReEx: \".*\",\n analog: true,\n bidirection_out: true,\n },\n ],\n };\n } else if (appModel.getComponentValue(\"ccpMode\") === \"off/reset\") {\n retRowJSONdata = undefined;\n }\n }\n\n return retRowJSONdata;\n}\n","import log10 from \"core-js/features/math/log10\";\n\nexport class PwmCalculator {\n private prValue: number;\n private prescaler: number;\n private fosc: number;\n private dutyCycleRatio: number;\n\n constructor(prValue: number, prescaler: number, fosc: number, dutyCycle: number) {\n this.prValue = prValue;\n this.prescaler = prescaler;\n this.fosc = fosc;\n this.dutyCycleRatio = dutyCycle / 100;\n }\n\n public getPwmPeriod = (): number => {\n let pwmPeriod = (this.prValue + 1) * 4 * this.prescaler;\n if (this.fosc > 0) {\n pwmPeriod = pwmPeriod / this.fosc;\n } else {\n pwmPeriod = 0;\n }\n return pwmPeriod;\n };\n\n public getPwmFrequency = (): number => {\n let pwmFrequency = (this.prValue + 1) * 4 * this.prescaler;\n if (pwmFrequency > 0) {\n pwmFrequency = this.fosc / pwmFrequency;\n } else {\n pwmFrequency = 0;\n }\n\n pwmFrequency = Math.round(pwmFrequency * 1000) / 1000;\n return pwmFrequency;\n };\n\n public getPwmResolution = (): number => {\n const pwmResolution = log10(4 * (this.prValue + 1)) / log10(2);\n return Math.floor(pwmResolution);\n };\n\n public getCCPRValue = (): number => {\n const ccprValue = Math.round(this.dutyCycleRatio * 4 * (this.prValue + 1) - 1);\n if (ccprValue < 0) {\n return 0;\n }\n return ccprValue;\n };\n\n public getActualDutyCycle = (): number => {\n const dcRatio = this.getCCPRValue() / (4 * (this.prValue + 1));\n return Math.round(dcRatio * 100);\n };\n\n public getActualPulseWidth = (): number => {\n let pulseWidth = this.getCCPRValue() * this.prescaler;\n if (this.fosc > 0) {\n pulseWidth = pulseWidth / this.fosc;\n } else {\n pulseWidth = 0;\n }\n return pulseWidth;\n };\n}\n","import { InterfaceId } from \"@microchip/scf-common/lib/InterfaceId\";\nimport * as Creator from \"@microchip/scf-common/lib/Creator\";\nimport * as Processor from \"@microchip/scf-common/lib/Processor\";\nimport * as InterfaceTypes from \"@microchip/scf-interface\";\n\n/** The arguments to be provided to the implementation. */\nexport interface Arguments extends InterfaceTypes.Arguments {\n //Standard Interface\n moduleName?: string;\n customName?: string;\n ccpMode?: string; // options: off/reset, Capture, Compare, PWM\n enableCCP?: boolean;\n capture?: {\n mode?: string; // \"Every edge\", \"Falling edge\", \"Rising edge\", \"4th rising edge\",\"16th rising edge\"\n inputSrc?: string; //\n timerSrc?: string; //\n };\n compare?: {\n mode?: string;\n timerSrc?: string;\n };\n pwm?: {\n dutyCycle?: number;\n alignment?: string;\n timerSrc?: string;\n };\n enableInterrupt?: boolean;\n}\n\n/** The payload to be passed back to the dependent module after the BasicUART has been processed. */\nexport interface ProcessedPayload extends InterfaceTypes.ProcessedPayload {\n //Standard Interface\n interfaceApi?: InterfaceTypes.FirmwareAPIPayload<API>;\n customName?: string;\n enableCCP?: boolean;\n ccpMode?: string;\n capture?: {\n mode?: string;\n inputSrc?: string;\n timerSrc?: string;\n };\n compare?: {\n mode?: string;\n timerSrc?: string;\n };\n pwm?: {\n dutyCycle?: number;\n alignment?: string;\n ccprValue?: string;\n period?: string;\n frequency?: string;\n resolution?: string;\n timerSrc?: string;\n };\n enabledInterrupt?: boolean;\n moduleName?: string;\n\n // Interrupt Handler Extension\n hasInterrupts?: boolean;\n}\n\nexport interface API extends InterfaceTypes.CFunctions {\n Initialize: InterfaceTypes.CFunction;\n IsCapturedDataReady: InterfaceTypes.CFunction;\n CaptureRead: InterfaceTypes.CFunction;\n SetCompareCount: InterfaceTypes.CFunction;\n OutputStatusGet: InterfaceTypes.CFunction;\n IsCompareComplete: InterfaceTypes.CFunction;\n LoadDutyValue: InterfaceTypes.CFunction;\n DefaultCallBack: InterfaceTypes.CFunction;\n SetCallBack: InterfaceTypes.CFunction;\n CaptureISR: InterfaceTypes.CFunction;\n CompareISR: InterfaceTypes.CFunction;\n}\n\nconst getInterfaceId = (): InterfaceId => {\n return {\n name: \"ccp-interface\",\n version: \"0.1.0\",\n };\n};\n\nconst createMock = (): ProcessedExportInterface => {\n return {\n interfaceId: getInterfaceId(),\n payload: {\n interfaceApi: Interface.createFirmwareApi(\"CCP1\", [\n { name: \"ccp1.h\", path: \"include/\" },\n ]),\n customName: \"CCP1\",\n enableCCP: false,\n ccpMode: \"off/reset\",\n capture: {\n mode: \"Every edge\",\n inputSrc: \"CMP1\",\n timerSrc: \"Timer 1\",\n },\n compare: {\n mode: \"Toggle_cleartmr\",\n timerSrc: \"Timer 1\",\n },\n pwm: {\n dutyCycle: 0,\n alignment: \"right_aligned\",\n ccprValue: \"0\",\n period: \"0\",\n frequency: \"0\",\n resolution: \"0\",\n timerSrc: \"Timer 2\",\n },\n enabledInterrupt: false,\n moduleName: \"CCP1\",\n hasInterrupts: true,\n },\n args: {\n requestId: {\n moduleName: \"CCP1\",\n customName: \"CCP1\",\n ccpMode: \"off/reset\", // options: off/reset, Capture, Compare, PWM\n enableCCP: false,\n capture: {\n mode: \"Every edge\", // \"Every edge\", \"Falling edge\", \"Rising edge\", \"4th rising edge\",\"16th rising edge\"\n inputSrc: \"CMP1\", //\n timerSrc: \"Timer 1\", //\n },\n compare: {\n mode: \"Toggle_cleartmr\",\n timerSrc: \"Timer 1\",\n },\n pwm: {\n dutyCycle: 0,\n alignment: \"right_aligned\",\n timerSrc: \"Timer 2\",\n },\n enableInterrupt: false,\n },\n },\n };\n};\n\nconst createApi = (prefix: string): API => {\n return {\n Initialize: {\n name: prefix + \"_Initialize\",\n returns: \"void\",\n },\n IsCapturedDataReady: {\n name: prefix + \"_IsCapturedDataReady\",\n returns: \"bool\",\n },\n CaptureRead: {\n name: prefix + \"_CaptureRead\",\n returns: \"uint16_t\",\n },\n SetCompareCount: {\n name: prefix + \"_SetCompareCount\",\n arguments: [\n {\n name: \"compareCount\",\n type: \"uint16_t\",\n },\n ],\n returns: \"void\",\n },\n OutputStatusGet: {\n name: prefix + \"_OutputStatusGet\",\n returns: \"bool\",\n },\n IsCompareComplete: {\n name: prefix + \"_IsCompareComplete\",\n returns: \"bool\",\n },\n LoadDutyValue: {\n name: prefix + \"_LoadDutyValue\",\n arguments: [\n {\n name: \"dutyValue\",\n type: \"uint16_t\",\n },\n ],\n returns: \"void\",\n },\n DefaultCallBack: {\n name: prefix + \"_DefaultCallBack\",\n arguments: [\n {\n name: \"capturedValue\",\n type: \"uint16_t\",\n },\n ],\n returns: \"static void\",\n },\n SetCallBack: {\n name: prefix + \"_SetCallBack\",\n arguments: [\n {\n name: \"(*customCallBack)(uint16_t)\",\n type: \"void\",\n },\n ],\n returns: \"void\",\n },\n CaptureISR: {\n name: prefix + \"_CaptureISR\",\n returns: \"void\",\n },\n CompareISR: {\n name: prefix + \"_CompareISR\",\n returns: \"void\",\n },\n };\n};\n\n/** The type of the processed export interface */\nexport type ProcessedExportInterface = Processor.ProcessedInterface<\n ProcessedPayload,\n Arguments\n>;\n\n/** Used by implementations of this interface in their module's creator. */\ntype CreatorExportInterface = Creator.Interface<ProcessedPayload>;\n\nconst createPrototypeImport = (): Creator.Import => {\n return {\n interfaceId: getInterfaceId(),\n };\n};\n\nconst createPrototypeExport = (): Creator.Export<CreatorExportInterface[]> => {\n return {\n interfaces: [{ interfaceId: getInterfaceId() }],\n };\n};\n\nconst createFirmwareApi = (\n moduleName?: string,\n headerFiles?: InterfaceTypes.HeaderFile[],\n createCustomApi?: () => API,\n): InterfaceTypes.FirmwareAPIPayload<API> => {\n const prefix: string = moduleName ? moduleName : \"undefined\";\n const api = createCustomApi ? createCustomApi() : createApi(prefix);\n\n return {\n api: api,\n simpleApi: InterfaceTypes.buildSimpleApi(api),\n headerFiles: headerFiles\n ? headerFiles\n : [{ name: prefix.toLowerCase() + \".h\", path: \"include/\" }],\n };\n};\n\ninterface Interface extends InterfaceTypes.Interface {\n createPrototypeImport: () => Creator.Import<Arguments>;\n createMock: () => ProcessedExportInterface;\n createFirmwareApi: (\n moduleName?: string,\n headerFiles?: InterfaceTypes.HeaderFile[],\n createCustomApi?: () => API,\n ) => InterfaceTypes.FirmwareAPIPayload<API>;\n}\n\nexport const Interface: Interface = {\n createPrototypeExport: createPrototypeExport,\n createPrototypeImport: createPrototypeImport,\n getInterfaceId: getInterfaceId,\n createMock: createMock,\n createFirmwareApi: createFirmwareApi,\n};\n"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"sources":["webpack://autoCreator/webpack/bootstrap","webpack://autoCreator/./generated_module/src/autoCreator.ts","webpack://autoCreator/./generated_module/src/getUserData.ts","webpack://autoCreator/./generated_module/src/pins/PCPHelper.ts","webpack://autoCreator/./node_modules/@microchip/pin-standard/lib/index.js","webpack://autoCreator/./node_modules/@microchip/pin-standard/lib/pin-standard.js","webpack://autoCreator/./node_modules/@microchip/scf-automodule-impl/lib/Utils.js","webpack://autoCreator/./node_modules/@microchip/scf-automodule-impl/lib/autoModule/AutoModuleHelpers.js","webpack://autoCreator/./node_modules/@microchip/scf-automodule-impl/lib/autoModule/getConfigData.js","webpack://autoCreator/./node_modules/@microchip/scf-automodule-impl/lib/interrupts/InterruptActions.js","webpack://autoCreator/./node_modules/@microchip/scf-common/lib/Processor.js","webpack://autoCreator/./node_modules/@microchip/scf-device/lib/CalculateRegisterValue.js","webpack://autoCreator/./node_modules/@microchip/scf-device/lib/Register.js","webpack://autoCreator/./node_modules/@microchip/scf-device/lib/Setting.js","webpack://autoCreator/./node_modules/@microchip/scf-device/lib/util/Arrays.js","webpack://autoCreator/./node_modules/@microchip/scf-interface/lib/c-function-types.js","webpack://autoCreator/./node_modules/@microchip/scf-interface/lib/helpers.js","webpack://autoCreator/./node_modules/@microchip/scf-interface/lib/index.js","webpack://autoCreator/./node_modules/@microchip/scf-validators/lib/Validators/CFunctionValidator.js","webpack://autoCreator/./node_modules/@microchip/scf-validators/lib/index.js","webpack://autoCreator/./node_modules/core-js/es/math/log10.js","webpack://autoCreator/./node_modules/core-js/es/string/includes.js","webpack://autoCreator/./node_modules/core-js/features/math/log10.js","webpack://autoCreator/./node_modules/core-js/features/string/includes.js","webpack://autoCreator/./node_modules/core-js/internals/a-function.js","webpack://autoCreator/./node_modules/core-js/internals/an-object.js","webpack://autoCreator/./node_modules/core-js/internals/array-includes.js","webpack://autoCreator/./node_modules/core-js/internals/classof-raw.js","webpack://autoCreator/./node_modules/core-js/internals/copy-constructor-properties.js","webpack://autoCreator/./node_modules/core-js/internals/correct-is-regexp-logic.js","webpack://autoCreator/./node_modules/core-js/internals/create-non-enumerable-property.js","webpack://autoCreator/./node_modules/core-js/internals/create-property-descriptor.js","webpack://autoCreator/./node_modules/core-js/internals/descriptors.js","webpack://autoCreator/./node_modules/core-js/internals/document-create-element.js","webpack://autoCreator/./node_modules/core-js/internals/entry-unbind.js","webpack://autoCreator/./node_modules/core-js/internals/enum-bug-keys.js","webpack://autoCreator/./node_modules/core-js/internals/export.js","webpack://autoCreator/./node_modules/core-js/internals/fails.js","webpack://autoCreator/./node_modules/core-js/internals/function-bind-context.js","webpack://autoCreator/./node_modules/core-js/internals/get-built-in.js","webpack://autoCreator/./node_modules/core-js/internals/global.js","webpack://autoCreator/./node_modules/core-js/internals/has.js","webpack://autoCreator/./node_modules/core-js/internals/hidden-keys.js","webpack://autoCreator/./node_modules/core-js/internals/ie8-dom-define.js","webpack://autoCreator/./node_modules/core-js/internals/indexed-object.js","webpack://autoCreator/./node_modules/core-js/internals/inspect-source.js","webpack://autoCreator/./node_modules/core-js/internals/internal-state.js","webpack://autoCreator/./node_modules/core-js/internals/is-forced.js","webpack://autoCreator/./node_modules/core-js/internals/is-object.js","webpack://autoCreator/./node_modules/core-js/internals/is-pure.js","webpack://autoCreator/./node_modules/core-js/internals/is-regexp.js","webpack://autoCreator/./node_modules/core-js/internals/native-symbol.js","webpack://autoCreator/./node_modules/core-js/internals/native-weak-map.js","webpack://autoCreator/./node_modules/core-js/internals/not-a-regexp.js","webpack://autoCreator/./node_modules/core-js/internals/object-define-property.js","webpack://autoCreator/./node_modules/core-js/internals/object-get-own-property-descriptor.js","webpack://autoCreator/./node_modules/core-js/internals/object-get-own-property-names.js","webpack://autoCreator/./node_modules/core-js/internals/object-get-own-property-symbols.js","webpack://autoCreator/./node_modules/core-js/internals/object-keys-internal.js","webpack://autoCreator/./node_modules/core-js/internals/object-property-is-enumerable.js","webpack://autoCreator/./node_modules/core-js/internals/own-keys.js","webpack://autoCreator/./node_modules/core-js/internals/path.js","webpack://autoCreator/./node_modules/core-js/internals/redefine.js","webpack://autoCreator/./node_modules/core-js/internals/require-object-coercible.js","webpack://autoCreator/./node_modules/core-js/internals/set-global.js","webpack://autoCreator/./node_modules/core-js/internals/shared-key.js","webpack://autoCreator/./node_modules/core-js/internals/shared-store.js","webpack://autoCreator/./node_modules/core-js/internals/shared.js","webpack://autoCreator/./node_modules/core-js/internals/to-absolute-index.js","webpack://autoCreator/./node_modules/core-js/internals/to-indexed-object.js","webpack://autoCreator/./node_modules/core-js/internals/to-integer.js","webpack://autoCreator/./node_modules/core-js/internals/to-length.js","webpack://autoCreator/./node_modules/core-js/internals/to-primitive.js","webpack://autoCreator/./node_modules/core-js/internals/uid.js","webpack://autoCreator/./node_modules/core-js/internals/use-symbol-as-uid.js","webpack://autoCreator/./node_modules/core-js/internals/well-known-symbol.js","webpack://autoCreator/./node_modules/core-js/modules/es.math.log10.js","webpack://autoCreator/./node_modules/core-js/modules/es.string.includes.js","webpack://autoCreator/(webpack)/buildin/global.js","webpack://autoCreator/./src/Alerts.tsx","webpack://autoCreator/./src/CreatorFunctions.ts","webpack://autoCreator/./src/DerivedData.ts","webpack://autoCreator/./src/GeneratorModel.tsx","webpack://autoCreator/./src/PinsLogic.ts","webpack://autoCreator/./src/PwmCalculator.tsx","webpack://autoCreator/./src/interfaces/ccp_interface.tsx"],"names":["createAutoCreator","getCreatorFunctions","getModuleConfig","getModuleConfigFromFile","getCreatorFunctionsUser","getPinsDataFromFile","require","undefined","getPinsLogicFromFile","mockPinsLogic","getPinsData","getCompletePinData","appModel","getRowData","rowData","rows","getPinsLogic","pinsLogic","getInputSignalAlerts","dataModel","inputSignal","getComponentValue","peripheralOption","peripheralImportKey","includes","replace","getImportValue","type","AlertTypes","Warning","text","instance","moduleName","Hint","getName","getCcpTimerAlerts","ccpTimer","substring","length","getPwmTimerAlerts","pwmTimer","shouldImport","getCreatorImportArgs","importKey","state","ccpMode","main","hardware","ctsCcpcap","getDerivedData","MyDerivedData","EmptyDerivedData","getCFunctionValidator","getModuleName","componentNameValidator","getCustomUiErrors","customName","getModel","templateName","getTemplateName","pinData","getMyPinData","templateData","getGeneratorModel","alerts","getMyAlerts","overrideDefaultValues","overrideDefaultValue","overrideOptions","showImportComponent","filterImports","getProcessedArgValue","getCcpInterfacePayload","getSignalSrcPayload","getTriggerSrcPayload","getSelectedMode","getInterruptEnable","getCCPRValue","getCCPRHValue","getCCPRLValue","getSelectedTimer","getPwmPeriod","getPwmFrequency","getPwmResolution","getDutyCycleValidator","getComponentName","getEnableCcp","getCcpMode","getCaptureMode","getInputSrc","getCompareMode","getCcpTimerSrc","getDutyCycle","getAlignment","getPwmTimerSrc","getEnableInterrupt","initializer_system_results","isrCallback","getInterruptActions","filterInterrupts","friendlyImportName","pattern","cValidator","getRjsfValidation","componentName","name","message","getCustomErrorMessage","pwmCalculator","PwmCalculator","Number","getPRValue","getPrescaler","getFosc","getHardware","getPeripheral","interruptName","actionFor","InterruptActionsBuilder","createActionBuilder","createActionFor","addActionIfEnabled","addActionIfDisabled","buildActions","test","src","toLowerCase","getModuleInstance","getTimerOptions","result","CCPTMRS","getPeripheralDescription","registers","timerSelectOptions","settings","CTSEL","options","eachoptn","timeroptnregex","optnmatch","alias","match","correctOptnName","push","initializer","header","getHeaderFiles","intName","interfaceApi","createFirmwareApi","enableCCP","isComponentValue","capture","getCapturePayload","compare","getComparePayload","pwm","getPwmPayload","enabledInterrupt","hasInterrupts","mode","inputSrc","timerSrc","dutyCycle","alignment","ccprValue","period","frequency","resolution","exportArgs","alert","tmrOption","getTimerClockAlerts","Processor","getTMR2ClockSrc","imports","filteredImports","ccpModeSelected","capSrcSelected","ccpTmrSelected","pwmTmrSelected","getPeripheralInstance","filterImportBySetting","option","payload","regexpNumber","inst","indexOf","getTMR1ClockSrc","getTimerSync","getSelectedCcpTimer","getSelectedPwmTimer","minimum","maximum","fosc","periodRegisterValue","prescaleValue","clocksource","clockSource","enableSynchronization","getPwmCalculator","toFixed","toString","ccprhValue","ccprlValue","argName","arg","getRequestedArgFrom","CCPInterface","getInterfaceId","interfaceId","cmpExport","getExportInterfaces","getInterface","args","chosen","Object","keys","getRequestedArg","getCapTimerSrc","getComTimerSrc","model","hardwareSettings","moduleNameLowerCase","moduleNameUpperCase","toUpperCase","componentNameLowerCase","getRegisterValues","interrupts","getInterrupts","ccpInterface","intPayload","isVectoredInterrupt","vectoredInterruptEnable","IVTBaseAddress","String","ivtBaseAddress","ccpInterruptPriorityHigh","isHighPriority","getIRQname","irqName","CCPI","handlerName","moduleInstance","headerFiles","api","simpleApi","isVectoredInterruptEnabled","IRQname","isInterruptEnabled","initialDutyValue","version","path","retRowJSONdata","module","filter","direction","bidirectional","attribs","aliasReEx","analog","bidirection_out","prValue","prescaler","pwmPeriod","pwmFrequency","Math","round","pwmResolution","log10","floor","dutyCycleRatio","dcRatio","pulseWidth","createMock","Interface","requestId","enableInterrupt","createApi","prefix","Initialize","returns","IsCapturedDataReady","CaptureRead","SetCompareCount","arguments","OutputStatusGet","IsCompareComplete","LoadDutyValue","DefaultCallBack","SetCallBack","CaptureISR","CompareISR","createPrototypeImport","createPrototypeExport","interfaces","createCustomApi","InterfaceTypes"],"mappings":";;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;;;;;;;;;;;;;;;ACjFA;;AAKA,IAAMA,iBAAiB,GAAG,SAApBA,iBAAoB,CACtBC,mBADsB,EAEK;AAC3B,SAAO,YAAwB;AAC3B;AACIC,qBAAe,EAAEC,oEAAuBA;AAD5C,OAEOF,mBAAmB,EAF1B;AAIH,GALD;AAMH,CATD;;AAWO,IAAMA,mBAAmB,GAAGD,iBAAiB,CAACI,gEAAD,CAA7C,C;;;;;;;;;;;;ACdP;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAEO,IAAMC,mBAAmB,GAAG,SAAtBA,mBAAsB,GAA4B;AAC3D,MAAI;AACA,WAAOC,mBAAO,CAAC,oDAAD,CAAd;AACH,GAFD,CAEE,gBAAM;AACJ,WAAOC,SAAP;AACH;AACJ,CANM;AAQA,IAAMC,oBAAoB,GAAG,SAAvBA,oBAAuB,GAA6B;AAC7D,MAAI;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,4EAA4E;AAC7E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,0DAA0D;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,wFAAwF;AACzF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,+EAA+E;AAChF;AACA;AACA;AACA;AACA,CAAC,6DAA6D;AAC9D;AACA;AACA;AACA;AACA;AACA,CAAC,0DAA0D;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,0DAA0D;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB,aAAa;AACb;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB,2BAA2B;AAC3B,aAAa;AACb;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB,iBAAiB;AACjB,aAAa;AACb;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA,wC;;;;;;;;;;;;ACnQa;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yDAAyD,iBAAiB,EAAE;AAC5E;AACA;AACA;AACA,sDAAsD,8BAA8B,EAAE;AACtF;AACA;AACA;AACA,yDAAyD,8BAA8B,EAAE;AACzF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,iC;;;;;;;;;;;;ACvCa;AACb;AACA;AACA,gDAAgD,OAAO;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C;AAC5C;AACA,8CAA8C,cAAc;AAC5D;AACA,+CAA+C,mBAAO,CAAC,4HAAkD;AACzG,gBAAgB,mBAAO,CAAC,8FAAmC;AAC3D,eAAe,mBAAO,CAAC,sGAAuC;AAC9D,cAAc,mBAAO,CAAC,4EAAU;AAChC,sBAAsB,mBAAO,CAAC,sGAAiB;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kGAAkG;AAClG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8GAA8G;AAC9G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,+FAA+F;AAC/F;AACA;AACA;AACA;AACA;AACA,SAAS;AACT,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8JAA8J;AAC9J,0FAA0F,gBAAgB;AAC1G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sIAAsI,YAAY,oJAAoJ,EAAE;AACxS;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iLAAiL;AACjL;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,qCAAqC,YAAY,8TAA8T;AAC/W;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8BAA8B;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kEAAkE,iCAAiC,EAAE;AACrG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6C;;;;;;;;;;;;ACrVa;AACb;AACA;AACA,gDAAgD,OAAO;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C,cAAc;AAC5D;AACA;AACA,cAAc,mBAAO,CAAC,4EAAU;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,wBAAwB,kBAAkB,EAAE;AAC7D,gEAAgE;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,yC;;;;;;;;;;;;AC3Da;AACb;AACA;AACA,gDAAgD,OAAO;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C,cAAc;AAC5D;AACA,0BAA0B,mBAAO,CAAC,0HAAiC;AACnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C,aAAa,2IAA2I;AACtM;AACA;AACA,8CAA8C,aAAa,iFAAiF;AAC5I;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C,aAAa,2IAA2I;AACtM;AACA;AACA,8CAA8C,aAAa,iFAAiF;AAC5I;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4GAA4G,+BAA+B,EAAE;AAC7I;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4GAA4G,+BAA+B,EAAE;AAC7I;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4C;;;;;;;;;;;;ACrKa;AACb;AACA;AACA,gDAAgD,OAAO;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,6DAA6D;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,qBAAqB,wDAAwD;AAChH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCAAmC,qBAAqB;AACxD,2CAA2C,YAAY,6BAA6B,mBAAmB,8BAA8B,GAAG;AACxI,aAAa,GAAG;AAChB;AACA;AACA;AACA;AACA,qC;;;;;;;;;;;;AChFa;AACb;AACA;AACA;AACA,cAAc,gBAAgB,sCAAsC,iBAAiB,EAAE;AACvF,6BAA6B,8EAA8E;AAC3G;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,sBAAsB;AAC7C;AACA;AACA,CAAC;AACD;AACA,4EAA4E,OAAO;AACnF;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C,cAAc;AAC5D,gBAAgB,mBAAO,CAAC,sEAAW;AACnC,iBAAiB,mBAAO,CAAC,wEAAY;AACrC,eAAe,mBAAO,CAAC,8EAAe;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,wCAAwC;AACxC,+CAA+C;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,qIAAqI,4DAA4D,uDAAuD,EAAE;AAC1P;AACA;AACA,wCAAwC,8DAA8D;AACtG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC,0BAA0B;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,oCAAoC,mCAAmC;AACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C,6CAA6C;AACzF,oCAAoC,2BAA2B;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,sCAAsC,oBAAoB;AAC1D;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA,sCAAsC,mCAAmC;AACzE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,kD;;;;;;;;;;;;AC5Na;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA,oC;;;;;;;;;;;;ACRa;AACb,8CAA8C,cAAc;AAC5D;AACA,eAAe,mBAAO,CAAC,8EAAe;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+JAA+J,8BAA8B,EAAE;AAC/L;AACA;AACA;AACA;AACA,+JAA+J,4BAA4B,EAAE;AAC7L;AACA;AACA;AACA;AACA,6GAA6G,0CAA0C,EAAE;AACzJ;AACA;AACA;AACA;AACA,4GAA4G,oBAAoB,EAAE;AAClI;AACA;AACA;AACA;AACA,4GAA4G,2BAA2B,EAAE;AACzI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mC;;;;;;;;;;;;AC9Ea;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,gBAAgB;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAC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,uEAAqB;AAC1C,eAAe,mBAAO,CAAC,6EAAwB;;AAE/C;AACA;AACA;;AAEA;AACA;AACA;;;;;;;;;;;;ACTA,aAAa,mBAAO,CAAC,uEAAqB;AAC1C,WAAW,mBAAO,CAAC,qGAAoC;;AAEvD;;AAEA;AACA;AACA;;;;;;;;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACTA,aAAa,mBAAO,CAAC,uEAAqB;AAC1C,+BAA+B,mBAAO,CAAC,+HAAiD;AACxF,kCAAkC,mBAAO,CAAC,uHAA6C;AACvF,eAAe,mBAAO,CAAC,2EAAuB;AAC9C,gBAAgB,mBAAO,CAAC,+EAAyB;AACjD,gCAAgC,mBAAO,CAAC,iHAA0C;AAClF,eAAe,mBAAO,CAAC,6EAAwB;;AAE/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,mDAAmD;AACnD,GAAG;AACH,kCAAkC;AAClC;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACrDA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;;;;;;;;;;;ACNA,gBAAgB,mBAAO,CAAC,+EAAyB;;AAEjD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACvBA,WAAW,mBAAO,CAAC,mEAAmB;AACtC,aAAa,mBAAO,CAAC,uEAAqB;;AAE1C;AACA;AACA;;AAEA;AACA;AACA;AACA;;;;;;;;;;;;ACVA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACZA,uBAAuB;;AAEvB;AACA;AACA;;;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WAAW,GAClBA,WADkB,GAElB,CAAC;AAAE3I,UAAI,EAAE8K,MAAM,CAACzJ,WAAP,KAAuB,IAA/B;AAAqC8H,UAAI,EAAE;AAA3C,KAAD;AALH,GAAP;AAOH,CAfD;;AA2BO,IAAMuB,SAAoB,GAAG;AAChCmB,uBAAqB,EAAEA,qBADS;AAEhCD,uBAAqB,EAAEA,qBAFS;AAGhCpF,gBAAc,EAAEA,cAHgB;AAIhCiE,YAAU,EAAEA,UAJoB;AAKhC7H,mBAAiB,EAAEA;AALa,CAA7B,C","file":"autoCreator.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"./generated_module/src/autoCreator.ts\");\n","import { CreatorFunctions } from \"@microchip/melody-automodule-interface\";\nimport {\n getCreatorFunctions as getCreatorFunctionsUser,\n getModuleConfigFromFile,\n} from \"./getUserData\";\n\nconst createAutoCreator = (\n getCreatorFunctions: () => CreatorFunctions,\n): (() => CreatorFunctions) => {\n return (): CreatorFunctions => {\n return {\n getModuleConfig: getModuleConfigFromFile,\n ...getCreatorFunctions(),\n };\n };\n};\n\nexport const getCreatorFunctions = createAutoCreator(getCreatorFunctionsUser);\n","import { ModuleConfig } from \"@microchip/melody-automodule-interface/lib/src/ModuleConfig\";\nimport { PinsData } from \"@microchip/melody-automodule-interface/lib/src/pins\";\nimport { PinsLogic } from \"@microchip/melody-automodule-interface/lib/src/types\";\nexport { getCreatorFunctions } from \"../../src/CreatorFunctions\";\nexport { getDerivedData } from \"../../src/DerivedData\";\n\nexport const getPinsDataFromFile = (): PinsData | undefined => {\n try {\n return require(\"../../src/pinsdata.json\");\n } catch {\n return undefined;\n }\n};\n\nexport const getPinsLogicFromFile = (): PinsLogic | undefined => {\n try {\n return require(\"../../src/PinsLogic.ts\");\n } catch {\n return undefined;\n }\n};\n\nexport const getModuleConfigFromFile = (): ModuleConfig | undefined => {\n try {\n return require(\"../../src/moduleConfig.json\");\n } catch {\n return undefined;\n }\n};\n","import { pin_row } from \"@microchip/pin-standard\";\nimport { PinsData } from \"@microchip/melody-automodule-interface/lib/src/pins\";\nimport {\n AppModel,\n PinsLogic,\n} from \"@microchip/melody-automodule-interface/lib/src/types\";\nimport { getPinsDataFromFile, getPinsLogicFromFile } from \"../getUserData\";\n\nconst mockPinsLogic = (getPinsData: GetPinsData): PinsLogic => {\n const getCompletePinData = (appModel: AppModel): any => {\n return {};\n };\n const getRowData = (appModel: AppModel, rowData: pin_row): pin_row => {\n return rowData;\n };\n return {\n getCompletePinData: getCompletePinData,\n getRowData: getRowData,\n getPinsData: getPinsData,\n };\n};\n\ntype GetPinsData = typeof getPinsData;\nexport const getPinsData = (): PinsData => getPinsDataFromFile() ?? { rows: [] };\n\nexport const getPinsLogic = (): PinsLogic => {\n const pinsLogic = getPinsLogicFromFile();\n if (pinsLogic) {\n return {\n ...pinsLogic,\n getPinsData: getPinsData,\n };\n } else {\n return mockPinsLogic(getPinsData);\n }\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar pin_standard_1 = require(\"./pin-standard\");\nexports.pin_standard = pin_standard_1.pin_standard;\nexports.pin_state = pin_standard_1.pin_state;\nexports.direction = pin_standard_1.direction;\nexports.behaviour = pin_standard_1.behaviour;\nexports.data_schema = pin_standard_1.data_schema;\nexports.pin_attribs_enum = pin_standard_1.pin_attribs_enum;\nexports.actiontype = pin_standard_1.actiontype;\nexports.QueryAdapterKey = pin_standard_1.QueryAdapterKey;\n//# sourceMappingURL=index.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.pin_standard = function () {\n return {\n interfaceId: {\n name: \"pin-standard\",\n version: \"0.1.0\",\n },\n };\n};\nvar QueryAdapterKey;\n(function (QueryAdapterKey) {\n QueryAdapterKey[\"ALLPINS\"] = \"allpins\";\n QueryAdapterKey[\"ALLPINS_FOR_ATTRIBS\"] = \"allpins_for_attribs\";\n QueryAdapterKey[\"PPS\"] = \"pps\";\n QueryAdapterKey[\"PORTMUX\"] = \"portmux\";\n QueryAdapterKey[\"HASPPS\"] = \"hasPPS\";\n})(QueryAdapterKey = exports.QueryAdapterKey || (exports.QueryAdapterKey = {}));\nvar pin_state;\n(function (pin_state) {\n pin_state[\"EMPTY\"] = \"E\";\n pin_state[\"LOCKED\"] = \"L\";\n pin_state[\"UNLOCK\"] = \"UL\";\n pin_state[\"DiSABLE_LOCK\"] = \"DL\";\n pin_state[\"UNLOCKED_DISABLED\"] = \"DUL\";\n pin_state[\"LOCKED_LINK\"] = \"LL\";\n pin_state[\"UNLOCKED_MUX\"] = \"MUL\";\n pin_state[\"LOCKED_CONFLICT\"] = \"CL\";\n})(pin_state = exports.pin_state || (exports.pin_state = {}));\nvar pin_interrupts_enum;\n(function (pin_interrupts_enum) {\n pin_interrupts_enum[\"INTDIS_BUFFEN\"] = \"INTDIS_BUFFEN\";\n pin_interrupts_enum[\"BOTH_EDGES\"] = \"BOTH_EDGES\";\n pin_interrupts_enum[\"RISING_EDGE\"] = \"RISING_EDGE\";\n pin_interrupts_enum[\"FALLING_EDGE\"] = \"FALLING_EDGE\";\n pin_interrupts_enum[\"NONE\"] = \"NONE\";\n pin_interrupts_enum[\"LOW_LEVEL\"] = \"LOW_LEVEL\";\n})(pin_interrupts_enum = exports.pin_interrupts_enum || (exports.pin_interrupts_enum = {}));\nvar pin_attribs_enum;\n(function (pin_attribs_enum) {\n pin_attribs_enum[\"aliasReEx\"] = \"aliasReEx\";\n pin_attribs_enum[\"cname\"] = \"cname\";\n pin_attribs_enum[\"high\"] = \"high\";\n pin_attribs_enum[\"inv\"] = \"inv\";\n pin_attribs_enum[\"wpu\"] = \"wpu\";\n pin_attribs_enum[\"wpd\"] = \"wpd\";\n pin_attribs_enum[\"od\"] = \"od\";\n pin_attribs_enum[\"analog\"] = \"analog\";\n pin_attribs_enum[\"ioc\"] = \"ioc\";\n pin_attribs_enum[\"intcallback\"] = \"intcallback\";\n pin_attribs_enum[\"alias\"] = \"alias\";\n})(pin_attribs_enum = exports.pin_attribs_enum || (exports.pin_attribs_enum = {}));\nvar actiontype;\n(function (actiontype) {\n actiontype[\"SETACTION\"] = \"SETACTION\";\n actiontype[\"ATTRIBACTION\"] = \"ATTRIBACTION\";\n})(actiontype = exports.actiontype || (exports.actiontype = {}));\nvar direction;\n(function (direction) {\n direction[\"output\"] = \"output\";\n direction[\"input\"] = \"input\";\n direction[\"bidirectional\"] = \"bidirectional\";\n})(direction = exports.direction || (exports.direction = {}));\nvar behaviour;\n(function (behaviour) {\n behaviour[\"LOCK_UNLOCK\"] = \"LOCK_UNLOCK\";\n behaviour[\"ALWAYS_LOCKED\"] = \"ALWAYS_LOCKED\";\n behaviour[\"SINGLE_PIN_MUX\"] = \"SINGLE_PIN_MUX\";\n behaviour[\"OPTIONAL_PIN_MUX\"] = \"OPTIONAL_PIN_MUX\";\n behaviour[\"PPS\"] = \"PPS\";\n behaviour[\"PORTMUX\"] = \"PORTMUX\";\n behaviour[\"EXCLUSIVE_LOCK\"] = \"EXCLUSIVE_LOCK\";\n behaviour[\"LOCKED_DISABLED\"] = \"LOCKED_DISABLED\";\n})(behaviour = exports.behaviour || (exports.behaviour = {}));\n//------------------------------------ schema ------------------------------------//\nexports.data_schema = {\n $schema: \"http://json-schema.org/draft-07/schema#\",\n $ref: \"#/definitions/intf_data\",\n definitions: {\n intf_data: {\n type: \"object\",\n properties: {\n rows: {\n type: \"array\",\n items: {\n $ref: \"#/definitions/pin_row\",\n },\n },\n },\n required: [\"rows\"],\n additionalProperties: false,\n },\n pin_row: {\n type: \"object\",\n properties: {\n name: {\n type: \"string\",\n },\n module: {\n type: \"string\",\n },\n function: {\n type: \"string\",\n },\n direction: {\n $ref: \"#/definitions/direction\",\n },\n filter: {\n $ref: \"#/definitions/filter\",\n },\n behaviour: {\n $ref: \"#/definitions/behaviour\",\n },\n behaviourMeta: {\n $ref: \"#/definitions/behaviourMeta\",\n },\n attribs: {\n type: \"array\",\n items: {\n $ref: \"#/definitions/pin_attribs\",\n },\n },\n groupsdata: {\n $ref: \"#/definitions/pingroups_data\",\n },\n actions: {},\n },\n required: [\"name\", \"module\", \"function\", \"direction\", \"filter\", \"behaviour\"],\n additionalProperties: false,\n },\n direction: {\n type: \"string\",\n enum: [\"output\", \"input\", \"bidirectional\"],\n },\n filter: {\n type: \"object\",\n properties: {\n module: {\n type: \"string\",\n },\n aliasReEx: {\n type: \"string\",\n },\n },\n required: [\"module\", \"aliasReEx\"],\n additionalProperties: false,\n },\n behaviour: {\n type: \"string\",\n enum: [\n \"LOCK_UNLOCK\",\n \"ALWAYS_LOCKED\",\n \"SINGLE_PIN_MUX\",\n \"OPTIONAL_PIN_MUX\",\n \"PPS\",\n \"PORTMUX\",\n \"EXCLUSIVE_LOCK\",\n \"LOCKED_DISABLED\",\n ],\n },\n behaviourMeta: {\n type: \"object\",\n properties: {\n lockPinRegEx: {\n type: \"string\",\n },\n },\n required: [\"lockPinRegEx\"],\n additionalProperties: false,\n },\n pin_attribs: {\n type: \"object\",\n properties: {\n aliasReEx: {\n type: \"string\",\n },\n cname: {\n type: \"string\",\n },\n high: {\n type: \"boolean\",\n },\n inv: {\n type: \"boolean\",\n },\n wpu: {\n type: \"boolean\",\n },\n wpd: {\n type: \"boolean\",\n },\n od: {\n type: \"boolean\",\n },\n analog: {\n type: \"boolean\",\n },\n ioc: {\n $ref: \"#/definitions/pin_interrupts_enum\",\n },\n bidirection_out: {\n type: \"boolean\",\n },\n },\n required: [\"aliasReEx\"],\n additionalProperties: false,\n },\n pin_interrupts_enum: {\n type: \"string\",\n enum: [\n \"INTDIS_BUFFEN\",\n \"BOTH_EDGES\",\n \"RISING_EDGE\",\n \"FALLING_EDGE\",\n \"NONE\",\n \"LOW_LEVEL\",\n ],\n },\n pingroups_data: {\n type: \"object\",\n properties: {\n groups: {\n type: \"array\",\n items: {\n $ref: \"#/definitions/pins_group\",\n },\n },\n },\n required: [\"groups\"],\n additionalProperties: false,\n },\n pins_group: {\n type: \"object\",\n properties: {\n name: {\n type: \"string\",\n },\n filter: {\n $ref: \"#/definitions/grpfilter\",\n },\n datapath: {\n type: \"string\",\n },\n },\n required: [\"name\", \"filter\"],\n additionalProperties: false,\n },\n grpfilter: {\n type: \"object\",\n properties: {\n aliasReEx: {\n type: \"string\",\n },\n },\n required: [\"aliasReEx\"],\n additionalProperties: false,\n },\n },\n};\n//# sourceMappingURL=pin-standard.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.toDictionary = exports.assertNotNull = exports.map = exports.forEach = exports.values = exports.getKeys = void 0;\n/** @returns the non-prototype keys of the given object */\nvar getKeys = function (obj) {\n return Object.getOwnPropertyNames(obj);\n};\nexports.getKeys = getKeys;\n/**\n * Gets the values of a map as a list\n * @param obj\n * @returns\n */\nvar values = function (obj) {\n return (0, exports.getKeys)(obj).map(function (key) { return obj[key]; });\n};\nexports.values = values;\nvar forEach = function (obj, action) {\n (0, exports.getKeys)(obj).forEach(function (key) { return action(key, obj[key]); });\n};\nexports.forEach = forEach;\nvar map = function (obj, mapper) {\n return (0, exports.getKeys)(obj).map(function (key) { return mapper(key, obj[key]); });\n};\nexports.map = map;\nvar assertNotNull = function (val, msg) {\n if (val == null) {\n throw new Error(msg);\n }\n};\nexports.assertNotNull = assertNotNull;\nvar toDictionary = function (arr, keyMapper, valueMapper) {\n var result = {};\n arr.forEach(function (entry) {\n result[keyMapper(entry)] = valueMapper(entry);\n });\n return result;\n};\nexports.toDictionary = toDictionary;\n//# sourceMappingURL=Utils.js.map","\"use strict\";\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getFriendlyInterfaceId = exports.getModuleDefaultDescription = exports.DependencySelector = exports.getProcessedHandle = exports.getSettingOptionsIfPresent = exports.getOverrideDefaultValue = exports.getSettingDefaultIfPresent = exports.getOptionValueByName = exports.getSettingFromComponent = exports.getSettingBits = exports.getRegisterValues = exports.hasConfigBits = exports.getComboOptions = exports.getDefaultValue = exports.castComponent = void 0;\nvar CalculateRegisterValue_1 = __importDefault(require(\"@microchip/scf-device/lib/CalculateRegisterValue\"));\nvar Setting_1 = require(\"@microchip/scf-device/lib/Setting\");\nvar Arrays_1 = require(\"@microchip/scf-device/lib/util/Arrays\");\nvar Utils_1 = require(\"../Utils\");\nvar getConfigData_1 = require(\"./getConfigData\");\nvar castComponent = function (component) {\n switch (component.category) {\n case \"software\":\n return component;\n case \"import\":\n return component;\n case \"hardware\":\n return component;\n default:\n throw Error(\"Unsupported Component Type\");\n }\n};\nexports.castComponent = castComponent;\nvar getDefaultValue = function (overrideDefaultValues, component) {\n var _a;\n return ((_a = overrideDefaultValues === null || overrideDefaultValues === void 0 ? void 0 : overrideDefaultValues(component.name)) !== null && _a !== void 0 ? _a : (component.type === \"ComboBox\"\n ? component.defaultValue.value\n : component.defaultValue));\n};\nexports.getDefaultValue = getDefaultValue;\nvar getComboOptions = function (overrideOptions, component) {\n var _a, _b;\n return (_a = overrideOptions === null || overrideOptions === void 0 ? void 0 : overrideOptions(component.name)) !== null && _a !== void 0 ? _a : (_b = component === null || component === void 0 ? void 0 : component.defaultValue) === null || _b === void 0 ? void 0 : _b[\"options\"];\n};\nexports.getComboOptions = getComboOptions;\nvar hasConfigBits = function (interfaceName) {\n var _a;\n return ((_a = (0, exports.getFriendlyInterfaceId)(interfaceName)) === null || _a === void 0 ? void 0 : _a.indexOf(\"configuration_bits\")) != -1;\n};\nexports.hasConfigBits = hasConfigBits;\nvar getRegisterValues = function (model, interfaceName) {\n var _a;\n var registers = {};\n var config = (0, getConfigData_1.getConfigData)(model);\n interfaceName = (0, exports.getFriendlyInterfaceId)(interfaceName);\n (_a = config === null || config === void 0 ? void 0 : config.peripherals) === null || _a === void 0 ? void 0 : _a.forEach(function (peripheral) {\n var _a, _b, _c;\n var peripheralName = (_a = (0, exports.getFriendlyInterfaceId)(peripheral.interfaceId.name)) !== null && _a !== void 0 ? _a : \"\";\n if ((0, exports.hasConfigBits)(peripheralName))\n return;\n if ((interfaceName != undefined && peripheralName !== interfaceName) ||\n !peripheral.registers)\n return;\n (_c = (0, Utils_1.getKeys)((_b = peripheral.registers) !== null && _b !== void 0 ? _b : {})) === null || _c === void 0 ? void 0 : _c.forEach(function (regName) {\n var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;\n var registerValue;\n var reg = (_b = (_a = model.getHardware(peripheralName)) === null || _a === void 0 ? void 0 : _a.getPeripheral().registers) === null || _b === void 0 ? void 0 : _b[regName];\n if (reg) {\n registerValue = {\n comment: \"\",\n value: 0,\n valueAsHex: \"0x00\",\n name: reg === null || reg === void 0 ? void 0 : reg.name,\n alias: (_c = reg === null || reg === void 0 ? void 0 : reg.alias) !== null && _c !== void 0 ? _c : reg === null || reg === void 0 ? void 0 : reg.name,\n settings: {},\n };\n }\n else {\n return;\n }\n var registerVal = CalculateRegisterValue_1.default.for(reg);\n var comments = [];\n (_d = peripheral.registers) === null || _d === void 0 ? void 0 : _d[regName].forEach(function (set) {\n var _a, _b, _c, _d, _e;\n var setting = (_a = reg.settings) === null || _a === void 0 ? void 0 : _a[set.setting];\n if (setting) {\n if (setting.type !== \"R\") {\n //Add Comments\n comments.push(\"\".concat(set.setting, \" \").concat(model.getComponentValue(set.name), \"; \"));\n }\n if (registerValue === null || registerValue === void 0 ? void 0 : registerValue.settings) {\n registerValue.settings[setting.alias] = (0, exports.getSettingBits)(reg, setting, (_b = model.getComponent(set.name)) === null || _b === void 0 ? void 0 : _b.value, (_c = config === null || config === void 0 ? void 0 : config.deviceType) !== null && _c !== void 0 ? _c : \"PIC\");\n }\n switch (set.type) {\n case \"ComboBox\":\n case \"boolean\":\n registerVal.withNumberValue(setting, (_e = (0, exports.getOptionValueByName)(setting, (_d = model.getComponent(set.name)) === null || _d === void 0 ? void 0 : _d.value)) !== null && _e !== void 0 ? _e : 0);\n break;\n case \"number\":\n registerVal.withNumberValue(setting, model.getComponentValue(set.name));\n break;\n case \"register\":\n case \"string\":\n registerVal.withNumberValue(setting, Number(model.getComponentValue(set.name)));\n break;\n default:\n break;\n }\n }\n });\n if (reg.settings) {\n registerValue.value = registerVal.asNumber();\n }\n else {\n registerValue.value = Number((_j = model.getComponentValue((_h = (_g = (_f = (_e = peripheral.registers) === null || _e === void 0 ? void 0 : _e[regName]) === null || _f === void 0 ? void 0 : _f[0]) === null || _g === void 0 ? void 0 : _g.name) !== null && _h !== void 0 ? _h : \"\")) !== null && _j !== void 0 ? _j : 0);\n comments.push(\"\".concat(registerValue.name, \" \").concat(registerValue.value, \"; \"));\n }\n registerValue.valueAsHex =\n \"0x\" + registerValue.value.toString(16).toUpperCase();\n registerValue.comment = sortComments(comments, reg);\n registers[(_k = reg === null || reg === void 0 ? void 0 : reg.alias) !== null && _k !== void 0 ? _k : reg.name] = registerValue;\n });\n });\n return registers;\n};\nexports.getRegisterValues = getRegisterValues;\nvar sortComments = function (comments, register) {\n comments.sort(function (a, b) {\n var _a, _b, _c, _d;\n var settingA = (_a = register.settings) === null || _a === void 0 ? void 0 : _a[(_b = a.split[\" \"]) === null || _b === void 0 ? void 0 : _b[0]];\n var settingB = (_c = register.settings) === null || _c === void 0 ? void 0 : _c[(_d = b.split(\" \")) === null || _d === void 0 ? void 0 : _d[0]];\n return Number(settingB === null || settingB === void 0 ? void 0 : settingB.mask) - Number(settingA === null || settingA === void 0 ? void 0 : settingA.mask);\n });\n return comments.join(\"\");\n};\nvar getSettingBits = function (register, setting, value, deviceType) {\n var _a, _b;\n var setValNumber = Number((_b = (_a = (0, Setting_1.getOptionByAlias)(value, setting)) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : 0);\n var settingValue = {\n alias: setting.alias,\n name: setting.name,\n value: setValNumber !== null && setValNumber !== void 0 ? setValNumber : 0,\n valueAsHex: \"0x\" + setValNumber.toString(16).toUpperCase(),\n valueAsDescription: value,\n bitName: deviceType === \"PIC\"\n ? \"\".concat(register.name, \"bits.\").concat(setting.name)\n : \"\".concat(register.name, \".\").concat(setting.name),\n };\n return settingValue;\n};\nexports.getSettingBits = getSettingBits;\nvar getRegisterFromComponent = function (hardware, component) {\n var _a, _b, _c, _d, _e;\n var registerName = (_a = component.name\n .replace(component.setting.toLowerCase(), \"\")) === null || _a === void 0 ? void 0 : _a.toUpperCase();\n var register = (_b = hardware === null || hardware === void 0 ? void 0 : hardware.registers) === null || _b === void 0 ? void 0 : _b[registerName];\n if (register) {\n return register;\n }\n else {\n var regName = (_c = component.name\n .replace(component.setting.toLowerCase(), \"\")) === null || _c === void 0 ? void 0 : _c.toUpperCase();\n var registers = (0, Utils_1.getKeys)((_d = hardware === null || hardware === void 0 ? void 0 : hardware.registers) !== null && _d !== void 0 ? _d : {});\n for (var _i = 0, _f = registers !== null && registers !== void 0 ? registers : []; _i < _f.length; _i++) {\n var reg = _f[_i];\n var modifiedRegName = reg.replace(/_/g, \"\");\n if (regName === modifiedRegName) {\n return (_e = hardware === null || hardware === void 0 ? void 0 : hardware.registers) === null || _e === void 0 ? void 0 : _e[reg];\n }\n }\n }\n};\nvar getSettingFromComponent = function (model, component) {\n var _a;\n var config = (0, getConfigData_1.getConfigData)(model);\n var setting;\n if (model) {\n (_a = config === null || config === void 0 ? void 0 : config.peripherals) === null || _a === void 0 ? void 0 : _a.forEach(function (peripheral) {\n var _a, _b, _c;\n if (setting)\n return;\n var peripheralName = (0, exports.getFriendlyInterfaceId)(peripheral.interfaceId.name);\n var hardware = (_a = model.getHardware(peripheralName)) === null || _a === void 0 ? void 0 : _a.getPeripheral();\n var register = getRegisterFromComponent(hardware, component);\n if (register && !register.settings) {\n //No settings for this particular register. Create one\n setting = {\n alias: (_b = register.alias) !== null && _b !== void 0 ? _b : register.name,\n name: register.name,\n defaultValue: register.defaultValue,\n type: register.type,\n description: register.desc,\n porDefault: register.defaultValue,\n };\n }\n else {\n setting = (_c = register === null || register === void 0 ? void 0 : register.settings) === null || _c === void 0 ? void 0 : _c[component.setting];\n }\n });\n }\n return setting;\n};\nexports.getSettingFromComponent = getSettingFromComponent;\nvar getOptionValueByName = function (setting, optionName) {\n if (!setting)\n return undefined;\n var optionValue = setting.porDefault;\n if (setting.options) {\n setting.options.forEach(function (option) {\n if (option.name === optionName || option.description === optionName) {\n optionValue = option.value;\n }\n });\n }\n return Number(optionValue);\n};\nexports.getOptionValueByName = getOptionValueByName;\nvar getSettingDefaultIfPresent = function (component, setting, overrideDefaultValue) {\n var _a, _b;\n var defaultValue;\n if (overrideDefaultValue !== undefined) {\n return overrideDefaultValue;\n }\n if (component.overrideDefaultValue) {\n return component.overrideDefaultValue;\n }\n if (setting === null || setting === void 0 ? void 0 : setting.defaultValue) {\n var option = (0, Setting_1.getOptionByName)(setting.defaultValue, setting);\n defaultValue =\n (_b = option === null || option === void 0 ? void 0 : option[(_a = component.displayOptionSetting) !== null && _a !== void 0 ? _a : \"alias\"]) !== null && _b !== void 0 ? _b : setting.defaultValue;\n }\n return defaultValue;\n};\nexports.getSettingDefaultIfPresent = getSettingDefaultIfPresent;\nvar getOverrideDefaultValue = function (component, model) {\n var _a, _b;\n return (_b = (_a = model.getDerivedFunctions()).overrideDefaultValues) === null || _b === void 0 ? void 0 : _b.call(_a, component.name);\n};\nexports.getOverrideDefaultValue = getOverrideDefaultValue;\nvar getSettingOptionsIfPresent = function (component, setting, masterComponentValue) {\n var _a;\n var options = [\"\"];\n if (setting) {\n var filteredOptions = component.mode\n ? filterModeOptions((_a = setting.options) !== null && _a !== void 0 ? _a : [], component, masterComponentValue)\n : setting.options;\n options = (0, Arrays_1.map)(filteredOptions !== null && filteredOptions !== void 0 ? filteredOptions : [], function (option) { var _a, _b; return (_b = option[(_a = component.displayOptionSetting) !== null && _a !== void 0 ? _a : \"alias\"]) !== null && _b !== void 0 ? _b : option.alias; });\n }\n return options;\n};\nexports.getSettingOptionsIfPresent = getSettingOptionsIfPresent;\nvar filterModeOptions = function (options, component, masterComponentValue) {\n var _a, _b, _c, _d;\n if (((_a = component.mode) === null || _a === void 0 ? void 0 : _a.operation) != \"filterOptions\" || masterComponentValue == undefined)\n return options;\n //Determine mode\n var mode = (0, Arrays_1.find)((_d = (0, Utils_1.getKeys)((_c = (_b = component.mode) === null || _b === void 0 ? void 0 : _b.optionModes) !== null && _c !== void 0 ? _c : {})) !== null && _d !== void 0 ? _d : [], function (mode) {\n var _a, _b, _c, _d;\n var match = (_b = (_a = component.mode) === null || _a === void 0 ? void 0 : _a.optionModes) === null || _b === void 0 ? void 0 : _b[mode];\n if (match) {\n return ((_d = (_c = masterComponentValue === null || masterComponentValue === void 0 ? void 0 : masterComponentValue.match(match)) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : -1) > 0;\n }\n return false;\n });\n var filteredOptions = (0, Arrays_1.filter)(options !== null && options !== void 0 ? options : [], function (option) {\n var _a, _b, _c, _d;\n if (option.mode && mode) {\n var match = (_b = (_a = component.mode) === null || _a === void 0 ? void 0 : _a.optionModes) === null || _b === void 0 ? void 0 : _b[mode];\n if (match) {\n return ((_d = (_c = option.mode.match(match)) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : -1) > 0;\n }\n }\n return true;\n });\n return filteredOptions;\n};\nvar getProcessedHandle = function (handle, payload) {\n var _a, _b, _c;\n if (handle) {\n handle = __assign(__assign({}, handle), { label: (_c = (_b = (_a = payload === null || payload === void 0 ? void 0 : payload.moduleName) !== null && _a !== void 0 ? _a : payload === null || payload === void 0 ? void 0 : payload.name) !== null && _b !== void 0 ? _b : handle.label) !== null && _c !== void 0 ? _c : handle.providerId + \" : \" + handle.exportId });\n }\n return handle;\n};\nexports.getProcessedHandle = getProcessedHandle;\nvar DependencySelector = /** @class */ (function () {\n function DependencySelector(model, component) {\n var _this = this;\n this.noneSelection = { label: \"None\" };\n this.createOptionEntry = function (option) {\n return {\n label: _this.createOptionLabel(option.handle, option.payload),\n value: option,\n };\n };\n this.createOptionLabel = function (handle, payload) {\n var _a, _b;\n return (_b = (_a = (0, exports.getProcessedHandle)(handle, payload)) === null || _a === void 0 ? void 0 : _a.label) !== null && _b !== void 0 ? _b : \"\";\n };\n this.model = model;\n this.component = component;\n }\n DependencySelector.prototype.generateDropdownOptions = function () {\n var dropdownOptions = [];\n var thisImport = this.model.getImports()[this.component.importId];\n var options = thisImport === null || thisImport === void 0 ? void 0 : thisImport.options;\n if (this.shouldAllowUnselectDependency(thisImport, options)) {\n dropdownOptions.push(this.noneSelection);\n }\n if (options) {\n for (var option in options) {\n dropdownOptions.push(this.createOptionEntry(options[option]));\n }\n }\n return dropdownOptions;\n };\n DependencySelector.prototype.getDropdownOptionNames = function () {\n var names = [];\n this.generateDropdownOptions().forEach(function (option) { return names.push(option.label); });\n return names;\n };\n DependencySelector.prototype.shouldAllowUnselectDependency = function (thisImport, options) {\n return (thisImport != undefined &&\n thisImport.isUnassignable != false &&\n options !== undefined);\n };\n return DependencySelector;\n}());\nexports.DependencySelector = DependencySelector;\nfunction getModuleDefaultDescription() {\n //TODO: Need to refactor this so that gets it from the source.\n //Alternatively, we could get it during the automodule update process and fetch it from there...\n return undefined;\n}\nexports.getModuleDefaultDescription = getModuleDefaultDescription;\nvar getFriendlyInterfaceId = function (interfaceName) {\n interfaceName = interfaceName === null || interfaceName === void 0 ? void 0 : interfaceName.replace(/ /g, \"\").replace(/-/g, \"_\");\n return interfaceName;\n};\nexports.getFriendlyInterfaceId = getFriendlyInterfaceId;\n//# sourceMappingURL=AutoModuleHelpers.js.map","\"use strict\";\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getConfigData = void 0;\n/* eslint-disable @typescript-eslint/no-var-requires */\nvar Utils_1 = require(\"../Utils\");\nvar getConfigData = function (model) {\n var _a, _b;\n var config = (_b = model === null || model === void 0 ? void 0 : (_a = model.getDerivedData()).getModuleConfig) === null || _b === void 0 ? void 0 : _b.call(_a);\n config = ConfigBuilder.for(config)\n .withDynamicConfigData(model)\n .withDynamicComponents(model)\n .build();\n return config;\n};\nexports.getConfigData = getConfigData;\nvar ConfigBuilder = /** @class */ (function () {\n function ConfigBuilder(config) {\n var _this = this;\n this.build = function () {\n return _this.config;\n };\n this.withDynamicConfigData = function (model) {\n var _a;\n return new ConfigBuilder((_a = model === null || model === void 0 ? void 0 : model.getDerivedFunction(\"getDynamicConfigData\", _this.config)) !== null && _a !== void 0 ? _a : _this.config);\n };\n this.withDynamicComponents = function (model) {\n var _a, _b;\n var dynamicComponents = (_b = model === null || model === void 0 ? void 0 : (_a = model.getDerivedFunctions()).getDynamicComponents) === null || _b === void 0 ? void 0 : _b.call(_a);\n if (dynamicComponents) {\n var dynamicComponentMap = (0, Utils_1.toDictionary)(dynamicComponents, function (component) {\n var _a;\n _this.config.UIGroups[component.group] =\n (_a = _this.config.UIGroups[component.group]) !== null && _a !== void 0 ? _a : component.group;\n return component.name;\n }, function (component) { return component; });\n _this.config.softwareData = __assign(__assign({}, _this.config.softwareData), dynamicComponentMap);\n }\n return new ConfigBuilder(_this.config);\n };\n this.config = config;\n }\n ConfigBuilder.for = function (config) {\n if (!config)\n throw console.error(\"Cannot find ModuleConfig\");\n return new ConfigBuilder(config);\n };\n return ConfigBuilder;\n}());\n//# sourceMappingURL=getConfigData.js.map","\"use strict\";\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getDefaultInterruptActions = exports.InterruptActionsBuilder = void 0;\nvar AutoModuleHelpers_1 = require(\"../autoModule/AutoModuleHelpers\");\nvar InterruptActionsBuilder = /** @class */ (function () {\n function InterruptActionsBuilder(model) {\n var _this = this;\n this.actions = [];\n this.createActionFor = function (componentName) {\n var _a;\n _this.actions = _this.buildActions();\n _this.curComponent = componentName\n ? (_a = _this.model.getComponent(componentName)) === null || _a === void 0 ? void 0 : _a.component\n : undefined;\n _this.curComponentName = componentName;\n _this.tableRowId = undefined;\n _this.tableRowCol = undefined;\n _this.tableCellPath = undefined;\n return _this;\n };\n this.addActionIfEnabled = function (actionValue) {\n if (!_this.curComponentName || !_this.curComponent)\n return _this;\n if (!_this.isActionValueAcceptable(_this.curComponent, actionValue))\n return _this;\n var payload = {\n tabId: _this.curComponent.tabs[0],\n value: actionValue,\n };\n if (_this.curComponent.category === \"table\") {\n if (!_this.tableCellPath)\n return _this;\n payload = __assign(__assign({}, payload), { path: \"\".concat(_this.curComponent.group, \".\").concat(_this.curComponent.name, \".\").concat(_this.tableCellPath), rowId: _this.tableRowId });\n }\n else {\n payload = __assign(__assign({}, payload), { path: \"\".concat(_this.curComponent.group, \".\").concat(_this.curComponent.name) });\n }\n _this.actions.push({\n validFor: true,\n action: {\n type: \"[FORM] SUBMIT\",\n payload: payload,\n },\n });\n return _this;\n };\n this.addActionIfDisabled = function (actionValue) {\n if (!_this.curComponentName || !_this.curComponent)\n return _this;\n if (!_this.isActionValueAcceptable(_this.curComponent, actionValue))\n return _this;\n var payload = {\n tabId: _this.curComponent.tabs[0],\n value: actionValue,\n };\n if (_this.curComponent.category === \"table\") {\n if (!_this.tableCellPath)\n return _this;\n payload = __assign(__assign({}, payload), { path: \"\".concat(_this.curComponent.group, \".\").concat(_this.curComponent.name, \".\").concat(_this.tableCellPath), rowId: _this.tableRowId });\n }\n else {\n payload = __assign(__assign({}, payload), { path: \"\".concat(_this.curComponent.group, \".\").concat(_this.curComponent.name) });\n }\n _this.actions.push({\n validFor: false,\n action: {\n type: \"[FORM] SUBMIT\",\n payload: payload,\n },\n });\n return _this;\n };\n this.setPathToTableCell = function (rowIndex, colName) {\n var _a;\n if (((_a = _this.curComponent) === null || _a === void 0 ? void 0 : _a.category) !== \"table\")\n return _this;\n _this.tableRowId = rowIndex;\n _this.tableRowCol = colName;\n _this.tableCellPath = \"\".concat(rowIndex, \".\").concat(colName);\n return _this;\n };\n this.isActionValueAcceptable = function (component, actionValue) {\n var _a, _b, _c, _d, _e, _f, _g, _h;\n if (component.category === \"hardware\") {\n if (component.type === \"ComboBox\") {\n var options = (_a = (0, AutoModuleHelpers_1.getSettingFromComponent)(_this.model, component)) === null || _a === void 0 ? void 0 : _a.options;\n if (!(options === null || options === void 0 ? void 0 : options.some(function (option) {\n var _a;\n return option[(_a = component[\"displayOptionSetting\"]) !== null && _a !== void 0 ? _a : \"alias\"] ===\n actionValue;\n }))) {\n return false;\n }\n }\n else if (component.type === \"boolean\") {\n // if (actionValue !== \"enabled\" && actionValue !== \"disabled\") {\n if (actionValue !== true && actionValue !== false) {\n return false;\n }\n }\n }\n else if (component.category === \"software\") {\n if (component.type === \"ComboBox\") {\n var options = component[\"options\"];\n if (!(options === null || options === void 0 ? void 0 : options.some(function (option) { return option === actionValue; }))) {\n return false;\n }\n }\n else if (component.type === \"boolean\") {\n if (actionValue !== true && actionValue !== false) {\n return false;\n }\n }\n }\n else if (component.category === \"table\") {\n if (!_this.tableRowCol)\n return false;\n if (((_c = (_b = component.columns) === null || _b === void 0 ? void 0 : _b[_this.tableRowCol]) === null || _c === void 0 ? void 0 : _c.type) === \"ComboBox\") {\n var options = (_f = (_e = (_d = component.columns) === null || _d === void 0 ? void 0 : _d[_this.tableRowCol]) === null || _e === void 0 ? void 0 : _e.defaultValue) === null || _f === void 0 ? void 0 : _f[\"options\"];\n if (!(options === null || options === void 0 ? void 0 : options.some(function (option) { return option === actionValue; }))) {\n return false;\n }\n }\n else if (((_h = (_g = component.columns) === null || _g === void 0 ? void 0 : _g[_this.tableRowCol]) === null || _h === void 0 ? void 0 : _h.type) === \"boolean\") {\n if (actionValue !== true && actionValue !== false) {\n return false;\n }\n }\n }\n return true;\n };\n this.buildActions = function () {\n return _this.actions;\n };\n this.model = model;\n }\n InterruptActionsBuilder.createActionBuilder = function (model) {\n return new InterruptActionsBuilder(model);\n };\n return InterruptActionsBuilder;\n}());\nexports.InterruptActionsBuilder = InterruptActionsBuilder;\nfunction getDefaultInterruptActions(model, componentName) {\n if (!componentName)\n return [];\n return (InterruptActionsBuilder.createActionBuilder(model)\n .createActionFor(componentName)\n .addActionIfEnabled(true)\n .addActionIfDisabled(false)\n // .addActionIfEnabled(\"enabled\")\n // .addActionIfDisabled(\"disabled\")\n .buildActions());\n}\nexports.getDefaultInterruptActions = getDefaultInterruptActions;\n//# sourceMappingURL=InterruptActions.js.map","\"use strict\";\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.mapOptionLabels = exports.filterOptions = exports.isSingleton = exports.isUnassigned = exports.isAssigned = exports.hasOptions = exports.AlertTypes = void 0;\nvar AlertTypes;\n(function (AlertTypes) {\n AlertTypes[\"Error\"] = \"error\";\n AlertTypes[\"Warning\"] = \"warning\";\n AlertTypes[\"Hint\"] = \"hint\";\n})(AlertTypes = exports.AlertTypes || (exports.AlertTypes = {}));\n/**\n * See User-Defined Type Guards in the Typescript Handbook on Advanced Types\n * @see https://www.typescriptlang.org/docs/handbook/advanced-types.html\n */\nfunction hasOptions(dep) {\n return dep.options !== undefined;\n}\nexports.hasOptions = hasOptions;\n/**\n * See User-Defined Type Guards in the Typescript Handbook on Advanced Types\n * @see https://www.typescriptlang.org/docs/handbook/advanced-types.html\n */\nfunction isAssigned(dep) {\n return typeof dep.handle !== \"undefined\";\n}\nexports.isAssigned = isAssigned;\n/**\n * See User-Defined Type Guards in the Typescript Handbook on Advanced Types\n * @see https://www.typescriptlang.org/docs/handbook/advanced-types.html\n */\nfunction isUnassigned(dep) {\n return typeof dep.handle === \"undefined\";\n}\nexports.isUnassigned = isUnassigned;\n/**\n * Type guard function for SingletonExport\n * See User-Defined Type Guards in the Typescript Handbook on Advanced Types\n * @see https://www.typescriptlang.org/docs/handbook/advanced-types.html\n * @param resource the export to check on being a singleton\n * @deprecated No longer used. Replaced with dynamic singleton identification\n * at runtime.\n */\nfunction isSingleton(resource) {\n return typeof resource.isSingleton !== \"undefined\" && resource.isSingleton;\n}\nexports.isSingleton = isSingleton;\n/**\n * Returns a copy of `populatedImport` with all options removed which\n * cause `optionFilter` to return false.\n */\nfunction filterOptions(populatedImport, optionFilter) {\n if (populatedImport.options) {\n return __assign(__assign({}, populatedImport), { options: populatedImport.options.filter(optionFilter) });\n }\n return populatedImport;\n}\nexports.filterOptions = filterOptions;\n/**\n * Returns a copy of `populatedImport` with the options' handle labels\n * mapped according to `labelFactory`.\n */\nfunction mapOptionLabels(populatedImport, labelFactory) {\n if (populatedImport.options) {\n return __assign(__assign({}, populatedImport), { options: populatedImport.options.map(function (option) {\n return __assign(__assign({}, option), { handle: __assign(__assign({}, option.handle), { label: labelFactory(option) }) });\n }) });\n }\n return populatedImport;\n}\nexports.mapOptionLabels = mapOptionLabels;\n//# sourceMappingURL=Processor.js.map","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar Setting_1 = require(\"./Setting\");\nvar Register_1 = require(\"./Register\");\nvar Arrays_1 = require(\"./util/Arrays\");\n/** Builder pattern */\nvar CalculateRegisterValue = /** @class */ (function () {\n function CalculateRegisterValue(register) {\n var _this = this;\n this.modifiedSettings = [];\n /** Assign a numerical value to the given `Setting`. */\n this.withNumberValue = function (setting, value) {\n if (setting === undefined) {\n throw new Error(\"Cannot assign number value to setting, setting is undefined.\");\n }\n if (!_this.getSetting(setting)) {\n throw new Error(\"Setting \".concat(setting.alias, \" is not present in Register \").concat(_this.register.name));\n }\n _this.modifiedSettings = __spreadArray(__spreadArray([], _this.modifiedSettings, true), [\n new NumberSettingValue(setting, value),\n ], false);\n return _this;\n };\n /** Assign the given `Option` to the given `Setting`. */\n this.withOption = function (setting, option) {\n if (setting === undefined) {\n throw new Error(\"Cannot assign option to setting, setting is undefined.\");\n }\n if (!_this.getSetting(setting)) {\n throw new Error(\"Setting \".concat(setting.alias, \" is not present in Register \").concat(_this.register.name));\n }\n if (!option || !_this.getOption(setting, option)) {\n throw new Error(\"Option \".concat(option === null || option === void 0 ? void 0 : option.name, \" is not present in Setting \").concat(setting.name));\n }\n _this.modifiedSettings = __spreadArray(__spreadArray([], _this.modifiedSettings, true), [\n new OptionSettingValue(setting, option),\n ], false);\n return _this;\n };\n /** Assign the `Option` matching the given alias to the given `Setting`. */\n this.withOptionAlias = function (setting, optionAlias) {\n if (setting === undefined) {\n throw new Error(\"Cannot assign option alias to setting, setting is undefined.\");\n }\n var option = (0, Setting_1.getOptionByAlias)(optionAlias, setting);\n if (option === undefined) {\n throw new Error(\"Option Alias: \\\"\".concat(optionAlias, \"\\\" not present in Setting: \\\"\").concat(setting.name, \"\\\".\"));\n }\n return _this.withOption(setting, option);\n };\n /** Assign the `Option` matching the given name to the given `Setting`. */\n this.withOptionName = function (setting, optionName) {\n if (setting === undefined) {\n throw new Error(\"Cannot assign option name to setting, setting is undefined.\");\n }\n var option = (0, Setting_1.getOptionByName)(optionName, setting);\n if (option === undefined) {\n throw new Error(\"Option Name: \\\"\".concat(optionName, \"\\\" not present in Setting: \\\"\").concat(setting.name, \"\\\".\"));\n }\n return _this.withOption(setting, option);\n };\n /** Assign the `Option` matching the given description to the given `Setting`. */\n this.withOptionDescription = function (setting, optionDescription) {\n if (setting === undefined) {\n throw new Error(\"Cannot assign option description to setting, setting is undefined.\");\n }\n var option = (0, Setting_1.getOptionByDescription)(optionDescription, setting);\n if (option === undefined) {\n throw new Error(\"Option Description: \\\"\".concat(optionDescription, \"\\\" not present in Setting: \\\"\").concat(setting.name, \"\\\".\"));\n }\n return _this.withOption(setting, option);\n };\n this.getSetting = function (setting) {\n return (0, Register_1.getSettingByAlias)(setting.alias, _this.register);\n };\n this.getOption = function (setting, option) {\n return (option === null || option === void 0 ? void 0 : option.name) ? (0, Setting_1.getOptionByName)(option.name, setting) : undefined;\n };\n this.calculate = function () {\n var registerValue = 0;\n _this.modifiedSettings.forEach(function (modifiedSetting) {\n registerValue = _this.setValue(modifiedSetting, registerValue);\n });\n var unmodifiedSettings = _this.getUnmodifiedSettings();\n unmodifiedSettings.forEach(function (unmodifiedSetting) {\n registerValue = _this.setValue(SettingValue.defaultValue(unmodifiedSetting), registerValue);\n });\n return Number(registerValue);\n };\n this.setValue = function (setting, registerValue) {\n var value = registerValue;\n value &= ~setting.getMask(); // Clear bits\n value |= setting.getShiftedValue(); // Set bits\n return value;\n };\n this.getUnmodifiedSettings = function () {\n var _a, _b;\n var modifiedSettingNames = (0, Arrays_1.map)(_this.modifiedSettings, function (setting) {\n return setting.getName();\n });\n return (0, Arrays_1.filter)((_b = (0, Arrays_1.values)((_a = _this.register.settings) !== null && _a !== void 0 ? _a : {})) !== null && _b !== void 0 ? _b : [], function (setting) { return modifiedSettingNames.indexOf(setting.name) < 0; });\n };\n /** Calculate and print the register's value as a hex string. */\n this.asHexString = function () { return CalculateRegisterValue.toHexString(_this.calculate()); };\n /** Calculate and print the register's value as a binary string. */\n this.asBinaryString = function () {\n return CalculateRegisterValue.toBinaryString(_this.calculate());\n };\n /** Calculate and print the register's value as a decimal string. */\n this.asDecimalString = function () {\n return CalculateRegisterValue.toDecimalString(_this.calculate());\n };\n /** Calculate and return the register's value as a number. */\n this.asNumber = function () { return _this.calculate(); };\n this.register = register;\n }\n /** Creates a register value calculation object for the given register. */\n CalculateRegisterValue.for = function (register) {\n return new CalculateRegisterValue(register);\n };\n /** Format the given number as a hex string value. */\n CalculateRegisterValue.toHexString = function (value) {\n if (value == null) {\n throw new Error(\"CalculateRegisterValue.toHexString() illegal argument exception. Value must not be null.\");\n }\n return \"0x\" + value.toString(16);\n };\n /** Format the given number as a binary string value. */\n CalculateRegisterValue.toBinaryString = function (value) {\n if (value == null) {\n throw new Error(\"CalculateRegisterValue.toBinaryString() illegal argument exception. Value must not be null.\");\n }\n return \"0b\" + value.toString(2);\n };\n /** Format the given number as a decimal string value. */\n CalculateRegisterValue.toDecimalString = function (value) {\n if (value == null) {\n throw new Error(\"CalculateRegisterValue.toDecimalString() illegal argument exception. Value must not be null.\");\n }\n return value.toString();\n };\n return CalculateRegisterValue;\n}());\nexports.default = CalculateRegisterValue;\nvar SettingValue = /** @class */ (function () {\n function SettingValue(setting) {\n var _this = this;\n this.getMask = function () { return Number(_this.setting.mask); };\n this.getShift = function () {\n var mask = _this.getMask();\n var shiftIndex = 0;\n while (!(mask & 0x1)) {\n mask = mask >> 1;\n shiftIndex++;\n }\n return shiftIndex;\n };\n this.getShiftedValue = function () { return _this.getValue() << _this.getShift(); };\n this.getName = function () { return _this.setting.name; };\n this.setting = setting;\n }\n SettingValue.defaultValue = function (setting) {\n var value = Number(setting.porDefault);\n return new NumberSettingValue(setting, value);\n };\n return SettingValue;\n}());\nvar NumberSettingValue = /** @class */ (function (_super) {\n __extends(NumberSettingValue, _super);\n function NumberSettingValue(setting, value) {\n var _this = _super.call(this, setting) || this;\n _this.getValue = function () { return _this.value; };\n _this.value = value;\n return _this;\n }\n return NumberSettingValue;\n}(SettingValue));\nvar OptionSettingValue = /** @class */ (function (_super) {\n __extends(OptionSettingValue, _super);\n function OptionSettingValue(setting, option) {\n var _this = _super.call(this, setting) || this;\n _this.getValue = function () { return Number(_this.option.value); };\n _this.option = option;\n return _this;\n }\n OptionSettingValue.fromDefaultValue = function (setting, value) {\n var foundValueByName = (0, Setting_1.getOptionByName)(value, setting);\n if (foundValueByName)\n return new OptionSettingValue(setting, foundValueByName);\n var foundValueByAlias = (0, Setting_1.getOptionByAlias)(value, setting);\n if (foundValueByAlias)\n return new OptionSettingValue(setting, foundValueByAlias);\n throw new Error(\"Unable to create default value '\".concat(value, \"' for setting '\").concat(setting.name, \"'.\"));\n };\n return OptionSettingValue;\n}(SettingValue));\n//# sourceMappingURL=CalculateRegisterValue.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getSettingByAlias = void 0;\nvar getSettingByAlias = function (alias, register) {\n var _a;\n return (_a = register.settings) === null || _a === void 0 ? void 0 : _a[alias];\n};\nexports.getSettingByAlias = getSettingByAlias;\n//# sourceMappingURL=Register.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getOptionDescriptions = exports.getOptionNames = exports.getOptionByDescription = exports.getOptionByName = exports.getOptionByAlias = exports.getBitRange = exports.getBitLabel = void 0;\nvar Arrays_1 = require(\"./util/Arrays\");\n/**\n * Converts a hexadecimal string to binary.\n * Any leading zeros are removed from the returned string.\n */\nvar hexToBinary = function (hex) {\n return parseInt(hex, 16).toString(2);\n};\n/**\n * Returns a string of the corresponding bit position(s).\n */\nvar getBitLabel = function (setting) {\n if (setting.mask === undefined) {\n return undefined;\n }\n var bitRange = (0, exports.getBitRange)(setting);\n if (!bitRange)\n return undefined;\n if (bitRange.high === bitRange.low) {\n return \"bit \".concat(bitRange.high);\n }\n return \"bit \".concat(bitRange.high, \"-\").concat(bitRange.low);\n};\nexports.getBitLabel = getBitLabel;\n/**\n * Converts the hexadecimal mask provided within the register setting\n * and returns an interface containing the corresponding low and high bit positions.\n */\nvar getBitRange = function (setting) {\n if (!setting.mask)\n return undefined;\n var processedHex = hexToBinary(setting.mask);\n return {\n high: processedHex.length - 1,\n low: getBitRangeLow(processedHex),\n };\n};\nexports.getBitRange = getBitRange;\nvar getOptionByAlias = function (alias, setting) {\n var _a;\n return (0, Arrays_1.find)((_a = setting === null || setting === void 0 ? void 0 : setting.options) !== null && _a !== void 0 ? _a : [], function (option) { return option.alias == alias; });\n};\nexports.getOptionByAlias = getOptionByAlias;\nvar getOptionByName = function (name, setting) {\n var _a;\n return (0, Arrays_1.find)((_a = setting === null || setting === void 0 ? void 0 : setting.options) !== null && _a !== void 0 ? _a : [], function (option) { return option.name == name; });\n};\nexports.getOptionByName = getOptionByName;\nvar getOptionByDescription = function (description, setting) {\n var _a;\n return (0, Arrays_1.find)((_a = setting.options) !== null && _a !== void 0 ? _a : [], function (option) { return option.description == description; });\n};\nexports.getOptionByDescription = getOptionByDescription;\nvar getOptionNames = function (setting) {\n var _a;\n return (0, Arrays_1.map)((_a = setting.options) !== null && _a !== void 0 ? _a : [], function (option) { return option.name; });\n};\nexports.getOptionNames = getOptionNames;\nvar getOptionDescriptions = function (setting) {\n var _a;\n return (0, Arrays_1.map)((_a = setting.options) !== null && _a !== void 0 ? _a : [], function (option) { return option.description; });\n};\nexports.getOptionDescriptions = getOptionDescriptions;\nfunction getBitRangeLow(processedHex) {\n if (processedHex.charAt(1) === \"1\") {\n var index = 1;\n while (processedHex.charAt(index) === \"1\") {\n index++;\n }\n return processedHex.length - index;\n }\n else {\n return processedHex.length - 1;\n }\n}\n//# sourceMappingURL=Setting.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.values = exports.getKeys = exports.find = exports.filter = exports.map = void 0;\nvar map = function (arr, callback) {\n var result = [];\n arr.forEach(function (value, index) {\n result[index] = callback(value);\n });\n return result;\n};\nexports.map = map;\nvar filter = function (arr, callback) {\n var result = [];\n arr.forEach(function (value) {\n if (callback(value)) {\n result.push(value);\n }\n });\n return result;\n};\nexports.filter = filter;\n/**\n * Iterates over elements of the array, returning the first element that the predicate returns truthy for.\n */\nvar find = function (arr, callback) {\n for (var i = 0; i < arr.length; i++) {\n if (callback(arr[i])) {\n return arr[i];\n }\n }\n return undefined;\n};\nexports.find = find;\n/** @returns the non-prototype keys of the given object */\nvar getKeys = function (obj) {\n if (!obj)\n return undefined;\n return Object.getOwnPropertyNames(obj);\n};\nexports.getKeys = getKeys;\nvar values = function (obj) {\n var _a;\n if (!obj)\n return undefined;\n return (_a = (0, exports.getKeys)(obj)) === null || _a === void 0 ? void 0 : _a.map(function (key) { return obj[key]; });\n};\nexports.values = values;\n//# sourceMappingURL=Arrays.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.buildSimpleApi = function (functions) {\n var api = {};\n for (var key in functions) {\n api[key] = buildFunction(functions[key]);\n }\n return api;\n};\nvar buildFunction = function (cFunction) {\n return cFunction.returns + \" \" + cFunction.name + \"(\" + buildArguments(cFunction.arguments) + \")\";\n};\nvar buildArguments = function (args) {\n if (args) {\n return args.map(function (arg) { return arg.type + \" \" + arg.name; }).join(\", \");\n }\n else {\n return \"void\";\n }\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getInterfaceName = function (pkgJson) {\n var strReplace = \"@microchip/\";\n var interfaceName;\n if (pkgJson) {\n interfaceName = pkgJson[\"name\"];\n if (interfaceName) {\n interfaceName = interfaceName.replace(strReplace, \"\");\n }\n }\n if (!interfaceName) {\n throw new Error(\"Invalid Interface Name...!\");\n }\n return interfaceName;\n};\nexports.getInterfaceVersion = function (pkgJson) {\n var versionRegex = new RegExp(\"\\\\d+.\\\\d+.\\\\d+\");\n var version;\n if (pkgJson) {\n version = pkgJson[\"version\"];\n }\n if (!version && !versionRegex.test(version)) {\n throw new Error(\"Invalid Interface Version...!\");\n }\n return version;\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar c_function_types_1 = require(\"./c-function-types\");\nexports.buildSimpleApi = c_function_types_1.buildSimpleApi;\nvar helpers_1 = require(\"./helpers\");\nexports.getInterfaceName = helpers_1.getInterfaceName;\nexports.getInterfaceVersion = helpers_1.getInterfaceVersion;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getCFunctionValidator = void 0;\nvar cKeywords = [\n \"auto\",\n \"const\",\n \"double\",\n \"float\",\n \"int\",\n \"short\",\n \"struct\",\n \"unsigned\",\n \"break\",\n \"continue\",\n \"else\",\n \"for\",\n \"long\",\n \"signed\",\n \"switch\",\n \"void\",\n \"case\",\n \"default\",\n \"enum\",\n \"goto\",\n \"register\",\n \"sizeof\",\n \"typedef\",\n \"volatile\",\n \"char\",\n \"do\",\n \"extern\",\n \"if\",\n \"return\",\n \"static\",\n \"union\",\n \"while\",\n];\nvar functionPattern = \"(?=^([A-Za-z]\\\\S|_)\\\\w+$)\";\nvar errorMessage = \"Must be valid C function syntax.\";\nvar doNotMatchKeywordsRegex = function () {\n return \"(^(?!\" + cKeywords.join(\"|\") + \")).*\";\n};\nvar result = doNotMatchKeywordsRegex();\nvar pattern = {\n pattern: functionPattern + result,\n};\nexports.getCFunctionValidator = function () { return ({\n getRjsfValidation: function () { return pattern; },\n getCustomErrorMessage: function () { return errorMessage; },\n}); };\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar CFunctionValidator_1 = require(\"./Validators/CFunctionValidator\");\nObject.defineProperty(exports, \"getCFunctionValidator\", { enumerable: true, get: function () { return CFunctionValidator_1.getCFunctionValidator; } });\n","require('../../modules/es.math.log10');\nvar path = require('../../internals/path');\n\nmodule.exports = path.Math.log10;\n","require('../../modules/es.string.includes');\nvar entryUnbind = require('../../internals/entry-unbind');\n\nmodule.exports = entryUnbind('String', 'includes');\n","var parent = require('../../es/math/log10');\n\nmodule.exports = parent;\n","var parent = require('../../es/string/includes');\n\nmodule.exports = parent;\n","module.exports = function (it) {\n if (typeof it != 'function') {\n throw TypeError(String(it) + ' is not a function');\n } return it;\n};\n","var isObject = require('../internals/is-object');\n\nmodule.exports = function (it) {\n if (!isObject(it)) {\n throw TypeError(String(it) + ' is not an object');\n } return it;\n};\n","var toIndexedObject = require('../internals/to-indexed-object');\nvar toLength = require('../internals/to-length');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\n\n// `Array.prototype.{ indexOf, includes }` methods implementation\nvar createMethod = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.includes` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n};\n","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n","var has = require('../internals/has');\nvar ownKeys = require('../internals/own-keys');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar definePropertyModule = require('../internals/object-define-property');\n\nmodule.exports = function (target, source) {\n var keys = ownKeys(source);\n var defineProperty = definePropertyModule.f;\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar MATCH = wellKnownSymbol('match');\n\nmodule.exports = function (METHOD_NAME) {\n var regexp = /./;\n try {\n '/./'[METHOD_NAME](regexp);\n } catch (e) {\n try {\n regexp[MATCH] = false;\n return '/./'[METHOD_NAME](regexp);\n } catch (f) { /* empty */ }\n } return false;\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = DESCRIPTORS ? function (object, key, value) {\n return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","var fails = require('../internals/fails');\n\n// Thank's IE8 for his funny defineProperty\nmodule.exports = !fails(function () {\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;\n});\n","var global = require('../internals/global');\nvar isObject = require('../internals/is-object');\n\nvar document = global.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS = isObject(document) && isObject(document.createElement);\n\nmodule.exports = function (it) {\n return EXISTS ? document.createElement(it) : {};\n};\n","var global = require('../internals/global');\nvar bind = require('../internals/function-bind-context');\n\nvar call = Function.call;\n\nmodule.exports = function (CONSTRUCTOR, METHOD, length) {\n return bind(call, global[CONSTRUCTOR].prototype[METHOD], length);\n};\n","// IE8- don't enum bug keys\nmodule.exports = [\n 'constructor',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toLocaleString',\n 'toString',\n 'valueOf'\n];\n","var global = require('../internals/global');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar redefine = require('../internals/redefine');\nvar setGlobal = require('../internals/set-global');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar isForced = require('../internals/is-forced');\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.noTargetGet - prevent calling a getter on target\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var FORCED, target, key, targetProperty, sourceProperty, descriptor;\n if (GLOBAL) {\n target = global;\n } else if (STATIC) {\n target = global[TARGET] || setGlobal(TARGET, {});\n } else {\n target = (global[TARGET] || {}).prototype;\n }\n if (target) for (key in source) {\n sourceProperty = source[key];\n if (options.noTargetGet) {\n descriptor = getOwnPropertyDescriptor(target, key);\n targetProperty = descriptor && descriptor.value;\n } else targetProperty = target[key];\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contained in target\n if (!FORCED && targetProperty !== undefined) {\n if (typeof sourceProperty === typeof targetProperty) continue;\n copyConstructorProperties(sourceProperty, targetProperty);\n }\n // add a flag to not completely full polyfills\n if (options.sham || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(sourceProperty, 'sham', true);\n }\n // extend global\n redefine(target, key, sourceProperty, options);\n }\n};\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n};\n","var aFunction = require('../internals/a-function');\n\n// optional / simple context binding\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 0: return function () {\n return fn.call(that);\n };\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","var path = require('../internals/path');\nvar global = require('../internals/global');\n\nvar aFunction = function (variable) {\n return typeof variable == 'function' ? variable : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global[namespace])\n : path[namespace] && path[namespace][method] || global[namespace] && global[namespace][method];\n};\n","var check = function (it) {\n return it && it.Math == Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nmodule.exports =\n // eslint-disable-next-line no-undef\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n check(typeof self == 'object' && self) ||\n check(typeof global == 'object' && global) ||\n // eslint-disable-next-line no-new-func\n Function('return this')();\n","var hasOwnProperty = {}.hasOwnProperty;\n\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n","module.exports = {};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar createElement = require('../internals/document-create-element');\n\n// Thank's IE8 for his funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () { return 7; }\n }).a != 7;\n});\n","var fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\n\nvar split = ''.split;\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins\n return !Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) == 'String' ? split.call(it, '') : Object(it);\n} : Object;\n","var store = require('../internals/shared-store');\n\nvar functionToString = Function.toString;\n\n// this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper\nif (typeof store.inspectSource != 'function') {\n store.inspectSource = function (it) {\n return functionToString.call(it);\n };\n}\n\nmodule.exports = store.inspectSource;\n","var NATIVE_WEAK_MAP = require('../internals/native-weak-map');\nvar global = require('../internals/global');\nvar isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar objectHas = require('../internals/has');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar WeakMap = global.WeakMap;\nvar set, get, has;\n\nvar enforce = function (it) {\n return has(it) ? get(it) : set(it, {});\n};\n\nvar getterFor = function (TYPE) {\n return function (it) {\n var state;\n if (!isObject(it) || (state = get(it)).type !== TYPE) {\n throw TypeError('Incompatible receiver, ' + TYPE + ' required');\n } return state;\n };\n};\n\nif (NATIVE_WEAK_MAP) {\n var store = new WeakMap();\n var wmget = store.get;\n var wmhas = store.has;\n var wmset = store.set;\n set = function (it, metadata) {\n wmset.call(store, it, metadata);\n return metadata;\n };\n get = function (it) {\n return wmget.call(store, it) || {};\n };\n has = function (it) {\n return wmhas.call(store, it);\n };\n} else {\n var STATE = sharedKey('state');\n hiddenKeys[STATE] = true;\n set = function (it, metadata) {\n createNonEnumerableProperty(it, STATE, metadata);\n return metadata;\n };\n get = function (it) {\n return objectHas(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return objectHas(it, STATE);\n };\n}\n\nmodule.exports = {\n set: set,\n get: get,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n};\n","var fails = require('../internals/fails');\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value == POLYFILL ? true\n : value == NATIVE ? false\n : typeof detection == 'function' ? fails(detection)\n : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n","module.exports = false;\n","var isObject = require('../internals/is-object');\nvar classof = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar MATCH = wellKnownSymbol('match');\n\n// `IsRegExp` abstract operation\n// https://tc39.github.io/ecma262/#sec-isregexp\nmodule.exports = function (it) {\n var isRegExp;\n return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n // Chrome 38 Symbol has incorrect toString conversion\n // eslint-disable-next-line no-undef\n return !String(Symbol());\n});\n","var global = require('../internals/global');\nvar inspectSource = require('../internals/inspect-source');\n\nvar WeakMap = global.WeakMap;\n\nmodule.exports = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap));\n","var isRegExp = require('../internals/is-regexp');\n\nmodule.exports = function (it) {\n if (isRegExp(it)) {\n throw TypeError(\"The method doesn't accept regular expressions\");\n } return it;\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar anObject = require('../internals/an-object');\nvar toPrimitive = require('../internals/to-primitive');\n\nvar nativeDefineProperty = Object.defineProperty;\n\n// `Object.defineProperty` method\n// https://tc39.github.io/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? nativeDefineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return nativeDefineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPrimitive = require('../internals/to-primitive');\nvar has = require('../internals/has');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\n\nvar nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPrimitive(P, true);\n if (IE8_DOM_DEFINE) try {\n return nativeGetOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (has(O, P)) return createPropertyDescriptor(!propertyIsEnumerableModule.f.call(O, P), O[P]);\n};\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\nvar hiddenKeys = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.github.io/ecma262/#sec-object.getownpropertynames\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n};\n","exports.f = Object.getOwnPropertySymbols;\n","var has = require('../internals/has');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar indexOf = require('../internals/array-includes').indexOf;\nvar hiddenKeys = require('../internals/hidden-keys');\n\nmodule.exports = function (object, names) {\n var O = toIndexedObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~indexOf(result, key) || result.push(key);\n }\n return result;\n};\n","'use strict';\nvar nativePropertyIsEnumerable = {}.propertyIsEnumerable;\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor(this, V);\n return !!descriptor && descriptor.enumerable;\n} : nativePropertyIsEnumerable;\n","var getBuiltIn = require('../internals/get-built-in');\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar anObject = require('../internals/an-object');\n\n// all object keys, includes non-enumerable and symbols\nmodule.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {\n var keys = getOwnPropertyNamesModule.f(anObject(it));\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;\n};\n","var global = require('../internals/global');\n\nmodule.exports = global;\n","var global = require('../internals/global');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar has = require('../internals/has');\nvar setGlobal = require('../internals/set-global');\nvar inspectSource = require('../internals/inspect-source');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar getInternalState = InternalStateModule.get;\nvar enforceInternalState = InternalStateModule.enforce;\nvar TEMPLATE = String(String).split('String');\n\n(module.exports = function (O, key, value, options) {\n var unsafe = options ? !!options.unsafe : false;\n var simple = options ? !!options.enumerable : false;\n var noTargetGet = options ? !!options.noTargetGet : false;\n if (typeof value == 'function') {\n if (typeof key == 'string' && !has(value, 'name')) createNonEnumerableProperty(value, 'name', key);\n enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');\n }\n if (O === global) {\n if (simple) O[key] = value;\n else setGlobal(key, value);\n return;\n } else if (!unsafe) {\n delete O[key];\n } else if (!noTargetGet && O[key]) {\n simple = true;\n }\n if (simple) O[key] = value;\n else createNonEnumerableProperty(O, key, value);\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, 'toString', function toString() {\n return typeof this == 'function' && getInternalState(this).source || inspectSource(this);\n});\n","// `RequireObjectCoercible` abstract operation\n// https://tc39.github.io/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n","var global = require('../internals/global');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\n\nmodule.exports = function (key, value) {\n try {\n createNonEnumerableProperty(global, key, value);\n } catch (error) {\n global[key] = value;\n } return value;\n};\n","var shared = require('../internals/shared');\nvar uid = require('../internals/uid');\n\nvar keys = shared('keys');\n\nmodule.exports = function (key) {\n return keys[key] || (keys[key] = uid(key));\n};\n","var global = require('../internals/global');\nvar setGlobal = require('../internals/set-global');\n\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || setGlobal(SHARED, {});\n\nmodule.exports = store;\n","var IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.6.4',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2020 Denis Pushkarev (zloirock.ru)'\n});\n","var toInteger = require('../internals/to-integer');\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n var integer = toInteger(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n","// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject = require('../internals/indexed-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nmodule.exports = function (it) {\n return IndexedObject(requireObjectCoercible(it));\n};\n","var ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `ToInteger` abstract operation\n// https://tc39.github.io/ecma262/#sec-tointeger\nmodule.exports = function (argument) {\n return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);\n};\n","var toInteger = require('../internals/to-integer');\n\nvar min = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.github.io/ecma262/#sec-tolength\nmodule.exports = function (argument) {\n return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n","var isObject = require('../internals/is-object');\n\n// `ToPrimitive` abstract operation\n// https://tc39.github.io/ecma262/#sec-toprimitive\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (input, PREFERRED_STRING) {\n if (!isObject(input)) return input;\n var fn, val;\n if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;\n if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;\n if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n","var id = 0;\nvar postfix = Math.random();\n\nmodule.exports = function (key) {\n return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);\n};\n","var NATIVE_SYMBOL = require('../internals/native-symbol');\n\nmodule.exports = NATIVE_SYMBOL\n // eslint-disable-next-line no-undef\n && !Symbol.sham\n // eslint-disable-next-line no-undef\n && typeof Symbol.iterator == 'symbol';\n","var global = require('../internals/global');\nvar shared = require('../internals/shared');\nvar has = require('../internals/has');\nvar uid = require('../internals/uid');\nvar NATIVE_SYMBOL = require('../internals/native-symbol');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar WellKnownSymbolsStore = shared('wks');\nvar Symbol = global.Symbol;\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : Symbol && Symbol.withoutSetter || uid;\n\nmodule.exports = function (name) {\n if (!has(WellKnownSymbolsStore, name)) {\n if (NATIVE_SYMBOL && has(Symbol, name)) WellKnownSymbolsStore[name] = Symbol[name];\n else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);\n } return WellKnownSymbolsStore[name];\n};\n","var $ = require('../internals/export');\n\nvar log = Math.log;\nvar LOG10E = Math.LOG10E;\n\n// `Math.log10` method\n// https://tc39.github.io/ecma262/#sec-math.log10\n$({ target: 'Math', stat: true }, {\n log10: function log10(x) {\n return log(x) * LOG10E;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar notARegExp = require('../internals/not-a-regexp');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar correctIsRegExpLogic = require('../internals/correct-is-regexp-logic');\n\n// `String.prototype.includes` method\n// https://tc39.github.io/ecma262/#sec-string.prototype.includes\n$({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {\n includes: function includes(searchString /* , position = 0 */) {\n return !!~String(requireObjectCoercible(this))\n .indexOf(notARegExp(searchString), arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","import { Alert, AlertTypes } from \"@microchip/scf-common/lib/Processor\";\nimport { AppModel } from \"../generated_module/src/types/AutoModuleTypes\";\nimport includes from \"core-js/features/string/includes\";\n\nexport function getInputSignalAlerts(dataModel: AppModel): Alert {\n const inputSignal: any = dataModel.getComponentValue(\"ctsCcpcap\");\n let peripheralOption: any;\n let peripheralImportKey: any;\n\n if (includes(inputSignal, \"CMP\")) {\n // when source is: CMP1_out || CMP_out || CMP3_out\n peripheralOption = inputSignal.replace(\"_OUT\", \"\");\n peripheralImportKey = \"CMP\";\n } else if (includes(inputSignal, \"CLC\")) {\n // when source is: CLC1OUT || CLC2OUT || CLC3OUT || CLC4OUT || CLC5OUT || CLC6OUT || CLC7OUT || CLC8OUT\n peripheralOption = inputSignal.replace(\"_OUT\", \"\");\n peripheralImportKey = \"CLC\";\n }\n\n if (dataModel.getImportValue(peripheralImportKey) === undefined) {\n return {\n type: AlertTypes.Warning,\n text: `Configure ${peripheralOption} for Capture Input Source in the ${peripheralImportKey} Dependency Selector.`,\n };\n } else {\n let instance = \"\";\n if (includes(inputSignal, \"CMP\")) {\n // when source is: CMP1_out || CMP_out || CMP3_out\n instance = dataModel.getImportValue(peripheralImportKey).moduleName;\n } else if (includes(inputSignal, \"CLC\")) {\n // when source is: CLC1OUT || CLC2OUT || CLC3OUT || CLC4OUT || CLC5OUT || CLC6OUT || CLC7OUT || CLC8OUT\n instance = dataModel.getImportValue(peripheralImportKey).moduleName;\n }\n\n if (peripheralOption === instance) {\n return {\n type: AlertTypes.Hint,\n text: `${dataModel.getName()} uses ${peripheralOption} as Capture Input Source.`,\n };\n } else {\n return {\n type: AlertTypes.Warning,\n text: `Configure ${peripheralOption} for Capture Input Source in the ${peripheralImportKey} Dependency Selector.`,\n };\n }\n }\n}\n\nexport function getCcpTimerAlerts(dataModel: AppModel): Alert {\n const ccpTimer: any = dataModel.getComponentValue(\"ccpTimer\");\n const peripheralOption = \"TMR\" + ccpTimer.substring(ccpTimer.length - 1);\n\n if (dataModel.getImportValue(\"TMR1_3_5\") === undefined) {\n return {\n type: AlertTypes.Warning,\n text: `Please configure ${peripheralOption} for ${dataModel.getComponentValue(\n \"ccpMode\",\n )} mode in the TMR Dependency Selector.`,\n };\n } else {\n const instance = dataModel.getImportValue(\"TMR1_3_5\").moduleName;\n if (peripheralOption === instance) {\n return {\n type: AlertTypes.Hint,\n text: `The ${dataModel.getName()} module uses ${peripheralOption}.`,\n };\n } else {\n return {\n type: AlertTypes.Warning,\n text: `Please configure ${peripheralOption} for ${dataModel.getComponentValue(\n \"ccpMode\",\n )} mode in the TMR Dependency Selector.`,\n };\n }\n }\n}\n\nexport function getPwmTimerAlerts(dataModel: AppModel): Alert {\n const pwmTimer: any = dataModel.getComponentValue(\"pwmTimer\");\n const peripheralOption = \"TMR\" + pwmTimer.substring(pwmTimer.length - 1);\n\n if (dataModel.getImportValue(\"TMR2_4_6\") === undefined) {\n return {\n type: AlertTypes.Warning,\n text: `Please configure ${peripheralOption} for ${dataModel.getComponentValue(\n \"ccpMode\",\n )} mode in the TMR Dependency Selector.`,\n };\n } else {\n const instance = dataModel.getImportValue(\"TMR2_4_6\").moduleName;\n if (peripheralOption === instance) {\n return {\n type: AlertTypes.Hint,\n text: `The ${dataModel.getName()} module uses ${peripheralOption}.`,\n };\n } else {\n return {\n type: AlertTypes.Warning,\n text: `Please configure ${peripheralOption} for ${dataModel.getComponentValue(\n \"ccpMode\",\n )} mode in the TMR Dependency Selector.`,\n };\n }\n }\n}\n","import { CreatorFunctions } from \"@microchip/melody-automodule-interface\";\nimport { MyState } from \"../generated_module/src/types/AutoModuleTypes\";\nimport includes from \"core-js/features/string/includes\";\n\nexport const getCreatorFunctions = (): CreatorFunctions => {\n return {\n shouldImport: shouldImport,\n getCreatorImportArgs: getCreatorImportArgs,\n };\n};\n\nexport const shouldImport = (importKey: string, state: MyState | undefined): boolean => {\n let shouldImport = false;\n\n const ccpMode: string = state?.main?.hardware?.ccpMode ?? \"off/reset\";\n const inputSignal: string = state?.main?.hardware?.ctsCcpcap ?? \"CCP1 pin\";\n // const ccpTimer: string = state?.main?.hardware?.ccpTimer ?? \"Timer 1\";\n // const pwmTimer: string = state?.main?.hardware?.pwmTimer ?? \"Timer 2\";\n\n if (importKey === \"CMP\") {\n if (ccpMode === \"Capture\" && includes(inputSignal, \"CMP\")) {\n shouldImport = true;\n }\n } else if (importKey === \"CLC\") {\n if (ccpMode === \"Capture\" && includes(inputSignal, \"CLC\")) {\n shouldImport = true;\n }\n } else if (importKey === \"TMR1_3_5\") {\n if (ccpMode === \"Capture\" || ccpMode === \"Compare\") {\n shouldImport = true;\n }\n } else if (importKey === \"TMR2_4_6\") {\n if (ccpMode === \"PWM\") {\n shouldImport = true;\n }\n } else {\n shouldImport = true;\n }\n\n return shouldImport;\n};\n\nconst getCreatorImportArgs = (importKey: string, state: MyState): any | undefined => {\n return undefined;\n};\n","import {\n AppModel,\n DerivedData,\n DerivedFunctions,\n} from \"../generated_module/src/types/AutoModuleTypes\";\nimport * as Processor from \"@microchip/scf-common/lib/Processor\";\nimport * as CCPInterface from \"./interfaces/ccp_interface\";\nimport * as SignalSrcInterface from \"./interfaces/signal-source\";\nimport * as TriggerSrcInterface from \"./interfaces/trigger-source\";\nimport { PwmCalculator } from \"./PwmCalculator\";\nimport { ExportArg } from \"@microchip/melody-automodule-interface/lib/src/InterfaceTypes\";\nimport { getInputSignalAlerts, getCcpTimerAlerts, getPwmTimerAlerts } from \"./Alerts\";\nimport { Module } from \"@microchip/scf-device\";\nimport { MyImports } from \"../generated_module/src/types\";\nimport * as initializer_system from \"@microchip/initializer-system\";\nimport { getGeneratorModel, createFirmwareApi, getHeaderFiles } from \"./GeneratorModel\";\nimport includes from \"core-js/features/string/includes\";\nimport { InterruptActions } from \"@microchip/melody-automodule-interface/lib/src/InterruptTypes\";\nimport { InterruptActionsBuilder } from \"@microchip/scf-automodule-impl/lib/interrupts/InterruptActions\";\nimport { InterfaceId } from \"@microchip/scf-common/lib/InterfaceId\";\nimport { getPinsLogic } from \"../generated_module/src/pins/PCPHelper\";\nimport { getCFunctionValidator, PatternValidator } from \"@microchip/scf-validators/lib\";\n\nexport const getDerivedData = (dataModel: AppModel): DerivedData => {\n if (dataModel) {\n return new MyDerivedData(dataModel);\n }\n return new EmptyDerivedData();\n};\n\nclass EmptyDerivedData implements DerivedData {\n getMyFunctions = (): DerivedFunctions => {\n return {};\n };\n getModel = (): AppModel | undefined => {\n return undefined;\n };\n}\n\nclass MyDerivedData implements DerivedData {\n private dataModel: AppModel;\n private pwmCalculator: PwmCalculator;\n private cValidator: PatternValidator = getCFunctionValidator();\n\n constructor(dataModel: AppModel) {\n this.dataModel = dataModel;\n }\n\n getMyFunctions = (): DerivedFunctions => {\n return {\n moduleName: this.getModuleName,\n componentNameValidator: this.componentNameValidator,\n getCustomUiErrors: this.getCustomUiErrors,\n customName: (): any => this.getModel().getComponentValue(\"componentName\"),\n templateName: this.getTemplateName,\n pinData: this.getMyPinData,\n templateData: (): any => getGeneratorModel(this.getModel()),\n alerts: this.getMyAlerts,\n overrideDefaultValues: this.overrideDefaultValue,\n overrideOptions: this.overrideOptions,\n showImportComponent: (): any => false,\n filterImports: this.filterImports,\n getProcessedArgValue: this.getProcessedArgValue,\n [\"ccp-interface_payload\"]: this.getCcpInterfacePayload,\n [\"signal-source_payload\"]: this.getSignalSrcPayload,\n [\"trigger-source_payload\"]: this.getTriggerSrcPayload,\n ccpmCcpcon: this.getSelectedMode,\n ccpi: this.getInterruptEnable,\n ccprValue: this.getCCPRValue,\n ccprhCcprh: this.getCCPRHValue,\n ccprlCcprl: this.getCCPRLValue,\n ctselCcptmrs: this.getSelectedTimer,\n pwmPeriod: this.getPwmPeriod,\n pwmFrequency: this.getPwmFrequency,\n pwmResolution: this.getPwmResolution,\n dutyCycleValidator: this.getDutyCycleValidator,\n isDefaultMode: (): boolean =>\n this.getModel().getComponentValue(\"ccpMode\") === \"off/reset\",\n isCaptureMode: (): boolean =>\n this.getModel().getComponentValue(\"ccpMode\") === \"Capture\",\n isCompareMode: (): boolean =>\n this.getModel().getComponentValue(\"ccpMode\") === \"Compare\",\n isPwmMode: (): boolean =>\n this.getModel().getComponentValue(\"ccpMode\") === \"PWM\",\n componentName: this.getComponentName,\n enCcpcon: this.getEnableCcp,\n ccpMode: this.getCcpMode,\n captureMode: this.getCaptureMode,\n ctsCcpcap: this.getInputSrc,\n compareMode: this.getCompareMode,\n ccpTimer: this.getCcpTimerSrc,\n dutyCycle: this.getDutyCycle,\n fmtCcpcon: this.getAlignment,\n pwmTimer: this.getPwmTimerSrc,\n interruptEnable: this.getEnableInterrupt,\n initializer_system_results: this.initializer_system_results,\n isrCallback: this.isrCallback,\n getInterruptActions: this.getInterruptActions,\n filterInterrupts: this.filterInterrupts,\n getPinsLogic: getPinsLogic,\n importName: this.friendlyImportName,\n };\n };\n\n private friendlyImportName = (importKey: string): string => {\n if (importKey === \"scf_pic8_ccp_v1\") return \"CCP Hardware\";\n if (importKey === \"osc_clocks\") return \"Oscillator Clock\";\n if (importKey === \"initializer_system\") return \"system.c Initialize()\";\n if (importKey === \"pin_standard\") return \"Pins\";\n if (importKey === \"interrupt_standard\") return \"Interrupts\";\n return importKey;\n };\n\n private componentNameValidator = (): any => {\n return {\n pattern: this.cValidator.getRjsfValidation().pattern,\n };\n };\n\n private getCustomUiErrors = (componentName: string): Error[] | undefined => {\n switch (componentName) {\n case \"componentName\":\n return [\n {\n name: \"pattern\",\n message: this.cValidator.getCustomErrorMessage(),\n },\n ];\n default:\n return undefined;\n }\n };\n\n getPwmCalculator = (): PwmCalculator => {\n if (!this.pwmCalculator) {\n this.pwmCalculator = new PwmCalculator(\n Number(this.getPRValue()),\n Number(this.getPrescaler()),\n Number(this.getFosc()),\n Number(this.getModel().getComponentValue(\"dutyCycle\")),\n );\n }\n return this.pwmCalculator;\n };\n\n public getModel = (): AppModel => {\n return this.dataModel;\n };\n\n public getModuleName = (): string => {\n return this.getModel().getHardware()?.getPeripheral()?.name ?? \"CCP1\";\n };\n\n private getInterruptActions = (\n interruptName: string,\n actionFor: string,\n ): InterruptActions => {\n return InterruptActionsBuilder.createActionBuilder(this.getModel())\n .createActionFor(\"interruptEnable\")\n .addActionIfEnabled(true)\n .addActionIfDisabled(false)\n .buildActions();\n };\n\n private filterInterrupts = (interruptName: string): boolean => {\n switch (interruptName) {\n case \"CCPI\":\n return /^(Capture|Compare)$/.test(\n this.getModel().getComponentValue(\"ccpMode\") ?? \"\",\n );\n default:\n return false;\n }\n };\n\n private getTemplateName = (src: string): any => {\n if (\n src === \"output/default-source-template.c.ftl\" ||\n src === \"output/capture-source-template.c.ftl\"\n ) {\n return \"capture/src/\" + this.getModel().getName().toLowerCase() + \".c\";\n } else if (\n src === \"output/default-header-template.h.ftl\" ||\n src === \"output/capture-header-template.h.ftl\"\n ) {\n return \"capture/\" + this.getModel().getName().toLowerCase() + \".h\";\n } else if (src === \"output/compare-source-template.c.ftl\") {\n return \"compare/src/\" + this.getModel().getName().toLowerCase() + \".c\";\n } else if (src === \"output/compare-header-template.h.ftl\") {\n return \"compare/\" + this.getModel().getName().toLowerCase() + \".h\";\n } else if (src === \"output/pwm-source-template.c.ftl\") {\n return \"pwm/src/\" + this.getModel().getName().toLowerCase() + \".c\";\n } else if (src === \"output/pwm-header-template.h.ftl\") {\n return \"pwm/\" + this.getModel().getName().toLowerCase() + \".h\";\n } else return undefined;\n };\n\n private overrideDefaultValue = (componentName: string): any => {\n if (componentName === \"componentName\") {\n if (this.getModel().getComponentValue(\"ccpMode\") === \"PWM\") {\n return \"PWM\" + this.getModuleInstance();\n } else {\n return this.getModel().getHardware()?.getPeripheral()?.name ?? \"CCP\";\n }\n }\n return undefined;\n };\n\n private overrideOptions = (componentName: string): any => {\n switch (componentName) {\n case \"ccpTimer\":\n return this.getTimerOptions();\n case \"pwmTimer\":\n return this.getTimerOptions();\n default:\n break;\n }\n return undefined;\n };\n\n private getTimerOptions = (): string[] | undefined => {\n const result: string[] = [];\n const CCPTMRS = this.getModel().getPeripheralDescription()?.registers?.CCPTMRS;\n if (CCPTMRS) {\n const timerSelectOptions = CCPTMRS.settings?.CTSEL;\n for (const eachoptn of timerSelectOptions?.options ?? []) {\n if (\n this.getModel().getComponentValue(\"ccpMode\") === \"Capture\" ||\n this.getModel().getComponentValue(\"ccpMode\") === \"Compare\"\n ) {\n const timeroptnregex = /^CCP[0-9]timer([0-9])$/i;\n const optnmatch = eachoptn.alias.match(timeroptnregex);\n const correctOptnName =\n (optnmatch?.length ?? 0) > 1 ? \"Timer \" + optnmatch?.[1] : \"\";\n if (correctOptnName) {\n result.push(correctOptnName);\n }\n } else if (this.getModel().getComponentValue(\"ccpMode\") === \"PWM\") {\n const timeroptnregex = /^PWM[0-9]timer([0-9])$/i;\n const optnmatch = eachoptn.alias.match(timeroptnregex);\n const correctOptnName =\n (optnmatch?.length ?? 0) > 1 ? \"Timer \" + optnmatch?.[1] : \"\";\n if (correctOptnName) {\n result.push(correctOptnName);\n }\n }\n }\n } else {\n if (\n this.getModel().getComponentValue(\"ccpMode\") === \"Capture\" ||\n this.getModel().getComponentValue(\"ccpMode\") === \"Compare\"\n ) {\n result.push(\"Timer 1\");\n } else if (this.getModel().getComponentValue(\"ccpMode\") === \"PWM\") {\n result.push(\"Timer 2\");\n }\n }\n return result;\n };\n\n public getModuleInstance = (): string => {\n return this.getModel()\n .getName()\n .substring(this.getModel().getName().length - 1);\n };\n\n private initializer_system_results = (): initializer_system.Results => {\n return {\n initializer: {\n name: this.getModel().getComponentValue(\"componentName\") + \"_Initialize\",\n header: getHeaderFiles(this.getModel())[0],\n },\n };\n };\n\n private isrCallback = (intName: string): any => {\n if (\n this.getModel().getComponentValue(\"ccpMode\") === \"Capture\" ||\n this.getModel().getComponentValue(\"ccpMode\") === \"Compare\"\n ) {\n return {\n name:\n this.getModel().getComponentValue(\"componentName\") +\n \"_\" +\n this.getModel().getComponentValue(\"ccpMode\") +\n \"ISR\",\n header: getHeaderFiles(this.getModel())[0],\n };\n } else {\n return {\n name: this.getModel().getComponentValue(\"componentName\") + \"_ISR\",\n header: getHeaderFiles(this.getModel())[0],\n };\n }\n };\n\n private getCcpInterfacePayload = (): CCPInterface.ProcessedPayload => {\n const dataModel: AppModel = this.getModel();\n const getCCPRValue = this.getCCPRValue;\n const getPwmFrequency = this.getPwmFrequency;\n const getPwmPeriod = this.getPwmPeriod;\n const getPwmResolution = this.getPwmResolution;\n return {\n interfaceApi: createFirmwareApi(this.getModel()),\n customName: this.getModel().getComponentValue(\"componentName\"),\n enableCCP: this.getModel().isComponentValue(\"enCcpcon\"),\n ccpMode: this.getModel().getComponentValue(\"ccpMode\"),\n capture: getCapturePayload(),\n compare: getComparePayload(),\n pwm: getPwmPayload(),\n enabledInterrupt: this.getModel().isComponentValue(\"interruptEnable\"),\n moduleName: this.getModel().getName(),\n hasInterrupts: true,\n };\n\n function getCapturePayload(): any {\n if (dataModel.getComponentValue(\"ccpMode\") === \"Capture\") {\n return {\n mode: dataModel.getComponentValue(\"captureMode\"),\n inputSrc: dataModel.getComponentValue(\"ctsCcpcap\"),\n timerSrc: dataModel.getComponentValue(\"ccpTimer\"),\n };\n }\n }\n\n function getComparePayload(): any {\n if (dataModel.getComponentValue(\"ccpMode\") === \"Compare\") {\n return {\n mode: dataModel.getComponentValue(\"compareMode\"),\n timerSrc: dataModel.getComponentValue(\"ccpTimer\"),\n };\n }\n }\n\n function getPwmPayload(): any {\n if (dataModel.getComponentValue(\"ccpMode\") === \"PWM\") {\n return {\n dutyCycle: dataModel.getComponentValue(\"dutyCycle\"),\n alignment: dataModel.getComponentValue(\"fmtCcpcon\"),\n ccprValue: getCCPRValue(),\n period: getPwmPeriod(),\n frequency: getPwmFrequency(),\n resolution: getPwmResolution(),\n timerSrc: dataModel.getComponentValue(\"pwmTimer\"),\n };\n }\n }\n };\n\n private getSignalSrcPayload = (): SignalSrcInterface.ProcessedPayload => {\n return {\n moduleName: this.getModuleName(),\n customName: this.getModel().getComponentValue(\"componentName\"),\n };\n };\n\n private getTriggerSrcPayload = (): TriggerSrcInterface.ProcessedPayload => {\n return {\n moduleName: this.getModuleName(),\n customName: this.getModel().getComponentValue(\"componentName\"),\n };\n };\n\n private getProcessedArgValue = (\n componentName: string,\n exportArgs: ExportArg[],\n ): ExportArg | undefined => {\n return undefined;\n };\n\n private getMyPinData = (): any => {\n return {};\n };\n\n private getMyAlerts = (): Processor.Alert[] => {\n const alerts: Processor.Alert[] = [];\n let alert: Processor.Alert | undefined;\n let tmrOption: string;\n const ccpTimer: any = this.getModel().getComponentValue(\"ccpTimer\");\n const pwmTimer: any = this.getModel().getComponentValue(\"pwmTimer\");\n\n switch (this.getModel().getComponentValue(\"ccpMode\")) {\n case \"Capture\":\n if (\n includes(this.getModel().getComponentValue(\"ctsCcpcap\"), \"CMP\") ||\n includes(this.getModel().getComponentValue(\"ctsCcpcap\"), \"CLC\")\n ) {\n alerts.push(getInputSignalAlerts(this.getModel()));\n }\n alerts.push(getCcpTimerAlerts(this.getModel()));\n\n tmrOption = \"TMR\" + ccpTimer.substring(ccpTimer.length - 1);\n\n if (\n this.getModel().getImportValue(\"TMR1_3_5\") !== undefined &&\n this.getModel().getImportValue(\"TMR1_3_5\").moduleName == tmrOption\n ) {\n alert = this.getTimerClockAlerts();\n if (alert !== undefined) {\n alerts.push(alert);\n }\n }\n\n alerts.push({\n type: Processor.AlertTypes.Hint,\n text: \"Please refer to the assigned timer for captured values.\",\n });\n break;\n case \"Compare\":\n alerts.push(getCcpTimerAlerts(this.getModel()));\n\n tmrOption = \"TMR\" + ccpTimer.substring(ccpTimer.length - 1);\n\n if (\n this.getModel().getImportValue(\"TMR1_3_5\") !== undefined &&\n this.getModel().getImportValue(\"TMR1_3_5\").moduleName == tmrOption\n ) {\n alert = this.getTimerClockAlerts();\n if (alert !== undefined) {\n alerts.push(alert);\n }\n }\n\n alerts.push({\n type: Processor.AlertTypes.Hint,\n text:\n \"Please refer to the assigned timer to adjust the Compare trip point.\",\n });\n break;\n case \"PWM\":\n alerts.push(getPwmTimerAlerts(this.getModel()));\n tmrOption = \"TMR\" + pwmTimer.substring(pwmTimer.length - 1);\n\n if (\n this.getModel().getImportValue(\"TMR2_4_6\") !== undefined &&\n this.getModel().getImportValue(\"TMR2_4_6\").moduleName == tmrOption &&\n this.getTMR2ClockSrc() != \"FOSC/4\"\n ) {\n alerts.push({\n type: Processor.AlertTypes.Warning,\n text:\n \"In order to use the PWM mode, please configure \" +\n this.getModel().getComponentValue(\"pwmTimer\") +\n \" to use FOSC/4 as clock source.\",\n });\n }\n\n alerts.push({\n type: Processor.AlertTypes.Hint,\n text:\n \"Please refer to the assigned timer to adjust the PWM frequency.\",\n });\n break;\n default:\n }\n return alerts;\n };\n\n private filterImports = (imports: MyImports): MyImports => {\n let filteredImports: MyImports = imports;\n const ccpModeSelected: string =\n this.getModel().getComponentValue(\"ccpMode\") ?? \"off/reset\";\n const capSrcSelected: string =\n this.getModel().getComponentValue(\"ctsCcpcap\") ?? \"CCP1 pin\";\n const ccpTmrSelected: string =\n this.getModel().getComponentValue(\"ccpTimer\") ?? \"Timer 1\";\n const pwmTmrSelected: string =\n this.getModel().getComponentValue(\"pwmTimer\") ?? \"Timer 2\";\n if (this.getPeripheralInstance() !== undefined) {\n filteredImports = this.getModel().filterImportBySetting(\n imports,\n \"scf_pic8_ccp_v1\",\n (option: Processor.Option<Module>): boolean => {\n return option.payload?.name === this.getPeripheralInstance();\n },\n ) as MyImports;\n }\n if (ccpModeSelected === \"Capture\") {\n filteredImports = this.getModel().filterImportBySetting(\n filteredImports ? filteredImports : imports,\n \"TMR1_3_5\", //Import Key\n (option: Processor.Option<any>): any => {\n const regexpNumber = /\\d/;\n const inst = ccpTmrSelected.match(regexpNumber);\n if (ccpTmrSelected.indexOf(\"Timer\") !== -1) {\n return option.payload.moduleName === \"TMR\" + inst;\n }\n },\n ) as MyImports;\n if (includes(capSrcSelected, \"CMP\")) {\n // when source is: CMP1_out || CMP_out || CMP3_out\n filteredImports = this.getModel().filterImportBySetting(\n filteredImports ? filteredImports : imports,\n \"CMP\", //Import Key\n (option: Processor.Option<any>): any => {\n const regexpNumber = /\\d/;\n const inst = capSrcSelected.match(regexpNumber);\n if (capSrcSelected.indexOf(\"CMP\") !== -1) {\n return option.payload.moduleName === \"CMP\" + inst;\n }\n },\n ) as MyImports;\n } else if (includes(capSrcSelected, \"CLC\")) {\n // when source is: CLC1OUT || CLC2OUT || CLC3OUT || CLC4OUT || CLC5OUT || CLC6OUT || CLC7OUT || CLC8OUT\n filteredImports = this.getModel().filterImportBySetting(\n filteredImports ? filteredImports : imports,\n \"CLC\", //Import Key\n (option: Processor.Option<any>): any => {\n const regexpNumber = /\\d/;\n const inst = capSrcSelected.match(regexpNumber);\n if (capSrcSelected.indexOf(\"CLC\") !== -1) {\n return option.payload.moduleName === \"CLC\" + inst;\n }\n },\n ) as MyImports;\n }\n } else if (ccpModeSelected === \"Compare\") {\n filteredImports = this.getModel().filterImportBySetting(\n filteredImports ? filteredImports : imports,\n \"TMR1_3_5\",\n (option: Processor.Option<any>): any => {\n const regexpNumber = /\\d/;\n const inst = ccpTmrSelected.match(regexpNumber);\n if (ccpTmrSelected.indexOf(\"Timer\") !== -1) {\n return option.payload.moduleName === \"TMR\" + inst;\n }\n },\n ) as MyImports;\n } else if (ccpModeSelected === \"PWM\") {\n filteredImports = this.getModel().filterImportBySetting(\n filteredImports ? filteredImports : imports,\n \"TMR2_4_6\",\n (option: Processor.Option<any>): any => {\n const regexpNumber = /\\d/;\n const inst = pwmTmrSelected.match(regexpNumber);\n if (pwmTmrSelected.indexOf(\"Timer\") !== -1) {\n return option.payload.moduleName === \"TMR\" + inst;\n }\n },\n ) as MyImports;\n }\n\n return filteredImports;\n };\n\n private getTimerClockAlerts = (): Processor.Alert | undefined => {\n if (\n this.getTMR1ClockSrc() === \"External\" ||\n this.getTMR1ClockSrc() === \"EXTOSC\"\n ) {\n if (this.getTimerSync() != \"synchronize\") {\n return {\n type: Processor.AlertTypes.Warning,\n text:\n \"Configure \" +\n this.getModel().getComponentValue(\"ccpTimer\") +\n \" to operate as a synchronous counter to use it as the \" +\n this.getModel().getComponentValue(\"ccpMode\") +\n \" source.\",\n };\n }\n } else if (this.getTMR1ClockSrc() != \"FOSC/4\") {\n return {\n type: Processor.AlertTypes.Warning,\n text:\n \"Configure \" +\n this.getModel().getComponentValue(\"ccpTimer\") +\n \" to operate on a frequency, equal to or lesser than FOSC/4, to use it as the \" +\n this.getModel().getComponentValue(\"ccpMode\") +\n \" source.\",\n };\n } else {\n return undefined;\n }\n };\n\n private getSelectedMode = (): any => {\n switch (this.getModel().getComponentValue(\"ccpMode\")) {\n case \"off/reset\":\n return this.getModel().getComponentValue(\"ccpMode\");\n case \"Capture\":\n return this.getModel().getComponentValue(\"captureMode\");\n case \"Compare\":\n return this.getModel().getComponentValue(\"compareMode\");\n case \"PWM\":\n return this.getModel().getComponentValue(\"ccpMode\");\n default:\n return \"off/reset\";\n }\n };\n\n private getSelectedTimer = (): any => {\n switch (this.getModel().getComponentValue(\"ccpMode\")) {\n case \"off/reset\":\n return \"CCP\" + this.getModuleInstance() + \"timer1\";\n case \"Capture\":\n return this.getSelectedCcpTimer();\n case \"Compare\":\n return this.getSelectedCcpTimer();\n case \"PWM\":\n return this.getSelectedPwmTimer();\n default:\n return \"CCP\" + this.getModuleInstance() + \"timer1\";\n }\n };\n\n private getSelectedCcpTimer = (): any => {\n switch (this.getModel().getComponentValue(\"ccpTimer\")) {\n case \"Timer 1\":\n return \"CCP\" + this.getModuleInstance() + \"timer1\";\n case \"Timer 3\":\n return \"CCP\" + this.getModuleInstance() + \"timer3\";\n case \"Timer 5\":\n return \"CCP\" + this.getModuleInstance() + \"timer5\";\n case \"Timer 7\":\n return \"CCP\" + this.getModuleInstance() + \"timer7\";\n default:\n return \"CCP\" + this.getModuleInstance() + \"timer1\";\n }\n };\n\n private getSelectedPwmTimer = (): any => {\n switch (this.getModel().getComponentValue(\"pwmTimer\")) {\n case \"Timer 2\":\n return \"PWM\" + this.getModuleInstance() + \"timer2\";\n case \"Timer 4\":\n return \"PWM\" + this.getModuleInstance() + \"timer4\";\n case \"Timer 6\":\n return \"PWM\" + this.getModuleInstance() + \"timer6\";\n case \"Timer 8\":\n return \"PWM\" + this.getModuleInstance() + \"timer8\";\n default:\n return \"PWM\" + this.getModuleInstance() + \"timer2\";\n }\n };\n\n private getInterruptEnable = (): any => {\n switch (this.getModel().getComponentValue(\"ccpMode\")) {\n case \"off/reset\":\n return false;\n case \"Capture\":\n return this.getModel().getComponentValue(\"interruptEnable\");\n case \"Compare\":\n return this.getModel().getComponentValue(\"interruptEnable\");\n case \"PWM\":\n return false;\n default:\n return false;\n }\n };\n\n private getDutyCycleValidator = (): any => {\n return {\n minimum: 0,\n maximum: 100,\n };\n };\n\n private getFosc = (): any => {\n return this.getModel().getImportValue(\"osc_clocks\").fosc ?? 0;\n };\n\n private getPRValue = (): number => {\n // const pwmTimer = this.getModel().getComponentValue(\"pwmTimer\") ?? \"Timer 2\";\n // const peripheralOption = \"TMR\" + pwmTimer.substring(pwmTimer.length - 1);\n return Number(\n this.getModel().getImportValue(\"TMR2_4_6\")?.periodRegisterValue ?? 0,\n );\n };\n\n private getPrescaler = (): number => {\n // const pwmTimer = this.getModel().getComponentValue(\"pwmTimer\") ?? \"Timer 2\";\n // const peripheralOption = \"TMR\" + pwmTimer.substring(pwmTimer.length - 1);\n return Number(this.getModel().getImportValue(\"TMR2_4_6\")?.prescaleValue ?? 1);\n };\n\n private getTMR1ClockSrc = (): any => {\n // const ccpTimer = this.getModel().getComponentValue(\"ccpTimer\") ?? \"Timer 1\";\n // const peripheralOption = \"TMR\" + ccpTimer.substring(ccpTimer.length - 1);\n return this.getModel().getImportValue(\"TMR1_3_5\").clocksource;\n };\n\n private getTMR2ClockSrc = (): any => {\n // const pwmTimer = this.getModel().getComponentValue(\"pwmTimer\") ?? \"Timer 2\";\n // const peripheralOption = \"TMR\" + pwmTimer.substring(pwmTimer.length - 1);\n return this.getModel().getImportValue(\"TMR2_4_6\").clockSource;\n };\n\n private getTimerSync = (): any => {\n // const ccpTimer = this.getModel().getComponentValue(\"ccpTimer\") ?? \"Timer 1\";\n // const peripheralOption = \"TMR\" + ccpTimer.substring(ccpTimer.length - 1);\n return this.getModel().getImportValue(\"TMR1_3_5\").enableSynchronization;\n };\n\n private getPwmPeriod = (): string => {\n // const pwmTimer = this.getModel().getComponentValue(\"pwmTimer\") ?? \"Timer 2\";\n // const peripheralOption = \"TMR\" + pwmTimer.substring(pwmTimer.length - 1);\n if (this.getModel().getImportValue(\"TMR2_4_6\") !== undefined) {\n return this.getPwmCalculator().getPwmPeriod().toFixed(3).toString();\n } else {\n return \"0\";\n }\n };\n\n private getPwmFrequency = (): string => {\n // const pwmTimer = this.getModel().getComponentValue(\"pwmTimer\") ?? \"Timer 2\";\n // const peripheralOption = \"TMR\" + pwmTimer.substring(pwmTimer.length - 1);\n if (this.getModel().getImportValue(\"TMR2_4_6\") !== undefined) {\n return this.getPwmCalculator().getPwmFrequency().toFixed(3).toString();\n } else {\n return \"0\";\n }\n };\n\n private getPwmResolution = (): string => {\n // const pwmTimer = this.getModel().getComponentValue(\"pwmTimer\") ?? \"Timer 2\";\n // const peripheralOption = \"TMR\" + pwmTimer.substring(pwmTimer.length - 1);\n if (this.getModel().getImportValue(\"TMR2_4_6\") !== undefined) {\n return this.getPwmCalculator().getPwmResolution().toString();\n } else {\n return \"0\";\n }\n };\n\n private getCCPRValue = (): string => {\n // const pwmTimer = this.getModel().getComponentValue(\"pwmTimer\") ?? \"Timer 2\";\n // const peripheralOption = \"TMR\" + pwmTimer.substring(pwmTimer.length - 1);\n if (this.getModel().getImportValue(\"TMR2_4_6\") !== undefined) {\n return this.getPwmCalculator().getCCPRValue().toString();\n } else {\n return \"0\";\n }\n };\n\n private getCCPRHValue = (): string => {\n if (this.getModel().getComponentValue(\"ccpMode\") == \"PWM\") {\n let ccprValue = Number(this.getCCPRValue());\n if (this.getModel().getComponentValue(\"fmtCcpcon\") == \"left_aligned\") {\n ccprValue = ccprValue << 6;\n }\n const ccprhValue = ccprValue >> 8;\n return ccprhValue.toString();\n } else {\n return \"0\";\n }\n };\n\n private getCCPRLValue = (): string => {\n if (this.getModel().getComponentValue(\"ccpMode\") == \"PWM\") {\n let ccprValue = Number(this.getCCPRValue());\n if (this.getModel().getComponentValue(\"fmtCcpcon\") == \"left_aligned\") {\n ccprValue = ccprValue << 6;\n }\n const ccprlValue = ccprValue & 0xff;\n return ccprlValue.toString();\n } else {\n return \"0\";\n }\n };\n\n private getRequestedArg = (argName: string): any => {\n const arg = this.getRequestedArgFrom(\n CCPInterface.Interface.getInterfaceId(),\n argName,\n );\n if (arg != undefined) {\n return arg;\n }\n };\n\n private getRequestedArgFrom = (interfaceId: InterfaceId, argName: string): any => {\n const cmpExport = this.getModel()\n .getExportInterfaces()\n .getInterface(\"ccp\", interfaceId);\n if (cmpExport && cmpExport.args) {\n const chosen = Object.keys(cmpExport.args)[0];\n const args = cmpExport.args[chosen];\n if (args && args[argName] != undefined) {\n return args[argName];\n }\n }\n };\n\n private getComponentName = (): string => {\n return this.getRequestedArg(\"customName\");\n };\n\n private getCcpMode = (): string => {\n return this.getRequestedArg(\"ccpMode\");\n };\n\n private getEnableCcp = (): boolean => {\n return this.getRequestedArg(\"enableCCP\");\n };\n\n private getCaptureMode = (): string => {\n return this.getRequestedArg(\"capture\")?.mode;\n };\n\n private getInputSrc = (): string => {\n return this.getRequestedArg(\"capture\")?.inputSrc;\n };\n\n private getCapTimerSrc = (): string => {\n return this.getRequestedArg(\"capture\")?.timerSrc;\n };\n\n private getCompareMode = (): string => {\n return this.getRequestedArg(\"compare\")?.mode;\n };\n\n private getComTimerSrc = (): string => {\n return this.getRequestedArg(\"compare\")?.timerSrc;\n };\n\n private getCcpTimerSrc = (): string | undefined => {\n if (this.getModel().getComponentValue(\"ccpMode\") === \"Capture\") {\n return this.getCapTimerSrc();\n } else if (this.getModel().getComponentValue(\"ccpMode\") === \"Compare\") {\n return this.getComTimerSrc();\n }\n };\n\n private getDutyCycle = (): number => {\n return this.getRequestedArg(\"pwm\")?.dutyCycle;\n };\n\n private getAlignment = (): string => {\n return this.getRequestedArg(\"pwm\")?.alignment;\n };\n\n private getPwmTimerSrc = (): string => {\n return this.getRequestedArg(\"pwm\")?.timerSrc;\n };\n\n private getEnableInterrupt = (): boolean => {\n return this.getRequestedArg(\"enableInterrupt\");\n };\n\n private getPeripheralInstance = (): string => {\n return this.getRequestedArg(\"moduleName\");\n };\n}\n","import { AppModel } from \"../generated_module/src/types/AutoModuleTypes\";\nimport * as CCPInterface from \"./interfaces/ccp_interface\";\nimport { FirmwareAPIPayload, HeaderFile } from \"@microchip/scf-interface\";\nimport * as interrupt_standard from \"@microchip/interrupt-standard\";\n\nexport const getGeneratorModel = (model: AppModel): any => {\n const hardwareSettings = model.getPeripheralDescription();\n if (hardwareSettings === undefined) return {};\n const moduleName = model.getName();\n const moduleNameLowerCase = moduleName.toLowerCase();\n const moduleNameUpperCase = moduleNameLowerCase.toUpperCase();\n const componentName = model.getComponentValue(\"componentName\") ?? model.getName();\n const componentNameLowerCase = componentName.toLowerCase();\n const registers = model.getRegisterValues();\n const interrupts = model.getInterrupts();\n\n const ccpInterface = createFirmwareApi(model);\n const intPayload:\n | interrupt_standard.ProcessedPayload\n | undefined = model.getImportValue(\"interrupt_standard\");\n const isVectoredInterrupt = intPayload?.isVectoredInterrupt\n ? intPayload?.vectoredInterruptEnable ?? false\n : false;\n const IVTBaseAddress = String(`${intPayload?.ivtBaseAddress ?? 8}`);\n const ccpInterruptPriorityHigh = intPayload?.isHighPriority?.[\"CCPI\"] ?? true;\n const getIRQname = (): string => {\n const interrupts = hardwareSettings.interrupts;\n const irqName = interrupts?.CCPI?.handlerName ?? \"_CCP\";\n return irqName.replace(\"_\", \"\");\n };\n\n return {\n moduleNameLowerCase: moduleNameLowerCase,\n moduleNameUpperCase: moduleNameUpperCase,\n moduleInstance: hardwareSettings.instance,\n componentName: componentName,\n componentNameLowerCase: componentNameLowerCase,\n header: ccpInterface.headerFiles?.[0],\n api: ccpInterface.api,\n simpleApi: ccpInterface.simpleApi,\n interface: ccpInterface,\n isVectoredInterruptEnabled: isVectoredInterrupt,\n IVTBaseAddress: IVTBaseAddress,\n isHighPriority: ccpInterruptPriorityHigh,\n IRQname: getIRQname(),\n\n ccpModeSelected: model.getComponentValue(\"ccpMode\"),\n isInterruptEnabled: model.isComponentValue(\"interruptEnable\"),\n initialDutyValue: model.getComponentValue(\"ccprValue\"),\n ccpTimer: model.getComponentValue(\"ccpTimer\"),\n pwmTimer: model.getComponentValue(\"pwmTimer\"),\n version: \"2.01\",\n\n //Registers and Settings\n ...registers,\n ...interrupts,\n };\n};\n\nexport const getHeaderFiles = (model: AppModel): HeaderFile[] => {\n if (model.getComponentValue(\"ccpMode\") === \"Capture\") {\n return [\n {\n name: model.getName().toLowerCase() + \".h\",\n path: \"capture/\",\n },\n ];\n } else if (model.getComponentValue(\"ccpMode\") === \"Compare\") {\n return [\n {\n name: model.getName().toLowerCase() + \".h\",\n path: \"compare/\",\n },\n ];\n } else if (model.getComponentValue(\"ccpMode\") === \"PWM\") {\n return [\n {\n name: model.getName().toLowerCase() + \".h\",\n path: \"pwm/\",\n },\n ];\n } else {\n return [\n {\n name: model.getName().toLowerCase() + \".h\",\n path: \"capture/\",\n },\n ];\n }\n};\n\nexport const createFirmwareApi = (\n model: AppModel,\n): FirmwareAPIPayload<CCPInterface.API> => {\n return CCPInterface.Interface.createFirmwareApi(\n model.getComponentValue(\"componentName\"),\n getHeaderFiles(model),\n );\n};\n","import { AppModel } from \"../generated_module/src/types/AutoModuleTypes\";\nimport { pin_row, direction } from \"@microchip/pin-standard\";\n\n// provide complete dynamic data for all pin rows. It overrides static pindata.json\nexport const getCompletePinData = (appModel: AppModel): any => {\n // way to programatically override the json data\n return {};\n};\n\n// overrides pin data for a particular row based on model.S\nexport function getRowData(appModel: AppModel, rowData: pin_row): pin_row | undefined {\n let retRowJSONdata: pin_row | undefined = rowData;\n\n if (rowData.name === \"ccpPps\") {\n retRowJSONdata = {\n ...retRowJSONdata,\n module: appModel.getName(),\n function: appModel.getName(),\n filter: { ...rowData.filter, module: appModel.getName() },\n };\n }\n\n if (rowData.name === \"ccpPps\") {\n if (appModel.getComponentValue(\"ccpMode\") === \"Capture\") {\n retRowJSONdata = {\n ...retRowJSONdata,\n direction: direction.bidirectional,\n attribs: [\n {\n aliasReEx: \".*\",\n analog: false,\n bidirection_out: false,\n },\n ],\n };\n } else if (\n appModel.getComponentValue(\"ccpMode\") === \"PWM\" ||\n appModel.getComponentValue(\"ccpMode\") === \"Compare\"\n ) {\n retRowJSONdata = {\n ...retRowJSONdata,\n direction: direction.bidirectional,\n attribs: [\n {\n aliasReEx: \".*\",\n analog: true,\n bidirection_out: true,\n },\n ],\n };\n } else if (appModel.getComponentValue(\"ccpMode\") === \"off/reset\") {\n retRowJSONdata = undefined;\n }\n }\n\n return retRowJSONdata;\n}\n","import log10 from \"core-js/features/math/log10\";\n\nexport class PwmCalculator {\n private prValue: number;\n private prescaler: number;\n private fosc: number;\n private dutyCycleRatio: number;\n\n constructor(prValue: number, prescaler: number, fosc: number, dutyCycle: number) {\n this.prValue = prValue;\n this.prescaler = prescaler;\n this.fosc = fosc;\n this.dutyCycleRatio = dutyCycle / 100;\n }\n\n public getPwmPeriod = (): number => {\n let pwmPeriod = (this.prValue + 1) * 4 * this.prescaler;\n if (this.fosc > 0) {\n pwmPeriod = pwmPeriod / this.fosc;\n } else {\n pwmPeriod = 0;\n }\n return pwmPeriod;\n };\n\n public getPwmFrequency = (): number => {\n let pwmFrequency = (this.prValue + 1) * 4 * this.prescaler;\n if (pwmFrequency > 0) {\n pwmFrequency = this.fosc / pwmFrequency;\n } else {\n pwmFrequency = 0;\n }\n\n pwmFrequency = Math.round(pwmFrequency * 1000) / 1000;\n return pwmFrequency;\n };\n\n public getPwmResolution = (): number => {\n const pwmResolution = log10(4 * (this.prValue + 1)) / log10(2);\n return Math.floor(pwmResolution);\n };\n\n public getCCPRValue = (): number => {\n const ccprValue = Math.round(this.dutyCycleRatio * 4 * (this.prValue + 1) - 1);\n if (ccprValue < 0) {\n return 0;\n }\n return ccprValue;\n };\n\n public getActualDutyCycle = (): number => {\n const dcRatio = this.getCCPRValue() / (4 * (this.prValue + 1));\n return Math.round(dcRatio * 100);\n };\n\n public getActualPulseWidth = (): number => {\n let pulseWidth = this.getCCPRValue() * this.prescaler;\n if (this.fosc > 0) {\n pulseWidth = pulseWidth / this.fosc;\n } else {\n pulseWidth = 0;\n }\n return pulseWidth;\n };\n}\n","import { InterfaceId } from \"@microchip/scf-common/lib/InterfaceId\";\nimport * as Creator from \"@microchip/scf-common/lib/Creator\";\nimport * as Processor from \"@microchip/scf-common/lib/Processor\";\nimport * as InterfaceTypes from \"@microchip/scf-interface\";\n\n/** The arguments to be provided to the implementation. */\nexport interface Arguments extends InterfaceTypes.Arguments {\n //Standard Interface\n moduleName?: string;\n customName?: string;\n ccpMode?: string; // options: off/reset, Capture, Compare, PWM\n enableCCP?: boolean;\n capture?: {\n mode?: string; // \"Every edge\", \"Falling edge\", \"Rising edge\", \"4th rising edge\",\"16th rising edge\"\n inputSrc?: string; //\n timerSrc?: string; //\n };\n compare?: {\n mode?: string;\n timerSrc?: string;\n };\n pwm?: {\n dutyCycle?: number;\n alignment?: string;\n timerSrc?: string;\n };\n enableInterrupt?: boolean;\n}\n\n/** The payload to be passed back to the dependent module after the BasicUART has been processed. */\nexport interface ProcessedPayload extends InterfaceTypes.ProcessedPayload {\n //Standard Interface\n interfaceApi?: InterfaceTypes.FirmwareAPIPayload<API>;\n customName?: string;\n enableCCP?: boolean;\n ccpMode?: string;\n capture?: {\n mode?: string;\n inputSrc?: string;\n timerSrc?: string;\n };\n compare?: {\n mode?: string;\n timerSrc?: string;\n };\n pwm?: {\n dutyCycle?: number;\n alignment?: string;\n ccprValue?: string;\n period?: string;\n frequency?: string;\n resolution?: string;\n timerSrc?: string;\n };\n enabledInterrupt?: boolean;\n moduleName?: string;\n\n // Interrupt Handler Extension\n hasInterrupts?: boolean;\n}\n\nexport interface API extends InterfaceTypes.CFunctions {\n Initialize: InterfaceTypes.CFunction;\n IsCapturedDataReady: InterfaceTypes.CFunction;\n CaptureRead: InterfaceTypes.CFunction;\n SetCompareCount: InterfaceTypes.CFunction;\n OutputStatusGet: InterfaceTypes.CFunction;\n IsCompareComplete: InterfaceTypes.CFunction;\n LoadDutyValue: InterfaceTypes.CFunction;\n DefaultCallBack: InterfaceTypes.CFunction;\n SetCallBack: InterfaceTypes.CFunction;\n CaptureISR: InterfaceTypes.CFunction;\n CompareISR: InterfaceTypes.CFunction;\n}\n\nconst getInterfaceId = (): InterfaceId => {\n return {\n name: \"ccp-interface\",\n version: \"0.1.0\",\n };\n};\n\nconst createMock = (): ProcessedExportInterface => {\n return {\n interfaceId: getInterfaceId(),\n payload: {\n interfaceApi: Interface.createFirmwareApi(\"CCP1\", [\n { name: \"ccp1.h\", path: \"include/\" },\n ]),\n customName: \"CCP1\",\n enableCCP: false,\n ccpMode: \"off/reset\",\n capture: {\n mode: \"Every edge\",\n inputSrc: \"CMP1\",\n timerSrc: \"Timer 1\",\n },\n compare: {\n mode: \"Toggle_cleartmr\",\n timerSrc: \"Timer 1\",\n },\n pwm: {\n dutyCycle: 0,\n alignment: \"right_aligned\",\n ccprValue: \"0\",\n period: \"0\",\n frequency: \"0\",\n resolution: \"0\",\n timerSrc: \"Timer 2\",\n },\n enabledInterrupt: false,\n moduleName: \"CCP1\",\n hasInterrupts: true,\n },\n args: {\n requestId: {\n moduleName: \"CCP1\",\n customName: \"CCP1\",\n ccpMode: \"off/reset\", // options: off/reset, Capture, Compare, PWM\n enableCCP: false,\n capture: {\n mode: \"Every edge\", // \"Every edge\", \"Falling edge\", \"Rising edge\", \"4th rising edge\",\"16th rising edge\"\n inputSrc: \"CMP1\", //\n timerSrc: \"Timer 1\", //\n },\n compare: {\n mode: \"Toggle_cleartmr\",\n timerSrc: \"Timer 1\",\n },\n pwm: {\n dutyCycle: 0,\n alignment: \"right_aligned\",\n timerSrc: \"Timer 2\",\n },\n enableInterrupt: false,\n },\n },\n };\n};\n\nconst createApi = (prefix: string): API => {\n return {\n Initialize: {\n name: prefix + \"_Initialize\",\n returns: \"void\",\n },\n IsCapturedDataReady: {\n name: prefix + \"_IsCapturedDataReady\",\n returns: \"bool\",\n },\n CaptureRead: {\n name: prefix + \"_CaptureRead\",\n returns: \"uint16_t\",\n },\n SetCompareCount: {\n name: prefix + \"_SetCompareCount\",\n arguments: [\n {\n name: \"compareCount\",\n type: \"uint16_t\",\n },\n ],\n returns: \"void\",\n },\n OutputStatusGet: {\n name: prefix + \"_OutputStatusGet\",\n returns: \"bool\",\n },\n IsCompareComplete: {\n name: prefix + \"_IsCompareComplete\",\n returns: \"bool\",\n },\n LoadDutyValue: {\n name: prefix + \"_LoadDutyValue\",\n arguments: [\n {\n name: \"dutyValue\",\n type: \"uint16_t\",\n },\n ],\n returns: \"void\",\n },\n DefaultCallBack: {\n name: prefix + \"_DefaultCallBack\",\n arguments: [\n {\n name: \"capturedValue\",\n type: \"uint16_t\",\n },\n ],\n returns: \"static void\",\n },\n SetCallBack: {\n name: prefix + \"_SetCallBack\",\n arguments: [\n {\n name: \"(*customCallBack)(uint16_t)\",\n type: \"void\",\n },\n ],\n returns: \"void\",\n },\n CaptureISR: {\n name: prefix + \"_CaptureISR\",\n returns: \"void\",\n },\n CompareISR: {\n name: prefix + \"_CompareISR\",\n returns: \"void\",\n },\n };\n};\n\n/** The type of the processed export interface */\nexport type ProcessedExportInterface = Processor.ProcessedInterface<\n ProcessedPayload,\n Arguments\n>;\n\n/** Used by implementations of this interface in their module's creator. */\ntype CreatorExportInterface = Creator.Interface<ProcessedPayload>;\n\nconst createPrototypeImport = (): Creator.Import => {\n return {\n interfaceId: getInterfaceId(),\n };\n};\n\nconst createPrototypeExport = (): Creator.Export<CreatorExportInterface[]> => {\n return {\n interfaces: [{ interfaceId: getInterfaceId() }],\n };\n};\n\nconst createFirmwareApi = (\n moduleName?: string,\n headerFiles?: InterfaceTypes.HeaderFile[],\n createCustomApi?: () => API,\n): InterfaceTypes.FirmwareAPIPayload<API> => {\n const prefix: string = moduleName ? moduleName : \"undefined\";\n const api = createCustomApi ? createCustomApi() : createApi(prefix);\n\n return {\n api: api,\n simpleApi: InterfaceTypes.buildSimpleApi(api),\n headerFiles: headerFiles\n ? headerFiles\n : [{ name: prefix.toLowerCase() + \".h\", path: \"include/\" }],\n };\n};\n\ninterface Interface extends InterfaceTypes.Interface {\n createPrototypeImport: () => Creator.Import<Arguments>;\n createMock: () => ProcessedExportInterface;\n createFirmwareApi: (\n moduleName?: string,\n headerFiles?: InterfaceTypes.HeaderFile[],\n createCustomApi?: () => API,\n ) => InterfaceTypes.FirmwareAPIPayload<API>;\n}\n\nexport const Interface: Interface = {\n createPrototypeExport: createPrototypeExport,\n createPrototypeImport: createPrototypeImport,\n getInterfaceId: getInterfaceId,\n createMock: createMock,\n createFirmwareApi: createFirmwareApi,\n};\n"],"sourceRoot":""}
|