commit 319ffb593afd2f419dcd6b2541bf199b8c42bfef Author: Sumit.kumar Date: Tue Jul 21 16:54:37 2026 +0530 valid ex soc first commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a3c6548 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +**/__pycache__/ +*.pyc +main/ +main.spec diff --git a/Final/Projects/VECSM0C0-B23/config.json b/Final/Projects/VECSM0C0-B23/config.json new file mode 100644 index 0000000..9175e5b --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/config.json @@ -0,0 +1,38 @@ +{ + "fct_info": { + "Customer ID": "VECSM0C0-B23", + "Customer Name": "Infiswap", + "Software Version": "1.0.0", + "Hardware Version": "0.0.5" + }, + "//": "batscript location Test Code", + "SOC_CUSTOMER_BATSCRIPT": "firmwares/SOC_FINAL/dslite-CORTEX_M0P.bat", + "SOC_COMMIT_ID": "0fd55f3c7d587761eb5fe052d48560e071694bee", + "SOC_KNOWN_VOLTAGE": 48.3, + "SOC_VOLTAGE_THRESHOLD": 0.5, + "SOC_TEST_BATSCRIPT": "firmwares/SOC_TEST/dslite-CORTEX_M0P.bat", + "DELAY_AFTER_POWER_ON_OFF": 5, + "DELAY_RELAY_OFF": 3, + "TEST_ARRAY": [ + "Initialization", + "FinalFirmware", + "BuckFiveVolt", + "MCUSupply", + "ADCAccuracy", + "DisplayTest", + "ButtonTest", + "Result" + ], + "PROCESS_CONFIG": { + "CUSTOMER_NAME": "Infiswaps", + "LOCATION_NAME": "Indigrade", + "PRODUCT_VIT": "VECSM0C0-B23", + "COMMIT_ID": "0fd55f3c7d587761eb5fe052d48560e071694bee", + "CUSTOMER_ID": "v" + }, + "GIT": { + "REPO_URL": "https://gitea.vecmocon.com/m.sonu/SOC_METER_FCT.git", + "BRANCH_NAME": "bhupendra_infiswap", + "COMMIT_HASH": "cb4d3929efd0bbc44bf9971d643338ae3dfa3983" + } +} diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/BatchDriverInstaller.exe b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/BatchDriverInstaller.exe new file mode 100644 index 0000000..b560075 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/BatchDriverInstaller.exe differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/DSLite.exe b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/DSLite.exe new file mode 100644 index 0000000..4a8d12e Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/DSLite.exe differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/DSLiteNW.node b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/DSLiteNW.node new file mode 100644 index 0000000..b96b243 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/DSLiteNW.node differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/DSLiteNode.node b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/DSLiteNode.node new file mode 100644 index 0000000..291d023 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/DSLiteNode.node differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/DebugProperties.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/DebugProperties.dll new file mode 100644 index 0000000..46e61b1 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/DebugProperties.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/DebugServer.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/DebugServer.dll new file mode 100644 index 0000000..2805e8c Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/DebugServer.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/FlashCC23xx.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/FlashCC23xx.dll new file mode 100644 index 0000000..ee2bd4e Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/FlashCC23xx.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/FlashCC26x2.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/FlashCC26x2.dll new file mode 100644 index 0000000..bcd6c66 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/FlashCC26x2.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/FlashCC26xx.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/FlashCC26xx.dll new file mode 100644 index 0000000..bcd6c66 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/FlashCC26xx.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/FlashDLLDB.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/FlashDLLDB.xml new file mode 100644 index 0000000..15c0f4e --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/FlashDLLDB.xml @@ -0,0 +1,161 @@ + + + Flash Only + + + + + Flash Only + + + + Flash Only + + + + + + + + SERIAL + TMS470REX + TMS320C28XX + + + + Flash DLL Delegate + TMS470REX + + + + Flash DLL Delegate + TMS470REX + + + + DFU + TMS470REX + + + + JTAG + TMS470REX + TMS470RDX + + + + + + JTAG + TMS320C28XX + + + + JTAG + TMS470REX + TMS320C28XX + + + + JTAG + TMS470REX + TMS320C28XX + + + + + + + + + + + + JTAG + TMS320C28XX + + + + JTAG + TMS470REX + + + + + + + + JTAG + TMS470REX + + + + JTAG + TMS470RAX + + + + + JTAG + TMS470REX + + + + + JTAG + TMS470RAX + TMS470R33X + + + + + + JTAG + TMS470REX + TMS470R33X + + + + + + + + + + JTAG + TMS470RDX + + + + + JTAG + TMS470REX + + + + + JTAG + MSP430 + + + JTAG + TMS470R1X + + + + + JTAG + TMS470REX + + + + JTAG + TMS470REX + + + + JTAG + TMS470REX + + + \ No newline at end of file diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/FlashMSPM0.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/FlashMSPM0.dll new file mode 100644 index 0000000..7e00ec7 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/FlashMSPM0.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/LibraryLoader.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/LibraryLoader.dll new file mode 100644 index 0000000..3b16892 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/LibraryLoader.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/XPCOMUtility.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/XPCOMUtility.dll new file mode 100644 index 0000000..a084aae Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/XPCOMUtility.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-console-l1-1-0.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-console-l1-1-0.dll new file mode 100644 index 0000000..0962b30 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-console-l1-1-0.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-console-l1-2-0.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-console-l1-2-0.dll new file mode 100644 index 0000000..21bb3ad Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-console-l1-2-0.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-datetime-l1-1-0.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-datetime-l1-1-0.dll new file mode 100644 index 0000000..a268730 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-datetime-l1-1-0.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-debug-l1-1-0.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-debug-l1-1-0.dll new file mode 100644 index 0000000..035e268 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-debug-l1-1-0.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-errorhandling-l1-1-0.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-errorhandling-l1-1-0.dll new file mode 100644 index 0000000..192ede9 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-errorhandling-l1-1-0.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-file-l1-1-0.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-file-l1-1-0.dll new file mode 100644 index 0000000..68ee784 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-file-l1-1-0.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-file-l1-2-0.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-file-l1-2-0.dll new file mode 100644 index 0000000..8600b9e Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-file-l1-2-0.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-file-l2-1-0.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-file-l2-1-0.dll new file mode 100644 index 0000000..9cb6b01 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-file-l2-1-0.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-handle-l1-1-0.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-handle-l1-1-0.dll new file mode 100644 index 0000000..90678c6 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-handle-l1-1-0.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-heap-l1-1-0.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-heap-l1-1-0.dll new file mode 100644 index 0000000..ed9d316 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-heap-l1-1-0.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-interlocked-l1-1-0.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-interlocked-l1-1-0.dll new file mode 100644 index 0000000..434e8e7 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-interlocked-l1-1-0.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-libraryloader-l1-1-0.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-libraryloader-l1-1-0.dll new file mode 100644 index 0000000..0893de0 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-libraryloader-l1-1-0.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-localization-l1-2-0.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-localization-l1-2-0.dll new file mode 100644 index 0000000..4a3db1f Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-localization-l1-2-0.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-memory-l1-1-0.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-memory-l1-1-0.dll new file mode 100644 index 0000000..9cb8b97 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-memory-l1-1-0.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-namedpipe-l1-1-0.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-namedpipe-l1-1-0.dll new file mode 100644 index 0000000..e88b768 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-namedpipe-l1-1-0.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-processenvironment-l1-1-0.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-processenvironment-l1-1-0.dll new file mode 100644 index 0000000..d91e7eb Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-processenvironment-l1-1-0.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-processthreads-l1-1-0.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-processthreads-l1-1-0.dll new file mode 100644 index 0000000..49267a8 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-processthreads-l1-1-0.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-processthreads-l1-1-1.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-processthreads-l1-1-1.dll new file mode 100644 index 0000000..62bee96 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-processthreads-l1-1-1.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-profile-l1-1-0.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-profile-l1-1-0.dll new file mode 100644 index 0000000..38ea751 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-profile-l1-1-0.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-rtlsupport-l1-1-0.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-rtlsupport-l1-1-0.dll new file mode 100644 index 0000000..a3645c4 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-rtlsupport-l1-1-0.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-string-l1-1-0.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-string-l1-1-0.dll new file mode 100644 index 0000000..8f4653f Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-string-l1-1-0.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-synch-l1-1-0.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-synch-l1-1-0.dll new file mode 100644 index 0000000..16bd019 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-synch-l1-1-0.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-synch-l1-2-0.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-synch-l1-2-0.dll new file mode 100644 index 0000000..fadea38 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-synch-l1-2-0.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-sysinfo-l1-1-0.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-sysinfo-l1-1-0.dll new file mode 100644 index 0000000..db6b187 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-sysinfo-l1-1-0.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-timezone-l1-1-0.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-timezone-l1-1-0.dll new file mode 100644 index 0000000..c55ea7e Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-timezone-l1-1-0.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-util-l1-1-0.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-util-l1-1-0.dll new file mode 100644 index 0000000..3e91e2e Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-core-util-l1-1-0.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-crt-conio-l1-1-0.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-crt-conio-l1-1-0.dll new file mode 100644 index 0000000..8106a7e Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-crt-conio-l1-1-0.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-crt-convert-l1-1-0.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-crt-convert-l1-1-0.dll new file mode 100644 index 0000000..9d5fbe5 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-crt-convert-l1-1-0.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-crt-environment-l1-1-0.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-crt-environment-l1-1-0.dll new file mode 100644 index 0000000..5989e02 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-crt-environment-l1-1-0.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-crt-filesystem-l1-1-0.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-crt-filesystem-l1-1-0.dll new file mode 100644 index 0000000..ccdc59a Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-crt-filesystem-l1-1-0.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-crt-heap-l1-1-0.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-crt-heap-l1-1-0.dll new file mode 100644 index 0000000..2bf76f9 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-crt-heap-l1-1-0.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-crt-locale-l1-1-0.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-crt-locale-l1-1-0.dll new file mode 100644 index 0000000..5b1539a Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-crt-locale-l1-1-0.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-crt-math-l1-1-0.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-crt-math-l1-1-0.dll new file mode 100644 index 0000000..9834a10 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-crt-math-l1-1-0.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-crt-multibyte-l1-1-0.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-crt-multibyte-l1-1-0.dll new file mode 100644 index 0000000..2fbd774 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-crt-multibyte-l1-1-0.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-crt-private-l1-1-0.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-crt-private-l1-1-0.dll new file mode 100644 index 0000000..05130e5 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-crt-private-l1-1-0.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-crt-process-l1-1-0.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-crt-process-l1-1-0.dll new file mode 100644 index 0000000..8f31310 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-crt-process-l1-1-0.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-crt-runtime-l1-1-0.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-crt-runtime-l1-1-0.dll new file mode 100644 index 0000000..d369c68 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-crt-runtime-l1-1-0.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-crt-stdio-l1-1-0.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-crt-stdio-l1-1-0.dll new file mode 100644 index 0000000..29f6380 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-crt-stdio-l1-1-0.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-crt-string-l1-1-0.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-crt-string-l1-1-0.dll new file mode 100644 index 0000000..122930c Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-crt-string-l1-1-0.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-crt-time-l1-1-0.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-crt-time-l1-1-0.dll new file mode 100644 index 0000000..aed540c Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-crt-time-l1-1-0.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-crt-utility-l1-1-0.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-crt-utility-l1-1-0.dll new file mode 100644 index 0000000..71ac8e5 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/api-ms-win-crt-utility-l1-1-0.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/lldbSM.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/lldbSM.dll new file mode 100644 index 0000000..ea246be Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/lldbSM.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/msvcp140.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/msvcp140.dll new file mode 100644 index 0000000..4a5ca4f Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/msvcp140.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/ti_xpcom.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/ti_xpcom.dll new file mode 100644 index 0000000..9c4a155 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/ti_xpcom.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/tiofr11.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/tiofr11.dll new file mode 100644 index 0000000..f1de670 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/tiofr11.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/tiofr_gnu.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/tiofr_gnu.dll new file mode 100644 index 0000000..d342ef8 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/tiofr_gnu.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/tiofr_tial.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/tiofr_tial.dll new file mode 100644 index 0000000..552f763 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/tiofr_tial.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/ucrtbase.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/ucrtbase.dll new file mode 100644 index 0000000..4dcf24c Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/ucrtbase.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/vcruntime140.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/vcruntime140.dll new file mode 100644 index 0000000..52fe06b Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/vcruntime140.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/vcruntime140_1.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/vcruntime140_1.dll new file mode 100644 index 0000000..f564204 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/bin/vcruntime140_1.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/components/components.txt b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/components/components.txt new file mode 100644 index 0000000..16c9f21 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/components/components.txt @@ -0,0 +1,6 @@ +@ti.com/DebugServer;1 DebugServer +@ti.com/DebugProperties;1 DebugProperties +@ti.com/DataSnapshotDecoder;1 DataSnapshotDecoder +@ti.com/DSLogger;1 XPCOMTILogger +@ti.com/DirectoryService;1 DirectoryService +@ti.com/UARTMonitor;1 UARTMonitor \ No newline at end of file diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/propertyDB/CC13_FlashProperties.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/propertyDB/CC13_FlashProperties.xml new file mode 100644 index 0000000..365122e --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/propertyDB/CC13_FlashProperties.xml @@ -0,0 +1,648 @@ +๏ปฟ + + + + Flash Settings + + ProgramLoadSettingsGroup + FlashPageGroup + CCFGGroup + EraseActionGroup + FlashAlignCombineToggle + FlashAlignmentSize + DeviceInfoGroup + DeviceMacAddressGroup + + + + + Program Load Settings + + FlashEraseSetting + ProgramLoadEraseSpecificInfo + ProgramLoadEraseSpecificText + CrcVerify + PerformBlankCheck + + + + Customer Configuration (CCFG) + + KeepCcfgSetting + DisableBootloader + DisableBootloaderLoc + DisableCpuDap + DisableCpuDapLoc + WriteProtectionToggle + WriteProtectionText + CCFG_PROT_31_0Loc + CCFG_PROT_63_32Loc + + + + Skip Sectors during Program Load + + FlashPageToggle + FlashPageText + FlashPages + FlashPagesFilledWith + FlashPagesFilledWithValue + + + + Erase Actions + + EraseActionChoice + ChipEraseButton + StandaloneEraseSpecificText + StandaloneEraseSpecificButton + + + + Device Information + + DeviceInfoFlashSize + DeviceInfoRAMSize + DeviceInfoRevision + DeviceInfoRevisionTranslation + DeviceFlashloaderFile + + + + Device MAC Addresses + + DeviceBlePrimaryGroup + DeviceBleSecondaryGroup + DeviceIeeePrimaryGroup + DeviceIeeeSecondaryGroup + + + + Primary BLE Address + + DeviceBlePrimary + DeviceBlePrimaryLoc + DeviceBlePrimaryReadButton + + + + Secondary BLE Address + + RetainBleSecondaryAddr + OverrideBleSecondaryAddr + DeviceBleSecondary + DeviceBleSecondaryLoc + DeviceBleSecondaryReadButton + DeviceBleSecondaryWriteButton + + + + Primary IEEE Address + + DeviceIeeePrimary + DeviceIeeePrimaryLoc + DeviceIeeePrimaryReadButton + + + + Secondary IEEE Address + + RetainIeeeSecondaryAddr + OverrideIeeeSecondaryAddr + DeviceIeeeSecondary + DeviceIeeeSecondaryLoc + DeviceIeeeSecondaryReadButton + DeviceIeeeSecondaryWriteButton + + + + + Program Load + CCFG + Manual Erase + Flash Page + Download + Primary BLE Address + Secondary BLE Address + Primary IEEE Address + Secondary IEEE Address + Device Info + + + + generic + Primary BLE Address + String + -- + 1 + + Primary BLE Address + + + + generic + BLE Factory Address Location + String + + 500012E8:6 + 1 + + + + generic + Read + Button + DPActiveDebugSession.flash.performOperation("ReadPriBle") + + Primary BLE Address + + + + generic + Retain BLE MAC address during program download + Boolean + 0 + + 1 + + + Secondary BLE Address + + + + generic + Override BLE MAC address during program download + Boolean + 0 + + 1 + + + Secondary BLE Address + + + + generic + Secondary BLE Address + String + -- + + 1 + + + Secondary BLE Address + + + + generic + Secondary BLE Address Location + String + + 1FFD0:6 + 1 + + + + generic + Read + Button + DPActiveDebugSession.flash.performOperation("ReadSecBle") + + Secondary BLE Address + + + + generic + Write + Button + DPActiveDebugSession.flash.performOperation("WriteSecBle") + + Secondary BLE Address + + + + generic + Primary IEEE Address + String + -- + 1 + + Primary IEEE Address + + + + generic + IEEE Factory Address Location + String + + 500012F0:8 + 1 + + + + generic + Read + Button + DPActiveDebugSession.flash.performOperation("ReadPriIeee") + + Primary IEEE Address + + + + generic + Retain IEEE MAC address during program download + Boolean + 0 + + 1 + + + Secondary IEEE Address + + + + generic + Override IEEE MAC address during program download + Boolean + 0 + + 1 + + + Secondary IEEE Address + + + + generic + Secondary IEEE Address + String + -- + + 1 + + + Secondary IEEE Address + + + + generic + Secondary IEEE Address Location + String + + 1FFC8:8 + 1 + + + + generic + Read + Button + DPActiveDebugSession.flash.performOperation("ReadSecIeee") + + Secondary IEEE Address + + + + generic + Write + Button + DPActiveDebugSession.flash.performOperation("WriteSecIeee") + + Secondary IEEE Address + + + + generic + Erase Settings during Program Load + ChoiceList + + All Unprotected Sectors + Necessary Sectors Only + Necessary Sectors Only (Retain untouched content within sector) + Specific Sectors + Do not erase sectors (program load only) + + Necessary Sectors Only (Retain untouched content within sector) + + Program Load + + + + generic + Note: This option affects erase, program and verification. +The specified sectors are erased but nothing else. The sectors can be given as a range and/or single sectors. +Example: "0-5,8" will erase sectors 0, 1, 2, 3, 4, 5, 8. + + Text + + Specific Sectors + + + Program Load + + + + generic + Sector(s): + String + + + Specific Sectors + + + Program Load + + + + generic + Use CRC Verification during Program Load. + Boolean + 1 + + Program Load + + + + generic + Perform Blank Check + Button + DPActiveDebugSession.flash.performOperation("BlankCheck") + + Program Load + + + + generic + Keep CCFG data. The upper N bytes of device CCFG are kept. N is given by CCFG.CCFG_O_SIZE_AND_DIS_FLAGS[31:16] in CCFG. If value is invalid, this option is ignored. + Boolean + 0 + + CCFG + + + + generic + Disable Bootloader + Boolean + 0 + + CCFG + + + + generic + BOOTLOADER_ENABLE field in CCFG + String + + 1FFDB:1 + 1 + + + + generic + Lock debug interface + Boolean + 0 + + CCFG + + + + generic + CPU_DAP_ENABLE field in CCFG + String + + 1FFE6:1 + 1 + + + + generic + Write-protect sectors + Boolean + 0 + + CCFG + + + + generic + Sector(s): + String + + + 1 + + + CCFG + + + + generic + First Flash Protection Register + String + + 1FFF0:4 + 1 + + + + generic + Second Flash Protection Register + String + + 1FFF4:4 + 1 + + + + generic + Note: This option affects erase, program and verification. +The specified sectors are not programmed. The sectors can be given as a range and/or single sectors. +Example: "0-5,8" Skip erase/program/verify of sectors 0, 1, 2, 3, 4, 5, 8. + + Text + + Flash Page + + + + generic + Skip specified sectors during program load + Boolean + 0 + + 1 + + + Flash Page + + + + generic + Sector(s): + String + 0-5,8 + + 1 + + + Flash Page + + + + generic + Skip sectors filled with specified value + Boolean + 0 + + 1 + + + Flash Page + + + + generic + Exlude sectors in image filled with: + String + 0x + + 1 + + + Flash Page + + + + generic + Erase settings during standalone erase + ChoiceList + + Erase entire flash (You must reconnect to the target afterwards) + Erase specific flash sectors + + Erase entire flash (You must reconnect to the target afterwards) + + Manual Erase + + + + generic + Erase Entire Flash + Button + + 1 + Erase specific flash sectors + + DPActiveDebugSession.expression.evaluate("MassErase()") + + Manual Erase + + + + generic + Sector(s): + String + 0-5,8 + + Erase specific flash sectors + + + Manual Erase + + + + generic + Erase Specific Segments + Button + + Erase specific flash sectors + + DPActiveDebugSession.flash.performOperation("EraseSectors") + + Manual Erase + + + + generic + Align program sectors to 64-bit memory regions (for ECC calculation) + Boolean + 1 + + + + + generic + Alignment Size: 0x + String + 8 + + + + generic + Flash Size + String + -- + 1 + + Device Info + + + + generic + RAM Size + String + -- + 1 + + Device Info + + + + generic + Revision + String + -- + 1 + + Device Info + + + + generic + Revision Translation + String + 0:1.0:-:15:1.0:-:2:2.0:A:3:2.1:B + 1 + + + + generic + Flashloader File + String + FlashLoaderCC26x0.out + 1 + + + + + generic + CCFG + String + 0x50003000-0x50003FFF + 1 + + + + generic + FCFG1 + String + 0x50001000-0x500013FF + 1 + + + + \ No newline at end of file diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/propertyDB/CC13x1_CC26x1_FlashProperties.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/propertyDB/CC13x1_CC26x1_FlashProperties.xml new file mode 100644 index 0000000..2aa40ee --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/propertyDB/CC13x1_CC26x1_FlashProperties.xml @@ -0,0 +1,648 @@ +๏ปฟ + + + + Flash Settings + + ProgramLoadSettingsGroup + FlashPageGroup + CCFGGroup + EraseActionGroup + FlashAlignCombineToggle + FlashAlignmentSize + DeviceInfoGroup + DeviceMacAddressGroup + + + + + Program Load Settings + + FlashEraseSetting + ProgramLoadEraseSpecificInfo + ProgramLoadEraseSpecificText + CrcVerify + PerformBlankCheck + + + + Customer Configuration (CCFG) + + KeepCcfgSetting + DisableBootloader + DisableBootloaderLoc + DisableCpuDap + DisableCpuDapLoc + WriteProtectionToggle + WriteProtectionText + CCFG_PROT_31_0Loc + CCFG_PROT_63_32Loc + + + + Skip Sectors during Program Load + + FlashPageToggle + FlashPageText + FlashPages + FlashPagesFilledWith + FlashPagesFilledWithValue + + + + Erase Actions + + EraseActionChoice + ChipEraseButton + StandaloneEraseSpecificText + StandaloneEraseSpecificButton + + + + Device Information + + DeviceInfoFlashSize + DeviceInfoRAMSize + DeviceInfoRevision + DeviceInfoRevisionTranslation + DeviceFlashloaderFile + + + + Device MAC Addresses + + DeviceBlePrimaryGroup + DeviceBleSecondaryGroup + DeviceIeeePrimaryGroup + DeviceIeeeSecondaryGroup + + + + Primary BLE Address + + DeviceBlePrimary + DeviceBlePrimaryLoc + DeviceBlePrimaryReadButton + + + + Secondary BLE Address + + RetainBleSecondaryAddr + OverrideBleSecondaryAddr + DeviceBleSecondary + DeviceBleSecondaryLoc + DeviceBleSecondaryReadButton + DeviceBleSecondaryWriteButton + + + + Primary IEEE Address + + DeviceIeeePrimary + DeviceIeeePrimaryLoc + DeviceIeeePrimaryReadButton + + + + Secondary IEEE Address + + RetainIeeeSecondaryAddr + OverrideIeeeSecondaryAddr + DeviceIeeeSecondary + DeviceIeeeSecondaryLoc + DeviceIeeeSecondaryReadButton + DeviceIeeeSecondaryWriteButton + + + + + Program Load + CCFG + Manual Erase + Flash Page + Download + Primary BLE Address + Secondary BLE Address + Primary IEEE Address + Secondary IEEE Address + Device Info + + + + generic + Primary BLE Address + String + -- + 1 + + Primary BLE Address + + + + generic + BLE Factory Address Location + String + + 500012E8:6 + 1 + + + + generic + Read + Button + DPActiveDebugSession.flash.performOperation("ReadPriBle") + + Primary BLE Address + + + + generic + Retain BLE MAC address during program download + Boolean + 0 + + 1 + + + Secondary BLE Address + + + + generic + Override BLE MAC address during program download + Boolean + 0 + + 1 + + + Secondary BLE Address + + + + generic + Secondary BLE Address + String + -- + + 1 + + + Secondary BLE Address + + + + generic + Secondary BLE Address Location + String + + 57FD0:6 + 1 + + + + generic + Read + Button + DPActiveDebugSession.flash.performOperation("ReadSecBle") + + Secondary BLE Address + + + + generic + Write + Button + DPActiveDebugSession.flash.performOperation("WriteSecBle") + + Secondary BLE Address + + + + generic + Primary IEEE Address + String + -- + 1 + + Primary IEEE Address + + + + generic + IEEE Factory Address Location + String + + 500012F0:8 + 1 + + + + generic + Read + Button + DPActiveDebugSession.flash.performOperation("ReadPriIeee") + + Primary IEEE Address + + + + generic + Retain IEEE MAC address during program download + Boolean + 0 + + 1 + + + Secondary IEEE Address + + + + generic + Override IEEE MAC address during program download + Boolean + 0 + + 1 + + + Secondary IEEE Address + + + + generic + Secondary IEEE Address + String + -- + + 1 + + + Secondary IEEE Address + + + + generic + Secondary IEEE Address Location + String + + 57FC8:8 + 1 + + + + generic + Read + Button + DPActiveDebugSession.flash.performOperation("ReadSecIeee") + + Secondary IEEE Address + + + + generic + Write + Button + DPActiveDebugSession.flash.performOperation("WriteSecIeee") + + Secondary IEEE Address + + + + generic + Erase Settings during Program Load + ChoiceList + + All Unprotected Sectors + Necessary Sectors Only + Necessary Sectors Only (Retain untouched content within sector) + Specific Sectors + Do not erase sectors (program load only) + + Necessary Sectors Only (Retain untouched content within sector) + + Program Load + + + + generic + Note: This option affects erase, program and verification. +The specified sectors are erased but nothing else. The sectors can be given as a range and/or single sectors. +Example: "0-5,8" will erase sectors 0, 1, 2, 3, 4, 5, 8. + + Text + + Specific Sectors + + + Program Load + + + + generic + Sector(s): + String + + + Specific Sectors + + + Program Load + + + + generic + Use CRC Verification during Program Load. + Boolean + 1 + + Program Load + + + + generic + Perform Blank Check + Button + DPActiveDebugSession.flash.performOperation("BlankCheck") + + Program Load + + + + generic + Keep CCFG data. The upper N bytes of device CCFG are kept. N is given by CCFG.CCFG_O_SIZE_AND_DIS_FLAGS[31:16] in CCFG. If value is invalid, this option is ignored. + Boolean + 0 + + CCFG + + + + generic + Disable Bootloader + Boolean + 0 + + CCFG + + + + generic + BOOTLOADER_ENABLE field in CCFG + String + + 57FDB:1 + 1 + + + + generic + Lock debug interface + Boolean + 0 + + CCFG + + + + generic + CPU_DAP_ENABLE field in CCFG + String + + 57FE6:1 + 1 + + + + generic + Write-protect sectors + Boolean + 0 + + CCFG + + + + generic + Sector(s): + String + + + 1 + + + CCFG + + + + generic + First Flash Protection Register + String + + 57FF0:4 + 1 + + + + generic + Second Flash Protection Register + String + + 57FF4:4 + 1 + + + + generic + Note: This option affects erase, program and verification. +The specified sectors are not programmed. The sectors can be given as a range and/or single sectors. +Example: "0-5,8" Skip erase/program/verify of sectors 0, 1, 2, 3, 4, 5, 8. + + Text + + Flash Page + + + + generic + Skip specified sectors during program load + Boolean + 0 + + 1 + + + Flash Page + + + + generic + Sector(s): + String + 0-5,8 + + 1 + + + Flash Page + + + + generic + Skip sectors filled with specified value + Boolean + 0 + + 1 + + + Flash Page + + + + generic + Exlude sectors in image filled with: + String + 0x + + 1 + + + Flash Page + + + + generic + Erase settings during standalone erase + ChoiceList + + Erase entire flash (You must reconnect to the target afterwards) + Erase specific flash sectors + + Erase entire flash (You must reconnect to the target afterwards) + + Manual Erase + + + + generic + Erase Entire Flash + Button + + 1 + Erase specific flash sectors + + DPActiveDebugSession.expression.evaluate("MassErase()") + + Manual Erase + + + + generic + Sector(s): + String + 0-5,8 + + Erase specific flash sectors + + + Manual Erase + + + + generic + Erase Specific Segments + Button + + Erase specific flash sectors + + DPActiveDebugSession.flash.performOperation("EraseSectors") + + Manual Erase + + + + generic + Align program sectors to 64-bit memory regions (for ECC calculation) + Boolean + 1 + + + + + generic + Alignment Size: 0x + String + 8 + + + + generic + Flash Size + String + -- + 1 + + Device Info + + + + generic + RAM Size + String + -- + 1 + + Device Info + + + + generic + Revision + String + -- + 1 + + Device Info + + + + generic + Revision Translation + String + 0:1.0:A:1:1.1:B + 1 + + + + generic + Flashloader File + String + FlashLoaderCC26x1.out + 1 + + + + + generic + CCFG + String + 0x50003000-0x50004FFF + 1 + + + + generic + FCFG1 + String + 0x50001000-0x500017FF + 1 + + + + \ No newline at end of file diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/propertyDB/CC13x2_FlashProperties.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/propertyDB/CC13x2_FlashProperties.xml new file mode 100644 index 0000000..d9826be --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/propertyDB/CC13x2_FlashProperties.xml @@ -0,0 +1,648 @@ +๏ปฟ + + + + Flash Settings + + ProgramLoadSettingsGroup + FlashPageGroup + CCFGGroup + EraseActionGroup + FlashAlignCombineToggle + FlashAlignmentSize + DeviceInfoGroup + DeviceMacAddressGroup + + + + + Program Load Settings + + FlashEraseSetting + ProgramLoadEraseSpecificInfo + ProgramLoadEraseSpecificText + CrcVerify + PerformBlankCheck + + + + Customer Configuration (CCFG) + + KeepCcfgSetting + DisableBootloader + DisableBootloaderLoc + DisableCpuDap + DisableCpuDapLoc + WriteProtectionToggle + WriteProtectionText + CCFG_PROT_31_0Loc + CCFG_PROT_63_32Loc + + + + Skip Sectors during Program Load + + FlashPageToggle + FlashPageText + FlashPages + FlashPagesFilledWith + FlashPagesFilledWithValue + + + + Erase Actions + + EraseActionChoice + ChipEraseButton + StandaloneEraseSpecificText + StandaloneEraseSpecificButton + + + + Device Information + + DeviceInfoFlashSize + DeviceInfoRAMSize + DeviceInfoRevision + DeviceInfoRevisionTranslation + DeviceFlashloaderFile + + + + Device MAC Addresses + + DeviceBlePrimaryGroup + DeviceBleSecondaryGroup + DeviceIeeePrimaryGroup + DeviceIeeeSecondaryGroup + + + + Primary BLE Address + + DeviceBlePrimary + DeviceBlePrimaryLoc + DeviceBlePrimaryReadButton + + + + Secondary BLE Address + + RetainBleSecondaryAddr + OverrideBleSecondaryAddr + DeviceBleSecondary + DeviceBleSecondaryLoc + DeviceBleSecondaryReadButton + DeviceBleSecondaryWriteButton + + + + Primary IEEE Address + + DeviceIeeePrimary + DeviceIeeePrimaryLoc + DeviceIeeePrimaryReadButton + + + + Secondary IEEE Address + + RetainIeeeSecondaryAddr + OverrideIeeeSecondaryAddr + DeviceIeeeSecondary + DeviceIeeeSecondaryLoc + DeviceIeeeSecondaryReadButton + DeviceIeeeSecondaryWriteButton + + + + + Program Load + CCFG + Manual Erase + Flash Page + Download + Primary BLE Address + Secondary BLE Address + Primary IEEE Address + Secondary IEEE Address + Device Info + + + + generic + Primary BLE Address + String + -- + 1 + + Primary BLE Address + + + + generic + BLE Factory Address Location + String + + 500012E8:6 + 1 + + + + generic + Read + Button + DPActiveDebugSession.flash.performOperation("ReadPriBle") + + Primary BLE Address + + + + generic + Retain BLE MAC address during program download + Boolean + 0 + + 1 + + + Secondary BLE Address + + + + generic + Override BLE MAC address during program download + Boolean + 0 + + 1 + + + Secondary BLE Address + + + + generic + Secondary BLE Address + String + -- + + 1 + + + Secondary BLE Address + + + + generic + Secondary BLE Address Location + String + + 57FD0:6 + 1 + + + + generic + Read + Button + DPActiveDebugSession.flash.performOperation("ReadSecBle") + + Secondary BLE Address + + + + generic + Write + Button + DPActiveDebugSession.flash.performOperation("WriteSecBle") + + Secondary BLE Address + + + + generic + Primary IEEE Address + String + -- + 1 + + Primary IEEE Address + + + + generic + IEEE Factory Address Location + String + + 500012F0:8 + 1 + + + + generic + Read + Button + DPActiveDebugSession.flash.performOperation("ReadPriIeee") + + Primary IEEE Address + + + + generic + Retain IEEE MAC address during program download + Boolean + 0 + + 1 + + + Secondary IEEE Address + + + + generic + Override IEEE MAC address during program download + Boolean + 0 + + 1 + + + Secondary IEEE Address + + + + generic + Secondary IEEE Address + String + -- + + 1 + + + Secondary IEEE Address + + + + generic + Secondary IEEE Address Location + String + + 57FC8:8 + 1 + + + + generic + Read + Button + DPActiveDebugSession.flash.performOperation("ReadSecIeee") + + Secondary IEEE Address + + + + generic + Write + Button + DPActiveDebugSession.flash.performOperation("WriteSecIeee") + + Secondary IEEE Address + + + + generic + Erase Settings during Program Load + ChoiceList + + All Unprotected Sectors + Necessary Sectors Only + Necessary Sectors Only (Retain untouched content within sector) + Specific Sectors + Do not erase sectors (program load only) + + Necessary Sectors Only (Retain untouched content within sector) + + Program Load + + + + generic + Note: This option affects erase, program and verification. +The specified sectors are erased but nothing else. The sectors can be given as a range and/or single sectors. +Example: "0-5,8" will erase sectors 0, 1, 2, 3, 4, 5, 8. + + Text + + Specific Sectors + + + Program Load + + + + generic + Sector(s): + String + + + Specific Sectors + + + Program Load + + + + generic + Use CRC Verification during Program Load. + Boolean + 1 + + Program Load + + + + generic + Perform Blank Check + Button + DPActiveDebugSession.flash.performOperation("BlankCheck") + + Program Load + + + + generic + Keep CCFG data. The upper N bytes of device CCFG are kept. N is given by CCFG.CCFG_O_SIZE_AND_DIS_FLAGS[31:16] in CCFG. If value is invalid, this option is ignored. + Boolean + 0 + + CCFG + + + + generic + Disable Bootloader + Boolean + 0 + + CCFG + + + + generic + BOOTLOADER_ENABLE field in CCFG + String + + 57FDB:1 + 1 + + + + generic + Lock debug interface + Boolean + 0 + + CCFG + + + + generic + CPU_DAP_ENABLE field in CCFG + String + + 57FE6:1 + 1 + + + + generic + Write-protect sectors + Boolean + 0 + + CCFG + + + + generic + Sector(s): + String + + + 1 + + + CCFG + + + + generic + First Flash Protection Register + String + + 57FF0:4 + 1 + + + + generic + Second Flash Protection Register + String + + 57FF4:4 + 1 + + + + generic + Note: This option affects erase, program and verification. +The specified sectors are not programmed. The sectors can be given as a range and/or single sectors. +Example: "0-5,8" Skip erase/program/verify of sectors 0, 1, 2, 3, 4, 5, 8. + + Text + + Flash Page + + + + generic + Skip specified sectors during program load + Boolean + 0 + + 1 + + + Flash Page + + + + generic + Sector(s): + String + 0-5,8 + + 1 + + + Flash Page + + + + generic + Skip sectors filled with specified value + Boolean + 0 + + 1 + + + Flash Page + + + + generic + Exlude sectors in image filled with: + String + 0x + + 1 + + + Flash Page + + + + generic + Erase settings during standalone erase + ChoiceList + + Erase entire flash (You must reconnect to the target afterwards) + Erase specific flash sectors + + Erase entire flash (You must reconnect to the target afterwards) + + Manual Erase + + + + generic + Erase Entire Flash + Button + + 1 + Erase specific flash sectors + + DPActiveDebugSession.expression.evaluate("MassErase()") + + Manual Erase + + + + generic + Sector(s): + String + 0-5,8 + + Erase specific flash sectors + + + Manual Erase + + + + generic + Erase Specific Segments + Button + + Erase specific flash sectors + + DPActiveDebugSession.flash.performOperation("EraseSectors") + + Manual Erase + + + + generic + Align program sectors to 64-bit memory regions (for ECC calculation) + Boolean + 1 + + + + + generic + Alignment Size: 0x + String + 8 + + + + generic + Flash Size + String + -- + 1 + + Device Info + + + + generic + RAM Size + String + -- + 1 + + Device Info + + + + generic + Revision + String + -- + 1 + + Device Info + + + + generic + Revision Translation + String + 0:1.0:A:1:1.01:B:2:1.1:C:3:2.1:E:4:3.0:F + 1 + + + + generic + Flashloader File + String + FlashLoaderCC26x2.out + 1 + + + + + generic + CCFG + String + 0x50003000-0x50004FFF + 1 + + + + generic + FCFG1 + String + 0x50001000-0x500017FF + 1 + + + + \ No newline at end of file diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/propertyDB/CC13x2x7_CC26x2x7_FlashProperties.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/propertyDB/CC13x2x7_CC26x2x7_FlashProperties.xml new file mode 100644 index 0000000..83004bd --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/propertyDB/CC13x2x7_CC26x2x7_FlashProperties.xml @@ -0,0 +1,658 @@ +๏ปฟ + + + + Flash Settings + + ProgramLoadSettingsGroup + FlashPageGroup + CCFGGroup + EraseActionGroup + FlashAlignCombineToggle + FlashAlignmentSize + DeviceInfoGroup + DeviceMacAddressGroup + + + + + Program Load Settings + + FlashEraseSetting + ProgramLoadEraseSpecificInfo + ProgramLoadEraseSpecificText + CrcVerify + PerformBlankCheck + + + + Customer Configuration (CCFG) + + KeepCcfgSetting + DisableBootloader + DisableBootloaderLoc + DisableCpuDap + DisableCpuDapLoc + WriteProtectionToggle + WriteProtectionText + CCFG_PROT_31_0Loc + CCFG_PROT_63_32Loc + CCFG_PROT_95_64Loc + + + + Skip Sectors during Program Load + + FlashPageToggle + FlashPageText + FlashPages + FlashPagesFilledWith + FlashPagesFilledWithValue + + + + Erase Actions + + EraseActionChoice + ChipEraseButton + StandaloneEraseSpecificText + StandaloneEraseSpecificButton + + + + Device Information + + DeviceInfoFlashSize + DeviceInfoRAMSize + DeviceInfoRevision + DeviceInfoRevisionTranslation + DeviceFlashloaderFile + + + + Device MAC Addresses + + DeviceBlePrimaryGroup + DeviceBleSecondaryGroup + DeviceIeeePrimaryGroup + DeviceIeeeSecondaryGroup + + + + Primary BLE Address + + DeviceBlePrimary + DeviceBlePrimaryLoc + DeviceBlePrimaryReadButton + + + + Secondary BLE Address + + RetainBleSecondaryAddr + OverrideBleSecondaryAddr + DeviceBleSecondary + DeviceBleSecondaryLoc + DeviceBleSecondaryReadButton + DeviceBleSecondaryWriteButton + + + + Primary IEEE Address + + DeviceIeeePrimary + DeviceIeeePrimaryLoc + DeviceIeeePrimaryReadButton + + + + Secondary IEEE Address + + RetainIeeeSecondaryAddr + OverrideIeeeSecondaryAddr + DeviceIeeeSecondary + DeviceIeeeSecondaryLoc + DeviceIeeeSecondaryReadButton + DeviceIeeeSecondaryWriteButton + + + + + Program Load + CCFG + Manual Erase + Flash Page + Download + Primary BLE Address + Secondary BLE Address + Primary IEEE Address + Secondary IEEE Address + Device Info + + + + generic + Primary BLE Address + String + -- + 1 + + Primary BLE Address + + + + generic + BLE Factory Address Location + String + + 500012E8:6 + 1 + + + + generic + Read + Button + DPActiveDebugSession.flash.performOperation("ReadPriBle") + + Primary BLE Address + + + + generic + Retain BLE MAC address during program download + Boolean + 0 + + 1 + + + Secondary BLE Address + + + + generic + Override BLE MAC address during program download + Boolean + 0 + + 1 + + + Secondary BLE Address + + + + generic + Secondary BLE Address + String + -- + + 1 + + + Secondary BLE Address + + + + generic + Secondary BLE Address Location + String + + AFFD0:6 + 1 + + + + generic + Read + Button + DPActiveDebugSession.flash.performOperation("ReadSecBle") + + Secondary BLE Address + + + + generic + Write + Button + DPActiveDebugSession.flash.performOperation("WriteSecBle") + + Secondary BLE Address + + + + generic + Primary IEEE Address + String + -- + 1 + + Primary IEEE Address + + + + generic + IEEE Factory Address Location + String + + 500012F0:8 + 1 + + + + generic + Read + Button + DPActiveDebugSession.flash.performOperation("ReadPriIeee") + + Primary IEEE Address + + + + generic + Retain IEEE MAC address during program download + Boolean + 0 + + 1 + + + Secondary IEEE Address + + + + generic + Override IEEE MAC address during program download + Boolean + 0 + + 1 + + + Secondary IEEE Address + + + + generic + Secondary IEEE Address + String + -- + + 1 + + + Secondary IEEE Address + + + + generic + Secondary IEEE Address Location + String + + AFFC8:8 + 1 + + + + generic + Read + Button + DPActiveDebugSession.flash.performOperation("ReadSecIeee") + + Secondary IEEE Address + + + + generic + Write + Button + DPActiveDebugSession.flash.performOperation("WriteSecIeee") + + Secondary IEEE Address + + + + generic + Erase Settings during Program Load + ChoiceList + + All Unprotected Sectors + Necessary Sectors Only + Necessary Sectors Only (Retain untouched content within sector) + Specific Sectors + Do not erase sectors (program load only) + + Necessary Sectors Only (Retain untouched content within sector) + + Program Load + + + + generic + Note: This option affects erase, program and verification. +The specified sectors are erased but nothing else. The sectors can be given as a range and/or single sectors. +Example: "0-5,8" will erase sectors 0, 1, 2, 3, 4, 5, 8. + + Text + + Specific Sectors + + + Program Load + + + + generic + Sector(s): + String + + + Specific Sectors + + + Program Load + + + + generic + Use CRC Verification during Program Load. + Boolean + 1 + + Program Load + + + + generic + Perform Blank Check + Button + DPActiveDebugSession.flash.performOperation("BlankCheck") + + Program Load + + + + generic + Keep CCFG data. The upper N bytes of device CCFG are kept. N is given by CCFG.CCFG_O_SIZE_AND_DIS_FLAGS[31:16] in CCFG. If value is invalid, this option is ignored. + Boolean + 0 + + CCFG + + + + generic + Disable Bootloader + Boolean + 0 + + CCFG + + + + generic + BOOTLOADER_ENABLE field in CCFG + String + + AFFDB:1 + 1 + + + + generic + Lock debug interface + Boolean + 0 + + CCFG + + + + generic + CPU_DAP_ENABLE field in CCFG + String + + AFFE6:1 + 1 + + + + generic + Write-protect sectors + Boolean + 0 + + CCFG + + + + generic + Sector(s): + String + + + 1 + + + CCFG + + + + generic + First Flash Protection Register + String + + AFFF0:4 + 1 + + + + generic + Second Flash Protection Register + String + + AFFF4:4 + 1 + + + + generic + Third Flash Protection Register + String + + AFFF8:4 + 1 + + + + generic + Note: This option affects erase, program and verification. +The specified sectors are not programmed. The sectors can be given as a range and/or single sectors. +Example: "0-5,8" Skip erase/program/verify of sectors 0, 1, 2, 3, 4, 5, 8. + + Text + + Flash Page + + + + generic + Skip specified sectors during program load + Boolean + 0 + + 1 + + + Flash Page + + + + generic + Sector(s): + String + 0-5,8 + + 1 + + + Flash Page + + + + generic + Skip sectors filled with specified value + Boolean + 0 + + 1 + + + Flash Page + + + + generic + Exlude sectors in image filled with: + String + 0x + + 1 + + + Flash Page + + + + generic + Erase settings during standalone erase + ChoiceList + + Erase entire flash (You must reconnect to the target afterwards) + Erase specific flash sectors + + Erase entire flash (You must reconnect to the target afterwards) + + Manual Erase + + + + generic + Erase Entire Flash + Button + + 1 + Erase specific flash sectors + + DPActiveDebugSession.expression.evaluate("MassErase()") + + Manual Erase + + + + generic + Sector(s): + String + 0-5,8 + + Erase specific flash sectors + + + Manual Erase + + + + generic + Erase Specific Segments + Button + + Erase specific flash sectors + + DPActiveDebugSession.flash.performOperation("EraseSectors") + + Manual Erase + + + + generic + Align program sectors to 64-bit memory regions (for ECC calculation) + Boolean + 1 + + + + + generic + Alignment Size: 0x + String + 8 + + + + generic + Flash Size + String + -- + 1 + + Device Info + + + + generic + RAM Size + String + -- + 1 + + Device Info + + + + generic + Revision + String + -- + 1 + + Device Info + + + + generic + Revision Translation + String + 0:1.0:A:1:1.1:B + 1 + + + + generic + Flashloader File + String + FlashLoaderCC26x2x7.out + 1 + + + + + generic + CCFG + String + 0x50003000-0x50004FFF + 1 + + + + generic + FCFG1 + String + 0x50001000-0x500017FF + 1 + + + + \ No newline at end of file diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/propertyDB/CC13x4x10_CC26x4x10_FlashProperties.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/propertyDB/CC13x4x10_CC26x4x10_FlashProperties.xml new file mode 100644 index 0000000..7c1d95b --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/propertyDB/CC13x4x10_CC26x4x10_FlashProperties.xml @@ -0,0 +1,648 @@ +๏ปฟ + + + + Flash Settings + + ProgramLoadSettingsGroup + FlashPageGroup + CCFGGroup + EraseActionGroup + FlashAlignCombineToggle + FlashAlignmentSize + DeviceInfoGroup + DeviceMacAddressGroup + + + + + Program Load Settings + + FlashEraseSetting + ProgramLoadEraseSpecificInfo + ProgramLoadEraseSpecificText + CrcVerify + PerformBlankCheck + + + + Customer Configuration (CCFG) + + KeepCcfgSetting + DisableBootloader + DisableBootloaderLoc + DisableCpuDap + DisableCpuDapLoc + WriteProtectionToggle + WriteProtectionText + CCFG_PROT_31_0Loc + CCFG_PROT_63_32Loc + + + + Skip Sectors during Program Load + + FlashPageToggle + FlashPageText + FlashPages + FlashPagesFilledWith + FlashPagesFilledWithValue + + + + Erase Actions + + EraseActionChoice + ChipEraseButton + StandaloneEraseSpecificText + StandaloneEraseSpecificButton + + + + Device Information + + DeviceInfoFlashSize + DeviceInfoRAMSize + DeviceInfoRevision + DeviceInfoRevisionTranslation + DeviceFlashloaderFile + + + + Device MAC Addresses + + DeviceBlePrimaryGroup + DeviceBleSecondaryGroup + DeviceIeeePrimaryGroup + DeviceIeeeSecondaryGroup + + + + Primary BLE Address + + DeviceBlePrimary + DeviceBlePrimaryLoc + DeviceBlePrimaryReadButton + + + + Secondary BLE Address + + RetainBleSecondaryAddr + OverrideBleSecondaryAddr + DeviceBleSecondary + DeviceBleSecondaryLoc + DeviceBleSecondaryReadButton + DeviceBleSecondaryWriteButton + + + + Primary IEEE Address + + DeviceIeeePrimary + DeviceIeeePrimaryLoc + DeviceIeeePrimaryReadButton + + + + Secondary IEEE Address + + RetainIeeeSecondaryAddr + OverrideIeeeSecondaryAddr + DeviceIeeeSecondary + DeviceIeeeSecondaryLoc + DeviceIeeeSecondaryReadButton + DeviceIeeeSecondaryWriteButton + + + + + Program Load + CCFG + Manual Erase + Flash Page + Download + Primary BLE Address + Secondary BLE Address + Primary IEEE Address + Secondary IEEE Address + Device Info + + + + generic + Primary BLE Address + String + -- + 1 + + Primary BLE Address + + + + generic + BLE Factory Address Location + String + + 50000AE8:6 + 1 + + + + generic + Read + Button + DPActiveDebugSession.flash.performOperation("ReadPriBle") + + Primary BLE Address + + + + generic + Retain BLE MAC address during program download + Boolean + 0 + + 1 + + + Secondary BLE Address + + + + generic + Override BLE MAC address during program download + Boolean + 0 + + 1 + + + Secondary BLE Address + + + + generic + Secondary BLE Address + String + -- + + 1 + + + Secondary BLE Address + + + + generic + Secondary BLE Address Location + String + + 50000020:6 + 1 + + + + generic + Read + Button + DPActiveDebugSession.flash.performOperation("ReadSecBle") + + Secondary BLE Address + + + + generic + Write + Button + DPActiveDebugSession.flash.performOperation("WriteSecBle") + + Secondary BLE Address + + + + generic + Primary IEEE Address + String + -- + 1 + + Primary IEEE Address + + + + generic + IEEE Factory Address Location + String + + 50000AF0:8 + 1 + + + + generic + Read + Button + DPActiveDebugSession.flash.performOperation("ReadPriIeee") + + Primary IEEE Address + + + + generic + Retain IEEE MAC address during program download + Boolean + 0 + + 1 + + + Secondary IEEE Address + + + + generic + Override IEEE MAC address during program download + Boolean + 0 + + 1 + + + Secondary IEEE Address + + + + generic + Secondary IEEE Address + String + -- + + 1 + + + Secondary IEEE Address + + + + generic + Secondary IEEE Address Location + String + + 50000018:8 + 1 + + + + generic + Read + Button + DPActiveDebugSession.flash.performOperation("ReadSecIeee") + + Secondary IEEE Address + + + + generic + Write + Button + DPActiveDebugSession.flash.performOperation("WriteSecIeee") + + Secondary IEEE Address + + + + generic + Erase Settings during Program Load + ChoiceList + + All Unprotected Sectors + Necessary Sectors Only + Necessary Sectors Only (Retain untouched content within sector) + Specific Sectors + Do not erase sectors (program load only) + + Necessary Sectors Only (Retain untouched content within sector) + + Program Load + + + + generic + Note: This option affects erase, program and verification. +The specified sectors are erased but nothing else. The sectors can be given as a range and/or single sectors. +Example: "0-5,8" will erase sectors 0, 1, 2, 3, 4, 5, 8. + + Text + + Specific Sectors + + + Program Load + + + + generic + Sector(s): + String + + + Specific Sectors + + + Program Load + + + + generic + Use CRC Verification during Program Load. + Boolean + 1 + + Program Load + + + + generic + Perform Blank Check + Button + DPActiveDebugSession.flash.performOperation("BlankCheck") + + Program Load + + + + generic + Keep CCFG data. The upper N bytes of device CCFG are kept. N is given by CCFG.CCFG_O_SIZE_AND_DIS_FLAGS[31:16] in CCFG. If value is invalid, this option is ignored. + Boolean + 0 + + CCFG + + + + generic + Disable Bootloader + Boolean + 0 + + CCFG + + + + generic + BOOTLOADER_ENABLE field in CCFG + String + + 5000002B:1 + 1 + + + + generic + Lock debug interface + Boolean + 0 + + CCFG + + + + generic + CPU_DAP_ENABLE field in CCFG + String + + 5000003A:1 + 1 + + + + generic + Write-protect sectors + Boolean + 0 + + CCFG + + + + generic + Sector(s): + String + + + 1 + + + CCFG + + + + generic + First Flash Protection Register + String + + 50000044:1 + 1 + + + + generic + Second Flash Protection Register + String + + 50000048:1 + 1 + + + + generic + Note: This option affects erase, program and verification. +The specified sectors are not programmed. The sectors can be given as a range and/or single sectors. +Example: "0-5,8" Skip erase/program/verify of sectors 0, 1, 2, 3, 4, 5, 8. + + Text + + Flash Page + + + + generic + Skip specified sectors during program load + Boolean + 0 + + 1 + + + Flash Page + + + + generic + Sector(s): + String + 0-5,8 + + 1 + + + Flash Page + + + + generic + Skip sectors filled with specified value + Boolean + 0 + + 1 + + + Flash Page + + + + generic + Exlude sectors in image filled with: + String + 0x + + 1 + + + Flash Page + + + + generic + Erase settings during standalone erase + ChoiceList + + Erase entire flash (You must reconnect to the target afterwards) + Erase specific flash sectors + + Erase entire flash (You must reconnect to the target afterwards) + + Manual Erase + + + + generic + Erase Entire Flash + Button + + 1 + Erase specific flash sectors + + DPActiveDebugSession.expression.evaluate("MassErase()") + + Manual Erase + + + + generic + Sector(s): + String + 0-5,8 + + Erase specific flash sectors + + + Manual Erase + + + + generic + Erase Specific Segments + Button + + Erase specific flash sectors + + DPActiveDebugSession.flash.performOperation("EraseSectors") + + Manual Erase + + + + generic + Align program sectors to 64-bit memory regions (for ECC calculation) + Boolean + 1 + + + + + generic + Alignment Size: 0x + String + 8 + + + + generic + Flash Size + String + -- + 1 + + Device Info + + + + generic + RAM Size + String + -- + 1 + + Device Info + + + + generic + Revision + String + -- + 1 + + Device Info + + + + generic + Revision Translation + String + 0:1.0:A:1:2.0:B:2:3.0:C + 1 + + + + generic + Flashloader File + String + FlashLoaderCC26x4.out + 1 + + + + + generic + CCFG + String + 0x50000000-0x500007FF + 1 + + + + generic + FCFG1 + String + 0x50000800-0x50000FFF + 1 + + + + \ No newline at end of file diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/propertyDB/CC23xx_FlashProperties.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/propertyDB/CC23xx_FlashProperties.xml new file mode 100644 index 0000000..d519bdd --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/propertyDB/CC23xx_FlashProperties.xml @@ -0,0 +1,545 @@ +๏ปฟ + + + + Flash Settings + + ProgramLoadSettingsGroup + FlashPageGroup + CcfgGroup + EraseActionGroup + DebugAuthenticationGroup + FlashAlignCombineToggle + FlashAlignmentSize + DeviceInfoGroup + PermissionGroup + + + + + Program Load Settings + + FlashEraseSetting + ImageVerificationSetting + PerformBlankCheck + SectorSize + CcfgSize + CcfgUserRecordSize + CcfgBase + CcfgPermissions + + + + Skip Sectors during Program Load + + FlashPageToggle + FlashPageText + FlashPages + FlashPagesFilledWith + FlashPagesFilledWithValue + + + + Erase Actions + + ChipEraseButton + ChipEraseRetainButton + + + + Debug authentication + + DebugPassword + + + + Device Information + + DeviceInfoFlashSize + DeviceInfoRAMSize + DeviceInfoRevision + ReadDeviceInfo + DeviceInfoRevisionTranslation + DeviceInfoRAMSizeTranslation + DeviceInfoFlashSizeTranslation + + + + Customer Configuration (CCFG) + + CcfgOverwriteCrcsToggle + CcfgCrcFields + CcfgSkipProgrammingUserRecord + CcfgVerifyUserRecordCrcToggle + ccfg.bootCfg.crc32Info + ccfg.crc32Info + ccfg.userRecord.crc32Info + ccfg.debugCfg.crc32Info + CcfgOverwriteAuthorizationFieldsToggle + CcfgOverwriteAuthorizationFieldsTypeChoicelist + CcfgOverwriteAuthorizationFieldsPasswordId + CcfgOverwriteAuthorizationFieldsPasswordHash + + + + Permission check + + PermissionsSettingText + PermissionsSetting + + + + + Program Load + CCFG + Manual Erase + Debug Authentication + Flash Page + Download + Primary BLE Address + Secondary BLE Address + Primary IEEE Address + Secondary IEEE Address + Device Info + Permission check + + + + generic + Erase Settings during Program Load + ChoiceList + + Chip Erase + Chip Erase (retain sectors specified in CCFG) + Do not erase sectors (program load only) + + Chip Erase + + Program Load + + + + generic + Note: If the "Verify Only" option is selected, image data will be verified via device management commands (contents on the device are never read back). + + Text + + Program Load + + + + generic + Verify Only + Boolean + 0 + + Program Load + + + + generic + Perform Blank Check + Button + DPActiveDebugSession.flash.performOperation("BlankCheck") + + Program Load + + + + generic + Note: This option affects erase, program and verification. +The specified sectors are not programmed. The sectors can be given as a range and/or single sectors. +Example: "0-5,8" Skip erase/program/verify of sectors 0, 1, 2, 3, 4, 5, 8. + + Text + + Flash Page + + + + generic + Skip specified sectors during program load + Boolean + 0 + + Flash Page + + + + generic + Sector(s): + String + 0-5,8 + + 1 + + + Flash Page + + + + generic + Skip sectors filled with specified value + Boolean + 0 + + Flash Page + + + + generic + Exlude sectors in image filled with: + String + 0x + + 1 + + + Flash Page + + + + generic + Chip Erase + Button + DPActiveDebugSession.flash.erase() + + Manual Erase + + + + generic + Chip Erase (retain sectors specified in CCFG) + Button + DPActiveDebugSession.flash.performOperation("ChipEraseRetain") + + Manual Erase + + + + generic + Debug Password + String + Open Sesame! + + Debug Authentication + + + + generic + Align program with sectors + Boolean + 1 + + + + + generic + Alignment Size: 0x + String + 800 + + + + generic + Flash Size + String + -- + 1 + + Device Info + + + + generic + RAM Size + String + -- + 1 + + Device Info + + + + generic + Revision + String + -- + 1 + + Device Info + + + + generic + Read Device Info + Button + DPActiveDebugSession.flash.performOperation("ReadDeviceInfo") + + Device Info + + + + generic + Revision Translation + String + + 0x0BB84:1.0:A:0x1BB84:2.0:B:0x0BB85:1.0:A:0x0BBAE:1.0:A + 1 + + + + generic + RAM Size Translation + String + + 0xBB84:*:*:0x9000:0xBB85:*:*:0x7000:0xBBAE:*:*:0x10000 + 1 + + + + generic + Flash Size Translation + String + + 0xBB84:*:*:0x80000:0xBB84:*:0x9E:0x40000:0xBB85:*:*:0x40000:0xBBAE:*:*:0x80000 + 1 + + + + generic + Overwrite CRC fields in CCFG. The CRC values will be based on the provided image. + Boolean + 1 + Specify which CRC fields should be overwritten below. This setting is automatically enabled if any of the below CCFG overwrite settings are enabled. + + CCFG + + + + generic + Comma separated list of CRC fields in CCFG that will be overwritten. +Valid field names are: ccfg.bootCfg.crc32,ccfg.crc32,ccfg.userRecord.crc32,ccfg.debugCfg.crc32 + String + ccfg.bootCfg.crc32,ccfg.crc32,ccfg.userRecord.crc32,ccfg.debugCfg.crc32 + This setting will be used whenever CRC fields in CCFG will be overwritten. Please note that if any settings to overwrite a field in CCFG are enabled, then the CRC fields that are affected by these changes must be included in this list. + + CCFG + + + + generic + Skip programming of CCFG user record (This is only applicable when programming main flash together with CCFG). + + Boolean + 1 + + CCFG + + + + generic + Verify the CCFG user record CRC32 field during flash programming. All other CRC fields are always verified. + + Boolean + 0 + + 0 + + + CCFG + + + + generic + ccfg.bootCfg.crc32 + String + + 0:C + 1 + + + + generic + ccfg.crc32 + String + + 10:73C + 1 + + + + generic + ccfg.userRecord.crc32 + String + + 750:7C + 1 + + + + generic + ccfg.debugCfg.crc32 + String + + 7D0:2C + 1 + + + + generic + Overwrite Debug Authorization Configuration + Boolean + 0 + + CCFG + + + + generic + Debug Authorization Configuration + StringList + + Debug always allowed + Require debug authentication + Debug not allowed + + Debug always allowed + + 1 + + + CCFG + + + + generic + Password ID + String + 0101020305080D15 + + + 0 + Debug always allowed + Debug not allowed + + Hex-formatted password ID. 64-bit customer-defined password ID readable through SACI command (may be used by to calculate or look up debug password) + + CCFG + + + + generic + Password Hash + String + 6DD7E436EBF431DF95AE15EE03BA8EE4C4C63FD8453F675E74D7C2012C9058E5 + + + 0 + Debug always allowed + Debug not allowed + + + CCFG + + + + generic + SectorSize + String + + 800 + 1 + + + + generic + CcfgSize + String + + 800 + 1 + + + + generic + CcfgUserRecordSize + String + + 80 + 1 + + + + generic + CcfgBase + String + + 4E020000 + 1 + + + + generic + Note: To avoid the device being "Locked" a check of current "Permission" configuration (CCFG/SCFG) will be done when programming the device. + The check will be enabled by default. Disabling the check should be done with caution to avoid not being able to do further programming and debugging of the device. + + Text + + Permission check + + + + generic + Check the permission configuration + Boolean + 1 + + Permission check + + + + generic + CcfgPermissions + String + + allowFakeStby:0x18H:0xA,allowChipErase:0x19H:0xA + 1 + + + + + generic + CCFG + String + 0x4E020000-0x4E0207FF + 1 + + + + generic + FCFG1 + String + 0x4E000000-0x4E0003FF + 1 + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/propertyDB/CC26_FlashProperties.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/propertyDB/CC26_FlashProperties.xml new file mode 100644 index 0000000..26b47eb --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/propertyDB/CC26_FlashProperties.xml @@ -0,0 +1,652 @@ +๏ปฟ + + + + Flash Settings + + ProgramLoadSettingsGroup + FlashPageGroup + CCFGGroup + EraseActionGroup + FlashAlignCombineToggle + FlashAlignmentSize + DeviceInfoGroup + DeviceMacAddressGroup + + + + + Program Load Settings + + FlashEraseSetting + ProgramLoadEraseSpecificInfo + ProgramLoadEraseSpecificText + CrcVerify + PerformBlankCheck + + + + Customer Configuration (CCFG) + + KeepCcfgSetting + DisableBootloader + DisableBootloaderLoc + DisableCpuDap + DisableCpuDapLoc + WriteProtectionToggle + WriteProtectionText + CCFG_PROT_31_0Loc + CCFG_PROT_63_32Loc + + + + Skip Sectors during Program Load + + FlashPageToggle + FlashPageText + FlashPages + FlashPagesFilledWith + FlashPagesFilledWithValue + + + + Erase Actions + + EraseActionChoice + ChipEraseButton + StandaloneEraseSpecificText + StandaloneEraseSpecificButton + + + + Device Information + + DeviceInfoFlashSize + DeviceInfoRAMSize + DeviceInfoRevision + DeviceInfoRevisionTranslation + DeviceFlashloaderFile + + + + Device MAC Addresses + + DeviceBlePrimaryGroup + DeviceBleSecondaryGroup + DeviceIeeePrimaryGroup + DeviceIeeeSecondaryGroup + + + + Primary BLE Address + + DeviceBlePrimary + DeviceBlePrimaryLoc + DeviceBlePrimaryReadButton + + + + Secondary BLE Address + + RetainBleSecondaryAddr + OverrideBleSecondaryAddr + DeviceBleSecondary + DeviceBleSecondaryLoc + DeviceBleSecondaryReadButton + DeviceBleSecondaryWriteButton + + + + Primary IEEE Address + + DeviceIeeePrimary + DeviceIeeePrimaryLoc + DeviceIeeePrimaryReadButton + + + + Secondary IEEE Address + + RetainIeeeSecondaryAddr + OverrideIeeeSecondaryAddr + DeviceIeeeSecondary + DeviceIeeeSecondaryLoc + DeviceIeeeSecondaryReadButton + DeviceIeeeSecondaryWriteButton + + + + + Program Load + CCFG + Manual Erase + Flash Page + Download + Primary BLE Address + Secondary BLE Address + Primary IEEE Address + Secondary IEEE Address + Device Info + + + + generic + Primary BLE Address + String + -- + 1 + + Primary BLE Address + + + + generic + BLE Factory Address Location + String + + 500012E8:6 + 1 + + + + generic + Read + Button + DPActiveDebugSession.flash.performOperation("ReadPriBle") + + Primary BLE Address + + + + generic + Retain BLE MAC address during program download + Boolean + 0 + + 1 + + + Secondary BLE Address + + + + generic + Override BLE MAC address during program download + Boolean + 0 + + 1 + + + Secondary BLE Address + + + + generic + Secondary BLE Address + String + -- + + 1 + + + Secondary BLE Address + + + + generic + Secondary BLE Address Location + String + + 1FFD0:6 + 1 + + + + generic + Read + Button + DPActiveDebugSession.flash.performOperation("ReadSecBle") + + Secondary BLE Address + + + + generic + Write + Button + DPActiveDebugSession.flash.performOperation("WriteSecBle") + + Secondary BLE Address + + + + generic + Primary IEEE Address + String + -- + 1 + + Primary IEEE Address + + + + generic + IEEE Factory Address Location + String + + 500012F0:8 + 1 + + + + generic + Read + Button + DPActiveDebugSession.flash.performOperation("ReadPriIeee") + + Primary IEEE Address + + + + generic + Retain IEEE MAC address during program download + Boolean + 0 + + 1 + + + Secondary IEEE Address + + + + generic + Override IEEE MAC address during program download + Boolean + 0 + + 1 + + + Secondary IEEE Address + + + + generic + Secondary IEEE Address + String + -- + + 1 + + + Secondary IEEE Address + + + + generic + Secondary IEEE Address Location + String + + 1FFC8:8 + 1 + + + + generic + Read + Button + DPActiveDebugSession.flash.performOperation("ReadSecIeee") + + Secondary IEEE Address + + + + generic + Write + Button + DPActiveDebugSession.flash.performOperation("WriteSecIeee") + + Secondary IEEE Address + + + + generic + Erase Settings during Program Load + ChoiceList + + All Unprotected Sectors + Necessary Sectors Only + Necessary Sectors Only (Retain untouched content within sector) + Specific Sectors + Do not erase sectors (program load only) + + Necessary Sectors Only (Retain untouched content within sector) + + Program Load + + + + generic + Note: This option affects erase, program and verification. +The specified sectors are erased but nothing else. The sectors can be given as a range and/or single sectors. +Example: "0-5,8" will erase sectors 0, 1, 2, 3, 4, 5, 8. + + Text + + Specific Sectors + + + Program Load + + + + generic + Sector(s): + String + + + Specific Sectors + + + Program Load + + + + generic + Use CRC Verification during Program Load. + Boolean + 1 + + Program Load + + + + generic + Perform Blank Check + Button + DPActiveDebugSession.flash.performOperation("BlankCheck") + + Program Load + + + + generic + Keep CCFG data. The upper N bytes of device CCFG are kept. N is given by CCFG.CCFG_O_SIZE_AND_DIS_FLAGS[31:16] in CCFG. If value is invalid, this option is ignored. + Boolean + 0 + + CCFG + + + + generic + Disable Bootloader + Boolean + 0 + + CCFG + + + + generic + BOOTLOADER_ENABLE field in CCFG + String + + 1FFDB:1 + 1 + + + + generic + Lock debug interface + Boolean + 0 + + CCFG + + + + generic + CPU_DAP_ENABLE field in CCFG + String + + 1FFE6:1 + 1 + + + + generic + Write-protect sectors + Boolean + 0 + + CCFG + + + + generic + Sector(s): + String + + + 1 + + + CCFG + + + + generic + First Flash Protection Register + String + + 1FFF0:4 + 1 + + + + generic + Second Flash Protection Register + String + + 1FFF4:4 + 1 + + + + generic + Note: This option affects erase, program and verification. +The specified sectors are not programmed. The sectors can be given as a range and/or single sectors. +Example: "0-5,8" Skip erase/program/verify of sectors 0, 1, 2, 3, 4, 5, 8. + + Text + + Flash Page + + + + generic + Skip specified sectors during program load + Boolean + 0 + + 1 + + + Flash Page + + + + generic + Sector(s): + String + 0-5,8 + + 1 + + + Flash Page + + + + generic + Skip sectors filled with specified value + Boolean + 0 + + 1 + + + Flash Page + + + + generic + Exlude sectors in image filled with: + String + 0x + + 1 + + + Flash Page + + + + generic + Erase settings during standalone erase + ChoiceList + + Erase entire flash (You must reconnect to the target afterwards) + Erase specific flash sectors + + Erase entire flash (You must reconnect to the target afterwards) + + Manual Erase + + + + generic + Erase Entire Flash + Button + + 1 + Erase specific flash sectors + + DPActiveDebugSession.expression.evaluate("MassErase()") + + Manual Erase + + + + generic + Sector(s): + String + 0-5,8 + + Erase specific flash sectors + + + Manual Erase + + + + generic + Erase Specific Segments + Button + + Erase specific flash sectors + + DPActiveDebugSession.flash.performOperation("EraseSectors") + + Manual Erase + + + + generic + Align program sectors to 64-bit memory regions (for ECC calculation) + Boolean + 1 + + + + + generic + Alignment Size: 0x + String + 8 + + + + generic + Flash Size + String + -- + 1 + + Device Info + + + + generic + RAM Size + String + -- + 1 + + Device Info + + + + generic + Revision + String + -- + 1 + + Device Info + + + + generic + Revision Translation + String + + 1:1.0:-:15:1.0:-:3:2.0:A:7:2.1:B:8:2.2:C:9:2.3:D:11:2.5:F:10:2.4:E + 1 + + + + generic + Flashloader File + String + FlashLoaderCC26x0.out + 1 + + + + + generic + CCFG + String + 0x50003000-0x50003FFF + 1 + + + + generic + FCFG1 + String + 0x50001000-0x500013FF + 1 + + + + \ No newline at end of file diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/propertyDB/CC26x2_FlashProperties.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/propertyDB/CC26x2_FlashProperties.xml new file mode 100644 index 0000000..d9826be --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/propertyDB/CC26x2_FlashProperties.xml @@ -0,0 +1,648 @@ +๏ปฟ + + + + Flash Settings + + ProgramLoadSettingsGroup + FlashPageGroup + CCFGGroup + EraseActionGroup + FlashAlignCombineToggle + FlashAlignmentSize + DeviceInfoGroup + DeviceMacAddressGroup + + + + + Program Load Settings + + FlashEraseSetting + ProgramLoadEraseSpecificInfo + ProgramLoadEraseSpecificText + CrcVerify + PerformBlankCheck + + + + Customer Configuration (CCFG) + + KeepCcfgSetting + DisableBootloader + DisableBootloaderLoc + DisableCpuDap + DisableCpuDapLoc + WriteProtectionToggle + WriteProtectionText + CCFG_PROT_31_0Loc + CCFG_PROT_63_32Loc + + + + Skip Sectors during Program Load + + FlashPageToggle + FlashPageText + FlashPages + FlashPagesFilledWith + FlashPagesFilledWithValue + + + + Erase Actions + + EraseActionChoice + ChipEraseButton + StandaloneEraseSpecificText + StandaloneEraseSpecificButton + + + + Device Information + + DeviceInfoFlashSize + DeviceInfoRAMSize + DeviceInfoRevision + DeviceInfoRevisionTranslation + DeviceFlashloaderFile + + + + Device MAC Addresses + + DeviceBlePrimaryGroup + DeviceBleSecondaryGroup + DeviceIeeePrimaryGroup + DeviceIeeeSecondaryGroup + + + + Primary BLE Address + + DeviceBlePrimary + DeviceBlePrimaryLoc + DeviceBlePrimaryReadButton + + + + Secondary BLE Address + + RetainBleSecondaryAddr + OverrideBleSecondaryAddr + DeviceBleSecondary + DeviceBleSecondaryLoc + DeviceBleSecondaryReadButton + DeviceBleSecondaryWriteButton + + + + Primary IEEE Address + + DeviceIeeePrimary + DeviceIeeePrimaryLoc + DeviceIeeePrimaryReadButton + + + + Secondary IEEE Address + + RetainIeeeSecondaryAddr + OverrideIeeeSecondaryAddr + DeviceIeeeSecondary + DeviceIeeeSecondaryLoc + DeviceIeeeSecondaryReadButton + DeviceIeeeSecondaryWriteButton + + + + + Program Load + CCFG + Manual Erase + Flash Page + Download + Primary BLE Address + Secondary BLE Address + Primary IEEE Address + Secondary IEEE Address + Device Info + + + + generic + Primary BLE Address + String + -- + 1 + + Primary BLE Address + + + + generic + BLE Factory Address Location + String + + 500012E8:6 + 1 + + + + generic + Read + Button + DPActiveDebugSession.flash.performOperation("ReadPriBle") + + Primary BLE Address + + + + generic + Retain BLE MAC address during program download + Boolean + 0 + + 1 + + + Secondary BLE Address + + + + generic + Override BLE MAC address during program download + Boolean + 0 + + 1 + + + Secondary BLE Address + + + + generic + Secondary BLE Address + String + -- + + 1 + + + Secondary BLE Address + + + + generic + Secondary BLE Address Location + String + + 57FD0:6 + 1 + + + + generic + Read + Button + DPActiveDebugSession.flash.performOperation("ReadSecBle") + + Secondary BLE Address + + + + generic + Write + Button + DPActiveDebugSession.flash.performOperation("WriteSecBle") + + Secondary BLE Address + + + + generic + Primary IEEE Address + String + -- + 1 + + Primary IEEE Address + + + + generic + IEEE Factory Address Location + String + + 500012F0:8 + 1 + + + + generic + Read + Button + DPActiveDebugSession.flash.performOperation("ReadPriIeee") + + Primary IEEE Address + + + + generic + Retain IEEE MAC address during program download + Boolean + 0 + + 1 + + + Secondary IEEE Address + + + + generic + Override IEEE MAC address during program download + Boolean + 0 + + 1 + + + Secondary IEEE Address + + + + generic + Secondary IEEE Address + String + -- + + 1 + + + Secondary IEEE Address + + + + generic + Secondary IEEE Address Location + String + + 57FC8:8 + 1 + + + + generic + Read + Button + DPActiveDebugSession.flash.performOperation("ReadSecIeee") + + Secondary IEEE Address + + + + generic + Write + Button + DPActiveDebugSession.flash.performOperation("WriteSecIeee") + + Secondary IEEE Address + + + + generic + Erase Settings during Program Load + ChoiceList + + All Unprotected Sectors + Necessary Sectors Only + Necessary Sectors Only (Retain untouched content within sector) + Specific Sectors + Do not erase sectors (program load only) + + Necessary Sectors Only (Retain untouched content within sector) + + Program Load + + + + generic + Note: This option affects erase, program and verification. +The specified sectors are erased but nothing else. The sectors can be given as a range and/or single sectors. +Example: "0-5,8" will erase sectors 0, 1, 2, 3, 4, 5, 8. + + Text + + Specific Sectors + + + Program Load + + + + generic + Sector(s): + String + + + Specific Sectors + + + Program Load + + + + generic + Use CRC Verification during Program Load. + Boolean + 1 + + Program Load + + + + generic + Perform Blank Check + Button + DPActiveDebugSession.flash.performOperation("BlankCheck") + + Program Load + + + + generic + Keep CCFG data. The upper N bytes of device CCFG are kept. N is given by CCFG.CCFG_O_SIZE_AND_DIS_FLAGS[31:16] in CCFG. If value is invalid, this option is ignored. + Boolean + 0 + + CCFG + + + + generic + Disable Bootloader + Boolean + 0 + + CCFG + + + + generic + BOOTLOADER_ENABLE field in CCFG + String + + 57FDB:1 + 1 + + + + generic + Lock debug interface + Boolean + 0 + + CCFG + + + + generic + CPU_DAP_ENABLE field in CCFG + String + + 57FE6:1 + 1 + + + + generic + Write-protect sectors + Boolean + 0 + + CCFG + + + + generic + Sector(s): + String + + + 1 + + + CCFG + + + + generic + First Flash Protection Register + String + + 57FF0:4 + 1 + + + + generic + Second Flash Protection Register + String + + 57FF4:4 + 1 + + + + generic + Note: This option affects erase, program and verification. +The specified sectors are not programmed. The sectors can be given as a range and/or single sectors. +Example: "0-5,8" Skip erase/program/verify of sectors 0, 1, 2, 3, 4, 5, 8. + + Text + + Flash Page + + + + generic + Skip specified sectors during program load + Boolean + 0 + + 1 + + + Flash Page + + + + generic + Sector(s): + String + 0-5,8 + + 1 + + + Flash Page + + + + generic + Skip sectors filled with specified value + Boolean + 0 + + 1 + + + Flash Page + + + + generic + Exlude sectors in image filled with: + String + 0x + + 1 + + + Flash Page + + + + generic + Erase settings during standalone erase + ChoiceList + + Erase entire flash (You must reconnect to the target afterwards) + Erase specific flash sectors + + Erase entire flash (You must reconnect to the target afterwards) + + Manual Erase + + + + generic + Erase Entire Flash + Button + + 1 + Erase specific flash sectors + + DPActiveDebugSession.expression.evaluate("MassErase()") + + Manual Erase + + + + generic + Sector(s): + String + 0-5,8 + + Erase specific flash sectors + + + Manual Erase + + + + generic + Erase Specific Segments + Button + + Erase specific flash sectors + + DPActiveDebugSession.flash.performOperation("EraseSectors") + + Manual Erase + + + + generic + Align program sectors to 64-bit memory regions (for ECC calculation) + Boolean + 1 + + + + + generic + Alignment Size: 0x + String + 8 + + + + generic + Flash Size + String + -- + 1 + + Device Info + + + + generic + RAM Size + String + -- + 1 + + Device Info + + + + generic + Revision + String + -- + 1 + + Device Info + + + + generic + Revision Translation + String + 0:1.0:A:1:1.01:B:2:1.1:C:3:2.1:E:4:3.0:F + 1 + + + + generic + Flashloader File + String + FlashLoaderCC26x2.out + 1 + + + + + generic + CCFG + String + 0x50003000-0x50004FFF + 1 + + + + generic + FCFG1 + String + 0x50001000-0x500017FF + 1 + + + + \ No newline at end of file diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/propertyDB/CC27xx_FlashProperties.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/propertyDB/CC27xx_FlashProperties.xml new file mode 100644 index 0000000..d3d4aa8 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/propertyDB/CC27xx_FlashProperties.xml @@ -0,0 +1,764 @@ +๏ปฟ + + + + Flash Settings + + ProgramLoadSettingsGroup + FlashPageGroup + CcfgGroup + ScfgGroup + DebugAuthenticationGroup + FlashAlignCombineToggle + FlashAlignmentSize + DeviceInfoGroup + HsmFeatureGroup + PermissionGroup + + + + + Program Load Settings + + FlashEraseGroup + ImageVerificationSetting + PerformBlankCheck + SectorSize + CcfgSize + CcfgUserRecordSize + CcfgBase + CcfgPermissions + ScfgSize + ScfgBase + ScfgPermissions + OtpSize + OtpBase + + + + Skip Sectors during Program Load + + FlashPageToggle + FlashPageText + FlashPages + FlashPagesFilledWith + FlashPagesFilledWithValue + + + + Debug authentication + + DebugPassword + + + + Device Information + + DeviceInfoFlashSize + DeviceInfoRAMSize + DeviceInfoRevision + ReadDeviceInfo + DeviceInfoRevisionTranslation + DeviceInfoRAMSizeTranslation + DeviceInfoFlashSizeTranslation + + + + Customer Configuration (CCFG) + + CcfgOverwriteCrcsToggle + CcfgCrcFields + CcfgSkipProgrammingUserRecord + CcfgVerifyUserRecordCrcToggle + ccfg.bootCfg.crc32Info + ccfg.crc32Info + ccfg.userRecord.crc32Info + ccfg.debugCfg.crc32Info + CcfgOverwriteAuthorizationFieldsToggle + CcfgOverwriteAuthorizationFieldsTypeChoicelist + CcfgOverwriteAuthorizationFieldsPasswordId + CcfgOverwriteAuthorizationFieldsPasswordHash + + + + Security Configuration (SCFG) + + ScfgOverwriteCrcsToggle + ScfgCrcFields + scfg.crc32Info + scfg2.crc32Info + + + + HSM Features + + HsmPageText + HsmInfoGroup + HsmImageGroup + HsmUpdStateGroup + + + + HSM Info + + ReadHsmSysInfo + HsmSysInfo + + + + HSM Image + + HsmProvisionText + HsmImagePath + ProgramHsmImage + + + + HSM Update status + + ReadHsmUpdateStatus + HsmUpdateStatus + + + + Flash Erase options + + NoFlashErase + RetainMainSectors + RetainCcfgScfg + + + + Permission check + + PermissionsSettingText + PermissionsSetting + + + + + Program Load + Flash Erase + CCFG + Manual Erase + Debug Authentication + Flash Page + Download + Primary BLE Address + Secondary BLE Address + Primary IEEE Address + Secondary IEEE Address + Device Info + HSM Info + HSM Image + HSM Update status + Permission check + + + + generic + Do not erase before program load + Boolean + 0 + + Flash Erase + + + + generic + Retain MAIN sectors specified in existing CCFG + Boolean + 1 + + 0 + + + Flash Erase + + + + generic + Retain CCFG and SCFG sectors + Boolean + 0 + + 0 + + + Flash Erase + + + + generic + Note: If the "Verify Only" option is selected, image data will be verified via device management commands (contents on the device are never read back). + + Text + + Program Load + + + + generic + Verify Only + Boolean + 0 + + Program Load + + + + generic + Perform Blank Check + Button + DPActiveDebugSession.flash.performOperation("BlankCheck") + + Program Load + + + + generic + Note: This option affects erase, program and verification. +The specified sectors are not programmed. The sectors can be given as a range and/or single sectors. +Example: "0-5,8" Skip erase/program/verify of sectors 0, 1, 2, 3, 4, 5, 8. + + Text + + Flash Page + + + + generic + Skip specified sectors during program load + Boolean + 0 + + Flash Page + + + + generic + Sector(s): + String + 0-5,8 + + 1 + + + Flash Page + + + + generic + Skip sectors filled with specified value + Boolean + 0 + + Flash Page + + + + generic + Exlude sectors in image filled with: + String + 0x + + 1 + + + Flash Page + + + + generic + Debug Password + String + Open Sesame! + + Debug Authentication + + + + generic + Align program with sectors + Boolean + 1 + + + + + generic + Alignment Size: 0x + String + 800 + + + + generic + Flash Size + String + -- + 1 + + Device Info + + + + generic + RAM Size + String + -- + 1 + + Device Info + + + + generic + Revision + String + -- + 1 + + Device Info + + + + generic + Read Device Info + Button + DPActiveDebugSession.flash.performOperation("ReadDeviceInfo") + + Device Info + + + + generic + The HSM features can only be used with silicon revision E or higher. + + Text + + HSM Features + + + + generic + HSM Information + String + -- + 1 + + HSM Info + + + + generic + Read HSM System Information + Button + DPActiveDebugSession.flash.performOperation("ReadHsmSysInfo") + + HSM info + + + + generic + The HSM Image should be given as an encrypted binary file(.bin). The Image will be decrypted and verified by TI owned keys. Optionally, the customer can sign the encrypted binary which would then be verified using the public key hash in SCFG (Secure Configuration). + + Text + + HSM Image + + + + generic + Enter path to the image + String + -- + + HSM Image + + + + generic + Program HSM Image + Button + DPActiveDebugSession.flash.performOperation("ProgramHsmImage") + + HSM Image + + + + generic + HSM FW update status + String + -- + 1 + + HSM Update status + + + + generic + Read HSM FW Update Status + Button + DPActiveDebugSession.flash.performOperation("ReadHsmUpdateStatus") + + HSM Update status + + + + generic + Revision Translation + String + + 0x0BB98:1.0:NA:0x1BB98:1.01:A:0x2BB98:1.1:B:0x3BB98:1.11:C:0x4BB98:1.2:D:0x5BB98:2.0:E + 1 + + + + generic + RAM Size Translation + String + + 0xBB98:*:*:0x20000:0xBB98:0x6301:*:0x28800:0xBB98:0xAF23:0xE8:0x28800:0xBB98:0xAF23:0xDE:0x28800 + 1 + + + + generic + Flash Size Translation + String + + 0xBB98:*:*:0x100000:0xBB98:0x3548:*:0xC0000:0xBB98:0xAF23:0x87:0xC0000:0xBB98:0xAF23:0xAB:0xC0000 + 1 + + + + generic + Overwrite CRC fields in CCFG. The CRC values will be based on the provided image. + Boolean + 1 + Specify which CRC fields should be overwritten below. This setting is automatically enabled if any of the below CCFG overwrite settings are enabled. + + CCFG + + + + generic + Comma separated list of CRC fields in CCFG that will be overwritten. +Valid field names are: ccfg.bootCfg.crc32,ccfg.crc32,ccfg.userRecord.crc32,ccfg.debugCfg.crc32 + String + ccfg.bootCfg.crc32,ccfg.crc32,ccfg.userRecord.crc32,ccfg.debugCfg.crc32 + This setting will be used whenever CRC fields in CCFG will be overwritten. Please note that if any settings to overwrite a field in CCFG are enabled, then the CRC fields that are affected by these changes must be included in this list. + + CCFG + + + + generic + Skip programming of CCFG user record (This is only applicable when programming main flash together with CCFG). + + Boolean + 1 + + CCFG + + + + generic + Verify the CCFG user record CRC32 field during flash programming. All other CRC fields are always verified. + + Boolean + 0 + + 0 + + + CCFG + + + + generic + ccfg.bootCfg.crc32 + String + + 0:C + 1 + + + + generic + ccfg.crc32 + String + + 10:73C + 1 + + + + generic + ccfg.userRecord.crc32 + String + + 750:7C + 1 + + + + generic + ccfg.debugCfg.crc32 + String + + 7D0:2C + 1 + + + + generic + Overwrite Debug Authorization Configuration + Boolean + 0 + + CCFG + + + + generic + Debug Authorization Configuration + StringList + + Debug always allowed + Require debug authentication + Debug not allowed + + Debug always allowed + + 1 + + + CCFG + + + + generic + Password ID + String + 0101020305080D15 + + + 0 + Debug always allowed + Debug not allowed + + Hex-formatted password ID. 64-bit customer-defined password ID readable through SACI command (may be used by to calculate or look up debug password) + + CCFG + + + + generic + Password Hash + String + 6DD7E436EBF431DF95AE15EE03BA8EE4C4C63FD8453F675E74D7C2012C9058E5 + + + 0 + Debug always allowed + Debug not allowed + + + CCFG + + + + generic + SectorSize + String + + 800 + 1 + + + + generic + CcfgSize + String + + 800 + 1 + + + + generic + CcfgUserRecordSize + String + + 80 + 1 + + + + generic + CcfgBase + String + + 4E020000 + 1 + + + + generic + Note: To avoid the device being "Locked" a check of current "Permission" configuration (CCFG/SCFG) will be done when programming the device. + The check will be enabled by default. Disabling the check should be done with caution to avoid not being able to do further programming and debugging of the device. + + Text + + Permission check + + + + generic + Check the permission configuration + Boolean + 1 + + Permission check + + + + generic + CcfgPermissions + String + + allowFakeStby:0x18H:0xA,allowChipErase:0x19H:0xA + 1 + + + + generic + Overwrite CRC field in SCFG. The CRC values will be based on the provided image. + Boolean + 1 + Specify if the CRC field should be overwritten. This setting is automatically enabled. + + SCFG + + + + generic + Comma separated list of CRC fields in SCFG that will be overwritten. +Valid field names are: scfg.crc32 + String + scfg.crc32 + This setting will be used whenever CRC fields in SCFG will be overwritten. Please note that if any settings to overwrite a field in SCFG are enabled, then the CRC fields that are affected by these changes must be included in this list. + + SCFG + + + + generic + scfg.crc32 + String + + 0:3C + 1 + + + + generic + scfg2.crc32 + String + + 0:E4 + 1 + + + + generic + ScfgSize + String + + 400 + 1 + + + + generic + ScfgBase + String + + 0x4E040000 + 1 + + + + generic + ScfgPermissions + String + + allowFakeStby:0xD0H:0xA,allowChipErase:0xD1H:0xA + 1 + + + + generic + OtpSize + String + + 800 + 1 + + + + generic + OtpBase + String + + 0x4E020800 + 1 + + + + + generic + CCFG + String + 0x4E020000-0x4E0207FF + 1 + + + + generic + SCFG + String + 0x4E040000-0x4E0403FF + 1 + + + + generic + FCFG1 + String + 0x4E000000-0x4E0003FF + 1 + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/propertyDB/FlashPropertiesTranslator.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/propertyDB/FlashPropertiesTranslator.xml new file mode 100644 index 0000000..7325b56 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/propertyDB/FlashPropertiesTranslator.xml @@ -0,0 +1,337 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/propertyDB/MSPM0_FlashProperties.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/propertyDB/MSPM0_FlashProperties.xml new file mode 100644 index 0000000..0e69ab0 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/propertyDB/MSPM0_FlashProperties.xml @@ -0,0 +1,208 @@ + + + + + + MSPM0 Flash Settings + + FlashResetGroup + FlashEraseGroup + ProgramGroup + DssmEraseGroup + DssmResetGroup + SRAMGroup + AdvancedGroup + + + + + + Reset Configuration + + FlashResetBeforeLoadSetting + FlashResetAfterLoadSetting + FlashResetType + + + + + DSSM Mass Erase + + ManualMassErase + AutomaticMassErase + + + + + DSSM Factory Reset + + ManualFactoryReset + AutomaticFactoryReset + + + + + Erase Configuration + + MSPM0EraseText + FlashEraseSelection + FlashEraseSectorsText + FlashEraseSectorsStartAddress + FlashEraseSectorsEndAddress + + + + + Program Configuration + + FlashVerification + EnableWaitForDebug + + + + SRAM Configuration + + EraseECCSRAMText + EraseECCSRAM + + + + Advanced Configuration + + FlashSkipDeviceID + + + + + TMS470RAX + Reset target before program load + Boolean + 1 + + + TMS470RAX + Reset target after program load + Boolean + 1 + + + TMS470RAX + Reset Type + ChoiceList + + Soft reset + Hard reset + + Hard reset + + 0 + 0 + + + + + + TMS470RAX + !!!Warning: Modifying NONMAIN incorrectly, or erasing it without programming can permanently lock the device!!! + See MSPM0 documentation for more details + Text + + + TMS470RAX + Erase method + ChoiceList + + Erase MAIN memory only + Erase DATA memory only + Erase MAIN and DATA memory + Erase MAIN and NONMAIN memory (see warning above) + Erase MAIN, DATA, and NONMAIN memory (see warning above) + Erase MAIN and NONMAIN necessary sectors only (see warning above) + Erase MAIN memory sectors by range (specify below) + Do not erase Flash memory + + Erase MAIN memory only + + + TMS470RAX + Sector Erase: all 1kB sectors between Start and End address will be erased + Text + + + TMS470RAX + Sector Erase Start Address: 0x + String + 0 + + + TMS470RAX + Sector Erase End Address: 0x + String + 0 + + + TMS470RAX + Allow writes to NON-MAIN without erasing (see warning above) + Boolean + 0 + + + + TMS470RAX + Perform CRC verification + Boolean + 1 + + + TMS470RAX + Enable wait for debug (Warning: Do not enable if flash is empty) + Boolean + 0 + + + + TMS470RAX + Mass erase manual + Button + DPActiveDebugSession.expression.evaluate("GEL_EvalOnTarget( "CORTEX_M0P", "MSPM0_MailboxMassErase_Manual()", 1 )"); + + + TMS470RAX + Mass erase auto + Button + DPActiveDebugSession.expression.evaluate("GEL_EvalOnTarget( "CORTEX_M0P", "MSPM0_MailboxMassErase_Auto()", 1)"); + + + TMS470RAX + Factory reset manual + Button + DPActiveDebugSession.expression.evaluate("GEL_EvalOnTarget( "CORTEX_M0P", "MSPM0_Mailbox_FactoryReset_Manual()", 1 )"); + + + TMS470RAX + Factory reset auto + Button + DPActiveDebugSession.expression.evaluate("GEL_EvalOnTarget( "CORTEX_M0P", "MSPM0_Mailbox_FactoryReset_Auto()", 1 )"); + + + + TMS470RAX + Note: Option will be ignored if device does not support ECC in SRAM region. + See MSPM0 documentation for more details + Text + + + TMS470RAX + Erase ECC SRAM + Boolean + 0 + + + + TMS470RAX + Skip Device ID Check + Boolean + 0 + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/propertyDB/PropertiesDB.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/propertyDB/PropertiesDB.xml new file mode 100644 index 0000000..36cebb3 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/propertyDB/PropertiesDB.xml @@ -0,0 +1,1833 @@ + + + + + + + + Program/Memory Load Options + + ProgramLoadGroup + ConnectGroup + DisableInterrupts + ResetOnRestart + RestartOnSymbolLoad + + + + + Auto Run and Launch Options + + RealtimeGroup + RunToGroup + LaunchGroup + + + + + Misc/Other Options + + OSDebugGroup + PreventStepIntoAsm + LowPowerRunMode + KeepDebugPoweredAtDisconnect + CIOTimestamp + EnableSoftwareBreakpoints + FileIODefaultDirectory + SyncBreakpointsAndSymbols + + + + + + + + + MSP43x Options + + ClockControlNode + DisableBreakpointsOnFreeRun + DefaultBreakpointType + MSP430ConnectOptionsGroup + LowPowerModeGroup + + + + + Clock Control + + ClockDesc + GeneralClockControlGroup + ModuleClockControlGroup + + + + + + + + C28xx Disassembly Style Options + + TMS320C28XX_RegisterAddrModeGroup + TMS320C28XX_AddrModeOffset + TMS320C28XX_ImmediateValue + TMS320C28XX_CallsAndBranchesGroup + + + + + + + + + + + C55xx Disassembly Style Options + + TMS320C55XX_DisassemblyStyle + TMS320C55XX_ImmediateValueGroup + + + + + + + C55X+ Disassembly Style Options + + TMS320C56XX_DisassemblyStyle + TMS320C56XX_ImmediateValueGroup + TMS320C56XX_OpcodeDisplayWidth + + + + + + + C62XX Disassembly Style Options + + TMS320C62XX_AddrRadix + TMS320C62XX_Immedradix + TMS320C62XX_DisplayControlGroup + TMS320C62XX_AliasRegisterGroup + + + + + + + C64XX Disassembly Style Options + + TMS320C64XX_AddrRadix + TMS320C64XX_Immedradix + TMS320C64XX_DisplayControlGroup + TMS320C64XX_AliasRegisterGroup + + + + + + + C67XX Disassembly Style Options + + TMS320C67XX_AddrRadix + TMS320C67XX_Immedradix + TMS320C67XX_DisplayControlGroup + TMS320C67XX_AliasRegisterGroup + + + + + + + ARM 7 Disassembly Style Options + + TMS470R1X_DisassMode + + + + + + + ARM 9 Disassembly Style Options + + TMS470R2X_DisassMode + + + + + + + ARM 11 Disassembly Style Options + + TMS470R3X_DisassMode + + + + + + + Cortex A8 Disassembly Style Options + + TMS470RCX_DisassMode + + + + + + + Cortex A9 Disassembly Style Options + + TMS470R9X_DisassMode + + + + + + + Cortex A15 Disassembly Style Options + + TMS470R15X_DisassMode + + + + + + + Cortex A53 Disassembly Style Options + + TMS470R53X_DisassMode + + + + + + + + Cortex R Disassembly Style Options + + TMS470RDX_DisassMode + + + + + + + Cortex M Disassembly Style Options + + TMS470REX_DisassMode + + + + + + + Cortex M0 Disassembly Style Options + + TMS470RAX_DisassMode + + + + + + + + + Program/Memory Load Options + + ClearBreakpointsOnLoad + AddCEXITbreakpointAfterLoad + AddCIOBreakpointAfterLoad + AddSemiHostingBreakpointAfterLoad + VerifyAfterProgramLoad + + + + + Realtime Options + + UseLegacyStopMode + AllowInterruptsWhenHalted + PoliteRealtimeMode + + + + + OS Aware Debug Options + + ModuleDebuggingEnabled + ModuleNameList + ModuleSearchPath + + + + + Auto Run Options + + AutoRunToLabelName + AutoRunToLabelOnRestart + AutoRunToLabelOnReset + + + + + Launch Options + + ConnectOnStartup + EnableInstalledBreakpoint + IgnoreSoftLaunchFailures + + + + + Connection Options + + HaltOnConnect + AutoResetOnConnect + AutoConnectIfChildConnects + + + + + + + Connection Options + + IPEraseOnConnect + UserCodeEraseOnConnect + FactoryResetOnConnect + + + + + General + + + GeneralClockDesc + GeneralClockControl0 + GeneralClockControl1 + GeneralClockControl2 + GeneralClockControl3 + GeneralClockControl4 + GeneralClockControl5 + GeneralClockControl6 + GeneralClockControl7 + GeneralClockControl8 + GeneralClockControl9 + GeneralClockControlA + GeneralClockControlB + GeneralClockControlC + GeneralClockControlD + GeneralClockControlE + GeneralClockControlF + + + + + Extended + + + ModuleClockDesc + ModuleClockControl0 + ModuleClockControl1 + ModuleClockControl2 + ModuleClockControl3 + ModuleClockControl4 + ModuleClockControl5 + ModuleClockControl6 + ModuleClockControl7 + ModuleClockControl8 + ModuleClockControl9 + ModuleClockControlA + ModuleClockControlB + ModuleClockControlC + ModuleClockControlD + ModuleClockControlE + ModuleClockControlF + ModuleClockControl10 + ModuleClockControl11 + ModuleClockControl12 + ModuleClockControl13 + ModuleClockControl14 + ModuleClockControl15 + ModuleClockControl16 + ModuleClockControl17 + ModuleClockControl18 + ModuleClockControl19 + ModuleClockControl1A + ModuleClockControl1B + ModuleClockControl1C + ModuleClockControl1D + ModuleClockControl1E + ModuleClockControl1F + + + + + Low Power Mode Settings + + MSP430LPMx5Mode + + + + + + + + Register Addressing Mode + + TMS320C28XX_DisplayAtOperand + + + + + Calls and Branches + + TMS320C28XX_DisplaySymbolically + + + + + + + Immediate Values + + TMS320C55XX_HexDisplay + + + + + + + Immediate Values + + TMS320C56XX_HexDisplay + + + + + + + Display Control + + TMS320C62XX_DisplayAddress + TMS320C62XX_DisplayCondCode + TMS320C62XX_DisplayDelaySlot + TMS320C62XX_DisplayOpCode + TMS320C62XX_DisplayFuncUnit + + + + + Alias Register + + TMS320C62XX_AliasRegSP + TMS320C62XX_AliasRegDP + TMS320C62XX_AliasRegFP + + + + + + + Display Control + + TMS320C64XX_DisplayAddress + TMS320C64XX_DisplayCondCode + TMS320C64XX_DisplayDelaySlot + TMS320C64XX_DisplayOpCode + TMS320C64XX_DisplayFuncUnit + + + + + Alias Register + + TMS320C64XX_AliasRegSP + TMS320C64XX_AliasRegDP + TMS320C64XX_AliasRegFP + + + + + + + Display Control + + TMS320C67XX_DisplayAddress + TMS320C67XX_DisplayCondCode + TMS320C67XX_DisplayDelaySlot + TMS320C67XX_DisplayOpCode + TMS320C67XX_DisplayFuncUnit + + + + + Alias Register + + TMS320C67XX_AliasRegSP + TMS320C67XX_AliasRegDP + TMS320C67XX_AliasRegFP + + + + + + + + Disable interrupts + + DisableIntWhileAsmStepping + DisableIntWhileSrcStepping + DisableIntWhileRunning + + + + + Connection + Download + Erase + Security + Device Info + + + + + + + generic + Disable all breakpoints when loading a different program + Boolean + 1 + + + + generic + Halt at program exit for TI compilers (requires a breakpoint) + Boolean + 1 + + MSP430 + TMS320C28XX + TMS192C20XX + true + + + + + generic + Enable CIO function use (requires setting a breakpoint) + Boolean + 1 + + TMS192C20XX + true + + + + + TMS470R1X + TMS470R2X + TMS470R3X + TMS470RCX + TMS470R9X + TMS470R15X + TMS470R53X + TMS470RDX + TMS470REX + Enable Semihosting (requires setting a breakpoint at SVC_Handler ) + Boolean + 1 + + true + + + + + generic + Automatically step over functions without debug information when source stepping + Boolean + 1 + + + + generic + Reset the target on a program load or restart + Boolean + 0 + + MSP430 + true + + + + + generic + Restart the target on a symbol load as well as a program load + Boolean + 0 + + true + + + + + + generic + Allow power transitions while running if supported (low power running) + Boolean + 0 + + true + MSP430 + + + MSP430 + + + + + generic + Allow re-connecting without a board reset + Boolean + 1 + + true + + + + + generic + Add timestamp information to target output + Boolean + 0 + + + + generic + Allow software breakpoints to be used + Boolean + 1 + + EMEX_HIGH + true + + + true + + + + + generic + Default directory for File IO: + String + + + + + generic + When added to a sync group: + ChoiceList + + Synchronize execution only + Synchronize breakpoints and symbols (with like cores), as well as execution + + Synchronize breakpoints and symbols (with like cores), as well as execution + + + + generic + Verification Options + ChoiceList + + Full verification + Fast verification + No verification + + Fast verification + + MSP430 + + + + + generic + Halt the target before any debugger access (will impact servicing of interrupts) + Boolean + 0 + + + + generic + Enable realtime mode (critical interrupts serviced when halted, rude/polite mode...) + Boolean + 0 + + true + true + + + + + generic + Enable polite mode (respect HPI, DBGM and FRAMEID) + Boolean + 1 + + true + + + true + 1 + + + + + generic + Automatically load module symbols + ChoiceList + + Never + When modules are loaded and unloaded (intrusive on target execution, and requires a patched kernel) + Whenever halted in the module load/unload routines (you must manually set breakpoints in the appropriate routines for this to work) + + Never + + + + generic + Module name list + String + + + Never + + + + + generic + Module symbol search path + String + + + Never + + + + + generic + Run to symbol + String + main + + + + generic + On a program load or restart + Boolean + 1 + + + + generic + On a reset + Boolean + 0 + + MSP430 + + + + + generic + Connect to the target on debugger startup + Boolean + 0 + + + + generic + Halt the target on a connect + Boolean + 0 + + true + MSP430 + + + true + MSP430 + + + + + generic + Reset the target on a connect + Boolean + 0 + + true + true + + + + + generic + Restore breakpoints from previous session + Boolean + 0 + + + + generic + Continue debug launch if target connection or program load fails + Boolean + 1 + + MSP430 + true + + + true + + + + + generic + Auto connect if a child connects + Boolean + 1 + + ICEPICK_B + ICEPick_C + CS_DAP + CS_DAP_PC + + + + + + + MSP430 + Disable breakpoints on a free run + Boolean + 1 + + + + MSP430 + Default breakpoint type + ChoiceList + + Software + Hardware + + Hardware + + 1 + + + + + MSP430 + On connect, erase main, information, and IP protected area + Boolean + 0 + + MSP430FRxxx Family + + + Connection + + + + + MSP430 + On connect, erase user code and unlock the device + Boolean + 0 + + true + + + Connection + + + + + TMS470REX + On connect, perform Factory Reset + Boolean + 0 + + Connection + + + + + MSP430 + Connect to a MSP430 device to see the list of available clock controls. +Note: only available under "Tools->Debugger Options->MSP430 Debugger Options" + Text + + + + MSP430 + Connect to device to see list of available General Clock Controls. + Text + + + + MSP430 + General Clock 0 + Boolean + + + + + + MSP430 + General Clock 1 + Boolean + + + + + + MSP430 + General Clock 2 + Boolean + + + + + + MSP430 + General Clock 3 + Boolean + + + + + + MSP430 + General Clock 4 + Boolean + + + + + + MSP430 + General Clock 5 + Boolean + + + + + + MSP430 + General Clock 6 + Boolean + + + + + + MSP430 + General Clock 7 + Boolean + + + + + + MSP430 + General Clock 8 + Boolean + + + + + + MSP430 + General Clock 9 + Boolean + + + + + + MSP430 + General Clock A + Boolean + + + + + + MSP430 + General Clock B + Boolean + + + + + + MSP430 + General Clock C + Boolean + + + + + + MSP430 + General Clock 0 + Boolean + + + + + + MSP430 + General Clock E + Boolean + + + + + + MSP430 + General Clock F + Boolean + + + + + + MSP430 + Connect to device to see list of available Module Clock Controls. + Text + + + + MSP430 + Module Clock 0 + Boolean + + + + + + MSP430 + Module Clock 1 + Boolean + + + + + + MSP430 + Module Clock 2 + Boolean + + + + + + MSP430 + Module Clock 3 + Boolean + + + + + + MSP430 + Module Clock 4 + Boolean + + + + + + MSP430 + Module Clock 5 + Boolean + + + + + + MSP430 + Module Clock 6 + Boolean + + + + + + MSP430 + Module Clock 7 + Boolean + + + + + + MSP430 + Module Clock 8 + Boolean + + + + + + MSP430 + Module Clock 9 + Boolean + + + + + + MSP430 + Module Clock A + Boolean + + + + + + MSP430 + Module Clock B + Boolean + + + + + + MSP430 + Module Clock C + Boolean + + + + + + MSP430 + Module Clock D + Boolean + + + + + + MSP430 + Module Clock E + Boolean + + + + + + MSP430 + Module Clock F + Boolean + + + + + + + MSP430 + Module Clock 10 + Boolean + + + + + + MSP430 + Module Clock 11 + Boolean + + + + + + MSP430 + Module Clock 12 + Boolean + + + + + + MSP430 + Module Clock 13 + Boolean + + + + + + MSP430 + Module Clock 14 + Boolean + + + + + + MSP430 + Module Clock 15 + Boolean + + + + + + MSP430 + Module Clock 16 + Boolean + + + + + + MSP430 + Module Clock 17 + Boolean + + + + + + MSP430 + Module Clock 18 + Boolean + + + + + + MSP430 + Module Clock 19 + Boolean + + + + + + MSP430 + Module Clock 1A + Boolean + + + + + + MSP430 + Module Clock 1B + Boolean + + + + + + MSP430 + Module Clock 1C + Boolean + + + + + + MSP430 + Module Clock 1D + Boolean + + + + + + MSP430 + Module Clock 1E + Boolean + + + + + + MSP430 + Module Clock 1F + Boolean + + + + + + MSP430 + Enable Ultra Low Power debug / LPMx.5 debug + Boolean + 0 + + true + + + true + + + + + + + + TMS320C28XX + Display @ operand + Boolean + 1 + + + + TMS320C28XX + Addressing Mode Offset + ChoiceList + + Hexadecimal + Decimal (default) + + Decimal (default) + + + + TMS320C28XX + Immediate Value + ChoiceList + + Hexadecimal + Decimal + Default (refer to spec) + + Default (refer to spec) + + + + TMS320C28XX + Display Symbolically + Boolean + 1 + + + + + + + + + + TMS320C55XX + Disassembly Style + ChoiceList + + Algebraic + Mnemonic + + Mnemonic + + + + TMS320C55XX + Hexadecimal Display + Boolean + 0 + + + + + + TMS320C56XX + Disassembly Style + ChoiceList + + Algebraic + Mnemonic + + Algebraic + + + + TMS320C56XX + Hexadecimal Display + Boolean + 0 + + + + TMS320C56XX + Opcode Display Width + ChoiceList + + Show all bytes + Truncate to 12 bytes + Truncate to 6 bytes + Hide + + Show all bytes + + + + + + TMS320C62XX + Addressing Radix + ChoiceList + + Hex + Dec + + Hex + + + + TMS320C62XX + Immediate Radix + ChoiceList + + Hex + Dec + + Hex + + + + TMS320C62XX + Address + Boolean + 1 + + + + TMS320C62XX + Cond. Code + Boolean + 1 + + + + TMS320C62XX + Delay Slot + Boolean + 1 + + + + TMS320C62XX + Op. Code + Boolean + 1 + + + + TMS320C62XX + Functional Unit + Boolean + 1 + + + + TMS320C62XX + SP + Boolean + 1 + + + + TMS320C62XX + DP + Boolean + 1 + + + + TMS320C62XX + FP + Boolean + 1 + + + + + + TMS320C64XX + Addressing Radix + ChoiceList + + Hex + Dec + + Hex + + + + TMS320C64XX + Immediate Radix + ChoiceList + + Hex + Dec + + Hex + + + + TMS320C64XX + Address + Boolean + 1 + + + + TMS320C64XX + Cond. Code + Boolean + 1 + + + + TMS320C64XX + Delay Slot + Boolean + 1 + + + + TMS320C64XX + Op. Code + Boolean + 1 + + + + TMS320C64XX + Functional Unit + Boolean + 1 + + + + TMS320C64XX + SP + Boolean + 1 + + + + TMS320C64XX + DP + Boolean + 1 + + + + TMS320C64XX + FP + Boolean + 1 + + + + + + TMS320C67XX + Addressing Radix + ChoiceList + + Hex + Dec + + Hex + + + + TMS320C67XX + Immediate Radix + ChoiceList + + Hex + Dec + + Hex + + + + TMS320C67XX + Address + Boolean + 1 + + + + TMS320C67XX + Cond. Code + Boolean + 1 + + + + TMS320C67XX + Delay Slot + Boolean + 1 + + + + TMS320C67XX + Op. Code + Boolean + 1 + + + + TMS320C67XX + Functional Unit + Boolean + 1 + + + + TMS320C67XX + SP + Boolean + 1 + + + + TMS320C67XX + DP + Boolean + 1 + + + + TMS320C67XX + FP + Boolean + 1 + + + + + + TMS470R1X + Disassembly Mode + ChoiceList + + Mixed ARM/Thumb + ARM Only + Thumb Only + + Mixed ARM/Thumb + + + + + + TMS470R2X + Disassembly Mode + ChoiceList + + Mixed ARM/Thumb + ARM Only + Thumb Only + + Mixed ARM/Thumb + + + + + + TMS470R3X + Disassembly Mode + ChoiceList + + Mixed ARM/Thumb + ARM Only + Thumb Only + + Mixed ARM/Thumb + + + + + + TMS470R9X + Disassembly Mode + ChoiceList + + Mixed ARM/Thumb + ARM Only + Thumb Only + + Mixed ARM/Thumb + + + + + + TMS470R15X + Disassembly Mode + ChoiceList + + Mixed ARM/Thumb + ARM Only + Thumb Only + + Mixed ARM/Thumb + + + + + + TMS470RCX + Disassembly Mode + ChoiceList + + Mixed ARM/Thumb + ARM Only + Thumb Only + + Mixed ARM/Thumb + + + + + + TMS470R53X + Disassembly Mode + ChoiceList + + Mixed A32/A64 + A64 Only + A32 ARM Only + A32 Thumb Only + + Mixed A32/A64 + + + + + + TMS470RDX + Disassembly Mode + ChoiceList + + Mixed ARM/Thumb + ARM Only + Thumb Only + + Mixed ARM/Thumb + + + + + + + + generic + When assembly stepping + Boolean + 1 + + MSP430 + + + + + generic + When source stepping + Boolean + 1 + + MSP430 + TMS470R.* + + + + + generic + When running + Boolean + 0 + + + + + generic + test use boolean prop + Boolean + 0 + + + + generic + test use int prop + Numeric + 0 + + + + generic + test use string prop + String + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/schemas/PropertiesDB.xsd b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/schemas/PropertiesDB.xsd new file mode 100644 index 0000000..d98fc2c --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/schemas/PropertiesDB.xsd @@ -0,0 +1,104 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/schemas/PropertiesSaveSetting.xsd b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/schemas/PropertiesSaveSetting.xsd new file mode 100644 index 0000000..925bfa1 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/schemas/PropertiesSaveSetting.xsd @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/scripts/cc13xx-cc26xx-mass-erase.dsls b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/scripts/cc13xx-cc26xx-mass-erase.dsls new file mode 100644 index 0000000..7d5f9ab --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/scripts/cc13xx-cc26xx-mass-erase.dsls @@ -0,0 +1,16 @@ +{"command":"defineOption", "data":["debugProbe,d", "Debug Probe (XDS110, XDS100v3, XDS200), used to select a pre-created ccxml to perform the mass erase operation. Do not specify 'config' when this is specified."]} +{"command":"defineOption", "data":["config,c", "Manaully specify a target configuration (ccxml) file (note: 2-pin cJTAG setting recommended for locked devices). Do not specify 'debugProbe' when this is specified."]} +{"command":"defineValuelessOption", "data":["help,h", "Print this message."]} +{"command":"acceptTrailingOperand"} +{"command":"parseCommandLine"} +{"command":"logEvent", "data":["gelOutput", "%s", ["message"]]} +{"command":"configure","data":["@config@"],"enableIf":"@not_debugProbe@"} +{"command":"configure","data":["@baseDir@arm/cc13xx_cc26xx_2pin_cJTAG_@debugProbe@.ccxml"], "enableIf":"@not_config@"} +{"command":"logMessage","data":["Error: Please do not specify both debugProbe and config option. "], "enableIf":["@debugProbe@", "@config@"]} +{"command":"switchToCore", "data":[0]} +{"command":"logMessage", "data":["Performing Device Unlock via Mass Erase...\n"]} +{"command":"expressions.evaluate","data":["MassErase()"]} +{"command":"switchToDebugger"} +{"command":"waitForIdle"} +{"command":"deConfigure"} +{"command":"logMessage", "data":["Device Unlocked\n"]} diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/scripts/cc23xx-unlock-debug-access.dsls b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/scripts/cc23xx-unlock-debug-access.dsls new file mode 100644 index 0000000..c74070c --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/scripts/cc23xx-unlock-debug-access.dsls @@ -0,0 +1,13 @@ +{"command":"defineOption", "data":["config,c", "Specify a target configuration (ccxml) file"]} +{"command":"defineValuelessOption", "data":["help,h", "Print this message."]} +{"command":"acceptTrailingOperand"} +{"command":"parseCommandLine"} +{"command":"logEvent", "data":["gelOutput", "%s", ["message"]]} +{"command":"configure","data":["@config@"]} +{"command":"switchToCore", "data":[0]} +{"command":"logMessage", "data":["Performing Debug Access Unlock...\n"]} +{"command":"expressions.evaluate","data":["ChipErase()"]} +{"command":"switchToDebugger"} +{"command":"waitForIdle"} +{"command":"deConfigure"} +{"command":"logMessage", "data":["Completed.\n"]} diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/scripts/flash.dsls b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/scripts/flash.dsls new file mode 100644 index 0000000..e8130e5 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/scripts/flash.dsls @@ -0,0 +1,59 @@ +{"command":"defineOption", "data":["config,c", "Target Configuration (ccxml) file, must be supplied other than running --help. CCXML file can be generated and exported using the Uniflash GUI or Code Composer Studio.", true]} +{"command":"defineValuelessOption", "data":["list-cores,N", "List the available cores and index of the current configuration (index to be used with -n afterwards)."]} +{"command":"defineDefaultOption", "data":["core,n", "Zero based index of core to operate on.", 0]} +{"command":"defineOption", "data":["list-settings,S", "Takes a regex and list the final values applied to the matching settings. (ie; use .* to list all available settings)", false]} +{"command":"defineValuelessOption", "data":["list-ops,p", "List the available flash operations."]} +{"command":"defineValuelessOption", "data":["list-device-cmds,I", "List the available device commands, if any."]} +{"command":"defineOption", "data":["load-settings,l", "Apply settings file generated by UniFlash GUI.", false]} +{"command":"defineMultiTokenOption", "data":["setting,s", "Override a specific setting by using id=value. Can be specified multiple times."]} +{"command":"defineMultiTokenOption", "data":["before,b", "Operation(s) to perform before loading. Can be specified multiple times, and are performed in the order they appear on the command line. Get a list of operations by using --list-ops."]} +{"command":"defineValuelessOption", "data":["flash,f", "Load the file(s) specified at the end of the command line to flash. This is assumed to be set unless verify is set."]} +{"command":"defineValuelessOption", "data":["verify,v", "Verify the file(s) specified at the end of the command line."]} +{"command":"defineMultiTokenOption", "data":["after,a", "Optional operation to perform after loading. Can be specified multiple times, and are performed in the order they appear on the command line. Get a list of operations by using --list-ops."]} +{"command":"defineValuelessOption", "data":["list-resets,R", "List of resets that can be done after program load and verification."]} +{"command":"defineValuelessOption", "data":["run,u", "Run the target at the end of the flash load/operation."]} +{"command":"defineOption", "data":["reset,r", "Set reset operation to be done after program load and verification."]} +{"command":"defineOption", "data":["post-flash-device-cmd,O", "Execute the given device command. Get a list of device commands by using --list-device-cmds."]} +{"command":"defineOption", "data":["timeout,t", "Timeout in seconds, infinite if unspecified.", false]} +{"command":"defineOption", "data":["log,g", "Enable detailed logging to the specified file.", false]} +{"command":"defineValuelessOption", "data":["verbose,e", "Outputs progress messages to the console."]} +{"command":"defineValuelessOption", "data":["help,h", "Print this message."]} +{"command":"defineUsage", "data":["dslite flash --config=ccxml-file [options] [flash-file1 ...]"]} +{"command":"acceptTrailingOperand"} +{"command":"parseCommandLine"} +{"command":"verifySomeOptionsSupplied", "data":[["before", "operands", "after", "list-cores", "list-ops", "list-settings", "list-device-cmds", "list-resets", "reset", "post-flash-device-cmd"], "nothing to do"]} +{"command":"getVersion", "log":["DSLite version %s\n", "version"],"enableIf":[@verbose@]} +{"command":"logging.configure", "data":[true, "@log@"]} +{"command":"logEvent", "data":["statusMessage", "%s: %s", ["type", "message"]]} +{"command":"logEvent", "data":["gelOutput", "%s", ["message"]]} +{"command":"logEventIf", "data":["progress.update", "%s\n", ["name"], ["isFirstUpdate"], [true]],"enableIf":[@verbose@]} +{"command":"logEventIf", "data":["progress.update", "\t%s: %s%%\n", ["subActivity", "percent"], ["percent", "isComplete", "isFirstUpdate"], [true, false, false]],"enableIf":[@verbose@]} +{"command":"logEventIf", "data":["progress.update", "\t%s\n", ["subActivity"], ["percent", "isComplete", "isFirstUpdate"], [false, false, false]],"enableIf":[@verbose@]} +{"command":"setTimeout", "data":[@timeout@]} +{"command":"configure","data":["@config@"]} +{"command":"listCores","data":[],"log":["\n--- Available Cores ---\n%s\n",["cores"]],"enableIf":[@list-cores@]} +{"command":"switchToCore", "data":[@core@]} +{"command":"expressions.evaluate","data":["GEL_CLI_ListCommands()"],"enableIf":[@list-device-cmds@]} +{"command":"logMessage", "data":["Connecting...\n"],"enableIf":[@verbose@]} +{"command":"targetState.connect"} +{"command":"settings.setCLI","data":[{"AutoRunToLabelOnRestart":false,"AutoRunToLabelOnReset":false}]} +{"command":"switchToDebugger"} +{"command":"debuggerSettings.loadSettingsFromFile","data":["@load-settings@"]} +{"command":"switchToCore", "data":[@core@]} +{"command":"settings.setCLI","data":["@setting...@"]} +{"command":"settings.getSettingsAsFormattedString","data":["@list-settings@"],"log":["\n--- Settings ---\n%s\n",["formattedString"]]} +{"command":"flash.listSupportedOperations","data":[],"log":["\n--- Available Flash Operations ---\n%s\n",["ops"]],"enableIf":[@list-ops@]} +{"command":"flash.performOperation","data":["@before...@"]} +{"command":"symbols.loadProgramOnly","data":[@operands@], "enableIf":[@flash@]} +{"command":"symbols.loadProgramOnly","data":[@operands@], "enableIf":["@not_flash@", "@not_verify@"]} +{"command":"symbols.verifyProgram","data":[@operands@], "enableIf":[@verify@]} +{"command":"flash.performOperation","data":["@after...@"]} +{"command":"targetState.getResetsCLI","data":[],"log":["\n--- Available Reset Operations ---\n%s\n",["formattedString"]],"enableIf":[@list-resets@]} +{"command":"targetState.resetCLI","data":["@reset@"],"log":["\nResetting...\n%s\n",["responseString"]] } +{"command":"logMessage", "data":["Running...\n"],"enableIf":["@verbose@","@run@"]} +{"command":"targetState.run","data":[true],"enableIf":[@run@]} +{"command":"expressions.evaluate","data":["GEL_CLI_@post-flash-device-cmd@()"],"enableIf":["@post-flash-device-cmd@"]} +{"command":"switchToDebugger"} +{"command":"waitForIdle"} +{"command":"deConfigure"} +{"command":"logMessage", "data":["Success\n"],"enableIf":[@verbose@]} diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/scripts/help.dsls b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/scripts/help.dsls new file mode 100644 index 0000000..9759619 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/scripts/help.dsls @@ -0,0 +1,17 @@ +{"command":"getVersion", "log":["DSLite version %s\n", "version"]} +{"command":"logMessage", "data":["DSLite [operation] [Args...]\n\n"]} +{"command":"logMessage", "data":["\tload\n"]} +{"command":"logMessage", "data":["\t\tLoads the specified file and exits, leaving the\n"]} +{"command":"logMessage", "data":["\t\ttarget running\n"]} +{"command":"logMessage", "data":["\tflash\n"]} +{"command":"logMessage", "data":["\t\tPerforms multiple flash-based operations as\n"]} +{"command":"logMessage", "data":["\t\tspecified on the command line including\n"]} +{"command":"logMessage", "data":["\t\terasing, loading, verifying, and device-\n"]} +{"command":"logMessage", "data":["\t\tspecific flash operations\n"]} +{"command":"logMessage", "data":["\tmemory\n"]} +{"command":"logMessage", "data":["\t\tExtracts memory from the target into a coff or\n"]} +{"command":"logMessage", "data":["\t\tbinary file\n"]} +{"command":"logMessage", "data":["\tidentifyProbe\n"]} +{"command":"logMessage", "data":["\t\tIdentify a connected debug probe\n"]} +{"command":"logMessage", "data":["\thelp\n"]} +{"command":"logMessage", "data":["\t\tPrints this message\n"]} diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/scripts/identifyProbe.dsls b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/scripts/identifyProbe.dsls new file mode 100644 index 0000000..3aa5f50 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/scripts/identifyProbe.dsls @@ -0,0 +1,9 @@ +{"command":"defineOption", "data":["config,c", "Configuration (ccxml) file.", true]} +{"command":"defineDefaultOption", "data":["log,g", "Enable detailed logging to the specified file.", true]} +{"command":"defineDefaultOption", "data":["conId,i", "Connection ID", 0]} +{"command":"defineValuelessOption", "data":["help,h", "Print this message."]} +{"command":"defineUsage", "data":["dslite identifyProbe --config=file.ccxml [options]"]} +{"command":"parseCommandLine"} +{"command":"getVersion", "log":["DSLite version %s\n", "version"]} +{"command":"logging.configure", "data":[true, "@log@"]} +{"command":"blinkLEDs","data":["@config@",@conId@]} diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/scripts/load.dsls b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/scripts/load.dsls new file mode 100644 index 0000000..5cc83dd --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/scripts/load.dsls @@ -0,0 +1,31 @@ +{"command":"defineOption", "data":["config,c", "Configuration (ccxml) file.", true]} +{"command":"defineOption", "data":["file,f", "Elf, coff or binary file(s) to flash or verify. To specify a binary file, append ',address' after the file. This option exists only for compatibility - the file to load can instead just be passed as the last token on the command line."]} +{"command":"defineOption", "data":["timeout,t", "Timeout in seconds, infinite if unspecified.", false]} +{"command":"defineOption", "data":["log,g", "Enable detailed logging to the specified file.", false]} +{"command":"defineDefaultOption", "data":["core,n", "Zero based index of core to operate on.", 0]} +{"command":"defineValuelessOption", "data":["help,h", "Print this message."]} +{"command":"defineUsage", "data":["dslite load --config=file.ccxml [options] coff-or-binary-file1"]} +{"command":"acceptTrailingOperand"} +{"command":"parseCommandLine"} +{"command":"verifySomeOptionsSupplied", "data":[["file", "operands"], "no file to load was specified"]} +{"command":"getVersion", "log":["DSLite version %s\n", "version"]} +{"command":"logging.configure", "data":[true, "@log@"]} +{"command":"logEvent", "data":["statusMessage", "%s: %s", ["type", "message"]]} +{"command":"logEvent", "data":["gelOutput", "GEL: %s", ["message"]]} +{"command":"logEventIf", "data":["progress.update", "%s\n", ["name"], ["isFirstUpdate"], [true]]} +{"command":"logEventIf", "data":["progress.update", "\t%s: %s%%\n", ["subActivity", "percent"], ["percent", "isComplete", "isFirstUpdate"], [true, false, false]]} +{"command":"logEventIf", "data":["progress.update", "\t%s\n", ["subActivity"], ["percent", "isComplete", "isFirstUpdate"], [false, false, false]]} +{"command":"setTimeout", "data":[@timeout@]} +{"command":"configure","data":["@config@"]} +{"command":"switchToCore", "data":[@core@]} +{"command":"logMessage", "data":["Connecting...\n"]} +{"command":"targetState.connect"} +{"command":"settings.set","data":[{"AutoRunToLabelOnRestart":false,"AutoRunToLabelOnReset":false}]} +{"command":"symbols.loadProgramOnly","data":["@file@"], "enableIf":"@not_operands@"} +{"command":"symbols.loadProgramOnly","data":[@operands@]} +{"command":"logMessage", "data":["Running...\n"]} +{"command":"targetState.run","data":[true]} +{"command":"switchToDebugger"} +{"command":"waitForIdle"} +{"command":"deConfigure"} +{"command":"logMessage", "data":["Success\n"]} diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/scripts/memory.dsls b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/scripts/memory.dsls new file mode 100644 index 0000000..f528c24 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/scripts/memory.dsls @@ -0,0 +1,32 @@ +{"command":"defineOption", "data":["config,c", "Configuration (ccxml) file.", true]} +{"command":"defineValuelessOption", "data":["coff,f", "Output in coff format. Default format is binary."]} +{"command":"defineMultiTokenOption", "data":["range,r", "Memory location and length to read in the form 'address,length' or 'address@page,length'. This can be specified multiple times if using the coff format."]} +{"command":"defineDefaultOption", "data":["size,s", "Bit size of each memory value to read (for endianness considerations, binary format only).", 8]} +{"command":"defineOption", "data":["output,o", "File to write the extracted memory to.", true]} +{"command":"defineOption", "data":["timeout,t", "Timeout in seconds, infinite if unspecified.", false]} +{"command":"defineOption", "data":["log,g", "Enable detailed logging to the specified file.", false]} +{"command":"defineValuelessOption", "data":["verbose,e", "Outputs progress messages to the console."]} +{"command":"defineDefaultOption", "data":["core,n", "Zero based index of core to operate on.", 0]} +{"command":"defineValuelessOption", "data":["help,h", "Print this message."]} +{"command":"defineUsage", "data":["dslite memory [options] --config=ccxml-file --range=address,length --output=output-file"]} +{"command":"parseCommandLine"} +{"command":"verifySomeOptionsSupplied", "data":[["range"], "the option --range is required but missing"]} +{"command":"getVersion", "log":["DSLite version %s\n", "version"],"enableIf":[@verbose@]} +{"command":"logging.configure", "data":[true, "@log@"]} +{"command":"logEvent", "data":["statusMessage", "%s: %s", ["type", "message"]]} +{"command":"logEvent", "data":["gelOutput", "GEL: %s", ["message"]],"enableIf":[@verbose@]} +{"command":"logEventIf", "data":["progress.update", "%s\n", ["name"], ["isFirstUpdate"], [true]],"enableIf":[@verbose@]} +{"command":"logEventIf", "data":["progress.update", "\t%s: %s%%\n", ["subActivity", "percent"], ["percent", "isComplete", "isFirstUpdate"], [true, false, false]],"enableIf":[@verbose@]} +{"command":"logEventIf", "data":["progress.update", "\t%s\n", ["subActivity"], ["percent", "isComplete", "isFirstUpdate"], [false, false, false]],"enableIf":[@verbose@]} +{"command":"setTimeout", "data":[@timeout@]} +{"command":"configure","data":["@config@"]} +{"command":"switchToCore", "data":[@core@]} +{"command":"logMessage", "data":["Connecting...\n"],"enableIf":[@verbose@]} +{"command":"targetState.connect"} +{"command":"logMessage", "data":["Reading memory...\n"],"enableIf":[@verbose@]} +{"command":"memory.exportAsBin", "data":[@range@, @size@, "@output@"], "enableIf":[@not_coff@]} +{"command":"memory.exportAsCoff", "data":[@range@, "@output@"], "enableIf":[@coff@]} +{"command":"switchToDebugger"} +{"command":"waitForIdle"} +{"command":"deConfigure"} +{"command":"logMessage", "data":["Success\n"],"enableIf":[@verbose@]} diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/scripts/noConnectFlash.dsls b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/scripts/noConnectFlash.dsls new file mode 100644 index 0000000..a94d725 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/scripts/noConnectFlash.dsls @@ -0,0 +1,52 @@ +{"command":"defineOption", "data":["config,c", "Target Configuration (ccxml) file, must be supplied other than running --help. CCXML file can be generated and exported using the Uniflash GUI or Code Composer Studio.", true]} +{"command":"defineValuelessOption", "data":["list-cores,N", "List the available cores and index of the current configuration (index to be used with -n afterwards)."]} +{"command":"defineDefaultOption", "data":["core,n", "Zero based index of core to operate on.", 0]} +{"command":"defineOption", "data":["list-settings,S", "Takes a regex and list the final values applied to the matching settings. (ie; use .* to list all available settings)", false]} +{"command":"defineValuelessOption", "data":["list-ops,p", "List the available flash operations."]} +{"command":"defineValuelessOption", "data":["list-device-cmds,I", "List the available device commands, if any."]} +{"command":"defineOption", "data":["load-settings,l", "Apply settings file generated by UniFlash GUI.", false]} +{"command":"defineMultiTokenOption", "data":["setting,s", "Override a specific setting by using id=value. Can be specified multiple times."]} +{"command":"defineMultiTokenOption", "data":["before,b", "Operation(s) to perform before loading. Can be specified multiple times, and are performed in the order they appear on the command line. Get a list of operations by using --list-ops."]} +{"command":"defineValuelessOption", "data":["flash,f", "Load the file(s) specified at the end of the command line to flash. This is assumed to be set unless verify is set."]} +{"command":"defineValuelessOption", "data":["verify,v", "Verify the file(s) specified at the end of the command line."]} +{"command":"defineMultiTokenOption", "data":["after,a", "Optional operation to perform after loading. Can be specified multiple times, and are performed in the order they appear on the command line. Get a list of operations by using --list-ops."]} +{"command":"defineValuelessOption", "data":["list-resets,R", "List of resets that can be done after program load and verification."]} +{"command":"defineValuelessOption", "data":["run,u", "Run the target at the end of the flash load/operation."]} +{"command":"defineOption", "data":["reset,r", "Set reset operation to be done after program load and verification."]} +{"command":"defineOption", "data":["post-flash-device-cmd,O", "Execute the given device command. Get a list of device commands by using --list-device-cmds."]} +{"command":"defineOption", "data":["timeout,t", "Timeout in seconds, infinite if unspecified.", false]} +{"command":"defineOption", "data":["log,g", "Enable detailed logging to the specified file.", false]} +{"command":"defineValuelessOption", "data":["verbose,e", "Outputs progress messages to the console."]} +{"command":"defineValuelessOption", "data":["help,h", "Print this message."]} +{"command":"defineUsage", "data":["dslite flash --config=ccxml-file [options] [flash-file1 ...]"]} +{"command":"acceptTrailingOperand"} +{"command":"parseCommandLine"} +{"command":"verifySomeOptionsSupplied", "data":[["before", "operands", "after", "list-cores", "list-ops", "list-settings", "list-device-cmds", "list-resets", "reset", "post-flash-device-cmd"], "nothing to do"]} +{"command":"getVersion", "log":["DSLite version %s\n", "version"],"enableIf":[@verbose@]} +{"command":"logging.configure", "data":[true, "@log@"]} +{"command":"logEvent", "data":["statusMessage", "%s: %s", ["type", "message"]]} +{"command":"logEvent", "data":["gelOutput", "%s", ["message"]]} +{"command":"logEventIf", "data":["progress.update", "%s\n", ["name"], ["isFirstUpdate"], [true]],"enableIf":[@verbose@]} +{"command":"logEventIf", "data":["progress.update", "\t%s: %s%%\n", ["subActivity", "percent"], ["percent", "isComplete", "isFirstUpdate"], [true, false, false]],"enableIf":[@verbose@]} +{"command":"logEventIf", "data":["progress.update", "\t%s\n", ["subActivity"], ["percent", "isComplete", "isFirstUpdate"], [false, false, false]],"enableIf":[@verbose@]} +{"command":"setTimeout", "data":[@timeout@]} +{"command":"configure","data":["@config@"]} +{"command":"listCores","data":[],"log":["\n--- Available Cores ---\n%s\n",["cores"]],"enableIf":[@list-cores@]} +{"command":"switchToCore", "data":[@core@]} +{"command":"expressions.evaluate","data":["GEL_CLI_ListCommands()"],"enableIf":[@list-device-cmds@]} +{"command":"settings.setCLI","data":[{"AutoRunToLabelOnRestart":false,"AutoRunToLabelOnReset":false}]} +{"command":"settings.loadSettingsFromFile","data":["@load-settings@"]} +{"command":"settings.setCLI","data":["@setting...@"]} +{"command":"settings.getSettingsAsFormattedString","data":["@list-settings@"],"log":["\n--- Settings ---\n%s\n",["formattedString"]]} +{"command":"flash.listSupportedOperations","data":[],"log":["\n--- Available Flash Operations ---\n%s\n",["ops"]],"enableIf":[@list-ops@]} +{"command":"flash.performOperation","data":["@before...@"]} +{"command":"symbols.loadProgramOnly","data":[@operands@], "enableIf":[@flash@]} +{"command":"symbols.loadProgramOnly","data":[@operands@], "enableIf":["@not_flash@", "@not_verify@"]} +{"command":"symbols.verifyProgram","data":[@operands@], "enableIf":[@verify@]} +{"command":"flash.performOperation","data":["@after...@"]} +{"command":"targetState.getResetsCLI","data":[],"log":["\n--- Available Reset Operations ---\n%s\n",["formattedString"]],"enableIf":[@list-resets@]} +{"command":"targetState.resetCLI","data":["@reset@"],"log":["\nResetting...\n%s\n",["responseString"]] } +{"command":"logMessage", "data":["Running...\n"],"enableIf":["@verbose@","@run@"]} +{"command":"targetState.run","data":[true],"enableIf":[@run@]} +{"command":"expressions.evaluate","data":["GEL_CLI_@post-flash-device-cmd@()"],"enableIf":["@post-flash-device-cmd@"]} +{"command":"logMessage", "data":["Success\n"],"enableIf":[@verbose@]} diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/scripts/serial.dsls b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/scripts/serial.dsls new file mode 100644 index 0000000..717d67e --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/DebugServer/scripts/serial.dsls @@ -0,0 +1,40 @@ +{"command":"defineOption", "data":["config,c", "Configuration (ccxml) file.", true]} +{"command":"defineOption", "data":["load-settings,l", "Apply settings file generated by UniFlash GUI.", false]} +{"command":"defineMultiTokenOption", "data":["setting,s", "Override a specific setting by using id=value. Can be specified multiple times."]} +{"command":"defineMultiTokenOption", "data":["before,b", "Operation(s) to perform before loading. Can be specified multiple times, and are performed in the order they appear on the command line."]} +{"command":"defineValuelessOption", "data":["flash,f", "Load the file(s) specified at the end of the command line to flash. This is assumed to be set unless verify is set."]} +{"command":"defineMultiTokenOption", "data":["after,a", "Optional operation to perform after loading. Can be specified multiple times, and are performed in the order they appear on the command line."]} +{"command":"defineOption", "data":["log,g", "Enable detailed logging to the specified file.", false]} +{"command":"defineValuelessOption", "data":["verbose,e", "Outputs progress messages to the console."]} +{"command":"defineDefaultOption", "data":["core,n", "Zero based index of core to operate on.", 0]} +{"command":"defineValuelessOption", "data":["list-ops,p", "List the available flash operations."]} +{"command":"defineOption", "data":["list-settings,S", "Takes a regex and list the final values applied to the matching settings.", false]} +{"command":"defineValuelessOption", "data":["help,h", "Print this message."]} +{"command":"defineUsage", "data":["dslite serial --config=ccxml-file [options] [flash-file1 ...]"]} +{"command":"acceptTrailingOperand"} +{"command":"parseCommandLine"} +{"command":"verifySomeOptionsSupplied", "data":[["before", "operands", "after", "list-ops", "list-settings"], "nothing to do"]} +{"command":"getVersion", "log":["DSLite version %s\n", "version"],"enableIf":[@verbose@]} +{"command":"logging.configure", "data":[true, "@log@"]} +{"command":"logEvent", "data":["statusMessage", "%s: %s", ["type", "message"]]} +{"command":"logEvent", "data":["gelOutput", "GEL: %s", ["message"]],"enableIf":[@verbose@]} +{"command":"logEventIf", "data":["progress.update", "%s\n", ["name"], ["isFirstUpdate"], [true]],"enableIf":[@verbose@]} +{"command":"logEventIf", "data":["progress.update", "\t%s: %s%%\n", ["subActivity", "percent"], ["percent", "isComplete", "isFirstUpdate"], [true, false, false]],"enableIf":[@verbose@]} +{"command":"logEventIf", "data":["progress.update", "\t%s\n", ["subActivity"], ["percent", "isComplete", "isFirstUpdate"], [false, false, false]],"enableIf":[@verbose@]} +{"command":"configure","data":["@config@"]} +{"command":"debuggerSettings.loadSettingsFromFile","data":["@load-settings@"]} +{"command":"switchToCore", "data":[@core@]} +{"command":"logMessage", "data":["Connecting...\n"],"enableIf":[@verbose@]} +{"command":"targetState.connect"} +{"command":"settings.set","data":[{"AutoRunToLabelOnRestart":false,"AutoRunToLabelOnReset":false}]} +{"command":"settings.set","data":["@setting...@"]} +{"command":"settings.getSettingsAsFormattedString","data":["@list-settings@"],"log":["\n--- Settings ---\n%s\n",["formattedString"]]} +{"command":"flash.listSupportedOperations","data":[],"log":["\n--- Available Flash Operations ---\n%s\n",["ops"]],"enableIf":[@list-ops@]} +{"command":"flash.performOperation","data":["@before...@"]} +{"command":"symbols.loadProgramOnly","data":[@operands@], "enableIf":[@flash@]} +{"command":"flash.performOperation","data":["@after...@"]} +{"command":"logMessage", "data":["Running...\n"],"enableIf":[@verbose@]} +{"command":"switchToDebugger"} +{"command":"waitForIdle"} +{"command":"deConfigure"} +{"command":"logMessage", "data":["Success\n"],"enableIf":[@verbose@]} diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/arm/FlashLoaderCC26x0.out b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/arm/FlashLoaderCC26x0.out new file mode 100644 index 0000000..8c9f042 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/arm/FlashLoaderCC26x0.out differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/arm/FlashLoaderCC26x1.out b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/arm/FlashLoaderCC26x1.out new file mode 100644 index 0000000..9d9250d Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/arm/FlashLoaderCC26x1.out differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/arm/FlashLoaderCC26x2.out b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/arm/FlashLoaderCC26x2.out new file mode 100644 index 0000000..928838f Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/arm/FlashLoaderCC26x2.out differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/arm/FlashLoaderCC26x2x7.out b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/arm/FlashLoaderCC26x2x7.out new file mode 100644 index 0000000..90b10ea Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/arm/FlashLoaderCC26x2x7.out differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/arm/FlashLoaderCC26x4.out b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/arm/FlashLoaderCC26x4.out new file mode 100644 index 0000000..ff39a62 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/arm/FlashLoaderCC26x4.out differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/arm/cc13xx_cc26xx_2pin_cJTAG_XDS100v3.ccxml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/arm/cc13xx_cc26xx_2pin_cJTAG_XDS100v3.ccxml new file mode 100644 index 0000000..4ddd9e2 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/arm/cc13xx_cc26xx_2pin_cJTAG_XDS100v3.ccxml @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/arm/cc13xx_cc26xx_2pin_cJTAG_XDS110.ccxml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/arm/cc13xx_cc26xx_2pin_cJTAG_XDS110.ccxml new file mode 100644 index 0000000..dc6230c --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/arm/cc13xx_cc26xx_2pin_cJTAG_XDS110.ccxml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/arm/cc13xx_cc26xx_2pin_cJTAG_XDS200.ccxml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/arm/cc13xx_cc26xx_2pin_cJTAG_XDS200.ccxml new file mode 100644 index 0000000..fe755d6 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/arm/cc13xx_cc26xx_2pin_cJTAG_XDS200.ccxml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/IDE/breakpoints/AETTWatchpoint2x.json b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/IDE/breakpoints/AETTWatchpoint2x.json new file mode 100644 index 0000000..18fd2b8 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/IDE/breakpoints/AETTWatchpoint2x.json @@ -0,0 +1,53 @@ +{ + "id": "c2x-watchpoint", + "name": "Hardware Watchpoint", + "devices": [ + { + "family": "320", + "subFamily": "^(40|41)$", + "comment - subFamily names": "40=C28,41=C29", + "revision": ".*" + } + ], + "instances": [ + { + "type": 1, + "defaults": [ + { + "id": "Hardware Configuration.Type", + "value": "Watchpoint" + } + ], + "properties": [ + { + "type": "string", + "id": "Hardware Configuration.Type.Trigger Type.Location", + "label": "Location", + "placeHolder": "Enter location to watch", + "helpText": "The memory location to watch, it can be a memory address or a symbol", + "isCommon": true + }, + { + "type": "select", + "id": "Hardware Configuration.Type.Trigger Type.Memory", + "label": "Access Type", + "helpText": "Watch access type", + "selectOptions": [ + "Read", + "Write", + "Any" + ], + "defaultValue": "Read", + "isCommon": true + } + ], + "presentation": { + "mainPropertyId": "Hardware Configuration.Type.Trigger Type.Location", + "infoPropertyId": "Hardware Configuration.Type.Trigger Type.Memory" + } + } + ], + "capabilities": { + "menu": true + } +} diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/IDE/breakpoints/AETTWatchpointARM.json b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/IDE/breakpoints/AETTWatchpointARM.json new file mode 100644 index 0000000..d2ce4cb --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/IDE/breakpoints/AETTWatchpointARM.json @@ -0,0 +1,52 @@ +{ + "id": "arm-watchpoint", + "name": "Hardware Watchpoint", + "devices": [ + { + "family": "470", + "subFamily": "^(1|2|3)$", + "comment - subFamily names": "1=ARM7,2=ARM9,3=ARM11", + "revision": ".*" + } + ], + "instances": [ + { + "type": 1, + "defaults": [ + { + "id": "Hardware Configuration.Type", + "value": "Watchpoint" + } + ], + "properties": [ + { + "type": "string", + "id": "Hardware Configuration.Type.Location", + "label": "Location", + "placeHolder": "Enter location to watch", + "helpText": "The memory location to watch, it can be a memory address or a symbol", + "isCommon": true + }, + { + "type": "select", + "id": "Hardware Configuration.Type.Memory", + "label": "Access Type", + "helpText": "Watch access type", + "selectOptions": [ + "Read", + "Write" + ], + "defaultValue": "Read", + "isCommon": true + } + ], + "presentation": { + "mainPropertyId": "Hardware Configuration.Type.Location", + "infoPropertyId": "Hardware Configuration.Type.Memory" + } + } + ], + "capabilities": { + "menu": true + } +} diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/IDE/breakpoints/AETTWatchpointCortex.json b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/IDE/breakpoints/AETTWatchpointCortex.json new file mode 100644 index 0000000..8c0506d --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/IDE/breakpoints/AETTWatchpointCortex.json @@ -0,0 +1,53 @@ +{ + "id": "cortex-watchpoint", + "name": "Hardware Watchpoint", + "devices": [ + { + "family": "470", + "subFamily": "^(9|12|21|83|13|14|10|51)$", + "comment - subFamily names": "9=A9,12=A8,21=A15,83=A53,13=R5,14=M3/M4,10=M0,51=M33", + "revision": ".*" + } + ], + "instances": [ + { + "type": 1, + "defaults": [ + { + "id": "Hardware Configuration.Type", + "value": "Watchpoint" + } + ], + "properties": [ + { + "type": "string", + "id": "Hardware Configuration.Type.Location", + "label": "Location", + "placeHolder": "Enter location to watch", + "helpText": "The memory location to watch, it can be a memory address or a symbol", + "isCommon": true + }, + { + "type": "select", + "id": "Hardware Configuration.Type.Memory", + "label": "Access Type", + "helpText": "Watch access type", + "selectOptions": [ + "Read", + "Write", + "Any" + ], + "defaultValue": "Read", + "isCommon": true + } + ], + "presentation": { + "mainPropertyId": "Hardware Configuration.Type.Location", + "infoPropertyId": "Hardware Configuration.Type.Memory" + } + } + ], + "capabilities": { + "menu": true + } +} diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/IDE/breakpoints/MSP430SimpleWatchpoint.json b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/IDE/breakpoints/MSP430SimpleWatchpoint.json new file mode 100644 index 0000000..1d5fe96 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/IDE/breakpoints/MSP430SimpleWatchpoint.json @@ -0,0 +1,38 @@ +{ + "id": "msp430-simplewatchpoint", + "name": "Hardware Watchpoint", + "devices": [ + { + "family": "430", + "subFamily": ".*", + "revision": ".*" + } + ], + "instances": [ + { + "type": 1, + "defaults": [ + { + "id": "Hardware Configuration.Type", + "value": "Watchpoint" + } + ], + "properties": [ + { + "type": "string", + "id": "Hardware Configuration.Type.Trigger 0.Location", + "label": "Location", + "placeHolder": "Enter location to watch", + "helpText": "The memory location to watch, it can be a memory address or a symbol", + "isCommon": true + } + ], + "presentation": { + "mainPropertyId": "Hardware Configuration.Type.Trigger 0.Location" + } + } + ], + "capabilities": { + "menu": true + } +} diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/IDE/breakpoints/MSP430Watchpoint.json b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/IDE/breakpoints/MSP430Watchpoint.json new file mode 100644 index 0000000..4cd8f17 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/IDE/breakpoints/MSP430Watchpoint.json @@ -0,0 +1,51 @@ +{ + "id": "msp430-watchpoint", + "name": "Hardware Watchpoint (Read or Write)", + "devices": [ + { + "family": "430", + "subFamily": ".*", + "revision": ".*" + } + ], + "instances": [ + { + "type": 1, + "defaults": [ + { + "id": "Hardware Configuration.Type", + "value": "Watchpoint" + } + ], + "properties": [ + { + "type": "string", + "id": "Hardware Configuration.Type.Trigger 0.Location", + "label": "Location", + "placeHolder": "Enter location to watch", + "helpText": "The memory location to watch, it can be a memory address or a symbol", + "isCommon": true + }, + { + "type": "select", + "id": "Hardware Configuration.Type.Trigger 0.Access", + "label": "Access Type", + "helpText": "Watch access type", + "selectOptions": [ + "Read", + "Write" + ], + "defaultValue": "Read", + "isCommon": true + } + ], + "presentation": { + "mainPropertyId": "Hardware Configuration.Type.Trigger 0.Location", + "infoPropertyId": "Hardware Configuration.Type.Trigger 0.Access" + } + } + ], + "capabilities": { + "menu": true + } +} diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/bin/CCReg.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/bin/CCReg.dll new file mode 100644 index 0000000..95673e9 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/bin/CCReg.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/bin/MiniDump.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/bin/MiniDump.dll new file mode 100644 index 0000000..ea53557 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/bin/MiniDump.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/bin/fs.exe b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/bin/fs.exe new file mode 100644 index 0000000..1f78590 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/bin/fs.exe differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/bin/fsclean.bat b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/bin/fsclean.bat new file mode 100644 index 0000000..eb6f99f --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/bin/fsclean.bat @@ -0,0 +1,9 @@ +@echo off +IF [%1] == [--all] GOTO CLEAN_ALL +fs --clean --prompt +GOTO END + +:CLEAN_ALL +fs --cleanall --prompt + +:END \ No newline at end of file diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/bin/fsutil.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/bin/fsutil.dll new file mode 100644 index 0000000..d730ed4 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/bin/fsutil.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/bin/fsutilElectron.node b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/bin/fsutilElectron.node new file mode 100644 index 0000000..b56f40e Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/bin/fsutilElectron.node differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/bin/fsutilNW.nw b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/bin/fsutilNW.nw new file mode 100644 index 0000000..11aa59b Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/bin/fsutilNW.nw differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/bin/fsutilNode.node b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/bin/fsutilNode.node new file mode 100644 index 0000000..19242b0 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/bin/fsutilNode.node differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/bin/libusb-1.0.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/bin/libusb-1.0.dll new file mode 100644 index 0000000..50628b8 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/bin/libusb-1.0.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/bin/setup_parser.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/bin/setup_parser.dll new file mode 100644 index 0000000..b6c7bd6 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/bin/setup_parser.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/bin/ti_logger.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/bin/ti_logger.dll new file mode 100644 index 0000000..73a5ea5 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/bin/ti_logger.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/bin/ti_targetdb_parser.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/bin/ti_targetdb_parser.dll new file mode 100644 index 0000000..8d2807b Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/bin/ti_targetdb_parser.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/bin/xerces-c_2_8.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/bin/xerces-c_2_8.dll new file mode 100644 index 0000000..cf44f56 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/bin/xerces-c_2_8.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/AP/CFGAP.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/AP/CFGAP.xml new file mode 100644 index 0000000..969e801 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/AP/CFGAP.xml @@ -0,0 +1,8 @@ + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/AP/PWRAP.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/AP/PWRAP.xml new file mode 100644 index 0000000..7b4d1c7 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/AP/PWRAP.xml @@ -0,0 +1,53 @@ + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/AP/SECAP.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/AP/SECAP.xml new file mode 100644 index 0000000..88015f3 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/AP/SECAP.xml @@ -0,0 +1,7 @@ + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/cortexM0_NotVisible.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/cortexM0_NotVisible.xml new file mode 100644 index 0000000..a143aed --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/cortexM0_NotVisible.xml @@ -0,0 +1,178 @@ + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/cs_dap_NotVisible.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/cs_dap_NotVisible.xml new file mode 100644 index 0000000..ff4d77c --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/cs_dap_NotVisible.xml @@ -0,0 +1,4 @@ + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/NVIC_1.0.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/NVIC_1.0.xml new file mode 100644 index 0000000..fd75ab1 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/NVIC_1.0.xml @@ -0,0 +1,859 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/SYSTICK_1.0.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/SYSTICK_1.0.xml new file mode 100644 index 0000000..ce96dde --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/SYSTICK_1.0.xml @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/ADC0_4MSPS_1.0.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/ADC0_4MSPS_1.0.xml new file mode 100644 index 0000000..8d5ec02 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/ADC0_4MSPS_1.0.xml @@ -0,0 +1,1771 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/ADC1_4MSPS_1.0.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/ADC1_4MSPS_1.0.xml new file mode 100644 index 0000000..623f050 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/ADC1_4MSPS_1.0.xml @@ -0,0 +1,1771 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/AES_1.0.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/AES_1.0.xml new file mode 100644 index 0000000..558bd58 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/AES_1.0.xml @@ -0,0 +1,454 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/CANFD0_1.0.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/CANFD0_1.0.xml new file mode 100644 index 0000000..c22972d --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/CANFD0_1.0.xml @@ -0,0 +1,2387 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/COMP0_1.0.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/COMP0_1.0.xml new file mode 100644 index 0000000..45c315f --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/COMP0_1.0.xml @@ -0,0 +1,289 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/COMP1_1.0.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/COMP1_1.0.xml new file mode 100644 index 0000000..285a19f --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/COMP1_1.0.xml @@ -0,0 +1,289 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/COMP2_1.0.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/COMP2_1.0.xml new file mode 100644 index 0000000..5a60832 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/COMP2_1.0.xml @@ -0,0 +1,289 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/CPUSS_1.0.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/CPUSS_1.0.xml new file mode 100644 index 0000000..d92202f --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/CPUSS_1.0.xml @@ -0,0 +1,128 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/CRC_1.0.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/CRC_1.0.xml new file mode 100644 index 0000000..f9b6d27 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/CRC_1.0.xml @@ -0,0 +1,110 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/DAC0_1.0.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/DAC0_1.0.xml new file mode 100644 index 0000000..b97e5ff --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/DAC0_1.0.xml @@ -0,0 +1,360 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/DEBUGSS_1.0.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/DEBUGSS_1.0.xml new file mode 100644 index 0000000..1a8db95 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/DEBUGSS_1.0.xml @@ -0,0 +1,193 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/DMA_1.0.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/DMA_1.0.xml new file mode 100644 index 0000000..79e4180 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/DMA_1.0.xml @@ -0,0 +1,472 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/FLASHCTL_1.0.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/FLASHCTL_1.0.xml new file mode 100644 index 0000000..431670f --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/FLASHCTL_1.0.xml @@ -0,0 +1,451 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/FLASH_1.0.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/FLASH_1.0.xml new file mode 100644 index 0000000..4ebcd35 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/FLASH_1.0.xml @@ -0,0 +1,3 @@ + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/GPIOA_1.0.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/GPIOA_1.0.xml new file mode 100644 index 0000000..0418655 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/GPIOA_1.0.xml @@ -0,0 +1,3521 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/GPIOB_1.0.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/GPIOB_1.0.xml new file mode 100644 index 0000000..4f9965a --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/GPIOB_1.0.xml @@ -0,0 +1,3521 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/I2C0_1.0.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/I2C0_1.0.xml new file mode 100644 index 0000000..cc9f994 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/I2C0_1.0.xml @@ -0,0 +1,1566 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/I2C1_1.0.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/I2C1_1.0.xml new file mode 100644 index 0000000..9851dcd --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/I2C1_1.0.xml @@ -0,0 +1,1566 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/IOMUX_1.0.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/IOMUX_1.0.xml new file mode 100644 index 0000000..ab33cfd --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/IOMUX_1.0.xml @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/MATHACL_1.0.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/MATHACL_1.0.xml new file mode 100644 index 0000000..6a43593 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/MATHACL_1.0.xml @@ -0,0 +1,133 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/OPA0_1.0.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/OPA0_1.0.xml new file mode 100644 index 0000000..a17fcb6 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/OPA0_1.0.xml @@ -0,0 +1,110 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/OPA1_1.0.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/OPA1_1.0.xml new file mode 100644 index 0000000..f60bcc8 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/OPA1_1.0.xml @@ -0,0 +1,110 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/RTC_1.0.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/RTC_1.0.xml new file mode 100644 index 0000000..41f5a67 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/RTC_1.0.xml @@ -0,0 +1,702 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/SPI0_1.0.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/SPI0_1.0.xml new file mode 100644 index 0000000..d121fdb --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/SPI0_1.0.xml @@ -0,0 +1,652 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/SPI1_1.0.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/SPI1_1.0.xml new file mode 100644 index 0000000..0247abb --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/SPI1_1.0.xml @@ -0,0 +1,652 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/SYSCTL_1.0.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/SYSCTL_1.0.xml new file mode 100644 index 0000000..fb4c600 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/SYSCTL_1.0.xml @@ -0,0 +1,1729 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/SYSMEM_1.0.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/SYSMEM_1.0.xml new file mode 100644 index 0000000..e6ef24e --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/SYSMEM_1.0.xml @@ -0,0 +1,3 @@ + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/TIMA0_1.0.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/TIMA0_1.0.xml new file mode 100644 index 0000000..6244317 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/TIMA0_1.0.xml @@ -0,0 +1,1351 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/TIMA1_1.0.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/TIMA1_1.0.xml new file mode 100644 index 0000000..1cfa19f --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/TIMA1_1.0.xml @@ -0,0 +1,970 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/TIMG0_1.0.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/TIMG0_1.0.xml new file mode 100644 index 0000000..9ea7d2a --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/TIMG0_1.0.xml @@ -0,0 +1,673 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/TIMG12_1.0.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/TIMG12_1.0.xml new file mode 100644 index 0000000..a2353d9 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/TIMG12_1.0.xml @@ -0,0 +1,687 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/TIMG6_1.0.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/TIMG6_1.0.xml new file mode 100644 index 0000000..ad05b0e --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/TIMG6_1.0.xml @@ -0,0 +1,708 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/TIMG7_1.0.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/TIMG7_1.0.xml new file mode 100644 index 0000000..30c5ff4 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/TIMG7_1.0.xml @@ -0,0 +1,708 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/TIMG8_1.0.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/TIMG8_1.0.xml new file mode 100644 index 0000000..aa88534 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/TIMG8_1.0.xml @@ -0,0 +1,719 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/TRNG_1.0.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/TRNG_1.0.xml new file mode 100644 index 0000000..bf1186e --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/TRNG_1.0.xml @@ -0,0 +1,216 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/UART0_1.0.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/UART0_1.0.xml new file mode 100644 index 0000000..558723f --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/UART0_1.0.xml @@ -0,0 +1,923 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/UART1_1.0.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/UART1_1.0.xml new file mode 100644 index 0000000..77d4bb3 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/UART1_1.0.xml @@ -0,0 +1,763 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/UART2_1.0.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/UART2_1.0.xml new file mode 100644 index 0000000..7b774a6 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/UART2_1.0.xml @@ -0,0 +1,763 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/UART3_1.0.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/UART3_1.0.xml new file mode 100644 index 0000000..0f561ec --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/UART3_1.0.xml @@ -0,0 +1,763 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/VREF_1.0.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/VREF_1.0.xml new file mode 100644 index 0000000..d1edb3a --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/VREF_1.0.xml @@ -0,0 +1,74 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/WUC_1.0.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/WUC_1.0.xml new file mode 100644 index 0000000..a7e34c3 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/WUC_1.0.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/WWDT0_1.0.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/WWDT0_1.0.xml new file mode 100644 index 0000000..d3e99b7 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/WWDT0_1.0.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/WWDT1_1.0.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/WWDT1_1.0.xml new file mode 100644 index 0000000..a855672 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/Modules/msp/mspm0g1x0x_g3x0x/WWDT1_1.0.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/connections/TIXDS110_Connection.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/connections/TIXDS110_Connection.xml new file mode 100644 index 0000000..3c3741b --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/connections/TIXDS110_Connection.xml @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/cpus/cortex_m0p.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/cpus/cortex_m0p.xml new file mode 100644 index 0000000..f697909 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/cpus/cortex_m0p.xml @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/cpus/sec_ap.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/cpus/sec_ap.xml new file mode 100644 index 0000000..7b7da58 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/cpus/sec_ap.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/devices/MSPM0G3507.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/devices/MSPM0G3507.xml new file mode 100644 index 0000000..c9ab51f --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/devices/MSPM0G3507.xml @@ -0,0 +1,130 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/drivers/TI_reg_ids/CS_DAP_0_regids.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/drivers/TI_reg_ids/CS_DAP_0_regids.xml new file mode 100644 index 0000000..cdd2668 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/drivers/TI_reg_ids/CS_DAP_0_regids.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/drivers/TI_reg_ids/CS_DAP_PC_0_regids.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/drivers/TI_reg_ids/CS_DAP_PC_0_regids.xml new file mode 100644 index 0000000..fac8015 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/drivers/TI_reg_ids/CS_DAP_PC_0_regids.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/drivers/TI_reg_ids/TMS225C00_regids.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/drivers/TI_reg_ids/TMS225C00_regids.xml new file mode 100644 index 0000000..695624b --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/drivers/TI_reg_ids/TMS225C00_regids.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/drivers/TI_reg_ids/TMS470RAX_regids.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/drivers/TI_reg_ids/TMS470RAX_regids.xml new file mode 100644 index 0000000..41f5570 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/drivers/TI_reg_ids/TMS470RAX_regids.xml @@ -0,0 +1,234 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/drivers/TI_reg_ids/TMS470RXX_regids.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/drivers/TI_reg_ids/TMS470RXX_regids.xml new file mode 100644 index 0000000..989d8b6 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/drivers/TI_reg_ids/TMS470RXX_regids.xml @@ -0,0 +1,671 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/drivers/TI_reg_ids/regids.xsd b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/drivers/TI_reg_ids/regids.xsd new file mode 100644 index 0000000..1a9b013 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/drivers/TI_reg_ids/regids.xsd @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/drivers/tixds510cortexM0.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/drivers/tixds510cortexM0.xml new file mode 100644 index 0000000..dc02cf9 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/drivers/tixds510cortexM0.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/drivers/tixds510cs_dap.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/drivers/tixds510cs_dap.xml new file mode 100644 index 0000000..816e5f5 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/drivers/tixds510cs_dap.xml @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/drivers/tixds510sec_ap.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/drivers/tixds510sec_ap.xml new file mode 100644 index 0000000..caa619e --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/drivers/tixds510sec_ap.xml @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/routers/cs_dap.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/routers/cs_dap.xml new file mode 100644 index 0000000..604ea5b --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/routers/cs_dap.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/setup_parser.xsd b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/setup_parser.xsd new file mode 100644 index 0000000..e6c04e5 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/setup_parser.xsd @@ -0,0 +1,664 @@ + + + + + + Root Element + + + + + + + + + + + + + + + Sub-Root Element + + + + + + + + + + + + + + Sub-Root Element + + + + + + + + + + + + + + + + + Sub-Root Element + + + + + + + + + + + + + + Sub-Root Element + + + + + + + + + + + + + + + + + Sub-Root Element + + + + + + + + + + + + + + + + + + + + Sub-Root Element + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Sub-Root Element + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Sub-Root Element + + + + + + + + + + + + + + + + + + + Sub-Root Element + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Sub-Root Element + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Sub-Root Element + + + + + + + + + + + + + + + + Sub-Root Element + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Sub-Root Element + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/setup_parser_cache.xsd b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/setup_parser_cache.xsd new file mode 100644 index 0000000..c066952 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/targetdb/setup_parser_cache.xsd @@ -0,0 +1,7 @@ + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/Bh560v2Config.jar b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/Bh560v2Config.jar new file mode 100644 index 0000000..376dd46 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/Bh560v2Config.jar differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/Bh560v2Config.properties b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/Bh560v2Config.properties new file mode 100644 index 0000000..e9ae3fc --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/Bh560v2Config.properties @@ -0,0 +1,10 @@ +# +# Bh560v2Config Utility Propeties +# + +# Win32 Properties +win32_help: http://www.blackhawk-dsp.com/support/xds560v2 + +# Linux Properties +linux_help: bh560v2-help.sh http://www.blackhawk-dsp.com/support/xds560v2 +linux_test: bh560v2-dbgjtag.sh diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/bh560eth.out b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/bh560eth.out new file mode 100644 index 0000000..92eb3a7 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/bh560eth.out differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/bh560pci.out b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/bh560pci.out new file mode 100644 index 0000000..e06a228 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/bh560pci.out differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/bh560ubp.out b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/bh560ubp.out new file mode 100644 index 0000000..6eb5521 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/bh560ubp.out differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/bh560usb.out b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/bh560usb.out new file mode 100644 index 0000000..b806f0d Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/bh560usb.out differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/bh560usbm.out b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/bh560usbm.out new file mode 100644 index 0000000..92eb3a7 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/bh560usbm.out differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/bh560v2e_io.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/bh560v2e_io.dll new file mode 100644 index 0000000..3493b17 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/bh560v2e_io.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/bh560v2u_io.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/bh560v2u_io.dll new file mode 100644 index 0000000..357a988 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/bh560v2u_io.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/jioxds110.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/jioxds110.dll new file mode 100644 index 0000000..d7ac483 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/jioxds110.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/jscxds110.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/jscxds110.dll new file mode 100644 index 0000000..01f9678 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/jscxds110.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/jtagdata.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/jtagdata.dll new file mode 100644 index 0000000..d42268e Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/jtagdata.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/xds110/boot_loader.axf b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/xds110/boot_loader.axf new file mode 100644 index 0000000..4bceb56 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/xds110/boot_loader.axf differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/xds110/boot_loader.bin b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/xds110/boot_loader.bin new file mode 100644 index 0000000..252bcd4 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/xds110/boot_loader.bin differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/xds110/firmware_3.0.0.32.bin b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/xds110/firmware_3.0.0.32.bin new file mode 100644 index 0000000..d7f0b3f Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/xds110/firmware_3.0.0.32.bin differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/xds110/xds110reset.exe b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/xds110/xds110reset.exe new file mode 100644 index 0000000..78aeb37 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/xds110/xds110reset.exe differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/xds110/xdsdfu.exe b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/xds110/xdsdfu.exe new file mode 100644 index 0000000..e20e2ab Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/xds110/xdsdfu.exe differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/xdsalias.cfg b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/xdsalias.cfg new file mode 100644 index 0000000..92ea33c --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/xdsalias.cfg @@ -0,0 +1,675 @@ +# config version=3.5 + +# # +# Copyright (c) 2012-2020 Texas Instruments # +# # + +# # +# This file is named `xdsalias.cfg'. # +# # +# This file is a component of USCIF build "35.35.0.0". # +# # +# # + +# # +# This file lists the aliases known to Release 3.5 of USCIF. # +# # +# The title strings following the '~' symbols are families of JTAG targets. # +# The following values of 'legacy', 'modern' and 'alias' are the strings # +# and numbers that USCIF considers aliases for those families. # +# # +# The title strings following the '~' symbols and the string # +# values of 'legacy', 'modern' and 'alias' must conform # +# to the naming rules for USCIF families: # +# # +# 1. The first character must be alphabetic. # +# 2. The later characters must be alpha-numeric or the '_' character. # +# 3. The maximum number of characters is 16. # +# 4. The upper/lower case of characters is not significant. # +# 5. No other characters are valid, including the space and # +# hyphen, and symbols used elsewhere by this file format. # +# # +# The numeric values assigned to 'alias' may be any decimal # +# or hexa-decimal numbers that can be interpreted # +# as a 32-bit unsigned value. # +# # +# 'alias' field contains the value of proc-id which consists of following: # +# bit 31:22 -- family # +# bit 21:10 -- subfamily # +# bit 9:3 -- revision # +# bit 2:0 -- type # + + +~ bypass + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = 0x00400000 # This proc-id (001,0x00,000,0) hard-coded in jtagdata. +~ / +~ generic + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = 0x00800000 # This proc-id (002,0x00,000,0) hard-coded in jtagdata. +~ / +~ icepick_a + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = icepicka # This name used by the FATE test system. + alias = icepick # This was the original family name. + alias = 0x3c000005 # This proc-id (240,0x00,000,5) from CCS22/31. +~ / +~ icepick_b + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = icepickb # This name used by the FATE test system. + alias = 0x3c000405 # Proc-id (240,0x01,000,5). +~ / +~ icepick_c + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = icepickc # This name used by the FATE test system. + alias = 0x3c000805 # Proc-id (240,0x02,000,5). +~ / +~ icepick_c_easy + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = 0x3c00080D # Proc-id (240,0x02,001,5). +~ / +~ icepick_d + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = icepickd # This name used by the FATE test system. + alias = 0x3c000C05 # Proc-id (240,0x03,000,5). +~ / +~ icepick_d_easy + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = 0x3c000C0D # Proc-id (240,0x03,001,5). +~ / +~ icepick_m + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = icepickm # This name used by the FATE test system. + alias = 0x3c003005 # Proc-id (240,0x0C,000,5). +~ / + +~ debugssm + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = debugssm # This name used by the FATE test system. + alias = 0x00c00005 # Proc-id (003,0,0,5). +~ / + +~ router_ni + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = undefined # No extra numeric aliases are defined for this family. +~ / +~ router_nd + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = undefined # No extra numeric aliases are defined for this family. +~ / +~ router_fi + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = undefined # No extra numeric aliases are defined for this family. +~ / +~ router_fd + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = undefined # No extra numeric aliases are defined for this family. +~ / +~ debug460 + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = undefined # No extra numeric aliases are defined for this family. +~ / +~ drp_script_1 + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = radio_1 # This name was found in target-server. + alias = drp1 # This name used by the FATE test system. + alias = 0x19000400 # This proc-id is from CCS22/31. +~ / +~ drp_script_2 + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = radio_2 # This name was found in target-server. + alias = drp2 # This name used by the FATE test system. + alias = 0x19000800 # This proc-id is from CCS22/31. +~ / +~ tms320vc3x + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = ti320vc3x # This alias is used to generate legacy board-cfg files. + alias = 0x5000cc00 # This proc-id (320,0x33,000,0) from old jtagdata. +~ / +~ tms320c4x + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = ti320c4x # This alias is used to generate legacy board-cfg files. + alias = 0x50001000 # This proc-id (320,0x04,000,0) from old jtagdata. +~ / +~ tms320c5x + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = ti320c5x # This alias is used to generate legacy board-cfg files. + alias = 0x50001400 # This proc-id (320,0x05,000,0) from old jtagdata. +~ / +~ tms320c8x + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = ti320c8x # This alias is used to generate legacy board-cfg files. + alias = 0x50002000 # This proc-id (320,0x08,000,0) from old jtagdata. +~ / +~ cortex_axx + type = family # This alias description is for a family. + modern = undefined # This alias is used to generate modern board-cfg files. + legacy = undefined # This alias is used to generate legacy board-cfg files. + alias = 0x75803000 # This proc-id found by viewing XML (470,12,0,0). + alias = 0x75801C00 # Proc-id for cortexA7 (470, 7,0,0). + alias = 0x75802400 # Proc-id for cortexA9 (470, 9,0,0). + alias = 0x75805400 # Proc-id for cortexA15 (470,0x15,0,0). + alias = 0x75814c00 # Proc-id for cortexA53 (470,0x53,0,0). + alias = cortexaxx # This alias is an alternate spelling. + alias = tiger # This is the project-name within TI. + alias = ferrari # This is the project-name within TI. +~ / +~ cortex_rxx + type = family # This alias description is for a family. + modern = undefined # This alias is used to generate modern board-cfg files. + legacy = undefined # This alias is used to generate legacy board-cfg files. + alias = 0x75803400 # This proc-id found by viewing XML (470,13,0,0). + alias = cortexrxx # This alias is an alternate spelling. + alias = serval_e # This is the project-name within TI. +~ / +~ cortex_mxx + type = family # This alias description is for a family. + modern = undefined # This alias is used to generate modern board-cfg files. + legacy = undefined # This alias is used to generate legacy board-cfg files. + alias = 0x75803800 # Proc-id for cortexM3/M4 (470,14,0,0). + alias = 0x7580cc00 # Proc-id for cortexM33 (470,0x33,0,0). + alias = cortexmxx # This alias is an alternate spelling. + alias = sandcat # This is the project-name within TI. +~ / +~ cortex_m0x + type = family # This alias description is for a family. + modern = undefined # This alias is used to generate modern board-cfg files. + legacy = undefined # This alias is used to generate legacy board-cfg files. + alias = 0x75802800 # This proc-id found by viewing XML (470,10,0,0). + alias = cortexm0x # This alias is an alternate spelling. +~ / +~ cs_child + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = 0x38000006 # Proc-id (0x224,0x00,000,6). +~ / +~ cs_dap_pc + type = family # This alias description is for DAP + DAP_PC (OMAP3430) router. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = 0x38000005 # Proc-id (224,0x00,000,5). +~ / +~ cs_dap + type = family # This alias description is for DAP router. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = 0x38000405 # Proc-id (224,0x01,000,5). +~ / +~ cs_tfi + type = family # This alias description is for Coresight Trace Funnel. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = 0x75808C04 # Proc-id (0x1D6,0x23,0x0,0x4). +~ / +~ cs_etb + type = family # This alias description is for Coresight Embedded Buffer. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = 0x75809404 # Proc-id (0x1D6,0x25,0x0,0x4). +~ / +~ cs_adtf + type = family # This alias description is for Coresight DSP Data Formatter. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = 0x7580C004 # Proc-id (0x1D6,0x30,0x0,0x4). +~ / +~ cs_stm + type = family # This alias description is for Coresight System Trace Module. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = 0x75809804 # Proc-id (0x1D6,0x26,0x0,0x4). +~ / +~ cs_itm + type = family # This alias description is for Coresight ITM Trace Module. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = 0x7580980C # Proc-id (0x1D6,0x26,0x1,0x4). +~ / +~ ctset2 + type = family # This alias description is for Coresight System Trace Module. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = 0x75809C04 # Proc-id (0x1D6,0x27,0x0,0x4). +~ / +~ ime + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = 0x30000000 # Proc-id (192,0,0,0). +~ / +~ ilf + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = 0x30000400 # Proc-id (192,1,0,0). +~ / +~ arm7xx + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = tiarm7xx # This alias is used to generate legacy board-cfg files. + alias = ti470r13 # This name was found in board-cfg version-two. + alias = ti470r1x # This name was found in board-cfg version-two. + alias = tms470r1 # This name was found in target-server. + alias = tms470r7 # This name used by the FATE test system. + alias = tms470r721 # This name used by the FATE test system. + alias = 0x75800418 # This proc-id (470,0x01,003,0) from CCS22/31. + alias = 0x758007f8 # This proc-id (470,0x01,127,0) from CCS22/31. +~ / +~ arm9xx + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = tiarm9xx # This alias is used to generate legacy board-cfg files. + alias = tiarm925 # This name was found in board-cfg version-two. + alias = ti470r2x # This name was found in board-cfg version-two. + alias = tms470r2 # This name was found in target-server. + alias = tms470r9 # This name used by the FATE test system. + alias = tms470r925 # This name used by the FATE test system. + alias = 0x75800930 # This proc-id (470,0x02,038,0) from CCS22/31. + alias = 0x75800bf8 # This proc-id (470,0x02,127,0) from CCS22/31. +~ / +~ arm11xx + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = tiarm11xx # This alias is used to generate legacy board-cfg files. + alias = ti470r3 # This name was extrapolated from arm7/9 XML. + alias = tms470r3 # This name was found in target-server. + alias = tms470r11 # This name used by the FATE test system. + alias = tms470r1136 # This name used by the FATE test system. + alias = 0x75800D20 # This proc-id found by viewing XML. +~ / +~ etb11 + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = 0x75801004 # Proc-id (470,0x04,000,4). +~ / +~ tms320c24xx + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = ti320c24x # This alias is used to generate legacy board-cfg files. + alias = ti320c24xx # This name was found in board-cfg version-two. + alias = ti320c20xx # This name was found in board-cfg version-two. + alias = ti320c20x # This name was found in board-cfg version-two. + alias = ti320c2xx # This name was found in board-cfg version-two. + alias = tms320c24 # This name used by the FATE test system. + alias = 0x500083f8 # Proc-id (320,0x20,127,0). + alias = 0x500093f8 # This proc-id (320,0x24,127,0) from CCS22/31. +~ / +~ tms320c27xx + type = family # This alias description is for a family. + modern = undefined # This alias is used to generate modern board-cfg files. + legacy = ti320c27xx # This alias is used to generate legacy board-cfg files. + alias = tms320c27 # This name used by the FATE test system. + alias = 0x50009ff8 # This proc-id (320,0x27,127,0) from CCS22/31. +~ / +~ tms320c28xx + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = ti320c28xx # This alias is used to generate legacy board-cfg files. + alias = tms320c28 # This name used by the FATE test system. + alias = 0x5000a3f8 # This proc-id (320,0x28,127,0) from CCS22/31. +~ / +~ tms320c29xx + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = ti320c29xx # This alias is used to generate legacy board-cfg files. + alias = tms320c29 # This name used by the FATE test system. + alias = 0x5000a7f8 # This proc-id (320,0x29,127,0) from CCS22/31. +~ / +~ iva_calc3 + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = 0x30008000 # Proc-id (192,0x20,00,0). +~ / +~ iva_ecd3 + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = 0x30008008 # Proc-id (192,0x20,01,0). +~ / +~ iva_ilf3 + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = 0x30008010 # Proc-id (192,0x20,02,0). +~ / +~ iva_ime3 + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = 0x30008018 # Proc-id (192,0x20,03,0). +~ / +~ iva_ipe3 + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = 0x30008020 # Proc-id (192,0x20,04,0). +~ / +~ iva_mc3 + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = 0x30008028 # Proc-id (192,0x20,05,0). +~ / +~ cla + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = 0x30008030 # Proc-id (192,0x20,06,0). +~ / +~ cla1 + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = 0x30008038 # Proc-id (192,0x20,07,0). +~ / +~ cla2 + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = 0x30008040 # This proc-id (192,0x20,07,0) from Edward Fewell. +~ / +~ hts + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = 0x30008050 # This proc-id (192,0x20,10,0) +~ / +~ dmpac0 + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = 0x30008058 # This proc-id (192,0x20,11,0) +~ / +~ dmpac1 + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = 0x30008068 # This proc-id (192,0x20,13,0) +~ / +~ vpac0 + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = 0x30008060 # This proc-id (192,0x20,12,0) +~ / +~ vpac1 + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = 0x30008070 # This proc-id (192,0x20,14,0) +~ / +~ vpac2 + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = 0x30008078 # This proc-id (192,0x20,15,0) +~ / +~ pru + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = 0x300080d0 # Proc-id (192,0x20,38,0). +~ / +~ arp32 + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = 0xaf010010 # Proc-id (700,0x40,2,0). +~ / +~ iva2_arp32 + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = 0xaf010410 # Proc-id (700,0x41,2,0). +~ / +~ tms320c54xx + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = ti320c54x # This alias is used to generate legacy board-cfg files. + alias = ti320c5xx # This name was found in board-cfg version-two. + alias = ti320c54xx # This name was found in board-cfg version-two. + alias = tms320c54x # This name was found in target-server. + alias = tms320c541 # This name was found in target-server. + alias = tms320c542 # This name was found in target-server. + alias = tms320c543 # This name was found in target-server. + alias = tms320c545 # This name was found in target-server. + alias = tms320c546 # This name was found in target-server. + alias = tms320c548 # This name was found in target-server. + alias = tms320c549 # This name was found in target-server. + alias = tms320c5402 # This name was found in target-server. + alias = tms320c5409 # This name was found in target-server. + alias = tms320c5410 # This name was found in target-server. + alias = tms320c5416 # This name was found in target-server. + alias = tms320c54 # This name used by the FATE test system. + alias = 0x50015000 # This proc-id (320,0x54,000,0) from CCS22/31. +~ / +~ tms320c55xx + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = ti320c55xx # This alias is used to generate legacy board-cfg files. + alias = tms320c5510 # This name was found in target-server. + alias = tms320c55 # This name used by the FATE test system. + alias = 0x50015400 # This proc-id (320,0x55,000,0) from CCS22/31. +~ / +~ tms320c55plus + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = ryujin # This is the project-name within TI. + alias = 0x50015800 # Proc-id (320,0x56,000,0). +~ / +~ tms320c620x + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = ti320c620x # This alias is used to generate legacy board-cfg files. + alias = ti320c6x # This name was found in board-cfg version-two. + alias = tms320c6201 # This name was found in target-server. + alias = tms320c6202 # This name was found in target-server. + alias = tms320c6203 # This name was found in target-server. + alias = tms320c6204 # This name was found in target-server. + alias = tms320c6205 # This name was found in target-server. + alias = tms320c620 # This name used by the FATE test system. + alias = 0x50018b20 # Proc-id (320,0x62,100,0). + alias = 0x50018800 # This proc-id (320,0x62,000,0) from CCS22/31. + alias = 0x5001bf20 # This proc-id (320,0x6f,100,0) from CCS22/31. +~ / +~ tms320c621x + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = ti320c621x # This alias is used to generate legacy board-cfg files. + alias = ti320c61x # This name was found in board-cfg version-two. + alias = tms320c6211 # This name was found in target-server. + alias = tms320c621 # This name used by the FATE test system. + alias = 0x50018b28 # Proc-id (320,0x62,101,0). + alias = 0x5001bf28 # This proc-id (320,0x6f,101,0) from CCS22/31. +~ / +~ tms320c622x + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = tms320c622 # This name used by the FATE test system. + alias = tms320c6221 # This name used by the FATE test system. + alias = 0x50018b30 # Proc-id (320,0x62,102,0). +~ / +~ tms320c670x + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = ti320c670x # This alias is used to generate legacy board-cfg files. + alias = tms320c670 # This name used by the FATE test system. + alias = tms320c6701 # This name was found in target-server. + alias = 0x50019f20 # Proc-id (320,0x67,100,0). +~ / +~ tms320c671x + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = ti320c671x # This alias is used to generate legacy board-cfg files. + alias = tms320c6711 # This name was found in target-server. + alias = tms320c6712 # This name was found in target-server. + alias = tms320c6713 # This name was found in target-server. + alias = tms320da610 # This name is an alternate name. + alias = tms320c671 # This name used by the FATE test system. + alias = 0x50019f28 # Proc-id (320,0x67,101,0). +~ / +~ tms320c672x + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = antara # This is the project-name within TI. + alias = tms320c6722 # This is one of 3 devices introduced 23rd May 2005. + alias = tms320c6726 # This is one of 3 devices introduced 23rd May 2005. + alias = tms320c6727 # This is one of 3 devices introduced 23rd May 2005. + alias = tms320c672 # This name used by the FATE test system. + alias = tms320c6721 # This name used by the FATE test system. + alias = tms320c6723 # This name used by the FATE test system. + alias = 0x50019F30 # Proc-id (320,0x67,102,0). +~ / +~ tms320c641x + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = ti320c64xx # This alias is used to generate legacy board-cfg files. + alias = tms320c6412 # This name was found in target-server. + alias = tms320c6414 # This name was found in target-server. + alias = tms320c6415 # This name was found in target-server. + alias = tms320c6416 # This name was found in target-server. + alias = tms320dm642 # This name is an alternate name. + alias = kelvin # This is the project-name within TI. + alias = tms320c641 # This name used by the FATE test system. + alias = 0x500193f0 # This proc-id (320,0x64,126,0) from CCS22/31. + alias = 0x500193f8 # This proc-id (320,0x64,127,0) from CCS22/31. +~ / +~ tms320c64plus + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = joule # This is the project-name within TI. + alias = 0x50019348 # Proc-id. + alias = 0x500191b8 # Proc-id (320,0x64,55,0). +~ / +~ tms320c646x + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = tesla # This is the project-name within TI. + alias = 0x50019350 # Proc-id. +~ / +~ tms320c66xx + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = tms320c669x # This is the original family name within TI. + alias = nysh # This is the project-name for Nyquist/Shannon within TI. + alias = 0x50019b68 # Proc-id (320,0x66,109,0). + alias = 0x50019bf8 # Proc-id (320,0x66,127,0). +~ / +~ tms320c674x + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = primus # This is the project-name within TI. + alias = 0x50019f40 # Proc-id. +~ / +~ tms320c71xx + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = c71x # This is the project-name within TI. + alias = 0x5001c7f8 # Proc-id (320,0x71,127,0). +~ / +~ tms320c75xx + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = c75xx # This is the project-name within TI. + alias = 0x5001d7f8 # Proc-id (320,0x75,127,0). +~ / +~ sec_ap + type = family # This alias description is for a family + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = 0x38400004 # Proc-id (225,0x01,0000000,100). +~ / +~ ajsm + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = 0x38400404 # Proc-id (225,0x01,0000000,100). +~ / +~ iva2_calc5 + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = 0x300080d8 # Proc-id (192,0x20,27,0). +~ / +~ iva2_ecd5 + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = 0x300080e0 # Proc-id (192,0x20,28,0). +~ / +~ iva2_ilf5 + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = 0x300080e8 # Proc-id (192,0x20,29,0). +~ / +~ iva2_ime5 + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = 0x300080f0 # Proc-id (192,0x20,30,0). +~ / +~ iva2_ipe5 + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = 0x300080f8 # Proc-id (192,0x20,31,0). +~ / +~ iva2_mc5 + type = family # This alias description is for a family. + modern = undefined # No alias defined for modern board-cfg files. + legacy = undefined # No alias defined for legacy board-cfg files. + alias = 0x30008100 # Proc-id (192,0x20,32,0). +~ / + +# / diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/xdsboard.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/xdsboard.dll new file mode 100644 index 0000000..7077806 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/xdsboard.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/xdserror.cfg b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/xdserror.cfg new file mode 100644 index 0000000..cfb6e5e --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/xdserror.cfg @@ -0,0 +1,4454 @@ +# config version=3.5 + +# # +# Copyright (c) 2011-2020 Texas Instruments # +# # + +# # +# This file is named `xdserror.cfg'. # +# # +# This file is a component of USCIF build "35.35.0.0". # +# # + +# # +# This file lists the errors known to Release 3.5 of USCIF. # +# # +# The multiple line descriptions starting with '^ offset' and # +# finishing with '^ /' are descriptions of error offset mnemonics # +# that ensure unique values for each and every error title. # +# # +# The multiple line descriptions starting with '^ title' and # +# finishing with '! /' are descriptions of error numbers and # +# text strings that provide brief (one-line) error explanations # +# and full (multiple-line) error explanations. # +# # + +#### Here are the error offset descriptions. + +^ offset_zero + origin = uscif + offset_none = 0 + offset_010 = -10 + offset_020 = -20 + offset_030 = -30 + offset_040 = -40 + offset_050 = -50 + offset_060 = -60 + offset_070 = -70 + offset_080 = -80 + offset_090 = -90 +^ / +^ offset_one + origin = uscif + offset_bad = -100 + offset_ocs = -110 + offset_cmd = -120 + offset_sys = -130 + offset_knl = -140 + offset_ftdi = -150 + offset_mem = -160 + offset_reg = -170 + offset_ctl = -180 + offset_rst = -190 +^ / +^ offset_two + origin = uscif + offset_tbc = -200 + offset_lck = -210 + offset_boot = -220 + offset_path = -230 + offset_router = -240 + offset_ecom = -250 + offset_xds110 = -260 + offset_scan = -270 + offset_clk = -280 + offset_xds2xx = -290 +^ / +^ offset_three + origin = uscif + offset_pll = -300 + offset_pgm = -310 + offset_idnt = -320 + offset_cnfg = -330 + offset_hung = -340 + offset_itsabug = -350 + offset_emulog = -360 + offset_nseq = -370 + offset_list = -380 + offset_eeprom = -390 +^ / +^ offset_four + origin = uscif + offset_board1 = -400 + offset_board2 = -410 + offset_offset = -420 + offset_title = -430 + offset_variable = -440 + offset_package = -450 + offset_family = -460 + offset_alias = -470 + offset_device = -480 + offset_subpath = -490 +^ / +^ offset_five + origin = uscif + offset_test1 = -500 + offset_test2 = -510 + offset_logfile = -520 + offset_530 = -530 + offset_540 = -540 + offset_tcpip = -550 + offset_thread = -560 + offset_lua = -570 + offset_strheap = -580 + offset_auto110 = -590 +^ / +^ offset_six + origin = uscif + offset_lib_any = -600 + offset_swd = -610 # These are errors for SWD mode support + offset_dot7_dts = -620 # These are basic dot7 errors for dts issues + offset_dot7_ts = -630 # These are basic dot7 errors for ts issues + offset_et = -640 # These are errors for ET mode support + offset_test3 = -650 + offset_stem = -660 + offset_et2 = -670 + offset_680 = -680 + offset_690 = -690 +^ / +^ offset_seven + origin = uscif + offset_lib_load = -700 +^ / + +#### This is the end of the error offset descriptions. + +#### Here are the 'offset_none' error title descriptions. + +! sc_err_none + origin = uscif + offset = offset_none + number = 0 + alias = undefined + brief = undefined + explain = + "This error number is used when no error has occured." + "It is nothing more than the numerical value '0'." +! / +! sc_err_uscif_start + origin = uscif + offset = offset_none + number = -2 + alias = undefined + brief = undefined + explain = + "This error value '-2' is provided only as an example." + "This is the most positive of the error numbers" + "that are used by USCIF adapters, drivers and utilities." +! / +! sc_err_uscif_finish + origin = uscif + offset = offset_none + number = -999 + alias = undefined + brief = undefined + explain = + "This error value '-999' is provided only as an example." + "This is the most negative of the error numbers" + "that are used by USCIF adapters, drivers and utilities." +! / + +#### Here are the 'offset_bad' error title descriptions. + +! sc_err_bad_generic + origin = uscif + offset = offset_bad + number = 0 + alias = undefined + brief = undefined + explain = + "The controller or software detected an error with an unknown cause." + "This error number is used when detailed information is not available." +! / + +#### Here are the 'offset_ocs' error title descriptions. + +! sc_err_ocs_already_open + origin = uscif + offset = offset_ocs + number = 0 + alias = undefined + brief = + "The controller is already in use by another client." + explain = + "This utility opened the controller but found it already in use." + "You must exit other debuggers and utilities that access the" + "controller because this utility must be the only client." +! / +! sc_err_ocs_open + origin = uscif + offset = offset_ocs + number = -1 + alias = undefined + brief = + "Generic failure when opening the controller." + explain = + "This utility has failed to open the controller correctly." +! / +! sc_err_ocs_close + origin = uscif + offset = offset_ocs + number = -2 + alias = undefined + brief = + "Generic failure when closing the controller." + explain = + "This utility has failed to close the controller correctly." +! / +! sc_err_ocs_hung + origin = uscif + offset = offset_ocs + number = -3 + alias = sc_err_ctl_hung + brief = + "Failure due to controller being hung and not responding." + explain = + "The controller's not-ready signal is taking too long." +! / +! sc_err_ocs_busy + origin = uscif + offset = offset_ocs + number = -4 + alias = sc_err_ctl_busy + brief = + "Failure due to controller operations are taking too long." + explain = + "The controller's commands are taking too long to complete." +! / +! sc_err_ocs_parm + origin = uscif + offset = offset_ocs + number = -5 + alias = sc_err_ctl_parm + brief = + "Failure due to controller operation with a bad function parameter." + explain = + "A bad parameter value passed to a function was detected." + "The controller or software would later enter an invalid state." +! / +! sc_err_ocs_trash + origin = uscif + offset = offset_ocs + number = -6 + alias = sc_err_ctl_trash + brief = + "Failure due to controller operation with a bad structure member." + explain = + "A bad member value in a structure was detected." + "The controller or software has already entered an invalid state." +! / +! sc_err_ocs_number + origin = uscif + offset = offset_ocs + number = -7 + alias = sc_err_ctl_number + brief = + "Failure due to attempt to access too many controllers." + explain = + "The hardware or software support only limited numbers of controllers." +! / +! sc_err_ocs_port + origin = uscif + offset = offset_ocs + number = -8 + alias = sc_err_ctl_port + brief = + "Failure due to attempt to access controller at bad port address." + explain = + "The hardware or software support only limited values of port addresses." +! / + +#### Here are the 'offset_cmd' error title descriptions. + +! sc_err_cmd_invalid + origin = uscif + offset = offset_cmd + number = 0 + alias = undefined + brief = + "An invalid command was used in a SMG_call()." + explain = + "This error number is used when a command is invalid." + "It is likely a problem with `SC_CMD' in SMG_call()" + "selecting a function that has not been implemented." +! / +! sc_err_cmd_handle + origin = uscif + offset = offset_cmd + number = -1 + alias = undefined + brief = + "An invalid controller handle was used in a SMG_call()." + explain = + "A bad controller handle has been given to a function," + "either before attempting to open the controller, or after" + "having opened the controller and ignored its error status." + "Valid controller handles are generated when attempts" + "to open the controller return a clean error status." +! / +! sc_err_cmd_parm + origin = uscif + offset = offset_cmd + number = -2 + alias = undefined + brief = + "An invalid command arguments structure in SMG_open or SMG_call()." + explain = + "A bad parameter value was detected within a function." + "It is likely a problem with `SC_ARGS' in SMG_call()." +! / +! sc_err_cmd_tbc_index + origin = uscif + offset = offset_cmd + number = -3 + alias = undefined + brief = + "An invalid controller index was used in a SMG_call() or SMG_open()." + explain = + "This utility has attempted to exceed the maximum" + "number of different controllers that can be used." + "Depending on the platform for which Unified-SCIF is" + "built, the value of TBC_MAX_CTLRS is either 1 or 256." + "This error is detected in SMG_call()." +! / +! sc_err_cmd_index + origin = uscif + offset = offset_cmd + number = -4 + alias = undefined + brief = + "An invalid command index was used in a SMG_call()." + explain = + "A bad index value was detected within a function." + "It is likely a problem with `SC_CMD' in SMG_call()" + "being out of the bounds of the function table." +! / +! sc_err_cmd_count + origin = uscif + offset = offset_cmd + number = -5 + alias = undefined + brief = + "An invalid count value was used in a SMG_call()." + explain = + "A bad scan count value was detected within a function." + "It is likely a problem with `SC_ARGS' in SMG_call()." +! / +! sc_err_cmd_invalid_zero + origin = uscif + offset = offset_cmd + number = -6 + alias = undefined + brief = + "An operation was attempted that is invalid in zero client mode." + explain = + "Unified-SCIF is operating in zero client mode." + "The operation being attempted is invalid in this mode." + "It is likely a problem with `SC_CMD' in SMG_call()." +! / +! sc_err_cmd_invalid_sngl + origin = uscif + offset = offset_cmd + number = -7 + alias = undefined + brief = + "An operation was attempted that is invalid in single client mode." + explain = + "Unified-SCIF is operating in single client mode." + "The operation being attempted is invalid in this mode." + "It is likely a problem with `SC_CMD' in SMG_call()." +! / +! sc_err_cmd_invalid_mult + origin = uscif + offset = offset_cmd + number = -8 + alias = undefined + brief = + "An operation was attempted that is invalid in multiple client mode." + explain = + "Unified-SCIF is operating in multiple client mode." + "The operation being attempted is invalid in this mode." + "It is likely a problem with `SC_CMD' in SMG_call()." +! / + +#### Here are the 'offset_sys' error title descriptions. + +! sc_err_sys_unknown_os + origin = uscif + offset = offset_sys + number = 0 + alias = undefined + brief = + "The OS or its version is not known to Unified-SCIF." + explain = + "The operating system is not compatible with this utility." +! / +! sc_err_sys_mem_alloc + origin = uscif + offset = offset_sys + number = -1 + alias = undefined + brief = + "The OS has reported an error when allocating memory." + explain = + "The operating system has reported a memory error when allocating memory." +! / +! sc_err_sys_mem_free + origin = uscif + offset = offset_sys + number = -2 + alias = undefined + brief = + "The OS has reported an error when freeing memory." + explain = + "The operating system has reported a memory error when freeing memory." +! / +! sc_err_sys_file_open + origin = uscif + offset = offset_sys + number = -3 + alias = undefined + brief = + "The OS has reported an error when opening a file." + explain = + "The operating system has reported a file system error when opening a file." +! / +! sc_err_sys_file_close + origin = uscif + offset = offset_sys + number = -4 + alias = undefined + brief = + "The OS has reported an error when closing a file." + explain = + "The operating system has reported a file system error when closing a file." +! / +! sc_err_sys_file_read + origin = uscif + offset = offset_sys + number = -5 + alias = undefined + brief = + "The OS has reported an error when reading a file." + explain = + "The operating system has reported a file system error when reading a file." +! / +! sc_err_sys_file_write + origin = uscif + offset = offset_sys + number = -6 + alias = undefined + brief = + "The OS has reported an error when writing a file." + explain = + "The operating system has reported a file system error when writing a file." +! / +! sc_err_sys_file_stat + origin = uscif + offset = offset_sys + number = -7 + alias = undefined + brief = + "The OS has reported an error in the file statistics." + explain = + "The operating system has reported a file system error in the file statistics." +! / + +#### Here are the 'offset_knl' error title descriptions. + +! sc_err_knl_fail + origin = uscif + offset = offset_knl + number = 0 + alias = undefined + brief = + "An attempt to call the kernel driver failed." + explain = + "This utility has failed to communicate with its kernel mode driver." + "Either it has been disabled or an install/un-install failed." +! / +! sc_err_knl_open + origin = uscif + offset = offset_knl + number = -1 + alias = undefined + brief = + "An attempt to open the kernel driver failed." + explain = + "This utility has failed to open its kernel mode driver." + "Either it has been disabled or an install/un-install failed." +! / +! sc_err_knl_close + origin = uscif + offset = offset_knl + number = -2 + alias = undefined + brief = + "An attempt to close the kernel driver failed." + explain = + "This utility has failed to close its kernel mode driver." + "Either it has been disabled or an install/un-install failed." +! / +! sc_err_knl_start + origin = uscif + offset = offset_knl + number = -3 + alias = undefined + brief = + "An attempt to start the kernel driver failed." + explain = + "This utility has failed to start its kernel mode driver." + "Either it has been disabled or an install/un-install failed." +! / +! sc_err_knl_stop + origin = uscif + offset = offset_knl + number = -4 + alias = undefined + brief = + "An attempt to stop the kernel driver failed." + explain = + "This utility has failed to stop its kernel mode driver." + "Either it has been disabled or an install/un-install failed." +! / + +#### Here are the 'offset_ftdi' error title descriptions. + +! sc_err_ftdi_fail + origin = uscif + offset = offset_ftdi + number = 0 + alias = sc_err_pod_fail + brief = + "An attempt to configure the FTDI chip in XDS100 failed." + explain = + "One of the FTDI driver functions used during" + "configuration returned a invalid status or an error." +! / +! sc_err_ftdi_open + origin = uscif + offset = offset_ftdi + number = -1 + alias = sc_err_pod_open + brief = + "An attempt to connect to the FTDI chip in XDS100 failed." + explain = + "One of the FTDI driver functions used during the connect" + "returned bad status or an error. The cause may be one or" + "more of: no XDS100 is plugged in, invalid XDS100 serial number," + "blank XDS100 EEPROM, missing FTDI drivers, faulty USB cable." + "Use the xds100serial command-line utility in the 'common/uscif'" + "folder to verify the XDS100 can be located." +! / +! sc_err_ftdi_close + origin = uscif + offset = offset_ftdi + number = -2 + alias = sc_err_pod_close + brief = + "An attempt to disconnect from the FTDI chip in XDS100 failed." + explain = + "One of the FTDI driver functions used during" + "the disconnect returned bad status or an error." +! / +! sc_err_ftdi_read + origin = uscif + offset = offset_ftdi + number = -3 + alias = sc_err_pod_tbc_read + brief = + "An attempt to read data from the FTDI chip in XDS100 failed." + explain = + "One of the FTDI driver functions used to" + "read data returned bad status or an error." +! / +! sc_err_ftdi_write + origin = uscif + offset = offset_ftdi + number = -4 + alias = sc_err_pod_tbc_write + brief = + "An attempt to write data to the FTDI chip in XDS100 failed." + explain = + "One of the FTDI driver functions used to" + "write data returned bad status or an error." +! / +! sc_err_ftdi_startup + origin = uscif + offset = offset_ftdi + number = -7 + alias = sc_err_pod_startup + brief = + "An attempt to start-up the FTDI chip in XDS100 failed." + explain = + "One of the FTDI driver functions used during" + "start-up returned bad status or an error." +! / +! sc_err_ftdi_shutdown + origin = uscif + offset = offset_ftdi + number = -8 + alias = sc_err_pod_shutdown + brief = + "An attempt to shut-down the FTDI chip in XDS100 failed." + explain = + "One of the FTDI driver functions used during" + "shut-down returned bad status or an error." +! / + +#### Here are the 'offset_mem' error title descriptions. + +! sc_err_mem_alloc + origin = uscif + offset = offset_mem + number = 0 + alias = undefined + brief = undefined + explain = + "An error occurred while allocating controller memory." +! / +! sc_err_mem_free + origin = uscif + offset = offset_mem + number = -1 + alias = undefined + brief = undefined + explain = + "An error occurred while freeing controller memory." +! / +! sc_err_mem_fix_alloc + origin = uscif + offset = offset_mem + number = -2 + alias = undefined + brief = undefined + explain = + "An error occurred while allocating `fixed' controller memory." +! / +! sc_err_mem_fix_free + origin = uscif + offset = offset_mem + number = -3 + alias = undefined + brief = undefined + explain = + "An error occurred while freeing `fixed' controller memory." +! / +! sc_err_mem_share_alloc + origin = uscif + offset = offset_mem + number = -4 + alias = undefined + brief = undefined + explain = + "An error occurred while allocating `shared' memory." +! / +! sc_err_mem_share_free + origin = uscif + offset = offset_mem + number = -5 + alias = undefined + brief = undefined + explain = + "An error occurred while freeing `shared' memory." +! / + +#### Here are the 'offset_reg' error title descriptions. + +! sc_err_reg_invalid + origin = uscif + offset = offset_reg + number = 0 + alias = undefined + brief = + "An invalid address for the test bus controller or support logic." + explain = + "The utility has used an invalid register address when attempting" + "to directly access a test bus controller or its support logic." + "It is likely a problem with `SC_ARGS' in SMG_call()" + "when using SC_CMD_REG_READ or SC_CMD_REG_WRITE." +! / +! sc_err_reg_detect_ctlr + origin = uscif + offset = offset_reg + number = -1 + alias = undefined + brief = + "No test bus controller was found at the specified address." + explain = + "The wrong controller address value has been used." + "A controller cannot be detected even though the" + "selected port does match the hardware configuration." +! / +! sc_err_reg_detect_sprt + origin = uscif + offset = offset_reg + number = -2 + alias = undefined + brief = + "No support-logic was found at the specified address." + explain = + "The wrong support-logic address value has been used." + "A controller cannot be detected even though the" + "selected port does match the hardware configuration." +! / +! sc_err_reg_detect_hiones + origin = uscif + offset = offset_reg + number = -3 + alias = undefined + brief = + "The high half of the test bus controller is stuck at all-ones." + explain = + "The test bus controller or support logic was not detected." + "The high half of their data interface is stuck at all-ones." + "The interface connected to them may be incompatible or broken." +! / +! sc_err_reg_detect_loones + origin = uscif + offset = offset_reg + number = -4 + alias = undefined + brief = + "The low half of the test bus controller is stuck at all-ones." + explain = + "The test bus controller or support logic was not detected." + "The low half of their data interface is stuck at all-ones." + "The interface connected to them may be incompatible or broken." +! / +! sc_err_reg_detect_hizero + origin = uscif + offset = offset_reg + number = -5 + alias = undefined + brief = + "The high half of the test bus controller is stuck at all-zeros." + explain = + "The test bus controller or support logic was not detected." + "The high half of their data interface is stuck at all-zeros." + "The interface connected to them may be incompatible or broken." +! / +! sc_err_reg_detect_lozero + origin = uscif + offset = offset_reg + number = -6 + alias = undefined + brief = + "The low half of the test bus controller is stuck at all-zeros." + explain = + "The test bus controller or support logic was not detected." + "The low half of their data interface is stuck at all-zeros." + "The interface connected to them may be incompatible or broken." +! / + +#### Here are the 'offset_ctl' error title descriptions. + +! sc_err_ctl_no_trg_power + origin = uscif + offset = offset_ctl + number = 0 + alias = undefined + brief = + "The target system has lost its power supply." + explain = + "The controller has detected a target power loss." + "The user must turn-on or connect the power supply for the target." +! / +! sc_err_ctl_no_trg_clock + origin = uscif + offset = offset_ctl + number = -1 + alias = undefined + brief = + "The target system has lost its JTAG clock." + explain = + "The controller has detected a dead JTAG clock." + "The user must turn-on or connect the JTAG clock for the target." +! / +! sc_err_ctl_cbl_break_near + origin = uscif + offset = offset_ctl + number = -2 + alias = undefined + brief = + "The target cable is disconnected near-to the controller." + explain = + "The controller has detected a cable break that is near-to itself." + "The user must connect the cable/pod to the controller." +! / +! sc_err_ctl_cbl_break_far + origin = uscif + offset = offset_ctl + number = -3 + alias = undefined + brief = + "The target cable is disconnected far-from the controller." + explain = + "The controller has detected a cable break far-from itself." + "The user must connect the cable/pod to the target." +! / +! sc_err_ctl_connect_fail + origin = uscif + offset = offset_ctl + number = -4 + alias = undefined + brief = + "The controller has detected a failure in its connection to the target." + explain = + "The controller has detected a failure in its connection to the target." + "This often implies one of the following errors:" + "1. The target cable is disconnected near-to the controller." + "2. The target cable is disconnected far-from the controller." + "3. The target system has lost its JTAG clock." + "4. The target system has lost its power supply." +! / +! sc_err_ctl_pod_version + origin = uscif + offset = offset_ctl + number = -5 + alias = undefined + brief = + "The target cable has an invalid version number." + explain = + "The controller has detected an invalid cable+pod version number." + "The user must install a cable that is compatible" + "with the controller and its software." +! / + +#### Here are the 'offset_rst' error title descriptions. + +! sc_err_rst_serial_reset + origin = uscif + offset = offset_rst + number = 0 + alias = undefined + brief = undefined + explain = + "An attempt to software reset the test bus controller failed." + "This often implies one of the following errors:" + "1. The target cable is disconnected near-to the controller." + "2. The target cable is disconnected far-from the controller." + "3. The target system has lost its JTAG clock." + "4. The target system has lost its power supply." +! / +! sc_err_rst_master_reset + origin = uscif + offset = offset_rst + number = -1 + alias = undefined + brief = undefined + explain = + "An attempt to hardware reset the test bus controller failed." + "This often implies one of the following errors:" + "1. The target cable is disconnected near-to the controller." + "2. The target cable is disconnected far-from the controller." + "3. The target system has lost its JTAG clock." + "4. The target system has lost its power supply." +! / +! sc_err_rst_tbc_access + origin = uscif + offset = offset_rst + number = -2 + alias = undefined + brief = undefined + explain = + "An attempt to access the test bus controller during a reset has failed." + "This often implies one of the following errors:" + "1. The target cable is disconnected near-to the controller." + "2. The target cable is disconnected far-from the controller." + "3. The target system has lost its JTAG clock." + "4. The target system has lost its power supply." +! / +! sc_err_rst_board_reset + origin = uscif + offset = offset_rst + number = -3 + alias = undefined + brief = undefined + explain = + "The board reset specified is not supported by this debug probe." +! / + +#### Here are the 'offset_tbc' error title descriptions. + +! sc_err_tbc_version + origin = uscif + offset = offset_tbc + number = 0 + alias = undefined + brief = undefined + explain = + "The version number of the controller is not valid." +! / +! sc_err_tbc_configure + origin = uscif + offset = offset_tbc + number = -1 + alias = undefined + brief = undefined + explain = + "The controller configuration being attempted is not valid." +! / +! sc_err_tbc_address + origin = uscif + offset = offset_tbc + number = -2 + alias = undefined + brief = undefined + explain = + "A bad test bus controller or support logic address has been used." + "The selected port does not match the hardware configuration." +! / +! sc_err_tbc_compatible + origin = uscif + offset = offset_tbc + number = -3 + alias = undefined + brief = undefined + explain = + "The test bus controller is not compatible with the installed software." +! / + +#### Here are the 'offset_lck' error title descriptions. + +! sc_err_lck_open + origin = uscif + offset = offset_lck + number = 0 + alias = undefined + brief = undefined + explain = + "Failed to open the semaphore for the test bus controller." + "Unified-SCIF was unable to open the semaphore used to" + "express ownership of a controller by a utility or debugger." + "The attempt was probably rejected by the operating system." +! / +! sc_err_lck_close + origin = uscif + offset = offset_lck + number = -1 + alias = undefined + brief = undefined + explain = + "Failed to close the semaphore for the test bus controller." + "Unified-SCIF was unable to close the semaphore used to" + "express ownership of a controller by a utility or debugger." + "The attempt was probably rejected by the operating system." +! / +! sc_err_lck_acquire + origin = uscif + offset = offset_lck + number = -2 + alias = undefined + brief = undefined + explain = + "Failed to acquire the semaphore for the test bus controller." + "Unified-SCIF was unable to acquire the semaphore used to" + "express ownership of a controller by a utility or debugger." + "The attempt was rejected by the operating system." +! / +! sc_err_lck_release + origin = uscif + offset = offset_lck + number = -3 + alias = undefined + brief = undefined + explain = + "Failed to release the semaphore for the test bus controller." + "Unified-SCIF was unable to release the semaphore used to" + "express ownership of a controller by a utility or debugger." + "The attempt was rejected by the operating system." +! / +! sc_err_lck_died + origin = uscif + offset = offset_lck + number = -4 + alias = undefined + brief = undefined + explain = + "The semaphore for the test bus controller is in an abandoned state." + "Unified-SCIF was unable to acquire the semaphore used to" + "express ownership of a controller by a utility or debugger." + "The semaphore became abandoned when the prior owner died." + "The test bus controller may be in an invalid state." +! / +! sc_err_lck_time + origin = uscif + offset = offset_lck + number = -5 + alias = undefined + brief = undefined + explain = + "The semaphore for the test bus controller is in a time-out state." + "Unified-SCIF was unable to acquire the semaphore used to" + "express ownership of a controller by a utility or debugger." + "You may have to exit other clients because the timeout occurred." +! / +! sc_err_lck_owned + origin = uscif + offset = offset_lck + number = -6 + alias = undefined + brief = undefined + explain = + "The semaphore for the test bus controller is in an abused state." + "Unified-SCIF has rejected an attempt by a utility or" + "debugger to use a controller without having acquired" + "the semaphore used to express ownership." +! / + +#### Here are the 'offset_boot' error title descriptions. + +! sc_err_boot_bad_jtagboot_mode + origin = uscif + offset = offset_boot + number = 0 + alias = undefined + brief = + "Invalid JTAG nTRST boot-mode command." + explain = + "The utility or debugger has requested a selection of" + "the JTAG nTRST boot-mode that is invalid." + "The value of USCIF.JTAGBOOT_MODE is probably bad." +! / +! sc_err_boot_bad_jtagboot_value + origin = uscif + offset = offset_boot + number = -1 + alias = undefined + brief = + "Invalid JTAG nTRST boot-mode value." + explain = + "The utility or debugger has requested a selection of" + "the JTAG nTRST boot-mode that is invalid." + "The value of USCIF.JTAGBOOT_VALUE is probably bad." +! / +! sc_err_boot_bad_powerboot_mode + origin = uscif + offset = offset_boot + number = -2 + alias = undefined + brief = + "Invalid Power-on-Reset boot-mode command." + explain = + "The utility or debugger has requested a selection of" + "the Power-on-Reset boot-mode that is invalid." + "The value of USCIF.POWERBOOT_MODE is probably bad." +! / +! sc_err_boot_bad_powerboot_value + origin = uscif + offset = offset_boot + number = -3 + alias = undefined + brief = + "Invalid Power-on-Reset boot-mode value." + explain = + "The utility or debugger has requested a selection of" + "the Power-on-Reset boot-mode that is invalid." + "The value of USCIF.POWERBOOT_VALUE is probably bad." +! / +! sc_err_boot_bad_emuoutput_mode + origin = uscif + offset = offset_boot + number = -4 + alias = undefined + brief = + "Invalid background boot-mode command." + explain = + "The utility or debugger has requested a selection of" + "the background for the boot-modes that is invalid." + "The value of USCIF.EMUOUTPUT_MODE is probably bad." +! / +! sc_err_boot_bad_emuoutput_value + origin = uscif + offset = offset_boot + number = -5 + alias = undefined + brief = + "Invalid background boot-mode value." + explain = + "The utility or debugger has requested a selection of" + "the background for the boot-modes that is invalid." + "The value of USCIF.EMUOUTPUT_VALUE is probably bad." +! / +! sc_err_boot_bad_loopback_mode + origin = uscif + offset = offset_boot + number = -6 + alias = undefined + brief = + "Invalid clock/data loopback command." + explain = + "The utility or debugger has requested a selection of" + "the loopback for JTAG clock and data that is invalid." + "The value of USCIF.LOOPBACK_MODE is probably bad." +! / +! sc_err_boot_bad_loopback_value + origin = uscif + offset = offset_boot + number = -7 + alias = undefined + brief = + "Invalid clock/data loopback value." + explain = + "The utility or debugger has requested a selection of" + "the loopback for JTAG clock and data that is invalid." + "The value of USCIF.LOOPBACK_VALUE is probably bad." +! / +! sc_err_boot_bad_boot_pinmap + origin = uscif + offset = offset_boot + number = -8 + alias = undefined + brief = + "Invalid pinmap value." + explain = + "The utility or debugger has requested a selection of" + "the EMU1/EMU0 pin mapping that is invalid." + "The value of USCIF.BOOT_PINMAP is probably bad." +! / +! sc_err_boot_bad_jtagisolate_mode + origin = uscif + offset = offset_boot + number = -9 + alias = undefined + brief = + "Invalid jtag isolation value." + explain = + "The utility or debugger has requested a selection of" + "the JTAG isolation mode that is invalid." + "The value of USCIF.JTAG_ISOLATE is probably bad." +! / +#### Here are the 'offset_path' error title descriptions. + +! sc_err_path_measure + origin = uscif + offset = offset_path + number = 0 + alias = undefined + brief = undefined + explain = + "The measured lengths of the JTAG IR and DR scan-paths are invalid." + "This indicates that an error exists in the link-delay or scan-path." +! / +! sc_err_path_ir_measure + origin = uscif + offset = offset_path + number = -1 + alias = undefined + brief = undefined + explain = + "The measured length of the JTAG IR instruction path is invalid." + "This indicates that an error exists in the link-delay or scan-path." +! / +! sc_err_path_dr_measure + origin = uscif + offset = offset_path + number = -2 + alias = undefined + brief = undefined + explain = + "The measured length of the JTAG DR data path is invalid." + "This indicates that an error exists in the link-delay or scan-path." +! / +! sc_err_path_broken + origin = uscif + offset = offset_path + number = -3 + alias = undefined + brief = undefined + explain = + "The JTAG IR and DR scan-paths cannot circulate bits, they may be broken." + "An attempt to scan the JTAG scan-path has failed." + "The target's JTAG scan-path appears to be broken" + "with a stuck-at-ones or stuck-at-zero fault." +! / +! sc_err_path_ir_broken + origin = uscif + offset = offset_path + number = -4 + alias = undefined + brief = undefined + explain = + "The instruction scan-path cannot circulate bits, it may be broken." + "An attempt to scan the JTAG instruction registers has failed." + "The target's JTAG instruction path appears to be broken" + "with a stuck-at-ones or stuck-at-zero fault." +! / +! sc_err_path_dr_broken + origin = uscif + offset = offset_path + number = -5 + alias = undefined + brief = undefined + explain = + "The data scan-path cannot circulate bits, it may be broken." + "An attempt to scan the JTAG data registers has failed." + "The target's JTAG data path appears to be broken" + "with a stuck-at-ones or stuck-at-zero fault." +! / + +#### Here are the 'offset_router' error title descriptions. + +! sc_err_router_no_minidriver + origin = uscif + offset = offset_router + number = 0 + alias = undefined + brief = undefined + explain = + "A router family in the board config file has no routing software." +! / +! sc_err_router_secure_subpath + origin = uscif + offset = offset_router + number = -1 + alias = undefined + brief = undefined + explain = + "A router subpath could not be accessed." + "A security error has probably occurred." + "Make sure your device is unlocked." +! / +! sc_err_router_access_subpath + origin = uscif + offset = offset_router + number = -2 + alias = undefined + brief = undefined + explain = + "A router subpath could not be accessed." + "The board configuration file is probably incorrect." +! / + +#### Here are the 'offset_ecom' error title descriptions. + +! sc_err_ecom_emuname + origin = uscif + offset = offset_ecom + number = 0 + alias = undefined + brief = undefined + explain = + "An attempt to access the debug probe via USCIF ECOM has failed." +! / +! sc_err_ecom_no_uscif + origin = uscif + offset = offset_ecom + number = -1 + alias = undefined + brief = undefined + explain = + "An attempt to access the USCIF interface via USCIF ECOM has failed." +! / +! sc_err_ecom_operate + origin = uscif + offset = offset_ecom + number = -2 + alias = undefined + brief = undefined + explain = + "An attempt to operate the USCIF interface via USCIF ECOM has failed." +! / + +#### Here are the 'offset_xds110' error title descriptions. + +! sc_err_xds110_open + origin = uscif + offset = offset_xds110 + number = 0 + alias = undefined + brief = undefined + explain = + "An attempt to connect to the XDS110 failed." + "The cause may be one or more of: no XDS110 is connected, invalid" + "firmware update, invalid XDS110 serial number, or faulty USB" + "cable. The firmware and serial number may be updated using the" + "xdsdfu utility found in the .../ccs_base/common/uscif/xds110" + "directory of your installation. View the XDS110SupportReadMe.pdf" + "file there for instructions." +! / +! sc_err_xds110_fail + origin = uscif + offset = offset_xds110 + number = -1 + alias = undefined + brief = undefined + explain = + "Invalid response was received from the XDS110." +! / +! sc_err_xds110_data_read + origin = uscif + offset = offset_xds110 + number = -2 + alias = undefined + brief = undefined + explain = + "An error occurred when reading the XDS110 data port." +! / + +! sc_err_xds110_version + origin = uscif + offset = offset_xds110 + number = -3 + alias = undefined + brief = undefined + explain = + "A firmware update is required for the XDS110 debug probe." + "Please update the firmware using the xdsdfu utility found in the" + ".../ccs_base/common/uscif/xds110 directory of the installation." + "View the XDS110SupportReadMe.pdf file there for instructions." +! / + +! sc_err_xds110_auto_dfu + origin = uscif + offset = offset_xds110 + number = -4 + alias = undefined + brief = undefined + explain = + "A firmware update is required for the XDS110 debug probe." + "However the firmware updater could not run because another XDS110 or" + "another Tiva MCU based USB device is connected in update mode. Please" + "ensure all other conflicting USB devices have finished their updates;" + "then unplug them and try again." +! / + +! sc_err_xds110_auto_fail + origin = uscif + offset = offset_xds110 + number = -5 + alias = undefined + brief = undefined + explain = + "The firmware updater encountered an error and could not finish. Unplug" + "and re-plug the XDS110, and try again. If the problem remains, try" + "updating the firmware using the xdsdfu utility found in the" + ".../ccs_base/common/uscif/xds110 directory of the installation." + "View the XDS110SupportReadMe.pdf file there for instructions." +! / + +! sc_err_xds110_cpld_update + origin = uscif + offset = offset_xds110 + number = -6 + alias = undefined + brief = undefined + explain = + "An internal error occurred. The CPLD image update failed. Unplug and" + "re-plug the XDS110, and try again." +! / + +! sc_err_xds110_target_supply + origin = uscif + offset = offset_xds110 + number = -7 + alias = undefined + brief = + "The controller detected invalid supply level." + explain = + "The controller could not detect valid target supply. Check target" + "JTAG connection and/or connection setting specifying voltage level." +! / + +! sc_err_xds110_voltage_level + origin = uscif + offset = offset_xds110 + number = -8 + alias = undefined + brief = + "An invalid voltage level has been specified." + explain = + "An invalid voltage level has been specified for the target connection." + "Valid supply range is from 1.8V to 3.6V. Please check connection settings." +! / + +! sc_err_xds110_overcurrent + origin = uscif + offset = offset_xds110 + number = -9 + alias = undefined + brief = + "Overcurrent was detected." + explain = + "An overcurrent has been detected since the last time the XDS110 was power " + "cycled. Please check target connection to probe and power cycle the XDS110." +! / + +#### Here are the 'offset_scan' error title descriptions. + +! sc_err_scan_length_control + origin = uscif + offset = offset_scan + number = 0 + alias = undefined + brief = undefined + explain = + "The length of a scan command was too large for the test bus controller." +! / +! sc_err_scan_length_memory + origin = uscif + offset = offset_scan + number = -1 + alias = undefined + brief = undefined + explain = + "The length of the scan command was too large for the test bus controller's memory." +! / +! sc_err_scan_length_scantest + origin = uscif + offset = offset_scan + number = -2 + alias = undefined + brief = undefined + explain = + "The requested length of the scan-path test was outside the acceptable range." +! / +! sc_err_scan_length_irpath + origin = uscif + offset = offset_scan + number = -3 + alias = undefined + brief = undefined + explain = + "The specified length of the JTAG IR scan-path is too large." +! / +! sc_err_scan_length_drpath + origin = uscif + offset = offset_scan + number = -4 + alias = undefined + brief = undefined + explain = + "The specified length of the JTAG DR scan-path is too large." +! / +! sc_err_scan_poll_busy + origin = uscif + offset = offset_scan + number = -5 + alias = undefined + brief = undefined + explain = + "The attempt to poll a target device exceeded its timeout limit." + "The utility or debugger has requested that a target device be" + "repeatedly accessed for a specific data or status value." + "This has failed because the built-in limit for the maximum number" + "of attempts when polling the JTAG scan-path has been exceeded." +! / + +#### Here are the 'offset_clk' error title descriptions. + +! sc_err_clk_select_hw + origin = uscif + offset = offset_clk + number = 0 + alias = undefined + brief = undefined + explain = + "The programming of TCLK frequency isn't supported by the the hardware." + "The utility or debugger has requested the JTAG clock" + "frequency to be selected. This is invalid because the" + "necessary hardware support has not been implemented." +! / +! sc_err_clk_select_oor + origin = uscif + offset = offset_clk + number = -1 + alias = undefined + brief = undefined + explain = + "The programmed TCLK frequency value is out of the supported range." + "The utility or debugger has requested the JTAG clock" + "frequency to be selected. This has failed because the" + "expected value is too high or too low for the hardware" + "that generates the JTAG clock - its `out of range'." +! / +! sc_err_clk_measure_hw + origin = uscif + offset = offset_clk + number = -2 + alias = undefined + brief = undefined + explain = + "The measurement of TCLK frequency isn't supported by the hardware." + "The utility or debugger has requested the JTAG clock" + "frequency to be measured. This is invalid because the" + "necessary hardware support has not been implemented." +! / +! sc_err_clk_measure_oor + origin = uscif + offset = offset_clk + number = -3 + alias = undefined + brief = undefined + explain = + "The measured TCLK frequency value is out of the supported range." + "The utility or debugger has requested the JTAG clock" + "frequency to be measured. This has failed because the" + "actual value is too high or too low for the hardware" + "that measures the JTAG clock - its `out of range'." +! / +! sc_err_clk_over_flow + origin = uscif + offset = offset_clk + number = -4 + alias = undefined + brief = undefined + explain = + "The PLL auto-ranging function has exceeded its over-flow limit." + "That limit may be suppressed by the USCIF.TCLK_OVERFLOW variable." + "The JTAG clock and JTAG data may have electrical interference" + "or timing problems in the target system or its interconnection." +! / +! sc_err_clk_pll_parm + origin = uscif + offset = offset_clk + number = -5 + alias = undefined + brief = undefined + explain = + "The PLL programming function has detected invalid coordinates." + "This may be an honest-to-goodness software or VHDL bug." +! / +! sc_err_clk_pll_hung + origin = uscif + offset = offset_clk + number = -6 + alias = undefined + brief = undefined + explain = + "The PLL programming function has suffered a timeout." + "This may be an honest-to-goodness software or VHDL bug." +! / +! sc_err_clk_fq_hung + origin = uscif + offset = offset_clk + number = -7 + alias = undefined + brief = undefined + explain = + "The frequency measurement function has suffered a timeout." + "This may be an honest-to-goodness software or VHDL bug." +! / + +#### Here are the 'offset_xds2xx' error title descriptions. + +! sc_err_xds200_version + origin = uscif + offset = offset_xds2xx + number = 0 + alias = undefined + brief = undefined + explain = + "A firmware update is required for the XDS200 debug probe." + "Update the firmware using the xds2xx_conf utility found in the" + ".../ccs_base/common/uscif/xds2xx directory of the installation." + "View the ReadMe.txt file there for instructions." +! / +! sc_err_xds2xx_version + origin = uscif + offset = offset_xds2xx + number = -1 + alias = undefined + brief = undefined + explain = + "A firmware update is required for the XDS2xx debug probe." + "Follow the manufacturer's instructions for updating the firmware." +! / +! sc_err_xds2xx_bad_serial + origin = uscif + offset = offset_xds2xx + number = -2 + alias = undefined + brief = undefined + explain = + "The given XDS2xx serial number is not valid." + "The serial number should begin with 'S200-' followed by 12 " + "hexadecimal digits." +! / +! sc_err_xds2xx_bad_port + origin = uscif + offset = offset_xds2xx + number = -3 + alias = undefined + brief = undefined + explain = + "The given XDS2xx port number is out of range." + "Check the number and if correct, then select the probe by serial " + "number instead." +! / + +#### Here are the 'offset_pll' error title descriptions. + +! sc_err_pll_bad_tclk_program + origin = uscif + offset = offset_pll + number = 0 + alias = undefined + brief = undefined + explain = + "The requested TCLK PLL programming option is invalid." + "The utility or debugger has requested a selection of" + "the JTAG PLL frequency or clock source that is invalid." + "The value of USCIF.TCLK_PROGRAM is probably bad." +! / +! sc_err_pll_bad_tclk_beginning + origin = uscif + offset = offset_pll + number = -1 + alias = undefined + brief = undefined + explain = + "The requested TCLK PLL frequency option is invalid." + "The utility or debugger has requested a selection of" + "the JTAG PLL frequency or clock source that is invalid." + "The value of USCIF.TCLK_BEGINNING is probably bad." +! / +! sc_err_pll_bad_tclk_frequency + origin = uscif + offset = offset_pll + number = -2 + alias = undefined + brief = undefined + explain = + "The requested TCLK PLL frequency option is invalid." + "The utility or debugger has requested a selection of" + "the JTAG PLL frequency or clock source that is invalid." + "The value of USCIF.TCLK_FREQUENCY is probably bad." +! / +! sc_err_pll_bad_tclk_advance + origin = uscif + offset = offset_pll + number = -3 + alias = undefined + brief = undefined + explain = + "The requested TCLK PLL advance option is invalid." + "The utility or debugger has requested a selection of" + "the JTAG PLL frequency increase that is invalid." + "The value of USCIF.TCLK_ADVANCE is probably bad." +! / +! sc_err_pll_bad_tclk_retreat + origin = uscif + offset = offset_pll + number = -4 + alias = undefined + brief = undefined + explain = + "The requested TCLK PLL retreat option is invalid." + "The utility or debugger has requested a selection of" + "the JTAG PLL frequency decrease that is invalid." + "The value of USCIF.TCLK_RETREAT is probably bad." +! / +! sc_err_pll_bad_tclk_reference + origin = uscif + offset = offset_pll + number = -5 + alias = undefined + brief = undefined + explain = + "The requested TCLK PLL reference option is invalid." + "The utility or debugger has requested a selection" + "of the PLL reference frequency that is invalid." + "The value of USCIF.TCLK_REFERENCE is probably bad." +! / +! sc_err_pll_bad_tclk_initial + origin = uscif + offset = offset_pll + number = -6 + alias = undefined + brief = undefined + explain = + "The requested TCLK PLL initial option is invalid." + "The utility or debugger has requested a selection" + "of the PLL initial frequency that is invalid." + "The value of USCIF.TCLK_INITIAL is probably bad." +! / +! sc_err_pll_bad_tclk_terminal + origin = uscif + offset = offset_pll + number = -7 + alias = undefined + brief = undefined + explain = + "The requested TCLK PLL terminal option is invalid." + "The utility or debugger has requested a selection" + "of the PLL terminal frequency that is invalid." + "The value of USCIF.TCLK_TERMINAL is probably bad." +! / +! sc_err_pll_bad_tclk_testmode + origin = uscif + offset = offset_pll + number = -8 + alias = undefined + brief = undefined + explain = + "The requested TCLK PLL scan-test test-mode option is invalid." + "The utility or debugger has requested a selection of the" + "TCLK PLL scan-test test-mode option that is invalid." + "The value of USCIF.TCLK_TESTMODE is probably bad." +! / +! sc_err_pll_bad_tclk_overflow + origin = uscif + offset = offset_pll + number = -9 + alias = undefined + brief = undefined + explain = + "The requested TCLK PLL scan-test over-flow option is invalid." + "The utility or debugger has requested a selection of the" + "TCLK PLL scan-test over-flow option that is invalid." + "The value of USCIF.TCLK_OVERFLOW is probably bad." +! / + +#### Here are the 'offset_pgm' error title descriptions. + +! sc_err_pgm_fpga_not_used + origin = uscif + offset = offset_pgm + number = 0 + alias = undefined + brief = + "The programming of FPGA's isn't supported by the hardware." + explain = + "The programming of FPGA's isn't supported by the hardware." + "The debug probe's hardware may not use an FPGA!" +! / +! sc_err_pgm_fpga_protected + origin = uscif + offset = offset_pgm + number = -1 + alias = undefined + brief = + "An attempt to program the debug probe FPGA failed." + explain = + "An attempt to program the debug probe FPGA failed." + "A likely cause is that the FPGA cannot" + "be re-programmed or is write protected." +! / +! sc_err_pgm_fpga_fail_before + origin = uscif + offset = offset_pgm + number = -2 + alias = undefined + brief = + "The debug probe FPGA programming failed before loading data." + explain = + "An attempt to program the debug probe FPGA failed." + "The failure occurred before loading data." + "A likely cause is the initial FPGA state is bad." +! / +! sc_err_pgm_fpga_fail_during + origin = uscif + offset = offset_pgm + number = -3 + alias = undefined + brief = + "The debug probe FPGA programming failed while loading data." + explain = + "An attempt to program the debug probe FPGA failed." + "The failure occurred during the data load." + "A likely cause is the data given to the FPGA is bad." +! / +! sc_err_pgm_fpga_fail_after + origin = uscif + offset = offset_pgm + number = -4 + alias = undefined + brief = + "The debug probe FPGA programming failed after loading data." + explain = + "An attempt to program the debug probe FPGA failed." + "The failure occurred after loading data." + "A likely cause is the final FPGA state is bad." +! / +! sc_err_pgm_fpga_checksum_bad + origin = uscif + offset = offset_pgm + number = -5 + alias = undefined + brief = + "The debug probe FPGA programming failed for bad check-sum." + explain = + "An attempt to program the debug probe FPGA failed." + "The failure occurred due to a bad check-sum." + "A likely cause is that the FPGA data is invalid." +! / +! sc_err_pgm_fpga_unknown + origin = uscif + offset = offset_pgm + number = -6 + alias = undefined + brief = + "The debug probe FPGA programming failed for unknown reasons." + explain = + "An attempt to program the debug probe FPGA failed." + "The reason is unknown." +! / +! sc_err_pgm_fpga_erased + origin = uscif + offset = offset_pgm + number = -7 + alias = undefined + brief = + "The debug probe FPGA programming failed because it's erased." + explain = + "An attempt to use the debug probe FPGA failed." + "The failure occurred because the FPGA is erased." +! / + +#### Here are the 'offset_idnt' error title descriptions. + +! sc_err_idnt_variable_id + origin = uscif + offset = offset_idnt + number = 0 + alias = undefined + brief = + "The variable identifier is invalid." + explain = + "The variable identifier given by a utility" + "or debugger to Unified-SCIF is invalid." +! / +! sc_err_idnt_package_id + origin = uscif + offset = offset_idnt + number = -1 + alias = undefined + brief = + "The package identifier is invalid." + explain = + "The package identifier given by a utility" + "or debugger to Unified-SCIF is invalid." +! / +! sc_err_idnt_family_id + origin = uscif + offset = offset_idnt + number = -2 + alias = undefined + brief = + "The family identifier is invalid." + explain = + "The family identifier given by a utility" + "or debugger to Unified-SCIF is invalid." +! / +! sc_err_idnt_alias_id + origin = uscif + offset = offset_idnt + number = -3 + alias = undefined + brief = + "The alias identifier is invalid." + explain = + "The alias identifier given by a utility" + "or debugger to Unified-SCIF is invalid." +! / +! sc_err_idnt_device_id + origin = uscif + offset = offset_idnt + number = -4 + alias = undefined + brief = + "The device identifier is invalid." + explain = + "The device identifier given by a utility" + "or debugger to Unified-SCIF is invalid." +! / +! sc_err_idnt_subpath_id + origin = uscif + offset = offset_idnt + number = -5 + alias = undefined + brief = + "The sub-path identifier is invalid." + explain = + "The sub-path identifier given by a utility" + "or debugger to Unified-SCIF is invalid." +! / +! sc_err_idnt_revise_id + origin = uscif + offset = offset_idnt + number = -6 + alias = undefined + brief = + "The revise identifier is invalid." + explain = + "The revise identifier given by a utility" + "or debugger to Unified-SCIF is invalid." +! / +! sc_err_idnt_usage_id + origin = uscif + offset = offset_idnt + number = -7 + alias = undefined + brief = + "The usage identifier is invalid." + explain = + "The usage identifier given by a utility" + "or debugger to Unified-SCIF is invalid." +! / +! sc_err_idnt_inst_id + origin = uscif + offset = offset_idnt + number = -8 + alias = undefined + brief = + "The inst identifier is invalid." + explain = + "The inst identifier given by a utility" + "or debugger to Unified-SCIF is invalid." +! / +! sc_err_idnt_path_id + origin = uscif + offset = offset_idnt + number = -9 + alias = undefined + brief = + "The path identifier is invalid." + explain = + "The path identifier given by a utility" + "or debugger to Unified-SCIF is invalid." +! / + +#### Here are the 'offset_cnfg' error title descriptions. + +! sc_err_cnfg_file_empty + origin = uscif + offset = offset_cnfg + number = 0 + alias = undefined + brief = undefined + explain = + "The configure file's contents are missing." +! / +! sc_err_cnfg_file_size + origin = uscif + offset = offset_cnfg + number = -1 + alias = undefined + brief = undefined + explain = + "The configure file's contents are too large." +! / +! sc_err_cnfg_file_end + origin = uscif + offset = offset_cnfg + number = -2 + alias = undefined + brief = undefined + explain = + "The configure file's end was reached too soon." +! / +! sc_err_cnfg_file_syntax + origin = uscif + offset = offset_cnfg + number = -3 + alias = undefined + brief = undefined + explain = + "The configure file syntax is bad, there are invalid tokens." +! / +! sc_err_cnfg_file_format + origin = uscif + offset = offset_cnfg + number = -4 + alias = undefined + brief = undefined + explain = + "The configure file format is unknown." +! / +! sc_err_cnfg_file_version + origin = uscif + offset = offset_cnfg + number = -5 + alias = undefined + brief = undefined + explain = + "The configure file version is invalid." +! / +! sc_err_cnfg_line_length + origin = uscif + offset = offset_cnfg + number = -6 + alias = undefined + brief = undefined + explain = + "The configure file has lines that are too long." +! / +! sc_err_cnfg_line_number + origin = uscif + offset = offset_cnfg + number = -7 + alias = undefined + brief = undefined + explain = + "The configure file has too many lines." +! / +! sc_err_cnfg_name_bad + origin = uscif + offset = offset_cnfg + number = -8 + alias = undefined + brief = undefined + explain = + "The configure file has a record name that is bad." +! / +! sc_err_cnfg_item_bad + origin = uscif + offset = offset_cnfg + number = -9 + alias = undefined + brief = undefined + explain = + "The configure file has a record value that is bad." +! / + +#### Here are the 'offset_hung' error title descriptions. + +! sc_err_hung_noready + origin = uscif + offset = offset_hung + number = 0 + alias = undefined + brief = undefined + explain = + "Failure due to the controller not-ready signal taking too long." +! / +! sc_err_hung_notestclk + origin = uscif + offset = offset_hung + number = -1 + alias = undefined + brief = undefined + explain = + "Failure due to the controller test-clock signal taking too long." +! / +! sc_err_hung_command + origin = uscif + offset = offset_hung + number = -2 + alias = undefined + brief = undefined + explain = + "Failure due to the controller command-finish taking too long." +! / +! sc_err_hung_rdbuffer + origin = uscif + offset = offset_hung + number = -3 + alias = undefined + brief = undefined + explain = + "Failure due to the controller read-buffer is taking too long." +! / +! sc_err_hung_wrbuffer + origin = uscif + offset = offset_hung + number = -4 + alias = undefined + brief = undefined + explain = + "Failure due to the controller write-buffer is taking too long." +! / +! sc_err_abuse_command + origin = uscif + offset = offset_hung + number = -5 + alias = undefined + brief = undefined + explain = + "Failure due to the controller command-finish has wrong jtag-state." +! / +! sc_err_abuse_rdbuffer + origin = uscif + offset = offset_hung + number = -6 + alias = undefined + brief = undefined + explain = + "Failure due to the controller read-buffer generates too-much data." +! / +! sc_err_abuse_wrbuffer + origin = uscif + offset = offset_hung + number = -7 + alias = undefined + brief = undefined + explain = + "Failure due to the controller write-buffer accepts too-little data." +! / + +#### Here are the 'offset_itsabug' error title descriptions. + +! sc_err_itsabug_a + origin = uscif + offset = offset_itsabug + number = 0 + alias = undefined + brief = undefined + explain = + "Failure due to bug of type 'A' detected in the debug probe VHDL." +! / +! sc_err_itsabug_b + origin = uscif + offset = offset_itsabug + number = -1 + alias = undefined + brief = undefined + explain = + "Failure due to bug of type 'B' detected in the debug probe VHDL." +! / +! sc_err_itsabug_c + origin = uscif + offset = offset_itsabug + number = -2 + alias = undefined + brief = undefined + explain = + "Failure due to bug of type 'C' detected in the debug probe VHDL." +! / +! sc_err_itsabug_d + origin = uscif + offset = offset_itsabug + number = -3 + alias = undefined + brief = undefined + explain = + "Failure due to bug of type 'D' detected in the debug probe VHDL." +! / + +#### Here are the 'offset_emulog' error title descriptions. + +! sc_err_emulog_full + origin = uscif + offset = offset_emulog + number = 0 + alias = undefined + brief = undefined + explain = + "The internal log-file has exceeded the capacity of the debug probe." +! / +! sc_err_emulog_value + origin = uscif + offset = offset_emulog + number = -1 + alias = undefined + brief = undefined + explain = + "The debug probe has put an invalid value in its internal log-file." +! / +! sc_err_emulog_getarray + origin = uscif + offset = offset_emulog + number = -2 + alias = undefined + brief = undefined + explain = + "Failed to read the values stored in the internal log-file." +! / + +#### Here are the 'offset_nseq' error title descriptions. + +! sc_err_nseq_fail + origin = uscif + offset = offset_nseq + number = 0 + alias = undefined + brief = undefined + explain = + "The nano-sequencer operation has failed." +! / +! sc_err_nseq_timeout + origin = uscif + offset = offset_nseq + number = -1 + alias = undefined + brief = undefined + explain = + "The nano-sequencer operation has timed out." + "The command either cannot finish or cannot start." +! / + +#### Here are the 'offset_list' error title descriptions. + +! sc_err_list_device_delete + origin = uscif + offset = offset_list + number = 0 + alias = undefined + brief = undefined + explain = + "An error occurred when deleting a device from the device select list." + "The device may already be off the list." + "Thus it cannot be deleted from that list." +! / +! sc_err_list_device_insert + origin = uscif + offset = offset_list + number = -1 + alias = undefined + brief = undefined + explain = + "An error occurred when inserting a device into the device select list." + "The device may already be on the list." + "Thus it cannot be inserted into that list." +! / +! sc_err_list_subpath_delete + origin = uscif + offset = offset_list + number = -2 + alias = undefined + brief = undefined + explain = + "An error occurred when deleting a sub-path from the sub-path select list." + "The sub-path may already be off the list." + "Thus it cannot be deleted from that list." +! / +! sc_err_list_subpath_insert + origin = uscif + offset = offset_list + number = -3 + alias = undefined + brief = undefined + explain = + "An error occurred when inserting a sub-path into the sub-path select list." + "The sub-path may already be on the list." + "Thus it cannot be inserted into that list." +! / + +#### Here are the 'offset_eeprom' error title descriptions. + +! sc_err_eeprom_avail + origin = uscif + offset = offset_eeprom + number = 0 + alias = undefined + brief = undefined + explain = + "This XDS110 probe does not have an EEPROM installed." +! / +! sc_err_eeprom_access + origin = uscif + offset = offset_eeprom + number = -1 + alias = undefined + brief = undefined + explain = + "The transaction to access the XDS110 EEPROM failed." +! / + +#### Here are the 'offset_board1' error title descriptions. + +! sc_err_board_offset_name + origin = uscif + offset = offset_board1 + number = 0 + alias = undefined + brief = undefined + explain = + "Failed to find the specified offset name in the board config info'." +! / +! sc_err_board_offset_id + origin = uscif + offset = offset_board1 + number = -1 + alias = undefined + brief = undefined + explain = + "Failed to find the specified offset ID in the board config info'." +! / +! sc_err_board_title_name + origin = uscif + offset = offset_board1 + number = -2 + alias = undefined + brief = undefined + explain = + "Failed to find the specified title name in the board config info'." +! / +! sc_err_board_title_id + origin = uscif + offset = offset_board1 + number = -3 + alias = undefined + brief = undefined + explain = + "Failed to find the specified title ID in the board config info'." +! / +! sc_err_board_variable_name + origin = uscif + offset = offset_board1 + number = -4 + alias = sc_err_brd_variable_name + brief = undefined + explain = + "Failed to find the specified variable name in the board config info'." +! / +! sc_err_board_variable_id + origin = uscif + offset = offset_board1 + number = -5 + alias = undefined + brief = undefined + explain = + "Failed to find the specified variable ID in the board config info'." +! / +! sc_err_board_package_name + origin = uscif + offset = offset_board1 + number = -6 + alias = undefined + brief = undefined + explain = + "Failed to find the specified package name in the board config info'." +! / +! sc_err_board_package_id + origin = uscif + offset = offset_board1 + number = -7 + alias = undefined + brief = undefined + explain = + "Failed to find the specified package identifier in the board config info'." +! / + +#### Here are the 'offset_board2' error title descriptions. + +! sc_err_board_family_name + origin = uscif + offset = offset_board2 + number = 0 + alias = undefined + brief = undefined + explain = + "Failed to find the specified family name in the board config info'." +! / +! sc_err_board_family_id + origin = uscif + offset = offset_board2 + number = -1 + alias = undefined + brief = undefined + explain = + "Failed to find the specified family identifier in the board config info'." +! / +! sc_err_board_alias_name + origin = uscif + offset = offset_board2 + number = -2 + alias = undefined + brief = undefined + explain = + "Failed to find the specified alias name in the board config info'." +! / +! sc_err_board_alias_id + origin = uscif + offset = offset_board2 + number = -3 + alias = undefined + brief = undefined + explain = + "Failed to find the specified alias identifier in the board config info'." +! / +! sc_err_board_device_name + origin = uscif + offset = offset_board2 + number = -4 + alias = sc_err_brd_device_name + brief = undefined + explain = + "Failed to find the specified device name in the board config info'." +! / +! sc_err_board_device_id + origin = uscif + offset = offset_board2 + number = -5 + alias = undefined + brief = undefined + explain = + "Failed to find the specified device identifier in the board config info'." +! / +! sc_err_board_subpath_name + origin = uscif + offset = offset_board2 + number = -6 + alias = undefined + brief = undefined + explain = + "Failed to find the specified subpath name in the board config info'." +! / +! sc_err_board_subpath_id + origin = uscif + offset = offset_board2 + number = -7 + alias = undefined + brief = undefined + explain = + "Failed to find the specified subpath ID in the board config info'." +! / + +#### Here are the 'offset_offset' error title descriptions. + +! sc_err_offset_name_empty + origin = uscif + offset = offset_offset + number = 0 + alias = undefined + brief = undefined + explain = + "In the configure file an offset name is empty." +! / +! sc_err_offset_name_length + origin = uscif + offset = offset_offset + number = -1 + alias = undefined + brief = undefined + explain = + "In the configure file an offset name is too long." +! / +! sc_err_offset_name_spell + origin = uscif + offset = offset_offset + number = -2 + alias = undefined + brief = undefined + explain = + "In the configure file an offset name has invalid spelling." + "It must have an alphabetic first character." + "It must use only alphanumeric or underscore characters." +! / +! sc_err_offset_name_unique + origin = uscif + offset = offset_offset + number = -3 + alias = undefined + brief = undefined + explain = + "In the configure file an offset name must be unique, but its already used." +! / +! sc_err_offset_item_absent + origin = uscif + offset = offset_offset + number = -4 + alias = undefined + brief = undefined + explain = + "In the configure file an offset name=value is absent." +! / +! sc_err_offset_item_length + origin = uscif + offset = offset_offset + number = -5 + alias = undefined + brief = undefined + explain = + "In the configure file an offset name=value is too long." +! / +! sc_err_offset_item_bad + origin = uscif + offset = offset_offset + number = -6 + alias = undefined + brief = undefined + explain = + "In the configure file an offset name=value has a bad name or value." +! / +! sc_err_offset_item_2many + origin = uscif + offset = offset_offset + number = -7 + alias = undefined + brief = undefined + explain = + "In the configure file an offset has too many name=values." +! / +! sc_err_offset_bad_finish + origin = uscif + offset = offset_offset + number = -8 + alias = undefined + brief = undefined + explain = + "Invalid attempt to close an offset when not yet in an offset." +! / + +#### Here are the 'offset_title' error title descriptions. + +! sc_err_title_name_empty + origin = uscif + offset = offset_title + number = 0 + alias = undefined + brief = undefined + explain = + "In the configure file an title name is empty." +! / +! sc_err_title_name_length + origin = uscif + offset = offset_title + number = -1 + alias = undefined + brief = undefined + explain = + "In the configure file an title name is too long." +! / +! sc_err_title_name_spell + origin = uscif + offset = offset_title + number = -2 + alias = undefined + brief = undefined + explain = + "In the configure file an title name has invalid spelling." + "It must have an alphabetic first character." + "It must use only alphanumeric or underscore characters." +! / +! sc_err_title_name_unique + origin = uscif + offset = offset_title + number = -3 + alias = undefined + brief = undefined + explain = + "In the configure file an title name must be unique, but its already used." +! / +! sc_err_title_item_absent + origin = uscif + offset = offset_title + number = -4 + alias = undefined + brief = undefined + explain = + "In the configure file an title name=value is absent." +! / +! sc_err_title_item_length + origin = uscif + offset = offset_title + number = -5 + alias = undefined + brief = undefined + explain = + "In the configure file an title name=value is too long." +! / +! sc_err_title_item_bad + origin = uscif + offset = offset_title + number = -6 + alias = undefined + brief = undefined + explain = + "In the configure file an title name=value has a bad name or value." +! / +! sc_err_title_item_2many + origin = uscif + offset = offset_title + number = -7 + alias = undefined + brief = undefined + explain = + "In the configure file an title has too many name=values." +! / +! sc_err_title_bad_finish + origin = uscif + offset = offset_title + number = -8 + alias = undefined + brief = undefined + explain = + "Invalid attempt to close a title when not yet in a title." +! / + +#### Here are the 'offset_variable' error title descriptions. + +! sc_err_variable_name_empty + origin = uscif + offset = offset_variable + number = 0 + alias = undefined + brief = undefined + explain = + "In the configure file a variable name is empty." +! / +! sc_err_variable_name_length + origin = uscif + offset = offset_variable + number = -1 + alias = undefined + brief = undefined + explain = + "In the configure file a variable name is too long." +! / +! sc_err_variable_name_spell + origin = uscif + offset = offset_variable + number = -2 + alias = undefined + brief = undefined + explain = + "In the configure file a variable name has invalid spelling." + "It must have an alphabetic first character." + "It must use only alphanumeric or underscore characters." + "It must use one and only one period as the separator." +! / +! sc_err_variable_name_unique + origin = uscif + offset = offset_variable + number = -3 + alias = undefined + brief = undefined + explain = + "In the configure file a variable name must be unique, but its already used." +! / +! sc_err_variable_item_absent + origin = uscif + offset = offset_variable + number = -4 + alias = undefined + brief = undefined + explain = + "In the configure file a variable name=value is absent." +! / +! sc_err_variable_item_length + origin = uscif + offset = offset_variable + number = -5 + alias = undefined + brief = undefined + explain = + "In the configure file a variable value is too long." +! / +! sc_err_variable_item_bad + origin = uscif + offset = offset_variable + number = -6 + alias = undefined + brief = undefined + explain = + "In the configure file a variable name=value has a bad name or value." +! / +! sc_err_variable_bad_finish + origin = uscif + offset = offset_variable + number = -7 + alias = undefined + brief = undefined + explain = + "Invalid attempt to close a section when not yet in a section." +! / +! sc_err_variable_value_spell + origin = uscif + offset = offset_variable + number = -8 + alias = undefined + brief = undefined + explain = + "Invalid spelling of the value of a configure variable." +! / +! sc_err_variable_name_separate + origin = uscif + offset = offset_variable + number = -9 + alias = undefined + brief = undefined + explain = + "Invalid spelling of the name of a configure variable." + "Variables in modern text files must have one and only one period" + "as the separator between the section name and variable name." + "Variables in legacy text files must have at least one under-score p" + "to permit interpretation as a section name and variable name." +! / + +#### Here are the 'offset_package' error title descriptions. + +! sc_err_package_name_empty + origin = uscif + offset = offset_package + number = 0 + alias = undefined + brief = undefined + explain = + "In the configure file a package name is empty." +! / +! sc_err_package_name_length + origin = uscif + offset = offset_package + number = -1 + alias = undefined + brief = undefined + explain = + "In the configure file a package name is too long." +! / +! sc_err_package_name_spell + origin = uscif + offset = offset_package + number = -2 + alias = undefined + brief = undefined + explain = + "In the configure file a package name has invalid spelling." + "It must have an alphabetic first character." + "It must use only alphanumeric or underscore characters." +! / +! sc_err_package_name_unique + origin = uscif + offset = offset_package + number = -3 + alias = undefined + brief = undefined + explain = + "In the configure file a package name must be unique, but its already used." +! / +! sc_err_package_item_absent + origin = uscif + offset = offset_package + number = -4 + alias = undefined + brief = undefined + explain = + "In the configure file a package name=value is absent." +! / +! sc_err_package_item_length + origin = uscif + offset = offset_package + number = -5 + alias = undefined + brief = undefined + explain = + "In the configure file a package name=value is too long." +! / +! sc_err_package_item_bad + origin = uscif + offset = offset_package + number = -6 + alias = undefined + brief = undefined + explain = + "In the configure file a package name=value has a bad name or value." +! / +! sc_err_package_item_2many + origin = uscif + offset = offset_package + number = -7 + alias = undefined + brief = undefined + explain = + "In the configure file a package has too many name=values." +! / + +#### Here are the 'offset_family' error title descriptions. + +! sc_err_family_name_empty + origin = uscif + offset = offset_family + number = 0 + alias = undefined + brief = undefined + explain = + "In the configure file a family name is empty." +! / +! sc_err_family_name_length + origin = uscif + offset = offset_family + number = -1 + alias = undefined + brief = undefined + explain = + "In the configure file a family name is too long." +! / +! sc_err_family_name_spell + origin = uscif + offset = offset_family + number = -2 + alias = undefined + brief = undefined + explain = + "In the configure file a family name has invalid spelling." + "It must have an alphabetic first character." + "It must use only alphanumeric or underscore characters." +! / +! sc_err_family_name_unique + origin = uscif + offset = offset_family + number = -3 + alias = undefined + brief = undefined + explain = + "In the configure file a family name must be unique, but its already used." +! / +! sc_err_family_item_absent + origin = uscif + offset = offset_family + number = -4 + alias = undefined + brief = undefined + explain = + "In the configure file a family name=value is absent." +! / +! sc_err_family_item_length + origin = uscif + offset = offset_family + number = -5 + alias = undefined + brief = undefined + explain = + "In the configure file a family name=value is too long." +! / +! sc_err_family_item_bad + origin = uscif + offset = offset_family + number = -6 + alias = undefined + brief = undefined + explain = + "In the configure file a family name=value has a bad name or value." +! / +! sc_err_family_item_2many + origin = uscif + offset = offset_family + number = -7 + alias = undefined + brief = undefined + explain = + "In the configure file a family has too many name=values." +! / +! sc_err_family_bad_finish + origin = uscif + offset = offset_family + number = -8 + alias = undefined + brief = undefined + explain = + "Invalid attempt to close a family when not yet in a family." +! / + +#### Here are the 'offset_alias ' error title descriptions. + +! sc_err_alias_name_empty + origin = uscif + offset = offset_alias + number = 0 + alias = undefined + brief = undefined + explain = + "In the configure file an alias name is empty." +! / +! sc_err_alias_name_length + origin = uscif + offset = offset_alias + number = -1 + alias = undefined + brief = undefined + explain = + "In the configure file an alias name is too long." +! / +! sc_err_alias_name_spell + origin = uscif + offset = offset_alias + number = -2 + alias = undefined + brief = undefined + explain = + "In the configure file an alias name has invalid spelling." + "It must have an alphabetic first character." + "It must use only alphanumeric or underscore characters." +! / +! sc_err_alias_name_unique + origin = uscif + offset = offset_alias + number = -3 + alias = undefined + brief = undefined + explain = + "In the configure file an alias name must be unique, but its already used." +! / +! sc_err_alias_item_absent + origin = uscif + offset = offset_alias + number = -4 + alias = undefined + brief = undefined + explain = + "In the configure file an alias name=value is absent." +! / +! sc_err_alias_item_length + origin = uscif + offset = offset_alias + number = -5 + alias = undefined + brief = undefined + explain = + "In the configure file an alias name=value is too long." +! / +! sc_err_alias_item_bad + origin = uscif + offset = offset_alias + number = -6 + alias = undefined + brief = undefined + explain = + "In the configure file an alias name=value has a bad name or value." +! / +! sc_err_alias_item_2many + origin = uscif + offset = offset_alias + number = -7 + alias = undefined + brief = undefined + explain = + "In the configure file an alias has too many name=values." +! / +! sc_err_alias_bad_finish + origin = uscif + offset = offset_alias + number = -8 + alias = undefined + brief = undefined + explain = + "Invalid attempt to close an alias when not yet in an alias." +! / +! sc_err_alias_no_family + origin = uscif + offset = offset_alias + number = -9 + alias = undefined + brief = undefined + explain = + "In the configure file an alias has no matching family." +! / + +#### Here are the 'offset_device' error title descriptions. + +! sc_err_device_name_empty + origin = uscif + offset = offset_device + number = 0 + alias = undefined + brief = undefined + explain = + "In the configure file a device name is empty." +! / +! sc_err_device_name_length + origin = uscif + offset = offset_device + number = -1 + alias = undefined + brief = undefined + explain = + "In the configure file a device name is too long." +! / +! sc_err_device_name_spell + origin = uscif + offset = offset_device + number = -2 + alias = undefined + brief = undefined + explain = + "In the configure file a device name has invalid spelling." + "It must have an alphabetic first character." + "It must use only alphanumeric or underscore characters." +! / +! sc_err_device_name_unique + origin = uscif + offset = offset_device + number = -3 + alias = undefined + brief = undefined + explain = + "In the configure file a device name must be unique, but its already used." +! / +! sc_err_device_item_absent + origin = uscif + offset = offset_device + number = -4 + alias = undefined + brief = undefined + explain = + "In the configure file a device name=value is absent." +! / +! sc_err_device_item_length + origin = uscif + offset = offset_device + number = -5 + alias = undefined + brief = undefined + explain = + "In the configure file a device name=value is too long." +! / +! sc_err_device_item_bad + origin = uscif + offset = offset_device + number = -6 + alias = undefined + brief = undefined + explain = + "In the configure file a device name=value has a bad name or value." +! / +! sc_err_device_item_2many + origin = uscif + offset = offset_device + number = -7 + alias = undefined + brief = undefined + explain = + "In the configure file a device has too many name=values." +! / +! sc_err_device_bad_number + origin = uscif + offset = offset_device + number = -8 + alias = undefined + brief = undefined + explain = + "The expected and actual number of devices don't match." +! / + +#### Here are the 'offset_subpath' error title descriptions. + +! sc_err_subpath_name_empty + origin = uscif + offset = offset_subpath + number = 0 + alias = undefined + brief = undefined + explain = + "In the configure file a subpath name is empty." +! / +! sc_err_subpath_name_length + origin = uscif + offset = offset_subpath + number = -1 + alias = undefined + brief = undefined + explain = + "In the configure file a subpath name is too long." +! / +! sc_err_subpath_name_spell + origin = uscif + offset = offset_subpath + number = -2 + alias = undefined + brief = undefined + explain = + "In the configure file a subpath name has invalid spelling." + "It must have an alphabetic first character." + "It must use only alphanumeric or underscore characters." +! / +! sc_err_subpath_name_unique + origin = uscif + offset = offset_subpath + number = -3 + alias = undefined + brief = undefined + explain = + "In the configure file a subpath name must be unique, but its already used." +! / +! sc_err_subpath_item_absent + origin = uscif + offset = offset_subpath + number = -4 + alias = undefined + brief = undefined + explain = + "In the configure file a subpath name=value is absent." +! / +! sc_err_subpath_item_length + origin = uscif + offset = offset_subpath + number = -5 + alias = undefined + brief = undefined + explain = + "In the configure file a subpath name=value is too long." +! / +! sc_err_subpath_item_bad + origin = uscif + offset = offset_subpath + number = -6 + alias = undefined + brief = undefined + explain = + "In the configure file a subpath name=value has a bad name or value." +! / +! sc_err_subpath_item_2many + origin = uscif + offset = offset_subpath + number = -7 + alias = undefined + brief = undefined + explain = + "In the configure file a subpath has too many name=values." +! / +! sc_err_subpath_bad_number + origin = uscif + offset = offset_subpath + number = -8 + alias = undefined + brief = undefined + explain = + "The expected and actual number of subpaths don't match." +! / +! sc_err_subpath_bad_finish + origin = uscif + offset = offset_subpath + number = -9 + alias = undefined + brief = undefined + explain = + "Invalid attempt to close a sub-path when not yet on a sub-path." +! / + +#### Here are the 'offset_test1' error title descriptions. + +! sc_err_test_external + origin = uscif + offset = offset_test1 + number = 0 + alias = undefined + brief = undefined + explain = + "The hardware selected external frequency failed the scan-path test." + + "The target system appears to be using its own external JTAG clock" + "instead of the clock source provided by this utility or debugger." + "The built-in scan-path reliability test has failed. This indicates" + "that the JTAG controller and its cable cannot reliably communicate" + "with the target system using the hardware selected external frequency." +! / +! sc_err_test_measure + origin = uscif + offset = offset_test1 + number = -1 + alias = undefined + brief = undefined + explain = + "The built-in scan-path length measurement failed." + "The built-in scan-path reliability tests cannot be" + "performed without knowledge of the scan-path length." + "Try specifying the scan-path lengths in the command-line" + "options or board configuration file of this utility or debugger." +! / +! sc_err_test_pllnext + origin = uscif + offset = offset_test1 + number = -2 + alias = undefined + brief = undefined + explain = + "The built-in PLL frequency selection algorithm has failed." + "The built-in auto-range frequency selection method" + "cannot be performed without use of this algorithm." + + "Try using the legacy frequency or a known good specific frequency." +! / +! sc_err_test_automatic1 + origin = uscif + offset = offset_test1 + number = -3 + alias = undefined + brief = undefined + explain = + "The user selected phase-one auto-range frequency failed the scan-path test." + + "The utility or debugger requested the JTAG controller and cable," + "that generate the JTAG clock, to use a user selected feature or" + "algorithm. The built-in scan-path reliability test has failed." + "This indicates that the JTAG controller and its cable cannot reliably" + "communicate with the target system using that feature or algorithm." + + "Try using the legacy frequency or a known good specific frequency." +! / +! sc_err_test_automatic2 + origin = uscif + offset = offset_test1 + number = -4 + alias = undefined + brief = undefined + explain = + "The user selected phase-two auto-range frequency failed the scan-path test." + + "The utility or debugger requested the JTAG controller and cable," + "that generate the JTAG clock, to use a user selected feature or" + "algorithm. The built-in scan-path reliability test has failed." + "This indicates that the JTAG controller and its cable cannot reliably" + "communicate with the target system using that feature or algorithm." + + "Try using the legacy frequency or a known good specific frequency." +! / +! sc_err_test_automatic3 + origin = uscif + offset = offset_test1 + number = -5 + alias = undefined + brief = undefined + explain = + "The user selected phase-three auto-range frequency failed the scan-path test." + + "The utility or debugger requested the JTAG controller and cable," + "that generate the JTAG clock, to use a user selected feature or" + "algorithm. The built-in scan-path reliability test has failed." + "This indicates that the JTAG controller and its cable cannot reliably" + "communicate with the target system using that feature or algorithm." + + "Try using the legacy frequency or a known good specific frequency." +! / +! sc_err_test_adaptive + origin = uscif + offset = offset_test1 + number = -6 + alias = undefined + brief = undefined + explain = + "The user selected synchronous adaptve frequency failed the scan-path test." + + "The utility or debugger requested the JTAG controller and cable," + "that generate the JTAG clock, to use a user selected feature or" + "algorithm. The built-in scan-path reliability test has failed." + "This indicates that the JTAG controller and its cable cannot reliably" + "communicate with the target system using that feature or algorithm." +! / +! sc_err_test_inverter + origin = uscif + offset = offset_test1 + number = -7 + alias = undefined + brief = undefined + explain = + "The user selected asynchronous adaptve frequency failed the scan-path test." + + "The utility or debugger requested the JTAG controller and cable," + "that generate the JTAG clock, to use a user selected feature or" + "algorithm. The built-in scan-path reliability test has failed." + "This indicates that the JTAG controller and its cable cannot reliably" + "communicate with the target system using that feature or algorithm." +! / + +#### Here are the 'offset_test2' error title descriptions. + +! sc_err_test_reference + origin = uscif + offset = offset_test2 + number = 0 + alias = undefined + brief = undefined + explain = + "The pre-defined 'reference' frequency failed the scan-path reliability test." + "That is from the reference oscillator for the internal TCLK's programmable PLL." + + "The utility or debugger requested the JTAG controller and cable," + "that generate the JTAG clock, to provide a user selected fixed" + "frequency. The built-in scan-path reliability test has failed." + "This indicates that the JTAG controller and its cable cannot" + "reliably communicate with the target system at that frequency." +! / +! sc_err_test_minimum + origin = uscif + offset = offset_test2 + number = -1 + alias = undefined + brief = undefined + explain = + "The pre-defined 'minimum' frequency failed the scan-path reliability test." + + "The utility or debugger requested the JTAG controller and cable," + "that generate the JTAG clock, to provide a user selected fixed" + "frequency. The built-in scan-path reliability test has failed." + "This indicates that the JTAG controller and its cable cannot" + "reliably communicate with the target system at that frequency." +! / +! sc_err_test_legacy + origin = uscif + offset = offset_test2 + number = -2 + alias = undefined + brief = undefined + explain = + "The pre-defined 'legacy' frequency failed the scan-path reliability test." + "That 'legacy' frequency matches the 10.368MHz from TI XDS510 debug probes." + + "The utility or debugger requested the JTAG controller and cable," + "that generate the JTAG clock, to provide a user selected fixed" + "frequency. The built-in scan-path reliability test has failed." + "This indicates that the JTAG controller and its cable cannot" + "reliably communicate with the target system at that frequency." +! / +! sc_err_test_exchange + origin = uscif + offset = offset_test2 + number = -3 + alias = undefined + brief = undefined + explain = + "The pre-defined 'exchange' frequency failed the scan-path reliability test." + + "The utility or debugger requested the JTAG controller and cable," + "that generate the JTAG clock, to provide a user selected fixed" + "frequency. The built-in scan-path reliability test has failed." + "This indicates that the JTAG controller and its cable cannot" + "reliably communicate with the target system at that frequency." +! / +! sc_err_test_standard + origin = uscif + offset = offset_test2 + number = -4 + alias = undefined + brief = undefined + explain = + "The pre-defined 'standard' frequency failed the scan-path reliability test." + + "The utility or debugger requested the JTAG controller and cable," + "that generate the JTAG clock, to provide a user selected fixed" + "frequency. The built-in scan-path reliability test has failed." + "This indicates that the JTAG controller and its cable cannot" + "reliably communicate with the target system at that frequency." +! / +! sc_err_test_maximum + origin = uscif + offset = offset_test2 + number = -5 + alias = undefined + brief = undefined + explain = + "The pre-defined 'maximum' frequency failed the scan-path reliability test." + + "The utility or debugger requested the JTAG controller and cable," + "that generate the JTAG clock, to provide a user selected fixed" + "frequency. The built-in scan-path reliability test has failed." + "This indicates that the JTAG controller and its cable cannot" + "reliably communicate with the target system at that frequency." +! / +! sc_err_test_specific + origin = uscif + offset = offset_test2 + number = -6 + alias = undefined + brief = undefined + explain = + "The user selected specific frequency failed the scan-path reliability test." + + "The utility or debugger requested the JTAG controller and cable," + "that generate the JTAG clock, to provide a user selected fixed" + "frequency. The built-in scan-path reliability test has failed." + "This indicates that the JTAG controller and its cable cannot" + "reliably communicate with the target system at that frequency." +! / + +#### Here are the 'offset_logfile' error title descriptions. + +! sc_err_logfile_full + origin = uscif + offset = offset_logfile + number = 0 + alias = undefined + brief = undefined + explain = + "A test report has exceeded the capacity of its internal log-file." +! / +! sc_err_logfile_value + origin = uscif + offset = offset_logfile + number = -1 + alias = undefined + brief = undefined + explain = + "A test report has put an invalid value in its internal log-file." +! / + +#### Here are the 'offset_tcpip' error title descriptions. + +! sc_err_tcpip_open + origin = uscif + offset = offset_tcpip + number = 0 + alias = undefined + brief = undefined + explain = + "An attempt to start-up the sockets interface failed." + "A system call to start-up the sockets drivers failed." + "The required sockets driver versions may not be installed." +! / +! sc_err_tcpip_close + origin = uscif + offset = offset_tcpip + number = -1 + alias = undefined + brief = undefined + explain = + "An attempt to shut-down the sockets interface failed." + "A system call to shut-down the sockets drivers failed." +! / +! sc_err_tcpip_connect + origin = uscif + offset = offset_tcpip + number = -2 + alias = undefined + brief = undefined + explain = + "An attempt to connect via the sockets interface failed." + "The socket may be busy or have a communcations error." +! / +! sc_err_tcpip_shutdown + origin = uscif + offset = offset_tcpip + number = -3 + alias = undefined + brief = undefined + explain = + "An attempt to disconnect via the sockets interface failed." + "The socket may be busy or have a communcations error." +! / +! sc_err_tcpip_send + origin = uscif + offset = offset_tcpip + number = -4 + alias = undefined + brief = undefined + explain = + "An attempt to send data via the sockets interface failed." + "The remote computer may have closed the connection or" + "there may have been a sockets communication error." +! / +! sc_err_tcpip_recv + origin = uscif + offset = offset_tcpip + number = -5 + alias = undefined + brief = undefined + explain = + "An attempt to receive data via the sockets interface failed." + "The remote computer may have closed the connection or" + "there may have been a sockets communication error." +! / +! sc_err_tcpip_listener + origin = uscif + offset = offset_tcpip + number = -6 + alias = undefined + brief = undefined + explain = + "An attempt to start-up a listener via the sockets interface failed." + "The requested port may be busy or have a communcations error." +! / +! sc_err_tcpip_host + origin = uscif + offset = offset_tcpip + number = -7 + alias = undefined + brief = undefined + explain = + "The remote server host name or IP address is invalid or missing." + "The host name is given in the SEPK.RMT_HOST config variable." +! / + +#### Here are the 'offset_thread' error title descriptions. + +! sc_err_thread_open + origin = uscif + offset = offset_thread + number = 0 + alias = undefined + brief = undefined + explain = + "An attempt to create a thread caused a system error." + "This may be a code error or the system may be low on resources." +! / +! sc_err_thread_close + origin = uscif + offset = offset_thread + number = -1 + alias = undefined + brief = undefined + explain = + "An attempt to destroy a thread caused a system error." + "This may be a code error or the system may be low on resources." +! / +! sc_err_mutex_open + origin = uscif + offset = offset_thread + number = -2 + alias = undefined + brief = undefined + explain = + "An attempt to create a mutex caused a system error." + "This may be a code error or the system may be low on resources." +! / +! sc_err_mutex_close + origin = uscif + offset = offset_thread + number = -3 + alias = undefined + brief = undefined + explain = + "An attempt to destroy a mutex caused a system error." + "This may be a code error or the system may be low on resources." +! / +! sc_err_mutex_lock + origin = uscif + offset = offset_thread + number = -4 + alias = undefined + brief = undefined + explain = + "An attempt to lock a mutex caused a system error." + "This may be a code error or the system may be low on resources." +! / +! sc_err_mutex_unlock + origin = uscif + offset = offset_thread + number = -5 + alias = undefined + brief = undefined + explain = + "An attempt to unlock a mutex caused a system error." + "This may be a code error or the system may be low on resources." +! / + +#### Here are the 'offset_lua' error title descriptions. + +! sc_err_lua_generic + origin = uscif + offset = offset_lua + number = 0 + alias = undefined + brief = undefined + explain = + "The Lua-script interactive shell has reported an error for unspecified reasons." + "This error number is used as a default." +! / + +##### Here are the 'offset_strheap' error title descriptions. + +! sc_err_strheap_generic + origin = uscif + offset = offset_strheap + number = 0 + alias = undefined + brief = undefined + explain = + "The heap string library has reported an error for unspecified reasons." + "This error number is used as a default." +! / + +! sc_err_strheap_alloc + origin = uscif + offset = offset_strheap + number = -1 + alias = undefined + brief = undefined + explain = + "The heap string library reported an error while allocating a heap string." +! / + +! sc_err_strheap_free + origin = uscif + offset = offset_strheap + number = -2 + alias = undefined + brief = undefined + explain = + "The heap string library reported an error while freeing a heap string." +! / + +! sc_err_strheap_put + origin = uscif + offset = offset_strheap + number = -3 + alias = undefined + brief = undefined + explain = + "The heap string library reported an error while putting a single character." +! / + +! sc_err_strheap_get + origin = uscif + offset = offset_strheap + number = -4 + alias = undefined + brief = undefined + explain = + "The heap string library reported an error while getting a string or length." +! / + +! sc_err_strheap_copy + origin = uscif + offset = offset_strheap + number = -5 + alias = undefined + brief = undefined + explain = + "The heap string library reported an error while copying to a heap string." +! / + +! sc_err_strheap_append + origin = uscif + offset = offset_strheap + number = -6 + alias = undefined + brief = undefined + explain = + "The heap string library reported an error while appending to a heap string." +! / + +! sc_err_strheap_compare + origin = uscif + offset = offset_strheap + number = -7 + alias = undefined + brief = undefined + explain = + "The heap string library reported an error while comparing with a heap string." +! / + +#### Here are the 'offset_auto110' error title descriptions. + +! sc_err_auto110_dfu_switch + origin = uscif + offset = offset_auto110 + number = -0 + alias = undefined + brief = + "The XDS110 failed to switch into DFU programming mode." + explain = + "The firmware updater encountered an error and could not finish. The" + "XDS110 failed to switch into the DFU programming mode. Unplug and" + "re-plug the XDS110, and try again. If the problem remains, try" + "updating the firmware using the xdsdfu utility found in the" + ".../ccs_base/common/uscif/xds110 directory of the installation." + "View the XDS110SupportReadMe.pdf file there for instructions." +! / + +! sc_err_auto110_dfu_open + origin = uscif + offset = offset_auto110 + number = -1 + alias = undefined + brief = + "The updater failed to connect to the XDS110 in programming mode." + explain = + "The firmware updater encountered an error and could not finish. The" + "updater failed to connect to the XDS110 in programming mode. Unplug" + "and re-plug the XDS110, and try again. If the problem remains, try" + "updating the firmware using the xdsdfu utility found in the" + ".../ccs_base/common/uscif/xds110 directory of the installation." + "View the XDS110SupportReadMe.pdf file there for instructions." +! / + +! sc_err_auto110_download + origin = uscif + offset = offset_auto110 + number = -2 + alias = undefined + brief = + "The firmware download failed to complete on the XDS110." + explain = + "The firmware updater encountered an error and could not finish. The" + "firmware download failed to complete on the XDS110. Unplug and" + "re-plug the XDS110, and try again. If the problem remains, try" + "updating the firmware using the xdsdfu utility found in the" + ".../ccs_base/common/uscif/xds110 directory of the installation." + "View the XDS110SupportReadMe.pdf file there for instructions." +! / + +! sc_err_auto110_no_update + origin = uscif + offset = offset_auto110 + number = -3 + alias = undefined + brief = + "The update completed, but the firmware is not the required version." + explain = + "The firmware update completed, but the firmware is still not the" + "required version. Try updating to the latest TI Emulation package." + "If the problem remains, you may need to reinstall your software." +! / + +! sc_err_auto110_reconnect + origin = uscif + offset = offset_auto110 + number = -4 + alias = undefined + brief = + "The updater failed to reconnect to the XDS110 after downloading." + explain = + "The firmware updater encountered an error and could not finish. The" + "updater failed to reboot and connect to the XDS110 after downloading" + "the new firmware. Unplug and re-plug the XDS110, and try again. If" + "the problem remains, try updating the firmware using the xdsdfu utility" + "found in the .../ccs_base/common/uscif/xds110 directory of the" + "installation. View the XDS110SupportReadMe.pdf file there for" + "instructions." +! / + +! sc_err_auto110_no_file + origin = uscif + offset = offset_auto110 + number = -5 + alias = undefined + brief = + "The updater could not find the required firmware file." + explain = + "The firmware updater encountered an error and could not finish. The" + "updater could not find required firmware file. Try updating to the" + "latest TI Emulation package. If the problem remains, you may need to" + "reinstall your software." +! / + +#### Here are the 'offset_lib_any' error title descriptions. + +! sc_err_lib_any_locate + origin = uscif + offset = offset_lib_any + number = 0 + alias = undefined + brief = undefined + explain = + "A required dynamic library could not be located." + "The library isn't on the search path." +! / +! sc_err_lib_any_access + origin = uscif + offset = offset_lib_any + number = -1 + alias = undefined + brief = undefined + explain = + "A required dynamic library could not be accessed." + "The library isn't currently loaded." +! / +! sc_err_lib_any_version + origin = uscif + offset = offset_lib_any + number = -2 + alias = undefined + brief = undefined + explain = + "A required dynamic library could not be used." + "The library doesn't have a valid version number." +! / +! sc_err_lib_any_function + origin = uscif + offset = offset_lib_any + number = -3 + alias = undefined + brief = undefined + explain = + "A required dynamic library could not be resolved." + "The library doesn't export a required function." +! / +! sc_err_lib_any_load + origin = uscif + offset = offset_lib_any + number = -4 + alias = undefined + brief = undefined + explain = + "A required dynamic library could not be installed." + "The attempt to load or install the library failed." +! / +! sc_err_lib_any_free + origin = uscif + offset = offset_lib_any + number = -5 + alias = undefined + brief = undefined + explain = + "A required dynamic library could not be removed." + "The attempt to free or remove the library failed." +! / +! sc_err_lib_any_initialise + origin = uscif + offset = offset_lib_any + number = -6 + alias = undefined + brief = undefined + explain = + "A required dynamic library could not be initialised." + "The attempt to initialise the library after loading it has failed." +! / +! sc_err_lib_any_terminate + origin = uscif + offset = offset_lib_any + number = -7 + alias = undefined + brief = undefined + explain = + "A required dynamic library could not be terminated." + "The attempt to terminate the library before freeing it has failed." +! / + +#### Here are the 'offset_swd' error title descriptions. + +! sc_err_swd_support + origin = uscif + offset = offset_swd + number = 0 + alias = undefined + brief = + "SWD mode is not supported on this debug probe." + explain = + "A request was received to execute a SWD operation, but this " + "debug probe is not capable of supporting SWD mode." +! / + +! sc_err_swd_jtag_support + origin = uscif + offset = offset_swd + number = -1 + alias = undefined + brief = + "JTAG requests are not supported while in SWD mode." + explain = + "A request was received to control the JTAG state or to execute a " + "JTAG scan while the debug probe is in SWD mode. JTAG operations " + "over SWD are not supported." +! / + +! sc_err_swd_swd_support + origin = uscif + offset = offset_swd + number = -2 + alias = undefined + brief = + "SWD requests are not supported while in JTAG mode." + explain = + "A request was received to execute an SWD operation while the " + "debug probe is in JTAG mode." +! / + +! sc_err_swd_wait + origin = uscif + offset = offset_swd + number = -3 + alias = undefined + brief = + "Target responded with WAIT to a SWD header request." + explain = + "The target indicates that it is busy. Either try the SWD request " + "again, or abort the transaction." +! / + +! sc_err_swd_fault + origin = uscif + offset = offset_swd + number = -4 + alias = undefined + brief = + "Target responded with FAULT to a SWD header request." + explain = + "The target indicates there is an error condition from a previous SWD " + "request. Clear the error the condition, and try the SWD request again." +! / + +! sc_err_swd_protocol + origin = uscif + offset = offset_swd + number = -5 + alias = undefined + brief = + "Target failed to respond to a SWD header request." + explain = + "The target failed to see a correctly formatted SWD header. The " + "connection to the target may be unreliable. Try lowering the " + "TCLK setting before trying again." +! / + +! sc_err_swd_parity + origin = uscif + offset = offset_swd + number = -6 + alias = undefined + brief = + "Parity error during SWD packet transmission." + explain = + "The data received from the target may be corrupt. The connection " + "to the target may be unreliable. Try lowering the TCLK setting " + "before trying again." +! / + +! sc_err_swd_device_id + origin = uscif + offset = offset_swd + number = -7 + alias = undefined + brief = + "Invalid device ID read during SWD connect." + explain = + "The device ID read during the SWD connect sequence is invalid. " + "The device may not be supported, or the connection to the target " + "may be unreliable. Try lowering the TCLK setting before trying again." +! / + +! sc_err_swd_swo_support + origin = uscif + offset = offset_swd + number = -8 + alias = undefined + brief = + "SWO is not supported by the debug probe firmware." + explain = + "The version of firmware on the debug probe does not support SWO. " + "Update the firmware to the latest version or disable SWO in the " + "target configuration." +! / + +#### Here are the 'offset_dot7_dts' error title descriptions. + +! sc_err_dot7_dts_reg_allones + origin = uscif + offset = offset_dot7_dts + number = 0 + alias = undefined + brief = + "The 1149.7 DTS register read test failed - all-ones from every register." + explain = + "An attempt to read register values from the DTS have failed badly." +! / + +! sc_err_dot7_dts_reg_invalid + origin = uscif + offset = offset_dot7_dts + number = -1 + alias = undefined + brief = + "The 1149.7 DTS register read test failed - invalid data from one or more registers." + explain = + "The reading of DTS register values failed for an unknown reason." +! / + +! sc_err_dot7_dts_reg_signature + origin = uscif + offset = offset_dot7_dts + number = -2 + alias = undefined + brief = + "The 1149.7 DTS register read test failed - bad data from the signature register." + explain = + "The value returned from the DTS signature register" + "suggests the choice of link-delay value is wrong." +! / + +! sc_err_dot7_dts_reg_revision + origin = uscif + offset = offset_dot7_dts + number = -3 + alias = undefined + brief = + "The 1149.7 DTS register read test failed - bad data from the revision register." + explain = + "The value returned from the DTS revision register suggests the" + "actual adapter type is unknown or doesn't match what was expected." +! / + +! sc_err_dot7_cjtag_support + origin = uscif + offset = offset_dot7_dts + number = -4 + alias = undefined + brief = + "1149.7 (cJTAG) is not supported by the debug probe firmware." + explain = + "The version of firmware on the debug probe does not support 1149.7 mode." + "Update the firmware to the latest version or disable 1149.7 mode in the " + "target configuration." +! / + +#### Here are the 'offset_dot7_ts' error title descriptions. + +! sc_err_dot7_ts_reg_allones + origin = uscif + offset = offset_dot7_ts + number = 0 + alias = undefined + brief = + "The 1149.7 TS register read test failed - all-ones from every register." + explain = + "An attempt to read register values from the TS have failed badly." +! / + +! sc_err_dot7_ts_reg_invalid + origin = uscif + offset = offset_dot7_ts + number = -1 + alias = undefined + brief = + "The 1149.7 TS register read test failed - invalid data from one or more registers." + explain = + "The reading of TS register values failed for an unknown reason." +! / + +#### Here are the 'offset_et' error title descriptions. + +! sc_err_et_support + origin = uscif + offset = offset_et + number = 0 + alias = undefined + brief = + "ET mode is not supported on this debug probe or device." + explain = + "A request was received to execute an EnergyTrace operation, but this " + "debug probe or device is not capable of supporting EnergyTrace." +! / + +! sc_err_et_sampl_freq + origin = uscif + offset = offset_et + number = -1 + alias = undefined + brief = + "ET mode was requested with invalid sampling frequency." + explain = + "A request was received to execute EnergyTrace setup operation, but the " + "sampling frequency specified was invalid." +! / + +! sc_err_et_dcdc_trans_timeout + origin = uscif + offset = offset_et + number = -2 + alias = undefined + brief = + "ET mode request timed out when communicating with slave controller." + explain = + "A request was received to communicate with EnergyTrace slave controller, " + "but the slave timed out." +! / + +! sc_err_et_dcdc_comm + origin = uscif + offset = offset_et + number = -3 + alias = undefined + brief = + "ET mode request failed when communicating with slave controller." + explain = + "A request was received to communicate with EnergyTrace slave controller, " + "but the host failed to establish communication." +! / + +! sc_err_et_internal + origin = uscif + offset = offset_et + number = -4 + alias = undefined + brief = + "ET mode request failed due to an internal error." + explain = + "A request was received to execute an EnergyTrace operation, but the " + "request failed due to an internal error." +! / + +! sc_err_et_voltage_unknown + origin = uscif + offset = offset_et + number = -5 + alias = undefined + brief = + "User did not specify voltage level." + explain = + "EnergyTrace was initiated with voltage level set to Default in the " + "connection setting. Voltage level must be specified for EnergyTrace." + "Please change the Voltage Level setting in the target connection " + "to User Specified and enter target voltage level." +! / + +! sc_err_et_dcdc_devid + origin = uscif + offset = offset_et + number = -6 + alias = undefined + brief = + "ET DCDC scan failed to read valid device ID." + explain = + "A request to update EnergyTrace controller firmware failed. " + "An invalid device ID was returned by the controller." +! / + +! sc_err_et_dcdc_flash_veri + origin = uscif + offset = offset_et + number = -7 + alias = undefined + brief = + "ET DCDC flash verification failed." + explain = + "A request to update EnergyTrace controller firmware failed. " + "Flash verification operation did not succeed." +! / + +! sc_err_et_dcdc_fwver + origin = uscif + offset = offset_et + number = -9 + alias = undefined + brief = + "ET DCDC mismatch firmware version" + explain = + "Firmware version of EnergyTrace controller does not match expected " + "value. The auto update of controller firmware did not succeed." +! / + +#### Here are the 'offset_test3' error title descriptions. + +! sc_err_prod_test_support + origin = uscif + offset = offset_test3 + number = 0 + alias = undefined + brief = + "Product testing is not supported" + explain = + "A request was made to perform a product test operation. However the " + "operation is not supported by the debug probe." +! / + +#### Here are the 'offset_stem' error title descriptions. + +! sc_err_stem_support + origin = uscif + offset = offset_stem + number = 0 + alias = undefined + brief = + "STEM mode is not supported on this debug probe or device." + explain = + "A request was received to execute a STEM operation, but this " + "debug probe or device is not capable of supporting STEM." +! / + +! sc_err_stem_internal + origin = uscif + offset = offset_stem + number = -1 + alias = undefined + brief = + "STEM mode request failed due to an internal error." + explain = + "A request was received to execute an STEM operation, but the " + "request failed due to an internal error." +! / + +#### Here are the 'offset_et2' error title descriptions. + +! sc_err_et_hardware + origin = uscif + offset = offset_et2 + number = 0 + alias = undefined + brief = + "ET mode is not supported by this probe's hardware." + explain = + "This debug probe lacks the hardware required to support EnergyTrace." +! / + +! sc_err_et_config + origin = uscif + offset = offset_et2 + number = -1 + alias = undefined + brief = + "ET mode is not supported by this probe's current configuration." + explain = + "This debug probe is in a configuration that is not capable of " + "supporting EnergyTrace. The configuration may be updated using the " + "xdsdfu utility found in the .../ccs_base/common/uscif/xds110 " + "directory of your installation. View the XDS110SupportReadMe.pdf " + "file there for instructions." +! / + +#### Here are the 'offset_lib_load' error title descriptions. + +! sc_err_lib_load_data + origin = uscif + offset = offset_lib_load + number = 0 + alias = undefined + brief = undefined + explain = + "Required dynamic library jtagdata could not be located." + "The library isn't on the search path." +! / +! sc_err_lib_load_probe + origin = uscif + offset = offset_lib_load + number = -1 + alias = undefined + brief = undefined + explain = + "Required dynamic library jtagprobe could not be located." + "The library isn't on the search path." +! / +! sc_err_lib_load_jtag_script + origin = uscif + offset = offset_lib_load + number = -2 + alias = undefined + brief = undefined + explain = + "Required dynamic library jtagscript could not be located." + "The library isn't on the search path." +! / +! sc_err_lib_load_lua_script + origin = uscif + offset = offset_lib_load + number = -3 + alias = undefined + brief = undefined + explain = + "Required dynamic library luascript could not be located." + "The library isn't on the search path." +! / +! sc_err_lib_load_board + origin = uscif + offset = offset_lib_load + number = -4 + alias = undefined + brief = undefined + explain = + "Required dynamic library xdsboard could not be located." + "The library isn't on the search path." +! / +! sc_err_lib_load_error + origin = uscif + offset = offset_lib_load + number = -5 + alias = undefined + brief = undefined + explain = + "Required dynamic library xdserror could not be located." + "The library isn't on the search path." +! / +! sc_err_lib_load_route + origin = uscif + offset = offset_lib_load + number = -6 + alias = undefined + brief = undefined + explain = + "Required dynamic library xdsroute could not be located." + "The library isn't on the search path." +! / +! sc_err_lib_load_icicle + origin = uscif + offset = offset_lib_load + number = -7 + alias = undefined + brief = undefined + explain = + "Required dynamic library xdsicicle could not be located." + "The library isn't on the search path." +! / +! sc_err_lib_load_ecom + origin = uscif + offset = offset_lib_load + number = -8 + alias = undefined + brief = undefined + explain = + "Required dynamic library xdsecom3 could not be located." + "The library isn't on the search path." +! / +! sc_err_lib_load_local + origin = uscif + offset = offset_lib_load + number = -9 + alias = undefined + brief = undefined + explain = + "Required dynamic library xdslocal could not be located." + "The library isn't on the search path." +! / + +! sc_err_lib_load_trove + origin = uscif + offset = offset_lib_load + number = -10 + alias = undefined + brief = undefined + explain = + "Required dynamic library xdstrove could not be located." + "The library isn't on the search path." +! / +! sc_err_lib_load_smg_eng_drv + origin = uscif + offset = offset_lib_load + number = -11 + alias = undefined + brief = undefined + explain = + "Required dynamic library xdsfast3 could not be located." + "The library isn't on the search path." +! / +! sc_err_lib_load_jsm_eng_drv + origin = uscif + offset = offset_lib_load + number = -12 + alias = undefined + brief = undefined + explain = + "Required dynamic library jsmengine could not be located." + "The library isn't on the search path." +! / +! sc_err_lib_load_8990tbc_drv + origin = uscif + offset = offset_lib_load + number = -13 + alias = undefined + brief = undefined + explain = + "Required dynamic library jsc8990 could not be located." + "The library isn't on the search path." +! / +! sc_err_lib_load_nanotbc_drv + origin = uscif + offset = offset_lib_load + number = -14 + alias = undefined + brief = undefined + explain = + "Required dynamic library jscnano could not be located." + "The library isn't on the search path." +! / +! sc_err_lib_load_bitio_drv + origin = uscif + offset = offset_lib_load + number = -15 + alias = undefined + brief = undefined + explain = + "Required dynamic library jscbitio could not be located." + "The library isn't on the search path." +! / +! sc_err_lib_load_serdes_drv + origin = uscif + offset = offset_lib_load + number = -16 + alias = undefined + brief = undefined + explain = + "Required dynamic library jscserdes could not be located." + "The library isn't on the search path." +! / +! sc_err_lib_load_serdesv3_drv + origin = uscif + offset = offset_lib_load + number = -17 + alias = undefined + brief = undefined + explain = + "Required dynamic library jscserdesv3 could not be located." + "The library isn't on the search path." +! / +! sc_err_lib_load_xds110_drv + origin = uscif + offset = offset_lib_load + number = -18 + alias = undefined + brief = undefined + explain = + "Required dynamic library jscxds110 could not be located." + "The library isn't on the search path." +! / +! sc_err_lib_load_8990tbc_isa_ad + origin = uscif + offset = offset_lib_load + number = -19 + alias = undefined + brief = undefined + explain = + "Required dynamic library jca8990isa could not be located." + "The library isn't on the search path." +! / +! sc_err_lib_load_nanotbc_pci_ad + origin = uscif + offset = offset_lib_load + number = -20 + alias = undefined + brief = undefined + explain = + "Required dynamic library jcananopci could not be located." + "The library isn't on the search path." +! / +! sc_err_lib_load_bitio_pp_ad + origin = uscif + offset = offset_lib_load + number = -21 + alias = undefined + brief = undefined + explain = + "Required dynamic library jiobitiopp could not be located." + "The library isn't on the search path." +! / +! sc_err_lib_load_serdes_usb + origin = uscif + offset = offset_lib_load + number = -22 + alias = undefined + brief = undefined + explain = + "Required dynamic library jioserdesusb could not be located." + "The library isn't on the search path." +! / +! sc_err_lib_load_serdesv3_usb + origin = uscif + offset = offset_lib_load + number = -23 + alias = undefined + brief = undefined + explain = + "Required dynamic library jioserdesusbv3 could not be located." + "The library isn't on the search path." +! / +! sc_err_lib_load_xds110_ad + origin = uscif + offset = offset_lib_load + number = -24 + alias = undefined + brief = undefined + explain = + "Required dynamic library jioxds110 could not be located." + "The library isn't on the search path." +! / +! sc_err_lib_load_marshal_ad + origin = uscif + offset = offset_lib_load + number = -25 + alias = undefined + brief = undefined + explain = + "Required dynamic library jcamarshal could not be located." + "The library isn't on the search path." +! / +! sc_err_lib_load_ether_client + origin = uscif + offset = offset_lib_load + number = -26 + alias = undefined + brief = undefined + explain = + "Required dynamic library jtretherclient could not be located." + "The library isn't on the search path." +! / +! sc_err_lib_load_ether_server + origin = uscif + offset = offset_lib_load + number = -27 + alias = undefined + brief = undefined + explain = + "Required dynamic library jtretherserver could not be located." + "The library isn't on the search path." +! / +#### This is the end of the error title descriptions. + +# / diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/xdserror.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/xdserror.dll new file mode 100644 index 0000000..9981caf Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/xdserror.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/xdsfamily.cfg b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/xdsfamily.cfg new file mode 100644 index 0000000..6df63e2 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/xdsfamily.cfg @@ -0,0 +1,1793 @@ +# config version=3.5 + +# # +# Copyright (c) 2012-2020 Texas Instruments # +# # + +# # +# This file is named `xdsfamily.cfg'. # +# # +# This file is a component of USCIF build "35.35.0.0". # +# # +# # + +# # +# This file lists the families known to Release 3.5 of USCIF. # +# # +# The title strings following the '%' symbols are families of JTAG targets. # +# The following 'name=value' pairs are the strings and numbers that # +# represent characteristics that USCIF considers significant # +# for those devices or routers. # +# # +# The title strings following the '%' symbols must # +# conform to the naming rules for USCIF families: # +# # +# 1. The first character must be alphabetic. # +# 2. The later characters must be alpha-numeric or the '_' character. # +# 3. The maximum number of characters is 16. # +# 4. The upper/lower case of characters is not significant. # +# 5. No other characters are valid, including the space and # +# hyphen, and symbols used elsewhere by this file format. # +# # + +# # +# The following description is expressed in words # +# to avoid confusion due to the two contradictory # +# naming conventions for emulator data signals. # +# # +# The device whose data reaches the emulator first # +# is listed first in the board configuration file. # +# This device is a pre-amble for all other devices. # +# This device has the lowest device ID. # +# # +# The device whose data reaches the emulator last # +# is listed last in the board configuration file. # +# This device is a post-amble for all other devices. # +# This device has the highest device ID. # +# # + +# # +# title : This is a one-word description of the family. # +# describe : This is a brief multi-word description of the family. # +# # +# irbits : The length of the instruction register of the device. # +# drbits : The length of the bypass register of the device. # +# xrbits : The length of the extra register of the device. # +# adaptive : The family does/doesn't output an adaptive return clock. # +# onceend : The length of the end delay parameter after a single scan. # +# manyend : The length of the end delay parameter after a repeat scan. # +# fixed_count : The number of fixed memory spaces needed for the device. # +# fixed_size : The size of each fixed memory space allocated for the device. # +# device_count : The actual number of IR/DR scan-paths inside the device. # +# device_routine : The family has an interrogation routine in DBGJTAG. # +# # +# subpath_exist : The family does/doesn't have subpaths - is/isn't a router. # +# subpath_near : The subpaths are nearer to (or farther from) the emulator data input. # +# subpath_adrs : The subpaths are are selected using address values. # +# subpath_incr : The addresses increment (decrement) towards the emulator data input. # +# subpath_count : The maximum number of subpaths supported by the router. # +# subpath_routine : The family has a subpath routine available in USCIF. # +# # + +% bypass + title = "anonymous" + describe = "anonymous device" + irbits = 2 + drbits = 1 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 0 + fixed_size = 0 + device_count = 2 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% generic + title = "anonymous" + describe = "anonymous device" + irbits = 2 + drbits = 1 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 16 + fixed_size = 0x1000 + device_count = 16 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% icepick_a + title = "router" + describe = "scan-path router" + irbits = 2 + drbits = 1 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 0 + fixed_size = 0 + device_count = 4 + device_routine = no + subpath_exist = yes + subpath_near = yes + subpath_adrs = yes + subpath_incr = yes + subpath_count = 16 + subpath_routine = yes +% / +% icepick_b + title = "router" + describe = "scan-path router" + irbits = 2 + drbits = 1 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 0 + fixed_size = 0 + device_count = 4 + device_routine = no + subpath_exist = yes + subpath_near = yes + subpath_adrs = yes + subpath_incr = yes + subpath_count = 16 + subpath_routine = yes +% / +% icepick_c + title = "router" + describe = "scan-path router" + irbits = 6 + drbits = 1 + xrbits = 32 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 0 + fixed_size = 0 + device_count = 4 + device_routine = no + subpath_exist = yes + subpath_near = yes + subpath_adrs = yes + subpath_incr = yes + subpath_count = 32 + subpath_routine = yes +% / +% icepick_c_easy + title = "router" + describe = "scan-path easy-router" + irbits = 6 + drbits = 1 + xrbits = 32 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 0 + fixed_size = 0 + device_count = 4 + device_routine = no + subpath_exist = yes + subpath_near = yes + subpath_adrs = yes + subpath_incr = yes + subpath_count = 32 + subpath_routine = yes +% / +% icepick_d + title = "router" + describe = "scan-path router" + irbits = 6 + drbits = 1 + xrbits = 32 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 0 + fixed_size = 0 + device_count = 4 + device_routine = no + subpath_exist = yes + subpath_near = yes + subpath_adrs = yes + subpath_incr = yes + subpath_count = 32 + subpath_routine = yes +% / +% icepick_d_easy + title = "router" + describe = "scan-path easy-router" + irbits = 6 + drbits = 1 + xrbits = 32 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 0 + fixed_size = 0 + device_count = 4 + device_routine = no + subpath_exist = yes + subpath_near = yes + subpath_adrs = yes + subpath_incr = yes + subpath_count = 32 + subpath_routine = yes +% / +% icepick_m + title = "router" + describe = "scan-path router" + irbits = 4 + drbits = 1 + xrbits = 32 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 0 + fixed_size = 0 + device_count = 4 + device_routine = no + subpath_exist = yes + subpath_near = yes + subpath_adrs = yes + subpath_incr = yes + subpath_count = 32 + subpath_routine = yes +% / +% debugssm + title = "router" + describe = "scan-path router" + irbits = 4 + drbits = 1 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 0 + fixed_size = 0 + device_count = 4 + device_routine = no + subpath_exist = yes + subpath_near = yes + subpath_adrs = yes + subpath_incr = yes + subpath_count = 2 + subpath_routine = yes +% / + +% router_ni + title = "router" + describe = "scan-path pseudo-router" + irbits = 2 + drbits = 1 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 0 + fixed_size = 0 + device_count = 2 + device_routine = no + subpath_exist = yes + subpath_near = yes + subpath_adrs = yes + subpath_incr = yes + subpath_count = 256 + subpath_routine = no +% / +% router_nd + title = "router" + describe = "scan-path pseudo-router" + irbits = 2 + drbits = 1 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 0 + fixed_size = 0 + device_count = 2 + device_routine = no + subpath_exist = yes + subpath_near = yes + subpath_adrs = yes + subpath_incr = no + subpath_count = 256 + subpath_routine = no +% / +% router_fi + title = "router" + describe = "scan-path pseudo-router" + irbits = 2 + drbits = 1 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 0 + fixed_size = 0 + device_count = 2 + device_routine = no + subpath_exist = yes + subpath_near = no + subpath_adrs = yes + subpath_incr = yes + subpath_count = 256 + subpath_routine = no +% / +% router_fd + title = "router" + describe = "scan-path pseudo-router" + irbits = 2 + drbits = 1 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 0 + fixed_size = 0 + device_count = 2 + device_routine = no + subpath_exist = yes + subpath_near = no + subpath_adrs = yes + subpath_incr = no + subpath_count = 256 + subpath_routine = no +% / +% debug460 + title = "router" + describe = "scan-path router" + irbits = 2 + drbits = 1 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 0 + fixed_size = 0 + device_count = 3 + device_routine = no + subpath_exist = yes + subpath_near = yes + subpath_adrs = yes + subpath_incr = yes + subpath_count = 4 + subpath_routine = yes +% / +% drp_script_1 + title = "cpu" + describe = "digital radio processor" + irbits = 3 + drbits = 1 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 0 + fixed_size = 0 + device_count = 4 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% drp_script_2 + title = "cpu" + describe = "digital radio processor" + irbits = 3 + drbits = 1 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 0 + fixed_size = 0 + device_count = 4 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% tms320vc3x + title = "dsp" + describe = "floating-point DSP" + irbits = 8 + drbits = 1 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 8 + fixed_count = 4 + fixed_size = 0x1400 + device_count = 16 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% tms320c4x + title = "dsp" + describe = "floating-point DSP" + irbits = 8 + drbits = 1 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 8 + fixed_count = 16 + fixed_size = 0x1400 + device_count = 16 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% tms320c5x + title = "dsp" + describe = "floating-point DSP" + irbits = 8 + drbits = 1 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 8 + fixed_count = 16 + fixed_size = 0x1400 + device_count = 16 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% tms320c8x + title = "dsp" + describe = "multi-processor DSP" + irbits = 8 + drbits = 1 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 8 + fixed_count = 16 + fixed_size = 0x8300 + device_count = 16 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% cortex_axx + title = "cpu" + describe = "RISC micro-processor" + irbits = 0 + drbits = 0 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 1 + fixed_size = 0x100 + device_count = 6 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% cortex_rxx + title = "cpu" + describe = "RISC micro-processor" + irbits = 0 + drbits = 0 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 1 + fixed_size = 0x100 + device_count = 6 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% cortex_mxx + title = "micro" + describe = "RISC micro-controller" + irbits = 0 + drbits = 0 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 1 + fixed_size = 0x100 + device_count = 6 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% cortex_m0x + title = "micro" + describe = "RISC micro-controller" + irbits = 0 + drbits = 0 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 1 + fixed_size = 0x100 + device_count = 6 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% cs_child + title = "device" + describe = "CoreSight memory-map device" + irbits = 0 + drbits = 0 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 1 + fixed_size = 0x100 + device_count = 2 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% cs_dap_pc + title = "router" + describe = "CoreSight memory-map router" + irbits = 4 + drbits = 1 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 1 + fixed_size = 0x100 + device_count = 6 + device_routine = no + subpath_exist = yes + subpath_near = yes + subpath_adrs = no + subpath_incr = yes + subpath_count = 8 + subpath_routine = yes +% / +% cs_dap + title = "router" + describe = "CoreSight memory-map router" + irbits = 4 + drbits = 1 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 1 + fixed_size = 0x100 + device_count = 6 + device_routine = no + subpath_exist = yes + subpath_near = yes + subpath_adrs = no + subpath_incr = yes + subpath_count = 8 + subpath_routine = yes +% / +% cs_tfi + title = "co-processor" + describe = "CoreSight trace funnel" + irbits = 0 + drbits = 0 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 1 + fixed_size = 0x100 + device_count = 2 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% cs_etb + title = "co-processor" + describe = "CoreSight embedded buffer" + irbits = 0 + drbits = 0 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 1 + fixed_size = 0x100 + device_count = 2 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% cs_adtf + title = "co-processor" + describe = "CoreSight DSP data formatter" + irbits = 0 + drbits = 0 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 1 + fixed_size = 0x100 + device_count = 2 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% cs_stm + title = "co-processor" + describe = "Coresight System trace module" + irbits = 0 + drbits = 0 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 1 + fixed_size = 0x100 + device_count = 2 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% cs_itm + title = "co-processor" + describe = "CS Instrumentation trace module" + irbits = 0 + drbits = 0 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 1 + fixed_size = 0x100 + device_count = 2 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% ctset2 + title = "co-processor" + describe = "Counter Timer and System Event Trace module" + irbits = 0 + drbits = 0 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 1 + fixed_size = 0x100 + device_count = 2 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% ime + title = "co-processor" + describe = "motion estimation accelerator" + irbits = 0 + drbits = 0 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 1 + fixed_size = 0x100 + device_count = 2 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% ilf + title = "co-processor" + describe = "loop filter accelerator" + irbits = 0 + drbits = 0 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 1 + fixed_size = 0x100 + device_count = 2 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% arm7xx + title = "micro" + describe = "RISC micro-controller" + irbits = 4 + drbits = 1 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 8 + fixed_size = 0x1400 + device_count = 16 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% arm9xx + title = "cpu" + describe = "RISC micro-processor" + irbits = 4 + drbits = 1 + xrbits = 0 + adaptive = yes + onceend = 0 + manyend = 0 + fixed_count = 8 + fixed_size = 0x1400 + device_count = 16 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% arm11xx + title = "cpu" + describe = "RISC micro-processor" + irbits = 5 + drbits = 1 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 8 + fixed_size = 0x1400 + device_count = 16 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% etb11 + title = "device" + describe = "embedded trace buffer" + irbits = 4 + drbits = 1 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 1 + fixed_size = 0x100 + device_count = 4 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% tms320c24xx + title = "dsp" + describe = "fixed-point DSP" + irbits = 8 + drbits = 1 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 8 + fixed_size = 0x1400 + device_count = 16 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% tms320c27xx + title = "dsp" + describe = "fixed-point DSP" + irbits = 38 + drbits = 1 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 16 + fixed_size = 0x1400 + device_count = 16 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% tms320c28xx + title = "dsp" + describe = "fixed-point DSP" + irbits = 38 + drbits = 1 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 16 + fixed_size = 0x1400 + device_count = 16 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% tms320c29xx + title = "dsp" + describe = "fixed-point DSP" + irbits = 0 + drbits = 0 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 1 + fixed_size = 0x100 + device_count = 6 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% iva_calc3 + title = "calc3" + describe = "IVA CALC3 Accelerator" + irbits = 0 + drbits = 0 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 1 + fixed_size = 0x100 + device_count = 12 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% iva_ecd3 + title = "ecd3" + describe = "IVA ECD3 Accelerator" + irbits = 0 + drbits = 0 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 1 + fixed_size = 0x100 + device_count = 12 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% iva_ilf3 + title = "ilf3" + describe = "IVA ILF3 Accelerator" + irbits = 0 + drbits = 0 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 1 + fixed_size = 0x100 + device_count = 12 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% iva_ime3 + title = "ime3" + describe = "IVA IME3 Accelerator" + irbits = 0 + drbits = 0 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 1 + fixed_size = 0x100 + device_count = 12 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% iva_ipe3 + title = "ipe3" + describe = "IVA IPE3 Accelerator" + irbits = 0 + drbits = 0 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 1 + fixed_size = 0x100 + device_count = 12 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% iva_mc3 + title = "mc3" + describe = "IVA MC3 Accelerator" + irbits = 0 + drbits = 0 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 1 + fixed_size = 0x100 + device_count = 12 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% cla + title = "cla" + describe = "CLA Accelerator" + irbits = 0 + drbits = 0 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 1 + fixed_size = 0x100 + device_count = 12 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% cla1 + title = "cla1" + describe = "CLA Accelerator" + irbits = 0 + drbits = 0 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 1 + fixed_size = 0x100 + device_count = 12 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% cla2 + title = "cla2" + describe = "CLA2 Accelerator" + irbits = 0 + drbits = 0 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 1 + fixed_size = 0x100 + device_count = 12 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% hts + title = "hts" + describe = "HWA Thread Scheduler" + irbits = 0 + drbits = 0 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 1 + fixed_size = 0x100 + device_count = 12 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% dmpac0 + title = "dmpac0" + describe = "HWA Thread Scheduler" + irbits = 0 + drbits = 0 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 1 + fixed_size = 0x100 + device_count = 12 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% dmpac1 + title = "dmpac1" + describe = "HWA Thread Scheduler" + irbits = 0 + drbits = 0 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 1 + fixed_size = 0x100 + device_count = 12 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% vpac0 + title = "vpac0" + describe = "HWA Thread Scheduler" + irbits = 0 + drbits = 0 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 1 + fixed_size = 0x100 + device_count = 12 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% vpac1 + title = "vpac1" + describe = "HWA Thread Scheduler" + irbits = 0 + drbits = 0 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 1 + fixed_size = 0x100 + device_count = 12 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% vpac2 + title = "vpac2" + describe = "HWA Thread Scheduler" + irbits = 0 + drbits = 0 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 1 + fixed_size = 0x100 + device_count = 12 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% pru + title = "pru" + describe = "PRU Accelerator" + irbits = 0 + drbits = 0 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 1 + fixed_size = 0x100 + device_count = 12 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% arp32 + title = "arp32" + describe = "ARP32 CPU" + irbits = 0 + drbits = 0 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 1 + fixed_size = 0x100 + device_count = 12 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% iva2_arp32 + title = "iva2_arp32" + describe = "IVA2 ARP32 CPU" + irbits = 0 + drbits = 0 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 1 + fixed_size = 0x100 + device_count = 12 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% tms320c54xx + title = "dsp" + describe = "low-power DSP" + irbits = 8 + drbits = 1 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 8 + fixed_count = 16 + fixed_size = 0x1400 + device_count = 16 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% tms320c55xx + title = "dsp" + describe = "low-power DSP" + irbits = 38 + drbits = 1 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 16 + fixed_size = 0x1400 + device_count = 16 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% tms320c55plus + title = "dsp" + describe = "low-power DSP" + irbits = 38 + drbits = 1 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 16 + fixed_size = 0x1400 + device_count = 16 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% tms320c620x + title = "dsp" + describe = "high-performance DSP" + irbits = 8 + drbits = 1 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 16 + fixed_size = 0x1400 + device_count = 16 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% tms320c621x + title = "dsp" + describe = "high-performance DSP" + irbits = 46 + drbits = 1 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 8 + fixed_count = 16 + fixed_size = 0x1400 + device_count = 16 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% tms320c622x + title = "dsp" + describe = "high-performance DSP" + irbits = 46 + drbits = 1 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 8 + fixed_count = 16 + fixed_size = 0x1B00 # Antara requires larger 'fixed_size' + device_count = 16 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% tms320c670x + title = "dsp" + describe = "high-performance DSP" + irbits = 8 + drbits = 1 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 16 + fixed_size = 0x1400 + device_count = 16 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% tms320c671x + title = "dsp" + describe = "high-performance DSP" + irbits = 46 + drbits = 1 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 8 + fixed_count = 16 + fixed_size = 0x1400 + device_count = 16 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% tms320c672x + title = "dsp" + describe = "high-performance DSP" + irbits = 46 + drbits = 1 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 8 + fixed_count = 16 + fixed_size = 0x1B00 # Antara requires larger 'fixed_size' + device_count = 16 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% tms320c641x + title = "dsp" + describe = "high-performance DSP" + irbits = 38 + drbits = 1 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 16 + fixed_count = 16 + fixed_size = 0x1400 + device_count = 16 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% tms320c64plus + title = "dsp" + describe = "high-performance DSP" + irbits = 38 + drbits = 1 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 16 + fixed_count = 16 + fixed_size = 0x1400 + device_count = 16 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% tms320c646x + title = "dsp" + describe = "high-performance DSP" + irbits = 38 + drbits = 1 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 16 + fixed_count = 16 + fixed_size = 0x1400 + device_count = 16 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% tms320c66xx + title = "dsp" + describe = "high-performance DSP" + irbits = 38 + drbits = 1 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 16 + fixed_count = 16 + fixed_size = 0x1400 + device_count = 16 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% tms320c674x + title = "dsp" + describe = "high-performance DSP" + irbits = 38 + drbits = 1 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 16 + fixed_count = 16 + fixed_size = 0x1400 + device_count = 16 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% tms320c71xx + title = "dsp" + describe = "high-performance DSP" + irbits = 0 + drbits = 0 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 1 + fixed_size = 0x100 + device_count = 12 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% tms320c75xx + title = "dsp" + describe = "high-performance DSP" + irbits = 0 + drbits = 0 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 1 + fixed_size = 0x100 + device_count = 12 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% iva2_calc5 + title = "calc3" + describe = "IVA CALC3 Accelerator" + irbits = 0 + drbits = 0 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 1 + fixed_size = 0x100 + device_count = 12 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% iva2_ecd5 + title = "ecd3" + describe = "IVA ECD3 Accelerator" + irbits = 0 + drbits = 0 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 1 + fixed_size = 0x100 + device_count = 12 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% iva2_ilf5 + title = "ilf3" + describe = "IVA ILF3 Accelerator" + irbits = 0 + drbits = 0 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 1 + fixed_size = 0x100 + device_count = 12 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% iva2_ime5 + title = "ime3" + describe = "IVA IME3 Accelerator" + irbits = 0 + drbits = 0 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 1 + fixed_size = 0x100 + device_count = 12 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% iva2_ipe5 + title = "ipe3" + describe = "IVA IPE3 Accelerator" + irbits = 0 + drbits = 0 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 1 + fixed_size = 0x100 + device_count = 12 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% iva2_mc5 + title = "mc3" + describe = "IVA MC3 Accelerator" + irbits = 0 + drbits = 0 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 1 + fixed_size = 0x100 + device_count = 12 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% sec_ap + title = "sec_ap" + describe = "SEC Access Port" + irbits = 0 + drbits = 0 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 1 + fixed_size = 0x100 + device_count = 2 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +% ajsm + title = "ajsm" + describe = "AJSM TAP" + irbits = 4 + drbits = 1 + xrbits = 0 + adaptive = no + onceend = 0 + manyend = 0 + fixed_count = 1 + fixed_size = 0x100 + device_count = 4 + device_routine = no + subpath_exist = no + subpath_near = no + subpath_adrs = no + subpath_incr = no + subpath_count = 0 + subpath_routine = no +% / +# / diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/xdsfast3.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/xdsfast3.dll new file mode 100644 index 0000000..3ef0e9c Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/xdsfast3.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/xdsicicle.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/xdsicicle.dll new file mode 100644 index 0000000..28caca0 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/xdsicicle.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/xdsinitial.cfg b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/xdsinitial.cfg new file mode 100644 index 0000000..3b9648f --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/xdsinitial.cfg @@ -0,0 +1,18 @@ +# config version=3.5 + +# # +# Copyright (c) 2011-2015 Texas Instruments # +# # + +# # +# This file is named `xdsinitial.cfg'. # +# # +# This file is a component of USCIF build "35.35.0.0". # +# # +# # + +# # +# This file lists variables used for initial configuration by Release 3.5 of USCIF. # +# # + +# / diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/xdslocal.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/xdslocal.dll new file mode 100644 index 0000000..fd6617d Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/xdslocal.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/xdsroute.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/xdsroute.dll new file mode 100644 index 0000000..203c2d2 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/xdsroute.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/xdstrove.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/xdstrove.dll new file mode 100644 index 0000000..d21ffbc Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/common/uscif/xdstrove.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/Blackhawk/BH-SLA-01.rtf b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/Blackhawk/BH-SLA-01.rtf new file mode 100644 index 0000000..dba8e41 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/Blackhawk/BH-SLA-01.rtf @@ -0,0 +1,100 @@ +{\rtf1\adeflang1025\ansi\ansicpg1252\uc1\adeff0\deff0\stshfdbch0\stshfloch0\stshfhich0\stshfbi0\deflang1033\deflangfe1033{\fonttbl{\f0\froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\f1\fswiss\fcharset0\fprq2{\*\panose 020b0604020202020204}Arial;} +{\f37\fswiss\fcharset0\fprq2{\*\panose 00000000000000000000}Arial Narrow;}{\f38\froman\fcharset238\fprq2 Times New Roman CE;}{\f39\froman\fcharset204\fprq2 Times New Roman Cyr;}{\f41\froman\fcharset161\fprq2 Times New Roman Greek;} +{\f42\froman\fcharset162\fprq2 Times New Roman Tur;}{\f43\fbidi \froman\fcharset177\fprq2 Times New Roman (Hebrew);}{\f44\fbidi \froman\fcharset178\fprq2 Times New Roman (Arabic);}{\f45\froman\fcharset186\fprq2 Times New Roman Baltic;} +{\f46\froman\fcharset163\fprq2 Times New Roman (Vietnamese);}{\f48\fswiss\fcharset238\fprq2 Arial CE;}{\f49\fswiss\fcharset204\fprq2 Arial Cyr;}{\f51\fswiss\fcharset161\fprq2 Arial Greek;}{\f52\fswiss\fcharset162\fprq2 Arial Tur;} +{\f53\fbidi \fswiss\fcharset177\fprq2 Arial (Hebrew);}{\f54\fbidi \fswiss\fcharset178\fprq2 Arial (Arabic);}{\f55\fswiss\fcharset186\fprq2 Arial Baltic;}{\f56\fswiss\fcharset163\fprq2 Arial (Vietnamese);}{\f408\fswiss\fcharset238\fprq2 Arial Narrow CE;} +{\f409\fswiss\fcharset204\fprq2 Arial Narrow Cyr;}{\f411\fswiss\fcharset161\fprq2 Arial Narrow Greek;}{\f412\fswiss\fcharset162\fprq2 Arial Narrow Tur;}{\f415\fswiss\fcharset186\fprq2 Arial Narrow Baltic;}}{\colortbl;\red0\green0\blue0; +\red0\green0\blue255;\red0\green255\blue255;\red0\green255\blue0;\red255\green0\blue255;\red255\green0\blue0;\red255\green255\blue0;\red255\green255\blue255;\red0\green0\blue128;\red0\green128\blue128;\red0\green128\blue0;\red128\green0\blue128; +\red128\green0\blue0;\red128\green128\blue0;\red128\green128\blue128;\red192\green192\blue192;}{\stylesheet{\ql \li0\ri0\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0 \rtlch\fcs1 \af0\afs24\alang1025 \ltrch\fcs0 +\fs24\lang1033\langfe1033\cgrid\langnp1033\langfenp1033 \snext0 Normal;}{\*\cs10 \additive \ssemihidden Default Paragraph Font;}{\* +\ts11\tsrowd\trftsWidthB3\trpaddl108\trpaddr108\trpaddfl3\trpaddft3\trpaddfb3\trpaddfr3\trcbpat1\trcfpat1\tblind0\tblindtype3\tscellwidthfts0\tsvertalt\tsbrdrt\tsbrdrl\tsbrdrb\tsbrdrr\tsbrdrdgl\tsbrdrdgr\tsbrdrh\tsbrdrv +\ql \li0\ri0\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0 \rtlch\fcs1 \af0\afs20 \ltrch\fcs0 \fs20\lang1024\langfe1024\cgrid\langnp1024\langfenp1024 \snext11 \ssemihidden Normal Table;}} +{\*\latentstyles\lsdstimax156\lsdlockeddef0}{\*\rsidtbl \rsid6520547\rsid12746537}{\*\generator Microsoft Word 11.0.0000;}{\info{\operator Andrew Ferrari}{\creatim\yr2008\mo1\dy17\hr15\min45}{\revtim\yr2008\mo1\dy17\hr15\min46}{\version3}{\edmins0} +{\nofpages2}{\nofwords1567}{\nofchars8936}{\nofcharsws10483}{\vern24611}{\*\password 00000000}}{\*\xmlnstbl {\xmlns1 http://schemas.microsoft.com/office/word/2003/wordml}{\xmlns2 urn:schemas-microsoft-com:office:smarttags}} +\paperw12240\paperh15840\margl1800\margr1800\margt1440\margb1440\gutter0\ltrsect +\deftab4320\widowctrl\ftnbj\aenddoc\donotembedsysfont0\donotembedlingdata1\grfdocevents0\validatexml0\showplaceholdtext0\ignoremixedcontent0\saveinvalidxml0\showxmlerrors0\horzdoc\dghspace120\dgvspace120\dghorigin1701\dgvorigin1984\dghshow0\dgvshow3 +\jcompress\viewkind4\viewscale220\viewzk3\rsidroot12746537 \fet0{\*\wgrffmtfilter 013f}\ilfomacatclnup0\ltrpar \sectd \ltrsect\linex0\sectdefaultcl\sftnbj {\*\pnseclvl1\pnucrm\pnstart1\pnindent720\pnhang {\pntxta .}}{\*\pnseclvl2 +\pnucltr\pnstart1\pnindent720\pnhang {\pntxta .}}{\*\pnseclvl3\pndec\pnstart1\pnindent720\pnhang {\pntxta .}}{\*\pnseclvl4\pnlcltr\pnstart1\pnindent720\pnhang {\pntxta )}}{\*\pnseclvl5\pndec\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl6 +\pnlcltr\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl7\pnlcrm\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl8\pnlcltr\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl9\pnlcrm\pnstart1\pnindent720\pnhang +{\pntxtb (}{\pntxta )}}\pard\plain \ltrpar\qr \li0\ri0\nowidctlpar\wrapdefault\faauto\rin0\lin0\itap0 \rtlch\fcs1 \af0\afs24\alang1025 \ltrch\fcs0 \fs24\lang1033\langfe1033\cgrid\langnp1033\langfenp1033 {\rtlch\fcs1 \ab\af1\afs40 \ltrch\fcs0 +\b\f1\fs40\insrsid12746537 License +\par Agreement +\par }\pard \ltrpar\qc \li0\ri0\sa240\nowidctlpar\wrapdefault\hyphpar0\faauto\rin0\lin0\itap0 {\rtlch\fcs1 \ab\af37 \ltrch\fcs0 \b\f37\insrsid12746537 +\par EWA TECHNOLOGIES INC. LICENSE AGREEMENT}{\rtlch\fcs1 \af37 \ltrch\fcs0 \f37\insrsid12746537 +\par }\pard \ltrpar\qj \li0\ri0\sa240\nowidctlpar\wrapdefault\hyphpar0\faauto\rin0\lin0\itap0 {\rtlch\fcs1 \ab\af1\afs16 \ltrch\fcs0 \b\f1\fs16\insrsid12746537 IMPORTANT: This is a legal agreement (the \'93Agreement\'94) between you (the \'93User\'94 +) and EWA Technologies Inc. and its parent company, Electronic Warfare Associates, Inc., with its principal place of business at Herndon, Virginia, U.S.A. (\'93EWA\'94). It is important that you read this document before opening the acc +ompanying package containing the software (the \'93Software\'94) or using the Software. By opening the sealed package and/or using the Software, you acknowledge that you have read this Agreement and agree to be bound by its terms. }{\rtlch\fcs1 +\af1\afs16 \ltrch\fcs0 \f1\fs16\insrsid12746537 If you do not agree, promptly return the unopened Software and accompanying items to EWA for a full refund of the amount, if any, paid by User to EWA for license of the Software. +\par }\pard \ltrpar\qj \li0\ri0\sa120\nowidctlpar\wrapdefault\hyphpar0\faauto\rin0\lin0\itap0 {\rtlch\fcs1 \ab\af1\afs14 \ltrch\fcs0 \b\f1\fs14\insrsid12746537 1. License Grant: }{\rtlch\fcs1 \af1\afs14 \ltrch\fcs0 \f1\fs14\insrsid12746537 +EWA grants you a non-exclusive, non-transferable, limited license to use the copy of the Software, and accompanying materials enclosed in this package (collectively the \'93Product\'94 +) on the Designated Computer (as defined below) subject to the terms and conditions set forth in this Agreement. You may transfer the Software to the Designated Computer provided you keep the original Software solely for backup or archival purposes. \'93 +Designated Computer\'94 for any Software means the single computer processor that is owned or controlled and operated by User and designated as the computer processor on which + the Software will be used. All rights not expressly granted to User herein are retained by EWA. +\par }{\rtlch\fcs1 \ab\af1\afs14 \ltrch\fcs0 \b\f1\fs14\insrsid12746537 2. Ownership:}{\rtlch\fcs1 \af1\afs14 \ltrch\fcs0 \f1\fs14\insrsid12746537 + All rights, title and interest to the Software, and accompanying materials related to the Software, and any proprietary information contained on + the media, are owned by EWA and are protected by copyright, trademark and trade secret law and international treaties. You acquire only the right to use the Software and accompanying materials related to the Software during the term of, and subject to, t +his Agreement. You agree not to develop separate software applications of any kind derived from the Software, the User\rquote +s documentation, or any other proprietary information of EWA. Any rights, express or implied, in the Software and accompanying materials, +and any proprietary information contained in the media are reserved by EWA, except as expressly specified in this Agreement. You must treat the Software like any other copyrighted material except as otherwise provided under this Agreement. You agree not t +o remove, deface or obscure EWA\rquote s copyright or trademark notices and/or legends or proprietary notices on the Software and/or accompanying materials, and/or contained in or on the media. +\par }{\rtlch\fcs1 \ab\af1\afs14 \ltrch\fcs0 \b\f1\fs14\insrsid12746537 3. Copies and Modifications:}{\rtlch\fcs1 \af1\afs14 \ltrch\fcs0 \f1\fs14\insrsid12746537 You may make one copy of the Software sol +ely for back-up purposes, provided that you reproduce and include all copyright/proprietary rights notice(s) on the copy. You may make copies of any of the documentation included in the Product for your internal use only. You may not nor may you assist an +o +ther to, modify, translate, convert to another programming language, decompile, reverse engineer or disassemble any portions of the Product. Except as otherwise provided by this agreement, you may not copy the Software. You agree to notify your employees +and/agents who may have access to the Software of the restrictions contained in this Agreement and to ensure their compliance with such restrictions. +\par }{\rtlch\fcs1 \ab\af1\afs14 \ltrch\fcs0 \b\f1\fs14\insrsid12746537 4. Taxes:}{\rtlch\fcs1 \af1\afs14 \ltrch\fcs0 \f1\fs14\insrsid12746537 User shall be liable for and shall pay all charges and taxes (local, state and federal), includin +g all sales and use taxes, which may now or hereafter be imposed or levied upon the license or possession or use of the Software, excluding, however, taxes based on EWA\rquote s income. +\par }{\rtlch\fcs1 \ab\af1\afs14 \ltrch\fcs0 \b\f1\fs14\insrsid12746537 5. Confidentiality:}{\rtlch\fcs1 \af1\afs14 \ltrch\fcs0 \f1\fs14\insrsid12746537 By accepting this license, you acknowledge that the Softw +are and accompanying materials, and any proprietary information contained in the media are proprietary in nature and contain valuable confidential information developed or acquired at great expense. You agree not to disclose to others or utilize such trad +e secrets or proprietary information except as provided herein. +\par }{\rtlch\fcs1 \ab\af1\afs14 \ltrch\fcs0 \b\f1\fs14\insrsid12746537 6. Term:}{\rtlch\fcs1 \af1\afs14 \ltrch\fcs0 \f1\fs14\insrsid12746537 + This Agreement is effective from the date you open the sealed package and/or use the Software until terminated. EWA and/or you may terminate this Agreement at any time by giving 30 day +s written notice of termination to the other party. Notwithstanding the above, if you fail to comply with any term of this Agreement, or if you become the subject of a voluntary or involuntary petition in bankruptcy or any proceeding relating to insolvenc +y +, receivership, liquidation, or composition for the benefit of creditors, if that petition or proceeding is not dismissed with prejudice within 30 days after filing, EWA may terminate this Agreement immediately upon notice to you. Upon termination of this + +Agreement, you agree to then cease all use of the Software, and to either destroy or promptly return to EWA the Product together with any copies you have made thereof. Notwithstanding the remedies provided above, EWA may enforce its other legal rights. Se +ctions 2, 4, 5, 9, 10 and 12-16 will survive termination of this Agreement. +\par }{\rtlch\fcs1 \ab\af1\afs14 \ltrch\fcs0 \b\f1\fs14\insrsid12746537 7. Assignment:}{\rtlch\fcs1 \af1\afs14 \ltrch\fcs0 \f1\fs14\insrsid12746537 + You may not assign, sublicense, rent, loan, lease, convey or otherwise transfer this Agreement or the Product without permission, in writing, from EWA. Any unauthori +zed assignment, sublicense, rental, loan, lease, conveyance or other transfer of any copy of the Software and/or accompanying materials shall be void and shall automatically terminate this Agreement. +\par }{\rtlch\fcs1 \ab\af1\afs14 \ltrch\fcs0 \b\f1\fs14\insrsid12746537 8. Limited Warranty:}{\rtlch\fcs1 \af1\afs14 \ltrch\fcs0 \f1\fs14\insrsid12746537 EWA warrants that the Software pro +vided to you shall operate as described in the accompanying documentation under normal use for a period of ninety (90) days from the date of your receipt thereof. For the purposes of this Section 8, \'93Defective Software\'94 + means Software which does not operate as described in the accompanying documentation under normal use during the warranty period. EWA\rquote +s warranty as set forth above shall not be enlarged, diminished or affected by, and no liability shall arise out of, EWA\rquote s rendering of technical advice or +service in connection with the Product. EWA does not warrant that the Software will meet your requirements, operate without interruption or be error free. Your sole remedy under this Section 8 shall be, at EWA\rquote +s sole discretion, (i) repair or replacement o +f any Defective Software, or (ii) return of the amount, if any, paid by the User to EWA for the Defective Software. Any replacement Software will be warranted for the remainder of the warranty period for the original Software. +\par }{\rtlch\fcs1 \ab\af1\afs14 \ltrch\fcs0 \b\f1\fs14\insrsid12746537 9. Warranty Exceptions: }{\rtlch\fcs1 \af1\afs14 \ltrch\fcs0 \f1\fs14\insrsid12746537 THE SOFTWARE IS PROVIDED \'93AS IS,\'94 + EXCEPT AS EXPRESSLY STATED IN SECTION 8. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, EWA DISCLAIMS ALL OTHER WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF PERFORMANCE OR + MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE OR AGAINST INFRINGEMENT. +\par YOU BEAR ALL RISK RELATING TO QUALITY AND PERFORMANCE OF THE SOFTWARE, AND ASSUME THE ENTIRE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION UNLESS YOU AND EWA HAVE EXECUTE +D AN AGREEMENT WITH RESPECT TO MAINTENANCE AND SUPPORT OF THE SOFTWARE, IN WHICH CASE EWA WILL BE RESPONSIBLE FOR SERVICING, REPAIR OR CORRECTION OF THE SOFTWARE IN ACCORDANCE WITH SUCH AGREEMENT. +\par SOME JURISDICTIONS DO NOT ALLOW LIMITATIONS ON IMPLIED WARR +ANTIES, SO THE ABOVE LIMITATION MAY NOT APPLY TO YOU. IN THAT EVENT, SUCH WARRANTIES ARE LIMITED TO THE WARRANTY PERIOD. THIS WARRANTY GIVES YOU SPECIFIC LEGAL RIGHTS. YOU MAY ALSO HAVE OTHER RIGHTS WHICH VARY FROM JURISDICTION TO JURISDICTION. +\par }{\rtlch\fcs1 \ab\af1\afs14 \ltrch\fcs0 \b\f1\fs14\insrsid12746537 10. Limitation of Remedies:}{\rtlch\fcs1 \af1\afs14 \ltrch\fcs0 \f1\fs14\insrsid12746537 EWA\rquote +s maximum liability for any claim by you or anyone claiming through or on behalf of you arising out of this Agreement shall not in any event exceed the actual amount paid by you for the license to the Software. TO THE MAXIMUM EXTENT PE +RMITTED BY APPLICABLE LAW, EWA SHALL NOT BE LIABLE FOR THE LOSS OF REVENUE OR PROFITS, EXPENSE OR INCONVENIENCE, OR FOR ANY OTHER DIRECT, INDIRECT, SPECIAL, INCIDENTAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES, ARISING OUT OF THIS AGREEMENT OR CAUSED BY THE USE +, + MISUSE OR INABILITY TO USE THE SOFTWARE, EVEN IF EWA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITED WARRANTY SHALL NOT EXTEND TO ANYONE OTHER THAN THE ORIGINAL USER OF THE SOFTWARE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR LIMI +TATION OR INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THE ABOVE LIMITATION OR EXCLUSION MAY NOT APPLY TO YOU. +\par }{\rtlch\fcs1 \ab\af1\afs14 \ltrch\fcs0 \b\f1\fs14\insrsid12746537 11. Support:}{\rtlch\fcs1 \af1\afs14 \ltrch\fcs0 \f1\fs14\insrsid12746537 EWA will provide technical support free of charge to the User for a period of thirty (30) days from the User +\rquote s receipt of the Software (the \'93Support Period\'94); such support will be provided solely via telephone and/or electronic mail during EWA\rquote s normal business hours. +\par }{\rtlch\fcs1 \ab\af1\afs14 \ltrch\fcs0 \b\f1\fs14\insrsid12746537 12. Governing Law:}{\rtlch\fcs1 \af1\afs14 \ltrch\fcs0 \f1\fs14\insrsid12746537 This Agreement shall be governed by the laws of the {\*\xmlopen\xmlns2{\factoidname PlaceType}}Commonwealth +{\*\xmlclose} of {\*\xmlopen\xmlns2{\factoidname PlaceName}}Virginia{\*\xmlclose}, {\*\xmlopen\xmlns2{\factoidname country-region}}{\*\xmlopen\xmlns2{\factoidname place}}U.S.A.{\*\xmlclose}{\*\xmlclose}, exclusive of its choice of law principles. +\par }{\rtlch\fcs1 \ab\af1\afs14 \ltrch\fcs0 \b\f1\fs14\insrsid12746537 13. General Provisions:}{\rtlch\fcs1 \af1\afs14 \ltrch\fcs0 \f1\fs14\insrsid12746537 + If any provision of this Agreement is held to be void, invalid, unenforceable or illegal, the other provisions shall continue in full force and effect. Failure of a party t +o enforce any provision of this Agreement shall not constitute or be construed as a waiver of such provision or of the right to enforce such provision. If any legal action, including arbitration, arises under this agreement or by any reason of any asserte +d breach of this Agreement, the prevailing party shall be entitled to recover all costs and expenses, including reasonable attorneys\rquote fees, incurred as a result of such legal action. +\par }{\rtlch\fcs1 \ab\af1\afs14 \ltrch\fcs0 \b\f1\fs14\insrsid12746537 14. Export:}{\rtlch\fcs1 \af1\afs14 \ltrch\fcs0 \f1\fs14\insrsid12746537 You agree to comply fully with all laws and regulations of the {\*\xmlopen\xmlns2{\factoidname country-region}} +{\*\xmlopen\xmlns2{\factoidname place}}United States{\*\xmlclose}{\*\xmlclose} and other countries (\'93Export Laws\'94) to assure that neither the Software nor its accompanying materials are (1) exported or imported, directly or indirectly, in + violation of Export Laws, or (2) used for any purpose prohibited by Export Laws. +\par }{\rtlch\fcs1 \ab\af1\afs14 \ltrch\fcs0 \b\f1\fs14\insrsid12746537 15. {\*\xmlopen\xmlns2{\factoidname country-region}}{\*\xmlopen\xmlns2{\factoidname place}}U.S.{\*\xmlclose}{\*\xmlclose} Government Restricted Rights:}{\rtlch\fcs1 \af1\afs14 \ltrch\fcs0 +\f1\fs14\insrsid12746537 The Software and accompanying materials are provided with RESTRICTED RIGHTS. Use, duplication or disclosure by the g +overnment is subject to restrictions as set forth in the Commercial Computer Software Restricted Rights clause at FAR 52.227-19 subdivision (c)(1) and (2), as applicable. +\par }{\rtlch\fcs1 \ab\af1\afs14 \ltrch\fcs0 \b\f1\fs14\insrsid12746537 16. Acknowledgement:}{\rtlch\fcs1 \af1\afs14 \ltrch\fcs0 \f1\fs14\insrsid12746537 THIS AGREEMENT IS THE COMPLETE AND EXCLUSIVE STATEMENT OF AGRE +EMENT BETWEEN THE PARTIES AND SUPERSEDES ALL PROPOSALS OR PRIOR AGREEMENTS, VERBAL OR WRITTEN, AND ANY OTHER COMMUNICATIONS BETWEEN THE PARTIES RELATING TO THE SUBJECT MATTER OF THIS AGREEMENT. NO AMENDMENT TO THIS AGREEMENT SHALL BE EFFECTIVE UNLESS SIG +NED BY AN OFFICER OF EWA. +\par }{\rtlch\fcs1 \af1\afs14 \ltrch\fcs0 \f1\fs14\insrsid6520547 +\par BH-SLA-01 +\par }} \ No newline at end of file diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/Blackhawk/BH-SLA-01.txt b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/Blackhawk/BH-SLA-01.txt new file mode 100644 index 0000000..0e08069 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/Blackhawk/BH-SLA-01.txt @@ -0,0 +1,131 @@ +License +Agreement + +EWA TECHNOLOGIES INC. LICENSE AGREEMENT + +IMPORTANT: This is a legal agreement (the "Agreement") between you (the "User") and EWA +Technologies Inc. and its parent company, Electronic Warfare Associates, Inc., with its principal place +of business at Herndon, Virginia, U.S.A. ("EWA"). It is important that you read this document before +opening the accompanying package containing the software (the "Software") or using the Software. By +opening the sealed package and/or using the Software, you acknowledge that you have read this +Agreement and agree to be bound by its terms. If you do not agree, promptly return the unopened +Software and accompanying items to EWA for a full refund of the amount, if any, paid by User to EWA for +license of the Software. + +1. License Grant: EWA grants you a non-exclusive, non-transferable, limited license to use the copy of the Software, and +accompanying materials enclosed in this package (collectively the "Product") on the Designated Computer (as defined +below) subject to the terms and conditions set forth in this Agreement. You may transfer the Software to the Designated +Computer provided you keep the original Software solely for backup or archival purposes. "Designated Computer" for any +Software means the single computer processor that is owned or controlled and operated by User and designated as the +computer processor on which the Software will be used. All rights not expressly granted to User herein are retained by +EWA. + +2. Ownership: All rights, title and interest to the Software, and accompanying materials related to the Software, and any +proprietary information contained on the media, are owned by EWA and are protected by copyright, trademark and trade +secret law and international treaties. You acquire only the right to use the Software and accompanying materials related to the +Software during the term of, and subject to, this Agreement. You agree not to develop separate software applications of any +kind derived from the Software, the User's documentation, or any other proprietary information of EWA. Any rights, express +or implied, in the Software and accompanying materials, and any proprietary information contained in the media are reserved +by EWA, except as expressly specified in this Agreement. You must treat the Software like any other copyrighted material +except as otherwise provided under this Agreement. You agree not to remove, deface or obscure EWA's copyright or +trademark notices and/or legends or proprietary notices on the Software and/or accompanying materials, and/or contained in +or on the media. + +3. Copies and Modifications: You may make one copy of the Software solely for back-up purposes, provided that you +reproduce and include all copyright/proprietary rights notice(s) on the copy. You may make copies of any of the +documentation included in the Product for your internal use only. You may not nor may you assist another to, modify, +translate, convert to another programming language, decompile, reverse engineer or disassemble any portions of the Product. +Except as otherwise provided by this agreement, you may not copy the Software. You agree to notify your employees +and/agents who may have access to the Software of the restrictions contained in this Agreement and to ensure their +compliance with such restrictions. + +4. Taxes: User shall be liable for and shall pay all charges and taxes (local, state and federal), including all sales and use +taxes, which may now or hereafter be imposed or levied upon the license or possession or use of the Software, excluding, +however, taxes based on EWA's income. + +5. Confidentiality: By accepting this license, you acknowledge that the Software and accompanying materials, and any +proprietary information contained in the media are proprietary in nature and contain valuable confidential information +developed or acquired at great expense. You agree not to disclose to others or utilize such trade secrets or proprietary +information except as provided herein. + +6. Term: This Agreement is effective from the date you open the sealed package and/or use the Software until terminated. +EWA and/or you may terminate this Agreement at any time by giving 30 days written notice of termination to the other party. +Notwithstanding the above, if you fail to comply with any term of this Agreement, or if you become the subject of a +voluntary or involuntary petition in bankruptcy or any proceeding relating to insolvency, receivership, liquidation, or +composition for the benefit of creditors, if that petition or proceeding is not dismissed with prejudice within 30 days after +filing, EWA may terminate this Agreement immediately upon notice to you. Upon termination of this Agreement, you agree +to then cease all use of the Software, and to either destroy or promptly return to EWA the Product together with any copies +you have made thereof. Notwithstanding the remedies provided above, EWA may enforce its other legal rights. Sections 2, 4, +5, 9, 10 and 12-16 will survive termination of this Agreement. + +7. Assignment: You may not assign, sublicense, rent, loan, lease, convey or otherwise transfer this Agreement or the Product +without permission, in writing, from EWA. Any unauthorized assignment, sublicense, rental, loan, lease, conveyance or other +transfer of any copy of the Software and/or accompanying materials shall be void and shall automatically terminate this +Agreement. + +8. Limited Warranty: EWA warrants that the Software provided to you shall operate as described in the accompanying +documentation under normal use for a period of ninety (90) days from the date of your receipt thereof. For the purposes of +this Section 8, "Defective Software" means Software which does not operate as described in the accompanying +documentation under normal use during the warranty period. EWA's warranty as set forth above shall not be enlarged, +diminished or affected by, and no liability shall arise out of, EWA's rendering of technical advice or service in connection +with the Product. EWA does not warrant that the Software will meet your requirements, operate without interruption or be +error free. Your sole remedy under this Section 8 shall be, at EWA's sole discretion, (i) repair or replacement of any +Defective Software, or (ii) return of the amount, if any, paid by the User to EWA for the Defective Software. Any +replacement Software will be warranted for the remainder of the warranty period for the original Software. + +9. Warranty Exceptions: THE SOFTWARE IS PROVIDED "AS IS," EXCEPT AS EXPRESSLY STATED IN +SECTION 8. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, EWA DISCLAIMS ALL OTHER +WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, IMPLIED +WARRANTIES OF PERFORMANCE OR MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE OR +AGAINST INFRINGEMENT. +YOU BEAR ALL RISK RELATING TO QUALITY AND PERFORMANCE OF THE SOFTWARE, AND ASSUME THE +ENTIRE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION UNLESS YOU AND EWA HAVE +EXECUTED AN AGREEMENT WITH RESPECT TO MAINTENANCE AND SUPPORT OF THE SOFTWARE, IN +WHICH CASE EWA WILL BE RESPONSIBLE FOR SERVICING, REPAIR OR CORRECTION OF THE SOFTWARE +IN ACCORDANCE WITH SUCH AGREEMENT. +SOME JURISDICTIONS DO NOT ALLOW LIMITATIONS ON IMPLIED WARRANTIES, SO THE ABOVE +LIMITATION MAY NOT APPLY TO YOU. IN THAT EVENT, SUCH WARRANTIES ARE LIMITED TO THE +WARRANTY PERIOD. THIS WARRANTY GIVES YOU SPECIFIC LEGAL RIGHTS. YOU MAY ALSO HAVE +OTHER RIGHTS WHICH VARY FROM JURISDICTION TO JURISDICTION. + +10. Limitation of Remedies: EWA's maximum liability for any claim by you or anyone claiming through or on behalf of +you arising out of this Agreement shall not in any event exceed the actual amount paid by you for the license to the Software. +TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, EWA SHALL NOT BE LIABLE FOR THE LOSS +OF REVENUE OR PROFITS, EXPENSE OR INCONVENIENCE, OR FOR ANY OTHER DIRECT, INDIRECT, +SPECIAL, INCIDENTAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES, ARISING OUT OF THIS AGREEMENT +OR CAUSED BY THE USE, MISUSE OR INABILITY TO USE THE SOFTWARE, EVEN IF EWA HAS BEEN +ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITED WARRANTY SHALL NOT EXTEND TO +ANYONE OTHER THAN THE ORIGINAL USER OF THE SOFTWARE. SOME JURISDICTIONS DO NOT ALLOW +THE EXCLUSION OR LIMITATION OR INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THE ABOVE +LIMITATION OR EXCLUSION MAY NOT APPLY TO YOU. + +11. Support: EWA will provide technical support free of charge to the User for a period of thirty (30) days from the User's +receipt of the Software (the "Support Period"); such support will be provided solely via telephone and/or electronic mail +during EWA's normal business hours. + +12. Governing Law: This Agreement shall be governed by the laws of the Commonwealth of Virginia, U.S.A., exclusive of +its choice of law principles. + +13. General Provisions: If any provision of this Agreement is held to be void, invalid, unenforceable or illegal, the other +provisions shall continue in full force and effect. Failure of a party to enforce any provision of this Agreement shall not +constitute or be construed as a waiver of such provision or of the right to enforce such provision. If any legal action, +including arbitration, arises under this agreement or by any reason of any asserted breach of this Agreement, the prevailing +party shall be entitled to recover all costs and expenses, including reasonable attorneys' fees, incurred as a result of such legal +action. + +14. Export: You agree to comply fully with all laws and regulations of the United States and other countries ("Export +Laws") to assure that neither the Software nor its accompanying materials are (1) exported or imported, directly or indirectly, +in violation of Export Laws, or (2) used for any purpose prohibited by Export Laws. + +15. U.S. Government Restricted Rights: The Software and accompanying materials are provided with RESTRICTED +RIGHTS. Use, duplication or disclosure by the government is subject to restrictions as set forth in the Commercial Computer +Software Restricted Rights clause at FAR 52.227-19 subdivision (c)(1) and (2), as applicable. + +16. Acknowledgement: THIS AGREEMENT IS THE COMPLETE AND EXCLUSIVE STATEMENT OF AGREEMENT +BETWEEN THE PARTIES AND SUPERSEDES ALL PROPOSALS OR PRIOR AGREEMENTS, VERBAL OR +WRITTEN, AND ANY OTHER COMMUNICATIONS BETWEEN THE PARTIES RELATING TO THE SUBJECT +MATTER OF THIS AGREEMENT. NO AMENDMENT TO THIS AGREEMENT SHALL BE EFFECTIVE UNLESS +SIGNED BY AN OFFICER OF EWA. + +BH-SLA-01 + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/Blackhawk/BH560v2-Config.ico b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/Blackhawk/BH560v2-Config.ico new file mode 100644 index 0000000..a6f4e8b Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/Blackhawk/BH560v2-Config.ico differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/Blackhawk/Bh560v2/firmware/ReadMe.txt b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/Blackhawk/Bh560v2/firmware/ReadMe.txt new file mode 100644 index 0000000..60fe485 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/Blackhawk/Bh560v2/firmware/ReadMe.txt @@ -0,0 +1,4 @@ + +Blackhawk XDS560v2 Firmware can be found here: + http://www.blackhawk-dsp.com/support/xds560v2 + \ No newline at end of file diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/Blackhawk/Docs/ReadMe.htm b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/Blackhawk/Docs/ReadMe.htm new file mode 100644 index 0000000..ac4ea84 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/Blackhawk/Docs/ReadMe.htm @@ -0,0 +1,89 @@ + + + + Blackhawk JTAG Emulation Drivers - Release Notes + + +
+
+

+ Blackhawk JTAG Emulation + Documentation

+

This information applies to Code Composer Studio v6 and later

+
+

+ Blackhawk

+

+ 123 Gaither Drive

+

+ Mount Laurel, New Jersey 08054

+

+ USA

+

+  

+ + + + + + + + + + + + + + + + + +
+ Support: + + + mailto:support@blackhawk-dsp.com +
+ Support URL: + + http://www.blackhawk-dsp.com/support +
+ Phone: + + +1  856-234-2629 +
+ Fax: + + +1  856-866-1100 +
+
+
+
+

+ Documentation:

+

+ As of October 2013, Blackhawk documentation has been removed from the + bhemupack_setup for CCS v6 and later.  Documentation can be viewed/downloaded from + the Blackhawk website.  Please visit our support center downloads at + + http://www.blackhawk-dsp.com/support/downloads and click one of the documentation links.

+

+ If you cannot access the documentation from the web site, please contact + Blackhawk support using one of the methods listed above.

+

+ Thank you,

+

+ The Blackhawk Support Team

+

 

+

 

+

+ Back to Top

+
+

+ Copyright © 2018 EWA Technologies, + Inc.  All rights reserved.

+

+ EOF

+
+ + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/Blackhawk/Drivers/BHEmu-DeviceDrivers_v1.18.08.06.exe b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/Blackhawk/Drivers/BHEmu-DeviceDrivers_v1.18.08.06.exe new file mode 100644 index 0000000..51fb0a9 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/Blackhawk/Drivers/BHEmu-DeviceDrivers_v1.18.08.06.exe differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/Blackhawk/ReadMe.txt b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/Blackhawk/ReadMe.txt new file mode 100644 index 0000000..f44119c --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/Blackhawk/ReadMe.txt @@ -0,0 +1,932 @@ +Blackhawk(tm) CCS v9 Emulation Drivers + +=================================== +Blackhawk + +123 Gaither Drive +Mount Laurel, New Jersey 08054-1701 + +Tel: +1 (856) 234-2629 + +http://www.blackhawk-dsp.com +=================================== +2019 (c) EWA Technologies, Inc. + + +=> VERSION + +9.0.0.002 29 July 2019 + + +=> WHAT's NEW + +Built using InstallBuilder Version: 19.7.1 (2019-07-20) + + ** REBUILT INSTALLERS USING INSTALLBUILDER 19.7 ** + ** TO FIX INSTALLBUILDER WINDOWS VULNERABILITY. ** + +[LINUX Updates] + - No changes. +[WIN32 Updates] + - No Changes. + + +=> HISTORY + +9.0.0.001 18 January 2019 +Built using InstallBuilder Version: 18.12.0 (2018-12-31) +[LINUX Updates] + - No changes. +[WIN32 Updates] + - Enabled 64-bit installer mode. This will not install on 32-bit systems. + - Updated XDS560v2 binaries to 64-bit + - Removed XDS510 emulator support + +6.2.0.011 24 September 2018 +Built using InstallBuilder Version: 18.7.0 (2018-07-25) +[LINUX Updates] + - No changes. +[WIN32 Updates] + - Updated Windows Device Driver installer v1.18.08.06. + Created Windows 10 package for Bh560v2 drivers that + supports secure boot mode. + +6.2.0.010 12 February 2018 +Built using InstallBuilder Version: 17.10.0 (2017-10-27) +[LINUX Updates] + - No changes. + +[WIN32 Updates] + - Updated Windows Device Driver installer v1.18.02.12. + Re-signed LAN driver package - no changes. + +6.2.0.009 01 January 2018 +Built using InstallBuilder Version: 17.10.0 (2017-10-27) +[LINUX Updates] + - No changes. + +[WIN32 Updates] + - Updated Windows Device Driver installer v1.18.01.11. + Fixed Bh560v2 INF file. + +6.2.0.008 11 December 2017 +Built using InstallBuilder Version: 17.10.0 (2017-10-27) + +[LINUX Updates] + - Fixed path for install_scripts folder permissions. + +[WIN32 and LINUX Updates] + - Updated Bh560v2Config Utility. + Added search option check boxes for USB and LAN. + Corrected Linux .so file names (lib prefix). + Improved Linux dbgjtag testing output (xterm window). + + +6.2.0.007 07 November 2017 +Built using InstallBuilder Version: 17.10.0 (2017-10-27) + +[LINUX Updates] + - No Changes + +[WIN32 Updates] + - Updated Windows Device Driver installer v1.17.10.12. + Fixed XDS560v2 STM BSOD and resigned Bh560v2 driver + package for Windows 10 using Extended Valuation + Code Signing Certificate. + + +6.2.0.005 21 September 2016 +Built using InstallBuilder Version: 16.7.0 (2016-07-22) + +[LINUX Updates] + - Fixed glitch on XDS510 USB connections + (USBLIB/bh510_server). + +[WIN32 Updates] + - No Changes. + + +6.0.83.003 12 July 2016 +Built using InstallBuilder Version: 16.1.0 (2016-01-26) + +[WIN32 and LINUX Updates] + - Removed old driver files not in EPK 6.0.83.0 + (55xp and arm11) + + +6.0.83.001 21 March 2016 +[WIN32 and LINUX Updates] + - EPK 6.0.83.0 Driver Updates. + - BH560v2Config Utlity Updated for modified dbgjtag + command line options. + +[LINUX Updates] + - Preliminary 64-bit Updates for Linux Distro. + +6.0.0.347 18 November 2015 +[WIN32 and LINUX Updates] + - No changes. + +[WIN32 Updates] + - No Changes. + +[LINUX Updates] + - Preserve original uscif.out file on uninstall + (this fixes bug in previous update) + +6.0.0.346 13 November 2015 +[WIN32 and LINUX Updates] + - No changes. +[WIN32 Updates] + - No Changes. +[LINUX Updates] + - Remove uscif.out file. + +6.0.0.345 11 November 2015 +Built using InstallBuilder Version: 8.6.0 (2013-06-26) +[WIN32 and LINUX Updates] + - No changes. + +[WIN32 Updates] + - Updated XDS510 DVR files - removed RTDX references. + +[LINUX Updates] + - Fixed Rules file installation when running CCS setup as root. + + +6.0.0.344 21 May 2014 +Built using InstallBuilder Version: 8.6.0 (2013-06-26) + +[WIN32 and LINUX Updates] + - Updated XDS510 XML file to support Cortex_R5 ISA. +[WIN32 Updates] + - No changes. +[LINUX Updates] + - Updated F28x DVR with ICEPICK_C Optimization (i.e. F28377D). + +6.0.0.343 18 April 2014 +Built using InstallBuilder Version: 8.6.0 (2013-06-26) + +[WIN32 and LINUX Updates] + - No changes. +[WIN32 Updates] + - Updated F28x DVR with ICEPICK_C Optimization (i.e. F28377D). +[LINUX Updates] + - No changes. + +6.0.0.342 03 March 2014 +Built using InstallBuilder Version: 8.6.0 (2013-06-26) + +[WIN32 and LINUX Updates] + - No changes. +[WIN32 Updates] + - Updated Windows Device Driver installer v1.14.03.03. +[LINUX Updates] + - No changes. + + +6.0.0.341 02 December 2013 +Built using InstallBuilder Version: 8.6.0 (2013-06-26) +[WIN32 and LINUX Updates] + - No changes. +[WIN32 Updates] + - No Changes. +[LINUX Updates] + - Fixed permissions (+rw) on install log. + + +6.0.0.340 27 November 2013 +Built using InstallBuilder Version: 8.6.0 (2013-06-26) +[WIN32 and LINUX Updates] + - Updated XDS510-class JSC library to match TI Emulation Update 5.1.340.0. +[WIN32 Updates] + - This TI EPK change affected files bhemujsc.dll and bhemujscl.dll. +[LINUX Updates] + - This TI EPK change affected file libbhemujscl.so. + +6.0.0.102 14 November 2013 +Built using InstallBuilder Version: 8.6.0 (2013-06-26) +[WIN32 and LINUX Updates] + - Fixed Bh560v2Config Utility links to help documentation. + - Removed Desktop shortcut for Bh560v2Config Guide. +[WIN32 Updates] + - No other changes. +[LINUX Updates] + - Fixed if condition in bh560v2-help.sh trying to open + browser multiple times. + +6.0.0.101 28 October 2013 +Built using InstallBuilder Version: 8.6.0 (2013-06-26) + +[WIN32 and LINUX Updates] + - Removed documents from emulation/Blackhaw/Docs folder + Replaced with HTML file and link to Blackhawk website + documentation page. + - USB200 driver XML files updated to include support new + ICEPICK-based devices. These include XML updates to: + cs_child, cs_dap, dap_pc, and icepick_c + (cortexM was also updated for Concerto). + - XDS510 driver XML files for CLA updated to include CLA1 + This change also applies to USB2000. + +[WIN32 Updates] + - Removed BhProbe.2 Utility folder. + +[LINUX Updates] + - No other changes. + +6.0.0.100 10 September 2013 +Built using InstallBuilder Version: 8.6.0 (2013-06-26) +Updated installer to InstallBuilder. +Combined ReadMe files for Windows and Linux distributions. + +[WIN32 Updates] + - Updated Windows device driver package to v1.13.08.13. + +[LINUX Updates] + - Fixed Bh560v2Config utility help button to open user guide + properly across multiple Linux verions and distributions. + +5.3.0.208 11 April 2013 +Built using IJ v1.2.14 (Build 179889) +Updated to match Linux revision. + +5.3.0.207 25 March 2013 +Built using IJ v1.2.14 (Build 179889) +Updated Device Driver Package to handle issues with + C55x and F28x targets and BH-USB-510 product. + +5.3.0.206 27 February 2013 +Built using IJ v1.2.14 (Build 179889) +Updated Device Driver Package for improvements to USB510W + and Blackhawk Control Panel (CPL). +Fixed typo in Probe Utility batch file (shift). + +5.2.0.205 24 July 2012 +Built using IJ v1.2.14 (Build 179889) +Added IJ Patch Information +Updated XDS560 OUT files to EPK v5.0.573.0 + +5.2.0.204 11 July 2012 +Built using IJ v1.2.14 (Build 179889) +Removed/Deleted duplicate driver XML, bhemuetb11.xml. +Updated XSD560v2 firmware +Removed eclipse feature folder contents (not needed for P2) +Updated XDS560 OUT files (correct 2010 date) which caused CCS + to hang on large program loads + +5.2.0.203 24 May 2012 +Built using IJ v1.2.14 (Build 179889) +Added missing driver XML files in targetdb for: + arp32, cortexA15, csstm, etb11, and pru devices/nodes. + +5.1.0.202 02 May 2012 +Built using IJ v1.2.14 (Build 179889) +Updated device driver installer for USB510W (Wireless) + DHCP configuration - config utility now displays IP address + settings when configured for DHCP. +Updated bhemujscl.dll for USB510W to properly parse IP address from + connection file. + +5.1.0.201 10 April 2012 +Built using IJ v1.2.14 (Build 179889) +Updated Windows Device Driver Package for Windows x86/x64 platforms + to include support for USB560v2 System Trace Emulator. + +5.1.0.200 08 February 2012 +Built using IJ v1.2.14 (Build 179889) +Updated Windows Device Driver Package for Windows x86/x64 platforms + to include support for USB510W (wireless) emulator. +Updated C55x and C64+ DVR for issues found when porting to Linux. + +5.1.0.106 23 December 2011 +Built using IJ v1.2.14 (Build 179889) +Updated Windows Device Driver Package for Windows x86/x64 platforms + to fix an issue with device enumeration and re-enumeration when + forced by automated scripting prcesses. +Updated Cortex M3 XML File for M4 devices. +Updated Diagnostic Commands that use dbgjtag to include '-o' parameter + to eliminate backspace character so command will run properly on Linux + (Windows x86/x64 is updated as well). + +5.1.0.105 03 November 2011 +Built using IJ v1.2.14 (Build 179889) +Updated Windows Device Driver Package for Windows x64 platforms + to fix an issue with PCI where the PC could lock-up + depending on the motherboard chipset and Windows Update. +Updated XDS510 DVR files to EPK v5.0.471.0 - (all may not + have been previously updated in Sept.) + +5.1.0.104 23 September 2011 +Built using IJ v1.2.14 (Build 179889) +Modified connection files to include DiagnosticCommand entry +Modified log folder area to begin with "bh_emupack" + +5.1.0.103 14 September 2011 +Built using IJ v1.2.14 (Build 179889) +Modified XDS560v2 connection files to include + 1149.7 parameters +Updated XDS510 DVR files to match EPK 5.0.471.0 +Update Bh560v2Config to v1.0.0.9, which adds + more dbgjtag test ranges + +5.1.0.102 26 August 2011 +Built using IJ v1.2.14 (Build 179889) +Modified XDS560 and XDS560v2 connection files for + default TCLK in "legacy" mode, FALLing edge + +5.1.0.101 18 August 2011 +Built using IJ v1.2.14 (Build 179889) +Modified XDS560 connection files for legacy mode + +5.1.0.100 16 August 2011 +Built using IJ v1.2.14 (Build 179889) +Updated Search for JAVA JRE +Updated Bh560v2Config Utility to v1.0.0.8 +Updated Bh560v2-USB Mezzanine support files +Updated Device Drivers to v1.11.08.16 + - Fixed issue with devices attached during install + + +5.1.0.005 15 April 2011 +Built using IJ v1.2.14 (Build 179889) +Updated Device Drivers to v1.11.04.12 + - Fixed install issue if previous devices were installed +Remove check for previous installation to allow + mutiple CCS installs + +5.1.0.003 31 March 2011 +Built using IJ v1.2.14 (Build 179889) +Built from 5.0.2.003 installer + +5.0.2.003 31 March 2011 +Built using IJ v1.2.14 (Build 179889) +Updated Device Drivers to v1.11.03.29 + - Fixed install issue if previous devices were installed +Added install log generation (not just in debug and test modes) +Updated DVR files to correct linker/path problems with + updated Eclipse version +Added install prefix commandline option for eclipse + +5.0.2.001 15 March 2011 +Built using IJ v1.2.14 (Build 179889) +Built from CCS v4.2.1.002 installer base + +4.2.1.002 15 March 2011 +Built using IJ v1.2.14 (Build 179889) +Updated Device Drivers to v1.11.03.14 + - supports Blackhawk XDS560v2 Mezzanine Emulator + - Fixes STM acknowledgement problem on host +Added timstamp update to install actions +Added XDS560v2 Mezzanine Emulator Files + - Complete file set + +4.2.1.001 08 December 2010 +Built using IJ v1.2.14 (Build 179889) +Roll-up of incremental update v4.2.0.9 + into a complete emupack. + + +4.2.0.9 02 December 2010 +Built using IJ v1.2.14 (Build 179889) +Updated XDS560v2 bh560v2e/u_io.dll files to v5.0.161.0 + that were missed in v4.2.0.7/8 + +4.2.0.8 18 November 2010 +Built using IJ v1.2.14 (Build 179889) +This is a patch installer for v4.2.0.[6/7] +Updated JSC DLL files for XDS510 products (fixes + issues with changes in ARM drivers) +Updated Device Driver installer to v1.10.11.17 + fixes Windows 7 error message processing/status that + 'may' cause BSOD or reboot on certain PCs. + +4.2.0.7 01 October 2010 +Built using IJ v1.2.14 (Build 179889) +Updated bhemu DVR files to match + latest EPK and ti emupack v5.0.161.0 +Updated bhemu XML driver files. +Updated device driver installation to v1.10.08.12 + - now copies LAN560 config files + +4.2.0.6 28 July 2010 +Built using IJ v1.2.14 (Build 179889) +Driver XML Updates - to match TI XDS100v2/XDS510 changes. + Added Files: bhemu510cortexA9.xml + bhemu510etbcs.xml + Updated Files: bhemu510cortexM.xml + bhemu510cs_dap.xml + bhemu510dap_pc.cml + Removed File: bhemu6400.xml (R10) + + +4.2.0.5 09 July 2010 +Built using IJ v1.2.14 (Build 179889) +Added Missing LOOPBACK option to XDS560v2 Connection XML files. + +4.2.0.4 28 May 2010 +Built using IJ v1.2.14 (Build 179889) +Added XDS510 JSC Support (bhemujscl.dll) + +4.2.0.3 20 May 2010 +Built using IJ v1.2.14 (Build 179889) +Rolled Back from Microsoft.VC80.CRT 8.0.50727.4053 to .762 +Removed XDS560v2 OUT files (bh560v2e,u). +XDS560v2 firmware and _io.dll files updated to [EPK] v2.0.4.0 +**XDS510 support NOT updated for JSC in this release + +4.2.0.2 30 April 2010 +Built using IJ v1.2.14 (Build 179889) +Updated Bh560v2Config Utility (v1.0.0.5), + including documentation +Updates Driver XML files for TargetDB: + added TraceDeviceId field + added c66xx,c669x, and icepick_d + removed 24x and 27x +Fixed feature.xml dependency problems +**XDS510 support NOT updated for JSC in this release + +4.2.0.1 12 March 2010 +Built using IJ v1.2.14 (Build 179889) +Updated Device Driver install for Bh560v2 device +Added Bh560v2 files (XML, DLL, OUT, Config Utility, etc.) + + +4.0.1.1 31 December 2009 +Built using IJ v1.2.12 (Build 1.2.12.0) - 02 Dec 2008 +Created/Updated Driver XML files for TargetDB to match + TI CCS v4.0.0 through v4.0.2 - This corrects C28x + imports for CLA updates and OMAP L13x imports. + + +4.0.1.0 02 September 2009 +Built using IJ v1.2.12 (Build 1.2.12.0) - 02 Dec 2008 +Original RTM release for CCS v4 + +4.0.0.21 02 June 2009 +Built using IJ v1.2.12 (Build 1.2.12.0) - 02 Dec 2008 +Added Support for UpdateManager +Removed "configurations" files + +4.0.0.20 01 June 2009 +Built using IJ v1.2.12 (Build 1.2.12.0) - 02 Dec 2008 +Updated Driver XML Files to include "realtimeEnabled" + field (28x,55x,64x,64xp,674x) +Added bhemu674x.xml file to be consistent with TI updates. +Updated XDS560 (and XDS510) Connection files for new parsing scheme. + +4.0.0.19 09 April 2009 +Built using IJ v1.2.12 (Build 1.2.12.0) - 02 Dec 2008 +Updated Connection XML Files. +Renamed ccxml and xml files to 20pin (not Rev D) + +4.0.0.18 30 March 2009 +Built using IJ v1.2.12 (Build 1.2.12.0) - 02 Dec 2008 +Corrected connection file location (inadvertently installing to TEMP folder) +Updated Installer for Device drivers v01.09.03.23 + - No actual driver file changes. + +4.0.0.17 24 March 2009 +Built using IJ v1.2.12 (Build 1.2.12.0) - 02 Dec 2008 +Updated Device drivers to v01.09.03.23 + - Updated CPL for XP Pro x64 to handle old (pre-Vista) runtime DLL + - Updated Installer to support "/mode Silent" +Updated BHEMUTBCL.DLL to correct SC_ERR_OCS_NUMBER message when + multiple USB2000/510L controllers are used simultaneously. + +4.0.0.16 05 March 2009 +Built using IJ v1.2.12 (Build 1.2.12.0) - 02 Dec 2008 +Created Unique installer ID (GUID) +Modified UNINSTALL to prompt user ("Are you sure you want to uninstall?") +Device Drivers updated to v1.09.01.15 (LAN560 Updates) +Removed pre-defined imports for C28x and C54x devices. + +v4.0.0.15 +Updated XDS560 imports to use tixds560c64xp.xml file name. +This version is included in the TI Beta 2 release + +v4.0.0.14 +Built using InstallJammer v1.2.12. +Updated Connection XML files to use "20-pin JTAG Cable", not "Rev.D" +This update may require a certain minimum CCS v4 build. + +v4.0.0.13 +Updated Installer to support the new, standard ISA="" strings used +in the targetdb\drivers XML files missed in previous build. +This update may require a certain minimum CCS v4 build. + +v4.0.0.12 +Updated Installer to support the new, standard ISA="" strings used +in the targetdb XML files. +This update may require a certain minimum CCS v4 build. + +v4.0.0.11 +Updated Installer to support ISA command line options (noc2400, +noc2800, noc5400, noc5500, noc6000, noarm, noomap, nodavinci). +Updated Windows devices drivers. + +4.0.0.10 +Updated XDS560 Files to USCIF v35.34.0.2 (USCIF Dynamic Loading) + +4.0.0.9 +Added Components, Groups and Files for target ISA and documentation + +4.0.0.8 +Updated Connection Files to use id="addrPort1". + +v4.0.0.7 +Added workaround in configuration .XML files to use "devices.old" folder. + +v4.0.0.6 +Fixed Typos in installer text strings +Updated Silent Uninstaller feature (/Y) to work as specified by TI + +v4.0.0.5 +Initial InstallJammer release. +Silent uninstall not configured correctly. +Not all Imports work as expected. + +v4.0.0.4 +Not released + +v4.0.0.3 +InstallShield version for CCS v4 Early Adopter +Directory Structure Update + +v4.0.0.2 +InstallShield version for CCE v4 Early Adopter +Directory Structure Update + +v4.0.0.1 +InstallShield version for CCE v4 Early Adopter +Directory Structure Update + +v4.0.0.1 +InstallShield version for CCE v3.x Early Adopter +Initial installer + +=> HISTORY (LINUX) + +5.3.0.208 11 April 2013 +Built using IJ v1.2.14 (Build 179889) +Fixed [5] driver XML path and file names. + +5.3.0.207 02 April 2013 +Built using IJ v1.2.14 (Build 179889) +Updated to Match Windows Version + +5.3.0.206 27 February 2013 +Built using IJ v1.2.14 (Build 179889) +Updated/Added Installation Guides to Documentation folder + +5.2.0.205 24 July 2012 +Built using IJ v1.2.14 (Build 179889) +Added IJ Patch Information +Updated XDS560 OUT files to EPK v5.0.573.0 + +5.2.0.204 12 July 2012 +Built using IJ v1.2.14 (Build 179889) +Added HTML message when installing in user mode (not root or sudo) + when root is required for device driver updates. +Updated XDS560v2 firmware versions. +Updated XDS560 OUT files (correct 2010 date) which caused CCS + to hang on large program loads +Removed eclipse feature folder contents (not needed for P2) +Removed Kernel Mode Drivers - replaced with LIBUSB implementation. + +5.2.0.203 24 MAY 2012 +Built using IJ v1.2.14 (Build 179889) +Added missing driver XML files in targetdb for: + arp32, cortexA15, csstm, etb11, and pru devices/nodes. + +5.1.0.202 23 MAY 2012 +Built using IJ v1.2.14 (Build 179889) +Re-Updated 71-bh-permissions.rules file to fix enumeration issues on + newer Linux kernels + +5.1.0.201 10 APRIL 2012 +Built using IJ v1.2.14 (Build 179889) +Updated 71-bh-permissions.rules file to fix enumeration issues on + newer Linux kernels +Updated usb_server executable for differences in libusb0.1 and + libusb1.0+compatible that prevented threads from exiting + +5.1.0.200 06 FEBRUARY 2012 +Built using IJ v1.2.14 (Build 179889) +Added Linux Device Driver support for USB2000, USB510L and USB510W + +5.1.0.106 23 December 2011 +Built using IJ v1.2.14 (Build 179889) +Updated Cortex M3 XML File for M4 devices. +Updated Diagnostic Commands that use dbgjtag to include '-o' parameter + to eliminate backspace character so command will run properly on Linux + (Windows x86/x64 is updated as well). + + +5.1.0.105 03 November 2011 +Built using IJ v1.2.14 (Build 179889) +Added Command Line Utility for LAN560 that checks if + the unit is available (BhEthStatus). + +5.1.0.104 23 September 2011 +Built using IJ v1.2.14 (Build 179889) +Modified connection files to include DiagnosticCommand entry +Modified log folder area to begin with "bh_emupack" + +5.1.0.103 14 September 2011 +Built using IJ v1.2.14 (Build 179889) +Modified XDS560v2 connection files to include + 1149.7 parameters +Update Bh560v2Config to v1.0.0.9, which adds + more dbgjtag test ranges + +5.1.0.102 26 August 2011 +Built using IJ v1.2.14 (Build 179889) +Modified XDS560 and XDS560v2 connection files for + default TCLK in "legacy" mode, FALLing edge + +5.1.0.101 17 August 2011 +Built using IJ v1.2.14 (Build 179889) +Updated Search for JAVA JRE +Updated Bh560v2Config Utility to v1.0.0.8 +Updated Bh560v2-USB Mezzanine support files +Added LAN560 configuration tool for Linux +Modified XDS560 connection files for legacy mode + +5.1.0.002 05 April 2011 +Built using IJ v1.2.14 (Build 179889) +Modified install for user installation + +5.0.2.001 09 March 2011 +Built using IJ v1.2.14 (Build 179889) +Added timestamp update to install actions [per TI] +Added XDS560v2 Mezzanine Emulator Connection File +Added Support for XDS560v1 USB and LAN Emulators + (LAN560, USB560, USB560m, and USB560-BP) +Updated install scripts (i.e. for USB drivers) + +5.0.0.4 17 November 2010 +Fixed un/install script, bh_emulation_install.sh + +5.0.0.3 17 November 2010 +Built using IJ v1.2.14 (Build 179889) +Corrected install_scripts folder location to + <%installdir%>/../install_scripts + +5.0.0.2 16 November 2010 +Built using IJ v1.2.14 (Build 179889) +Modified install_scripts to a single file: + bh_emulation_install.sh and check for options: + --install, --uninstall + (and check that user is root) + +5.0.0.1 12 November 2010 +Built using IJ v1.2.14 (Build 179889) +Built for Linux +Removed check/prompt for root +Added Un/Install Scripts + +5.0.0.0 10 September 2010 +Built using IJ v1.2.14 (Build 179889) +Built for Linux + + +4.2.0.6 28 July 2010 +Built using IJ v1.2.14 (Build 179889) +Driver XML Updates - to match TI XDS100v2/XDS510 changes. + Added Files: bhemu510cortexA9.xml + bhemu510etbcs.xml + Updated Files: bhemu510cortexM.xml + bhemu510cs_dap.xml + bhemu510dap_pc.cml + Removed File: bhemu6400.xml (R10) + +4.2.0.5 09 July 2010 +Built using IJ v1.2.14 (Build 179889) +Added Missing LOOPBACK option to XDS560v2 Connection XML files. + +4.2.0.4 28 May 2010 +Built using IJ v1.2.14 (Build 179889) +Added XDS510 JSC Support (bhemujscl.dll) + +4.2.0.3 20 May 2010 +Built using IJ v1.2.14 (Build 179889) +Rolled Back from Microsoft.VC80.CRT 8.0.50727.4053 to .762 +Removed XDS560v2 OUT files (bh560v2e,u). +XDS560v2 firmware and _io.dll files updated to [EPK] v2.0.4.0 +**XDS510 support NOT updated for JSC in this release + +4.2.0.2 30 April 2010 +Built using IJ v1.2.14 (Build 179889) +Updated Bh560v2Config Utility (v1.0.0.5), + including documentation +Updates Driver XML files for TargetDB: + added TraceDeviceId field + added c66xx,c669x, and icepick_d + removed 24x and 27x +Fixed feature.xml dependency problems +**XDS510 support NOT updated for JSC in this release + +4.2.0.1 12 March 2010 +Built using IJ v1.2.14 (Build 179889) +Updated Device Driver install for Bh560v2 device +Added Bh560v2 files (XML, DLL, OUT, Config Utility, etc.) + + +4.0.1.1 31 December 2009 +Built using IJ v1.2.12 (Build 1.2.12.0) - 02 Dec 2008 +Created/Updated Driver XML files for TargetDB to match + TI CCS v4.0.0 through v4.0.2 - This corrects C28x + imports for CLA updates and OMAP L13x imports. + + +4.0.1.0 02 September 2009 +Built using IJ v1.2.12 (Build 1.2.12.0) - 02 Dec 2008 +Original RTM release for CCS v4 + +4.0.0.21 02 June 2009 +Built using IJ v1.2.12 (Build 1.2.12.0) - 02 Dec 2008 +Added Support for UpdateManager +Removed "configurations" files + +4.0.0.20 01 June 2009 +Built using IJ v1.2.12 (Build 1.2.12.0) - 02 Dec 2008 +Updated Driver XML Files to include "realtimeEnabled" + field (28x,55x,64x,64xp,674x) +Added bhemu674x.xml file to be consistent with TI updates. +Updated XDS560 (and XDS510) Connection files for new parsing scheme. + +4.0.0.19 09 April 2009 +Built using IJ v1.2.12 (Build 1.2.12.0) - 02 Dec 2008 +Updated Connection XML Files. +Renamed ccxml and xml files to 20pin (not Rev D) + +4.0.0.18 30 March 2009 +Built using IJ v1.2.12 (Build 1.2.12.0) - 02 Dec 2008 +Corrected connection file location (inadvertently installing to TEMP folder) +Updated Installer for Device drivers v01.09.03.23 + - No actual driver file changes. + +4.0.0.17 24 March 2009 +Built using IJ v1.2.12 (Build 1.2.12.0) - 02 Dec 2008 +Updated Device drivers to v01.09.03.23 + - Updated CPL for XP Pro x64 to handle old (pre-Vista) runtime DLL + - Updated Installer to support "/mode Silent" +Updated BHEMUTBCL.DLL to correct SC_ERR_OCS_NUMBER message when + multiple USB2000/510L controllers are used simultaneously. + +4.0.0.16 05 March 2009 +Built using IJ v1.2.12 (Build 1.2.12.0) - 02 Dec 2008 +Created Unique installer ID (GUID) +Modified UNINSTALL to prompt user ("Are you sure you want to uninstall?") +Device Drivers updated to v1.09.01.15 (LAN560 Updates) +Removed pre-defined imports for C28x and C54x devices. + +v4.0.0.15 +Updated XDS560 imports to use tixds560c64xp.xml file name. +This version is included in the TI Beta 2 release + +v4.0.0.14 +Built using InstallJammer v1.2.12. +Updated Connection XML files to use "20-pin JTAG Cable", not "Rev.D" +This update may require a certain minimum CCS v4 build. + +v4.0.0.13 +Updated Installer to support the new, standard ISA="" strings used +in the targetdb\drivers XML files missed in previous build. +This update may require a certain minimum CCS v4 build. + +v4.0.0.12 +Updated Installer to support the new, standard ISA="" strings used +in the targetdb XML files. +This update may require a certain minimum CCS v4 build. + +v4.0.0.11 +Updated Installer to support ISA command line options (noc2400, +noc2800, noc5400, noc5500, noc6000, noarm, noomap, nodavinci). +Updated Windows devices drivers. + +4.0.0.10 +Updated XDS560 Files to USCIF v35.34.0.2 (USCIF Dynamic Loading) + +4.0.0.9 +Added Components, Groups and Files for target ISA and documentation + +4.0.0.8 +Updated Connection Files to use id="addrPort1". + +v4.0.0.7 +Added workaround in configuration .XML files to use "devices.old" folder. + +v4.0.0.6 +Fixed Typos in installer text strings +Updated Silent Uninstaller feature (/Y) to work as specified by TI + +v4.0.0.5 +Initial InstallJammer release. +Silent uninstall not configured correctly. +Not all Imports work as expected. + +v4.0.0.4 +Not released + +v4.0.0.3 +InstallShield version for CCS v4 Early Adopter +Directory Structure Update + +v4.0.0.2 +InstallShield version for CCE v4 Early Adopter +Directory Structure Update + +v4.0.0.1 +InstallShield version for CCE v4 Early Adopter +Directory Structure Update + +v4.0.0.1 +InstallShield version for CCE v3.x Early Adopter +Initial installer + + +=> DESCRIPTION + +Blackhawk Emulation Drivers for CCS v6 using InstallBuilder. + + + +>> Emulator Product(s) Supported + +====================================================================== +CCS v9.x and later +====================================================================== +WINDOWS: + PCI560 JTAG Emulator P/N: BH-PCI-560 + LAN560 JTAG Emulator P/N: BH-LAN-560 + USB560 JTAG Emulator P/N: BH-USB-560 + USB560M JTAG Emulator P/N: BH-USB-560M + USB560BP JTAG Emulator P/N: BH-USB-560BP + + USB560v2 JTAG Emulator P/N: BH-USB-560v2 + XDS560v2 JTAG Emulator P/N: BH-XDS-560v2 + XDS560v2 JTAG Emulator P/N: BH-XDS-560v2-BP + XDS560v2 USB Mezzanine P/N: tbd + +LINUX: + USB2000 Controller P/N: BH-USB-2000 + USB510L JTAG Emulator P/N: BH-USB-510L + USB510W JTAG Emulator P/N: BH-USB-510W + + USB200 JTAG Emulator P/N: BH-USB-200 + + LAN560 JTAG Emulator P/N: BH-LAN-560 + USB560 JTAG Emulator P/N: BH-USB-560 + USB560M JTAG Emulator P/N: BH-USB-560M + USB560BP JTAG Emulator P/N: BH-USB-560BP + + USB560v2 JTAG Emulator P/N: BH-USB-560v2 + XDS560v2 JTAG Emulator P/N: BH-XDS-560v2 + XDS560v2 JTAG Emulator P/N: BH-XDS-560v2-BP + XDS560v2 USB Mezzanine P/N: tbd + + +====================================================================== +CCS v8.x and earlier +====================================================================== +WINDOWS: + USB-JTAG Emulator P/N: BH-USB-1 (32-bit Windows XP only) + USB 2.0 JTAG Emulator P/N: BH-USB-2 (32-bit Windows XP only) + + USB2000 Controller P/N: BH-USB-2000 + PCI510 JTAG Emulator P/N: BH-PCI-510 + USB510 JTAG Emulator P/N: BH-USB-510 + USB510L JTAG Emulator P/N: BH-USB-510L + USB510W JTAG Emulator P/N: BH-USB-510W + + USB200 JTAG Emulator P/N: BH-USB-200 + + PCI560 JTAG Emulator P/N: BH-PCI-560 + LAN560 JTAG Emulator P/N: BH-LAN-560 + USB560 JTAG Emulator P/N: BH-USB-560 + USB560M JTAG Emulator P/N: BH-USB-560M + USB560BP JTAG Emulator P/N: BH-USB-560BP + + USB560v2 JTAG Emulator P/N: BH-USB-560v2 + XDS560v2 JTAG Emulator P/N: BH-XDS-560v2 + XDS560v2 JTAG Emulator P/N: BH-XDS-560v2-BP + XDS560v2 USB Mezzanine P/N: tbd + +LINUX: + USB2000 Controller P/N: BH-USB-2000 + USB510L JTAG Emulator P/N: BH-USB-510L + USB510W JTAG Emulator P/N: BH-USB-510W + + USB200 JTAG Emulator P/N: BH-USB-200 + + LAN560 JTAG Emulator P/N: BH-LAN-560 + USB560 JTAG Emulator P/N: BH-USB-560 + USB560M JTAG Emulator P/N: BH-USB-560M + USB560BP JTAG Emulator P/N: BH-USB-560BP + + USB560v2 JTAG Emulator P/N: BH-USB-560v2 + XDS560v2 JTAG Emulator P/N: BH-XDS-560v2 + XDS560v2 JTAG Emulator P/N: BH-XDS-560v2-BP + XDS560v2 USB Mezzanine P/N: tbd diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/Blackhawk/Utility/BHDetect/BHDetect.exe b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/Blackhawk/Utility/BHDetect/BHDetect.exe new file mode 100644 index 0000000..75201bd Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/Blackhawk/Utility/BHDetect/BHDetect.exe differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/Blackhawk/Utility/ReadMe.txt b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/Blackhawk/Utility/ReadMe.txt new file mode 100644 index 0000000..2b44fc7 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/Blackhawk/Utility/ReadMe.txt @@ -0,0 +1,36 @@ +Blackhawk(tm) Utility Folder README + +=================================== +Blackhawk + +123 Gaither Drive +Mount Laurel, New Jersey 08054-1701 + +Tel: +1 (856) 234-2629 + +http://www.blackhawk-dsp.com +=================================== +2013 (c) EWA Technologies, Inc. + + +The following is a brief overview of the folders, their use, +and the current version to be used if there is more than one +option. + + + +\BHProbe.2 + +Removed Octover 20123 for CCS v6 installation. +Contact Blackhawk for these utility files. + + + +\BHDetect + +Contains the latest version of our utility that scan your system +to find inconsistancies with TI CCStudio files and our emulation +driver files. + + +EOF \ No newline at end of file diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/Blackhawk/blackhawk.ico b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/Blackhawk/blackhawk.ico new file mode 100644 index 0000000..f67f4b5 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/Blackhawk/blackhawk.ico differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/Blackhawk/logo.jpg b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/Blackhawk/logo.jpg new file mode 100644 index 0000000..1b88266 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/Blackhawk/logo.jpg differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/560trace_receiver_setup.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/560trace_receiver_setup.xml new file mode 100644 index 0000000..1850a4c --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/560trace_receiver_setup.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + 0 + 0 + 0 + 1 + 64 + default_fns.xml + hdr2pinmap.xml + startupcfg.xml + trgtconnectivity.xml + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/AETOperationServer.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/AETOperationServer.dll new file mode 100644 index 0000000..8717565 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/AETOperationServer.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/AETProperties.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/AETProperties.dll new file mode 100644 index 0000000..38d81c0 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/AETProperties.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/AETPropertyHelper.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/AETPropertyHelper.dll new file mode 100644 index 0000000..fa0e2d9 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/AETPropertyHelper.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ArmDecoder.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ArmDecoder.dll new file mode 100644 index 0000000..5474286 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ArmDecoder.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ArmDeviceConfigManager.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ArmDeviceConfigManager.dll new file mode 100644 index 0000000..6ac358e Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ArmDeviceConfigManager.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/C7xDecoder.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/C7xDecoder.dll new file mode 100644 index 0000000..2abae7f Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/C7xDecoder.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/CToolsTraceScripting.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/CToolsTraceScripting.dll new file mode 100644 index 0000000..6f937cb Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/CToolsTraceScripting.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/CloudTrace.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/CloudTrace.dll new file mode 100644 index 0000000..e80c1a1 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/CloudTrace.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/DeviceDataBaseUtility.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/DeviceDataBaseUtility.dll new file mode 100644 index 0000000..3d59284 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/DeviceDataBaseUtility.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/DeviceIdentifier.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/DeviceIdentifier.dll new file mode 100644 index 0000000..3ba067f Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/DeviceIdentifier.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/DrishtiDataSource.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/DrishtiDataSource.dll new file mode 100644 index 0000000..e13c235 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/DrishtiDataSource.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/DrishtiFileChannelDriver.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/DrishtiFileChannelDriver.dll new file mode 100644 index 0000000..f9fa42d Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/DrishtiFileChannelDriver.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/DrishtiRcvr.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/DrishtiRcvr.dll new file mode 100644 index 0000000..b7f4398 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/DrishtiRcvr.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/DspDeviceConfigManager.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/DspDeviceConfigManager.dll new file mode 100644 index 0000000..2d2bb90 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/DspDeviceConfigManager.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/DtcDataSource.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/DtcDataSource.dll new file mode 100644 index 0000000..1ec9856 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/DtcDataSource.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/DtcRcvr.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/DtcRcvr.dll new file mode 100644 index 0000000..c7bdc3a Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/DtcRcvr.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ETBRcvr.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ETBRcvr.dll new file mode 100644 index 0000000..c033699 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ETBRcvr.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ETBTDRcvr.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ETBTDRcvr.dll new file mode 100644 index 0000000..5015824 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ETBTDRcvr.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/EradMtbDecoder.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/EradMtbDecoder.dll new file mode 100644 index 0000000..ef5c0da Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/EradMtbDecoder.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/EtbDataSource.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/EtbDataSource.dll new file mode 100644 index 0000000..4385e50 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/EtbDataSource.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/EtmHistTI.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/EtmHistTI.dll new file mode 100644 index 0000000..a1e9bdd Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/EtmHistTI.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/Etmv3HistTI.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/Etmv3HistTI.dll new file mode 100644 index 0000000..64cd27e Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/Etmv3HistTI.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ICETargetAdapter.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ICETargetAdapter.dll new file mode 100644 index 0000000..0bedf8f Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ICETargetAdapter.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/IceCD.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/IceCD.dll new file mode 100644 index 0000000..c23efd3 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/IceCD.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ItmDWTDecodeUnit.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ItmDWTDecodeUnit.dll new file mode 100644 index 0000000..83affe2 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ItmDWTDecodeUnit.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ItmDecoder.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ItmDecoder.dll new file mode 100644 index 0000000..18168f2 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ItmDecoder.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ItmSWDecodeUnit.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ItmSWDecodeUnit.dll new file mode 100644 index 0000000..a38a104 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ItmSWDecodeUnit.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/JTrace.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/JTrace.dll new file mode 100644 index 0000000..c6a964f Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/JTrace.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/MTBRcvr.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/MTBRcvr.dll new file mode 100644 index 0000000..501c4be Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/MTBRcvr.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/MtbDataSource.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/MtbDataSource.dll new file mode 100644 index 0000000..31f871c Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/MtbDataSource.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/MtbDecoder.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/MtbDecoder.dll new file mode 100644 index 0000000..00c514b Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/MtbDecoder.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/OCPDecoderUnit.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/OCPDecoderUnit.dll new file mode 100644 index 0000000..d3005d4 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/OCPDecoderUnit.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/OCPDecoderUnitH08.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/OCPDecoderUnitH08.dll new file mode 100644 index 0000000..1ffe039 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/OCPDecoderUnitH08.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/OpenCsdDecoder.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/OpenCsdDecoder.dll new file mode 100644 index 0000000..f30e2b1 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/OpenCsdDecoder.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ProRcvr.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ProRcvr.dll new file mode 100644 index 0000000..6bed9c4 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ProRcvr.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ProgDataSrcCoff.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ProgDataSrcCoff.dll new file mode 100644 index 0000000..0db47ee Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ProgDataSrcCoff.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/PtmHist.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/PtmHist.dll new file mode 100644 index 0000000..9c0962d Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/PtmHist.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/Receiver_CFEOpts.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/Receiver_CFEOpts.xml new file mode 100644 index 0000000..9d00bcf --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/Receiver_CFEOpts.xml @@ -0,0 +1,343 @@ + + + 0 + 0 + 0 + 180 + 1 + 0 + 0 + 167.0e6 + + + + + + + + + + + + + + + + + + + + + + + + + + + + 28 + 1 + + + 11 + 75 + + + 8 + 76 + + + 0 + 67 + + + 1 + 66 + + + 2 + 65 + + + 3 + 68 + + + 4 + 66 + + + 5 + 64 + + + 6 + 65 + + + 7 + 67 + + + 9 + 73 + + + 10 + 74 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 12-PIN Trace[EMU11:0] + 209 + 309 + 210 + 311 + 211 + 312 + 313 + 213 + 314 + 214 + 310 + 307 + + + + 11-PIN Trace[EMU11:1] + 209 + 309 + 210 + 311 + 211 + 312 + 313 + 213 + 314 + 310 + 307 + + + + 10-PIN Trace[EMU11:2] + 209 + 309 + 210 + 311 + 211 + 312 + 313 + 213 + 310 + 307 + + + + + + + 12-PIN Trace[EMU11:0] + 209 + 309 + 210 + 311 + 211 + 312 + 313 + 213 + 314 + 214 + 310 + 307 + + + + 11-PIN Trace[EMU11:1] + 209 + 309 + 210 + 311 + 211 + 312 + 313 + 213 + 314 + 310 + 307 + + + + 10-PIN Trace[EMU11:2] + 209 + 309 + 210 + 311 + 211 + 312 + 313 + 213 + 310 + 307 + + + + 12-PIN Trace[EMU13:2] + 307 + 206 + 209 + 310 + 210 + 311 + 211 + 312 + 313 + 213 + 309 + 306 + + + + + + + + + + + 12-PIN Trace[EMU11:0] + 214 + 314 + 213 + 313 + 312 + 211 + 311 + 210 + 310 + 209 + 309 + 307 + + + + + + + + 12-PIN Trace[EMU11:0] + 214 + 314 + 213 + 313 + 312 + 211 + 311 + 210 + 310 + 209 + 309 + 307 + + + + + + + W3G 5-PIN STM Trace[EMU17:13] w/Mictor Adapter + 205 + 305 + 304 + 203 + 306 + + + + + W3G 3-PIN STM Trace[EMU15:13] w/Mictor Adapter + 205 + 305 + 306 + + + + W3G 2-PIN STM Trace[EMU14:13] w/Mictor Adapter + 205 + 306 + + + + W3G 5-PIN STM Trace[EMU4:0] w/20-60 pin Adapter + 314 + 213 + 313 + 312 + 214 + + + + W3G 3-PIN STM Trace[EMU2:0] w/20-60 pin Adapter + 314 + 213 + 214 + + + + W3G 2-PIN STM Trace[EMU1:0] w/20-60 pin Adapter + 314 + 214 + + + + + + + 12-PIN Trace[EMU13:2] + 312 + 211 + 311 + 210 + 310 + 209 + 309 + 307 + 206 + 306 + 213 + 313 + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/SCDecoderUnit.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/SCDecoderUnit.dll new file mode 100644 index 0000000..37aae02 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/SCDecoderUnit.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/SMSETConverter.exe b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/SMSETConverter.exe new file mode 100644 index 0000000..9a51c51 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/SMSETConverter.exe differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/SetDecoder.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/SetDecoder.dll new file mode 100644 index 0000000..bfa80c1 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/SetDecoder.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/SetupAdapter4.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/SetupAdapter4.dll new file mode 100644 index 0000000..ddc677a Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/SetupAdapter4.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/StmCPTracerDecoder.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/StmCPTracerDecoder.dll new file mode 100644 index 0000000..d95c245 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/StmCPTracerDecoder.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/StmDecodeUnitPreprocessor.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/StmDecodeUnitPreprocessor.dll new file mode 100644 index 0000000..3cbe4ab Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/StmDecodeUnitPreprocessor.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/StmDecodeUnitSoftwareMessage.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/StmDecodeUnitSoftwareMessage.dll new file mode 100644 index 0000000..9eee8ff Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/StmDecodeUnitSoftwareMessage.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/StmDecoder.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/StmDecoder.dll new file mode 100644 index 0000000..0394a19 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/StmDecoder.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/StmDecoderUnitClockProfiler.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/StmDecoderUnitClockProfiler.dll new file mode 100644 index 0000000..7e62e20 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/StmDecoderUnitClockProfiler.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/StmDecoderUnitDefault.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/StmDecoderUnitDefault.dll new file mode 100644 index 0000000..9fb9763 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/StmDecoderUnitDefault.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/StmDecoderUnitLoadLatency.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/StmDecoderUnitLoadLatency.dll new file mode 100644 index 0000000..eceae3c Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/StmDecoderUnitLoadLatency.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/StmDecoderUnitPowerProfiler.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/StmDecoderUnitPowerProfiler.dll new file mode 100644 index 0000000..787ccd4 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/StmDecoderUnitPowerProfiler.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/StmDeviceConfigManager.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/StmDeviceConfigManager.dll new file mode 100644 index 0000000..229f00a Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/StmDeviceConfigManager.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/StpCPTracer2Decoder.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/StpCPTracer2Decoder.dll new file mode 100644 index 0000000..debc5a8 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/StpCPTracer2Decoder.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/StpRaDecoder.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/StpRaDecoder.dll new file mode 100644 index 0000000..08f02d6 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/StpRaDecoder.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/SwoDataSource.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/SwoDataSource.dll new file mode 100644 index 0000000..c7d580c Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/SwoDataSource.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/SwoRcvr.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/SwoRcvr.dll new file mode 100644 index 0000000..418059d Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/SwoRcvr.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/System_xmtr.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/System_xmtr.dll new file mode 100644 index 0000000..7badeb2 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/System_xmtr.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/TraceCntrl_DefaultSettings.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/TraceCntrl_DefaultSettings.xml new file mode 100644 index 0000000..c726fde --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/TraceCntrl_DefaultSettings.xml @@ -0,0 +1,32 @@ + + + + 560 Trace Pod + 0 + 0 + 0 + 1 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 3 + 0 + + + + + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 1 + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/TraceCntrl_DefaultSettings_ETB.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/TraceCntrl_DefaultSettings_ETB.xml new file mode 100644 index 0000000..1f94fca --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/TraceCntrl_DefaultSettings_ETB.xml @@ -0,0 +1,26 @@ + + + + + ETB + Auto + 1 + Circular buffer + 0 + 0 + 1 + 1 + 1 + 1 + 0 + 0 + Low + Before + 0 + 0 + 0 + 0 + Low + 0 + 0 + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/TraceCntrl_DefaultSettings_PRO_Dsp.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/TraceCntrl_DefaultSettings_PRO_Dsp.xml new file mode 100644 index 0000000..fedbe8f --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/TraceCntrl_DefaultSettings_PRO_Dsp.xml @@ -0,0 +1,33 @@ + + + + Pro Trace + TraceCntrl_DefaultSettings_PRO_Globals.xml + + 10 + + true + true + 4 + dsp + + -1 + -1 + false + true + false + -1 + false + false + true + true + true + true + true + false + false + false + false + false + false + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/TraceCntrl_DefaultSettings_PRO_Globals.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/TraceCntrl_DefaultSettings_PRO_Globals.xml new file mode 100644 index 0000000..8cef82e --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/TraceCntrl_DefaultSettings_PRO_Globals.xml @@ -0,0 +1,12 @@ + + +false +false +0 +true +0 +0.0.0.0 + + +false + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/TraceCntrl_DefaultSettings_PRO_Stm.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/TraceCntrl_DefaultSettings_PRO_Stm.xml new file mode 100644 index 0000000..3569a8a --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/TraceCntrl_DefaultSettings_PRO_Stm.xml @@ -0,0 +1,23 @@ + + + + Pro Trace + TraceCntrl_DefaultSettings_PRO_Globals.xml + + 1 + + true + true + 4 + pti + + -1 + -1 + false + true + false + -1 + false + false + true + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/TraceCntrl_DefaultSettings_STM.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/TraceCntrl_DefaultSettings_STM.xml new file mode 100644 index 0000000..a65120e --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/TraceCntrl_DefaultSettings_STM.xml @@ -0,0 +1,42 @@ + + + + 560 Trace Pod + 0 + 0 + 0 + 1 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + + + + + + + + + + + + + + + + + + + 0 + 1 + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/TraceDecode.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/TraceDecode.dll new file mode 100644 index 0000000..844c315 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/TraceDecode.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/TraceFactory.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/TraceFactory.dll new file mode 100644 index 0000000..29de1ed Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/TraceFactory.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/TraceIFMgr.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/TraceIFMgr.dll new file mode 100644 index 0000000..a69992d Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/TraceIFMgr.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/TraceJNI.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/TraceJNI.dll new file mode 100644 index 0000000..2079fee Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/TraceJNI.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/TraceOperationServer.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/TraceOperationServer.dll new file mode 100644 index 0000000..c2879ae Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/TraceOperationServer.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/TwpDataSource.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/TwpDataSource.dll new file mode 100644 index 0000000..ec3ded6 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/TwpDataSource.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/bin2tdf.exe b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/bin2tdf.exe new file mode 100644 index 0000000..8a3a024 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/bin2tdf.exe differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/c6xinstr.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/c6xinstr.dll new file mode 100644 index 0000000..bb4a061 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/c6xinstr.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/cToolsIF.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/cToolsIF.dll new file mode 100644 index 0000000..86e9760 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/cToolsIF.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ct470api.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ct470api.dll new file mode 100644 index 0000000..b53e5e6 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ct470api.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ctools.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ctools.dll new file mode 100644 index 0000000..8d9ad72 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ctools.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ctoolsTraceScripting.jar b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ctoolsTraceScripting.jar new file mode 100644 index 0000000..39e28e5 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ctoolsTraceScripting.jar differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ctools_xmtr.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ctools_xmtr.dll new file mode 100644 index 0000000..d130d80 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ctools_xmtr.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ctoolsndbg.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ctoolsndbg.dll new file mode 100644 index 0000000..27bdc58 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ctoolsndbg.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/default_fns.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/default_fns.xml new file mode 100644 index 0000000..896757c --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/default_fns.xml @@ -0,0 +1,171 @@ + + + + + + HIGH + POS_EDGE + INPUT + + + TDI + DFLT_TDI + 0x14 + 0x14 + + IO + + EMU0 + DFLT_EMU0 + 0x15 + 0x15 + + + EMU1 + DFLT_EMU1 + 0x16 + 0x16 + + OUTPUT + + TCLK + DFLT_TCK + 0x18 + + + TLR + DFLT_TLR + 0x19 + + + TMS + DFLT_TMS + 0x1A + + + TDO + DFLT_TDO + 0x1B + + IO + + RTDX_0_0 + DFLT_RTDX_0_0 + 0x00 + 0x00 + + + RTDX_0_1 + DFLT_RTDX_0_1 + 0x01 + 0x01 + + + RTDX_0_2 + DFLT_RTDX_0_2 + 0x02 + 0x02 + + + RTDX_0_3 + DFLT_RTDX_0_3 + 0x03 + 0x03 + + + RTDX_1_0 + DFLT_RTDX_1_0 + 0x04 + 0x04 + + + RTDX_1_1 + DFLT_RTDX_1_1 + 0x05 + 0x05 + + + RTDX_1_2 + DFLT_RTDX_1_2 + 0x06 + 0x06 + + + RTDX_1_3 + DFLT_RTDX_1_3 + 0x07 + 0x07 + + + RTDX_2_0 + DFLT_RTDX_2_0 + 0x08 + 0x08 + + + RTDX_2_1 + DFLT_RTDX_2_1 + 0x09 + 0x09 + + + RTDX_2_2 + DFLT_RTDX_2_2 + 0x0A + 0x0A + + + RTDX_2_3 + DFLT_RTDX_2_3 + 0x0B + 0x0B + + + RTDX_3_0 + DFLT_RTDX_3_0 + 0x0C + 0x0C + + + RTDX_3_1 + DFLT_RTDX_3_1 + 0x0D + 0x0D + + + RTDX_3_2 + DFLT_RTDX_3_2 + 0x0E + 0x0E + + + RTDX_3_3 + DFLT_RTDX_3_3 + 0x0F + 0x0F + + + FSX_0 + DFLT_FSX_0 + 0x10 + 0x10 + + + FSX_1 + DFLT_FSX_1 + 0x20 + 0x11 + + + FSX_2 + DFLT_FSX_2 + 0x30 + 0x12 + + + FSX_3 + DFLT_FSX_3 + 0x40 + 0x13 + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/energytraceccs.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/energytraceccs.dll new file mode 100644 index 0000000..7ee165e Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/energytraceccs.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/energytracestandalone.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/energytracestandalone.dll new file mode 100644 index 0000000..6559c5b Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/energytracestandalone.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/etm_xmtr.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/etm_xmtr.dll new file mode 100644 index 0000000..3321fe2 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/etm_xmtr.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/hdr2pinmap.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/hdr2pinmap.xml new file mode 100644 index 0000000..9d1912d --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/hdr2pinmap.xml @@ -0,0 +1,86 @@ + + + + + + + + + B14 + 0x00 + + + C14 + 0x01 + + + B13 + 0x02 + + + C13 + 0x03 + + + C12 + 0x04 + + + B11 + 0x05 + + + C11 + 0x06 + + + B10 + 0x07 + + + C10 + 0x08 + + + B09 + 0x09 + + + C09 + 0x0A + + + C07 + 0x0B + + + B06 + 0x0C + + + C06 + 0x0D + + + B05 + 0x0E + + + C05 + 0x0F + + + C04 + 0x10 + + + B03 + 0x11 + + + C02 + 0x12 + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/pathinfo.ini b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/pathinfo.ini new file mode 100644 index 0000000..02cdbc9 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/pathinfo.ini @@ -0,0 +1,11 @@ +[PATHS] +CTOOLS_BIN=. +CTOOLS_XMLDB=../xmldb/aet_config +TRACE_XMLDB_SETUP=../xmldb/trace_config/setup +TRACE_XMLDB_DEVICES =../xmldb/trace_config/devices +COMMON_BIN=../../../common/bin +COMMON_USCIF=../../../common/uscif +TPI=../../tpi + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/sqlite3.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/sqlite3.dll new file mode 100644 index 0000000..4b80630 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/sqlite3.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/startupcfg.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/startupcfg.xml new file mode 100644 index 0000000..ad7062d --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/startupcfg.xml @@ -0,0 +1,31 @@ + + + + + + + + + 0 + + B12 + TCLK + + + B04 + TDI + + + C03 + TLR + + + B02 + TMS + + + B07 + TDO + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/stune/argtable2.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/stune/argtable2.dll new file mode 100644 index 0000000..7f4541b Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/stune/argtable2.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/stune/ccxmlsetup.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/stune/ccxmlsetup.dll new file mode 100644 index 0000000..0e91e86 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/stune/ccxmlsetup.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/stune/stune.exe b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/stune/stune.exe new file mode 100644 index 0000000..7e80709 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/stune/stune.exe differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/td.exe b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/td.exe new file mode 100644 index 0000000..9a67acb Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/td.exe differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ti_aett_c2000.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ti_aett_c2000.dll new file mode 100644 index 0000000..6735a84 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ti_aett_c2000.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ti_aett_cmcu.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ti_aett_cmcu.dll new file mode 100644 index 0000000..63714d4 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ti_aett_cmcu.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ti_aett_database.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ti_aett_database.dll new file mode 100644 index 0000000..d1962d7 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ti_aett_database.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ti_aett_keystone2.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ti_aett_keystone2.dll new file mode 100644 index 0000000..03858dc Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ti_aett_keystone2.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ti_aett_keystone3.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ti_aett_keystone3.dll new file mode 100644 index 0000000..3ae014b Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ti_aett_keystone3.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ti_aett_logger.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ti_aett_logger.dll new file mode 100644 index 0000000..ebc5eaf Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ti_aett_logger.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ti_aett_radar.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ti_aett_radar.dll new file mode 100644 index 0000000..e3df75d Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ti_aett_radar.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ti_aett_session.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ti_aett_session.dll new file mode 100644 index 0000000..97567ef Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ti_aett_session.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ti_aett_setup_manager.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ti_aett_setup_manager.dll new file mode 100644 index 0000000..69e452e Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ti_aett_setup_manager.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ti_aett_simplelink.dll b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ti_aett_simplelink.dll new file mode 100644 index 0000000..a243cb9 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/ti_aett_simplelink.dll differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/trace_client_config.txt b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/trace_client_config.txt new file mode 100644 index 0000000..291beec --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/trace_client_config.txt @@ -0,0 +1,164 @@ +################################################### +#File version="1.0.0.0" Copyright="Copyright (c) 2005-2007 Texas Instruments" +################################################### +# +# +# +# The client reads this property to create the reference to the +# "ChannelServer" object in the server. +# +ChannelServer.Proxy=ChannelServer:tcp -p 6501:udp -p 6501 + +# +# The server creates one single object adapter with the name +# "ChannelServer". The following line sets the endpoints for this +# adapter. +# +ChannelServer.Endpoints=tcp -p 6501:udp -p 6501 + + +# +# The Target Adapter channel ctools-> trace server +# +TargetAdapterFactory.Proxy=TargetAdapterFactory:tcp -p 6502:udp -p 6502 + +TargetAdapterFactory.Endpoints=tcp -p 6502:udp -p 6502 + + +# +# The Target Event Broker trace server-> ctools/ICETargetAdapter +# +TargetEventBroker.Proxy=TargetEventBroker:tcp -p 6503:udp -p 6503 + +TargetEventBroker.Endpoints=tcp -p 6503:udp -p 6503 + +# +# Warn about connection exceptions +# +Ice.Warn.Connections=0 + +# +#Disable Active Connection Management +# +Ice.ConnectionIdleTime=0 + +# +# Network Tracing +# +# 0 = no network tracing +# 1 = trace connection establishment and closure +# 2 = like 1, but more detailed +# 3 = like 2, but also trace data transfer +# +Ice.Trace.Network=0 + +# +# Protocol Tracing +# +# 0 = no protocol tracing +# 1 = trace protocol messages +# +Ice.Trace.Protocol=0 + +# +# Security Tracing +# +# 0 = no security tracing +# 1 = trace warning messages +# 2 = config file parsing warnings +# +IceSSL.Trace.Security=0 + +# +# SSL Configuration File +# +# An XML based file that specifies the certificates, keys, SSL version +# and other pertinent information for creating an SSL connection. +# +#Ice.Plugin.IceSSL=IceSSL:create +#IceSSL.Client.CertPath=../../../certs +#IceSSL.Client.Config=sslconfig.xml +#IceSSL.Server.CertPath=../../../certs +#IceSSL.Server.Config=sslconfig.xml + +# +# Glacier settings +# +Glacier.Router.Endpoints=default -p 6504 +Glacier.Router.Client.Endpoints=tcp:udp:ssl +Glacier.Router.Trace.Client=0 +Glacier.Router.Trace.RoutingTable=1 + +# +# IcePack registry settings (assumes that a db directory exists in the +# current working directory). +# +IcePack.Registry.Client.Endpoints=default -p 6505 +IcePack.Registry.Server.Endpoints=default +IcePack.Registry.Admin.Endpoints=default +IcePack.Registry.Data=db +IcePack.Registry.DynamicRegistration=1 + + +# +# This property is used to configure the endpoints of the clock +# subscriber adapter. +# +ChannelListener.Subscriber.Endpoints=tcp + +# +# This property is used by the clients to connect to IceStorm. +# +IceStorm.TopicManager.Proxy=IceStorm/TopicManager:default -p 6506 + +# +# This property defines the endpoints on which the IceStorm +# TopicManager listens. +# +IceStorm.TopicManager.Endpoints=default -p 6506 + +# +# This property defines the endpoints on which the topic +# publisher objects listen. +# +IceStorm.Publish.Endpoints=default + +# +# TopicManager Tracing +# +# 0 = no tracing +# 1 = trace topic creation, subscription, unsubscription +# 2 = like 1, but with more detailed subscription information +# +IceStorm.Trace.TopicManager=0 + +# +# Topic Tracing +# +# 0 = no tracing +# 1 = trace unsubscription diagnostics +# +IceStorm.Trace.Topic=0 + +# +# Subscriber Tracing +# +# 0 = no tracing +# 1 = subscriber diagnostics (subscription, unsubscription, event +# propagation failures) +# +IceStorm.Trace.Subscriber=0 + +# +# Flush Tracing (for batch mode transfer flushing) +# +# 0 = no tracing +# 1 = trace activity of flusher thread +# +IceStorm.Trace.Flush=0 + +# +# Amount of time in milliseconds between flushes for batch mode +# transfer. The minimum allowable value is 100ms. +# +IceStorm.Flush.Timeout = 0 diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/trace_server_config.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/trace_server_config.xml new file mode 100644 index 0000000..f900726 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/trace_server_config.xml @@ -0,0 +1,63 @@ + + + + + + TraceCntrl + + ICETargetAdapter + + + + MTB + MTBRcvr + false + + + ETB + ETBRcvr + true + + + 560 V2 Trace + DtcRcvr + true + + + 560 Trace Pod + TsunamiRcvr + true + + + Pro Trace + ProRcvr + true + + + SWO Trace + SwoRcvr + false + + + None + None + true + + + + + + DSP Transmitter + ctools_xmtr + + + ARM Transmitter + etm_xmtr + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/trgtconnectivity.xml b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/trgtconnectivity.xml new file mode 100644 index 0000000..843ff8e --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/trgtconnectivity.xml @@ -0,0 +1,507 @@ + + + + + + + + + + + + + 0 + + B14 + 0 + TRACE_0 + TRACE_1 + TRACE_2 + TRACE_3 + TRACE_4 + TRACE_5 + TRACE_6 + TRACE_7 + TRACE_8 + TRACE_9 + TRACE_10 + TRACE_11 + RTDX_0_0 + RTDX_0_1 + RTDX_0_2 + RTDX_0_3 + RTDX_1_0 + RTDX_1_1 + RTDX_1_2 + RTDX_1_3 + RTDX_2_0 + RTDX_2_1 + RTDX_2_2 + RTDX_2_3 + EMU_0 + EMU_1 + EMU_2 + EMU_3 + EMU_4 + EMU_5 + EMU_6 + EMU_7 + EMU_8 + EMU_9 + EMU_10 + EMU_11 + + + C14 + 1 + TRACE_0 + TRACE_1 + TRACE_2 + TRACE_3 + TRACE_4 + TRACE_5 + TRACE_6 + TRACE_7 + TRACE_8 + TRACE_9 + TRACE_10 + TRACE_11 + RTDX_0_0 + RTDX_0_1 + RTDX_0_2 + RTDX_0_3 + RTDX_1_0 + RTDX_1_1 + RTDX_1_2 + RTDX_1_3 + RTDX_2_0 + RTDX_2_1 + RTDX_2_2 + RTDX_2_3 + EMU_0 + EMU_1 + EMU_2 + EMU_3 + EMU_4 + EMU_5 + EMU_6 + EMU_7 + EMU_8 + EMU_9 + EMU_10 + EMU_11 + + + B13 + 2 + TRACE_0 + TRACE_1 + TRACE_2 + TRACE_3 + TRACE_4 + TRACE_5 + TRACE_6 + TRACE_7 + TRACE_8 + TRACE_9 + TRACE_10 + TRACE_11 + RTDX_0_0 + RTDX_0_1 + RTDX_0_2 + RTDX_0_3 + RTDX_1_0 + RTDX_1_1 + RTDX_1_2 + RTDX_1_3 + RTDX_2_0 + RTDX_2_1 + RTDX_2_2 + RTDX_2_3 + EMU_0 + EMU_1 + EMU_2 + EMU_3 + EMU_4 + EMU_5 + EMU_6 + EMU_7 + EMU_8 + EMU_9 + EMU_10 + EMU_11 + + + C13 + 3 + TRACE_0 + TRACE_1 + TRACE_2 + TRACE_3 + TRACE_4 + TRACE_5 + TRACE_6 + TRACE_7 + TRACE_8 + TRACE_9 + TRACE_10 + TRACE_11 + RTDX_0_0 + RTDX_0_1 + RTDX_0_2 + RTDX_0_3 + RTDX_1_0 + RTDX_1_1 + RTDX_1_2 + RTDX_1_3 + RTDX_2_0 + RTDX_2_1 + RTDX_2_2 + RTDX_2_3 + EMU_0 + EMU_1 + EMU_2 + EMU_3 + EMU_4 + EMU_5 + EMU_6 + EMU_7 + EMU_8 + EMU_9 + EMU_10 + EMU_11 + + + C12 + 4 + TRACE_0 + TRACE_1 + TRACE_2 + TRACE_3 + TRACE_4 + TRACE_5 + TRACE_6 + TRACE_7 + TRACE_8 + TRACE_9 + TRACE_10 + TRACE_11 + RTDX_0_0 + RTDX_0_1 + RTDX_0_2 + RTDX_0_3 + RTDX_1_0 + RTDX_1_1 + RTDX_1_2 + RTDX_1_3 + RTDX_2_0 + RTDX_2_1 + RTDX_2_2 + RTDX_2_3 + EMU_0 + EMU_1 + EMU_2 + EMU_3 + EMU_4 + EMU_5 + EMU_6 + EMU_7 + EMU_8 + EMU_9 + EMU_10 + EMU_11 + + + B11 + 5 + TRACE_0 + TRACE_1 + TRACE_2 + TRACE_3 + TRACE_4 + TRACE_5 + TRACE_6 + TRACE_7 + TRACE_8 + TRACE_9 + TRACE_10 + TRACE_11 + RTDX_0_0 + RTDX_0_1 + RTDX_0_2 + RTDX_0_3 + RTDX_1_0 + RTDX_1_1 + RTDX_1_2 + RTDX_1_3 + RTDX_2_0 + RTDX_2_1 + RTDX_2_2 + RTDX_2_3 + EMU_0 + EMU_1 + EMU_2 + EMU_3 + EMU_4 + EMU_5 + EMU_6 + EMU_7 + EMU_8 + EMU_9 + EMU_10 + EMU_11 + + + C11 + 6 + TRACE_0 + TRACE_1 + TRACE_2 + TRACE_3 + TRACE_4 + TRACE_5 + TRACE_6 + TRACE_7 + TRACE_8 + TRACE_9 + TRACE_10 + TRACE_11 + RTDX_0_0 + RTDX_0_1 + RTDX_0_2 + RTDX_0_3 + RTDX_1_0 + RTDX_1_1 + RTDX_1_2 + RTDX_1_3 + RTDX_2_0 + RTDX_2_1 + RTDX_2_2 + RTDX_2_3 + EMU_0 + EMU_1 + EMU_2 + EMU_3 + EMU_4 + EMU_5 + EMU_6 + EMU_7 + EMU_8 + EMU_9 + EMU_10 + EMU_11 + + + B10 + 7 + TRACE_0 + TRACE_1 + TRACE_2 + TRACE_3 + TRACE_4 + TRACE_5 + TRACE_6 + TRACE_7 + TRACE_8 + TRACE_9 + TRACE_10 + TRACE_11 + RTDX_0_0 + RTDX_0_1 + RTDX_0_2 + RTDX_0_3 + RTDX_1_0 + RTDX_1_1 + RTDX_1_2 + RTDX_1_3 + RTDX_2_0 + RTDX_2_1 + RTDX_2_2 + RTDX_2_3 + EMU_0 + EMU_1 + EMU_2 + EMU_3 + EMU_4 + EMU_5 + EMU_6 + EMU_7 + EMU_8 + EMU_9 + EMU_10 + EMU_11 + + + C10 + 8 + TRACE_0 + TRACE_1 + TRACE_2 + TRACE_3 + TRACE_4 + TRACE_5 + TRACE_6 + TRACE_7 + TRACE_8 + TRACE_9 + TRACE_10 + TRACE_11 + RTDX_0_0 + RTDX_0_1 + RTDX_0_2 + RTDX_0_3 + RTDX_1_0 + RTDX_1_1 + RTDX_1_2 + RTDX_1_3 + RTDX_2_0 + RTDX_2_1 + RTDX_2_2 + RTDX_2_3 + EMU_0 + EMU_1 + EMU_2 + EMU_3 + EMU_4 + EMU_5 + EMU_6 + EMU_7 + EMU_8 + EMU_9 + EMU_10 + EMU_11 + + + B09 + 9 + TRACE_0 + TRACE_1 + TRACE_2 + TRACE_3 + TRACE_4 + TRACE_5 + TRACE_6 + TRACE_7 + TRACE_8 + TRACE_9 + TRACE_10 + TRACE_11 + RTDX_0_0 + RTDX_0_1 + RTDX_0_2 + RTDX_0_3 + RTDX_1_0 + RTDX_1_1 + RTDX_1_2 + RTDX_1_3 + RTDX_2_0 + RTDX_2_1 + RTDX_2_2 + RTDX_2_3 + EMU_0 + EMU_1 + EMU_2 + EMU_3 + EMU_4 + EMU_5 + EMU_6 + EMU_7 + EMU_8 + EMU_9 + EMU_10 + EMU_11 + + + C09 + 10 + TRACE_0 + TRACE_1 + TRACE_2 + TRACE_3 + TRACE_4 + TRACE_5 + TRACE_6 + TRACE_7 + TRACE_8 + TRACE_9 + TRACE_10 + TRACE_11 + RTDX_0_0 + RTDX_0_1 + RTDX_0_2 + RTDX_0_3 + RTDX_1_0 + RTDX_1_1 + RTDX_1_2 + RTDX_1_3 + RTDX_2_0 + RTDX_2_1 + RTDX_2_2 + RTDX_2_3 + EMU_0 + EMU_1 + EMU_2 + EMU_3 + EMU_4 + EMU_5 + EMU_6 + EMU_7 + EMU_8 + EMU_9 + EMU_10 + EMU_11 + + + C07 + 11 + TRACE_0 + TRACE_1 + TRACE_2 + TRACE_3 + TRACE_4 + TRACE_5 + TRACE_6 + TRACE_7 + TRACE_8 + TRACE_9 + TRACE_10 + TRACE_11 + RTDX_0_0 + RTDX_0_1 + RTDX_0_2 + RTDX_0_3 + RTDX_1_0 + RTDX_1_1 + RTDX_1_2 + RTDX_1_3 + RTDX_2_0 + RTDX_2_1 + RTDX_2_2 + RTDX_2_3 + EMU_0 + EMU_1 + EMU_2 + EMU_3 + EMU_4 + EMU_5 + EMU_6 + EMU_7 + EMU_8 + EMU_9 + EMU_10 + EMU_11 + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/xds560trace.jar b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/xds560trace.jar new file mode 100644 index 0000000..fac29a8 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/xds560trace.jar differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/xds_ecom_server.exe b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/xds_ecom_server.exe new file mode 100644 index 0000000..d897c89 Binary files /dev/null and b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/bin/xds_ecom_server.exe differ diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/dpk/devices/CC2340R5/AETT_database_cmcu_cc2340R5.jsonc b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/dpk/devices/CC2340R5/AETT_database_cmcu_cc2340R5.jsonc new file mode 100644 index 0000000..58699e8 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/dpk/devices/CC2340R5/AETT_database_cmcu_cc2340R5.jsonc @@ -0,0 +1,56 @@ +// Loki BLE (M0+) +{ + "aett_schema_rev": 3, + "g_map_cluster_table": [ + [ + "eCluster_0", + { + "name": "cluster", + "type": "eGenericCluster", + "listOfComponents": [ + "eCsDap_0", + "eArmv6m0_0" + ] + } + ] + ], + "g_map_component_table": [ + [ + "eCsDap_0", + { + "name": "CsDap_0", + "type": "eTargetDap", + "type_index": 0, + "base_address": "0", + "access_page": 0 + } + ], + [ + "eArmv6m0_0", + { + "name": "Armv6m0_0", + "type": "eTargetArmv6m", + "type_index": 0, + "access_page": 0 + } + ] + ], + "g_map_arm_v6m0p": [ + [ + "eArmv6m0_0", + { + "core_access_id": "eArmv6m0_0", + "dwt_base_address": "0xe0001000", + "bpu_base_address": "0xe0002000", + "dap_ap_page": 0, + "dap_id": "eCsDap_0" + } + ] + ], + "g_map_arm_v6m0p_component_mapping": [ + [ + "eArmv6m0_0", + [] + ] + ] +} diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/dpk/devices/CC27xx/AETT_database_cmcu_cc27xx.jsonc b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/dpk/devices/CC27xx/AETT_database_cmcu_cc27xx.jsonc new file mode 100644 index 0000000..0fa9626 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/dpk/devices/CC27xx/AETT_database_cmcu_cc27xx.jsonc @@ -0,0 +1,342 @@ +// CC14x2/27x2 +{ + "aett_schema_rev": 3, + "g_map_cluster_table": [ + [ + "eCluster_0", + { + "name": "cluster", + "type": "eGenericCluster", + "listOfComponents": [ + "eCsDap_0", + "eArmv8m33_0", + "eSwo_0", + "eIcePickC_0", + "eTpiu_0" + ] + } + ] + ], + "g_map_component_table": [ + [ + "eArmv8m33_0", + { + "name": "Armv8m33_0", + "type": "eTargetArmv8m", + "type_index": 0, + "access_page": 0 + } + ], + [ + "eTpiu_0", + { + "name": "Tpiu_0", + "type": "eTargetTpiu", + "type_index": 0, + "base_address": "0xe0040000", + "access_page": 0 + } + ], + [ + "eSwo_0", + { + "name": "Swo_0", + "type": "eTargetSwo", + "type_index": 0, + "base_address": "0xe0040000", + "access_page": 0 + } + ], + [ + "eCsDap_0", + { + "name": "CsDap_0", + "type": "eTargetDap", + "type_index": 0, + "base_address": "0", + "access_page": 0 + } + ], + [ + "eIcePickC_0", + { + "name": "IcePickC", + "type": "eTargetIcePickC", + "type_index": 0, + "base_address": "0", + "access_page": 0, + "access_id": "eIcePickC_0", + "access_type": "eAccessLocalReg" + } + ] + ], + "g_map_source_to_swo": [ + [ + "eArmv8m33_0", + "eSwo_0" + ] + ], + "g_map_arm_v8m33": [ + [ + "eArmv8m33_0", + { + "core_access_id": "eArmv8m33_0", + "dwt_base_address": "0xe0001000", + "fpb_base_address": "0xe0002000", + "itm_base_address": "0xe0000000", + "cti_base_address": "0xe0042000", + "etm_base_address": "0xe0041000", + "mtb_base_address": "0xe0043000", + "dap_ap_page": 0, + "dap_id": "eCsDap_0" + } + ] + ], + "g_map_arm_v8m33_component_mapping": [ + [ + "eArmv8m33_0", + [ + { + "key": "MODULE$MOD_ITM$MAPPING$masterid.decoder$1", + "value": "ItmDWTDecodeUnit" + }, + { + "key": "MODULE$MOD_ITM$MAPPING$masterid.decoder$2", + "value": "ItmSWDecodeUnit" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$1", + "value": "Reset" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$2", + "value": "NMI" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$3", + "value": "HardFault" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$4", + "value": "MemManage" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$5", + "value": "BusFault" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$6", + "value": "UsageFault" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$7", + "value": "Reserved" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$8", + "value": "Reserved" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$9", + "value": "Reserved" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$10", + "value": "Reserved" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$11", + "value": "SVCall" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$12", + "value": "Debug Monitor" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$13", + "value": "Reserved" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$14", + "value": "PendSV" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$15", + "value": "SysTick" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$16", + "value": "AON Edge Detect" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$17", + "value": "I2C" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$18", + "value": "RF Core Engine 1" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$19", + "value": "PKA Event" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$20", + "value": "AON RTC" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$21", + "value": "UART0 Rx/Tx" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$22", + "value": "AUX SW Event 0" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$23", + "value": "SSI0 Rx/Tx" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$24", + "value": "SSI1 Rx/Tx" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$25", + "value": "RF Core Engine 0" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$26", + "value": "RF Core Hardware" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$27", + "value": "RF Core Cmd Ack" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$28", + "value": "I2S" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$29", + "value": "AUX SW Event 1" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$30", + "value": "Watchdog Timer" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$31", + "value": "Timer 0A" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$32", + "value": "Timer 0B" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$33", + "value": "Timer 1A" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$34", + "value": "Timer 1B" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$35", + "value": "Timer 2A" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$36", + "value": "Timer 2B" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$37", + "value": "Timer 3A" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$38", + "value": "Timer 3B" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$39", + "value": "Crypto" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$40", + "value": "uDMA SW" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$41", + "value": "uDMA Error" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$42", + "value": "Flash" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$43", + "value": "SW Event 0" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$44", + "value": "AUX Comb Event" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$45", + "value": "AON Prog" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$46", + "value": "Dynamic Prog" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$47", + "value": "AUX Comp A" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$48", + "value": "AUX ADC" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$49", + "value": "TRNG Event" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$50", + "value": "Comb Event" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$51", + "value": "AUX Timer 2" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$52", + "value": "UART 1" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$53", + "value": "Battery Monitor" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$54", + "value": "SSI2 Rx/Tx" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$55", + "value": "SSI3 Rx/Tx" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$56", + "value": "UART 2" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$57", + "value": "UART 3" + }, + { + "key": "MODULE$MOD_EXCEPTIONMAP$MAPPING$MOD_EXCEPTIONMAP$58", + "value": "I2C 1" + } + ] + ] + ] +} \ No newline at end of file diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/dpk/schema/AETT_database_ks3_schema_rev2.jsonc b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/dpk/schema/AETT_database_ks3_schema_rev2.jsonc new file mode 100644 index 0000000..8219d8e --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/dpk/schema/AETT_database_ks3_schema_rev2.jsonc @@ -0,0 +1,1089 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "type": "object", + "required": [ + "aett_schema_rev", + "g_map_cluster_table", + "g_map_component_table" + // "g_map_aett_property_xml", + // "g_map_source_to_tbr", + // "g_map_sink_to_atbrep", + // "g_map_arm_v7m3", + // "g_map_arm_v7m4", + // "g_map_arm_v8a", + // "g_map_arm_v7r5f", + // "g_map_aggr_to_trace_src", + // "g_map_arm_csstm_500_component_mapping", + // "g_map_trace_aggr_component_mapping", + // "g_map_arm_v7_component_mapping", + // "g_map_arm_v7m4_component_mapping", + // "g_vec_xtrig_routes" + ], + "definitions": { + "component_id_t": { + "enum": [ + "eArmv8a_0", + "eArmv8a_1", + "eArmv8a_2", + "eArmv8a_3", + "eArmv8a_4", + "eArmv8a_5", + "eArmv8a_6", + "eArmv8a_7", + "eArmv8a_8", + "eArmv8a_9", + "eArmv8a_10", + "eArmv8a_11", + "eArmv8a_12", + "eArmv8a_13", + "eArmv8a_14", + "eArmv8a_15", + "eArmv8a_16", + "eArmv8a_17", + "eArmv8a_18", + "eArmv8a_19", + "eArmv8a_20", + "eArmv8a_21", + "eArmv8a_22", + "eArmv8a_23", + "eArmv8a_24", + "eArmv8a_25", + "eArmv8a_26", + "eArmv8a_27", + "eArmv8a_28", + "eArmv8a_29", + "eArmv8a_30", + "eArmv8a_31", + "eArmv8a_32", + "eArmv8a_33", + "eArmv8a_34", + "eArmv8a_35", + "eArmv8a_36", + "eArmv8a_37", + "eArmv8a_38", + "eArmv8a_39", + "eC66x_0", + "eC66x_1", + "eC71x_0", + "eC71x_1", + "eC71x_2", + "eC71x_3", + "eC71x_4", + "eC71x_5", + "eC71x_6", + "eC71x_7", + "eC71x_8", + "eC71x_9", + "eC71x_10", + "eC71x_11", + "eC71x_12", + "eC71x_13", + "eC71x_14", + "eC71x_15", + "eC71x_16", + "eC71x_17", + "eC71x_18", + "eC71x_19", + "eArmv7r5f_0", + "eArmv7r5f_1", + "eArmv7r5f_2", + "eArmv7r5f_3", + "eArmv7r5f_4", + "eArmv7r5f_5", + "eArmv7r5f_6", + "eArmv7r5f_7", + "eArmv7m3_0", + "eArmv7m3_1", + "eArmv7m4_0", + "eArmv7m4_1", + "eArmv7m4_2", + "eCsStm500_0", + "eDebugCellTbr_0", + "eDebugCellTbr_1", + "eDebugCellTbr_2", + "eDebugCellTbr_3", + "eDebugCellTbr_4", + "eDebugCellTbr_5", + "eDebugCellTbr_6", + "eDebugCellTbr_7", + "eDebugCellTbr_8", + "eDebugCellTbr_9", + "eDebugCellTbr_10", + "eDebugCellTbr_11", + "eDebugCellAtbRep_0", + "eDebugCellAtbRep_1", + "eDebugCellAtbRep_2", + "eDebugCellAtbRep_3", + "eDebugCellAtbRep_4", + "eDebugCellAtbRep_5", + "eDebugCellAtbRep_6", + "eDebugCellAtbRep_7", + "eDebugCellAtbRep_8", + "eDebugCellAtbRep_9", + "eDebugCellAtbRep_10", + "eDebugCellAtbRep_11", + "eTpiu_0", + "eCsDap_0", + "eGlobalTimestampCounter", + "eTpiuExportClock", + "eCsTf_0", + "eMsmcCtset2_0", + "eDebugCellCtset2_0", + "eDebugCellCtset2_1", + "eDebugCellCtset2_2", + "eDrm_0", + "ePll_0", + "eDebugSsCsCti_0", + "eDebugSsCsCti_1", + "eDebugCellCcCsCti_0", + "eDebugCellMainCsCti_0", + "eDebugCellMainCsCti_1", + "eDebugCellMainCsCti_2", + "eDebugCellMainCsCti_3", + "eDebugCellMainCsCti_4", + "eDebugCellMcuCsCti_0", + "eDebugCellMcuCsCti_1", + "eDebugCellMcuCsCti_2", + "eDebugCellMcuCsCti_3", + "eDebugCellMcuCsCti_4", + "eDebugCellCsCti_0", + "eDebugCellCsCti_1", + "eDebugCellCsCti_2", + "eDebugCellCsCti_3", + "eDebugCellCsCti_4", + "eDebugCellCsCti_5", + "eDebugCellCsCti_6", + "eDebugCellCsCti_7", + "eDebugCellCsCti_8", + "eDebugCellCsCti_9", + "eDebugCellCsCti_10", + "eDebugCellCsCti_11", + "eDebugCellCsCti_12", + "eDebugCellCsCti_13", + "eDebugCellCsCti_14", + "eDebugCellCsCti_15", + "eDebugCellCsCti_16", + "eDebugCellCsCti_17", + "eDebugCellCsCti_18", + "eDebugCellCsCti_19", + "eDebugCellCsCti_20", + "eDebugCellCsCti_21", + "eDebugCellCsCti_22", + "eDebugCellCsCti_23", + "eDebugCellCsCti_24", + "eDebugCellCsCti_25", + "eDebugCellCsCti_26", + "eDebugCellCsCti_27", + "eDebugCellCsCti_28", + "eDebugCellCsCti_29", + "eDebugCellCsCti_30", + "eDebugCellCsCti_31", + "eDebugCellCsCti_32", + "eDebugCellCsCti_33", + "eDebugCellCsCti_34", + "eDebugCellCsCti_35", + "eDebugCellCsCti_36", + "eDebugCellCsCti_37", + "eDebugCellCsCti_38", + "eDebugCellCsCti_39", + "eComputeClusterCsCti_0", + "eComputeClusterCsCti_1", + "eComputeClusterCsCti_2", + "eComputeClusterCsCti_3", + "eComputeClusterCsCti_4", + "eComputeClusterCsCti_5", + "eComputeClusterCsCti_6", + "eComputeClusterCsCti_7", + "eComputeClusterCtSet_0", + "eCorePacCsCti_0", + "eCorePacCsCti_1", + "eCorePacCsCti_2", + "eCorePacCsCti_3", + "eCorePacCsCti_4", + "eCorePacCsCti_5", + "eCorePacCsCti_6", + "eCorePacCsCti_7", + "eCorePacCsCti_8", + "eCorePacCsCti_9", + "eCorePacCsCti_10", + "eCorePacCsCti_11", + "eCorePacCsCti_12", + "eCorePacCsCti_13", + "eCorePacCsCti_14", + "eCorePacCsCti_15", + "eCorePacCsCti_16", + "eCorePacCsCti_17", + "eCorePacCsCti_18", + "eCorePacCsCti_19", + "eCorePacCsCti_20", + "eCorePacCsCti_21", + "eCorePacCsCti_22", + "eCorePacCsCti_23", + "eCorePacCsCti_24", + "eCorePacCsCti_25", + "eCorePacCsCti_26", + "eCorePacCsCti_27", + "eCorePacCsCti_28", + "eCorePacCsCti_29", + "eCorePacCsCti_30", + "eCorePacCsCti_31", + "eCorePacCsCti_32", + "eCorePacCsCti_33", + "eCorePacCsCti_34", + "eCorePacCsCti_35", + "eCorePacCsCti_36", + "eCorePacCsCti_37", + "eCorePacCsCti_38", + "eCorePacCsCti_39", + "eCorePacCtSet_0", + "eCorePacCtSet_1", + "eCorePacCtSet_2", + "eCorePacCtSet_3", + "eStm500CsCti_0", + "eComputeClusterA53CsCti_0", + "eComputeClusterA53CsCti_1", + "eComputeClusterA53CsCti_2", + "eComputeClusterA53CsCti_3", + "eComputeClusterR5CsCti_0", + "eComputeClusterR5CsCti_1", + "eBlazarM4CsCti_0", + "eCpTracer2_Probe_0", + "eCpTracer2_Probe_1", + "eCpTracer2_Probe_2", + "eCpTracer2_Probe_3", + "eCpTracer2_Probe_4", + "eCpTracer2_Probe_5", + "eCpTracer2_Probe_6", + "eCpTracer2_Probe_7", + "eCpTracer2_Probe_8", + "eCpTracer2_Probe_9", + "eCpTracer2_Probe_10", + "eCpTracer2_Probe_11", + "eCpTracer2_Probe_12", + "eCpTracer2_Probe_13", + "eCpTracer2_Probe_14", + "eCpTracer2_Probe_15", + "eCpTracer2_Probe_16", + "eCpTracer2_Probe_17", + "eCpTracer2_Probe_18", + "eCpTracer2_Probe_19", + "eCpTracer2_Probe_20", + "eCpTracer2_Probe_21", + "eCpTracer2_Probe_22", + "eCpTracer2_Probe_23", + "eCpTracer2_Probe_24", + "eCpTracer2_Probe_25", + "eCpTracer2_Probe_26", + "eCpTracer2_Probe_27", + "eCpTracer2_Probe_28", + "eCpTracer2_Probe_29", + "eCpTracer2_Probe_30", + "eCpTracer2_Probe_31", + "eCpTracer2_Probe_32", + "eCpTracer2_Probe_33", + "eCpTracer2_Probe_34", + "eCpTracer2_Probe_35", + "eCpTracer2_Probe_36", + "eCpTracer2_Probe_37", + "eCpTracer2_Probe_38", + "eCpTracer2_Probe_39", + "eCpTracer2_Probe_40", + "eCpTracer2_Probe_41", + "eCpTracer2_Probe_42", + "eCpTracer2_Probe_43", + "eCpTracer2_Probe_44", + "eCpTracer2_Probe_45", + "eCpTracer2_Probe_46", + "eCpTracer2_Probe_47", + "eCpTracer2_Probe_48", + "eCpTracer2_Probe_49", + "eCpTracer2_Probe_50", + "eCpTracer2_Probe_51", + "eCpTracer2_Probe_52", + "eCpTracer2_Probe_53", + "eCpTracer2_Probe_54", + "eCpTracer2_Probe_55", + "eCpTracer2_Probe_56", + "eCpTracer2_Probe_57", + "eCpTracer2_Probe_58", + "eCpTracer2_Probe_59", + "eCpTracer2_Probe_60", + "eCpTracer2_Probe_61", + "eCpTracer2_Probe_62", + "eCpTracer2_Probe_63", + "eCpTracer2_Probe_64", + "eCpTracer2_Probe_65", + "eCpTracer2_Probe_66", + "eCpTracer2_Probe_67", + "eCpTracer2_Probe_68", + "eCpTracer2_Probe_69", + "eCpTracer2_Probe_70", + "eCpTracer2_Probe_71", + "eCpTracer2_Probe_72", + "eCpTracer2_Probe_73", + "eCpTracer2_Probe_74", + "eCpTracer2_Probe_75", + "eCpTracer2_Probe_76", + "eCpTracer2_Probe_77", + "eCpTracer2_Probe_78", + "eCpTracer2_Probe_79", + "eCpTracer2_Probe_80", + "eCpTracer2_Probe_81", + "eCpTracer2_Probe_82", + "eCpTracer2_Probe_83", + "eCpTracer2_Probe_84", + "eCpTracer2_Probe_85", + "eCpTracer2_Probe_86", + "eCpTracer2_Probe_87", + "eCpTracer2_Probe_88", + "eCpTracer2_Probe_89", + "eCpTracer2_Probe_90", + "eCpTracer2_Probe_91", + "eCpTracer2_Probe_92", + "eCpTracer2_Probe_93", + "eCpTracer2_Probe_94", + "eCpTracer2_Probe_95", + "eCpTracer2_Probe_96", + "eCpTracer2_Probe_97", + "eCpTracer2_Probe_98", + "eCpTracer2_Probe_99", + "eTraceAggregator_0", + "eTraceAggregator_1", + "eTraceAggregator_2", + "eTraceAggregator_3", + "eTraceAggregator_4", + "eTraceAggregator_5", + "eTraceAggregator_6", + "eTraceAggregator_7", + "eTraceAggregator_8", + "eTraceAggregator_9", + "eTraceAggregator_10", + "eTraceAggregator_11", + "eTraceAggregator_12", + "eTraceAggregator_13", + "eTraceAggregator_14", + "eTraceAggregator_15", + "eRingAcc_0", + "eRingAcc_1", + "eDmpac_0", + "eDmpacCtset_0", + "eVpac_0", + "eVpacCtset_0", + "eVpac_1", + "eVpacCtset_1" + ] + }, + "cluster_id_t": { + "enum": [ + "eCorePacArmv8x2_CorePac_0", + "eCorePacArmv8x2_CorePac_1", + "eCorePacArmv8x2_CorePac_2", + "eCorePacArmv8x2_CorePac_3", + "eCorePacArmv8x2_CorePac_4", + "eCorePacArmv8x2_CorePac_5", + "eCorePacArmv8x2_CorePac_6", + "eCorePacArmv8x2_CorePac_7", + "eCorePacArmv8x2_CorePac_8", + "eCorePacArmv8x2_CorePac_9", + "eCorePacArmv8x4_CorePac_0", + "eCorePacArmv8x4_CorePac_1", + "eCorePacArmv8x4_CorePac_2", + "eCorePacArmv8x4_CorePac_3", + "eCorePacArmv8x4_CorePac_4", + "eCorePacArmv8x4_CorePac_5", + "eCorePacArmv8x4_CorePac_6", + "eCorePacArmv8x4_CorePac_7", + "eCorePacArmv8x4_CorePac_8", + "eCorePacArmv8x4_CorePac_9", + "eCorePacC66x_0", + "eCorePacC66x_1", + "eCorePacC71x1_0", + "eCorePacC71x1_1", + "eCorePacC71x1_2", + "eCorePacC71x1_3", + "eCorePacC71x1_4", + "eCorePacC71x1_5", + "eCorePacC71x1_6", + "eCorePacC71x1_7", + "eCorePacC71x1_8", + "eCorePacC71x1_9", + "eCorePacC71x2_0", + "eCorePacC71x2_1", + "eCorePacC71x2_2", + "eCorePacC71x2_3", + "eCorePacC71x2_4", + "eCorePacC71x2_5", + "eCorePacC71x2_6", + "eCorePacC71x2_7", + "eCorePacC71x2_8", + "eCorePacC71x2_9", + "ePulsarR5x2_0", + "ePulsarR5x2_1", + "ePulsarR5x2_2", + "ePulsarR5x2_3", + "eDMSCM3_0", + "eBlazarM4_0", + "eSMSM4_0", + "eDebugSubsystem_0", + "eDebugCell_0", + "eDebugCell_1", + "eDebugCell_2", + "eDebugCell_3", + "eDebugCell_4", + "eDebugCell_5", + "eDebugCell_6", + "eDebugCell_7", + "eDebugCell_8", + "eDebugCell_9", + "eDebugCell_10", + "eDebugCell_11", + "eMSMC_0" + ] + }, + "cluster_type_t": { + "enum": [ + "eCorePacNone", + "eCorePacC66x", + "eCorePacC71x1", + "eCorePacC71x2", + "eCorePacArmv8x2", + "eCorePacArmv8x4", + "eDMSCM3", + "eBlazarM4", + "eSMSM4", + "ePulsarR5x2", + "eDebugSubsystem", + "eDebugCell", + "eMSMC" + ] + }, + "eAccessType_t": { + "enum": [ + "eAccessLocalReg", + "eAccessLocalMem", + "eAccessDebugMem", + "eAccessSystemMem", + "eSelfAccess", + "eMasterAccess", + "eDebugAccess", + "eSystemAccess" + ] + }, + "target_type_t": { + "enum": [ + "eTargetUnknown", + "eTargetC66", + "eTargetC71", + "eTargetArmv8a", + "eTargetArmv7r", + "eTargetArmv7m3", + "eTargetArmv7m4", + "eTargetTbr", + "eTargetAtbRep", + "eTargetTpiu", + "eTargetCsStm500", + "eTargetDap", + "eTargetIcePick", + "eTargetCpTracer2", + "eTargetGtc", + "eTargetTraceExportClock", + "eTargetCsTf", + "eTargetCtset2", + "eTargetDrm", + "eTargetPll", + "eTargetTypeCsCti", + "eTargetTraceAggr", + "eTargetRingAcc", + "eTargetHtsDmpac", + "eTargetHtsVpac" + ] + }, + "system_trace_type_detail_t": { + "enum": [ + // "eSttdError", + "eSttdDefault", + "eSttdCpt", + "eSttdCpt2Mcu", + "eSttdCpt2Soc", + "eSttdCpt2Msmc0", + "eSttdCpt2Msmc1", + "eSttdCpt2SocAc", + "eSttdCpt2SocHc", + "eSttdCpt2SocRc", + "eSttdCpt2SocMv", + "eSttdCpt2SocMi", + "eSttdCpt2SocAcp", + "eSttdCpt2C71", + "eSttdNavssMcu", + "eSttdNavssSoc" + // "eSttdMax" + ] + }, + "map_component_mapping_entry_t": { + "type": "array", + "items": { + "type": "array", + "minItems": 2, + "additionalItems": false, + "items": [ + { + "description": "The component id", + "$ref": "#/definitions/component_id_t" + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "key", + "value" + ], + "properties": { + "key": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "additionalProperties": false + } + } + ] + } + } + }, + "properties": { + "$schema": { + "type": "string" + }, + "aett_schema_rev": { + "enum": [ + "1", + "2" + ] + }, + "g_map_cluster_table": { + "type": "array", + "items": { + "type": "array", + "minItems": 2, + "additionalItems": false, + "items": [ + { + "description": "The cluster id", + "$ref": "#/definitions/cluster_id_t" + }, + { + "type": "object", + "required": [ + "name", + "type", + "listOfComponents" + ], + "properties": { + "name": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/cluster_type_t" + }, + "listOfComponents": { + "type": "array", + "minItems": 1, + "additionalItems": true, + "items": { + "$ref": "#/definitions/component_id_t" + } + } + }, + "additionalProperties": false + } + ] + } + }, + "g_map_component_table": { + "type": "array", + "items": { + "type": "array", + "minItems": 2, + "additionalItems": false, + "items": [ + { + "description": "The component id", + "$ref": "#/definitions/component_id_t" + }, + { + "type": "object", + "required": [ + "name", + "type", + "type_index", + "base_address", + "access_page", + "access_id", + "access_type" + ], + "properties": { + "name": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/target_type_t" + }, + "type_index": { + "type": "integer" + }, + "base_address": { + "type": "string" + }, + "access_page": { + "type": "integer" + }, + "access_id": { + "enum": [ + "eCsDap_0" + ] + // TODO Oliver: why is this typed as component_id_t? Seems to be always/mostly + // "eCsDap_0" + // "$ref": "#/definitions/component_id_t" + }, + "access_type": { + "$ref": "#/definitions/eAccessType_t" + } + }, + "additionalProperties": false + } + ] + } + }, + "g_map_aett_property_xml": { + "type": "array", + "items": { + "type": "array", + "minItems": 2, + "additionalItems": false, + "items": [ + { + "description": "The component id", + "$ref": "#/definitions/component_id_t" + }, + { + "type": "string", + "description": "The xml file name", + "examples": [ + "AETT_property_ks3_system_trace_am62x.xml" + ] + } + ] + } + }, + "g_map_source_to_tbr": { + "type": "array", + "items": { + "type": "array", + "minItems": 2, + "additionalItems": false, + "items": [ + { + "description": "The component id", + "$ref": "#/definitions/component_id_t" + }, + { + "description": "The component id", + "$ref": "#/definitions/component_id_t" // TODO Oliver: restrict to tbr components + } + ] + } + }, + "g_map_sink_to_atbrep": { + "type": "array", + "items": { + "type": "array", + "minItems": 2, + "additionalItems": false, + "items": [ + { + "description": "The component id", + "$ref": "#/definitions/component_id_t" + }, + { + "type": "object", + "required": [ + "atbrep_id", + "atbrep_portnum" + ], + "properties": { + "atbrep_id": { + "type": "string" + }, + "atbrep_portnum": { + "type": "integer" + } + }, + "additionalProperties": false + } + ] + } + }, + "g_map_arm_v7m3": { + "type": "array", + "items": { + "type": "array", + "minItems": 2, + "additionalItems": false, + "items": [ + { + "description": "The component id", + "$ref": "#/definitions/component_id_t" // TODO Oliver: restrict to m3 components? + }, + { + "type": "object", + "required": [ + "core_access_id", + "dwt_base_address", + "fpb_base_address", + "itm_base_address", + "dap_ap_page", + "dap_id" + ], + "properties": { + "core_access_id": { + "type": "string" + }, + "dwt_base_address": { + "type": "string" + }, + "fpb_base_address": { + "type": "string" + }, + "itm_base_address": { + "type": "string" + }, + "dap_ap_page": { + "type": "integer" + }, + "dap_id": { + "type": "string" + } + }, + "additionalProperties": false + } + ] + } + }, + "g_map_arm_v7m4": { + "type": "array", + "items": { + "type": "array", + "minItems": 2, + "additionalItems": false, + "items": [ + { + "description": "The component id", + "$ref": "#/definitions/component_id_t" + }, + { + "type": "object", + "required": [ + "core_access_id", + "dwt_base_address", + "fpb_base_address", + "itm_base_address", + "cti_base_address", + "etm_base_address", + "dap_ap_page", + "dap_id" + ], + "properties": { + "core_access_id": { + "type": "string" + }, + "dwt_base_address": { + "type": "string" + }, + "fpb_base_address": { + "type": "string" + }, + "itm_base_address": { + "type": "string" + }, + "cti_base_address": { + "type": "string" + }, + "etm_base_address": { + "type": "string" + }, + "dap_ap_page": { + "type": "integer" + }, + "dap_id": { + "type": "string" + } + }, + "additionalProperties": false + } + ] + } + }, + "g_map_arm_v8a": { + "type": "array", + "items": { + "type": "array", + "minItems": 2, + "additionalItems": false, + "items": [ + { + "description": "The component id", + "$ref": "#/definitions/component_id_t" + }, + { + "type": "object", + "required": [ + "core_base_addr", + "core_access_page", + "core_access_id", + "core_access_type", + "pmu_base_addr", + "pmu_access_page", + "pmu_access_id", + "pmu_access_type", + "etm_base_addr", + "etm_access_page", + "etm_access_id", + "etm_access_type", + "cti_base_addr", + "cti_access_page", + "cti_access_id", + "cti_access_type" + ], + "properties": { + "core_base_addr": { + "type": "string" + }, + "core_access_page": { + "type": "integer" + }, + "core_access_id": { + "type": "string" + }, + "core_access_type": { + "type": "string" + }, + "pmu_base_addr": { + "type": "string" + }, + "pmu_access_page": { + "type": "integer" + }, + "pmu_access_id": { + "type": "string" + }, + "pmu_access_type": { + "type": "string" + }, + "etm_base_addr": { + "type": "string" + }, + "etm_access_page": { + "type": "integer" + }, + "etm_access_id": { + "type": "string" + }, + "etm_access_type": { + "type": "string" + }, + "cti_base_addr": { + "type": "string" + }, + "cti_access_page": { + "type": "integer" + }, + "cti_access_id": { + "type": "string" + }, + "cti_access_type": { + "type": "string" + } + }, + "additionalProperties": false + } + ] + } + }, + "g_map_arm_v7r5f": { + "type": "array", + "items": { + "type": "array", + "minItems": 2, + "additionalItems": false, + "items": [ + { + "description": "The component id", + "$ref": "#/definitions/component_id_t" + }, + { + "type": "object", + "required": [ + "core_base_addr", + "core_access_page", + "core_access_id", + "core_access_type", + "pmu_base_addr", + "pmu_access_page", + "pmu_access_id", + "pmu_access_type", + "cti_base_addr", + "cti_access_page", + "cti_access_id", + "cti_access_type", + "etm_base_addr", + "etm_access_page", + "etm_access_id", + "etm_access_type" + ], + "properties": { + "core_base_addr": { + "type": "string" + }, + "core_access_page": { + "type": "integer" + }, + "core_access_id": { + "type": "string" + }, + "core_access_type": { + "type": "string" + }, + "pmu_base_addr": { + "type": "string" + }, + "pmu_access_page": { + "type": "integer" + }, + "pmu_access_id": { + "type": "string" + }, + "pmu_access_type": { + "type": "string" + }, + "cti_base_addr": { + "type": "string" + }, + "cti_access_page": { + "type": "integer" + }, + "cti_access_id": { + "type": "string" + }, + "cti_access_type": { + "type": "string" + }, + "etm_base_addr": { + "type": "string" + }, + "etm_access_page": { + "type": "integer" + }, + "etm_access_id": { + "type": "string" + }, + "etm_access_type": { + "type": "string" + } + }, + "additionalProperties": false + } + ] + } + }, + "g_map_aggr_to_trace_src": { + "type": "array", + "items": { + "type": "array", + "minItems": 2, + "additionalItems": false, + "items": [ + { + "description": "The component id", + "$ref": "#/definitions/component_id_t" + }, + { + "type": "object", + "required": [ + "detail", + "sources" + ], + "properties": { + "detail": { + "description": "The system trace type", + "$ref": "#/definitions/system_trace_type_detail_t" + }, + "sources": { + "type": "array", + "items": { + "description": "The component id", + "$ref": "#/definitions/component_id_t" + } + } + }, + "additionalProperties": false + } + ] + } + }, + "g_map_arm_csstm_500_component_mapping": { + "$ref": "#/definitions/map_component_mapping_entry_t" + }, + "g_map_trace_aggr_component_mapping": { + "$ref": "#/definitions/map_component_mapping_entry_t" + }, + "g_map_arm_v7_component_mapping": { + "$ref": "#/definitions/map_component_mapping_entry_t" + }, + "g_map_arm_v7m4_component_mapping": { + "$ref": "#/definitions/map_component_mapping_entry_t" + }, + "g_vec_xtrig_routes": { + "type": "array", + "items": { + "type": "object", + "required": [ + "directon", + "type", + "comp_id", + "infra_type", + "infra_id", + "trig_index", + "channel_group" + ], + "properties": { + "directon": { + "type": "string" + }, + "type": { + "type": "string" + }, + "comp_id": { + "type": "string" + }, + "infra_type": { + "type": "string" + }, + "infra_id": { + "type": "string" + }, + "trig_index": { + "type": "integer" + }, + "channel_group": { + "type": "integer" + } + }, + "additionalProperties": false + } + } + }, + "additionalProperties": false +} \ No newline at end of file diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/dpk/schema/AETT_database_ks3_schema_rev3.jsonc b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/dpk/schema/AETT_database_ks3_schema_rev3.jsonc new file mode 100644 index 0000000..63dc0af --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/dpk/schema/AETT_database_ks3_schema_rev3.jsonc @@ -0,0 +1,1162 @@ +{ + // If this this schema file is updated it needs to be re-loaded in VS Code by pressing Shift-F5 for changes to take effect + + "$schema": "http://json-schema.org/draft-07/schema", + "type": "object", + "required": [ + "aett_schema_rev", + "g_map_cluster_table", + "g_map_component_table" + // "g_map_aett_property_xml", + // "g_map_source_to_tbr", + // "g_map_sink_to_atbrep", + // "g_map_arm_v7m3", + // "g_map_arm_v7m4", + // "g_map_arm_v8a", + // "g_map_arm_v7r5f", + // "g_map_aggr_to_trace_src", + // "g_map_arm_csstm_500_component_mapping", + // "g_map_trace_aggr_component_mapping", + // "g_map_arm_v7_component_mapping", + // "g_map_arm_v7m4_component_mapping", + // "g_vec_xtrig_routes" + ], + "definitions": { + "component_id_t": { + "enum": [ + "eArmv8a_0", + "eArmv8a_1", + "eArmv8a_2", + "eArmv8a_3", + "eArmv8a_4", + "eArmv8a_5", + "eArmv8a_6", + "eArmv8a_7", + "eArmv8a_8", + "eArmv8a_9", + "eArmv8a_10", + "eArmv8a_11", + "eArmv8a_12", + "eArmv8a_13", + "eArmv8a_14", + "eArmv8a_15", + "eArmv8a_16", + "eArmv8a_17", + "eArmv8a_18", + "eArmv8a_19", + "eArmv8a_20", + "eArmv8a_21", + "eArmv8a_22", + "eArmv8a_23", + "eArmv8a_24", + "eArmv8a_25", + "eArmv8a_26", + "eArmv8a_27", + "eArmv8a_28", + "eArmv8a_29", + "eArmv8a_30", + "eArmv8a_31", + "eArmv8a_32", + "eArmv8a_33", + "eArmv8a_34", + "eArmv8a_35", + "eArmv8a_36", + "eArmv8a_37", + "eArmv8a_38", + "eArmv8a_39", + "eC66x_0", + "eC66x_1", + "eC71x_0", + "eC71x_1", + "eC71x_2", + "eC71x_3", + "eC71x_4", + "eC71x_5", + "eC71x_6", + "eC71x_7", + "eC71x_8", + "eC71x_9", + "eC71x_10", + "eC71x_11", + "eC71x_12", + "eC71x_13", + "eC71x_14", + "eC71x_15", + "eC71x_16", + "eC71x_17", + "eC71x_18", + "eC71x_19", + "eArmv7r5f_0", + "eArmv7r5f_1", + "eArmv7r5f_2", + "eArmv7r5f_3", + "eArmv7r5f_4", + "eArmv7r5f_5", + "eArmv7r5f_6", + "eArmv7r5f_7", + "eArmv7m3_0", + "eArmv7m3_1", + "eArmv7m4_0", + "eArmv7m4_1", + "eArmv7m4_2", + "eCsStm500_0", + "eDebugCellTbr_0", + "eDebugCellTbr_1", + "eDebugCellTbr_2", + "eDebugCellTbr_3", + "eDebugCellTbr_4", + "eDebugCellTbr_5", + "eDebugCellTbr_6", + "eDebugCellTbr_7", + "eDebugCellTbr_8", + "eDebugCellTbr_9", + "eDebugCellTbr_10", + "eDebugCellTbr_11", + "eDebugCellAtbRep_0", + "eDebugCellAtbRep_1", + "eDebugCellAtbRep_2", + "eDebugCellAtbRep_3", + "eDebugCellAtbRep_4", + "eDebugCellAtbRep_5", + "eDebugCellAtbRep_6", + "eDebugCellAtbRep_7", + "eDebugCellAtbRep_8", + "eDebugCellAtbRep_9", + "eDebugCellAtbRep_10", + "eDebugCellAtbRep_11", + "eTpiu_0", + "eCsDap_0", + "eGlobalTimestampCounter", + "eTpiuExportClock", + "eCsTf_0", + "eMsmcCtset2_0", + "eDebugCellCtset2_0", + "eDebugCellCtset2_1", + "eDebugCellCtset2_2", + "eDrm_0", + "ePll_0", + "eDebugSsCsCti_0", + "eDebugSsCsCti_1", + "eDebugCellCcCsCti_0", + "eDebugCellMainCsCti_0", + "eDebugCellMainCsCti_1", + "eDebugCellMainCsCti_2", + "eDebugCellMainCsCti_3", + "eDebugCellMainCsCti_4", + "eDebugCellMcuCsCti_0", + "eDebugCellMcuCsCti_1", + "eDebugCellMcuCsCti_2", + "eDebugCellMcuCsCti_3", + "eDebugCellMcuCsCti_4", + "eDebugCellCsCti_0", + "eDebugCellCsCti_1", + "eDebugCellCsCti_2", + "eDebugCellCsCti_3", + "eDebugCellCsCti_4", + "eDebugCellCsCti_5", + "eDebugCellCsCti_6", + "eDebugCellCsCti_7", + "eDebugCellCsCti_8", + "eDebugCellCsCti_9", + "eDebugCellCsCti_10", + "eDebugCellCsCti_11", + "eDebugCellCsCti_12", + "eDebugCellCsCti_13", + "eDebugCellCsCti_14", + "eDebugCellCsCti_15", + "eDebugCellCsCti_16", + "eDebugCellCsCti_17", + "eDebugCellCsCti_18", + "eDebugCellCsCti_19", + "eDebugCellCsCti_20", + "eDebugCellCsCti_21", + "eDebugCellCsCti_22", + "eDebugCellCsCti_23", + "eDebugCellCsCti_24", + "eDebugCellCsCti_25", + "eDebugCellCsCti_26", + "eDebugCellCsCti_27", + "eDebugCellCsCti_28", + "eDebugCellCsCti_29", + "eDebugCellCsCti_30", + "eDebugCellCsCti_31", + "eDebugCellCsCti_32", + "eDebugCellCsCti_33", + "eDebugCellCsCti_34", + "eDebugCellCsCti_35", + "eDebugCellCsCti_36", + "eDebugCellCsCti_37", + "eDebugCellCsCti_38", + "eDebugCellCsCti_39", + "eComputeClusterCsCti_0", + "eComputeClusterCsCti_1", + "eComputeClusterCsCti_2", + "eComputeClusterCsCti_3", + "eComputeClusterCsCti_4", + "eComputeClusterCsCti_5", + "eComputeClusterCsCti_6", + "eComputeClusterCsCti_7", + "eComputeClusterCtSet_0", + "eCorePacCsCti_0", + "eCorePacCsCti_1", + "eCorePacCsCti_2", + "eCorePacCsCti_3", + "eCorePacCsCti_4", + "eCorePacCsCti_5", + "eCorePacCsCti_6", + "eCorePacCsCti_7", + "eCorePacCsCti_8", + "eCorePacCsCti_9", + "eCorePacCsCti_10", + "eCorePacCsCti_11", + "eCorePacCsCti_12", + "eCorePacCsCti_13", + "eCorePacCsCti_14", + "eCorePacCsCti_15", + "eCorePacCsCti_16", + "eCorePacCsCti_17", + "eCorePacCsCti_18", + "eCorePacCsCti_19", + "eCorePacCsCti_20", + "eCorePacCsCti_21", + "eCorePacCsCti_22", + "eCorePacCsCti_23", + "eCorePacCsCti_24", + "eCorePacCsCti_25", + "eCorePacCsCti_26", + "eCorePacCsCti_27", + "eCorePacCsCti_28", + "eCorePacCsCti_29", + "eCorePacCsCti_30", + "eCorePacCsCti_31", + "eCorePacCsCti_32", + "eCorePacCsCti_33", + "eCorePacCsCti_34", + "eCorePacCsCti_35", + "eCorePacCsCti_36", + "eCorePacCsCti_37", + "eCorePacCsCti_38", + "eCorePacCsCti_39", + "eCorePacCtSet_0", + "eCorePacCtSet_1", + "eCorePacCtSet_2", + "eCorePacCtSet_3", + "eStm500CsCti_0", + "eComputeClusterA53CsCti_0", + "eComputeClusterA53CsCti_1", + "eComputeClusterA53CsCti_2", + "eComputeClusterA53CsCti_3", + "eComputeClusterR5CsCti_0", + "eComputeClusterR5CsCti_1", + "eBlazarM4CsCti_0", + "eCpTracer2_Probe_0", + "eCpTracer2_Probe_1", + "eCpTracer2_Probe_2", + "eCpTracer2_Probe_3", + "eCpTracer2_Probe_4", + "eCpTracer2_Probe_5", + "eCpTracer2_Probe_6", + "eCpTracer2_Probe_7", + "eCpTracer2_Probe_8", + "eCpTracer2_Probe_9", + "eCpTracer2_Probe_10", + "eCpTracer2_Probe_11", + "eCpTracer2_Probe_12", + "eCpTracer2_Probe_13", + "eCpTracer2_Probe_14", + "eCpTracer2_Probe_15", + "eCpTracer2_Probe_16", + "eCpTracer2_Probe_17", + "eCpTracer2_Probe_18", + "eCpTracer2_Probe_19", + "eCpTracer2_Probe_20", + "eCpTracer2_Probe_21", + "eCpTracer2_Probe_22", + "eCpTracer2_Probe_23", + "eCpTracer2_Probe_24", + "eCpTracer2_Probe_25", + "eCpTracer2_Probe_26", + "eCpTracer2_Probe_27", + "eCpTracer2_Probe_28", + "eCpTracer2_Probe_29", + "eCpTracer2_Probe_30", + "eCpTracer2_Probe_31", + "eCpTracer2_Probe_32", + "eCpTracer2_Probe_33", + "eCpTracer2_Probe_34", + "eCpTracer2_Probe_35", + "eCpTracer2_Probe_36", + "eCpTracer2_Probe_37", + "eCpTracer2_Probe_38", + "eCpTracer2_Probe_39", + "eCpTracer2_Probe_40", + "eCpTracer2_Probe_41", + "eCpTracer2_Probe_42", + "eCpTracer2_Probe_43", + "eCpTracer2_Probe_44", + "eCpTracer2_Probe_45", + "eCpTracer2_Probe_46", + "eCpTracer2_Probe_47", + "eCpTracer2_Probe_48", + "eCpTracer2_Probe_49", + "eCpTracer2_Probe_50", + "eCpTracer2_Probe_51", + "eCpTracer2_Probe_52", + "eCpTracer2_Probe_53", + "eCpTracer2_Probe_54", + "eCpTracer2_Probe_55", + "eCpTracer2_Probe_56", + "eCpTracer2_Probe_57", + "eCpTracer2_Probe_58", + "eCpTracer2_Probe_59", + "eCpTracer2_Probe_60", + "eCpTracer2_Probe_61", + "eCpTracer2_Probe_62", + "eCpTracer2_Probe_63", + "eCpTracer2_Probe_64", + "eCpTracer2_Probe_65", + "eCpTracer2_Probe_66", + "eCpTracer2_Probe_67", + "eCpTracer2_Probe_68", + "eCpTracer2_Probe_69", + "eCpTracer2_Probe_70", + "eCpTracer2_Probe_71", + "eCpTracer2_Probe_72", + "eCpTracer2_Probe_73", + "eCpTracer2_Probe_74", + "eCpTracer2_Probe_75", + "eCpTracer2_Probe_76", + "eCpTracer2_Probe_77", + "eCpTracer2_Probe_78", + "eCpTracer2_Probe_79", + "eCpTracer2_Probe_80", + "eCpTracer2_Probe_81", + "eCpTracer2_Probe_82", + "eCpTracer2_Probe_83", + "eCpTracer2_Probe_84", + "eCpTracer2_Probe_85", + "eCpTracer2_Probe_86", + "eCpTracer2_Probe_87", + "eCpTracer2_Probe_88", + "eCpTracer2_Probe_89", + "eCpTracer2_Probe_90", + "eCpTracer2_Probe_91", + "eCpTracer2_Probe_92", + "eCpTracer2_Probe_93", + "eCpTracer2_Probe_94", + "eCpTracer2_Probe_95", + "eCpTracer2_Probe_96", + "eCpTracer2_Probe_97", + "eCpTracer2_Probe_98", + "eCpTracer2_Probe_99", + "eTraceAggregator_0", + "eTraceAggregator_1", + "eTraceAggregator_2", + "eTraceAggregator_3", + "eTraceAggregator_4", + "eTraceAggregator_5", + "eTraceAggregator_6", + "eTraceAggregator_7", + "eTraceAggregator_8", + "eTraceAggregator_9", + "eTraceAggregator_10", + "eTraceAggregator_11", + "eTraceAggregator_12", + "eTraceAggregator_13", + "eTraceAggregator_14", + "eTraceAggregator_15", + "eRingAcc_0", + "eRingAcc_1", + "eDmpac_0", + "eDmpacCtset_0", + "eVpac_0", + "eVpacCtset_0", + "eVpac_1", + "eVpacCtset_1" + ] + }, + "cluster_id_t": { + "enum": [ + "eCorePacArmv8x2_CorePac_0", + "eCorePacArmv8x2_CorePac_1", + "eCorePacArmv8x2_CorePac_2", + "eCorePacArmv8x2_CorePac_3", + "eCorePacArmv8x2_CorePac_4", + "eCorePacArmv8x2_CorePac_5", + "eCorePacArmv8x2_CorePac_6", + "eCorePacArmv8x2_CorePac_7", + "eCorePacArmv8x2_CorePac_8", + "eCorePacArmv8x2_CorePac_9", + "eCorePacArmv8x4_CorePac_0", + "eCorePacArmv8x4_CorePac_1", + "eCorePacArmv8x4_CorePac_2", + "eCorePacArmv8x4_CorePac_3", + "eCorePacArmv8x4_CorePac_4", + "eCorePacArmv8x4_CorePac_5", + "eCorePacArmv8x4_CorePac_6", + "eCorePacArmv8x4_CorePac_7", + "eCorePacArmv8x4_CorePac_8", + "eCorePacArmv8x4_CorePac_9", + "eCorePacC66x_0", + "eCorePacC66x_1", + "eCorePacC71x1_0", + "eCorePacC71x1_1", + "eCorePacC71x1_2", + "eCorePacC71x1_3", + "eCorePacC71x1_4", + "eCorePacC71x1_5", + "eCorePacC71x1_6", + "eCorePacC71x1_7", + "eCorePacC71x1_8", + "eCorePacC71x1_9", + "eCorePacC71x2_0", + "eCorePacC71x2_1", + "eCorePacC71x2_2", + "eCorePacC71x2_3", + "eCorePacC71x2_4", + "eCorePacC71x2_5", + "eCorePacC71x2_6", + "eCorePacC71x2_7", + "eCorePacC71x2_8", + "eCorePacC71x2_9", + "ePulsarR5x2_0", + "ePulsarR5x2_1", + "ePulsarR5x2_2", + "ePulsarR5x2_3", + "eDMSCM3_0", + "eBlazarM4_0", + "eSMSM4_0", + "eSMS_0", + "eDebugSubsystem_0", + "eDebugCell_0", + "eDebugCell_1", + "eDebugCell_2", + "eDebugCell_3", + "eDebugCell_4", + "eDebugCell_5", + "eDebugCell_6", + "eDebugCell_7", + "eDebugCell_8", + "eDebugCell_9", + "eDebugCell_10", + "eDebugCell_11", + "eMSMC_0" + ] + }, + "cluster_type_t": { + "enum": [ + "eCorePacNone", + "eCorePacC66x", + "eCorePacC71x1", + "eCorePacC71x2", + "eCorePacArmv8x2", + "eCorePacArmv8x4", + "eDMSCM3", + "eBlazarM4", + "eSMSM4", + "ePulsarR5x2", + "eDebugSubsystem", + "eDebugCell", + "eMSMC" + ] + }, + "eAccessType_t": { + "enum": [ + "eAccessLocalReg", + "eAccessLocalMem", + "eAccessDebugMem", + "eAccessSystemMem", + "eSelfAccess", + "eMasterAccess", + "eDebugAccess", + "eSystemAccess" + ] + }, + "target_type_t": { + "enum": [ + "eTargetUnknown", + "eTargetC66", + "eTargetC71", + "eTargetArmv8a", + "eTargetArmv7r", + "eTargetArmv7m3", + "eTargetArmv7m4", + "eTargetTbr", + "eTargetAtbRep", + "eTargetTpiu", + "eTargetCsStm500", + "eTargetDap", + "eTargetIcePick", + "eTargetCpTracer2", + "eTargetGtc", + "eTargetTraceExportClock", + "eTargetCsTf", + "eTargetCtset2", + "eTargetDrm", + "eTargetPll", + "eTargetTypeCsCti", + "eTargetTraceAggr", + "eTargetRingAcc", + "eTargetHtsDmpac", + "eTargetHtsVpac" + ] + }, + "system_trace_type_detail_t": { + "enum": [ + // "eSttdError", + "eSttdDefault", + "eSttdCpt", + "eSttdCpt2Mcu", + "eSttdCpt2Soc", + "eSttdCpt2Msmc0", + "eSttdCpt2Msmc1", + "eSttdCpt2SocAc", + "eSttdCpt2SocHc", + "eSttdCpt2SocRc", + "eSttdCpt2SocMv", + "eSttdCpt2SocMi", + "eSttdCpt2SocAcp", + "eSttdCpt2C71", + "eSttdNavssMcu", + "eSttdNavssSoc" + // "eSttdMax" + ] + }, + "map_component_mapping_entry_t": { + "type": "array", + "items": { + "type": "array", + "minItems": 2, + "additionalItems": false, + "items": [ + { + "description": "The component id", + "$ref": "#/definitions/component_id_t" + }, + { + "type": "array", + "items": { + "type": "object", + "required": [ + "key", + "value" + ], + "properties": { + "key": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "additionalProperties": false + } + } + ] + } + } + }, + "properties": { + "$schema": { + "type": "string" + }, + "aett_schema_rev": { + "enum": [ + "1", + "2", + "3" + ] + }, + "g_map_cluster_table": { + "type": "array", + "items": { + "type": "array", + "minItems": 2, + "additionalItems": false, + "items": [ + { + "description": "The cluster id", + "$ref": "#/definitions/cluster_id_t" + }, + { + "type": "object", + "required": [ + "name", + "type", + "listOfComponents" + ], + "properties": { + "name": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/cluster_type_t" + }, + "listOfComponents": { + "type": "array", + "minItems": 1, + "additionalItems": true, + "items": { + "$ref": "#/definitions/component_id_t" + } + } + }, + "additionalProperties": false + } + ] + } + }, + "g_map_component_table": { + "type": "array", + "items": { + "type": "array", + "minItems": 2, + "additionalItems": false, + "items": [ + { + "description": "The component id", + "$ref": "#/definitions/component_id_t" + }, + { + "type": "object", + "required": [ + "name", + "type", + "type_index" + // "base_address" - must be specified excpept for eArmv*, eC7*, eC66*, eDmpac*, eVpac* where it defaults to 0x0 (actual base adresses are specified in the target specific maps) + // "access_page" - must be specified for eArmv7m*, for all other components it defaults to 1 + // "access_id" - defaults to eCsDap_0, except for eC66x, eDmpac, eVpac where it defaults to the key above + // "access_type" - defaults to "eAccessDebugMem", except for eC66x, eDmpac, eVpac where it defaults to eAccessLocalMem + // TODO: Override of "eAccessSystemMem" needed for eDrm_0 and ePll_0. Check if these compnentents are only needed for pin trace, in which case they can be eliminated + ], + "properties": { + "name": { + "type": "string" + }, + "type": { + "$ref": "#/definitions/target_type_t" + }, + "type_index": { + "type": "integer" + }, + "base_address": { + "type": "string", + "description": "Do not define a base_address for any cores (e.g. eArmv*, eC7*, eC66*, eDmpac*, eVpac*)" + }, + "access_page": { + "type": "integer", + "default": 1, + "description": "Do not define an access_page except for eArmv7m* cores" + + }, + "access_type": { + "$ref": "#/definitions/eAccessType_t" + } + }, + "additionalProperties": false + } + ] + } + }, + "g_map_aett_property_xml": { + "type": "array", + "items": { + "type": "array", + "minItems": 2, + "additionalItems": false, + "items": [ + { + "description": "The component id", + "$ref": "#/definitions/component_id_t" + }, + { + "type": "string", + "description": "The xml file name", + "examples": [ + "AETT_property_ks3_system_trace_am62x.xml" + ] + } + ] + } + }, + "g_map_source_to_tbr": { + "type": "array", + "items": { + "type": "array", + "minItems": 2, + "additionalItems": false, + "items": [ + { + "description": "The component id", + "$ref": "#/definitions/component_id_t" + }, + { + "description": "The component id", + "$ref": "#/definitions/component_id_t" // TODO Oliver: how to restrict to tbr components? + } + ] + } + }, + "g_map_core_to_ctset2": { + "type": "array", + "items": { + "type": "array", + "minItems": 2, + "additionalItems": false, + "items": [ + { + "description": "The component id", + "$ref": "#/definitions/component_id_t" + }, + { + "description": "The component id", + "$ref": "#/definitions/component_id_t" // TODO Oliver: how to restrict to ctset components? + } + ] + } + }, + "g_map_sink_to_atbrep": { + "type": "array", + "items": { + "type": "array", + "minItems": 2, + "additionalItems": false, + "items": [ + { + "description": "The component id", + "$ref": "#/definitions/component_id_t" + }, + { + "type": "object", + "required": [ + "atbrep_id", + "atbrep_portnum" + ], + "properties": { + "atbrep_id": { + "type": "string" + }, + "atbrep_portnum": { + "type": "integer" + } + }, + "additionalProperties": false + } + ] + } + }, + "g_map_arm_v7m3": { + "type": "array", + "items": { + "type": "array", + "minItems": 2, + "additionalItems": false, + "items": [ + { + "description": "The component id", + "$ref": "#/definitions/component_id_t" // TODO Oliver: restrict to m3 components? + }, + { + "type": "object", + "required": [ + // "core_access_id", - defaults to key above + "dwt_base_address", + "fpb_base_address", + "itm_base_address", + "dap_ap_page" + // "dap_id" - defaults to eCsDap_0 + ], + "properties": { + // "core_access_id": { + // "type": "string" + // }, + "dwt_base_address": { + "type": "string" + }, + "fpb_base_address": { + "type": "string" + }, + "itm_base_address": { + "type": "string" + }, + "dap_ap_page": { + "type": "integer" + } + // "dap_id": { + // "type": "string" + // } + }, + "additionalProperties": false + } + ] + } + }, + "g_map_arm_v7m4": { + "type": "array", + "items": { + "type": "array", + "minItems": 2, + "additionalItems": false, + "items": [ + { + "description": "The component id", + "$ref": "#/definitions/component_id_t" + }, + { + "type": "object", + "required": [ + // "core_access_id", - defaults to key above + "dwt_base_address", + "fpb_base_address", + "itm_base_address", + "cti_base_address", + "etm_base_address", + "dap_ap_page" + // "dap_id" - defaults to eCsDap_0 + ], + "properties": { + // "core_access_id": { + // "type": "string" + // }, + "dwt_base_address": { + "type": "string" + }, + "fpb_base_address": { + "type": "string" + }, + "itm_base_address": { + "type": "string" + }, + "cti_base_address": { + "type": "string" + }, + "etm_base_address": { + "type": "string" + }, + "dap_ap_page": { + "type": "integer" + } + // "dap_id": { + // "type": "string" + // } + }, + "additionalProperties": false + } + ] + } + }, + "g_map_arm_v8a": { + "type": "array", + "items": { + "type": "array", + "minItems": 2, + "additionalItems": false, + "items": [ + { + "description": "The component id", + "$ref": "#/definitions/component_id_t" + }, + { + "type": "object", + "required": [ + "core_base_addr", + // "core_access_page", - defaults to 1 + // "core_access_id", - defaults to eCsDap_0 + // "core_access_type", - defaults to eAccessDebugMem + "pmu_base_addr", + // "pmu_access_page", - defaults to 1 + // "pmu_access_id", - defaults to eCsDap_0 + // "pmu_access_type", - defaults to eAccessDebugMem + "etm_base_addr", + // "etm_access_page", - defaults to 1 + // "etm_access_id", - defaults to eCsDap_0 + // "etm_access_type", - defaults to eAccessDebugMem + "cti_base_addr" + // "cti_access_page", - defaults to 1 + // "cti_access_id", - defaults to eCsDap_0 + // "cti_access_type" - defaults to eAccessDebugMem + ], + "properties": { + "core_base_addr": { + "type": "string" + }, + // "core_access_page": { + // "type": "integer" + // }, + // "core_access_id": { + // "type": "string" + // }, + // "core_access_type": { + // "type": "string" + // }, + "pmu_base_addr": { + "type": "string" + }, + // "pmu_access_page": { + // "type": "integer" + // }, + // "pmu_access_id": { + // "type": "string" + // }, + // "pmu_access_type": { + // "type": "string" + // }, + "etm_base_addr": { + "type": "string" + }, + // "etm_access_page": { + // "type": "integer" + // }, + // "etm_access_id": { + // "type": "string" + // }, + // "etm_access_type": { + // "type": "string" + // }, + "cti_base_addr": { + "type": "string" + } + // "cti_access_page": { + // "type": "integer" + // }, + // "cti_access_id": { + // "type": "string" + // }, + // "cti_access_type": { + // "type": "string" + // } + }, + "additionalProperties": false + } + ] + } + }, + "g_map_arm_v7r5f": { + "type": "array", + "items": { + "type": "array", + "minItems": 2, + "additionalItems": false, + "items": [ + { + "description": "The component id", + "$ref": "#/definitions/component_id_t" + }, + { + "type": "object", + "required": [ + "core_base_addr", + // "core_access_page", + // "core_access_id", - defaults to eCsDap_0 + // "core_access_type", - defaults to eAccessDebugMem + "pmu_base_addr", + // "pmu_access_page", - defaults to 0, i.e. N/A + // "pmu_access_id", - defaults to key above ("eArmv7r5f_x") + // "pmu_access_type", - defaults to eAccessLocalReg + "cti_base_addr", + // "cti_access_page", + // "cti_access_id", - defaults to eCsDap_0 + // "cti_access_type", - defaults to eAccessDebugMem + "etm_base_addr" + // "etm_access_page", + // "etm_access_id", - defaults to eCsDap_0 + // "etm_access_type" - defaults to eAccessDebugMem + ], + "properties": { + "core_base_addr": { + "type": "string" + }, + // "core_access_page": { + // "type": "integer" + // }, + // "core_access_id": { + // "type": "string" + // }, + // "core_access_type": { + // "type": "string" + // }, + "pmu_base_addr": { + "type": "string" + }, + // "pmu_access_page": { + // "type": "integer" + // }, + // "pmu_access_id": { + // "type": "string" + // }, + // "pmu_access_type": { + // "type": "string" + // }, + "cti_base_addr": { + "type": "string" + }, + // "cti_access_page": { + // "type": "integer" + // }, + // "cti_access_id": { + // "type": "string" + // }, + // "cti_access_type": { + // "type": "string" + // }, + "etm_base_addr": { + "type": "string" + } + // "etm_access_page": { + // "type": "integer" + // }, + // "etm_access_id": { + // "type": "string" + // }, + // "etm_access_type": { + // "type": "string" + // } + }, + "additionalProperties": false + } + ] + } + }, + "g_map_dsp_c71": { + "type": "array", + "items": { + "type": "array", + "minItems": 2, + "additionalItems": false, + "items": [ + { + "description": "The component id", + "$ref": "#/definitions/component_id_t" + }, + { + "type": "object", + "required": [ + // "cpu_access_id", - defaults to key above + // "dap_access_page", - defaults to 1 + // "dap_access_id", - defaults to eCsDap_0 + // "access_type", - defaults to eAccessDebugMem + "core_base_addr", + "aet_base_addr", + "trace_base_addr", + "cti_base_addr" + ], + "properties": { + // "cpu_access_id": { + // "type": "string" + // }, + // "dap_access_page": { + // "type": "integer" + // }, + // "dap_access_id": { + // "type": "string" + // }, + // "access_type": { + // "type": "string" + // }, + "core_base_addr": { + "type": "string" + }, + "aet_base_addr": { + "type": "string" + }, + "trace_base_addr": { + "type": "string" + }, + "cti_base_addr": { + "type": "string" + } + }, + "additionalProperties": false + } + ] + } + }, + "g_map_aggr_to_trace_src": { + "type": "array", + "items": { + "type": "array", + "minItems": 2, + "additionalItems": false, + "items": [ + { + "description": "The component id", + "$ref": "#/definitions/component_id_t" + }, + { + "type": "object", + "required": [ + "detail", + "sources" + ], + "properties": { + "detail": { + "description": "The system trace type", + "$ref": "#/definitions/system_trace_type_detail_t" + }, + "sources": { + "type": "array", + "items": { + "description": "The component id", + "$ref": "#/definitions/component_id_t" + } + } + }, + "additionalProperties": false + } + ] + } + }, + "g_map_arm_csstm_500_component_mapping": { + "$ref": "#/definitions/map_component_mapping_entry_t" + }, + "g_map_trace_aggr_component_mapping": { + "$ref": "#/definitions/map_component_mapping_entry_t" + }, + "g_map_arm_v7_component_mapping": { + "$ref": "#/definitions/map_component_mapping_entry_t" + }, + "g_map_arm_v7m4_component_mapping": { + "$ref": "#/definitions/map_component_mapping_entry_t" + }, + "g_vec_xtrig_routes": { + "type": "array", + "items": { + "type": "object", + "required": [ + "directon", + "type", + "comp_id", + "infra_type", + "infra_id", + "trig_index", + "channel_group" + ], + "properties": { + "directon": { + "type": "string" + }, + "type": { + "type": "string" + }, + "comp_id": { + "type": "string" + }, + "infra_type": { + "type": "string" + }, + "infra_id": { + "type": "string" + }, + "trig_index": { + "type": "integer" + }, + "channel_group": { + "type": "integer" + } + }, + "additionalProperties": false + } + } + }, + "additionalProperties": false +} \ No newline at end of file diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/cache_analysis/index.html b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/cache_analysis/index.html new file mode 100644 index 0000000..0ac4281 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/cache_analysis/index.html @@ -0,0 +1,14 @@ + + + + + + + + + +
+ +
+ + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/cache_analysis/overriden.css b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/cache_analysis/overriden.css new file mode 100644 index 0000000..b73fec9 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/cache_analysis/overriden.css @@ -0,0 +1,42 @@ +paper-toolbar { + border-bottom: 1px solid #aaaaaa; +} + +table { + border-spacing: 0; +} + + +table { + width: 100%; + padding: 20px; +} + +html .lightgray-theme paper-tabs[no-bar] paper-tab.iron-selected { + background-color: #115566; /* this controls the background color of the selected tab */ + color: white; +} + +html .lightgray-theme paper-tabs, +html .lightgray-theme iron-toolbar, +html#designer-frame .designer-theme paper-tabs, +html#designer-frame .designer-theme iron-toolbar { + background-color: darkgray; /* this controls the background color of the unselected tabs */ + color: white; +} + +html .lightgray-theme ti-widget-button[raised]:not(.idunno), +html .lightgray-theme paper-button[raised], +html#designer-frame .designer-theme ti-widget-button[raised]:not(.idunno), +html#designer-frame .designer-theme paper-button[raised] { + background-color: white; + color: #115566; +} + +html .lightgray-theme,html#designer-frame .designer-theme { + font-size: 12px; +} + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/cache_analysis/ti-cache-usecases.html b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/cache_analysis/ti-cache-usecases.html new file mode 100644 index 0000000..47b27c1 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/cache_analysis/ti-cache-usecases.html @@ -0,0 +1,4349 @@ + + + + + + + + + + + + + + + + + + + + } + + + + + + + + + + + \ No newline at end of file diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-service-trace/ti-service-trace.html b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-service-trace/ti-service-trace.html new file mode 100644 index 0000000..0fe5971 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-service-trace/ti-service-trace.html @@ -0,0 +1,446 @@ + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-service-trace/trace.js b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-service-trace/trace.js new file mode 100644 index 0000000..7a5303f --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-service-trace/trace.js @@ -0,0 +1,278 @@ +/* eslint "no-console" : "off" */ +/* global Q:false */ +var TITraceAgent = TITraceAgent || {}; +(function (TITraceAgent) { + function getCloudTracePort() + { + var xhttp = new XMLHttpRequest(); + var portDefer = Q.defer(); + + xhttp.onreadystatechange = function() { + if (this.readyState == 4) { + if (this.status == 200) { + portDefer.resolve(this.responseText); + } else { + portDefer.reject("request for CloudTracePort failed"); + } + } + } + xhttp.open("GET","http://"+ location.host + "/dbgtrc/cloudtraceport"); + xhttp.send(); + return portDefer.promise; + } + function createClientModule(host, port /*, subProtocol*/) { + var eventListeners = {}; + var moduleObj = { + addListener: function (type, listener) { + if (!eventListeners[type]) { + eventListeners[type] = []; + } + eventListeners[type].push(listener); + }, + removeListener: function (type, listener) { + if (eventListeners[type]) { + var typeListeners = eventListeners[type]; + for (var i = 0; i < typeListeners.length; i++) { + if (typeListeners[i] === listener) { + typeListeners[i] = null; + break; + } + } + } + }, + getSubModule: null, + close: null, + }; + var internalModuleObj = { + createSubModule: null, + listCommands: null, + }; + function createCommandDispatch() { + var commandID = 1; // start from 1, since 0 is eqiv to null + var pendingCommands = {}; + var rejectMsg = { message: "Module Closed" }; + var commandDispatchObj = { + exec: function (ws, commandName, data) { + var defCommand = Q.defer(); + var obj = { + command: commandName, + id: commandID++, + data: data, + }; + pendingCommands[obj.id] = defCommand; + var message = JSON.stringify(obj); + console.log("sent command " + obj.id.toString() + ": " + commandName); + try { + ws.send(message); + } + catch (e) { + console.log("command "+obj.id.toString() + " rejected"); + console.log(e) + defCommand.reject(rejectMsg); + } + return defCommand.promise; + }, + ret: function (retObj) { + var response = retObj.response; + var error = retObj.error; + var data = retObj.data; + var id = response || error; + var defCommand = pendingCommands[id]; + if (defCommand) { + if (response) { + defCommand.resolve(data); + } else { + console.log("Error response: "+data.message); + defCommand.reject(data); + } + delete pendingCommands[id]; + console.log("received response for cmd "+id.toString()); + } else { + console.error("commandDispatch : ret , Error, no promise found corresponding to id : " + id); + } + }, + }; + function cleanUp() { + for (var key in pendingCommands) { + if (pendingCommands.hasOwnProperty(key)) { + var commandPromise = pendingCommands[key]; + commandPromise.reject(rejectMsg); + } + } + pendingCommands = {}; + commandDispatchObj.exec = function () { + var defCommand = Q.defer(); + defCommand.reject(rejectMsg); + return defCommand.promise; + }; + commandDispatchObj.ret = function() { + // do nothing + return; + }; + } + moduleObj.addListener("close", cleanUp); + return commandDispatchObj; + } + var commandDispatch = createCommandDispatch(); + var eventDispatch = { + dispatch: function (listeners, retObj) { + var typeListeners = listeners[retObj.event]; + if (typeListeners) { + for (var _i = 0, typeListeners_1 = typeListeners; + _i < typeListeners_1.length; + _i++) { + var listener = typeListeners_1[_i]; + if (listener) { + listener(retObj.data); + } + } + } + }, + }; + function socketURL() { + return "ws://" + host + ":" + port; //127.0.0.1:"+port; + } + var subModulePromises = {}; + moduleObj.getSubModule = function(subModuleName) { + var subModulePromise = subModulePromises[subModuleName]; + if (!subModulePromise) { + subModulePromise = internalModuleObj.createSubModule(subModuleName) + .then(function (data) { + return createClientModule(host, data.port, data.subProtocol); + }).then(function (subModule) { + function cleanUp() { + subModulePromises[subModuleName] = null; + } + subModule.addListener("close", cleanUp); + return subModule; + }).catch(function (err) { + subModulePromises[subModuleName] = null; + throw err; + }); + subModulePromises[subModuleName] = subModulePromise; + } + return subModulePromise; + }; + + function createCommand(ws, fullCommandName) { + var commandNameParts = fullCommandName.split("."); + var parentObj = moduleObj; + var parentNamespace = ""; + function createAddListener(eventTypePrefix) { + return function (type, listener) { + type = eventTypePrefix+type; + moduleObj.addListener(type, listener); + }; + } + function createRemoveListener(eventTypePrefix) { + return function (type, listener) { + type = eventTypePrefix + type; + moduleObj.removeListener(type, listener); + }; + } + for (var i = 0; i < commandNameParts.length - 1; i++) { + var currentNamespacePart = commandNameParts[i]; + parentNamespace += commandNameParts[i]; + var newObj = parentObj[currentNamespacePart]; + if (!newObj) { + var eventTypePrefix = parentNamespace + "."; + newObj = { + addListener: createAddListener(eventTypePrefix), + removeListener: createRemoveListener(eventTypePrefix), + }; + } + parentObj[currentNamespacePart] = newObj; + parentObj = newObj; + parentNamespace = parentNamespace + "."; + } + var commandName = commandNameParts[commandNameParts.length-1]; + if ("createSubModule" === fullCommandName || + "listCommands" === fullCommandName) { + parentObj = internalModuleObj; + } + function theCommand() { + var data = Array.prototype.slice.call(arguments); + return commandDispatch.exec(ws, fullCommandName, data); + } + parentObj[commandName] = theCommand; + } + var setUpDef = Q.defer(); + var ws = new WebSocket(socketURL()); + function pageUnloadHandler() { + ws.close(); + } + ws.onclose = function() { + setUpDef.reject("socket closed"); + eventDispatch.dispatch(eventListeners, { + event: "close", + data: { + message: "socket closed", + }, + }); + window.removeEventListener("unload", pageUnloadHandler); + }; + ws.onerror = function() { + setUpDef.reject("socket error"); + eventDispatch.dispatch(eventListeners, { + event: "error", + data: { + message: "socket error", + } + }); + }; + ws.onopen = function() { + try { + window.addEventListener("unload", pageUnloadHandler); + ws.onmessage = function (msgEvt) { + var retObj = JSON.parse(msgEvt.data); + if (retObj.event) { + eventDispatch.dispatch(eventListeners, retObj); + } else { + commandDispatch.ret(retObj); + } + }; + moduleObj.close = function() { + ws.close(); + return Q(); + }; + createCommand(ws, "listCommands"); + internalModuleObj.listCommands() + .then(function (dataObj) { + for (var _i = 0, _a = dataObj.commands; _i < _a.length; _i++) { + var command = _a[_i]; + if (command !== "listCommands") { + createCommand(ws, command); + } + } + setUpDef.resolve(moduleObj); + }).catch(function (err) {return setUpDef.reject(err);}); + } + catch (err) { + setUpDef.reject(err); + } + }; + return setUpDef.promise; + } + var mod; + function Init() { + if (!mod) { + mod = Q.defer(); + + getCloudTracePort().then(function (port) { + createClientModule("127.0.0.1", port).then(function (agent) { + mod.resolve(agent); + }).catch(function (err) { + createClientModule("localhost", port).then(function (agent) { + mod.resolve(agent); + }).catch(function (err) { + mod.reject(err); + }); + }); + }).catch(function (err) { + mod.reject(err); + }); + } + return mod.promise; + } + TITraceAgent.Init = Init; +})(TITraceAgent); diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-tdf-system-trace/ti-tdf.html b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-tdf-system-trace/ti-tdf.html new file mode 100644 index 0000000..cb9088d --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-tdf-system-trace/ti-tdf.html @@ -0,0 +1,245 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-common/ti-trace-common-style.html b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-common/ti-trace-common-style.html new file mode 100644 index 0000000..3308e2f --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-common/ti-trace-common-style.html @@ -0,0 +1,54 @@ + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-common/ti-trace-menubar.html b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-common/ti-trace-menubar.html new file mode 100644 index 0000000..8ea96ed --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-common/ti-trace-menubar.html @@ -0,0 +1,219 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-common/ti-trace-progress.html b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-common/ti-trace-progress.html new file mode 100644 index 0000000..5490df8 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-common/ti-trace-progress.html @@ -0,0 +1,78 @@ + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-config/ti-dbgtrc-config-dialog.html b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-config/ti-dbgtrc-config-dialog.html new file mode 100644 index 0000000..6a6b1c3 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-config/ti-dbgtrc-config-dialog.html @@ -0,0 +1,140 @@ + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-cptracer2/ti-trace-cpt2-config.html b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-cptracer2/ti-trace-cpt2-config.html new file mode 100644 index 0000000..b0dc66c --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-cptracer2/ti-trace-cpt2-config.html @@ -0,0 +1,1715 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-cptracer2/ti-trace-cptracer2-2.html b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-cptracer2/ti-trace-cptracer2-2.html new file mode 100644 index 0000000..db57535 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-cptracer2/ti-trace-cptracer2-2.html @@ -0,0 +1,1603 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-cptracer2/ti-trace-cptracer2-common-config.html b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-cptracer2/ti-trace-cptracer2-common-config.html new file mode 100644 index 0000000..6b7019f --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-cptracer2/ti-trace-cptracer2-common-config.html @@ -0,0 +1,666 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-cptracer2/ti-trace-cptracer2-graph-base.html b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-cptracer2/ti-trace-cptracer2-graph-base.html new file mode 100644 index 0000000..308d437 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-cptracer2/ti-trace-cptracer2-graph-base.html @@ -0,0 +1,401 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-cptracer2/ti-trace-cptracer2-graph.html b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-cptracer2/ti-trace-cptracer2-graph.html new file mode 100644 index 0000000..6ddfc10 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-cptracer2/ti-trace-cptracer2-graph.html @@ -0,0 +1,669 @@ + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-cptracer2/ti-trace-cptracer2-usecase-config.html b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-cptracer2/ti-trace-cptracer2-usecase-config.html new file mode 100644 index 0000000..1d54915 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-cptracer2/ti-trace-cptracer2-usecase-config.html @@ -0,0 +1,185 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-graphs/ti-trace-graph.html b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-graphs/ti-trace-graph.html new file mode 100644 index 0000000..7cee32e --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-graphs/ti-trace-graph.html @@ -0,0 +1,495 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-model/src/TraceModel.js b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-model/src/TraceModel.js new file mode 100644 index 0000000..82d15b8 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-model/src/TraceModel.js @@ -0,0 +1,68 @@ +/***************************************************************** + * Copyright (c) 2018 Texas Instruments and others + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + *****************************************************************/ +var gc = gc || {}; +gc.databind = gc.databind || {}; + +(function() // closure for private static methods and data. +{ + gc.databind.TraceModel = function() + { + gc.databind.AbstractPollingDataModel.call(this); + this.init(); + }; + + gc.databind.TraceModel.prototype = new gc.databind.AbstractPollingDataModel('tm'); + + gc.databind.TraceModel.prototype.init = function() + { + gc.databind.AbstractPollingDataModel.prototype.init.call(this); + + //var binding = this._modelBindings.$target_connected; + var refreshBinding = this._modelBindings.$refresh_interval; + var activeDebugContext = new gc.databind.VariableBindValue(''); + this._modelBindings.$active_context_name = activeDebugContext; + activeDebugContext.addChangedListener( + { + onValueChanged: function() + { + //...[ clear out critical errors on every context change + var tm = gc.databind.registry.getModel('tm'); + if (tm && tm.getAllBindings) + { + var bindings = tm.getAllBindings(); + for(var bindName in bindings) + { + if (bindings.hasOwnProperty(bindName)) + { + var bind = bindings[bindName]; + if (bind.reportCriticalError) + { + bind.reportCriticalError(null); + } + } + } + } + // ...] + + refreshBinding.onRefresh(); + } + }); + + gc.databind.AbstractAsyncBindValue.addQualifiersToModel(this); + }; + + /* + gc.databind.TraceModel.prototype.createNewBind = function(uri) + { + return undefined ;//new gc.databind.internal.tm.DSEvalBind(uri, this._modelBindings.$refresh_interval); + };*/ + + // register program model with bindingRegistry + gc.databind.registry.registerModel(new gc.databind.TraceModel(), true); +}()); \ No newline at end of file diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-model/ti-trace-model.html b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-model/ti-trace-model.html new file mode 100644 index 0000000..c247b5f --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-model/ti-trace-model.html @@ -0,0 +1,271 @@ + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-stm/ti-dbgtrc-config-dialog.html b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-stm/ti-dbgtrc-config-dialog.html new file mode 100644 index 0000000..96e7dde --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-stm/ti-dbgtrc-config-dialog.html @@ -0,0 +1,138 @@ + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-stm/ti-trace-menubar.html b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-stm/ti-trace-menubar.html new file mode 100644 index 0000000..d06f8db --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-stm/ti-trace-menubar.html @@ -0,0 +1,241 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-stm/ti-trace-receivers.html b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-stm/ti-trace-receivers.html new file mode 100644 index 0000000..549aae8 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-stm/ti-trace-receivers.html @@ -0,0 +1,296 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-stm/ti-trace-stm-2.html b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-stm/ti-trace-stm-2.html new file mode 100644 index 0000000..6d130fb --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-stm/ti-trace-stm-2.html @@ -0,0 +1,1460 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-stm/ti-trace-stm-config.html b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-stm/ti-trace-stm-config.html new file mode 100644 index 0000000..b5ccc6a --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-stm/ti-trace-stm-config.html @@ -0,0 +1,469 @@ + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-stm/ti-trace-swmsg-view.html b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-stm/ti-trace-swmsg-view.html new file mode 100644 index 0000000..bfeac83 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-stm/ti-trace-swmsg-view.html @@ -0,0 +1,217 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-swmsg/ti-trace-swmsg-view.html b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-swmsg/ti-trace-swmsg-view.html new file mode 100644 index 0000000..f89914e --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-swmsg/ti-trace-swmsg-view.html @@ -0,0 +1,209 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-tables/ti-trace-table.html b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-tables/ti-trace-table.html new file mode 100644 index 0000000..aa58099 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components-dbgtrc/ti-trace-tables/ti-trace-table.html @@ -0,0 +1,196 @@ + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components/dygraph/dygraph.css b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components/dygraph/dygraph.css new file mode 100644 index 0000000..75d5868 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components/dygraph/dygraph.css @@ -0,0 +1,117 @@ +/** + * Default styles for the dygraphs charting library. + */ + +.dygraph-legend { + position: absolute; + font-size: 14px; + z-index: 10; + width: 250px; /* labelsDivWidth */ + /* + dygraphs determines these based on the presence of chart labels. + It might make more sense to create a wrapper div around the chart proper. + top: 0px; + right: 2px; + */ + background: white; + line-height: normal; + text-align: left; + overflow: hidden; +} + +/* styles for a solid line in the legend */ +.dygraph-legend-line { + display: inline-block; + position: relative; + bottom: .5ex; + padding-left: 1em; + height: 1px; + border-bottom-width: 2px; + border-bottom-style: solid; + /* border-bottom-color is set based on the series color */ +} + +/* styles for a dashed line in the legend, e.g. when strokePattern is set */ +.dygraph-legend-dash { + display: inline-block; + position: relative; + bottom: .5ex; + height: 1px; + border-bottom-width: 2px; + border-bottom-style: solid; + /* border-bottom-color is set based on the series color */ + /* margin-right is set based on the stroke pattern */ + /* padding-left is set based on the stroke pattern */ +} + +.dygraph-roller { + position: absolute; + z-index: 10; +} + +/* This class is shared by all annotations, including those with icons */ +.dygraph-annotation { + position: absolute; + z-index: 10; + overflow: hidden; +} + +/* This class only applies to annotations without icons */ +/* Old class name: .dygraphDefaultAnnotation */ +.dygraph-default-annotation { + border: 1px solid black; + background-color: white; + text-align: center; +} + +.dygraph-axis-label { + /* position: absolute; */ + /* font-size: 14px; */ + z-index: 10; + line-height: normal; + overflow: hidden; + color: black; /* replaces old axisLabelColor option */ +} + +.dygraph-axis-label-x { +} + +.dygraph-axis-label-y { +} + +.dygraph-axis-label-y2 { +} + +.dygraph-title { + font-weight: bold; + z-index: 10; + text-align: center; + /* font-size: based on titleHeight option */ +} + +.dygraph-xlabel { + text-align: center; + /* font-size: based on xLabelHeight option */ +} + +/* For y-axis label */ +.dygraph-label-rotate-left { + text-align: center; + /* See http://caniuse.com/#feat=transforms2d */ + transform: rotate(90deg); + -webkit-transform: rotate(90deg); + -moz-transform: rotate(90deg); + -o-transform: rotate(90deg); + -ms-transform: rotate(90deg); +} + +/* For y2-axis label */ +.dygraph-label-rotate-right { + text-align: center; + /* See http://caniuse.com/#feat=transforms2d */ + transform: rotate(-90deg); + -webkit-transform: rotate(-90deg); + -moz-transform: rotate(-90deg); + -o-transform: rotate(-90deg); + -ms-transform: rotate(-90deg); +} diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components/dygraph/dygraph.js b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components/dygraph/dygraph.js new file mode 100644 index 0000000..dff393a --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components/dygraph/dygraph.js @@ -0,0 +1,9464 @@ +(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Dygraph = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o 1) { + for (var i = 1; i < arguments.length; i++) { + args[i - 1] = arguments[i]; + } + } + queue.push(new Item(fun, args)); + if (queue.length === 1 && !draining) { + runTimeout(drainQueue); + } +}; + +// v8 likes predictible objects +function Item(fun, array) { + this.fun = fun; + this.array = array; +} +Item.prototype.run = function () { + this.fun.apply(null, this.array); +}; +process.title = 'browser'; +process.browser = true; +process.env = {}; +process.argv = []; +process.version = ''; // empty string to avoid regexp issues +process.versions = {}; + +function noop() {} + +process.on = noop; +process.addListener = noop; +process.once = noop; +process.off = noop; +process.removeListener = noop; +process.removeAllListeners = noop; +process.emit = noop; +process.prependListener = noop; +process.prependOnceListener = noop; + +process.listeners = function (name) { return [] } + +process.binding = function (name) { + throw new Error('process.binding is not supported'); +}; + +process.cwd = function () { return '/' }; +process.chdir = function (dir) { + throw new Error('process.chdir is not supported'); +}; +process.umask = function() { return 0; }; + +},{}],2:[function(require,module,exports){ +/** + * @license + * Copyright 2013 David Eberlein (david.eberlein@ch.sauter-bc.com) + * MIT-licensed (http://opensource.org/licenses/MIT) + */ + +/** + * @fileoverview DataHandler implementation for the custom bars option. + * @author David Eberlein (david.eberlein@ch.sauter-bc.com) + */ + +/*global Dygraph:false */ +"use strict"; + +Object.defineProperty(exports, '__esModule', { + value: true +}); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +var _bars = require('./bars'); + +var _bars2 = _interopRequireDefault(_bars); + +/** + * @constructor + * @extends Dygraph.DataHandlers.BarsHandler + */ +var CustomBarsHandler = function CustomBarsHandler() {}; + +CustomBarsHandler.prototype = new _bars2['default'](); + +/** @inheritDoc */ +CustomBarsHandler.prototype.extractSeries = function (rawData, i, options) { + // TODO(danvk): pre-allocate series here. + var series = []; + var x, y, point; + var logScale = options.get('logscale'); + for (var j = 0; j < rawData.length; j++) { + x = rawData[j][0]; + point = rawData[j][i]; + if (logScale && point !== null) { + // On the log scale, points less than zero do not exist. + // This will create a gap in the chart. + if (point[0] <= 0 || point[1] <= 0 || point[2] <= 0) { + point = null; + } + } + // Extract to the unified data format. + if (point !== null) { + y = point[1]; + if (y !== null && !isNaN(y)) { + series.push([x, y, [point[0], point[2]]]); + } else { + series.push([x, y, [y, y]]); + } + } else { + series.push([x, null, [null, null]]); + } + } + return series; +}; + +/** @inheritDoc */ +CustomBarsHandler.prototype.rollingAverage = function (originalData, rollPeriod, options) { + rollPeriod = Math.min(rollPeriod, originalData.length); + var rollingData = []; + var y, low, high, mid, count, i, extremes; + + low = 0; + mid = 0; + high = 0; + count = 0; + for (i = 0; i < originalData.length; i++) { + y = originalData[i][1]; + extremes = originalData[i][2]; + rollingData[i] = originalData[i]; + + if (y !== null && !isNaN(y)) { + low += extremes[0]; + mid += y; + high += extremes[1]; + count += 1; + } + if (i - rollPeriod >= 0) { + var prev = originalData[i - rollPeriod]; + if (prev[1] !== null && !isNaN(prev[1])) { + low -= prev[2][0]; + mid -= prev[1]; + high -= prev[2][1]; + count -= 1; + } + } + if (count) { + rollingData[i] = [originalData[i][0], 1.0 * mid / count, [1.0 * low / count, 1.0 * high / count]]; + } else { + rollingData[i] = [originalData[i][0], null, [null, null]]; + } + } + + return rollingData; +}; + +exports['default'] = CustomBarsHandler; +module.exports = exports['default']; + +},{"./bars":5}],3:[function(require,module,exports){ +/** + * @license + * Copyright 2013 David Eberlein (david.eberlein@ch.sauter-bc.com) + * MIT-licensed (http://opensource.org/licenses/MIT) + */ + +/** + * @fileoverview DataHandler implementation for the error bars option. + * @author David Eberlein (david.eberlein@ch.sauter-bc.com) + */ + +/*global Dygraph:false */ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +var _bars = require('./bars'); + +var _bars2 = _interopRequireDefault(_bars); + +/** + * @constructor + * @extends BarsHandler + */ +var ErrorBarsHandler = function ErrorBarsHandler() {}; + +ErrorBarsHandler.prototype = new _bars2["default"](); + +/** @inheritDoc */ +ErrorBarsHandler.prototype.extractSeries = function (rawData, i, options) { + // TODO(danvk): pre-allocate series here. + var series = []; + var x, y, variance, point; + var sigma = options.get("sigma"); + var logScale = options.get('logscale'); + for (var j = 0; j < rawData.length; j++) { + x = rawData[j][0]; + point = rawData[j][i]; + if (logScale && point !== null) { + // On the log scale, points less than zero do not exist. + // This will create a gap in the chart. + if (point[0] <= 0 || point[0] - sigma * point[1] <= 0) { + point = null; + } + } + // Extract to the unified data format. + if (point !== null) { + y = point[0]; + if (y !== null && !isNaN(y)) { + variance = sigma * point[1]; + // preserve original error value in extras for further + // filtering + series.push([x, y, [y - variance, y + variance, point[1]]]); + } else { + series.push([x, y, [y, y, y]]); + } + } else { + series.push([x, null, [null, null, null]]); + } + } + return series; +}; + +/** @inheritDoc */ +ErrorBarsHandler.prototype.rollingAverage = function (originalData, rollPeriod, options) { + rollPeriod = Math.min(rollPeriod, originalData.length); + var rollingData = []; + var sigma = options.get("sigma"); + + var i, j, y, v, sum, num_ok, stddev, variance, value; + + // Calculate the rolling average for the first rollPeriod - 1 points + // where there is not enough data to roll over the full number of points + for (i = 0; i < originalData.length; i++) { + sum = 0; + variance = 0; + num_ok = 0; + for (j = Math.max(0, i - rollPeriod + 1); j < i + 1; j++) { + y = originalData[j][1]; + if (y === null || isNaN(y)) continue; + num_ok++; + sum += y; + variance += Math.pow(originalData[j][2][2], 2); + } + if (num_ok) { + stddev = Math.sqrt(variance) / num_ok; + value = sum / num_ok; + rollingData[i] = [originalData[i][0], value, [value - sigma * stddev, value + sigma * stddev]]; + } else { + // This explicitly preserves NaNs to aid with "independent + // series". + // See testRollingAveragePreservesNaNs. + v = rollPeriod == 1 ? originalData[i][1] : null; + rollingData[i] = [originalData[i][0], v, [v, v]]; + } + } + + return rollingData; +}; + +exports["default"] = ErrorBarsHandler; +module.exports = exports["default"]; + +},{"./bars":5}],4:[function(require,module,exports){ +/** + * @license + * Copyright 2013 David Eberlein (david.eberlein@ch.sauter-bc.com) + * MIT-licensed (http://opensource.org/licenses/MIT) + */ + +/** + * @fileoverview DataHandler implementation for the combination + * of error bars and fractions options. + * @author David Eberlein (david.eberlein@ch.sauter-bc.com) + */ + +/*global Dygraph:false */ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } + +var _bars = require('./bars'); + +var _bars2 = _interopRequireDefault(_bars); + +/** + * @constructor + * @extends Dygraph.DataHandlers.BarsHandler + */ +var FractionsBarsHandler = function FractionsBarsHandler() {}; + +FractionsBarsHandler.prototype = new _bars2["default"](); + +/** @inheritDoc */ +FractionsBarsHandler.prototype.extractSeries = function (rawData, i, options) { + // TODO(danvk): pre-allocate series here. + var series = []; + var x, y, point, num, den, value, stddev, variance; + var mult = 100.0; + var sigma = options.get("sigma"); + var logScale = options.get('logscale'); + for (var j = 0; j < rawData.length; j++) { + x = rawData[j][0]; + point = rawData[j][i]; + if (logScale && point !== null) { + // On the log scale, points less than zero do not exist. + // This will create a gap in the chart. + if (point[0] <= 0 || point[1] <= 0) { + point = null; + } + } + // Extract to the unified data format. + if (point !== null) { + num = point[0]; + den = point[1]; + if (num !== null && !isNaN(num)) { + value = den ? num / den : 0.0; + stddev = den ? sigma * Math.sqrt(value * (1 - value) / den) : 1.0; + variance = mult * stddev; + y = mult * value; + // preserve original values in extras for further filtering + series.push([x, y, [y - variance, y + variance, num, den]]); + } else { + series.push([x, num, [num, num, num, den]]); + } + } else { + series.push([x, null, [null, null, null, null]]); + } + } + return series; +}; + +/** @inheritDoc */ +FractionsBarsHandler.prototype.rollingAverage = function (originalData, rollPeriod, options) { + rollPeriod = Math.min(rollPeriod, originalData.length); + var rollingData = []; + var sigma = options.get("sigma"); + var wilsonInterval = options.get("wilsonInterval"); + + var low, high, i, stddev; + var num = 0; + var den = 0; // numerator/denominator + var mult = 100.0; + for (i = 0; i < originalData.length; i++) { + num += originalData[i][2][2]; + den += originalData[i][2][3]; + if (i - rollPeriod >= 0) { + num -= originalData[i - rollPeriod][2][2]; + den -= originalData[i - rollPeriod][2][3]; + } + + var date = originalData[i][0]; + var value = den ? num / den : 0.0; + if (wilsonInterval) { + // For more details on this confidence interval, see: + // http://en.wikipedia.org/wiki/Binomial_confidence_interval + if (den) { + var p = value < 0 ? 0 : value, + n = den; + var pm = sigma * Math.sqrt(p * (1 - p) / n + sigma * sigma / (4 * n * n)); + var denom = 1 + sigma * sigma / den; + low = (p + sigma * sigma / (2 * den) - pm) / denom; + high = (p + sigma * sigma / (2 * den) + pm) / denom; + rollingData[i] = [date, p * mult, [low * mult, high * mult]]; + } else { + rollingData[i] = [date, 0, [0, 0]]; + } + } else { + stddev = den ? sigma * Math.sqrt(value * (1 - value) / den) : 1.0; + rollingData[i] = [date, mult * value, [mult * (value - stddev), mult * (value + stddev)]]; + } + } + + return rollingData; +}; + +exports["default"] = FractionsBarsHandler; +module.exports = exports["default"]; + +},{"./bars":5}],5:[function(require,module,exports){ +/** + * @license + * Copyright 2013 David Eberlein (david.eberlein@ch.sauter-bc.com) + * MIT-licensed (http://opensource.org/licenses/MIT) + */ + +/** + * @fileoverview DataHandler base implementation for the "bar" + * data formats. This implementation must be extended and the + * extractSeries and rollingAverage must be implemented. + * @author David Eberlein (david.eberlein@ch.sauter-bc.com) + */ + +/*global Dygraph:false */ +/*global DygraphLayout:false */ +"use strict"; + +Object.defineProperty(exports, '__esModule', { + value: true +}); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +var _datahandler = require('./datahandler'); + +var _datahandler2 = _interopRequireDefault(_datahandler); + +var _dygraphLayout = require('../dygraph-layout'); + +var _dygraphLayout2 = _interopRequireDefault(_dygraphLayout); + +/** + * @constructor + * @extends {Dygraph.DataHandler} + */ +var BarsHandler = function BarsHandler() { + _datahandler2['default'].call(this); +}; +BarsHandler.prototype = new _datahandler2['default'](); + +// TODO(danvk): figure out why the jsdoc has to be copy/pasted from superclass. +// (I get closure compiler errors if this isn't here.) +/** + * @override + * @param {!Array.} rawData The raw data passed into dygraphs where + * rawData[i] = [x,ySeries1,...,ySeriesN]. + * @param {!number} seriesIndex Index of the series to extract. All other + * series should be ignored. + * @param {!DygraphOptions} options Dygraph options. + * @return {Array.<[!number,?number,?]>} The series in the unified data format + * where series[i] = [x,y,{extras}]. + */ +BarsHandler.prototype.extractSeries = function (rawData, seriesIndex, options) { + // Not implemented here must be extended +}; + +/** + * @override + * @param {!Array.<[!number,?number,?]>} series The series in the unified + * data format where series[i] = [x,y,{extras}]. + * @param {!number} rollPeriod The number of points over which to average the data + * @param {!DygraphOptions} options The dygraph options. + * TODO(danvk): be more specific than "Array" here. + * @return {!Array.<[!number,?number,?]>} the rolled series. + */ +BarsHandler.prototype.rollingAverage = function (series, rollPeriod, options) { + // Not implemented here, must be extended. +}; + +/** @inheritDoc */ +BarsHandler.prototype.onPointsCreated_ = function (series, points) { + for (var i = 0; i < series.length; ++i) { + var item = series[i]; + var point = points[i]; + point.y_top = NaN; + point.y_bottom = NaN; + point.yval_minus = _datahandler2['default'].parseFloat(item[2][0]); + point.yval_plus = _datahandler2['default'].parseFloat(item[2][1]); + } +}; + +/** @inheritDoc */ +BarsHandler.prototype.getExtremeYValues = function (series, dateWindow, options) { + var minY = null, + maxY = null, + y; + + var firstIdx = 0; + var lastIdx = series.length - 1; + + for (var j = firstIdx; j <= lastIdx; j++) { + y = series[j][1]; + if (y === null || isNaN(y)) continue; + + var low = series[j][2][0]; + var high = series[j][2][1]; + + if (low > y) low = y; // this can happen with custom bars, + if (high < y) high = y; // e.g. in tests/custom-bars.html + + if (maxY === null || high > maxY) maxY = high; + if (minY === null || low < minY) minY = low; + } + + return [minY, maxY]; +}; + +/** @inheritDoc */ +BarsHandler.prototype.onLineEvaluated = function (points, axis, logscale) { + var point; + for (var j = 0; j < points.length; j++) { + // Copy over the error terms + point = points[j]; + point.y_top = _dygraphLayout2['default'].calcYNormal_(axis, point.yval_minus, logscale); + point.y_bottom = _dygraphLayout2['default'].calcYNormal_(axis, point.yval_plus, logscale); + } +}; + +exports['default'] = BarsHandler; +module.exports = exports['default']; + +},{"../dygraph-layout":13,"./datahandler":6}],6:[function(require,module,exports){ +/** + * @license + * Copyright 2013 David Eberlein (david.eberlein@ch.sauter-bc.com) + * MIT-licensed (http://opensource.org/licenses/MIT) + */ + +/** + * @fileoverview This file contains the managment of data handlers + * @author David Eberlein (david.eberlein@ch.sauter-bc.com) + * + * The idea is to define a common, generic data format that works for all data + * structures supported by dygraphs. To make this possible, the DataHandler + * interface is introduced. This makes it possible, that dygraph itself can work + * with the same logic for every data type independent of the actual format and + * the DataHandler takes care of the data format specific jobs. + * DataHandlers are implemented for all data types supported by Dygraphs and + * return Dygraphs compliant formats. + * By default the correct DataHandler is chosen based on the options set. + * Optionally the user may use his own DataHandler (similar to the plugin + * system). + * + * + * The unified data format returend by each handler is defined as so: + * series[n][point] = [x,y,(extras)] + * + * This format contains the common basis that is needed to draw a simple line + * series extended by optional extras for more complex graphing types. It + * contains a primitive x value as first array entry, a primitive y value as + * second array entry and an optional extras object for additional data needed. + * + * x must always be a number. + * y must always be a number, NaN of type number or null. + * extras is optional and must be interpreted by the DataHandler. It may be of + * any type. + * + * In practice this might look something like this: + * default: [x, yVal] + * errorBar / customBar: [x, yVal, [yTopVariance, yBottomVariance] ] + * + */ +/*global Dygraph:false */ +/*global DygraphLayout:false */ + +"use strict"; + +/** + * + * The data handler is responsible for all data specific operations. All of the + * series data it receives and returns is always in the unified data format. + * Initially the unified data is created by the extractSeries method + * @constructor + */ +Object.defineProperty(exports, "__esModule", { + value: true +}); +var DygraphDataHandler = function DygraphDataHandler() {}; + +var handler = DygraphDataHandler; + +/** + * X-value array index constant for unified data samples. + * @const + * @type {number} + */ +handler.X = 0; + +/** + * Y-value array index constant for unified data samples. + * @const + * @type {number} + */ +handler.Y = 1; + +/** + * Extras-value array index constant for unified data samples. + * @const + * @type {number} + */ +handler.EXTRAS = 2; + +/** + * Extracts one series from the raw data (a 2D array) into an array of the + * unified data format. + * This is where undesirable points (i.e. negative values on log scales and + * missing values through which we wish to connect lines) are dropped. + * TODO(danvk): the "missing values" bit above doesn't seem right. + * + * @param {!Array.} rawData The raw data passed into dygraphs where + * rawData[i] = [x,ySeries1,...,ySeriesN]. + * @param {!number} seriesIndex Index of the series to extract. All other + * series should be ignored. + * @param {!DygraphOptions} options Dygraph options. + * @return {Array.<[!number,?number,?]>} The series in the unified data format + * where series[i] = [x,y,{extras}]. + */ +handler.prototype.extractSeries = function (rawData, seriesIndex, options) {}; + +/** + * Converts a series to a Point array. The resulting point array must be + * returned in increasing order of idx property. + * + * @param {!Array.<[!number,?number,?]>} series The series in the unified + * data format where series[i] = [x,y,{extras}]. + * @param {!string} setName Name of the series. + * @param {!number} boundaryIdStart Index offset of the first point, equal to the + * number of skipped points left of the date window minimum (if any). + * @return {!Array.} List of points for this series. + */ +handler.prototype.seriesToPoints = function (series, setName, boundaryIdStart) { + // TODO(bhs): these loops are a hot-spot for high-point-count charts. In + // fact, + // on chrome+linux, they are 6 times more expensive than iterating through + // the + // points and drawing the lines. The brunt of the cost comes from allocating + // the |point| structures. + var points = []; + for (var i = 0; i < series.length; ++i) { + var item = series[i]; + var yraw = item[1]; + var yval = yraw === null ? null : handler.parseFloat(yraw); + var point = { + x: NaN, + y: NaN, + xval: handler.parseFloat(item[0]), + yval: yval, + name: setName, // TODO(danvk): is this really necessary? + idx: i + boundaryIdStart + }; + points.push(point); + } + this.onPointsCreated_(series, points); + return points; +}; + +/** + * Callback called for each series after the series points have been generated + * which will later be used by the plotters to draw the graph. + * Here data may be added to the seriesPoints which is needed by the plotters. + * The indexes of series and points are in sync meaning the original data + * sample for series[i] is points[i]. + * + * @param {!Array.<[!number,?number,?]>} series The series in the unified + * data format where series[i] = [x,y,{extras}]. + * @param {!Array.} points The corresponding points passed + * to the plotter. + * @protected + */ +handler.prototype.onPointsCreated_ = function (series, points) {}; + +/** + * Calculates the rolling average of a data set. + * + * @param {!Array.<[!number,?number,?]>} series The series in the unified + * data format where series[i] = [x,y,{extras}]. + * @param {!number} rollPeriod The number of points over which to average the data + * @param {!DygraphOptions} options The dygraph options. + * @return {!Array.<[!number,?number,?]>} the rolled series. + */ +handler.prototype.rollingAverage = function (series, rollPeriod, options) {}; + +/** + * Computes the range of the data series (including confidence intervals). + * + * @param {!Array.<[!number,?number,?]>} series The series in the unified + * data format where series[i] = [x, y, {extras}]. + * @param {!Array.} dateWindow The x-value range to display with + * the format: [min, max]. + * @param {!DygraphOptions} options The dygraph options. + * @return {Array.} The low and high extremes of the series in the + * given window with the format: [low, high]. + */ +handler.prototype.getExtremeYValues = function (series, dateWindow, options) {}; + +/** + * Callback called for each series after the layouting data has been + * calculated before the series is drawn. Here normalized positioning data + * should be calculated for the extras of each point. + * + * @param {!Array.} points The points passed to + * the plotter. + * @param {!Object} axis The axis on which the series will be plotted. + * @param {!boolean} logscale Weather or not to use a logscale. + */ +handler.prototype.onLineEvaluated = function (points, axis, logscale) {}; + +/** + * Optimized replacement for parseFloat, which was way too slow when almost + * all values were type number, with few edge cases, none of which were strings. + * @param {?number} val + * @return {number} + * @protected + */ +handler.parseFloat = function (val) { + // parseFloat(null) is NaN + if (val === null) { + return NaN; + } + + // Assume it's a number or NaN. If it's something else, I'll be shocked. + return val; +}; + +exports["default"] = DygraphDataHandler; +module.exports = exports["default"]; + +},{}],7:[function(require,module,exports){ +/** + * @license + * Copyright 2013 David Eberlein (david.eberlein@ch.sauter-bc.com) + * MIT-licensed (http://opensource.org/licenses/MIT) + */ + +/** + * @fileoverview DataHandler implementation for the fractions option. + * @author David Eberlein (david.eberlein@ch.sauter-bc.com) + */ + +/*global Dygraph:false */ +"use strict"; + +Object.defineProperty(exports, '__esModule', { + value: true +}); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +var _datahandler = require('./datahandler'); + +var _datahandler2 = _interopRequireDefault(_datahandler); + +var _default = require('./default'); + +var _default2 = _interopRequireDefault(_default); + +/** + * @extends DefaultHandler + * @constructor + */ +var DefaultFractionHandler = function DefaultFractionHandler() {}; + +DefaultFractionHandler.prototype = new _default2['default'](); + +DefaultFractionHandler.prototype.extractSeries = function (rawData, i, options) { + // TODO(danvk): pre-allocate series here. + var series = []; + var x, y, point, num, den, value; + var mult = 100.0; + var logScale = options.get('logscale'); + for (var j = 0; j < rawData.length; j++) { + x = rawData[j][0]; + point = rawData[j][i]; + if (logScale && point !== null) { + // On the log scale, points less than zero do not exist. + // This will create a gap in the chart. + if (point[0] <= 0 || point[1] <= 0) { + point = null; + } + } + // Extract to the unified data format. + if (point !== null) { + num = point[0]; + den = point[1]; + if (num !== null && !isNaN(num)) { + value = den ? num / den : 0.0; + y = mult * value; + // preserve original values in extras for further filtering + series.push([x, y, [num, den]]); + } else { + series.push([x, num, [num, den]]); + } + } else { + series.push([x, null, [null, null]]); + } + } + return series; +}; + +DefaultFractionHandler.prototype.rollingAverage = function (originalData, rollPeriod, options) { + rollPeriod = Math.min(rollPeriod, originalData.length); + var rollingData = []; + + var i; + var num = 0; + var den = 0; // numerator/denominator + var mult = 100.0; + for (i = 0; i < originalData.length; i++) { + num += originalData[i][2][0]; + den += originalData[i][2][1]; + if (i - rollPeriod >= 0) { + num -= originalData[i - rollPeriod][2][0]; + den -= originalData[i - rollPeriod][2][1]; + } + + var date = originalData[i][0]; + var value = den ? num / den : 0.0; + rollingData[i] = [date, mult * value]; + } + + return rollingData; +}; + +exports['default'] = DefaultFractionHandler; +module.exports = exports['default']; + +},{"./datahandler":6,"./default":8}],8:[function(require,module,exports){ +/** + * @license + * Copyright 2013 David Eberlein (david.eberlein@ch.sauter-bc.com) + * MIT-licensed (http://opensource.org/licenses/MIT) + */ + +/** + * @fileoverview DataHandler default implementation used for simple line charts. + * @author David Eberlein (david.eberlein@ch.sauter-bc.com) + */ + +/*global Dygraph:false */ +"use strict"; + +Object.defineProperty(exports, '__esModule', { + value: true +}); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +var _datahandler = require('./datahandler'); + +var _datahandler2 = _interopRequireDefault(_datahandler); + +/** + * @constructor + * @extends Dygraph.DataHandler + */ +var DefaultHandler = function DefaultHandler() {}; + +DefaultHandler.prototype = new _datahandler2['default'](); + +/** @inheritDoc */ +DefaultHandler.prototype.extractSeries = function (rawData, i, options) { + // TODO(danvk): pre-allocate series here. + var series = []; + var logScale = options.get('logscale'); + for (var j = 0; j < rawData.length; j++) { + var x = rawData[j][0]; + var point = rawData[j][i]; + if (logScale) { + // On the log scale, points less than zero do not exist. + // This will create a gap in the chart. + if (point <= 0) { + point = null; + } + } + series.push([x, point]); + } + return series; +}; + +/** @inheritDoc */ +DefaultHandler.prototype.rollingAverage = function (originalData, rollPeriod, options) { + rollPeriod = Math.min(rollPeriod, originalData.length); + var rollingData = []; + + var i, j, y, sum, num_ok; + // Calculate the rolling average for the first rollPeriod - 1 points + // where + // there is not enough data to roll over the full number of points + if (rollPeriod == 1) { + return originalData; + } + for (i = 0; i < originalData.length; i++) { + sum = 0; + num_ok = 0; + for (j = Math.max(0, i - rollPeriod + 1); j < i + 1; j++) { + y = originalData[j][1]; + if (y === null || isNaN(y)) continue; + num_ok++; + sum += originalData[j][1]; + } + if (num_ok) { + rollingData[i] = [originalData[i][0], sum / num_ok]; + } else { + rollingData[i] = [originalData[i][0], null]; + } + } + + return rollingData; +}; + +/** @inheritDoc */ +DefaultHandler.prototype.getExtremeYValues = function (series, dateWindow, options) { + var minY = null, + maxY = null, + y; + var firstIdx = 0, + lastIdx = series.length - 1; + + for (var j = firstIdx; j <= lastIdx; j++) { + y = series[j][1]; + if (y === null || isNaN(y)) continue; + if (maxY === null || y > maxY) { + maxY = y; + } + if (minY === null || y < minY) { + minY = y; + } + } + return [minY, maxY]; +}; + +exports['default'] = DefaultHandler; +module.exports = exports['default']; + +},{"./datahandler":6}],9:[function(require,module,exports){ +/** + * @license + * Copyright 2006 Dan Vanderkam (danvdk@gmail.com) + * MIT-licensed (http://opensource.org/licenses/MIT) + */ + +/** + * @fileoverview Based on PlotKit.CanvasRenderer, but modified to meet the + * needs of dygraphs. + * + * In particular, support for: + * - grid overlays + * - error bars + * - dygraphs attribute system + */ + +/** + * The DygraphCanvasRenderer class does the actual rendering of the chart onto + * a canvas. It's based on PlotKit.CanvasRenderer. + * @param {Object} element The canvas to attach to + * @param {Object} elementContext The 2d context of the canvas (injected so it + * can be mocked for testing.) + * @param {Layout} layout The DygraphLayout object for this graph. + * @constructor + */ + +/*global Dygraph:false */ +"use strict"; + +Object.defineProperty(exports, '__esModule', { + value: true +}); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } } + +var _dygraphUtils = require('./dygraph-utils'); + +var utils = _interopRequireWildcard(_dygraphUtils); + +var _dygraph = require('./dygraph'); + +var _dygraph2 = _interopRequireDefault(_dygraph); + +/** + * @constructor + * + * This gets called when there are "new points" to chart. This is generally the + * case when the underlying data being charted has changed. It is _not_ called + * in the common case that the user has zoomed or is panning the view. + * + * The chart canvas has already been created by the Dygraph object. The + * renderer simply gets a drawing context. + * + * @param {Dygraph} dygraph The chart to which this renderer belongs. + * @param {HTMLCanvasElement} element The <canvas> DOM element on which to draw. + * @param {CanvasRenderingContext2D} elementContext The drawing context. + * @param {DygraphLayout} layout The chart's DygraphLayout object. + * + * TODO(danvk): remove the elementContext property. + */ +var DygraphCanvasRenderer = function DygraphCanvasRenderer(dygraph, element, elementContext, layout) { + this.dygraph_ = dygraph; + + this.layout = layout; + this.element = element; + this.elementContext = elementContext; + + this.height = dygraph.height_; + this.width = dygraph.width_; + + // --- check whether everything is ok before we return + if (!utils.isCanvasSupported(this.element)) { + throw "Canvas is not supported."; + } + + // internal state + this.area = layout.getPlotArea(); + + // Set up a clipping area for the canvas (and the interaction canvas). + // This ensures that we don't overdraw. + var ctx = this.dygraph_.canvas_ctx_; + ctx.beginPath(); + ctx.rect(this.area.x, this.area.y, this.area.w, this.area.h); + ctx.clip(); + + ctx = this.dygraph_.hidden_ctx_; + ctx.beginPath(); + ctx.rect(this.area.x, this.area.y, this.area.w, this.area.h); + ctx.clip(); +}; + +/** + * Clears out all chart content and DOM elements. + * This is called immediately before render() on every frame, including + * during zooms and pans. + * @private + */ +DygraphCanvasRenderer.prototype.clear = function () { + this.elementContext.clearRect(0, 0, this.width, this.height); +}; + +/** + * This method is responsible for drawing everything on the chart, including + * lines, error bars, fills and axes. + * It is called immediately after clear() on every frame, including during pans + * and zooms. + * @private + */ +DygraphCanvasRenderer.prototype.render = function () { + // attaches point.canvas{x,y} + this._updatePoints(); + + // actually draws the chart. + this._renderLineChart(); +}; + +/** + * Returns a predicate to be used with an iterator, which will + * iterate over points appropriately, depending on whether + * connectSeparatedPoints is true. When it's false, the predicate will + * skip over points with missing yVals. + */ +DygraphCanvasRenderer._getIteratorPredicate = function (connectSeparatedPoints) { + return connectSeparatedPoints ? DygraphCanvasRenderer._predicateThatSkipsEmptyPoints : null; +}; + +DygraphCanvasRenderer._predicateThatSkipsEmptyPoints = function (array, idx) { + return array[idx].yval !== null; +}; + +/** + * Draws a line with the styles passed in and calls all the drawPointCallbacks. + * @param {Object} e The dictionary passed to the plotter function. + * @private + */ +DygraphCanvasRenderer._drawStyledLine = function (e, color, strokeWidth, strokePattern, drawPoints, drawPointCallback, pointSize) { + var g = e.dygraph; + // TODO(konigsberg): Compute attributes outside this method call. + var stepPlot = g.getBooleanOption("stepPlot", e.setName); + + if (!utils.isArrayLike(strokePattern)) { + strokePattern = null; + } + + var drawGapPoints = g.getBooleanOption('drawGapEdgePoints', e.setName); + + var points = e.points; + var setName = e.setName; + var iter = utils.createIterator(points, 0, points.length, DygraphCanvasRenderer._getIteratorPredicate(g.getBooleanOption("connectSeparatedPoints", setName))); + + var stroking = strokePattern && strokePattern.length >= 2; + + var ctx = e.drawingContext; + ctx.save(); + if (stroking) { + if (ctx.setLineDash) ctx.setLineDash(strokePattern); + } + + var pointsOnLine = DygraphCanvasRenderer._drawSeries(e, iter, strokeWidth, pointSize, drawPoints, drawGapPoints, stepPlot, color); + DygraphCanvasRenderer._drawPointsOnLine(e, pointsOnLine, drawPointCallback, color, pointSize); + + if (stroking) { + if (ctx.setLineDash) ctx.setLineDash([]); + } + + ctx.restore(); +}; + +/** + * This does the actual drawing of lines on the canvas, for just one series. + * Returns a list of [canvasx, canvasy] pairs for points for which a + * drawPointCallback should be fired. These include isolated points, or all + * points if drawPoints=true. + * @param {Object} e The dictionary passed to the plotter function. + * @private + */ +DygraphCanvasRenderer._drawSeries = function (e, iter, strokeWidth, pointSize, drawPoints, drawGapPoints, stepPlot, color) { + + var prevCanvasX = null; + var prevCanvasY = null; + var nextCanvasY = null; + var isIsolated; // true if this point is isolated (no line segments) + var point; // the point being processed in the while loop + var pointsOnLine = []; // Array of [canvasx, canvasy] pairs. + var first = true; // the first cycle through the while loop + + var ctx = e.drawingContext; + ctx.beginPath(); + ctx.strokeStyle = color; + ctx.lineWidth = strokeWidth; + + // NOTE: we break the iterator's encapsulation here for about a 25% speedup. + var arr = iter.array_; + var limit = iter.end_; + var predicate = iter.predicate_; + + for (var i = iter.start_; i < limit; i++) { + point = arr[i]; + if (predicate) { + while (i < limit && !predicate(arr, i)) { + i++; + } + if (i == limit) break; + point = arr[i]; + } + + // FIXME: The 'canvasy != canvasy' test here catches NaN values but the test + // doesn't catch Infinity values. Could change this to + // !isFinite(point.canvasy), but I assume it avoids isNaN for performance? + if (point.canvasy === null || point.canvasy != point.canvasy) { + if (stepPlot && prevCanvasX !== null) { + // Draw a horizontal line to the start of the missing data + ctx.moveTo(prevCanvasX, prevCanvasY); + ctx.lineTo(point.canvasx, prevCanvasY); + } + prevCanvasX = prevCanvasY = null; + } else { + isIsolated = false; + if (drawGapPoints || prevCanvasX === null) { + iter.nextIdx_ = i; + iter.next(); + nextCanvasY = iter.hasNext ? iter.peek.canvasy : null; + + var isNextCanvasYNullOrNaN = nextCanvasY === null || nextCanvasY != nextCanvasY; + isIsolated = prevCanvasX === null && isNextCanvasYNullOrNaN; + if (drawGapPoints) { + // Also consider a point to be "isolated" if it's adjacent to a + // null point, excluding the graph edges. + if (!first && prevCanvasX === null || iter.hasNext && isNextCanvasYNullOrNaN) { + isIsolated = true; + } + } + } + + if (prevCanvasX !== null) { + if (strokeWidth) { + if (stepPlot) { + ctx.moveTo(prevCanvasX, prevCanvasY); + ctx.lineTo(point.canvasx, prevCanvasY); + } + + ctx.lineTo(point.canvasx, point.canvasy); + } + } else { + ctx.moveTo(point.canvasx, point.canvasy); + } + if (drawPoints || isIsolated) { + pointsOnLine.push([point.canvasx, point.canvasy, point.idx]); + } + prevCanvasX = point.canvasx; + prevCanvasY = point.canvasy; + } + first = false; + } + ctx.stroke(); + return pointsOnLine; +}; + +/** + * This fires the drawPointCallback functions, which draw dots on the points by + * default. This gets used when the "drawPoints" option is set, or when there + * are isolated points. + * @param {Object} e The dictionary passed to the plotter function. + * @private + */ +DygraphCanvasRenderer._drawPointsOnLine = function (e, pointsOnLine, drawPointCallback, color, pointSize) { + var ctx = e.drawingContext; + for (var idx = 0; idx < pointsOnLine.length; idx++) { + var cb = pointsOnLine[idx]; + ctx.save(); + drawPointCallback.call(e.dygraph, e.dygraph, e.setName, ctx, cb[0], cb[1], color, pointSize, cb[2]); + ctx.restore(); + } +}; + +/** + * Attaches canvas coordinates to the points array. + * @private + */ +DygraphCanvasRenderer.prototype._updatePoints = function () { + // Update Points + // TODO(danvk): here + // + // TODO(bhs): this loop is a hot-spot for high-point-count charts. These + // transformations can be pushed into the canvas via linear transformation + // matrices. + // NOTE(danvk): this is trickier than it sounds at first. The transformation + // needs to be done before the .moveTo() and .lineTo() calls, but must be + // undone before the .stroke() call to ensure that the stroke width is + // unaffected. An alternative is to reduce the stroke width in the + // transformed coordinate space, but you can't specify different values for + // each dimension (as you can with .scale()). The speedup here is ~12%. + var sets = this.layout.points; + for (var i = sets.length; i--;) { + var points = sets[i]; + for (var j = points.length; j--;) { + var point = points[j]; + point.canvasx = this.area.w * point.x + this.area.x; + point.canvasy = this.area.h * point.y + this.area.y; + } + } +}; + +/** + * Add canvas Actually draw the lines chart, including error bars. + * + * This function can only be called if DygraphLayout's points array has been + * updated with canvas{x,y} attributes, i.e. by + * DygraphCanvasRenderer._updatePoints. + * + * @param {string=} opt_seriesName when specified, only that series will + * be drawn. (This is used for expedited redrawing with highlightSeriesOpts) + * @param {CanvasRenderingContext2D} opt_ctx when specified, the drawing + * context. However, lines are typically drawn on the object's + * elementContext. + * @private + */ +DygraphCanvasRenderer.prototype._renderLineChart = function (opt_seriesName, opt_ctx) { + var ctx = opt_ctx || this.elementContext; + var i; + + var sets = this.layout.points; + var setNames = this.layout.setNames; + var setName; + + this.colors = this.dygraph_.colorsMap_; + + // Determine which series have specialized plotters. + var plotter_attr = this.dygraph_.getOption("plotter"); + var plotters = plotter_attr; + if (!utils.isArrayLike(plotters)) { + plotters = [plotters]; + } + + var setPlotters = {}; // series name -> plotter fn. + for (i = 0; i < setNames.length; i++) { + setName = setNames[i]; + var setPlotter = this.dygraph_.getOption("plotter", setName); + if (setPlotter == plotter_attr) continue; // not specialized. + + setPlotters[setName] = setPlotter; + } + + for (i = 0; i < plotters.length; i++) { + var plotter = plotters[i]; + var is_last = i == plotters.length - 1; + + for (var j = 0; j < sets.length; j++) { + setName = setNames[j]; + if (opt_seriesName && setName != opt_seriesName) continue; + + var points = sets[j]; + + // Only throw in the specialized plotters on the last iteration. + var p = plotter; + if (setName in setPlotters) { + if (is_last) { + p = setPlotters[setName]; + } else { + // Don't use the standard plotters in this case. + continue; + } + } + + var color = this.colors[setName]; + var strokeWidth = this.dygraph_.getOption("strokeWidth", setName); + + ctx.save(); + ctx.strokeStyle = color; + ctx.lineWidth = strokeWidth; + p({ + points: points, + setName: setName, + drawingContext: ctx, + color: color, + strokeWidth: strokeWidth, + dygraph: this.dygraph_, + axis: this.dygraph_.axisPropertiesForSeries(setName), + plotArea: this.area, + seriesIndex: j, + seriesCount: sets.length, + singleSeriesName: opt_seriesName, + allSeriesPoints: sets + }); + ctx.restore(); + } + } +}; + +/** + * Standard plotters. These may be used by clients via Dygraph.Plotters. + * See comments there for more details. + */ +DygraphCanvasRenderer._Plotters = { + linePlotter: function linePlotter(e) { + DygraphCanvasRenderer._linePlotter(e); + }, + + fillPlotter: function fillPlotter(e) { + DygraphCanvasRenderer._fillPlotter(e); + }, + + errorPlotter: function errorPlotter(e) { + DygraphCanvasRenderer._errorPlotter(e); + } +}; + +/** + * Plotter which draws the central lines for a series. + * @private + */ +DygraphCanvasRenderer._linePlotter = function (e) { + var g = e.dygraph; + var setName = e.setName; + var strokeWidth = e.strokeWidth; + + // TODO(danvk): Check if there's any performance impact of just calling + // getOption() inside of _drawStyledLine. Passing in so many parameters makes + // this code a bit nasty. + var borderWidth = g.getNumericOption("strokeBorderWidth", setName); + var drawPointCallback = g.getOption("drawPointCallback", setName) || utils.Circles.DEFAULT; + var strokePattern = g.getOption("strokePattern", setName); + var drawPoints = g.getBooleanOption("drawPoints", setName); + var pointSize = g.getNumericOption("pointSize", setName); + + if (borderWidth && strokeWidth) { + DygraphCanvasRenderer._drawStyledLine(e, g.getOption("strokeBorderColor", setName), strokeWidth + 2 * borderWidth, strokePattern, drawPoints, drawPointCallback, pointSize); + } + + DygraphCanvasRenderer._drawStyledLine(e, e.color, strokeWidth, strokePattern, drawPoints, drawPointCallback, pointSize); +}; + +/** + * Draws the shaded error bars/confidence intervals for each series. + * This happens before the center lines are drawn, since the center lines + * need to be drawn on top of the error bars for all series. + * @private + */ +DygraphCanvasRenderer._errorPlotter = function (e) { + var g = e.dygraph; + var setName = e.setName; + var errorBars = g.getBooleanOption("errorBars") || g.getBooleanOption("customBars"); + if (!errorBars) return; + + var fillGraph = g.getBooleanOption("fillGraph", setName); + if (fillGraph) { + console.warn("Can't use fillGraph option with error bars"); + } + + var ctx = e.drawingContext; + var color = e.color; + var fillAlpha = g.getNumericOption('fillAlpha', setName); + var stepPlot = g.getBooleanOption("stepPlot", setName); + var points = e.points; + + var iter = utils.createIterator(points, 0, points.length, DygraphCanvasRenderer._getIteratorPredicate(g.getBooleanOption("connectSeparatedPoints", setName))); + + var newYs; + + // setup graphics context + var prevX = NaN; + var prevY = NaN; + var prevYs = [-1, -1]; + // should be same color as the lines but only 15% opaque. + var rgb = utils.toRGB_(color); + var err_color = 'rgba(' + rgb.r + ',' + rgb.g + ',' + rgb.b + ',' + fillAlpha + ')'; + ctx.fillStyle = err_color; + ctx.beginPath(); + + var isNullUndefinedOrNaN = function isNullUndefinedOrNaN(x) { + return x === null || x === undefined || isNaN(x); + }; + + while (iter.hasNext) { + var point = iter.next(); + if (!stepPlot && isNullUndefinedOrNaN(point.y) || stepPlot && !isNaN(prevY) && isNullUndefinedOrNaN(prevY)) { + prevX = NaN; + continue; + } + + newYs = [point.y_bottom, point.y_top]; + if (stepPlot) { + prevY = point.y; + } + + // The documentation specifically disallows nulls inside the point arrays, + // but in case it happens we should do something sensible. + if (isNaN(newYs[0])) newYs[0] = point.y; + if (isNaN(newYs[1])) newYs[1] = point.y; + + newYs[0] = e.plotArea.h * newYs[0] + e.plotArea.y; + newYs[1] = e.plotArea.h * newYs[1] + e.plotArea.y; + if (!isNaN(prevX)) { + if (stepPlot) { + ctx.moveTo(prevX, prevYs[0]); + ctx.lineTo(point.canvasx, prevYs[0]); + ctx.lineTo(point.canvasx, prevYs[1]); + } else { + ctx.moveTo(prevX, prevYs[0]); + ctx.lineTo(point.canvasx, newYs[0]); + ctx.lineTo(point.canvasx, newYs[1]); + } + ctx.lineTo(prevX, prevYs[1]); + ctx.closePath(); + } + prevYs = newYs; + prevX = point.canvasx; + } + ctx.fill(); +}; + +/** + * Proxy for CanvasRenderingContext2D which drops moveTo/lineTo calls which are + * superfluous. It accumulates all movements which haven't changed the x-value + * and only applies the two with the most extreme y-values. + * + * Calls to lineTo/moveTo must have non-decreasing x-values. + */ +DygraphCanvasRenderer._fastCanvasProxy = function (context) { + var pendingActions = []; // array of [type, x, y] tuples + var lastRoundedX = null; + var lastFlushedX = null; + + var LINE_TO = 1, + MOVE_TO = 2; + + var actionCount = 0; // number of moveTos and lineTos passed to context. + + // Drop superfluous motions + // Assumes all pendingActions have the same (rounded) x-value. + var compressActions = function compressActions(opt_losslessOnly) { + if (pendingActions.length <= 1) return; + + // Lossless compression: drop inconsequential moveTos. + for (var i = pendingActions.length - 1; i > 0; i--) { + var action = pendingActions[i]; + if (action[0] == MOVE_TO) { + var prevAction = pendingActions[i - 1]; + if (prevAction[1] == action[1] && prevAction[2] == action[2]) { + pendingActions.splice(i, 1); + } + } + } + + // Lossless compression: ... drop consecutive moveTos ... + for (var i = 0; i < pendingActions.length - 1;) /* incremented internally */{ + var action = pendingActions[i]; + if (action[0] == MOVE_TO && pendingActions[i + 1][0] == MOVE_TO) { + pendingActions.splice(i, 1); + } else { + i++; + } + } + + // Lossy compression: ... drop all but the extreme y-values ... + if (pendingActions.length > 2 && !opt_losslessOnly) { + // keep an initial moveTo, but drop all others. + var startIdx = 0; + if (pendingActions[0][0] == MOVE_TO) startIdx++; + var minIdx = null, + maxIdx = null; + for (var i = startIdx; i < pendingActions.length; i++) { + var action = pendingActions[i]; + if (action[0] != LINE_TO) continue; + if (minIdx === null && maxIdx === null) { + minIdx = i; + maxIdx = i; + } else { + var y = action[2]; + if (y < pendingActions[minIdx][2]) { + minIdx = i; + } else if (y > pendingActions[maxIdx][2]) { + maxIdx = i; + } + } + } + var minAction = pendingActions[minIdx], + maxAction = pendingActions[maxIdx]; + pendingActions.splice(startIdx, pendingActions.length - startIdx); + if (minIdx < maxIdx) { + pendingActions.push(minAction); + pendingActions.push(maxAction); + } else if (minIdx > maxIdx) { + pendingActions.push(maxAction); + pendingActions.push(minAction); + } else { + pendingActions.push(minAction); + } + } + }; + + var flushActions = function flushActions(opt_noLossyCompression) { + compressActions(opt_noLossyCompression); + for (var i = 0, len = pendingActions.length; i < len; i++) { + var action = pendingActions[i]; + if (action[0] == LINE_TO) { + context.lineTo(action[1], action[2]); + } else if (action[0] == MOVE_TO) { + context.moveTo(action[1], action[2]); + } + } + if (pendingActions.length) { + lastFlushedX = pendingActions[pendingActions.length - 1][1]; + } + actionCount += pendingActions.length; + pendingActions = []; + }; + + var addAction = function addAction(action, x, y) { + var rx = Math.round(x); + if (lastRoundedX === null || rx != lastRoundedX) { + // if there are large gaps on the x-axis, it's essential to keep the + // first and last point as well. + var hasGapOnLeft = lastRoundedX - lastFlushedX > 1, + hasGapOnRight = rx - lastRoundedX > 1, + hasGap = hasGapOnLeft || hasGapOnRight; + flushActions(hasGap); + lastRoundedX = rx; + } + pendingActions.push([action, x, y]); + }; + + return { + moveTo: function moveTo(x, y) { + addAction(MOVE_TO, x, y); + }, + lineTo: function lineTo(x, y) { + addAction(LINE_TO, x, y); + }, + + // for major operations like stroke/fill, we skip compression to ensure + // that there are no artifacts at the right edge. + stroke: function stroke() { + flushActions(true);context.stroke(); + }, + fill: function fill() { + flushActions(true);context.fill(); + }, + beginPath: function beginPath() { + flushActions(true);context.beginPath(); + }, + closePath: function closePath() { + flushActions(true);context.closePath(); + }, + + _count: function _count() { + return actionCount; + } + }; +}; + +/** + * Draws the shaded regions when "fillGraph" is set. Not to be confused with + * error bars. + * + * For stacked charts, it's more convenient to handle all the series + * simultaneously. So this plotter plots all the points on the first series + * it's asked to draw, then ignores all the other series. + * + * @private + */ +DygraphCanvasRenderer._fillPlotter = function (e) { + // Skip if we're drawing a single series for interactive highlight overlay. + if (e.singleSeriesName) return; + + // We'll handle all the series at once, not one-by-one. + if (e.seriesIndex !== 0) return; + + var g = e.dygraph; + var setNames = g.getLabels().slice(1); // remove x-axis + + // getLabels() includes names for invisible series, which are not included in + // allSeriesPoints. We remove those to make the two match. + // TODO(danvk): provide a simpler way to get this information. + for (var i = setNames.length; i >= 0; i--) { + if (!g.visibility()[i]) setNames.splice(i, 1); + } + + var anySeriesFilled = (function () { + for (var i = 0; i < setNames.length; i++) { + if (g.getBooleanOption("fillGraph", setNames[i])) return true; + } + return false; + })(); + + if (!anySeriesFilled) return; + + var area = e.plotArea; + var sets = e.allSeriesPoints; + var setCount = sets.length; + + var stackedGraph = g.getBooleanOption("stackedGraph"); + var colors = g.getColors(); + + // For stacked graphs, track the baseline for filling. + // + // The filled areas below graph lines are trapezoids with two + // vertical edges. The top edge is the line segment being drawn, and + // the baseline is the bottom edge. Each baseline corresponds to the + // top line segment from the previous stacked line. In the case of + // step plots, the trapezoids are rectangles. + var baseline = {}; + var currBaseline; + var prevStepPlot; // for different line drawing modes (line/step) per series + + // Helper function to trace a line back along the baseline. + var traceBackPath = function traceBackPath(ctx, baselineX, baselineY, pathBack) { + ctx.lineTo(baselineX, baselineY); + if (stackedGraph) { + for (var i = pathBack.length - 1; i >= 0; i--) { + var pt = pathBack[i]; + ctx.lineTo(pt[0], pt[1]); + } + } + }; + + // process sets in reverse order (needed for stacked graphs) + for (var setIdx = setCount - 1; setIdx >= 0; setIdx--) { + var ctx = e.drawingContext; + var setName = setNames[setIdx]; + if (!g.getBooleanOption('fillGraph', setName)) continue; + + var fillAlpha = g.getNumericOption('fillAlpha', setName); + var stepPlot = g.getBooleanOption('stepPlot', setName); + var color = colors[setIdx]; + var axis = g.axisPropertiesForSeries(setName); + var axisY = 1.0 + axis.minyval * axis.yscale; + if (axisY < 0.0) axisY = 0.0;else if (axisY > 1.0) axisY = 1.0; + axisY = area.h * axisY + area.y; + + var points = sets[setIdx]; + var iter = utils.createIterator(points, 0, points.length, DygraphCanvasRenderer._getIteratorPredicate(g.getBooleanOption("connectSeparatedPoints", setName))); + + // setup graphics context + var prevX = NaN; + var prevYs = [-1, -1]; + var newYs; + // should be same color as the lines but only 15% opaque. + var rgb = utils.toRGB_(color); + var err_color = 'rgba(' + rgb.r + ',' + rgb.g + ',' + rgb.b + ',' + fillAlpha + ')'; + ctx.fillStyle = err_color; + ctx.beginPath(); + var last_x, + is_first = true; + + // If the point density is high enough, dropping segments on their way to + // the canvas justifies the overhead of doing so. + if (points.length > 2 * g.width_ || _dygraph2['default'].FORCE_FAST_PROXY) { + ctx = DygraphCanvasRenderer._fastCanvasProxy(ctx); + } + + // For filled charts, we draw points from left to right, then back along + // the x-axis to complete a shape for filling. + // For stacked plots, this "back path" is a more complex shape. This array + // stores the [x, y] values needed to trace that shape. + var pathBack = []; + + // TODO(danvk): there are a lot of options at play in this loop. + // The logic would be much clearer if some (e.g. stackGraph and + // stepPlot) were split off into separate sub-plotters. + var point; + while (iter.hasNext) { + point = iter.next(); + if (!utils.isOK(point.y) && !stepPlot) { + traceBackPath(ctx, prevX, prevYs[1], pathBack); + pathBack = []; + prevX = NaN; + if (point.y_stacked !== null && !isNaN(point.y_stacked)) { + baseline[point.canvasx] = area.h * point.y_stacked + area.y; + } + continue; + } + if (stackedGraph) { + if (!is_first && last_x == point.xval) { + continue; + } else { + is_first = false; + last_x = point.xval; + } + + currBaseline = baseline[point.canvasx]; + var lastY; + if (currBaseline === undefined) { + lastY = axisY; + } else { + if (prevStepPlot) { + lastY = currBaseline[0]; + } else { + lastY = currBaseline; + } + } + newYs = [point.canvasy, lastY]; + + if (stepPlot) { + // Step plots must keep track of the top and bottom of + // the baseline at each point. + if (prevYs[0] === -1) { + baseline[point.canvasx] = [point.canvasy, axisY]; + } else { + baseline[point.canvasx] = [point.canvasy, prevYs[0]]; + } + } else { + baseline[point.canvasx] = point.canvasy; + } + } else { + if (isNaN(point.canvasy) && stepPlot) { + newYs = [area.y + area.h, axisY]; + } else { + newYs = [point.canvasy, axisY]; + } + } + if (!isNaN(prevX)) { + // Move to top fill point + if (stepPlot) { + ctx.lineTo(point.canvasx, prevYs[0]); + ctx.lineTo(point.canvasx, newYs[0]); + } else { + ctx.lineTo(point.canvasx, newYs[0]); + } + + // Record the baseline for the reverse path. + if (stackedGraph) { + pathBack.push([prevX, prevYs[1]]); + if (prevStepPlot && currBaseline) { + // Draw to the bottom of the baseline + pathBack.push([point.canvasx, currBaseline[1]]); + } else { + pathBack.push([point.canvasx, newYs[1]]); + } + } + } else { + ctx.moveTo(point.canvasx, newYs[1]); + ctx.lineTo(point.canvasx, newYs[0]); + } + prevYs = newYs; + prevX = point.canvasx; + } + prevStepPlot = stepPlot; + if (newYs && point) { + traceBackPath(ctx, point.canvasx, newYs[1], pathBack); + pathBack = []; + } + ctx.fill(); + } +}; + +exports['default'] = DygraphCanvasRenderer; +module.exports = exports['default']; + +},{"./dygraph":18,"./dygraph-utils":17}],10:[function(require,module,exports){ +'use strict'; + +Object.defineProperty(exports, '__esModule', { + value: true +}); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } } + +var _dygraphTickers = require('./dygraph-tickers'); + +var DygraphTickers = _interopRequireWildcard(_dygraphTickers); + +var _dygraphInteractionModel = require('./dygraph-interaction-model'); + +var _dygraphInteractionModel2 = _interopRequireDefault(_dygraphInteractionModel); + +var _dygraphCanvas = require('./dygraph-canvas'); + +var _dygraphCanvas2 = _interopRequireDefault(_dygraphCanvas); + +var _dygraphUtils = require('./dygraph-utils'); + +var utils = _interopRequireWildcard(_dygraphUtils); + +// Default attribute values. +var DEFAULT_ATTRS = { + highlightCircleSize: 3, + highlightSeriesOpts: null, + highlightSeriesBackgroundAlpha: 0.5, + highlightSeriesBackgroundColor: 'rgb(255, 255, 255)', + + labelsSeparateLines: false, + labelsShowZeroValues: true, + labelsKMB: false, + labelsKMG2: false, + showLabelsOnHighlight: true, + + digitsAfterDecimal: 2, + maxNumberWidth: 6, + sigFigs: null, + + strokeWidth: 1.0, + strokeBorderWidth: 0, + strokeBorderColor: "white", + + axisTickSize: 3, + axisLabelFontSize: 14, + rightGap: 5, + + showRoller: false, + xValueParser: undefined, + + delimiter: ',', + + sigma: 2.0, + errorBars: false, + fractions: false, + wilsonInterval: true, // only relevant if fractions is true + customBars: false, + fillGraph: false, + fillAlpha: 0.15, + connectSeparatedPoints: false, + + stackedGraph: false, + stackedGraphNaNFill: 'all', + hideOverlayOnMouseOut: true, + + legend: 'onmouseover', + stepPlot: false, + xRangePad: 0, + yRangePad: null, + drawAxesAtZero: false, + + // Sizes of the various chart labels. + titleHeight: 28, + xLabelHeight: 18, + yLabelWidth: 18, + + axisLineColor: "black", + axisLineWidth: 0.3, + gridLineWidth: 0.3, + axisLabelWidth: 50, + gridLineColor: "rgb(128,128,128)", + + interactionModel: _dygraphInteractionModel2['default'].defaultModel, + animatedZooms: false, // (for now) + + // Range selector options + showRangeSelector: false, + rangeSelectorHeight: 40, + rangeSelectorPlotStrokeColor: "#808FAB", + rangeSelectorPlotFillGradientColor: "white", + rangeSelectorPlotFillColor: "#A7B1C4", + rangeSelectorBackgroundStrokeColor: "gray", + rangeSelectorBackgroundLineWidth: 1, + rangeSelectorPlotLineWidth: 1.5, + rangeSelectorForegroundStrokeColor: "black", + rangeSelectorForegroundLineWidth: 1, + rangeSelectorAlpha: 0.6, + showInRangeSelector: null, + + // The ordering here ensures that central lines always appear above any + // fill bars/error bars. + plotter: [_dygraphCanvas2['default']._fillPlotter, _dygraphCanvas2['default']._errorPlotter, _dygraphCanvas2['default']._linePlotter], + + plugins: [], + + // per-axis options + axes: { + x: { + pixelsPerLabel: 70, + axisLabelWidth: 60, + axisLabelFormatter: utils.dateAxisLabelFormatter, + valueFormatter: utils.dateValueFormatter, + drawGrid: true, + drawAxis: true, + independentTicks: true, + ticker: DygraphTickers.dateTicker + }, + y: { + axisLabelWidth: 50, + pixelsPerLabel: 30, + valueFormatter: utils.numberValueFormatter, + axisLabelFormatter: utils.numberAxisLabelFormatter, + drawGrid: true, + drawAxis: true, + independentTicks: true, + ticker: DygraphTickers.numericTicks + }, + y2: { + axisLabelWidth: 50, + pixelsPerLabel: 30, + valueFormatter: utils.numberValueFormatter, + axisLabelFormatter: utils.numberAxisLabelFormatter, + drawAxis: true, // only applies when there are two axes of data. + drawGrid: false, + independentTicks: false, + ticker: DygraphTickers.numericTicks + } + } +}; + +exports['default'] = DEFAULT_ATTRS; +module.exports = exports['default']; + +},{"./dygraph-canvas":9,"./dygraph-interaction-model":12,"./dygraph-tickers":16,"./dygraph-utils":17}],11:[function(require,module,exports){ +/** + * @license + * Copyright 2011 Dan Vanderkam (danvdk@gmail.com) + * MIT-licensed (http://opensource.org/licenses/MIT) + */ + +/** + * @fileoverview A wrapper around the Dygraph class which implements the + * interface for a GViz (aka Google Visualization API) visualization. + * It is designed to be a drop-in replacement for Google's AnnotatedTimeline, + * so the documentation at + * http://code.google.com/apis/chart/interactive/docs/gallery/annotatedtimeline.html + * translates over directly. + * + * For a full demo, see: + * - http://dygraphs.com/tests/gviz.html + * - http://dygraphs.com/tests/annotation-gviz.html + */ + +/*global Dygraph:false */ +"use strict"; + +Object.defineProperty(exports, '__esModule', { + value: true +}); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +var _dygraph = require('./dygraph'); + +var _dygraph2 = _interopRequireDefault(_dygraph); + +/** + * A wrapper around Dygraph that implements the gviz API. + * @param {!HTMLDivElement} container The DOM object the visualization should + * live in. + * @constructor + */ +var GVizChart = function GVizChart(container) { + this.container = container; +}; + +/** + * @param {GVizDataTable} data + * @param {Object.<*>} options + */ +GVizChart.prototype.draw = function (data, options) { + // Clear out any existing dygraph. + // TODO(danvk): would it make more sense to simply redraw using the current + // date_graph object? + this.container.innerHTML = ''; + if (typeof this.date_graph != 'undefined') { + this.date_graph.destroy(); + } + + this.date_graph = new _dygraph2['default'](this.container, data, options); +}; + +/** + * Google charts compatible setSelection + * Only row selection is supported, all points in the row will be highlighted + * @param {Array.<{row:number}>} selection_array array of the selected cells + * @public + */ +GVizChart.prototype.setSelection = function (selection_array) { + var row = false; + if (selection_array.length) { + row = selection_array[0].row; + } + this.date_graph.setSelection(row); +}; + +/** + * Google charts compatible getSelection implementation + * @return {Array.<{row:number,column:number}>} array of the selected cells + * @public + */ +GVizChart.prototype.getSelection = function () { + var selection = []; + + var row = this.date_graph.getSelection(); + + if (row < 0) return selection; + + var points = this.date_graph.layout_.points; + for (var setIdx = 0; setIdx < points.length; ++setIdx) { + selection.push({ row: row, column: setIdx + 1 }); + } + + return selection; +}; + +exports['default'] = GVizChart; +module.exports = exports['default']; + +},{"./dygraph":18}],12:[function(require,module,exports){ +/** + * @license + * Copyright 2011 Robert Konigsberg (konigsberg@google.com) + * MIT-licensed (http://opensource.org/licenses/MIT) + */ + +/** + * @fileoverview The default interaction model for Dygraphs. This is kept out + * of dygraph.js for better navigability. + * @author Robert Konigsberg (konigsberg@google.com) + */ + +/*global Dygraph:false */ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj["default"] = obj; return newObj; } } + +var _dygraphUtils = require('./dygraph-utils'); + +var utils = _interopRequireWildcard(_dygraphUtils); + +/** + * You can drag this many pixels past the edge of the chart and still have it + * be considered a zoom. This makes it easier to zoom to the exact edge of the + * chart, a fairly common operation. + */ +var DRAG_EDGE_MARGIN = 100; + +/** + * A collection of functions to facilitate build custom interaction models. + * @class + */ +var DygraphInteraction = {}; + +/** + * Checks whether the beginning & ending of an event were close enough that it + * should be considered a click. If it should, dispatch appropriate events. + * Returns true if the event was treated as a click. + * + * @param {Event} event + * @param {Dygraph} g + * @param {Object} context + */ +DygraphInteraction.maybeTreatMouseOpAsClick = function (event, g, context) { + context.dragEndX = utils.dragGetX_(event, context); + context.dragEndY = utils.dragGetY_(event, context); + var regionWidth = Math.abs(context.dragEndX - context.dragStartX); + var regionHeight = Math.abs(context.dragEndY - context.dragStartY); + + if (regionWidth < 2 && regionHeight < 2 && g.lastx_ !== undefined && g.lastx_ != -1) { + DygraphInteraction.treatMouseOpAsClick(g, event, context); + } + + context.regionWidth = regionWidth; + context.regionHeight = regionHeight; +}; + +/** + * Called in response to an interaction model operation that + * should start the default panning behavior. + * + * It's used in the default callback for "mousedown" operations. + * Custom interaction model builders can use it to provide the default + * panning behavior. + * + * @param {Event} event the event object which led to the startPan call. + * @param {Dygraph} g The dygraph on which to act. + * @param {Object} context The dragging context object (with + * dragStartX/dragStartY/etc. properties). This function modifies the + * context. + */ +DygraphInteraction.startPan = function (event, g, context) { + var i, axis; + context.isPanning = true; + var xRange = g.xAxisRange(); + + if (g.getOptionForAxis("logscale", "x")) { + context.initialLeftmostDate = utils.log10(xRange[0]); + context.dateRange = utils.log10(xRange[1]) - utils.log10(xRange[0]); + } else { + context.initialLeftmostDate = xRange[0]; + context.dateRange = xRange[1] - xRange[0]; + } + context.xUnitsPerPixel = context.dateRange / (g.plotter_.area.w - 1); + + if (g.getNumericOption("panEdgeFraction")) { + var maxXPixelsToDraw = g.width_ * g.getNumericOption("panEdgeFraction"); + var xExtremes = g.xAxisExtremes(); // I REALLY WANT TO CALL THIS xTremes! + + var boundedLeftX = g.toDomXCoord(xExtremes[0]) - maxXPixelsToDraw; + var boundedRightX = g.toDomXCoord(xExtremes[1]) + maxXPixelsToDraw; + + var boundedLeftDate = g.toDataXCoord(boundedLeftX); + var boundedRightDate = g.toDataXCoord(boundedRightX); + context.boundedDates = [boundedLeftDate, boundedRightDate]; + + var boundedValues = []; + var maxYPixelsToDraw = g.height_ * g.getNumericOption("panEdgeFraction"); + + for (i = 0; i < g.axes_.length; i++) { + axis = g.axes_[i]; + var yExtremes = axis.extremeRange; + + var boundedTopY = g.toDomYCoord(yExtremes[0], i) + maxYPixelsToDraw; + var boundedBottomY = g.toDomYCoord(yExtremes[1], i) - maxYPixelsToDraw; + + var boundedTopValue = g.toDataYCoord(boundedTopY, i); + var boundedBottomValue = g.toDataYCoord(boundedBottomY, i); + + boundedValues[i] = [boundedTopValue, boundedBottomValue]; + } + context.boundedValues = boundedValues; + } + + // Record the range of each y-axis at the start of the drag. + // If any axis has a valueRange, then we want a 2D pan. + // We can't store data directly in g.axes_, because it does not belong to us + // and could change out from under us during a pan (say if there's a data + // update). + context.is2DPan = false; + context.axes = []; + for (i = 0; i < g.axes_.length; i++) { + axis = g.axes_[i]; + var axis_data = {}; + var yRange = g.yAxisRange(i); + // TODO(konigsberg): These values should be in |context|. + // In log scale, initialTopValue, dragValueRange and unitsPerPixel are log scale. + var logscale = g.attributes_.getForAxis("logscale", i); + if (logscale) { + axis_data.initialTopValue = utils.log10(yRange[1]); + axis_data.dragValueRange = utils.log10(yRange[1]) - utils.log10(yRange[0]); + } else { + axis_data.initialTopValue = yRange[1]; + axis_data.dragValueRange = yRange[1] - yRange[0]; + } + axis_data.unitsPerPixel = axis_data.dragValueRange / (g.plotter_.area.h - 1); + context.axes.push(axis_data); + + // While calculating axes, set 2dpan. + if (axis.valueRange) context.is2DPan = true; + } +}; + +/** + * Called in response to an interaction model operation that + * responds to an event that pans the view. + * + * It's used in the default callback for "mousemove" operations. + * Custom interaction model builders can use it to provide the default + * panning behavior. + * + * @param {Event} event the event object which led to the movePan call. + * @param {Dygraph} g The dygraph on which to act. + * @param {Object} context The dragging context object (with + * dragStartX/dragStartY/etc. properties). This function modifies the + * context. + */ +DygraphInteraction.movePan = function (event, g, context) { + context.dragEndX = utils.dragGetX_(event, context); + context.dragEndY = utils.dragGetY_(event, context); + + var minDate = context.initialLeftmostDate - (context.dragEndX - context.dragStartX) * context.xUnitsPerPixel; + if (context.boundedDates) { + minDate = Math.max(minDate, context.boundedDates[0]); + } + var maxDate = minDate + context.dateRange; + if (context.boundedDates) { + if (maxDate > context.boundedDates[1]) { + // Adjust minDate, and recompute maxDate. + minDate = minDate - (maxDate - context.boundedDates[1]); + maxDate = minDate + context.dateRange; + } + } + + if (g.getOptionForAxis("logscale", "x")) { + g.dateWindow_ = [Math.pow(utils.LOG_SCALE, minDate), Math.pow(utils.LOG_SCALE, maxDate)]; + } else { + g.dateWindow_ = [minDate, maxDate]; + } + + // y-axis scaling is automatic unless this is a full 2D pan. + if (context.is2DPan) { + + var pixelsDragged = context.dragEndY - context.dragStartY; + + // Adjust each axis appropriately. + for (var i = 0; i < g.axes_.length; i++) { + var axis = g.axes_[i]; + var axis_data = context.axes[i]; + var unitsDragged = pixelsDragged * axis_data.unitsPerPixel; + + var boundedValue = context.boundedValues ? context.boundedValues[i] : null; + + // In log scale, maxValue and minValue are the logs of those values. + var maxValue = axis_data.initialTopValue + unitsDragged; + if (boundedValue) { + maxValue = Math.min(maxValue, boundedValue[1]); + } + var minValue = maxValue - axis_data.dragValueRange; + if (boundedValue) { + if (minValue < boundedValue[0]) { + // Adjust maxValue, and recompute minValue. + maxValue = maxValue - (minValue - boundedValue[0]); + minValue = maxValue - axis_data.dragValueRange; + } + } + if (g.attributes_.getForAxis("logscale", i)) { + axis.valueRange = [Math.pow(utils.LOG_SCALE, minValue), Math.pow(utils.LOG_SCALE, maxValue)]; + } else { + axis.valueRange = [minValue, maxValue]; + } + } + } + + g.drawGraph_(false); +}; + +/** + * Called in response to an interaction model operation that + * responds to an event that ends panning. + * + * It's used in the default callback for "mouseup" operations. + * Custom interaction model builders can use it to provide the default + * panning behavior. + * + * @param {Event} event the event object which led to the endPan call. + * @param {Dygraph} g The dygraph on which to act. + * @param {Object} context The dragging context object (with + * dragStartX/dragStartY/etc. properties). This function modifies the + * context. + */ +DygraphInteraction.endPan = DygraphInteraction.maybeTreatMouseOpAsClick; + +/** + * Called in response to an interaction model operation that + * responds to an event that starts zooming. + * + * It's used in the default callback for "mousedown" operations. + * Custom interaction model builders can use it to provide the default + * zooming behavior. + * + * @param {Event} event the event object which led to the startZoom call. + * @param {Dygraph} g The dygraph on which to act. + * @param {Object} context The dragging context object (with + * dragStartX/dragStartY/etc. properties). This function modifies the + * context. + */ +DygraphInteraction.startZoom = function (event, g, context) { + context.isZooming = true; + context.zoomMoved = false; +}; + +/** + * Called in response to an interaction model operation that + * responds to an event that defines zoom boundaries. + * + * It's used in the default callback for "mousemove" operations. + * Custom interaction model builders can use it to provide the default + * zooming behavior. + * + * @param {Event} event the event object which led to the moveZoom call. + * @param {Dygraph} g The dygraph on which to act. + * @param {Object} context The dragging context object (with + * dragStartX/dragStartY/etc. properties). This function modifies the + * context. + */ +DygraphInteraction.moveZoom = function (event, g, context) { + context.zoomMoved = true; + context.dragEndX = utils.dragGetX_(event, context); + context.dragEndY = utils.dragGetY_(event, context); + + var xDelta = Math.abs(context.dragStartX - context.dragEndX); + var yDelta = Math.abs(context.dragStartY - context.dragEndY); + + // drag direction threshold for y axis is twice as large as x axis + context.dragDirection = xDelta < yDelta / 2 ? utils.VERTICAL : utils.HORIZONTAL; + + g.drawZoomRect_(context.dragDirection, context.dragStartX, context.dragEndX, context.dragStartY, context.dragEndY, context.prevDragDirection, context.prevEndX, context.prevEndY); + + context.prevEndX = context.dragEndX; + context.prevEndY = context.dragEndY; + context.prevDragDirection = context.dragDirection; +}; + +/** + * TODO(danvk): move this logic into dygraph.js + * @param {Dygraph} g + * @param {Event} event + * @param {Object} context + */ +DygraphInteraction.treatMouseOpAsClick = function (g, event, context) { + var clickCallback = g.getFunctionOption('clickCallback'); + var pointClickCallback = g.getFunctionOption('pointClickCallback'); + + var selectedPoint = null; + + // Find out if the click occurs on a point. + var closestIdx = -1; + var closestDistance = Number.MAX_VALUE; + + // check if the click was on a particular point. + for (var i = 0; i < g.selPoints_.length; i++) { + var p = g.selPoints_[i]; + var distance = Math.pow(p.canvasx - context.dragEndX, 2) + Math.pow(p.canvasy - context.dragEndY, 2); + if (!isNaN(distance) && (closestIdx == -1 || distance < closestDistance)) { + closestDistance = distance; + closestIdx = i; + } + } + + // Allow any click within two pixels of the dot. + var radius = g.getNumericOption('highlightCircleSize') + 2; + if (closestDistance <= radius * radius) { + selectedPoint = g.selPoints_[closestIdx]; + } + + if (selectedPoint) { + var e = { + cancelable: true, + point: selectedPoint, + canvasx: context.dragEndX, + canvasy: context.dragEndY + }; + var defaultPrevented = g.cascadeEvents_('pointClick', e); + if (defaultPrevented) { + // Note: this also prevents click / clickCallback from firing. + return; + } + if (pointClickCallback) { + pointClickCallback.call(g, event, selectedPoint); + } + } + + var e = { + cancelable: true, + xval: g.lastx_, // closest point by x value + pts: g.selPoints_, + canvasx: context.dragEndX, + canvasy: context.dragEndY + }; + if (!g.cascadeEvents_('click', e)) { + if (clickCallback) { + // TODO(danvk): pass along more info about the points, e.g. 'x' + clickCallback.call(g, event, g.lastx_, g.selPoints_); + } + } +}; + +/** + * Called in response to an interaction model operation that + * responds to an event that performs a zoom based on previously defined + * bounds.. + * + * It's used in the default callback for "mouseup" operations. + * Custom interaction model builders can use it to provide the default + * zooming behavior. + * + * @param {Event} event the event object which led to the endZoom call. + * @param {Dygraph} g The dygraph on which to end the zoom. + * @param {Object} context The dragging context object (with + * dragStartX/dragStartY/etc. properties). This function modifies the + * context. + */ +DygraphInteraction.endZoom = function (event, g, context) { + g.clearZoomRect_(); + context.isZooming = false; + DygraphInteraction.maybeTreatMouseOpAsClick(event, g, context); + + // The zoom rectangle is visibly clipped to the plot area, so its behavior + // should be as well. + // See http://code.google.com/p/dygraphs/issues/detail?id=280 + var plotArea = g.getArea(); + if (context.regionWidth >= 10 && context.dragDirection == utils.HORIZONTAL) { + var left = Math.min(context.dragStartX, context.dragEndX), + right = Math.max(context.dragStartX, context.dragEndX); + left = Math.max(left, plotArea.x); + right = Math.min(right, plotArea.x + plotArea.w); + if (left < right) { + g.doZoomX_(left, right); + } + context.cancelNextDblclick = true; + } else if (context.regionHeight >= 10 && context.dragDirection == utils.VERTICAL) { + var top = Math.min(context.dragStartY, context.dragEndY), + bottom = Math.max(context.dragStartY, context.dragEndY); + top = Math.max(top, plotArea.y); + bottom = Math.min(bottom, plotArea.y + plotArea.h); + if (top < bottom) { + g.doZoomY_(top, bottom); + } + context.cancelNextDblclick = true; + } + context.dragStartX = null; + context.dragStartY = null; +}; + +/** + * @private + */ +DygraphInteraction.startTouch = function (event, g, context) { + event.preventDefault(); // touch browsers are all nice. + if (event.touches.length > 1) { + // If the user ever puts two fingers down, it's not a double tap. + context.startTimeForDoubleTapMs = null; + } + + var touches = []; + for (var i = 0; i < event.touches.length; i++) { + var t = event.touches[i]; + // we dispense with 'dragGetX_' because all touchBrowsers support pageX + touches.push({ + pageX: t.pageX, + pageY: t.pageY, + dataX: g.toDataXCoord(t.pageX), + dataY: g.toDataYCoord(t.pageY) + // identifier: t.identifier + }); + } + context.initialTouches = touches; + + if (touches.length == 1) { + // This is just a swipe. + context.initialPinchCenter = touches[0]; + context.touchDirections = { x: true, y: true }; + } else if (touches.length >= 2) { + // It's become a pinch! + // In case there are 3+ touches, we ignore all but the "first" two. + + // only screen coordinates can be averaged (data coords could be log scale). + context.initialPinchCenter = { + pageX: 0.5 * (touches[0].pageX + touches[1].pageX), + pageY: 0.5 * (touches[0].pageY + touches[1].pageY), + + // TODO(danvk): remove + dataX: 0.5 * (touches[0].dataX + touches[1].dataX), + dataY: 0.5 * (touches[0].dataY + touches[1].dataY) + }; + + // Make pinches in a 45-degree swath around either axis 1-dimensional zooms. + var initialAngle = 180 / Math.PI * Math.atan2(context.initialPinchCenter.pageY - touches[0].pageY, touches[0].pageX - context.initialPinchCenter.pageX); + + // use symmetry to get it into the first quadrant. + initialAngle = Math.abs(initialAngle); + if (initialAngle > 90) initialAngle = 90 - initialAngle; + + context.touchDirections = { + x: initialAngle < 90 - 45 / 2, + y: initialAngle > 45 / 2 + }; + } + + // save the full x & y ranges. + context.initialRange = { + x: g.xAxisRange(), + y: g.yAxisRange() + }; +}; + +/** + * @private + */ +DygraphInteraction.moveTouch = function (event, g, context) { + // If the tap moves, then it's definitely not part of a double-tap. + context.startTimeForDoubleTapMs = null; + + var i, + touches = []; + for (i = 0; i < event.touches.length; i++) { + var t = event.touches[i]; + touches.push({ + pageX: t.pageX, + pageY: t.pageY + }); + } + var initialTouches = context.initialTouches; + + var c_now; + + // old and new centers. + var c_init = context.initialPinchCenter; + if (touches.length == 1) { + c_now = touches[0]; + } else { + c_now = { + pageX: 0.5 * (touches[0].pageX + touches[1].pageX), + pageY: 0.5 * (touches[0].pageY + touches[1].pageY) + }; + } + + // this is the "swipe" component + // we toss it out for now, but could use it in the future. + var swipe = { + pageX: c_now.pageX - c_init.pageX, + pageY: c_now.pageY - c_init.pageY + }; + var dataWidth = context.initialRange.x[1] - context.initialRange.x[0]; + var dataHeight = context.initialRange.y[0] - context.initialRange.y[1]; + swipe.dataX = swipe.pageX / g.plotter_.area.w * dataWidth; + swipe.dataY = swipe.pageY / g.plotter_.area.h * dataHeight; + var xScale, yScale; + + // The residual bits are usually split into scale & rotate bits, but we split + // them into x-scale and y-scale bits. + if (touches.length == 1) { + xScale = 1.0; + yScale = 1.0; + } else if (touches.length >= 2) { + var initHalfWidth = initialTouches[1].pageX - c_init.pageX; + xScale = (touches[1].pageX - c_now.pageX) / initHalfWidth; + + var initHalfHeight = initialTouches[1].pageY - c_init.pageY; + yScale = (touches[1].pageY - c_now.pageY) / initHalfHeight; + } + + // Clip scaling to [1/8, 8] to prevent too much blowup. + xScale = Math.min(8, Math.max(0.125, xScale)); + yScale = Math.min(8, Math.max(0.125, yScale)); + + var didZoom = false; + if (context.touchDirections.x) { + g.dateWindow_ = [c_init.dataX - swipe.dataX + (context.initialRange.x[0] - c_init.dataX) / xScale, c_init.dataX - swipe.dataX + (context.initialRange.x[1] - c_init.dataX) / xScale]; + didZoom = true; + } + + if (context.touchDirections.y) { + for (i = 0; i < 1 /*g.axes_.length*/; i++) { + var axis = g.axes_[i]; + var logscale = g.attributes_.getForAxis("logscale", i); + if (logscale) { + // TODO(danvk): implement + } else { + axis.valueRange = [c_init.dataY - swipe.dataY + (context.initialRange.y[0] - c_init.dataY) / yScale, c_init.dataY - swipe.dataY + (context.initialRange.y[1] - c_init.dataY) / yScale]; + didZoom = true; + } + } + } + + g.drawGraph_(false); + + // We only call zoomCallback on zooms, not pans, to mirror desktop behavior. + if (didZoom && touches.length > 1 && g.getFunctionOption('zoomCallback')) { + var viewWindow = g.xAxisRange(); + g.getFunctionOption("zoomCallback").call(g, viewWindow[0], viewWindow[1], g.yAxisRanges()); + } +}; + +/** + * @private + */ +DygraphInteraction.endTouch = function (event, g, context) { + if (event.touches.length !== 0) { + // this is effectively a "reset" + DygraphInteraction.startTouch(event, g, context); + } else if (event.changedTouches.length == 1) { + // Could be part of a "double tap" + // The heuristic here is that it's a double-tap if the two touchend events + // occur within 500ms and within a 50x50 pixel box. + var now = new Date().getTime(); + var t = event.changedTouches[0]; + if (context.startTimeForDoubleTapMs && now - context.startTimeForDoubleTapMs < 500 && context.doubleTapX && Math.abs(context.doubleTapX - t.screenX) < 50 && context.doubleTapY && Math.abs(context.doubleTapY - t.screenY) < 50) { + g.resetZoom(); + } else { + context.startTimeForDoubleTapMs = now; + context.doubleTapX = t.screenX; + context.doubleTapY = t.screenY; + } + } +}; + +// Determine the distance from x to [left, right]. +var distanceFromInterval = function distanceFromInterval(x, left, right) { + if (x < left) { + return left - x; + } else if (x > right) { + return x - right; + } else { + return 0; + } +}; + +/** + * Returns the number of pixels by which the event happens from the nearest + * edge of the chart. For events in the interior of the chart, this returns zero. + */ +var distanceFromChart = function distanceFromChart(event, g) { + var chartPos = utils.findPos(g.canvas_); + var box = { + left: chartPos.x, + right: chartPos.x + g.canvas_.offsetWidth, + top: chartPos.y, + bottom: chartPos.y + g.canvas_.offsetHeight + }; + + var pt = { + x: utils.pageX(event), + y: utils.pageY(event) + }; + + var dx = distanceFromInterval(pt.x, box.left, box.right), + dy = distanceFromInterval(pt.y, box.top, box.bottom); + return Math.max(dx, dy); +}; + +/** + * Default interation model for dygraphs. You can refer to specific elements of + * this when constructing your own interaction model, e.g.: + * g.updateOptions( { + * interactionModel: { + * mousedown: DygraphInteraction.defaultInteractionModel.mousedown + * } + * } ); + */ +DygraphInteraction.defaultModel = { + // Track the beginning of drag events + mousedown: function mousedown(event, g, context) { + // Right-click should not initiate a zoom. + if (event.button && event.button == 2) return; + + context.initializeMouseDown(event, g, context); + + if (event.altKey || event.shiftKey) { + DygraphInteraction.startPan(event, g, context); + } else { + DygraphInteraction.startZoom(event, g, context); + } + + // Note: we register mousemove/mouseup on document to allow some leeway for + // events to move outside of the chart. Interaction model events get + // registered on the canvas, which is too small to allow this. + var mousemove = function mousemove(event) { + if (context.isZooming) { + // When the mouse moves >200px from the chart edge, cancel the zoom. + var d = distanceFromChart(event, g); + if (d < DRAG_EDGE_MARGIN) { + DygraphInteraction.moveZoom(event, g, context); + } else { + if (context.dragEndX !== null) { + context.dragEndX = null; + context.dragEndY = null; + g.clearZoomRect_(); + } + } + } else if (context.isPanning) { + DygraphInteraction.movePan(event, g, context); + } + }; + var mouseup = function mouseup(event) { + if (context.isZooming) { + if (context.dragEndX !== null) { + DygraphInteraction.endZoom(event, g, context); + } else { + DygraphInteraction.maybeTreatMouseOpAsClick(event, g, context); + } + } else if (context.isPanning) { + DygraphInteraction.endPan(event, g, context); + } + + utils.removeEvent(document, 'mousemove', mousemove); + utils.removeEvent(document, 'mouseup', mouseup); + context.destroy(); + }; + + g.addAndTrackEvent(document, 'mousemove', mousemove); + g.addAndTrackEvent(document, 'mouseup', mouseup); + }, + willDestroyContextMyself: true, + + touchstart: function touchstart(event, g, context) { + DygraphInteraction.startTouch(event, g, context); + }, + touchmove: function touchmove(event, g, context) { + DygraphInteraction.moveTouch(event, g, context); + }, + touchend: function touchend(event, g, context) { + DygraphInteraction.endTouch(event, g, context); + }, + + // Disable zooming out if panning. + dblclick: function dblclick(event, g, context) { + if (context.cancelNextDblclick) { + context.cancelNextDblclick = false; + return; + } + + // Give plugins a chance to grab this event. + var e = { + canvasx: context.dragEndX, + canvasy: context.dragEndY, + cancelable: true + }; + if (g.cascadeEvents_('dblclick', e)) { + return; + } + + if (event.altKey || event.shiftKey) { + return; + } + g.resetZoom(); + } +}; + +/* +Dygraph.DEFAULT_ATTRS.interactionModel = DygraphInteraction.defaultModel; + +// old ways of accessing these methods/properties +Dygraph.defaultInteractionModel = DygraphInteraction.defaultModel; +Dygraph.endZoom = DygraphInteraction.endZoom; +Dygraph.moveZoom = DygraphInteraction.moveZoom; +Dygraph.startZoom = DygraphInteraction.startZoom; +Dygraph.endPan = DygraphInteraction.endPan; +Dygraph.movePan = DygraphInteraction.movePan; +Dygraph.startPan = DygraphInteraction.startPan; +*/ + +DygraphInteraction.nonInteractiveModel_ = { + mousedown: function mousedown(event, g, context) { + context.initializeMouseDown(event, g, context); + }, + mouseup: DygraphInteraction.maybeTreatMouseOpAsClick +}; + +// Default interaction model when using the range selector. +DygraphInteraction.dragIsPanInteractionModel = { + mousedown: function mousedown(event, g, context) { + context.initializeMouseDown(event, g, context); + DygraphInteraction.startPan(event, g, context); + }, + mousemove: function mousemove(event, g, context) { + if (context.isPanning) { + DygraphInteraction.movePan(event, g, context); + } + }, + mouseup: function mouseup(event, g, context) { + if (context.isPanning) { + DygraphInteraction.endPan(event, g, context); + } + } +}; + +exports["default"] = DygraphInteraction; +module.exports = exports["default"]; + +},{"./dygraph-utils":17}],13:[function(require,module,exports){ +/** + * @license + * Copyright 2011 Dan Vanderkam (danvdk@gmail.com) + * MIT-licensed (http://opensource.org/licenses/MIT) + */ + +/** + * @fileoverview Based on PlotKitLayout, but modified to meet the needs of + * dygraphs. + */ + +/*global Dygraph:false */ +"use strict"; + +Object.defineProperty(exports, '__esModule', { + value: true +}); + +function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } } + +var _dygraphUtils = require('./dygraph-utils'); + +var utils = _interopRequireWildcard(_dygraphUtils); + +/** + * Creates a new DygraphLayout object. + * + * This class contains all the data to be charted. + * It uses data coordinates, but also records the chart range (in data + * coordinates) and hence is able to calculate percentage positions ('In this + * view, Point A lies 25% down the x-axis.') + * + * Two things that it does not do are: + * 1. Record pixel coordinates for anything. + * 2. (oddly) determine anything about the layout of chart elements. + * + * The naming is a vestige of Dygraph's original PlotKit roots. + * + * @constructor + */ +var DygraphLayout = function DygraphLayout(dygraph) { + this.dygraph_ = dygraph; + /** + * Array of points for each series. + * + * [series index][row index in series] = |Point| structure, + * where series index refers to visible series only, and the + * point index is for the reduced set of points for the current + * zoom region (including one point just outside the window). + * All points in the same row index share the same X value. + * + * @type {Array.>} + */ + this.points = []; + this.setNames = []; + this.annotations = []; + this.yAxes_ = null; + + // TODO(danvk): it's odd that xTicks_ and yTicks_ are inputs, but xticks and + // yticks are outputs. Clean this up. + this.xTicks_ = null; + this.yTicks_ = null; +}; + +/** + * Add points for a single series. + * + * @param {string} setname Name of the series. + * @param {Array.} set_xy Points for the series. + */ +DygraphLayout.prototype.addDataset = function (setname, set_xy) { + this.points.push(set_xy); + this.setNames.push(setname); +}; + +/** + * Returns the box which the chart should be drawn in. This is the canvas's + * box, less space needed for the axis and chart labels. + * + * @return {{x: number, y: number, w: number, h: number}} + */ +DygraphLayout.prototype.getPlotArea = function () { + return this.area_; +}; + +// Compute the box which the chart should be drawn in. This is the canvas's +// box, less space needed for axis, chart labels, and other plug-ins. +// NOTE: This should only be called by Dygraph.predraw_(). +DygraphLayout.prototype.computePlotArea = function () { + var area = { + // TODO(danvk): per-axis setting. + x: 0, + y: 0 + }; + + area.w = this.dygraph_.width_ - area.x - this.dygraph_.getOption('rightGap'); + area.h = this.dygraph_.height_; + + // Let plugins reserve space. + var e = { + chart_div: this.dygraph_.graphDiv, + reserveSpaceLeft: function reserveSpaceLeft(px) { + var r = { + x: area.x, + y: area.y, + w: px, + h: area.h + }; + area.x += px; + area.w -= px; + return r; + }, + reserveSpaceRight: function reserveSpaceRight(px) { + var r = { + x: area.x + area.w - px, + y: area.y, + w: px, + h: area.h + }; + area.w -= px; + return r; + }, + reserveSpaceTop: function reserveSpaceTop(px) { + var r = { + x: area.x, + y: area.y, + w: area.w, + h: px + }; + area.y += px; + area.h -= px; + return r; + }, + reserveSpaceBottom: function reserveSpaceBottom(px) { + var r = { + x: area.x, + y: area.y + area.h - px, + w: area.w, + h: px + }; + area.h -= px; + return r; + }, + chartRect: function chartRect() { + return { x: area.x, y: area.y, w: area.w, h: area.h }; + } + }; + this.dygraph_.cascadeEvents_('layout', e); + + this.area_ = area; +}; + +DygraphLayout.prototype.setAnnotations = function (ann) { + // The Dygraph object's annotations aren't parsed. We parse them here and + // save a copy. If there is no parser, then the user must be using raw format. + this.annotations = []; + var parse = this.dygraph_.getOption('xValueParser') || function (x) { + return x; + }; + for (var i = 0; i < ann.length; i++) { + var a = {}; + if (!ann[i].xval && ann[i].x === undefined) { + console.error("Annotations must have an 'x' property"); + return; + } + if (ann[i].icon && !(ann[i].hasOwnProperty('width') && ann[i].hasOwnProperty('height'))) { + console.error("Must set width and height when setting " + "annotation.icon property"); + return; + } + utils.update(a, ann[i]); + if (!a.xval) a.xval = parse(a.x); + this.annotations.push(a); + } +}; + +DygraphLayout.prototype.setXTicks = function (xTicks) { + this.xTicks_ = xTicks; +}; + +// TODO(danvk): add this to the Dygraph object's API or move it into Layout. +DygraphLayout.prototype.setYAxes = function (yAxes) { + this.yAxes_ = yAxes; +}; + +DygraphLayout.prototype.evaluate = function () { + this._xAxis = {}; + this._evaluateLimits(); + this._evaluateLineCharts(); + this._evaluateLineTicks(); + this._evaluateAnnotations(); +}; + +DygraphLayout.prototype._evaluateLimits = function () { + var xlimits = this.dygraph_.xAxisRange(); + this._xAxis.minval = xlimits[0]; + this._xAxis.maxval = xlimits[1]; + var xrange = xlimits[1] - xlimits[0]; + this._xAxis.scale = xrange !== 0 ? 1 / xrange : 1.0; + + if (this.dygraph_.getOptionForAxis("logscale", 'x')) { + this._xAxis.xlogrange = utils.log10(this._xAxis.maxval) - utils.log10(this._xAxis.minval); + this._xAxis.xlogscale = this._xAxis.xlogrange !== 0 ? 1.0 / this._xAxis.xlogrange : 1.0; + } + for (var i = 0; i < this.yAxes_.length; i++) { + var axis = this.yAxes_[i]; + axis.minyval = axis.computedValueRange[0]; + axis.maxyval = axis.computedValueRange[1]; + axis.yrange = axis.maxyval - axis.minyval; + axis.yscale = axis.yrange !== 0 ? 1.0 / axis.yrange : 1.0; + + if (this.dygraph_.getOption("logscale")) { + axis.ylogrange = utils.log10(axis.maxyval) - utils.log10(axis.minyval); + axis.ylogscale = axis.ylogrange !== 0 ? 1.0 / axis.ylogrange : 1.0; + if (!isFinite(axis.ylogrange) || isNaN(axis.ylogrange)) { + console.error('axis ' + i + ' of graph at ' + axis.g + ' can\'t be displayed in log scale for range [' + axis.minyval + ' - ' + axis.maxyval + ']'); + } + } + } +}; + +DygraphLayout.calcXNormal_ = function (value, xAxis, logscale) { + if (logscale) { + return (utils.log10(value) - utils.log10(xAxis.minval)) * xAxis.xlogscale; + } else { + return (value - xAxis.minval) * xAxis.scale; + } +}; + +/** + * @param {DygraphAxisType} axis + * @param {number} value + * @param {boolean} logscale + * @return {number} + */ +DygraphLayout.calcYNormal_ = function (axis, value, logscale) { + if (logscale) { + var x = 1.0 - (utils.log10(value) - utils.log10(axis.minyval)) * axis.ylogscale; + return isFinite(x) ? x : NaN; // shim for v8 issue; see pull request 276 + } else { + return 1.0 - (value - axis.minyval) * axis.yscale; + } +}; + +DygraphLayout.prototype._evaluateLineCharts = function () { + var isStacked = this.dygraph_.getOption("stackedGraph"); + var isLogscaleForX = this.dygraph_.getOptionForAxis("logscale", 'x'); + + for (var setIdx = 0; setIdx < this.points.length; setIdx++) { + var points = this.points[setIdx]; + var setName = this.setNames[setIdx]; + var connectSeparated = this.dygraph_.getOption('connectSeparatedPoints', setName); + var axis = this.dygraph_.axisPropertiesForSeries(setName); + // TODO (konigsberg): use optionsForAxis instead. + var logscale = this.dygraph_.attributes_.getForSeries("logscale", setName); + + for (var j = 0; j < points.length; j++) { + var point = points[j]; + + // Range from 0-1 where 0 represents left and 1 represents right. + point.x = DygraphLayout.calcXNormal_(point.xval, this._xAxis, isLogscaleForX); + // Range from 0-1 where 0 represents top and 1 represents bottom + var yval = point.yval; + if (isStacked) { + point.y_stacked = DygraphLayout.calcYNormal_(axis, point.yval_stacked, logscale); + if (yval !== null && !isNaN(yval)) { + yval = point.yval_stacked; + } + } + if (yval === null) { + yval = NaN; + if (!connectSeparated) { + point.yval = NaN; + } + } + point.y = DygraphLayout.calcYNormal_(axis, yval, logscale); + } + + this.dygraph_.dataHandler_.onLineEvaluated(points, axis, logscale); + } +}; + +DygraphLayout.prototype._evaluateLineTicks = function () { + var i, tick, label, pos, v, has_tick; + this.xticks = []; + for (i = 0; i < this.xTicks_.length; i++) { + tick = this.xTicks_[i]; + label = tick.label; + has_tick = !('label_v' in tick); + v = has_tick ? tick.v : tick.label_v; + pos = this.dygraph_.toPercentXCoord(v); + if (pos >= 0.0 && pos < 1.0) { + this.xticks.push({ pos: pos, label: label, has_tick: has_tick }); + } + } + + this.yticks = []; + for (i = 0; i < this.yAxes_.length; i++) { + var axis = this.yAxes_[i]; + for (var j = 0; j < axis.ticks.length; j++) { + tick = axis.ticks[j]; + label = tick.label; + has_tick = !('label_v' in tick); + v = has_tick ? tick.v : tick.label_v; + pos = this.dygraph_.toPercentYCoord(v, i); + if (pos > 0.0 && pos <= 1.0) { + this.yticks.push({ axis: i, pos: pos, label: label, has_tick: has_tick }); + } + } + } +}; + +DygraphLayout.prototype._evaluateAnnotations = function () { + // Add the annotations to the point to which they belong. + // Make a map from (setName, xval) to annotation for quick lookups. + var i; + var annotations = {}; + for (i = 0; i < this.annotations.length; i++) { + var a = this.annotations[i]; + annotations[a.xval + "," + a.series] = a; + } + + this.annotated_points = []; + + // Exit the function early if there are no annotations. + if (!this.annotations || !this.annotations.length) { + return; + } + + // TODO(antrob): loop through annotations not points. + for (var setIdx = 0; setIdx < this.points.length; setIdx++) { + var points = this.points[setIdx]; + for (i = 0; i < points.length; i++) { + var p = points[i]; + var k = p.xval + "," + p.name; + if (k in annotations) { + p.annotation = annotations[k]; + this.annotated_points.push(p); + } + } + } +}; + +/** + * Convenience function to remove all the data sets from a graph + */ +DygraphLayout.prototype.removeAllDatasets = function () { + delete this.points; + delete this.setNames; + delete this.setPointsLengths; + delete this.setPointsOffsets; + this.points = []; + this.setNames = []; + this.setPointsLengths = []; + this.setPointsOffsets = []; +}; + +exports['default'] = DygraphLayout; +module.exports = exports['default']; + +},{"./dygraph-utils":17}],14:[function(require,module,exports){ +(function (process){ +/** + * @license + * Copyright 2011 Dan Vanderkam (danvdk@gmail.com) + * MIT-licensed (http://opensource.org/licenses/MIT) + */ + +"use strict"; + +Object.defineProperty(exports, '__esModule', { + value: true +}); +var OPTIONS_REFERENCE = null; + +// For "production" code, this gets removed by uglifyjs. +if (typeof process !== 'undefined') { + if ("development" != 'production') { + + // NOTE: in addition to parsing as JS, this snippet is expected to be valid + // JSON. This assumption cannot be checked in JS, but it will be checked when + // documentation is generated by the generate-documentation.py script. For the + // most part, this just means that you should always use double quotes. + OPTIONS_REFERENCE = // + { + "xValueParser": { + "default": "parseFloat() or Date.parse()*", + "labels": ["CSV parsing"], + "type": "function(str) -> number", + "description": "A function which parses x-values (i.e. the dependent series). Must return a number, even when the values are dates. In this case, millis since epoch are used. This is used primarily for parsing CSV data. *=Dygraphs is slightly more accepting in the dates which it will parse. See code for details." + }, + "stackedGraph": { + "default": "false", + "labels": ["Data Line display"], + "type": "boolean", + "description": "If set, stack series on top of one another rather than drawing them independently. The first series specified in the input data will wind up on top of the chart and the last will be on bottom. NaN values are drawn as white areas without a line on top, see stackedGraphNaNFill for details." + }, + "stackedGraphNaNFill": { + "default": "all", + "labels": ["Data Line display"], + "type": "string", + "description": "Controls handling of NaN values inside a stacked graph. NaN values are interpolated/extended for stacking purposes, but the actual point value remains NaN in the legend display. Valid option values are \"all\" (interpolate internally, repeat leftmost and rightmost value as needed), \"inside\" (interpolate internally only, use zero outside leftmost and rightmost value), and \"none\" (treat NaN as zero everywhere)." + }, + "pointSize": { + "default": "1", + "labels": ["Data Line display"], + "type": "integer", + "description": "The size of the dot to draw on each point in pixels (see drawPoints). A dot is always drawn when a point is \"isolated\", i.e. there is a missing point on either side of it. This also controls the size of those dots." + }, + "drawPoints": { + "default": "false", + "labels": ["Data Line display"], + "type": "boolean", + "description": "Draw a small dot at each point, in addition to a line going through the point. This makes the individual data points easier to see, but can increase visual clutter in the chart. The small dot can be replaced with a custom rendering by supplying a drawPointCallback." + }, + "drawGapEdgePoints": { + "default": "false", + "labels": ["Data Line display"], + "type": "boolean", + "description": "Draw points at the edges of gaps in the data. This improves visibility of small data segments or other data irregularities." + }, + "drawPointCallback": { + "default": "null", + "labels": ["Data Line display"], + "type": "function(g, seriesName, canvasContext, cx, cy, color, pointSize)", + "parameters": [["g", "the reference graph"], ["seriesName", "the name of the series"], ["canvasContext", "the canvas to draw on"], ["cx", "center x coordinate"], ["cy", "center y coordinate"], ["color", "series color"], ["pointSize", "the radius of the image."], ["idx", "the row-index of the point in the data."]], + "description": "Draw a custom item when drawPoints is enabled. Default is a small dot matching the series color. This method should constrain drawing to within pointSize pixels from (cx, cy). Also see drawHighlightPointCallback" + }, + "height": { + "default": "320", + "labels": ["Overall display"], + "type": "integer", + "description": "Height, in pixels, of the chart. If the container div has been explicitly sized, this will be ignored." + }, + "zoomCallback": { + "default": "null", + "labels": ["Callbacks"], + "type": "function(minDate, maxDate, yRanges)", + "parameters": [["minDate", "milliseconds since epoch"], ["maxDate", "milliseconds since epoch."], ["yRanges", "is an array of [bottom, top] pairs, one for each y-axis."]], + "description": "A function to call when the zoom window is changed (either by zooming in or out). When animatedZooms is set, zoomCallback is called once at the end of the transition (it will not be called for intermediate frames)." + }, + "pointClickCallback": { + "snippet": "function(e, point){
  alert(point);
}", + "default": "null", + "labels": ["Callbacks", "Interactive Elements"], + "type": "function(e, point)", + "parameters": [["e", "the event object for the click"], ["point", "the point that was clicked See Point properties for details"]], + "description": "A function to call when a data point is clicked. and the point that was clicked." + }, + "color": { + "default": "(see description)", + "labels": ["Data Series Colors"], + "type": "string", + "example": "red", + "description": "A per-series color definition. Used in conjunction with, and overrides, the colors option." + }, + "colors": { + "default": "(see description)", + "labels": ["Data Series Colors"], + "type": "array", + "example": "['red', '#00FF00']", + "description": "List of colors for the data series. These can be of the form \"#AABBCC\" or \"rgb(255,100,200)\" or \"yellow\", etc. If not specified, equally-spaced points around a color wheel are used. Overridden by the 'color' option." + }, + "connectSeparatedPoints": { + "default": "false", + "labels": ["Data Line display"], + "type": "boolean", + "description": "Usually, when Dygraphs encounters a missing value in a data series, it interprets this as a gap and draws it as such. If, instead, the missing values represents an x-value for which only a different series has data, then you'll want to connect the dots by setting this to true. To explicitly include a gap with this option set, use a value of NaN." + }, + "highlightCallback": { + "default": "null", + "labels": ["Callbacks"], + "type": "function(event, x, points, row, seriesName)", + "description": "When set, this callback gets called every time a new point is highlighted.", + "parameters": [["event", "the JavaScript mousemove event"], ["x", "the x-coordinate of the highlighted points"], ["points", "an array of highlighted points: [ {name: 'series', yval: y-value}, … ]"], ["row", "integer index of the highlighted row in the data table, starting from 0"], ["seriesName", "name of the highlighted series, only present if highlightSeriesOpts is set."]] + }, + "drawHighlightPointCallback": { + "default": "null", + "labels": ["Data Line display"], + "type": "function(g, seriesName, canvasContext, cx, cy, color, pointSize)", + "parameters": [["g", "the reference graph"], ["seriesName", "the name of the series"], ["canvasContext", "the canvas to draw on"], ["cx", "center x coordinate"], ["cy", "center y coordinate"], ["color", "series color"], ["pointSize", "the radius of the image."], ["idx", "the row-index of the point in the data."]], + "description": "Draw a custom item when a point is highlighted. Default is a small dot matching the series color. This method should constrain drawing to within pointSize pixels from (cx, cy) Also see drawPointCallback" + }, + "highlightSeriesOpts": { + "default": "null", + "labels": ["Interactive Elements"], + "type": "Object", + "description": "When set, the options from this object are applied to the timeseries closest to the mouse pointer for interactive highlighting. See also 'highlightCallback'. Example: highlightSeriesOpts: { strokeWidth: 3 }." + }, + "highlightSeriesBackgroundAlpha": { + "default": "0.5", + "labels": ["Interactive Elements"], + "type": "float", + "description": "Fade the background while highlighting series. 1=fully visible background (disable fading), 0=hiddden background (show highlighted series only)." + }, + "highlightSeriesBackgroundColor": { + "default": "rgb(255, 255, 255)", + "labels": ["Interactive Elements"], + "type": "string", + "description": "Sets the background color used to fade out the series in conjunction with 'highlightSeriesBackgroundAlpha'." + }, + "includeZero": { + "default": "false", + "labels": ["Axis display"], + "type": "boolean", + "description": "Usually, dygraphs will use the range of the data plus some padding to set the range of the y-axis. If this option is set, the y-axis will always include zero, typically as the lowest value. This can be used to avoid exaggerating the variance in the data" + }, + "rollPeriod": { + "default": "1", + "labels": ["Error Bars", "Rolling Averages"], + "type": "integer >= 1", + "description": "Number of days over which to average data. Discussed extensively above." + }, + "unhighlightCallback": { + "default": "null", + "labels": ["Callbacks"], + "type": "function(event)", + "parameters": [["event", "the mouse event"]], + "description": "When set, this callback gets called every time the user stops highlighting any point by mousing out of the graph." + }, + "axisTickSize": { + "default": "3.0", + "labels": ["Axis display"], + "type": "number", + "description": "The size of the line to display next to each tick mark on x- or y-axes." + }, + "labelsSeparateLines": { + "default": "false", + "labels": ["Legend"], + "type": "boolean", + "description": "Put <br/> between lines in the label string. Often used in conjunction with labelsDiv." + }, + "valueFormatter": { + "default": "Depends on the type of your data.", + "labels": ["Legend", "Value display/formatting"], + "type": "function(num or millis, opts, seriesName, dygraph, row, col)", + "description": "Function to provide a custom display format for the values displayed on mouseover. This does not affect the values that appear on tick marks next to the axes. To format those, see axisLabelFormatter. This is usually set on a per-axis basis. .", + "parameters": [["num_or_millis", "The value to be formatted. This is always a number. For date axes, it's millis since epoch. You can call new Date(millis) to get a Date object."], ["opts", "This is a function you can call to access various options (e.g. opts('labelsKMB')). It returns per-axis values for the option when available."], ["seriesName", "The name of the series from which the point came, e.g. 'X', 'Y', 'A', etc."], ["dygraph", "The dygraph object for which the formatting is being done"], ["row", "The row of the data from which this point comes. g.getValue(row, 0) will return the x-value for this point."], ["col", "The column of the data from which this point comes. g.getValue(row, col) will return the original y-value for this point. This can be used to get the full confidence interval for the point, or access un-rolled values for the point."]] + }, + "annotationMouseOverHandler": { + "default": "null", + "labels": ["Annotations"], + "type": "function(annotation, point, dygraph, event)", + "description": "If provided, this function is called whenever the user mouses over an annotation." + }, + "annotationMouseOutHandler": { + "default": "null", + "labels": ["Annotations"], + "type": "function(annotation, point, dygraph, event)", + "parameters": [["annotation", "the annotation left"], ["point", "the point associated with the annotation"], ["dygraph", "the reference graph"], ["event", "the mouse event"]], + "description": "If provided, this function is called whenever the user mouses out of an annotation." + }, + "annotationClickHandler": { + "default": "null", + "labels": ["Annotations"], + "type": "function(annotation, point, dygraph, event)", + "parameters": [["annotation", "the annotation left"], ["point", "the point associated with the annotation"], ["dygraph", "the reference graph"], ["event", "the mouse event"]], + "description": "If provided, this function is called whenever the user clicks on an annotation." + }, + "annotationDblClickHandler": { + "default": "null", + "labels": ["Annotations"], + "type": "function(annotation, point, dygraph, event)", + "parameters": [["annotation", "the annotation left"], ["point", "the point associated with the annotation"], ["dygraph", "the reference graph"], ["event", "the mouse event"]], + "description": "If provided, this function is called whenever the user double-clicks on an annotation." + }, + "drawCallback": { + "default": "null", + "labels": ["Callbacks"], + "type": "function(dygraph, is_initial)", + "parameters": [["dygraph", "The graph being drawn"], ["is_initial", "True if this is the initial draw, false for subsequent draws."]], + "description": "When set, this callback gets called every time the dygraph is drawn. This includes the initial draw, after zooming and repeatedly while panning." + }, + "labelsKMG2": { + "default": "false", + "labels": ["Value display/formatting"], + "type": "boolean", + "description": "Show k/M/G for kilo/Mega/Giga on y-axis. This is different than labelsKMB in that it uses base 2, not 10." + }, + "delimiter": { + "default": ",", + "labels": ["CSV parsing"], + "type": "string", + "description": "The delimiter to look for when separating fields of a CSV file. Setting this to a tab is not usually necessary, since tab-delimited data is auto-detected." + }, + "axisLabelFontSize": { + "default": "14", + "labels": ["Axis display"], + "type": "integer", + "description": "Size of the font (in pixels) to use in the axis labels, both x- and y-axis." + }, + "underlayCallback": { + "default": "null", + "labels": ["Callbacks"], + "type": "function(context, area, dygraph)", + "parameters": [["context", "the canvas drawing context on which to draw"], ["area", "An object with {x,y,w,h} properties describing the drawing area."], ["dygraph", "the reference graph"]], + "description": "When set, this callback gets called before the chart is drawn. It details on how to use this." + }, + "width": { + "default": "480", + "labels": ["Overall display"], + "type": "integer", + "description": "Width, in pixels, of the chart. If the container div has been explicitly sized, this will be ignored." + }, + "pixelRatio": { + "default": "(devicePixelRatio / context.backingStoreRatio)", + "labels": ["Overall display"], + "type": "float", + "description": "Overrides the pixel ratio scaling factor for the canvas's 2d context. Ordinarily, this is set to the devicePixelRatio / (context.backingStoreRatio || 1), so on mobile devices, where the devicePixelRatio can be somewhere around 3, performance can be improved by overriding this value to something less precise, like 1, at the expense of resolution." + }, + "interactionModel": { + "default": "...", + "labels": ["Interactive Elements"], + "type": "Object", + "description": "TODO(konigsberg): document this" + }, + "ticker": { + "default": "Dygraph.dateTicker or Dygraph.numericTicks", + "labels": ["Axis display"], + "type": "function(min, max, pixels, opts, dygraph, vals) -> [{v: ..., label: ...}, ...]", + "parameters": [["min", ""], ["max", ""], ["pixels", ""], ["opts", ""], ["dygraph", "the reference graph"], ["vals", ""]], + "description": "This lets you specify an arbitrary function to generate tick marks on an axis. The tick marks are an array of (value, label) pairs. The built-in functions go to great lengths to choose good tick marks so, if you set this option, you'll most likely want to call one of them and modify the result. See dygraph-tickers.js for an extensive discussion. This is set on a per-axis basis." + }, + "xAxisHeight": { + "default": "(null)", + "labels": ["Axis display"], + "type": "integer", + "description": "Height, in pixels, of the x-axis. If not set explicitly, this is computed based on axisLabelFontSize and axisTickSize." + }, + "showLabelsOnHighlight": { + "default": "true", + "labels": ["Interactive Elements", "Legend"], + "type": "boolean", + "description": "Whether to show the legend upon mouseover." + }, + "axis": { + "default": "(none)", + "labels": ["Axis display"], + "type": "string", + "description": "Set to either 'y1' or 'y2' to assign a series to a y-axis (primary or secondary). Must be set per-series." + }, + "pixelsPerLabel": { + "default": "70 (x-axis) or 30 (y-axes)", + "labels": ["Axis display", "Grid"], + "type": "integer", + "description": "Number of pixels to require between each x- and y-label. Larger values will yield a sparser axis with fewer ticks. This is set on a per-axis basis." + }, + "labelsDiv": { + "default": "null", + "labels": ["Legend"], + "type": "DOM element or string", + "example": "document.getElementById('foo')or'foo'", + "description": "Show data labels in an external div, rather than on the graph. This value can either be a div element or a div id." + }, + "fractions": { + "default": "false", + "labels": ["CSV parsing", "Error Bars"], + "type": "boolean", + "description": "When set, attempt to parse each cell in the CSV file as \"a/b\", where a and b are integers. The ratio will be plotted. This allows computation of Wilson confidence intervals (see below)." + }, + "logscale": { + "default": "false", + "labels": ["Axis display"], + "type": "boolean", + "description": "When set for the y-axis or x-axis, the graph shows that axis in log scale. Any values less than or equal to zero are not displayed. Showing log scale with ranges that go below zero will result in an unviewable graph.\n\n Not compatible with showZero. connectSeparatedPoints is ignored. This is ignored for date-based x-axes." + }, + "strokeWidth": { + "default": "1.0", + "labels": ["Data Line display"], + "type": "float", + "example": "0.5, 2.0", + "description": "The width of the lines connecting data points. This can be used to increase the contrast or some graphs." + }, + "strokePattern": { + "default": "null", + "labels": ["Data Line display"], + "type": "array", + "example": "[10, 2, 5, 2]", + "description": "A custom pattern array where the even index is a draw and odd is a space in pixels. If null then it draws a solid line. The array should have a even length as any odd lengthed array could be expressed as a smaller even length array. This is used to create dashed lines." + }, + "strokeBorderWidth": { + "default": "null", + "labels": ["Data Line display"], + "type": "float", + "example": "1.0", + "description": "Draw a border around graph lines to make crossing lines more easily distinguishable. Useful for graphs with many lines." + }, + "strokeBorderColor": { + "default": "white", + "labels": ["Data Line display"], + "type": "string", + "example": "red, #ccffdd", + "description": "Color for the line border used if strokeBorderWidth is set." + }, + "wilsonInterval": { + "default": "true", + "labels": ["Error Bars"], + "type": "boolean", + "description": "Use in conjunction with the \"fractions\" option. Instead of plotting +/- N standard deviations, dygraphs will compute a Wilson confidence interval and plot that. This has more reasonable behavior for ratios close to 0 or 1." + }, + "fillGraph": { + "default": "false", + "labels": ["Data Line display"], + "type": "boolean", + "description": "Should the area underneath the graph be filled? This option is not compatible with error bars. This may be set on a per-series basis." + }, + "highlightCircleSize": { + "default": "3", + "labels": ["Interactive Elements"], + "type": "integer", + "description": "The size in pixels of the dot drawn over highlighted points." + }, + "gridLineColor": { + "default": "rgb(128,128,128)", + "labels": ["Grid"], + "type": "red, blue", + "description": "The color of the gridlines. This may be set on a per-axis basis to define each axis' grid separately." + }, + "gridLinePattern": { + "default": "null", + "labels": ["Grid"], + "type": "array", + "example": "[10, 2, 5, 2]", + "description": "A custom pattern array where the even index is a draw and odd is a space in pixels. If null then it draws a solid line. The array should have a even length as any odd lengthed array could be expressed as a smaller even length array. This is used to create dashed gridlines." + }, + "visibility": { + "default": "[true, true, ...]", + "labels": ["Data Line display"], + "type": "Array of booleans", + "description": "Which series should initially be visible? Once the Dygraph has been constructed, you can access and modify the visibility of each series using the visibility and setVisibility methods." + }, + "valueRange": { + "default": "Full range of the input is shown", + "labels": ["Axis display"], + "type": "Array of two numbers", + "example": "[10, 110]", + "description": "Explicitly set the vertical range of the graph to [low, high]. This may be set on a per-axis basis to define each y-axis separately. If either limit is unspecified, it will be calculated automatically (e.g. [null, 30] to automatically calculate just the lower bound)" + }, + "colorSaturation": { + "default": "1.0", + "labels": ["Data Series Colors"], + "type": "float (0.0 - 1.0)", + "description": "If colors is not specified, saturation of the automatically-generated data series colors." + }, + "hideOverlayOnMouseOut": { + "default": "true", + "labels": ["Interactive Elements", "Legend"], + "type": "boolean", + "description": "Whether to hide the legend when the mouse leaves the chart area." + }, + "legend": { + "default": "onmouseover", + "labels": ["Legend"], + "type": "string", + "description": "When to display the legend. By default, it only appears when a user mouses over the chart. Set it to \"always\" to always display a legend of some sort. When set to \"follow\", legend follows highlighted points." + }, + "legendFormatter": { + "default": "null", + "labels": ["Legend"], + "type": "function(data): string", + "params": [["data", "An object containing information about the selection (or lack of a selection). This includes formatted values and series information. See here for sample values."]], + "description": "Set this to supply a custom formatter for the legend. See this comment and the legendFormatter demo for usage." + }, + "labelsShowZeroValues": { + "default": "true", + "labels": ["Legend"], + "type": "boolean", + "description": "Show zero value labels in the labelsDiv." + }, + "stepPlot": { + "default": "false", + "labels": ["Data Line display"], + "type": "boolean", + "description": "When set, display the graph as a step plot instead of a line plot. This option may either be set for the whole graph or for single series." + }, + "labelsUTC": { + "default": "false", + "labels": ["Value display/formatting", "Axis display"], + "type": "boolean", + "description": "Show date/time labels according to UTC (instead of local time)." + }, + "labelsKMB": { + "default": "false", + "labels": ["Value display/formatting"], + "type": "boolean", + "description": "Show K/M/B for thousands/millions/billions on y-axis." + }, + "rightGap": { + "default": "5", + "labels": ["Overall display"], + "type": "integer", + "description": "Number of pixels to leave blank at the right edge of the Dygraph. This makes it easier to highlight the right-most data point." + }, + "drawAxesAtZero": { + "default": "false", + "labels": ["Axis display"], + "type": "boolean", + "description": "When set, draw the X axis at the Y=0 position and the Y axis at the X=0 position if those positions are inside the graph's visible area. Otherwise, draw the axes at the bottom or left graph edge as usual." + }, + "xRangePad": { + "default": "0", + "labels": ["Axis display"], + "type": "float", + "description": "Add the specified amount of extra space (in pixels) around the X-axis value range to ensure points at the edges remain visible." + }, + "yRangePad": { + "default": "null", + "labels": ["Axis display"], + "type": "float", + "description": "If set, add the specified amount of extra space (in pixels) around the Y-axis value range to ensure points at the edges remain visible. If unset, use the traditional Y padding algorithm." + }, + "axisLabelFormatter": { + "default": "Depends on the data type", + "labels": ["Axis display"], + "type": "function(number or Date, granularity, opts, dygraph)", + "parameters": [["number or date", "Either a number (for a numeric axis) or a Date object (for a date axis)"], ["granularity", "specifies how fine-grained the axis is. For date axes, this is a reference to the time granularity enumeration, defined in dygraph-tickers.js, e.g. Dygraph.WEEKLY."], ["opts", "a function which provides access to various options on the dygraph, e.g. opts('labelsKMB')."], ["dygraph", "the referenced graph"]], + "description": "Function to call to format the tick values that appear along an axis. This is usually set on a per-axis basis." + }, + "clickCallback": { + "snippet": "function(e, date_millis){
  alert(new Date(date_millis));
}", + "default": "null", + "labels": ["Callbacks"], + "type": "function(e, x, points)", + "parameters": [["e", "The event object for the click"], ["x", "The x value that was clicked (for dates, this is milliseconds since epoch)"], ["points", "The closest points along that date. See Point properties for details."]], + "description": "A function to call when the canvas is clicked." + }, + "labels": { + "default": "[\"X\", \"Y1\", \"Y2\", ...]*", + "labels": ["Legend"], + "type": "array", + "description": "A name for each data series, including the independent (X) series. For CSV files and DataTable objections, this is determined by context. For raw data, this must be specified. If it is not, default values are supplied and a warning is logged." + }, + "dateWindow": { + "default": "Full range of the input is shown", + "labels": ["Axis display"], + "type": "Array of two numbers", + "example": "[
  Date.parse('2006-01-01'),
  (new Date()).valueOf()
]", + "description": "Initially zoom in on a section of the graph. Is of the form [earliest, latest], where earliest/latest are milliseconds since epoch. If the data for the x-axis is numeric, the values in dateWindow must also be numbers." + }, + "showRoller": { + "default": "false", + "labels": ["Interactive Elements", "Rolling Averages"], + "type": "boolean", + "description": "If the rolling average period text box should be shown." + }, + "sigma": { + "default": "2.0", + "labels": ["Error Bars"], + "type": "float", + "description": "When errorBars is set, shade this many standard deviations above/below each point." + }, + "customBars": { + "default": "false", + "labels": ["CSV parsing", "Error Bars"], + "type": "boolean", + "description": "When set, parse each CSV cell as \"low;middle;high\". Error bars will be drawn for each point between low and high, with the series itself going through middle." + }, + "colorValue": { + "default": "1.0", + "labels": ["Data Series Colors"], + "type": "float (0.0 - 1.0)", + "description": "If colors is not specified, value of the data series colors, as in hue/saturation/value. (0.0-1.0, default 0.5)" + }, + "errorBars": { + "default": "false", + "labels": ["CSV parsing", "Error Bars"], + "type": "boolean", + "description": "Does the data contain standard deviations? Setting this to true alters the input format (see above)." + }, + "displayAnnotations": { + "default": "false", + "labels": ["Annotations"], + "type": "boolean", + "description": "Only applies when Dygraphs is used as a GViz chart. Causes string columns following a data series to be interpreted as annotations on points in that series. This is the same format used by Google's AnnotatedTimeLine chart." + }, + "panEdgeFraction": { + "default": "null", + "labels": ["Axis display", "Interactive Elements"], + "type": "float", + "description": "A value representing the farthest a graph may be panned, in percent of the display. For example, a value of 0.1 means that the graph can only be panned 10% passed the edges of the displayed values. null means no bounds." + }, + "title": { + "labels": ["Chart labels"], + "type": "string", + "default": "null", + "description": "Text to display above the chart. You can supply any HTML for this value, not just text. If you wish to style it using CSS, use the 'dygraph-label' or 'dygraph-title' classes." + }, + "titleHeight": { + "default": "18", + "labels": ["Chart labels"], + "type": "integer", + "description": "Height of the chart title, in pixels. This also controls the default font size of the title. If you style the title on your own, this controls how much space is set aside above the chart for the title's div." + }, + "xlabel": { + "labels": ["Chart labels"], + "type": "string", + "default": "null", + "description": "Text to display below the chart's x-axis. You can supply any HTML for this value, not just text. If you wish to style it using CSS, use the 'dygraph-label' or 'dygraph-xlabel' classes." + }, + "xLabelHeight": { + "labels": ["Chart labels"], + "type": "integer", + "default": "18", + "description": "Height of the x-axis label, in pixels. This also controls the default font size of the x-axis label. If you style the label on your own, this controls how much space is set aside below the chart for the x-axis label's div." + }, + "ylabel": { + "labels": ["Chart labels"], + "type": "string", + "default": "null", + "description": "Text to display to the left of the chart's y-axis. You can supply any HTML for this value, not just text. If you wish to style it using CSS, use the 'dygraph-label' or 'dygraph-ylabel' classes. The text will be rotated 90 degrees by default, so CSS rules may behave in unintuitive ways. No additional space is set aside for a y-axis label. If you need more space, increase the width of the y-axis tick labels using the yAxisLabelWidth option. If you need a wider div for the y-axis label, either style it that way with CSS (but remember that it's rotated, so width is controlled by the 'height' property) or set the yLabelWidth option." + }, + "y2label": { + "labels": ["Chart labels"], + "type": "string", + "default": "null", + "description": "Text to display to the right of the chart's secondary y-axis. This label is only displayed if a secondary y-axis is present. See this test for an example of how to do this. The comments for the 'ylabel' option generally apply here as well. This label gets a 'dygraph-y2label' instead of a 'dygraph-ylabel' class." + }, + "yLabelWidth": { + "labels": ["Chart labels"], + "type": "integer", + "default": "18", + "description": "Width of the div which contains the y-axis label. Since the y-axis label appears rotated 90 degrees, this actually affects the height of its div." + }, + "drawGrid": { + "default": "true for x and y, false for y2", + "labels": ["Grid"], + "type": "boolean", + "description": "Whether to display gridlines in the chart. This may be set on a per-axis basis to define the visibility of each axis' grid separately." + }, + "independentTicks": { + "default": "true for y, false for y2", + "labels": ["Axis display", "Grid"], + "type": "boolean", + "description": "Only valid for y and y2, has no effect on x: This option defines whether the y axes should align their ticks or if they should be independent. Possible combinations: 1.) y=true, y2=false (default): y is the primary axis and the y2 ticks are aligned to the the ones of y. (only 1 grid) 2.) y=false, y2=true: y2 is the primary axis and the y ticks are aligned to the the ones of y2. (only 1 grid) 3.) y=true, y2=true: Both axis are independent and have their own ticks. (2 grids) 4.) y=false, y2=false: Invalid configuration causes an error." + }, + "drawAxis": { + "default": "true for x and y, false for y2", + "labels": ["Axis display"], + "type": "boolean", + "description": "Whether to draw the specified axis. This may be set on a per-axis basis to define the visibility of each axis separately. Setting this to false also prevents axis ticks from being drawn and reclaims the space for the chart grid/lines." + }, + "gridLineWidth": { + "default": "0.3", + "labels": ["Grid"], + "type": "float", + "description": "Thickness (in pixels) of the gridlines drawn under the chart. The vertical/horizontal gridlines can be turned off entirely by using the drawGrid option. This may be set on a per-axis basis to define each axis' grid separately." + }, + "axisLineWidth": { + "default": "0.3", + "labels": ["Axis display"], + "type": "float", + "description": "Thickness (in pixels) of the x- and y-axis lines." + }, + "axisLineColor": { + "default": "black", + "labels": ["Axis display"], + "type": "string", + "description": "Color of the x- and y-axis lines. Accepts any value which the HTML canvas strokeStyle attribute understands, e.g. 'black' or 'rgb(0, 100, 255)'." + }, + "fillAlpha": { + "default": "0.15", + "labels": ["Error Bars", "Data Series Colors"], + "type": "float (0.0 - 1.0)", + "description": "Error bars (or custom bars) for each series are drawn in the same color as the series, but with partial transparency. This sets the transparency. A value of 0.0 means that the error bars will not be drawn, whereas a value of 1.0 means that the error bars will be as dark as the line for the series itself. This can be used to produce chart lines whose thickness varies at each point." + }, + "axisLabelWidth": { + "default": "50 (y-axis), 60 (x-axis)", + "labels": ["Axis display", "Chart labels"], + "type": "integer", + "description": "Width (in pixels) of the containing divs for x- and y-axis labels. For the y-axis, this also controls the width of the y-axis. Note that for the x-axis, this is independent from pixelsPerLabel, which controls the spacing between labels." + }, + "sigFigs": { + "default": "null", + "labels": ["Value display/formatting"], + "type": "integer", + "description": "By default, dygraphs displays numbers with a fixed number of digits after the decimal point. If you'd prefer to have a fixed number of significant figures, set this option to that number of sig figs. A value of 2, for instance, would cause 1 to be display as 1.0 and 1234 to be displayed as 1.23e+3." + }, + "digitsAfterDecimal": { + "default": "2", + "labels": ["Value display/formatting"], + "type": "integer", + "description": "Unless it's run in scientific mode (see the sigFigs option), dygraphs displays numbers with digitsAfterDecimal digits after the decimal point. Trailing zeros are not displayed, so with a value of 2 you'll get '0', '0.1', '0.12', '123.45' but not '123.456' (it will be rounded to '123.46'). Numbers with absolute value less than 0.1^digitsAfterDecimal (i.e. those which would show up as '0.00') will be displayed in scientific notation." + }, + "maxNumberWidth": { + "default": "6", + "labels": ["Value display/formatting"], + "type": "integer", + "description": "When displaying numbers in normal (not scientific) mode, large numbers will be displayed with many trailing zeros (e.g. 100000000 instead of 1e9). This can lead to unwieldy y-axis labels. If there are more than maxNumberWidth digits to the left of the decimal in a number, dygraphs will switch to scientific notation, even when not operating in scientific mode. If you'd like to see all those digits, set this to something large, like 20 or 30." + }, + "file": { + "default": "(set when constructed)", + "labels": ["Data"], + "type": "string (URL of CSV or CSV), GViz DataTable or 2D Array", + "description": "Sets the data being displayed in the chart. This can only be set when calling updateOptions; it cannot be set from the constructor. For a full description of valid data formats, see the Data Formats page." + }, + "timingName": { + "default": "null", + "labels": ["Debugging", "Deprecated"], + "type": "string", + "description": "Set this option to log timing information. The value of the option will be logged along with the timimg, so that you can distinguish multiple dygraphs on the same page." + }, + "showRangeSelector": { + "default": "false", + "labels": ["Range Selector"], + "type": "boolean", + "description": "Show or hide the range selector widget." + }, + "rangeSelectorHeight": { + "default": "40", + "labels": ["Range Selector"], + "type": "integer", + "description": "Height, in pixels, of the range selector widget. This option can only be specified at Dygraph creation time." + }, + "rangeSelectorPlotStrokeColor": { + "default": "#808FAB", + "labels": ["Range Selector"], + "type": "string", + "description": "The range selector mini plot stroke color. This can be of the form \"#AABBCC\" or \"rgb(255,100,200)\" or \"yellow\". You can also specify null or \"\" to turn off stroke." + }, + "rangeSelectorPlotFillColor": { + "default": "#A7B1C4", + "labels": ["Range Selector"], + "type": "string", + "description": "The range selector mini plot fill color. This can be of the form \"#AABBCC\" or \"rgb(255,100,200)\" or \"yellow\". You can also specify null or \"\" to turn off fill." + }, + "rangeSelectorPlotFillGradientColor": { + "default": "white", + "labels": ["Range Selector"], + "type": "string", + "description": "The top color for the range selector mini plot fill color gradient. This can be of the form \"#AABBCC\" or \"rgb(255,100,200)\" or \"rgba(255,100,200,42)\" or \"yellow\". You can also specify null or \"\" to disable the gradient and fill with one single color." + }, + "rangeSelectorBackgroundStrokeColor": { + "default": "gray", + "labels": ["Range Selector"], + "type": "string", + "description": "The color of the lines below and on both sides of the range selector mini plot. This can be of the form \"#AABBCC\" or \"rgb(255,100,200)\" or \"yellow\"." + }, + "rangeSelectorBackgroundLineWidth": { + "default": "1", + "labels": ["Range Selector"], + "type": "float", + "description": "The width of the lines below and on both sides of the range selector mini plot." + }, + "rangeSelectorPlotLineWidth": { + "default": "1.5", + "labels": ["Range Selector"], + "type": "float", + "description": "The width of the range selector mini plot line." + }, + "rangeSelectorForegroundStrokeColor": { + "default": "black", + "labels": ["Range Selector"], + "type": "string", + "description": "The color of the lines in the interactive layer of the range selector. This can be of the form \"#AABBCC\" or \"rgb(255,100,200)\" or \"yellow\"." + }, + "rangeSelectorForegroundLineWidth": { + "default": "1", + "labels": ["Range Selector"], + "type": "float", + "description": "The width the lines in the interactive layer of the range selector." + }, + "rangeSelectorAlpha": { + "default": "0.6", + "labels": ["Range Selector"], + "type": "float (0.0 - 1.0)", + "description": "The transparency of the veil that is drawn over the unselected portions of the range selector mini plot. A value of 0 represents full transparency and the unselected portions of the mini plot will appear as normal. A value of 1 represents full opacity and the unselected portions of the mini plot will be hidden." + }, + "showInRangeSelector": { + "default": "null", + "labels": ["Range Selector"], + "type": "boolean", + "description": "Mark this series for inclusion in the range selector. The mini plot curve will be an average of all such series. If this is not specified for any series, the default behavior is to average all the visible series. Setting it for one series will result in that series being charted alone in the range selector. Once it's set for a single series, it needs to be set for all series which should be included (regardless of visibility)." + }, + "animatedZooms": { + "default": "false", + "labels": ["Interactive Elements"], + "type": "boolean", + "description": "Set this option to animate the transition between zoom windows. Applies to programmatic and interactive zooms. Note that if you also set a drawCallback, it will be called several times on each zoom. If you set a zoomCallback, it will only be called after the animation is complete." + }, + "plotter": { + "default": "[DygraphCanvasRenderer.Plotters.fillPlotter, DygraphCanvasRenderer.Plotters.errorPlotter, DygraphCanvasRenderer.Plotters.linePlotter]", + "labels": ["Data Line display"], + "type": "array or function", + "description": "A function (or array of functions) which plot each data series on the chart. TODO(danvk): more details! May be set per-series." + }, + "axes": { + "default": "null", + "labels": ["Configuration"], + "type": "Object", + "description": "Defines per-axis options. Valid keys are 'x', 'y' and 'y2'. Only some options may be set on a per-axis basis. If an option may be set in this way, it will be noted on this page. See also documentation on per-series and per-axis options." + }, + "series": { + "default": "null", + "labels": ["Series"], + "type": "Object", + "description": "Defines per-series options. Its keys match the y-axis label names, and the values are dictionaries themselves that contain options specific to that series." + }, + "plugins": { + "default": "[]", + "labels": ["Configuration"], + "type": "Array", + "description": "Defines per-graph plugins. Useful for per-graph customization" + }, + "dataHandler": { + "default": "(depends on data)", + "labels": ["Data"], + "type": "Dygraph.DataHandler", + "description": "Custom DataHandler. This is an advanced customization. See http://bit.ly/151E7Aq." + } + }; //
+ // NOTE: in addition to parsing as JS, this snippet is expected to be valid + // JSON. This assumption cannot be checked in JS, but it will be checked when + // documentation is generated by the generate-documentation.py script. For the + // most part, this just means that you should always use double quotes. + + // Do a quick sanity check on the options reference. + var warn = function warn(msg) { + if (window.console) window.console.warn(msg); + }; + var flds = ['type', 'default', 'description']; + var valid_cats = ['Annotations', 'Axis display', 'Chart labels', 'CSV parsing', 'Callbacks', 'Data', 'Data Line display', 'Data Series Colors', 'Error Bars', 'Grid', 'Interactive Elements', 'Range Selector', 'Legend', 'Overall display', 'Rolling Averages', 'Series', 'Value display/formatting', 'Zooming', 'Debugging', 'Configuration', 'Deprecated']; + var i; + var cats = {}; + for (i = 0; i < valid_cats.length; i++) cats[valid_cats[i]] = true; + + for (var k in OPTIONS_REFERENCE) { + if (!OPTIONS_REFERENCE.hasOwnProperty(k)) continue; + var op = OPTIONS_REFERENCE[k]; + for (i = 0; i < flds.length; i++) { + if (!op.hasOwnProperty(flds[i])) { + warn('Option ' + k + ' missing "' + flds[i] + '" property'); + } else if (typeof op[flds[i]] != 'string') { + warn(k + '.' + flds[i] + ' must be of type string'); + } + } + var labels = op.labels; + if (typeof labels !== 'object') { + warn('Option "' + k + '" is missing a "labels": [...] option'); + } else { + for (i = 0; i < labels.length; i++) { + if (!cats.hasOwnProperty(labels[i])) { + warn('Option "' + k + '" has label "' + labels[i] + '", which is invalid.'); + } + } + } + } + } +} + +exports['default'] = OPTIONS_REFERENCE; +module.exports = exports['default']; + +}).call(this,require('_process')) + +},{"_process":1}],15:[function(require,module,exports){ +(function (process){ +/** + * @license + * Copyright 2011 Dan Vanderkam (danvdk@gmail.com) + * MIT-licensed (http://opensource.org/licenses/MIT) + */ + +/** + * @fileoverview DygraphOptions is responsible for parsing and returning + * information about options. + */ + +// TODO: remove this jshint directive & fix the warnings. +/*jshint sub:true */ +"use strict"; + +Object.defineProperty(exports, '__esModule', { + value: true +}); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } } + +var _dygraphUtils = require('./dygraph-utils'); + +var utils = _interopRequireWildcard(_dygraphUtils); + +var _dygraphDefaultAttrs = require('./dygraph-default-attrs'); + +var _dygraphDefaultAttrs2 = _interopRequireDefault(_dygraphDefaultAttrs); + +var _dygraphOptionsReference = require('./dygraph-options-reference'); + +var _dygraphOptionsReference2 = _interopRequireDefault(_dygraphOptionsReference); + +/* + * Interesting member variables: (REMOVING THIS LIST AS I CLOSURIZE) + * global_ - global attributes (common among all graphs, AIUI) + * user - attributes set by the user + * series_ - { seriesName -> { idx, yAxis, options }} + */ + +/** + * This parses attributes into an object that can be easily queried. + * + * It doesn't necessarily mean that all options are available, specifically + * if labels are not yet available, since those drive details of the per-series + * and per-axis options. + * + * @param {Dygraph} dygraph The chart to which these options belong. + * @constructor + */ +var DygraphOptions = function DygraphOptions(dygraph) { + /** + * The dygraph. + * @type {!Dygraph} + */ + this.dygraph_ = dygraph; + + /** + * Array of axis index to { series : [ series names ] , options : { axis-specific options. } + * @type {Array.<{series : Array., options : Object}>} @private + */ + this.yAxes_ = []; + + /** + * Contains x-axis specific options, which are stored in the options key. + * This matches the yAxes_ object structure (by being a dictionary with an + * options element) allowing for shared code. + * @type {options: Object} @private + */ + this.xAxis_ = {}; + this.series_ = {}; + + // Once these two objects are initialized, you can call get(); + this.global_ = this.dygraph_.attrs_; + this.user_ = this.dygraph_.user_attrs_ || {}; + + /** + * A list of series in columnar order. + * @type {Array.} + */ + this.labels_ = []; + + this.highlightSeries_ = this.get("highlightSeriesOpts") || {}; + this.reparseSeries(); +}; + +/** + * Not optimal, but does the trick when you're only using two axes. + * If we move to more axes, this can just become a function. + * + * @type {Object.} + * @private + */ +DygraphOptions.AXIS_STRING_MAPPINGS_ = { + 'y': 0, + 'Y': 0, + 'y1': 0, + 'Y1': 0, + 'y2': 1, + 'Y2': 1 +}; + +/** + * @param {string|number} axis + * @private + */ +DygraphOptions.axisToIndex_ = function (axis) { + if (typeof axis == "string") { + if (DygraphOptions.AXIS_STRING_MAPPINGS_.hasOwnProperty(axis)) { + return DygraphOptions.AXIS_STRING_MAPPINGS_[axis]; + } + throw "Unknown axis : " + axis; + } + if (typeof axis == "number") { + if (axis === 0 || axis === 1) { + return axis; + } + throw "Dygraphs only supports two y-axes, indexed from 0-1."; + } + if (axis) { + throw "Unknown axis : " + axis; + } + // No axis specification means axis 0. + return 0; +}; + +/** + * Reparses options that are all related to series. This typically occurs when + * options are either updated, or source data has been made available. + * + * TODO(konigsberg): The method name is kind of weak; fix. + */ +DygraphOptions.prototype.reparseSeries = function () { + var labels = this.get("labels"); + if (!labels) { + return; // -- can't do more for now, will parse after getting the labels. + } + + this.labels_ = labels.slice(1); + + this.yAxes_ = [{ series: [], options: {} }]; // Always one axis at least. + this.xAxis_ = { options: {} }; + this.series_ = {}; + + // Series are specified in the series element: + // + // { + // labels: [ "X", "foo", "bar" ], + // pointSize: 3, + // series : { + // foo : {}, // options for foo + // bar : {} // options for bar + // } + // } + // + // So, if series is found, it's expected to contain per-series data, otherwise set a + // default. + var seriesDict = this.user_.series || {}; + for (var idx = 0; idx < this.labels_.length; idx++) { + var seriesName = this.labels_[idx]; + var optionsForSeries = seriesDict[seriesName] || {}; + var yAxis = DygraphOptions.axisToIndex_(optionsForSeries["axis"]); + + this.series_[seriesName] = { + idx: idx, + yAxis: yAxis, + options: optionsForSeries }; + + if (!this.yAxes_[yAxis]) { + this.yAxes_[yAxis] = { series: [seriesName], options: {} }; + } else { + this.yAxes_[yAxis].series.push(seriesName); + } + } + + var axis_opts = this.user_["axes"] || {}; + utils.update(this.yAxes_[0].options, axis_opts["y"] || {}); + if (this.yAxes_.length > 1) { + utils.update(this.yAxes_[1].options, axis_opts["y2"] || {}); + } + utils.update(this.xAxis_.options, axis_opts["x"] || {}); + + // For "production" code, this gets removed by uglifyjs. + if (typeof process !== 'undefined') { + if ("development" != 'production') { + this.validateOptions_(); + } + } +}; + +/** + * Get a global value. + * + * @param {string} name the name of the option. + */ +DygraphOptions.prototype.get = function (name) { + var result = this.getGlobalUser_(name); + if (result !== null) { + return result; + } + return this.getGlobalDefault_(name); +}; + +DygraphOptions.prototype.getGlobalUser_ = function (name) { + if (this.user_.hasOwnProperty(name)) { + return this.user_[name]; + } + return null; +}; + +DygraphOptions.prototype.getGlobalDefault_ = function (name) { + if (this.global_.hasOwnProperty(name)) { + return this.global_[name]; + } + if (_dygraphDefaultAttrs2['default'].hasOwnProperty(name)) { + return _dygraphDefaultAttrs2['default'][name]; + } + return null; +}; + +/** + * Get a value for a specific axis. If there is no specific value for the axis, + * the global value is returned. + * + * @param {string} name the name of the option. + * @param {string|number} axis the axis to search. Can be the string representation + * ("y", "y2") or the axis number (0, 1). + */ +DygraphOptions.prototype.getForAxis = function (name, axis) { + var axisIdx; + var axisString; + + // Since axis can be a number or a string, straighten everything out here. + if (typeof axis == 'number') { + axisIdx = axis; + axisString = axisIdx === 0 ? "y" : "y2"; + } else { + if (axis == "y1") { + axis = "y"; + } // Standardize on 'y'. Is this bad? I think so. + if (axis == "y") { + axisIdx = 0; + } else if (axis == "y2") { + axisIdx = 1; + } else if (axis == "x") { + axisIdx = -1; // simply a placeholder for below. + } else { + throw "Unknown axis " + axis; + } + axisString = axis; + } + + var userAxis = axisIdx == -1 ? this.xAxis_ : this.yAxes_[axisIdx]; + + // Search the user-specified axis option first. + if (userAxis) { + // This condition could be removed if we always set up this.yAxes_ for y2. + var axisOptions = userAxis.options; + if (axisOptions.hasOwnProperty(name)) { + return axisOptions[name]; + } + } + + // User-specified global options second. + // But, hack, ignore globally-specified 'logscale' for 'x' axis declaration. + if (!(axis === 'x' && name === 'logscale')) { + var result = this.getGlobalUser_(name); + if (result !== null) { + return result; + } + } + // Default axis options third. + var defaultAxisOptions = _dygraphDefaultAttrs2['default'].axes[axisString]; + if (defaultAxisOptions.hasOwnProperty(name)) { + return defaultAxisOptions[name]; + } + + // Default global options last. + return this.getGlobalDefault_(name); +}; + +/** + * Get a value for a specific series. If there is no specific value for the series, + * the value for the axis is returned (and afterwards, the global value.) + * + * @param {string} name the name of the option. + * @param {string} series the series to search. + */ +DygraphOptions.prototype.getForSeries = function (name, series) { + // Honors indexes as series. + if (series === this.dygraph_.getHighlightSeries()) { + if (this.highlightSeries_.hasOwnProperty(name)) { + return this.highlightSeries_[name]; + } + } + + if (!this.series_.hasOwnProperty(series)) { + throw "Unknown series: " + series; + } + + var seriesObj = this.series_[series]; + var seriesOptions = seriesObj["options"]; + if (seriesOptions.hasOwnProperty(name)) { + return seriesOptions[name]; + } + + return this.getForAxis(name, seriesObj["yAxis"]); +}; + +/** + * Returns the number of y-axes on the chart. + * @return {number} the number of axes. + */ +DygraphOptions.prototype.numAxes = function () { + return this.yAxes_.length; +}; + +/** + * Return the y-axis for a given series, specified by name. + */ +DygraphOptions.prototype.axisForSeries = function (series) { + return this.series_[series].yAxis; +}; + +/** + * Returns the options for the specified axis. + */ +// TODO(konigsberg): this is y-axis specific. Support the x axis. +DygraphOptions.prototype.axisOptions = function (yAxis) { + return this.yAxes_[yAxis].options; +}; + +/** + * Return the series associated with an axis. + */ +DygraphOptions.prototype.seriesForAxis = function (yAxis) { + return this.yAxes_[yAxis].series; +}; + +/** + * Return the list of all series, in their columnar order. + */ +DygraphOptions.prototype.seriesNames = function () { + return this.labels_; +}; + +// For "production" code, this gets removed by uglifyjs. +if (typeof process !== 'undefined') { + if ("development" != 'production') { + + /** + * Validate all options. + * This requires OPTIONS_REFERENCE, which is only available in debug builds. + * @private + */ + DygraphOptions.prototype.validateOptions_ = function () { + if (typeof _dygraphOptionsReference2['default'] === 'undefined') { + throw 'Called validateOptions_ in prod build.'; + } + + var that = this; + var validateOption = function validateOption(optionName) { + if (!_dygraphOptionsReference2['default'][optionName]) { + that.warnInvalidOption_(optionName); + } + }; + + var optionsDicts = [this.xAxis_.options, this.yAxes_[0].options, this.yAxes_[1] && this.yAxes_[1].options, this.global_, this.user_, this.highlightSeries_]; + var names = this.seriesNames(); + for (var i = 0; i < names.length; i++) { + var name = names[i]; + if (this.series_.hasOwnProperty(name)) { + optionsDicts.push(this.series_[name].options); + } + } + for (var i = 0; i < optionsDicts.length; i++) { + var dict = optionsDicts[i]; + if (!dict) continue; + for (var optionName in dict) { + if (dict.hasOwnProperty(optionName)) { + validateOption(optionName); + } + } + } + }; + + var WARNINGS = {}; // Only show any particular warning once. + + /** + * Logs a warning about invalid options. + * TODO: make this throw for testing + * @private + */ + DygraphOptions.prototype.warnInvalidOption_ = function (optionName) { + if (!WARNINGS[optionName]) { + WARNINGS[optionName] = true; + var isSeries = this.labels_.indexOf(optionName) >= 0; + if (isSeries) { + console.warn('Use new-style per-series options (saw ' + optionName + ' as top-level options key). See http://bit.ly/1tceaJs'); + } else { + console.warn('Unknown option ' + optionName + ' (full list of options at dygraphs.com/options.html'); + } + throw "invalid option " + optionName; + } + }; + + // Reset list of previously-shown warnings. Used for testing. + DygraphOptions.resetWarnings_ = function () { + WARNINGS = {}; + }; + } +} + +exports['default'] = DygraphOptions; +module.exports = exports['default']; + +}).call(this,require('_process')) + +},{"./dygraph-default-attrs":10,"./dygraph-options-reference":14,"./dygraph-utils":17,"_process":1}],16:[function(require,module,exports){ +/** + * @license + * Copyright 2011 Dan Vanderkam (danvdk@gmail.com) + * MIT-licensed (http://opensource.org/licenses/MIT) + */ + +/** + * @fileoverview Description of this file. + * @author danvk@google.com (Dan Vanderkam) + * + * A ticker is a function with the following interface: + * + * function(a, b, pixels, options_view, dygraph, forced_values); + * -> [ { v: tick1_v, label: tick1_label[, label_v: label_v1] }, + * { v: tick2_v, label: tick2_label[, label_v: label_v2] }, + * ... + * ] + * + * The returned value is called a "tick list". + * + * Arguments + * --------- + * + * [a, b] is the range of the axis for which ticks are being generated. For a + * numeric axis, these will simply be numbers. For a date axis, these will be + * millis since epoch (convertable to Date objects using "new Date(a)" and "new + * Date(b)"). + * + * opts provides access to chart- and axis-specific options. It can be used to + * access number/date formatting code/options, check for a log scale, etc. + * + * pixels is the length of the axis in pixels. opts('pixelsPerLabel') is the + * minimum amount of space to be allotted to each label. For instance, if + * pixels=400 and opts('pixelsPerLabel')=40 then the ticker should return + * between zero and ten (400/40) ticks. + * + * dygraph is the Dygraph object for which an axis is being constructed. + * + * forced_values is used for secondary y-axes. The tick positions are typically + * set by the primary y-axis, so the secondary y-axis has no choice in where to + * put these. It simply has to generate labels for these data values. + * + * Tick lists + * ---------- + * Typically a tick will have both a grid/tick line and a label at one end of + * that line (at the bottom for an x-axis, at left or right for the y-axis). + * + * A tick may be missing one of these two components: + * - If "label_v" is specified instead of "v", then there will be no tick or + * gridline, just a label. + * - Similarly, if "label" is not specified, then there will be a gridline + * without a label. + * + * This flexibility is useful in a few situations: + * - For log scales, some of the tick lines may be too close to all have labels. + * - For date scales where years are being displayed, it is desirable to display + * tick marks at the beginnings of years but labels (e.g. "2006") in the + * middle of the years. + */ + +/*jshint sub:true */ +/*global Dygraph:false */ +"use strict"; + +Object.defineProperty(exports, '__esModule', { + value: true +}); + +function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } } + +var _dygraphUtils = require('./dygraph-utils'); + +var utils = _interopRequireWildcard(_dygraphUtils); + +/** @typedef {Array.<{v:number, label:string, label_v:(string|undefined)}>} */ +var TickList = undefined; // the ' = undefined' keeps jshint happy. + +/** @typedef {function( + * number, + * number, + * number, + * function(string):*, + * Dygraph=, + * Array.= + * ): TickList} + */ +var Ticker = undefined; // the ' = undefined' keeps jshint happy. + +/** @type {Ticker} */ +var numericLinearTicks = function numericLinearTicks(a, b, pixels, opts, dygraph, vals) { + var nonLogscaleOpts = function nonLogscaleOpts(opt) { + if (opt === 'logscale') return false; + return opts(opt); + }; + return numericTicks(a, b, pixels, nonLogscaleOpts, dygraph, vals); +}; + +exports.numericLinearTicks = numericLinearTicks; +/** @type {Ticker} */ +var numericTicks = function numericTicks(a, b, pixels, opts, dygraph, vals) { + var pixels_per_tick = /** @type{number} */opts('pixelsPerLabel'); + var ticks = []; + var i, j, tickV, nTicks; + if (vals) { + for (i = 0; i < vals.length; i++) { + ticks.push({ v: vals[i] }); + } + } else { + // TODO(danvk): factor this log-scale block out into a separate function. + if (opts("logscale")) { + nTicks = Math.floor(pixels / pixels_per_tick); + var minIdx = utils.binarySearch(a, PREFERRED_LOG_TICK_VALUES, 1); + var maxIdx = utils.binarySearch(b, PREFERRED_LOG_TICK_VALUES, -1); + if (minIdx == -1) { + minIdx = 0; + } + if (maxIdx == -1) { + maxIdx = PREFERRED_LOG_TICK_VALUES.length - 1; + } + // Count the number of tick values would appear, if we can get at least + // nTicks / 4 accept them. + var lastDisplayed = null; + if (maxIdx - minIdx >= nTicks / 4) { + for (var idx = maxIdx; idx >= minIdx; idx--) { + var tickValue = PREFERRED_LOG_TICK_VALUES[idx]; + var pixel_coord = Math.log(tickValue / a) / Math.log(b / a) * pixels; + var tick = { v: tickValue }; + if (lastDisplayed === null) { + lastDisplayed = { + tickValue: tickValue, + pixel_coord: pixel_coord + }; + } else { + if (Math.abs(pixel_coord - lastDisplayed.pixel_coord) >= pixels_per_tick) { + lastDisplayed = { + tickValue: tickValue, + pixel_coord: pixel_coord + }; + } else { + tick.label = ""; + } + } + ticks.push(tick); + } + // Since we went in backwards order. + ticks.reverse(); + } + } + + // ticks.length won't be 0 if the log scale function finds values to insert. + if (ticks.length === 0) { + // Basic idea: + // Try labels every 1, 2, 5, 10, 20, 50, 100, etc. + // Calculate the resulting tick spacing (i.e. this.height_ / nTicks). + // The first spacing greater than pixelsPerYLabel is what we use. + // TODO(danvk): version that works on a log scale. + var kmg2 = opts("labelsKMG2"); + var mults, base; + if (kmg2) { + mults = [1, 2, 4, 8, 16, 32, 64, 128, 256]; + base = 16; + } else { + mults = [1, 2, 5, 10, 20, 50, 100]; + base = 10; + } + + // Get the maximum number of permitted ticks based on the + // graph's pixel size and pixels_per_tick setting. + var max_ticks = Math.ceil(pixels / pixels_per_tick); + + // Now calculate the data unit equivalent of this tick spacing. + // Use abs() since graphs may have a reversed Y axis. + var units_per_tick = Math.abs(b - a) / max_ticks; + + // Based on this, get a starting scale which is the largest + // integer power of the chosen base (10 or 16) that still remains + // below the requested pixels_per_tick spacing. + var base_power = Math.floor(Math.log(units_per_tick) / Math.log(base)); + var base_scale = Math.pow(base, base_power); + + // Now try multiples of the starting scale until we find one + // that results in tick marks spaced sufficiently far apart. + // The "mults" array should cover the range 1 .. base^2 to + // adjust for rounding and edge effects. + var scale, low_val, high_val, spacing; + for (j = 0; j < mults.length; j++) { + scale = base_scale * mults[j]; + low_val = Math.floor(a / scale) * scale; + high_val = Math.ceil(b / scale) * scale; + nTicks = Math.abs(high_val - low_val) / scale; + spacing = pixels / nTicks; + if (spacing > pixels_per_tick) break; + } + + // Construct the set of ticks. + // Allow reverse y-axis if it's explicitly requested. + if (low_val > high_val) scale *= -1; + for (i = 0; i <= nTicks; i++) { + tickV = low_val + i * scale; + ticks.push({ v: tickV }); + } + } + } + + var formatter = /**@type{AxisLabelFormatter}*/opts('axisLabelFormatter'); + + // Add labels to the ticks. + for (i = 0; i < ticks.length; i++) { + if (ticks[i].label !== undefined) continue; // Use current label. + // TODO(danvk): set granularity to something appropriate here. + ticks[i].label = formatter.call(dygraph, ticks[i].v, 0, opts, dygraph); + } + + return ticks; +}; + +exports.numericTicks = numericTicks; +/** @type {Ticker} */ +var dateTicker = function dateTicker(a, b, pixels, opts, dygraph, vals) { + var chosen = pickDateTickGranularity(a, b, pixels, opts); + + if (chosen >= 0) { + return getDateAxis(a, b, chosen, opts, dygraph); + } else { + // this can happen if self.width_ is zero. + return []; + } +}; + +exports.dateTicker = dateTicker; +// Time granularity enumeration +var Granularity = { + MILLISECONDLY: 0, + TWO_MILLISECONDLY: 1, + FIVE_MILLISECONDLY: 2, + TEN_MILLISECONDLY: 3, + FIFTY_MILLISECONDLY: 4, + HUNDRED_MILLISECONDLY: 5, + FIVE_HUNDRED_MILLISECONDLY: 6, + SECONDLY: 7, + TWO_SECONDLY: 8, + FIVE_SECONDLY: 9, + TEN_SECONDLY: 10, + THIRTY_SECONDLY: 11, + MINUTELY: 12, + TWO_MINUTELY: 13, + FIVE_MINUTELY: 14, + TEN_MINUTELY: 15, + THIRTY_MINUTELY: 16, + HOURLY: 17, + TWO_HOURLY: 18, + SIX_HOURLY: 19, + DAILY: 20, + TWO_DAILY: 21, + WEEKLY: 22, + MONTHLY: 23, + QUARTERLY: 24, + BIANNUAL: 25, + ANNUAL: 26, + DECADAL: 27, + CENTENNIAL: 28, + NUM_GRANULARITIES: 29 +}; + +exports.Granularity = Granularity; +// Date components enumeration (in the order of the arguments in Date) +// TODO: make this an @enum +var DateField = { + DATEFIELD_Y: 0, + DATEFIELD_M: 1, + DATEFIELD_D: 2, + DATEFIELD_HH: 3, + DATEFIELD_MM: 4, + DATEFIELD_SS: 5, + DATEFIELD_MS: 6, + NUM_DATEFIELDS: 7 +}; + +/** + * The value of datefield will start at an even multiple of "step", i.e. + * if datefield=SS and step=5 then the first tick will be on a multiple of 5s. + * + * For granularities <= HOURLY, ticks are generated every `spacing` ms. + * + * At coarser granularities, ticks are generated by incrementing `datefield` by + * `step`. In this case, the `spacing` value is only used to estimate the + * number of ticks. It should roughly correspond to the spacing between + * adjacent ticks. + * + * @type {Array.<{datefield:number, step:number, spacing:number}>} + */ +var TICK_PLACEMENT = []; +TICK_PLACEMENT[Granularity.MILLISECONDLY] = { datefield: DateField.DATEFIELD_MS, step: 1, spacing: 1 }; +TICK_PLACEMENT[Granularity.TWO_MILLISECONDLY] = { datefield: DateField.DATEFIELD_MS, step: 2, spacing: 2 }; +TICK_PLACEMENT[Granularity.FIVE_MILLISECONDLY] = { datefield: DateField.DATEFIELD_MS, step: 5, spacing: 5 }; +TICK_PLACEMENT[Granularity.TEN_MILLISECONDLY] = { datefield: DateField.DATEFIELD_MS, step: 10, spacing: 10 }; +TICK_PLACEMENT[Granularity.FIFTY_MILLISECONDLY] = { datefield: DateField.DATEFIELD_MS, step: 50, spacing: 50 }; +TICK_PLACEMENT[Granularity.HUNDRED_MILLISECONDLY] = { datefield: DateField.DATEFIELD_MS, step: 100, spacing: 100 }; +TICK_PLACEMENT[Granularity.FIVE_HUNDRED_MILLISECONDLY] = { datefield: DateField.DATEFIELD_MS, step: 500, spacing: 500 }; +TICK_PLACEMENT[Granularity.SECONDLY] = { datefield: DateField.DATEFIELD_SS, step: 1, spacing: 1000 * 1 }; +TICK_PLACEMENT[Granularity.TWO_SECONDLY] = { datefield: DateField.DATEFIELD_SS, step: 2, spacing: 1000 * 2 }; +TICK_PLACEMENT[Granularity.FIVE_SECONDLY] = { datefield: DateField.DATEFIELD_SS, step: 5, spacing: 1000 * 5 }; +TICK_PLACEMENT[Granularity.TEN_SECONDLY] = { datefield: DateField.DATEFIELD_SS, step: 10, spacing: 1000 * 10 }; +TICK_PLACEMENT[Granularity.THIRTY_SECONDLY] = { datefield: DateField.DATEFIELD_SS, step: 30, spacing: 1000 * 30 }; +TICK_PLACEMENT[Granularity.MINUTELY] = { datefield: DateField.DATEFIELD_MM, step: 1, spacing: 1000 * 60 }; +TICK_PLACEMENT[Granularity.TWO_MINUTELY] = { datefield: DateField.DATEFIELD_MM, step: 2, spacing: 1000 * 60 * 2 }; +TICK_PLACEMENT[Granularity.FIVE_MINUTELY] = { datefield: DateField.DATEFIELD_MM, step: 5, spacing: 1000 * 60 * 5 }; +TICK_PLACEMENT[Granularity.TEN_MINUTELY] = { datefield: DateField.DATEFIELD_MM, step: 10, spacing: 1000 * 60 * 10 }; +TICK_PLACEMENT[Granularity.THIRTY_MINUTELY] = { datefield: DateField.DATEFIELD_MM, step: 30, spacing: 1000 * 60 * 30 }; +TICK_PLACEMENT[Granularity.HOURLY] = { datefield: DateField.DATEFIELD_HH, step: 1, spacing: 1000 * 3600 }; +TICK_PLACEMENT[Granularity.TWO_HOURLY] = { datefield: DateField.DATEFIELD_HH, step: 2, spacing: 1000 * 3600 * 2 }; +TICK_PLACEMENT[Granularity.SIX_HOURLY] = { datefield: DateField.DATEFIELD_HH, step: 6, spacing: 1000 * 3600 * 6 }; +TICK_PLACEMENT[Granularity.DAILY] = { datefield: DateField.DATEFIELD_D, step: 1, spacing: 1000 * 86400 }; +TICK_PLACEMENT[Granularity.TWO_DAILY] = { datefield: DateField.DATEFIELD_D, step: 2, spacing: 1000 * 86400 * 2 }; +TICK_PLACEMENT[Granularity.WEEKLY] = { datefield: DateField.DATEFIELD_D, step: 7, spacing: 1000 * 604800 }; +TICK_PLACEMENT[Granularity.MONTHLY] = { datefield: DateField.DATEFIELD_M, step: 1, spacing: 1000 * 7200 * 365.2524 }; // 1e3 * 60 * 60 * 24 * 365.2524 / 12 +TICK_PLACEMENT[Granularity.QUARTERLY] = { datefield: DateField.DATEFIELD_M, step: 3, spacing: 1000 * 21600 * 365.2524 }; // 1e3 * 60 * 60 * 24 * 365.2524 / 4 +TICK_PLACEMENT[Granularity.BIANNUAL] = { datefield: DateField.DATEFIELD_M, step: 6, spacing: 1000 * 43200 * 365.2524 }; // 1e3 * 60 * 60 * 24 * 365.2524 / 2 +TICK_PLACEMENT[Granularity.ANNUAL] = { datefield: DateField.DATEFIELD_Y, step: 1, spacing: 1000 * 86400 * 365.2524 }; // 1e3 * 60 * 60 * 24 * 365.2524 * 1 +TICK_PLACEMENT[Granularity.DECADAL] = { datefield: DateField.DATEFIELD_Y, step: 10, spacing: 1000 * 864000 * 365.2524 }; // 1e3 * 60 * 60 * 24 * 365.2524 * 10 +TICK_PLACEMENT[Granularity.CENTENNIAL] = { datefield: DateField.DATEFIELD_Y, step: 100, spacing: 1000 * 8640000 * 365.2524 }; // 1e3 * 60 * 60 * 24 * 365.2524 * 100 + +/** + * This is a list of human-friendly values at which to show tick marks on a log + * scale. It is k * 10^n, where k=1..9 and n=-39..+39, so: + * ..., 1, 2, 3, 4, 5, ..., 9, 10, 20, 30, ..., 90, 100, 200, 300, ... + * NOTE: this assumes that utils.LOG_SCALE = 10. + * @type {Array.} + */ +var PREFERRED_LOG_TICK_VALUES = (function () { + var vals = []; + for (var power = -39; power <= 39; power++) { + var range = Math.pow(10, power); + for (var mult = 1; mult <= 9; mult++) { + var val = range * mult; + vals.push(val); + } + } + return vals; +})(); + +/** + * Determine the correct granularity of ticks on a date axis. + * + * @param {number} a Left edge of the chart (ms) + * @param {number} b Right edge of the chart (ms) + * @param {number} pixels Size of the chart in the relevant dimension (width). + * @param {function(string):*} opts Function mapping from option name -> value. + * @return {number} The appropriate axis granularity for this chart. See the + * enumeration of possible values in dygraph-tickers.js. + */ +var pickDateTickGranularity = function pickDateTickGranularity(a, b, pixels, opts) { + var pixels_per_tick = /** @type{number} */opts('pixelsPerLabel'); + for (var i = 0; i < Granularity.NUM_GRANULARITIES; i++) { + var num_ticks = numDateTicks(a, b, i); + if (pixels / num_ticks >= pixels_per_tick) { + return i; + } + } + return -1; +}; + +/** + * Compute the number of ticks on a date axis for a given granularity. + * @param {number} start_time + * @param {number} end_time + * @param {number} granularity (one of the granularities enumerated above) + * @return {number} (Approximate) number of ticks that would result. + */ +var numDateTicks = function numDateTicks(start_time, end_time, granularity) { + var spacing = TICK_PLACEMENT[granularity].spacing; + return Math.round(1.0 * (end_time - start_time) / spacing); +}; + +/** + * Compute the positions and labels of ticks on a date axis for a given granularity. + * @param {number} start_time + * @param {number} end_time + * @param {number} granularity (one of the granularities enumerated above) + * @param {function(string):*} opts Function mapping from option name -> value. + * @param {Dygraph=} dg + * @return {!TickList} + */ +var getDateAxis = function getDateAxis(start_time, end_time, granularity, opts, dg) { + var formatter = /** @type{AxisLabelFormatter} */opts("axisLabelFormatter"); + var utc = opts("labelsUTC"); + var accessors = utc ? utils.DateAccessorsUTC : utils.DateAccessorsLocal; + + var datefield = TICK_PLACEMENT[granularity].datefield; + var step = TICK_PLACEMENT[granularity].step; + var spacing = TICK_PLACEMENT[granularity].spacing; + + // Choose a nice tick position before the initial instant. + // Currently, this code deals properly with the existent daily granularities: + // DAILY (with step of 1) and WEEKLY (with step of 7 but specially handled). + // Other daily granularities (say TWO_DAILY) should also be handled specially + // by setting the start_date_offset to 0. + var start_date = new Date(start_time); + var date_array = []; + date_array[DateField.DATEFIELD_Y] = accessors.getFullYear(start_date); + date_array[DateField.DATEFIELD_M] = accessors.getMonth(start_date); + date_array[DateField.DATEFIELD_D] = accessors.getDate(start_date); + date_array[DateField.DATEFIELD_HH] = accessors.getHours(start_date); + date_array[DateField.DATEFIELD_MM] = accessors.getMinutes(start_date); + date_array[DateField.DATEFIELD_SS] = accessors.getSeconds(start_date); + date_array[DateField.DATEFIELD_MS] = accessors.getMilliseconds(start_date); + + var start_date_offset = date_array[datefield] % step; + if (granularity == Granularity.WEEKLY) { + // This will put the ticks on Sundays. + start_date_offset = accessors.getDay(start_date); + } + + date_array[datefield] -= start_date_offset; + for (var df = datefield + 1; df < DateField.NUM_DATEFIELDS; df++) { + // The minimum value is 1 for the day of month, and 0 for all other fields. + date_array[df] = df === DateField.DATEFIELD_D ? 1 : 0; + } + + // Generate the ticks. + // For granularities not coarser than HOURLY we use the fact that: + // the number of milliseconds between ticks is constant + // and equal to the defined spacing. + // Otherwise we rely on the 'roll over' property of the Date functions: + // when some date field is set to a value outside of its logical range, + // the excess 'rolls over' the next (more significant) field. + // However, when using local time with DST transitions, + // there are dates that do not represent any time value at all + // (those in the hour skipped at the 'spring forward'), + // and the JavaScript engines usually return an equivalent value. + // Hence we have to check that the date is properly increased at each step, + // returning a date at a nice tick position. + var ticks = []; + var tick_date = accessors.makeDate.apply(null, date_array); + var tick_time = tick_date.getTime(); + if (granularity <= Granularity.HOURLY) { + if (tick_time < start_time) { + tick_time += spacing; + tick_date = new Date(tick_time); + } + while (tick_time <= end_time) { + ticks.push({ v: tick_time, + label: formatter.call(dg, tick_date, granularity, opts, dg) + }); + tick_time += spacing; + tick_date = new Date(tick_time); + } + } else { + if (tick_time < start_time) { + date_array[datefield] += step; + tick_date = accessors.makeDate.apply(null, date_array); + tick_time = tick_date.getTime(); + } + while (tick_time <= end_time) { + if (granularity >= Granularity.DAILY || accessors.getHours(tick_date) % step === 0) { + ticks.push({ v: tick_time, + label: formatter.call(dg, tick_date, granularity, opts, dg) + }); + } + date_array[datefield] += step; + tick_date = accessors.makeDate.apply(null, date_array); + tick_time = tick_date.getTime(); + } + } + return ticks; +}; +exports.getDateAxis = getDateAxis; + +},{"./dygraph-utils":17}],17:[function(require,module,exports){ +/** + * @license + * Copyright 2011 Dan Vanderkam (danvdk@gmail.com) + * MIT-licensed (http://opensource.org/licenses/MIT) + */ + +/** + * @fileoverview This file contains utility functions used by dygraphs. These + * are typically static (i.e. not related to any particular dygraph). Examples + * include date/time formatting functions, basic algorithms (e.g. binary + * search) and generic DOM-manipulation functions. + */ + +/*global Dygraph:false, Node:false */ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.removeEvent = removeEvent; +exports.cancelEvent = cancelEvent; +exports.hsvToRGB = hsvToRGB; +exports.findPos = findPos; +exports.pageX = pageX; +exports.pageY = pageY; +exports.dragGetX_ = dragGetX_; +exports.dragGetY_ = dragGetY_; +exports.isOK = isOK; +exports.isValidPoint = isValidPoint; +exports.floatFormat = floatFormat; +exports.zeropad = zeropad; +exports.hmsString_ = hmsString_; +exports.dateString_ = dateString_; +exports.round_ = round_; +exports.binarySearch = binarySearch; +exports.dateParser = dateParser; +exports.dateStrToMillis = dateStrToMillis; +exports.update = update; +exports.updateDeep = updateDeep; +exports.isArrayLike = isArrayLike; +exports.isDateLike = isDateLike; +exports.clone = clone; +exports.createCanvas = createCanvas; +exports.getContextPixelRatio = getContextPixelRatio; +exports.Iterator = Iterator; +exports.createIterator = createIterator; +exports.repeatAndCleanup = repeatAndCleanup; +exports.isPixelChangingOptionList = isPixelChangingOptionList; +exports.detectLineDelimiter = detectLineDelimiter; +exports.isNodeContainedBy = isNodeContainedBy; +exports.pow = pow; +exports.toRGB_ = toRGB_; +exports.isCanvasSupported = isCanvasSupported; +exports.parseFloat_ = parseFloat_; +exports.numberValueFormatter = numberValueFormatter; +exports.numberAxisLabelFormatter = numberAxisLabelFormatter; +exports.dateAxisLabelFormatter = dateAxisLabelFormatter; +exports.dateValueFormatter = dateValueFormatter; + +function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj["default"] = obj; return newObj; } } + +var _dygraphTickers = require('./dygraph-tickers'); + +var DygraphTickers = _interopRequireWildcard(_dygraphTickers); + +var LOG_SCALE = 10; +exports.LOG_SCALE = LOG_SCALE; +var LN_TEN = Math.log(LOG_SCALE); + +exports.LN_TEN = LN_TEN; +/** + * @private + * @param {number} x + * @return {number} + */ +var log10 = function log10(x) { + return Math.log(x) / LN_TEN; +}; + +exports.log10 = log10; +/** + * @private + * @param {number} r0 + * @param {number} r1 + * @param {number} pct + * @return {number} + */ +var logRangeFraction = function logRangeFraction(r0, r1, pct) { + // Computing the inverse of toPercentXCoord. The function was arrived at with + // the following steps: + // + // Original calcuation: + // pct = (log(x) - log(xRange[0])) / (log(xRange[1]) - log(xRange[0]))); + // + // Multiply both sides by the right-side denominator. + // pct * (log(xRange[1] - log(xRange[0]))) = log(x) - log(xRange[0]) + // + // add log(xRange[0]) to both sides + // log(xRange[0]) + (pct * (log(xRange[1]) - log(xRange[0])) = log(x); + // + // Swap both sides of the equation, + // log(x) = log(xRange[0]) + (pct * (log(xRange[1]) - log(xRange[0])) + // + // Use both sides as the exponent in 10^exp and we're done. + // x = 10 ^ (log(xRange[0]) + (pct * (log(xRange[1]) - log(xRange[0]))) + + var logr0 = log10(r0); + var logr1 = log10(r1); + var exponent = logr0 + pct * (logr1 - logr0); + var value = Math.pow(LOG_SCALE, exponent); + return value; +}; + +exports.logRangeFraction = logRangeFraction; +/** A dotted line stroke pattern. */ +var DOTTED_LINE = [2, 2]; +exports.DOTTED_LINE = DOTTED_LINE; +/** A dashed line stroke pattern. */ +var DASHED_LINE = [7, 3]; +exports.DASHED_LINE = DASHED_LINE; +/** A dot dash stroke pattern. */ +var DOT_DASH_LINE = [7, 2, 2, 2]; + +exports.DOT_DASH_LINE = DOT_DASH_LINE; +// Directions for panning and zooming. Use bit operations when combined +// values are possible. +var HORIZONTAL = 1; +exports.HORIZONTAL = HORIZONTAL; +var VERTICAL = 2; + +exports.VERTICAL = VERTICAL; +/** + * Return the 2d context for a dygraph canvas. + * + * This method is only exposed for the sake of replacing the function in + * automated tests. + * + * @param {!HTMLCanvasElement} canvas + * @return {!CanvasRenderingContext2D} + * @private + */ +var getContext = function getContext(canvas) { + return (/** @type{!CanvasRenderingContext2D}*/canvas.getContext("2d") + ); +}; + +exports.getContext = getContext; +/** + * Add an event handler. + * @param {!Node} elem The element to add the event to. + * @param {string} type The type of the event, e.g. 'click' or 'mousemove'. + * @param {function(Event):(boolean|undefined)} fn The function to call + * on the event. The function takes one parameter: the event object. + * @private + */ +var addEvent = function addEvent(elem, type, fn) { + elem.addEventListener(type, fn, false); +}; + +exports.addEvent = addEvent; +/** + * Remove an event handler. + * @param {!Node} elem The element to remove the event from. + * @param {string} type The type of the event, e.g. 'click' or 'mousemove'. + * @param {function(Event):(boolean|undefined)} fn The function to call + * on the event. The function takes one parameter: the event object. + */ + +function removeEvent(elem, type, fn) { + elem.removeEventListener(type, fn, false); +} + +; + +/** + * Cancels further processing of an event. This is useful to prevent default + * browser actions, e.g. highlighting text on a double-click. + * Based on the article at + * http://www.switchonthecode.com/tutorials/javascript-tutorial-the-scroll-wheel + * @param {!Event} e The event whose normal behavior should be canceled. + * @private + */ + +function cancelEvent(e) { + e = e ? e : window.event; + if (e.stopPropagation) { + e.stopPropagation(); + } + if (e.preventDefault) { + e.preventDefault(); + } + e.cancelBubble = true; + e.cancel = true; + e.returnValue = false; + return false; +} + +; + +/** + * Convert hsv values to an rgb(r,g,b) string. Taken from MochiKit.Color. This + * is used to generate default series colors which are evenly spaced on the + * color wheel. + * @param { number } hue Range is 0.0-1.0. + * @param { number } saturation Range is 0.0-1.0. + * @param { number } value Range is 0.0-1.0. + * @return { string } "rgb(r,g,b)" where r, g and b range from 0-255. + * @private + */ + +function hsvToRGB(hue, saturation, value) { + var red; + var green; + var blue; + if (saturation === 0) { + red = value; + green = value; + blue = value; + } else { + var i = Math.floor(hue * 6); + var f = hue * 6 - i; + var p = value * (1 - saturation); + var q = value * (1 - saturation * f); + var t = value * (1 - saturation * (1 - f)); + switch (i) { + case 1: + red = q;green = value;blue = p;break; + case 2: + red = p;green = value;blue = t;break; + case 3: + red = p;green = q;blue = value;break; + case 4: + red = t;green = p;blue = value;break; + case 5: + red = value;green = p;blue = q;break; + case 6: // fall through + case 0: + red = value;green = t;blue = p;break; + } + } + red = Math.floor(255 * red + 0.5); + green = Math.floor(255 * green + 0.5); + blue = Math.floor(255 * blue + 0.5); + return 'rgb(' + red + ',' + green + ',' + blue + ')'; +} + +; + +/** + * Find the coordinates of an object relative to the top left of the page. + * + * @param {Node} obj + * @return {{x:number,y:number}} + * @private + */ + +function findPos(obj) { + var p = obj.getBoundingClientRect(), + w = window, + d = document.documentElement; + + return { + x: p.left + (w.pageXOffset || d.scrollLeft), + y: p.top + (w.pageYOffset || d.scrollTop) + }; +} + +; + +/** + * Returns the x-coordinate of the event in a coordinate system where the + * top-left corner of the page (not the window) is (0,0). + * Taken from MochiKit.Signal + * @param {!Event} e + * @return {number} + * @private + */ + +function pageX(e) { + return !e.pageX || e.pageX < 0 ? 0 : e.pageX; +} + +; + +/** + * Returns the y-coordinate of the event in a coordinate system where the + * top-left corner of the page (not the window) is (0,0). + * Taken from MochiKit.Signal + * @param {!Event} e + * @return {number} + * @private + */ + +function pageY(e) { + return !e.pageY || e.pageY < 0 ? 0 : e.pageY; +} + +; + +/** + * Converts page the x-coordinate of the event to pixel x-coordinates on the + * canvas (i.e. DOM Coords). + * @param {!Event} e Drag event. + * @param {!DygraphInteractionContext} context Interaction context object. + * @return {number} The amount by which the drag has moved to the right. + */ + +function dragGetX_(e, context) { + return pageX(e) - context.px; +} + +; + +/** + * Converts page the y-coordinate of the event to pixel y-coordinates on the + * canvas (i.e. DOM Coords). + * @param {!Event} e Drag event. + * @param {!DygraphInteractionContext} context Interaction context object. + * @return {number} The amount by which the drag has moved down. + */ + +function dragGetY_(e, context) { + return pageY(e) - context.py; +} + +; + +/** + * This returns true unless the parameter is 0, null, undefined or NaN. + * TODO(danvk): rename this function to something like 'isNonZeroNan'. + * + * @param {number} x The number to consider. + * @return {boolean} Whether the number is zero or NaN. + * @private + */ + +function isOK(x) { + return !!x && !isNaN(x); +} + +; + +/** + * @param {{x:?number,y:?number,yval:?number}} p The point to consider, valid + * points are {x, y} objects + * @param {boolean=} opt_allowNaNY Treat point with y=NaN as valid + * @return {boolean} Whether the point has numeric x and y. + * @private + */ + +function isValidPoint(p, opt_allowNaNY) { + if (!p) return false; // null or undefined object + if (p.yval === null) return false; // missing point + if (p.x === null || p.x === undefined) return false; + if (p.y === null || p.y === undefined) return false; + if (isNaN(p.x) || !opt_allowNaNY && isNaN(p.y)) return false; + return true; +} + +; + +/** + * Number formatting function which mimics the behavior of %g in printf, i.e. + * either exponential or fixed format (without trailing 0s) is used depending on + * the length of the generated string. The advantage of this format is that + * there is a predictable upper bound on the resulting string length, + * significant figures are not dropped, and normal numbers are not displayed in + * exponential notation. + * + * NOTE: JavaScript's native toPrecision() is NOT a drop-in replacement for %g. + * It creates strings which are too long for absolute values between 10^-4 and + * 10^-6, e.g. '0.00001' instead of '1e-5'. See tests/number-format.html for + * output examples. + * + * @param {number} x The number to format + * @param {number=} opt_precision The precision to use, default 2. + * @return {string} A string formatted like %g in printf. The max generated + * string length should be precision + 6 (e.g 1.123e+300). + */ + +function floatFormat(x, opt_precision) { + // Avoid invalid precision values; [1, 21] is the valid range. + var p = Math.min(Math.max(1, opt_precision || 2), 21); + + // This is deceptively simple. The actual algorithm comes from: + // + // Max allowed length = p + 4 + // where 4 comes from 'e+n' and '.'. + // + // Length of fixed format = 2 + y + p + // where 2 comes from '0.' and y = # of leading zeroes. + // + // Equating the two and solving for y yields y = 2, or 0.00xxxx which is + // 1.0e-3. + // + // Since the behavior of toPrecision() is identical for larger numbers, we + // don't have to worry about the other bound. + // + // Finally, the argument for toExponential() is the number of trailing digits, + // so we take off 1 for the value before the '.'. + return Math.abs(x) < 1.0e-3 && x !== 0.0 ? x.toExponential(p - 1) : x.toPrecision(p); +} + +; + +/** + * Converts '9' to '09' (useful for dates) + * @param {number} x + * @return {string} + * @private + */ + +function zeropad(x) { + if (x < 10) return "0" + x;else return "" + x; +} + +; + +/** + * Date accessors to get the parts of a calendar date (year, month, + * day, hour, minute, second and millisecond) according to local time, + * and factory method to call the Date constructor with an array of arguments. + */ +var DateAccessorsLocal = { + getFullYear: function getFullYear(d) { + return d.getFullYear(); + }, + getMonth: function getMonth(d) { + return d.getMonth(); + }, + getDate: function getDate(d) { + return d.getDate(); + }, + getHours: function getHours(d) { + return d.getHours(); + }, + getMinutes: function getMinutes(d) { + return d.getMinutes(); + }, + getSeconds: function getSeconds(d) { + return d.getSeconds(); + }, + getMilliseconds: function getMilliseconds(d) { + return d.getMilliseconds(); + }, + getDay: function getDay(d) { + return d.getDay(); + }, + makeDate: function makeDate(y, m, d, hh, mm, ss, ms) { + return new Date(y, m, d, hh, mm, ss, ms); + } +}; + +exports.DateAccessorsLocal = DateAccessorsLocal; +/** + * Date accessors to get the parts of a calendar date (year, month, + * day of month, hour, minute, second and millisecond) according to UTC time, + * and factory method to call the Date constructor with an array of arguments. + */ +var DateAccessorsUTC = { + getFullYear: function getFullYear(d) { + return d.getUTCFullYear(); + }, + getMonth: function getMonth(d) { + return d.getUTCMonth(); + }, + getDate: function getDate(d) { + return d.getUTCDate(); + }, + getHours: function getHours(d) { + return d.getUTCHours(); + }, + getMinutes: function getMinutes(d) { + return d.getUTCMinutes(); + }, + getSeconds: function getSeconds(d) { + return d.getUTCSeconds(); + }, + getMilliseconds: function getMilliseconds(d) { + return d.getUTCMilliseconds(); + }, + getDay: function getDay(d) { + return d.getUTCDay(); + }, + makeDate: function makeDate(y, m, d, hh, mm, ss, ms) { + return new Date(Date.UTC(y, m, d, hh, mm, ss, ms)); + } +}; + +exports.DateAccessorsUTC = DateAccessorsUTC; +/** + * Return a string version of the hours, minutes and seconds portion of a date. + * @param {number} hh The hours (from 0-23) + * @param {number} mm The minutes (from 0-59) + * @param {number} ss The seconds (from 0-59) + * @return {string} A time of the form "HH:MM" or "HH:MM:SS" + * @private + */ + +function hmsString_(hh, mm, ss, ms) { + var ret = zeropad(hh) + ":" + zeropad(mm); + if (ss) { + ret += ":" + zeropad(ss); + if (ms) { + var str = "" + ms; + ret += "." + ('000' + str).substring(str.length); + } + } + return ret; +} + +; + +/** + * Convert a JS date (millis since epoch) to a formatted string. + * @param {number} time The JavaScript time value (ms since epoch) + * @param {boolean} utc Whether output UTC or local time + * @return {string} A date of one of these forms: + * "YYYY/MM/DD", "YYYY/MM/DD HH:MM" or "YYYY/MM/DD HH:MM:SS" + * @private + */ + +function dateString_(time, utc) { + var accessors = utc ? DateAccessorsUTC : DateAccessorsLocal; + var date = new Date(time); + var y = accessors.getFullYear(date); + var m = accessors.getMonth(date); + var d = accessors.getDate(date); + var hh = accessors.getHours(date); + var mm = accessors.getMinutes(date); + var ss = accessors.getSeconds(date); + var ms = accessors.getMilliseconds(date); + // Get a year string: + var year = "" + y; + // Get a 0 padded month string + var month = zeropad(m + 1); //months are 0-offset, sigh + // Get a 0 padded day string + var day = zeropad(d); + var frac = hh * 3600 + mm * 60 + ss + 1e-3 * ms; + var ret = year + "/" + month + "/" + day; + if (frac) { + ret += " " + hmsString_(hh, mm, ss, ms); + } + return ret; +} + +; + +/** + * Round a number to the specified number of digits past the decimal point. + * @param {number} num The number to round + * @param {number} places The number of decimals to which to round + * @return {number} The rounded number + * @private + */ + +function round_(num, places) { + var shift = Math.pow(10, places); + return Math.round(num * shift) / shift; +} + +; + +/** + * Implementation of binary search over an array. + * Currently does not work when val is outside the range of arry's values. + * @param {number} val the value to search for + * @param {Array.} arry is the value over which to search + * @param {number} abs If abs > 0, find the lowest entry greater than val + * If abs < 0, find the highest entry less than val. + * If abs == 0, find the entry that equals val. + * @param {number=} low The first index in arry to consider (optional) + * @param {number=} high The last index in arry to consider (optional) + * @return {number} Index of the element, or -1 if it isn't found. + * @private + */ + +function binarySearch(_x, _x2, _x3, _x4, _x5) { + var _again = true; + + _function: while (_again) { + var val = _x, + arry = _x2, + abs = _x3, + low = _x4, + high = _x5; + _again = false; + + if (low === null || low === undefined || high === null || high === undefined) { + low = 0; + high = arry.length - 1; + } + if (low > high) { + return -1; + } + if (abs === null || abs === undefined) { + abs = 0; + } + var validIndex = function validIndex(idx) { + return idx >= 0 && idx < arry.length; + }; + var mid = parseInt((low + high) / 2, 10); + var element = arry[mid]; + var idx; + if (element == val) { + return mid; + } else if (element > val) { + if (abs > 0) { + // Accept if element > val, but also if prior element < val. + idx = mid - 1; + if (validIndex(idx) && arry[idx] < val) { + return mid; + } + } + _x = val; + _x2 = arry; + _x3 = abs; + _x4 = low; + _x5 = mid - 1; + _again = true; + validIndex = mid = element = idx = undefined; + continue _function; + } else if (element < val) { + if (abs < 0) { + // Accept if element < val, but also if prior element > val. + idx = mid + 1; + if (validIndex(idx) && arry[idx] > val) { + return mid; + } + } + _x = val; + _x2 = arry; + _x3 = abs; + _x4 = mid + 1; + _x5 = high; + _again = true; + validIndex = mid = element = idx = undefined; + continue _function; + } + return -1; // can't actually happen, but makes closure compiler happy + } +} + +; + +/** + * Parses a date, returning the number of milliseconds since epoch. This can be + * passed in as an xValueParser in the Dygraph constructor. + * TODO(danvk): enumerate formats that this understands. + * + * @param {string} dateStr A date in a variety of possible string formats. + * @return {number} Milliseconds since epoch. + * @private + */ + +function dateParser(dateStr) { + var dateStrSlashed; + var d; + + // Let the system try the format first, with one caveat: + // YYYY-MM-DD[ HH:MM:SS] is interpreted as UTC by a variety of browsers. + // dygraphs displays dates in local time, so this will result in surprising + // inconsistencies. But if you specify "T" or "Z" (i.e. YYYY-MM-DDTHH:MM:SS), + // then you probably know what you're doing, so we'll let you go ahead. + // Issue: http://code.google.com/p/dygraphs/issues/detail?id=255 + if (dateStr.search("-") == -1 || dateStr.search("T") != -1 || dateStr.search("Z") != -1) { + d = dateStrToMillis(dateStr); + if (d && !isNaN(d)) return d; + } + + if (dateStr.search("-") != -1) { + // e.g. '2009-7-12' or '2009-07-12' + dateStrSlashed = dateStr.replace("-", "/", "g"); + while (dateStrSlashed.search("-") != -1) { + dateStrSlashed = dateStrSlashed.replace("-", "/"); + } + d = dateStrToMillis(dateStrSlashed); + } else if (dateStr.length == 8) { + // e.g. '20090712' + // TODO(danvk): remove support for this format. It's confusing. + dateStrSlashed = dateStr.substr(0, 4) + "/" + dateStr.substr(4, 2) + "/" + dateStr.substr(6, 2); + d = dateStrToMillis(dateStrSlashed); + } else { + // Any format that Date.parse will accept, e.g. "2009/07/12" or + // "2009/07/12 12:34:56" + d = dateStrToMillis(dateStr); + } + + if (!d || isNaN(d)) { + console.error("Couldn't parse " + dateStr + " as a date"); + } + return d; +} + +; + +/** + * This is identical to JavaScript's built-in Date.parse() method, except that + * it doesn't get replaced with an incompatible method by aggressive JS + * libraries like MooTools or Joomla. + * @param {string} str The date string, e.g. "2011/05/06" + * @return {number} millis since epoch + * @private + */ + +function dateStrToMillis(str) { + return new Date(str).getTime(); +} + +; + +// These functions are all based on MochiKit. +/** + * Copies all the properties from o to self. + * + * @param {!Object} self + * @param {!Object} o + * @return {!Object} + */ + +function update(self, o) { + if (typeof o != 'undefined' && o !== null) { + for (var k in o) { + if (o.hasOwnProperty(k)) { + self[k] = o[k]; + } + } + } + return self; +} + +; + +/** + * Copies all the properties from o to self. + * + * @param {!Object} self + * @param {!Object} o + * @return {!Object} + * @private + */ + +function updateDeep(self, o) { + // Taken from http://stackoverflow.com/questions/384286/javascript-isdom-how-do-you-check-if-a-javascript-object-is-a-dom-object + function isNode(o) { + return typeof Node === "object" ? o instanceof Node : typeof o === "object" && typeof o.nodeType === "number" && typeof o.nodeName === "string"; + } + + if (typeof o != 'undefined' && o !== null) { + for (var k in o) { + if (o.hasOwnProperty(k)) { + if (o[k] === null) { + self[k] = null; + } else if (isArrayLike(o[k])) { + self[k] = o[k].slice(); + } else if (isNode(o[k])) { + // DOM objects are shallowly-copied. + self[k] = o[k]; + } else if (typeof o[k] == 'object') { + if (typeof self[k] != 'object' || self[k] === null) { + self[k] = {}; + } + updateDeep(self[k], o[k]); + } else { + self[k] = o[k]; + } + } + } + } + return self; +} + +; + +/** + * @param {*} o + * @return {boolean} + * @private + */ + +function isArrayLike(o) { + var typ = typeof o; + if (typ != 'object' && !(typ == 'function' && typeof o.item == 'function') || o === null || typeof o.length != 'number' || o.nodeType === 3) { + return false; + } + return true; +} + +; + +/** + * @param {Object} o + * @return {boolean} + * @private + */ + +function isDateLike(o) { + if (typeof o != "object" || o === null || typeof o.getTime != 'function') { + return false; + } + return true; +} + +; + +/** + * Note: this only seems to work for arrays. + * @param {!Array} o + * @return {!Array} + * @private + */ + +function clone(o) { + // TODO(danvk): figure out how MochiKit's version works + var r = []; + for (var i = 0; i < o.length; i++) { + if (isArrayLike(o[i])) { + r.push(clone(o[i])); + } else { + r.push(o[i]); + } + } + return r; +} + +; + +/** + * Create a new canvas element. + * + * @return {!HTMLCanvasElement} + * @private + */ + +function createCanvas() { + return document.createElement('canvas'); +} + +; + +/** + * Returns the context's pixel ratio, which is the ratio between the device + * pixel ratio and the backing store ratio. Typically this is 1 for conventional + * displays, and > 1 for HiDPI displays (such as the Retina MBP). + * See http://www.html5rocks.com/en/tutorials/canvas/hidpi/ for more details. + * + * @param {!CanvasRenderingContext2D} context The canvas's 2d context. + * @return {number} The ratio of the device pixel ratio and the backing store + * ratio for the specified context. + */ + +function getContextPixelRatio(context) { + try { + var devicePixelRatio = window.devicePixelRatio; + var backingStoreRatio = context.webkitBackingStorePixelRatio || context.mozBackingStorePixelRatio || context.msBackingStorePixelRatio || context.oBackingStorePixelRatio || context.backingStorePixelRatio || 1; + if (devicePixelRatio !== undefined) { + return devicePixelRatio / backingStoreRatio; + } else { + // At least devicePixelRatio must be defined for this ratio to make sense. + // We default backingStoreRatio to 1: this does not exist on some browsers + // (i.e. desktop Chrome). + return 1; + } + } catch (e) { + return 1; + } +} + +; + +/** + * TODO(danvk): use @template here when it's better supported for classes. + * @param {!Array} array + * @param {number} start + * @param {number} length + * @param {function(!Array,?):boolean=} predicate + * @constructor + */ + +function Iterator(array, start, length, predicate) { + start = start || 0; + length = length || array.length; + this.hasNext = true; // Use to identify if there's another element. + this.peek = null; // Use for look-ahead + this.start_ = start; + this.array_ = array; + this.predicate_ = predicate; + this.end_ = Math.min(array.length, start + length); + this.nextIdx_ = start - 1; // use -1 so initial advance works. + this.next(); // ignoring result. +} + +; + +/** + * @return {Object} + */ +Iterator.prototype.next = function () { + if (!this.hasNext) { + return null; + } + var obj = this.peek; + + var nextIdx = this.nextIdx_ + 1; + var found = false; + while (nextIdx < this.end_) { + if (!this.predicate_ || this.predicate_(this.array_, nextIdx)) { + this.peek = this.array_[nextIdx]; + found = true; + break; + } + nextIdx++; + } + this.nextIdx_ = nextIdx; + if (!found) { + this.hasNext = false; + this.peek = null; + } + return obj; +}; + +/** + * Returns a new iterator over array, between indexes start and + * start + length, and only returns entries that pass the accept function + * + * @param {!Array} array the array to iterate over. + * @param {number} start the first index to iterate over, 0 if absent. + * @param {number} length the number of elements in the array to iterate over. + * This, along with start, defines a slice of the array, and so length + * doesn't imply the number of elements in the iterator when accept doesn't + * always accept all values. array.length when absent. + * @param {function(?):boolean=} opt_predicate a function that takes + * parameters array and idx, which returns true when the element should be + * returned. If omitted, all elements are accepted. + * @private + */ + +function createIterator(array, start, length, opt_predicate) { + return new Iterator(array, start, length, opt_predicate); +} + +; + +// Shim layer with setTimeout fallback. +// From: http://paulirish.com/2011/requestanimationframe-for-smart-animating/ +// Should be called with the window context: +// Dygraph.requestAnimFrame.call(window, function() {}) +var requestAnimFrame = (function () { + return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function (callback) { + window.setTimeout(callback, 1000 / 60); + }; +})(); + +exports.requestAnimFrame = requestAnimFrame; +/** + * Call a function at most maxFrames times at an attempted interval of + * framePeriodInMillis, then call a cleanup function once. repeatFn is called + * once immediately, then at most (maxFrames - 1) times asynchronously. If + * maxFrames==1, then cleanup_fn() is also called synchronously. This function + * is used to sequence animation. + * @param {function(number)} repeatFn Called repeatedly -- takes the frame + * number (from 0 to maxFrames-1) as an argument. + * @param {number} maxFrames The max number of times to call repeatFn + * @param {number} framePeriodInMillis Max requested time between frames. + * @param {function()} cleanupFn A function to call after all repeatFn calls. + * @private + */ + +function repeatAndCleanup(repeatFn, maxFrames, framePeriodInMillis, cleanupFn) { + var frameNumber = 0; + var previousFrameNumber; + var startTime = new Date().getTime(); + repeatFn(frameNumber); + if (maxFrames == 1) { + cleanupFn(); + return; + } + var maxFrameArg = maxFrames - 1; + + (function loop() { + if (frameNumber >= maxFrames) return; + requestAnimFrame.call(window, function () { + // Determine which frame to draw based on the delay so far. Will skip + // frames if necessary. + var currentTime = new Date().getTime(); + var delayInMillis = currentTime - startTime; + previousFrameNumber = frameNumber; + frameNumber = Math.floor(delayInMillis / framePeriodInMillis); + var frameDelta = frameNumber - previousFrameNumber; + // If we predict that the subsequent repeatFn call will overshoot our + // total frame target, so our last call will cause a stutter, then jump to + // the last call immediately. If we're going to cause a stutter, better + // to do it faster than slower. + var predictOvershootStutter = frameNumber + frameDelta > maxFrameArg; + if (predictOvershootStutter || frameNumber >= maxFrameArg) { + repeatFn(maxFrameArg); // Ensure final call with maxFrameArg. + cleanupFn(); + } else { + if (frameDelta !== 0) { + // Don't call repeatFn with duplicate frames. + repeatFn(frameNumber); + } + loop(); + } + }); + })(); +} + +; + +// A whitelist of options that do not change pixel positions. +var pixelSafeOptions = { + 'annotationClickHandler': true, + 'annotationDblClickHandler': true, + 'annotationMouseOutHandler': true, + 'annotationMouseOverHandler': true, + 'axisLineColor': true, + 'axisLineWidth': true, + 'clickCallback': true, + 'drawCallback': true, + 'drawHighlightPointCallback': true, + 'drawPoints': true, + 'drawPointCallback': true, + 'drawGrid': true, + 'fillAlpha': true, + 'gridLineColor': true, + 'gridLineWidth': true, + 'hideOverlayOnMouseOut': true, + 'highlightCallback': true, + 'highlightCircleSize': true, + 'interactionModel': true, + 'labelsDiv': true, + 'labelsKMB': true, + 'labelsKMG2': true, + 'labelsSeparateLines': true, + 'labelsShowZeroValues': true, + 'legend': true, + 'panEdgeFraction': true, + 'pixelsPerYLabel': true, + 'pointClickCallback': true, + 'pointSize': true, + 'rangeSelectorPlotFillColor': true, + 'rangeSelectorPlotFillGradientColor': true, + 'rangeSelectorPlotStrokeColor': true, + 'rangeSelectorBackgroundStrokeColor': true, + 'rangeSelectorBackgroundLineWidth': true, + 'rangeSelectorPlotLineWidth': true, + 'rangeSelectorForegroundStrokeColor': true, + 'rangeSelectorForegroundLineWidth': true, + 'rangeSelectorAlpha': true, + 'showLabelsOnHighlight': true, + 'showRoller': true, + 'strokeWidth': true, + 'underlayCallback': true, + 'unhighlightCallback': true, + 'zoomCallback': true +}; + +/** + * This function will scan the option list and determine if they + * require us to recalculate the pixel positions of each point. + * TODO: move this into dygraph-options.js + * @param {!Array.} labels a list of options to check. + * @param {!Object} attrs + * @return {boolean} true if the graph needs new points else false. + * @private + */ + +function isPixelChangingOptionList(labels, attrs) { + // Assume that we do not require new points. + // This will change to true if we actually do need new points. + + // Create a dictionary of series names for faster lookup. + // If there are no labels, then the dictionary stays empty. + var seriesNamesDictionary = {}; + if (labels) { + for (var i = 1; i < labels.length; i++) { + seriesNamesDictionary[labels[i]] = true; + } + } + + // Scan through a flat (i.e. non-nested) object of options. + // Returns true/false depending on whether new points are needed. + var scanFlatOptions = function scanFlatOptions(options) { + for (var property in options) { + if (options.hasOwnProperty(property) && !pixelSafeOptions[property]) { + return true; + } + } + return false; + }; + + // Iterate through the list of updated options. + for (var property in attrs) { + if (!attrs.hasOwnProperty(property)) continue; + + // Find out of this field is actually a series specific options list. + if (property == 'highlightSeriesOpts' || seriesNamesDictionary[property] && !attrs.series) { + // This property value is a list of options for this series. + if (scanFlatOptions(attrs[property])) return true; + } else if (property == 'series' || property == 'axes') { + // This is twice-nested options list. + var perSeries = attrs[property]; + for (var series in perSeries) { + if (perSeries.hasOwnProperty(series) && scanFlatOptions(perSeries[series])) { + return true; + } + } + } else { + // If this was not a series specific option list, check if it's a pixel + // changing property. + if (!pixelSafeOptions[property]) return true; + } + } + + return false; +} + +; + +var Circles = { + DEFAULT: function DEFAULT(g, name, ctx, canvasx, canvasy, color, radius) { + ctx.beginPath(); + ctx.fillStyle = color; + ctx.arc(canvasx, canvasy, radius, 0, 2 * Math.PI, false); + ctx.fill(); + } + // For more shapes, include extras/shapes.js +}; + +exports.Circles = Circles; +/** + * Determine whether |data| is delimited by CR, CRLF, LF, LFCR. + * @param {string} data + * @return {?string} the delimiter that was detected (or null on failure). + */ + +function detectLineDelimiter(data) { + for (var i = 0; i < data.length; i++) { + var code = data.charAt(i); + if (code === '\r') { + // Might actually be "\r\n". + if (i + 1 < data.length && data.charAt(i + 1) === '\n') { + return '\r\n'; + } + return code; + } + if (code === '\n') { + // Might actually be "\n\r". + if (i + 1 < data.length && data.charAt(i + 1) === '\r') { + return '\n\r'; + } + return code; + } + } + + return null; +} + +; + +/** + * Is one node contained by another? + * @param {Node} containee The contained node. + * @param {Node} container The container node. + * @return {boolean} Whether containee is inside (or equal to) container. + * @private + */ + +function isNodeContainedBy(containee, container) { + if (container === null || containee === null) { + return false; + } + var containeeNode = /** @type {Node} */containee; + while (containeeNode && containeeNode !== container) { + containeeNode = containeeNode.parentNode; + } + return containeeNode === container; +} + +; + +// This masks some numeric issues in older versions of Firefox, +// where 1.0/Math.pow(10,2) != Math.pow(10,-2). +/** @type {function(number,number):number} */ + +function pow(base, exp) { + if (exp < 0) { + return 1.0 / Math.pow(base, -exp); + } + return Math.pow(base, exp); +} + +; + +var RGBA_RE = /^rgba?\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})(?:,\s*([01](?:\.\d+)?))?\)$/; + +/** + * Helper for toRGB_ which parses strings of the form: + * rgb(123, 45, 67) + * rgba(123, 45, 67, 0.5) + * @return parsed {r,g,b,a?} tuple or null. + */ +function parseRGBA(rgbStr) { + var bits = RGBA_RE.exec(rgbStr); + if (!bits) return null; + var r = parseInt(bits[1], 10), + g = parseInt(bits[2], 10), + b = parseInt(bits[3], 10); + if (bits[4]) { + return { r: r, g: g, b: b, a: parseFloat(bits[4]) }; + } else { + return { r: r, g: g, b: b }; + } +} + +/** + * Converts any valid CSS color (hex, rgb(), named color) to an RGB tuple. + * + * @param {!string} colorStr Any valid CSS color string. + * @return {{r:number,g:number,b:number,a:number?}} Parsed RGB tuple. + * @private + */ + +function toRGB_(colorStr) { + // Strategy: First try to parse colorStr directly. This is fast & avoids DOM + // manipulation. If that fails (e.g. for named colors like 'red'), then + // create a hidden DOM element and parse its computed color. + var rgb = parseRGBA(colorStr); + if (rgb) return rgb; + + var div = document.createElement('div'); + div.style.backgroundColor = colorStr; + div.style.visibility = 'hidden'; + document.body.appendChild(div); + var rgbStr = window.getComputedStyle(div, null).backgroundColor; + document.body.removeChild(div); + return parseRGBA(rgbStr); +} + +; + +/** + * Checks whether the browser supports the <canvas> tag. + * @param {HTMLCanvasElement=} opt_canvasElement Pass a canvas element as an + * optimization if you have one. + * @return {boolean} Whether the browser supports canvas. + */ + +function isCanvasSupported(opt_canvasElement) { + try { + var canvas = opt_canvasElement || document.createElement("canvas"); + canvas.getContext("2d"); + } catch (e) { + return false; + } + return true; +} + +; + +/** + * Parses the value as a floating point number. This is like the parseFloat() + * built-in, but with a few differences: + * - the empty string is parsed as null, rather than NaN. + * - if the string cannot be parsed at all, an error is logged. + * If the string can't be parsed, this method returns null. + * @param {string} x The string to be parsed + * @param {number=} opt_line_no The line number from which the string comes. + * @param {string=} opt_line The text of the line from which the string comes. + */ + +function parseFloat_(x, opt_line_no, opt_line) { + var val = parseFloat(x); + if (!isNaN(val)) return val; + + // Try to figure out what happeend. + // If the value is the empty string, parse it as null. + if (/^ *$/.test(x)) return null; + + // If it was actually "NaN", return it as NaN. + if (/^ *nan *$/i.test(x)) return NaN; + + // Looks like a parsing error. + var msg = "Unable to parse '" + x + "' as a number"; + if (opt_line !== undefined && opt_line_no !== undefined) { + msg += " on line " + (1 + (opt_line_no || 0)) + " ('" + opt_line + "') of CSV."; + } + console.error(msg); + + return null; +} + +; + +// Label constants for the labelsKMB and labelsKMG2 options. +// (i.e. '100000' -> '100K') +var KMB_LABELS = ['K', 'M', 'B', 'T', 'Q']; +var KMG2_BIG_LABELS = ['k', 'M', 'G', 'T', 'P', 'E', 'Z', 'Y']; +var KMG2_SMALL_LABELS = ['m', 'u', 'n', 'p', 'f', 'a', 'z', 'y']; + +/** + * @private + * Return a string version of a number. This respects the digitsAfterDecimal + * and maxNumberWidth options. + * @param {number} x The number to be formatted + * @param {Dygraph} opts An options view + */ + +function numberValueFormatter(x, opts) { + var sigFigs = opts('sigFigs'); + + if (sigFigs !== null) { + // User has opted for a fixed number of significant figures. + return floatFormat(x, sigFigs); + } + + var digits = opts('digitsAfterDecimal'); + var maxNumberWidth = opts('maxNumberWidth'); + + var kmb = opts('labelsKMB'); + var kmg2 = opts('labelsKMG2'); + + var label; + + // switch to scientific notation if we underflow or overflow fixed display. + if (x !== 0.0 && (Math.abs(x) >= Math.pow(10, maxNumberWidth) || Math.abs(x) < Math.pow(10, -digits))) { + label = x.toExponential(digits); + } else { + label = '' + round_(x, digits); + } + + if (kmb || kmg2) { + var k; + var k_labels = []; + var m_labels = []; + if (kmb) { + k = 1000; + k_labels = KMB_LABELS; + } + if (kmg2) { + if (kmb) console.warn("Setting both labelsKMB and labelsKMG2. Pick one!"); + k = 1024; + k_labels = KMG2_BIG_LABELS; + m_labels = KMG2_SMALL_LABELS; + } + + var absx = Math.abs(x); + var n = pow(k, k_labels.length); + for (var j = k_labels.length - 1; j >= 0; j--, n /= k) { + if (absx >= n) { + label = round_(x / n, digits) + k_labels[j]; + break; + } + } + if (kmg2) { + // TODO(danvk): clean up this logic. Why so different than kmb? + var x_parts = String(x.toExponential()).split('e-'); + if (x_parts.length === 2 && x_parts[1] >= 3 && x_parts[1] <= 24) { + if (x_parts[1] % 3 > 0) { + label = round_(x_parts[0] / pow(10, x_parts[1] % 3), digits); + } else { + label = Number(x_parts[0]).toFixed(2); + } + label += m_labels[Math.floor(x_parts[1] / 3) - 1]; + } + } + } + + return label; +} + +; + +/** + * variant for use as an axisLabelFormatter. + * @private + */ + +function numberAxisLabelFormatter(x, granularity, opts) { + return numberValueFormatter.call(this, x, opts); +} + +; + +/** + * @type {!Array.} + * @private + * @constant + */ +var SHORT_MONTH_NAMES_ = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; + +/** + * Convert a JS date to a string appropriate to display on an axis that + * is displaying values at the stated granularity. This respects the + * labelsUTC option. + * @param {Date} date The date to format + * @param {number} granularity One of the Dygraph granularity constants + * @param {Dygraph} opts An options view + * @return {string} The date formatted as local time + * @private + */ + +function dateAxisLabelFormatter(date, granularity, opts) { + var utc = opts('labelsUTC'); + var accessors = utc ? DateAccessorsUTC : DateAccessorsLocal; + + var year = accessors.getFullYear(date), + month = accessors.getMonth(date), + day = accessors.getDate(date), + hours = accessors.getHours(date), + mins = accessors.getMinutes(date), + secs = accessors.getSeconds(date), + millis = accessors.getMilliseconds(date); + + if (granularity >= DygraphTickers.Granularity.DECADAL) { + return '' + year; + } else if (granularity >= DygraphTickers.Granularity.MONTHLY) { + return SHORT_MONTH_NAMES_[month] + ' ' + year; + } else { + var frac = hours * 3600 + mins * 60 + secs + 1e-3 * millis; + if (frac === 0 || granularity >= DygraphTickers.Granularity.DAILY) { + // e.g. '21 Jan' (%d%b) + return zeropad(day) + ' ' + SHORT_MONTH_NAMES_[month]; + } else if (granularity < DygraphTickers.Granularity.SECONDLY) { + // e.g. 40.310 (meaning 40 seconds and 310 milliseconds) + var str = "" + millis; + return zeropad(secs) + "." + ('000' + str).substring(str.length); + } else if (granularity > DygraphTickers.Granularity.MINUTELY) { + return hmsString_(hours, mins, secs, 0); + } else { + return hmsString_(hours, mins, secs, millis); + } + } +} + +; +// alias in case anyone is referencing the old method. +// Dygraph.dateAxisFormatter = Dygraph.dateAxisLabelFormatter; + +/** + * Return a string version of a JS date for a value label. This respects the + * labelsUTC option. + * @param {Date} date The date to be formatted + * @param {Dygraph} opts An options view + * @private + */ + +function dateValueFormatter(d, opts) { + return dateString_(d, opts('labelsUTC')); +} + +; + +},{"./dygraph-tickers":16}],18:[function(require,module,exports){ +(function (process){ +/** + * @license + * Copyright 2006 Dan Vanderkam (danvdk@gmail.com) + * MIT-licensed (http://opensource.org/licenses/MIT) + */ /** + * @fileoverview Creates an interactive, zoomable graph based on a CSV file or + * string. Dygraph can handle multiple series with or without error bars. The + * date/value ranges will be automatically set. Dygraph uses the + * <canvas> tag, so it only works in FF1.5+. + * @author danvdk@gmail.com (Dan Vanderkam) + + Usage: +
+ + + The CSV file is of the form + + Date,SeriesA,SeriesB,SeriesC + YYYYMMDD,A1,B1,C1 + YYYYMMDD,A2,B2,C2 + + If the 'errorBars' option is set in the constructor, the input should be of + the form + Date,SeriesA,SeriesB,... + YYYYMMDD,A1,sigmaA1,B1,sigmaB1,... + YYYYMMDD,A2,sigmaA2,B2,sigmaB2,... + + If the 'fractions' option is set, the input should be of the form: + + Date,SeriesA,SeriesB,... + YYYYMMDD,A1/B1,A2/B2,... + YYYYMMDD,A1/B1,A2/B2,... + + And error bars will be calculated automatically using a binomial distribution. + + For further documentation and examples, see http://dygraphs.com/ + */'use strict';Object.defineProperty(exports,'__esModule',{value:true});var _slicedToArray=(function(){function sliceIterator(arr,i){var _arr=[];var _n=true;var _d=false;var _e=undefined;try{for(var _i=arr[Symbol.iterator](),_s;!(_n = (_s = _i.next()).done);_n = true) {_arr.push(_s.value);if(i && _arr.length === i)break;}}catch(err) {_d = true;_e = err;}finally {try{if(!_n && _i['return'])_i['return']();}finally {if(_d)throw _e;}}return _arr;}return function(arr,i){if(Array.isArray(arr)){return arr;}else if(Symbol.iterator in Object(arr)){return sliceIterator(arr,i);}else {throw new TypeError('Invalid attempt to destructure non-iterable instance');}};})();function _interopRequireWildcard(obj){if(obj && obj.__esModule){return obj;}else {var newObj={};if(obj != null){for(var key in obj) {if(Object.prototype.hasOwnProperty.call(obj,key))newObj[key] = obj[key];}}newObj['default'] = obj;return newObj;}}function _interopRequireDefault(obj){return obj && obj.__esModule?obj:{'default':obj};}var _dygraphLayout=require('./dygraph-layout');var _dygraphLayout2=_interopRequireDefault(_dygraphLayout);var _dygraphCanvas=require('./dygraph-canvas');var _dygraphCanvas2=_interopRequireDefault(_dygraphCanvas);var _dygraphOptions=require('./dygraph-options');var _dygraphOptions2=_interopRequireDefault(_dygraphOptions);var _dygraphInteractionModel=require('./dygraph-interaction-model');var _dygraphInteractionModel2=_interopRequireDefault(_dygraphInteractionModel);var _dygraphTickers=require('./dygraph-tickers');var DygraphTickers=_interopRequireWildcard(_dygraphTickers);var _dygraphUtils=require('./dygraph-utils');var utils=_interopRequireWildcard(_dygraphUtils);var _dygraphDefaultAttrs=require('./dygraph-default-attrs');var _dygraphDefaultAttrs2=_interopRequireDefault(_dygraphDefaultAttrs);var _dygraphOptionsReference=require('./dygraph-options-reference');var _dygraphOptionsReference2=_interopRequireDefault(_dygraphOptionsReference);var _iframeTarp=require('./iframe-tarp');var _iframeTarp2=_interopRequireDefault(_iframeTarp);var _datahandlerDefault=require('./datahandler/default');var _datahandlerDefault2=_interopRequireDefault(_datahandlerDefault);var _datahandlerBarsError=require('./datahandler/bars-error');var _datahandlerBarsError2=_interopRequireDefault(_datahandlerBarsError);var _datahandlerBarsCustom=require('./datahandler/bars-custom');var _datahandlerBarsCustom2=_interopRequireDefault(_datahandlerBarsCustom);var _datahandlerDefaultFractions=require('./datahandler/default-fractions');var _datahandlerDefaultFractions2=_interopRequireDefault(_datahandlerDefaultFractions);var _datahandlerBarsFractions=require('./datahandler/bars-fractions');var _datahandlerBarsFractions2=_interopRequireDefault(_datahandlerBarsFractions);var _datahandlerBars=require('./datahandler/bars');var _datahandlerBars2=_interopRequireDefault(_datahandlerBars);var _pluginsAnnotations=require('./plugins/annotations');var _pluginsAnnotations2=_interopRequireDefault(_pluginsAnnotations);var _pluginsAxes=require('./plugins/axes');var _pluginsAxes2=_interopRequireDefault(_pluginsAxes);var _pluginsChartLabels=require('./plugins/chart-labels');var _pluginsChartLabels2=_interopRequireDefault(_pluginsChartLabels);var _pluginsGrid=require('./plugins/grid');var _pluginsGrid2=_interopRequireDefault(_pluginsGrid);var _pluginsLegend=require('./plugins/legend');var _pluginsLegend2=_interopRequireDefault(_pluginsLegend);var _pluginsRangeSelector=require('./plugins/range-selector');var _pluginsRangeSelector2=_interopRequireDefault(_pluginsRangeSelector);var _dygraphGviz=require('./dygraph-gviz');var _dygraphGviz2=_interopRequireDefault(_dygraphGviz);"use strict"; /** + * Creates an interactive, zoomable chart. + * + * @constructor + * @param {div | String} div A div or the id of a div into which to construct + * the chart. + * @param {String | Function} file A file containing CSV data or a function + * that returns this data. The most basic expected format for each line is + * "YYYY/MM/DD,val1,val2,...". For more information, see + * http://dygraphs.com/data.html. + * @param {Object} attrs Various other attributes, e.g. errorBars determines + * whether the input data contains error ranges. For a complete list of + * options, see http://dygraphs.com/options.html. + */var Dygraph=function Dygraph(div,data,opts){this.__init__(div,data,opts);};Dygraph.NAME = "Dygraph";Dygraph.VERSION = "2.1.0"; // Various default values +Dygraph.DEFAULT_ROLL_PERIOD = 1;Dygraph.DEFAULT_WIDTH = 480;Dygraph.DEFAULT_HEIGHT = 320; // For max 60 Hz. animation: +Dygraph.ANIMATION_STEPS = 12;Dygraph.ANIMATION_DURATION = 200; /** + * Standard plotters. These may be used by clients. + * Available plotters are: + * - Dygraph.Plotters.linePlotter: draws central lines (most common) + * - Dygraph.Plotters.errorPlotter: draws error bars + * - Dygraph.Plotters.fillPlotter: draws fills under lines (used with fillGraph) + * + * By default, the plotter is [fillPlotter, errorPlotter, linePlotter]. + * This causes all the lines to be drawn over all the fills/error bars. + */Dygraph.Plotters = _dygraphCanvas2['default']._Plotters; // Used for initializing annotation CSS rules only once. +Dygraph.addedAnnotationCSS = false; /** + * Initializes the Dygraph. This creates a new DIV and constructs the PlotKit + * and context <canvas> inside of it. See the constructor for details. + * on the parameters. + * @param {Element} div the Element to render the graph into. + * @param {string | Function} file Source data + * @param {Object} attrs Miscellaneous other options + * @private + */Dygraph.prototype.__init__ = function(div,file,attrs){this.is_initial_draw_ = true;this.readyFns_ = []; // Support two-argument constructor +if(attrs === null || attrs === undefined){attrs = {};}attrs = Dygraph.copyUserAttrs_(attrs);if(typeof div == 'string'){div = document.getElementById(div);}if(!div){throw new Error('Constructing dygraph with a non-existent div!');} // Copy the important bits into the object +// TODO(danvk): most of these should just stay in the attrs_ dictionary. +this.maindiv_ = div;this.file_ = file;this.rollPeriod_ = attrs.rollPeriod || Dygraph.DEFAULT_ROLL_PERIOD;this.previousVerticalX_ = -1;this.fractions_ = attrs.fractions || false;this.dateWindow_ = attrs.dateWindow || null;this.annotations_ = []; // Clear the div. This ensure that, if multiple dygraphs are passed the same +// div, then only one will be drawn. +div.innerHTML = ""; // For historical reasons, the 'width' and 'height' options trump all CSS +// rules _except_ for an explicit 'width' or 'height' on the div. +// As an added convenience, if the div has zero height (like
does +// without any styles), then we use a default height/width. +if(div.style.width === '' && attrs.width){div.style.width = attrs.width + "px";}if(div.style.height === '' && attrs.height){div.style.height = attrs.height + "px";}if(div.style.height === '' && div.clientHeight === 0){div.style.height = Dygraph.DEFAULT_HEIGHT + "px";if(div.style.width === ''){div.style.width = Dygraph.DEFAULT_WIDTH + "px";}} // These will be zero if the dygraph's div is hidden. In that case, +// use the user-specified attributes if present. If not, use zero +// and assume the user will call resize to fix things later. +this.width_ = div.clientWidth || attrs.width || 0;this.height_ = div.clientHeight || attrs.height || 0; // TODO(danvk): set fillGraph to be part of attrs_ here, not user_attrs_. +if(attrs.stackedGraph){attrs.fillGraph = true; // TODO(nikhilk): Add any other stackedGraph checks here. +} // DEPRECATION WARNING: All option processing should be moved from +// attrs_ and user_attrs_ to options_, which holds all this information. +// +// Dygraphs has many options, some of which interact with one another. +// To keep track of everything, we maintain two sets of options: +// +// this.user_attrs_ only options explicitly set by the user. +// this.attrs_ defaults, options derived from user_attrs_, data. +// +// Options are then accessed this.attr_('attr'), which first looks at +// user_attrs_ and then computed attrs_. This way Dygraphs can set intelligent +// defaults without overriding behavior that the user specifically asks for. +this.user_attrs_ = {};utils.update(this.user_attrs_,attrs); // This sequence ensures that Dygraph.DEFAULT_ATTRS is never modified. +this.attrs_ = {};utils.updateDeep(this.attrs_,_dygraphDefaultAttrs2['default']);this.boundaryIds_ = [];this.setIndexByName_ = {};this.datasetIndex_ = [];this.registeredEvents_ = [];this.eventListeners_ = {};this.attributes_ = new _dygraphOptions2['default'](this); // Create the containing DIV and other interactive elements +this.createInterface_(); // Activate plugins. +this.plugins_ = [];var plugins=Dygraph.PLUGINS.concat(this.getOption('plugins'));for(var i=0;i < plugins.length;i++) { // the plugins option may contain either plugin classes or instances. +// Plugin instances contain an activate method. +var Plugin=plugins[i]; // either a constructor or an instance. +var pluginInstance;if(typeof Plugin.activate !== 'undefined'){pluginInstance = Plugin;}else {pluginInstance = new Plugin();}var pluginDict={plugin:pluginInstance,events:{},options:{},pluginOptions:{}};var handlers=pluginInstance.activate(this);for(var eventName in handlers) {if(!handlers.hasOwnProperty(eventName))continue; // TODO(danvk): validate eventName. +pluginDict.events[eventName] = handlers[eventName];}this.plugins_.push(pluginDict);} // At this point, plugins can no longer register event handlers. +// Construct a map from event -> ordered list of [callback, plugin]. +for(var i=0;i < this.plugins_.length;i++) {var plugin_dict=this.plugins_[i];for(var eventName in plugin_dict.events) {if(!plugin_dict.events.hasOwnProperty(eventName))continue;var callback=plugin_dict.events[eventName];var pair=[plugin_dict.plugin,callback];if(!(eventName in this.eventListeners_)){this.eventListeners_[eventName] = [pair];}else {this.eventListeners_[eventName].push(pair);}}}this.createDragInterface_();this.start_();}; /** + * Triggers a cascade of events to the various plugins which are interested in them. + * Returns true if the "default behavior" should be prevented, i.e. if one + * of the event listeners called event.preventDefault(). + * @private + */Dygraph.prototype.cascadeEvents_ = function(name,extra_props){if(!(name in this.eventListeners_))return false; // QUESTION: can we use objects & prototypes to speed this up? +var e={dygraph:this,cancelable:false,defaultPrevented:false,preventDefault:function preventDefault(){if(!e.cancelable)throw "Cannot call preventDefault on non-cancelable event.";e.defaultPrevented = true;},propagationStopped:false,stopPropagation:function stopPropagation(){e.propagationStopped = true;}};utils.update(e,extra_props);var callback_plugin_pairs=this.eventListeners_[name];if(callback_plugin_pairs){for(var i=callback_plugin_pairs.length - 1;i >= 0;i--) {var plugin=callback_plugin_pairs[i][0];var callback=callback_plugin_pairs[i][1];callback.call(plugin,e);if(e.propagationStopped)break;}}return e.defaultPrevented;}; /** + * Fetch a plugin instance of a particular class. Only for testing. + * @private + * @param {!Class} type The type of the plugin. + * @return {Object} Instance of the plugin, or null if there is none. + */Dygraph.prototype.getPluginInstance_ = function(type){for(var i=0;i < this.plugins_.length;i++) {var p=this.plugins_[i];if(p.plugin instanceof type){return p.plugin;}}return null;}; /** + * Returns the zoomed status of the chart for one or both axes. + * + * Axis is an optional parameter. Can be set to 'x' or 'y'. + * + * The zoomed status for an axis is set whenever a user zooms using the mouse + * or when the dateWindow or valueRange are updated. Double-clicking or calling + * resetZoom() resets the zoom status for the chart. + */Dygraph.prototype.isZoomed = function(axis){var isZoomedX=!!this.dateWindow_;if(axis === 'x')return isZoomedX;var isZoomedY=this.axes_.map(function(axis){return !!axis.valueRange;}).indexOf(true) >= 0;if(axis === null || axis === undefined){return isZoomedX || isZoomedY;}if(axis === 'y')return isZoomedY;throw new Error('axis parameter is [' + axis + '] must be null, \'x\' or \'y\'.');}; /** + * Returns information about the Dygraph object, including its containing ID. + */Dygraph.prototype.toString = function(){var maindiv=this.maindiv_;var id=maindiv && maindiv.id?maindiv.id:maindiv;return "[Dygraph " + id + "]";}; /** + * @private + * Returns the value of an option. This may be set by the user (either in the + * constructor or by calling updateOptions) or by dygraphs, and may be set to a + * per-series value. + * @param {string} name The name of the option, e.g. 'rollPeriod'. + * @param {string} [seriesName] The name of the series to which the option + * will be applied. If no per-series value of this option is available, then + * the global value is returned. This is optional. + * @return { ... } The value of the option. + */Dygraph.prototype.attr_ = function(name,seriesName){ // For "production" code, this gets removed by uglifyjs. +if(typeof process !== 'undefined'){if("development" != 'production'){if(typeof _dygraphOptionsReference2['default'] === 'undefined'){console.error('Must include options reference JS for testing');}else if(!_dygraphOptionsReference2['default'].hasOwnProperty(name)){console.error('Dygraphs is using property ' + name + ', which has no ' + 'entry in the Dygraphs.OPTIONS_REFERENCE listing.'); // Only log this error once. +_dygraphOptionsReference2['default'][name] = true;}}}return seriesName?this.attributes_.getForSeries(name,seriesName):this.attributes_.get(name);}; /** + * Returns the current value for an option, as set in the constructor or via + * updateOptions. You may pass in an (optional) series name to get per-series + * values for the option. + * + * All values returned by this method should be considered immutable. If you + * modify them, there is no guarantee that the changes will be honored or that + * dygraphs will remain in a consistent state. If you want to modify an option, + * use updateOptions() instead. + * + * @param {string} name The name of the option (e.g. 'strokeWidth') + * @param {string=} opt_seriesName Series name to get per-series values. + * @return {*} The value of the option. + */Dygraph.prototype.getOption = function(name,opt_seriesName){return this.attr_(name,opt_seriesName);}; /** + * Like getOption(), but specifically returns a number. + * This is a convenience function for working with the Closure Compiler. + * @param {string} name The name of the option (e.g. 'strokeWidth') + * @param {string=} opt_seriesName Series name to get per-series values. + * @return {number} The value of the option. + * @private + */Dygraph.prototype.getNumericOption = function(name,opt_seriesName){return (/** @type{number} */this.getOption(name,opt_seriesName));}; /** + * Like getOption(), but specifically returns a string. + * This is a convenience function for working with the Closure Compiler. + * @param {string} name The name of the option (e.g. 'strokeWidth') + * @param {string=} opt_seriesName Series name to get per-series values. + * @return {string} The value of the option. + * @private + */Dygraph.prototype.getStringOption = function(name,opt_seriesName){return (/** @type{string} */this.getOption(name,opt_seriesName));}; /** + * Like getOption(), but specifically returns a boolean. + * This is a convenience function for working with the Closure Compiler. + * @param {string} name The name of the option (e.g. 'strokeWidth') + * @param {string=} opt_seriesName Series name to get per-series values. + * @return {boolean} The value of the option. + * @private + */Dygraph.prototype.getBooleanOption = function(name,opt_seriesName){return (/** @type{boolean} */this.getOption(name,opt_seriesName));}; /** + * Like getOption(), but specifically returns a function. + * This is a convenience function for working with the Closure Compiler. + * @param {string} name The name of the option (e.g. 'strokeWidth') + * @param {string=} opt_seriesName Series name to get per-series values. + * @return {function(...)} The value of the option. + * @private + */Dygraph.prototype.getFunctionOption = function(name,opt_seriesName){return (/** @type{function(...)} */this.getOption(name,opt_seriesName));};Dygraph.prototype.getOptionForAxis = function(name,axis){return this.attributes_.getForAxis(name,axis);}; /** + * @private + * @param {string} axis The name of the axis (i.e. 'x', 'y' or 'y2') + * @return { ... } A function mapping string -> option value + */Dygraph.prototype.optionsViewForAxis_ = function(axis){var self=this;return function(opt){var axis_opts=self.user_attrs_.axes;if(axis_opts && axis_opts[axis] && axis_opts[axis].hasOwnProperty(opt)){return axis_opts[axis][opt];} // I don't like that this is in a second spot. +if(axis === 'x' && opt === 'logscale'){ // return the default value. +// TODO(konigsberg): pull the default from a global default. +return false;} // user-specified attributes always trump defaults, even if they're less +// specific. +if(typeof self.user_attrs_[opt] != 'undefined'){return self.user_attrs_[opt];}axis_opts = self.attrs_.axes;if(axis_opts && axis_opts[axis] && axis_opts[axis].hasOwnProperty(opt)){return axis_opts[axis][opt];} // check old-style axis options +// TODO(danvk): add a deprecation warning if either of these match. +if(axis == 'y' && self.axes_[0].hasOwnProperty(opt)){return self.axes_[0][opt];}else if(axis == 'y2' && self.axes_[1].hasOwnProperty(opt)){return self.axes_[1][opt];}return self.attr_(opt);};}; /** + * Returns the current rolling period, as set by the user or an option. + * @return {number} The number of points in the rolling window + */Dygraph.prototype.rollPeriod = function(){return this.rollPeriod_;}; /** + * Returns the currently-visible x-range. This can be affected by zooming, + * panning or a call to updateOptions. + * Returns a two-element array: [left, right]. + * If the Dygraph has dates on the x-axis, these will be millis since epoch. + */Dygraph.prototype.xAxisRange = function(){return this.dateWindow_?this.dateWindow_:this.xAxisExtremes();}; /** + * Returns the lower- and upper-bound x-axis values of the data set. + */Dygraph.prototype.xAxisExtremes = function(){var pad=this.getNumericOption('xRangePad') / this.plotter_.area.w;if(this.numRows() === 0){return [0 - pad,1 + pad];}var left=this.rawData_[0][0];var right=this.rawData_[this.rawData_.length - 1][0];if(pad){ // Must keep this in sync with dygraph-layout _evaluateLimits() +var range=right - left;left -= range * pad;right += range * pad;}return [left,right];}; /** + * Returns the lower- and upper-bound y-axis values for each axis. These are + * the ranges you'll get if you double-click to zoom out or call resetZoom(). + * The return value is an array of [low, high] tuples, one for each y-axis. + */Dygraph.prototype.yAxisExtremes = function(){ // TODO(danvk): this is pretty inefficient +var packed=this.gatherDatasets_(this.rolledSeries_,null);var extremes=packed.extremes;var saveAxes=this.axes_;this.computeYAxisRanges_(extremes);var newAxes=this.axes_;this.axes_ = saveAxes;return newAxes.map(function(axis){return axis.extremeRange;});}; /** + * Returns the currently-visible y-range for an axis. This can be affected by + * zooming, panning or a call to updateOptions. Axis indices are zero-based. If + * called with no arguments, returns the range of the first axis. + * Returns a two-element array: [bottom, top]. + */Dygraph.prototype.yAxisRange = function(idx){if(typeof idx == "undefined")idx = 0;if(idx < 0 || idx >= this.axes_.length){return null;}var axis=this.axes_[idx];return [axis.computedValueRange[0],axis.computedValueRange[1]];}; /** + * Returns the currently-visible y-ranges for each axis. This can be affected by + * zooming, panning, calls to updateOptions, etc. + * Returns an array of [bottom, top] pairs, one for each y-axis. + */Dygraph.prototype.yAxisRanges = function(){var ret=[];for(var i=0;i < this.axes_.length;i++) {ret.push(this.yAxisRange(i));}return ret;}; // TODO(danvk): use these functions throughout dygraphs. +/** + * Convert from data coordinates to canvas/div X/Y coordinates. + * If specified, do this conversion for the coordinate system of a particular + * axis. Uses the first axis by default. + * Returns a two-element array: [X, Y] + * + * Note: use toDomXCoord instead of toDomCoords(x, null) and use toDomYCoord + * instead of toDomCoords(null, y, axis). + */Dygraph.prototype.toDomCoords = function(x,y,axis){return [this.toDomXCoord(x),this.toDomYCoord(y,axis)];}; /** + * Convert from data x coordinates to canvas/div X coordinate. + * If specified, do this conversion for the coordinate system of a particular + * axis. + * Returns a single value or null if x is null. + */Dygraph.prototype.toDomXCoord = function(x){if(x === null){return null;}var area=this.plotter_.area;var xRange=this.xAxisRange();return area.x + (x - xRange[0]) / (xRange[1] - xRange[0]) * area.w;}; /** + * Convert from data x coordinates to canvas/div Y coordinate and optional + * axis. Uses the first axis by default. + * + * returns a single value or null if y is null. + */Dygraph.prototype.toDomYCoord = function(y,axis){var pct=this.toPercentYCoord(y,axis);if(pct === null){return null;}var area=this.plotter_.area;return area.y + pct * area.h;}; /** + * Convert from canvas/div coords to data coordinates. + * If specified, do this conversion for the coordinate system of a particular + * axis. Uses the first axis by default. + * Returns a two-element array: [X, Y]. + * + * Note: use toDataXCoord instead of toDataCoords(x, null) and use toDataYCoord + * instead of toDataCoords(null, y, axis). + */Dygraph.prototype.toDataCoords = function(x,y,axis){return [this.toDataXCoord(x),this.toDataYCoord(y,axis)];}; /** + * Convert from canvas/div x coordinate to data coordinate. + * + * If x is null, this returns null. + */Dygraph.prototype.toDataXCoord = function(x){if(x === null){return null;}var area=this.plotter_.area;var xRange=this.xAxisRange();if(!this.attributes_.getForAxis("logscale",'x')){return xRange[0] + (x - area.x) / area.w * (xRange[1] - xRange[0]);}else {var pct=(x - area.x) / area.w;return utils.logRangeFraction(xRange[0],xRange[1],pct);}}; /** + * Convert from canvas/div y coord to value. + * + * If y is null, this returns null. + * if axis is null, this uses the first axis. + */Dygraph.prototype.toDataYCoord = function(y,axis){if(y === null){return null;}var area=this.plotter_.area;var yRange=this.yAxisRange(axis);if(typeof axis == "undefined")axis = 0;if(!this.attributes_.getForAxis("logscale",axis)){return yRange[0] + (area.y + area.h - y) / area.h * (yRange[1] - yRange[0]);}else { // Computing the inverse of toDomCoord. +var pct=(y - area.y) / area.h; // Note reversed yRange, y1 is on top with pct==0. +return utils.logRangeFraction(yRange[1],yRange[0],pct);}}; /** + * Converts a y for an axis to a percentage from the top to the + * bottom of the drawing area. + * + * If the coordinate represents a value visible on the canvas, then + * the value will be between 0 and 1, where 0 is the top of the canvas. + * However, this method will return values outside the range, as + * values can fall outside the canvas. + * + * If y is null, this returns null. + * if axis is null, this uses the first axis. + * + * @param {number} y The data y-coordinate. + * @param {number} [axis] The axis number on which the data coordinate lives. + * @return {number} A fraction in [0, 1] where 0 = the top edge. + */Dygraph.prototype.toPercentYCoord = function(y,axis){if(y === null){return null;}if(typeof axis == "undefined")axis = 0;var yRange=this.yAxisRange(axis);var pct;var logscale=this.attributes_.getForAxis("logscale",axis);if(logscale){var logr0=utils.log10(yRange[0]);var logr1=utils.log10(yRange[1]);pct = (logr1 - utils.log10(y)) / (logr1 - logr0);}else { // yRange[1] - y is unit distance from the bottom. +// yRange[1] - yRange[0] is the scale of the range. +// (yRange[1] - y) / (yRange[1] - yRange[0]) is the % from the bottom. +pct = (yRange[1] - y) / (yRange[1] - yRange[0]);}return pct;}; /** + * Converts an x value to a percentage from the left to the right of + * the drawing area. + * + * If the coordinate represents a value visible on the canvas, then + * the value will be between 0 and 1, where 0 is the left of the canvas. + * However, this method will return values outside the range, as + * values can fall outside the canvas. + * + * If x is null, this returns null. + * @param {number} x The data x-coordinate. + * @return {number} A fraction in [0, 1] where 0 = the left edge. + */Dygraph.prototype.toPercentXCoord = function(x){if(x === null){return null;}var xRange=this.xAxisRange();var pct;var logscale=this.attributes_.getForAxis("logscale",'x');if(logscale === true){ // logscale can be null so we test for true explicitly. +var logr0=utils.log10(xRange[0]);var logr1=utils.log10(xRange[1]);pct = (utils.log10(x) - logr0) / (logr1 - logr0);}else { // x - xRange[0] is unit distance from the left. +// xRange[1] - xRange[0] is the scale of the range. +// The full expression below is the % from the left. +pct = (x - xRange[0]) / (xRange[1] - xRange[0]);}return pct;}; /** + * Returns the number of columns (including the independent variable). + * @return {number} The number of columns. + */Dygraph.prototype.numColumns = function(){if(!this.rawData_)return 0;return this.rawData_[0]?this.rawData_[0].length:this.attr_("labels").length;}; /** + * Returns the number of rows (excluding any header/label row). + * @return {number} The number of rows, less any header. + */Dygraph.prototype.numRows = function(){if(!this.rawData_)return 0;return this.rawData_.length;}; /** + * Returns the value in the given row and column. If the row and column exceed + * the bounds on the data, returns null. Also returns null if the value is + * missing. + * @param {number} row The row number of the data (0-based). Row 0 is the + * first row of data, not a header row. + * @param {number} col The column number of the data (0-based) + * @return {number} The value in the specified cell or null if the row/col + * were out of range. + */Dygraph.prototype.getValue = function(row,col){if(row < 0 || row > this.rawData_.length)return null;if(col < 0 || col > this.rawData_[row].length)return null;return this.rawData_[row][col];}; /** + * Generates interface elements for the Dygraph: a containing div, a div to + * display the current point, and a textbox to adjust the rolling average + * period. Also creates the Renderer/Layout elements. + * @private + */Dygraph.prototype.createInterface_ = function(){ // Create the all-enclosing graph div +var enclosing=this.maindiv_;this.graphDiv = document.createElement("div"); // TODO(danvk): any other styles that are useful to set here? +this.graphDiv.style.textAlign = 'left'; // This is a CSS "reset" +this.graphDiv.style.position = 'relative';enclosing.appendChild(this.graphDiv); // Create the canvas for interactive parts of the chart. +this.canvas_ = utils.createCanvas();this.canvas_.style.position = "absolute"; // ... and for static parts of the chart. +this.hidden_ = this.createPlotKitCanvas_(this.canvas_);this.canvas_ctx_ = utils.getContext(this.canvas_);this.hidden_ctx_ = utils.getContext(this.hidden_);this.resizeElements_(); // The interactive parts of the graph are drawn on top of the chart. +this.graphDiv.appendChild(this.hidden_);this.graphDiv.appendChild(this.canvas_);this.mouseEventElement_ = this.createMouseEventElement_(); // Create the grapher +this.layout_ = new _dygraphLayout2['default'](this);var dygraph=this;this.mouseMoveHandler_ = function(e){dygraph.mouseMove_(e);};this.mouseOutHandler_ = function(e){ // The mouse has left the chart if: +// 1. e.target is inside the chart +// 2. e.relatedTarget is outside the chart +var target=e.target || e.fromElement;var relatedTarget=e.relatedTarget || e.toElement;if(utils.isNodeContainedBy(target,dygraph.graphDiv) && !utils.isNodeContainedBy(relatedTarget,dygraph.graphDiv)){dygraph.mouseOut_(e);}};this.addAndTrackEvent(window,'mouseout',this.mouseOutHandler_);this.addAndTrackEvent(this.mouseEventElement_,'mousemove',this.mouseMoveHandler_); // Don't recreate and register the resize handler on subsequent calls. +// This happens when the graph is resized. +if(!this.resizeHandler_){this.resizeHandler_ = function(e){dygraph.resize();}; // Update when the window is resized. +// TODO(danvk): drop frames depending on complexity of the chart. +this.addAndTrackEvent(window,'resize',this.resizeHandler_);}};Dygraph.prototype.resizeElements_ = function(){this.graphDiv.style.width = this.width_ + "px";this.graphDiv.style.height = this.height_ + "px";var pixelRatioOption=this.getNumericOption('pixelRatio');var canvasScale=pixelRatioOption || utils.getContextPixelRatio(this.canvas_ctx_);this.canvas_.width = this.width_ * canvasScale;this.canvas_.height = this.height_ * canvasScale;this.canvas_.style.width = this.width_ + "px"; // for IE +this.canvas_.style.height = this.height_ + "px"; // for IE +if(canvasScale !== 1){this.canvas_ctx_.scale(canvasScale,canvasScale);}var hiddenScale=pixelRatioOption || utils.getContextPixelRatio(this.hidden_ctx_);this.hidden_.width = this.width_ * hiddenScale;this.hidden_.height = this.height_ * hiddenScale;this.hidden_.style.width = this.width_ + "px"; // for IE +this.hidden_.style.height = this.height_ + "px"; // for IE +if(hiddenScale !== 1){this.hidden_ctx_.scale(hiddenScale,hiddenScale);}}; /** + * Detach DOM elements in the dygraph and null out all data references. + * Calling this when you're done with a dygraph can dramatically reduce memory + * usage. See, e.g., the tests/perf.html example. + */Dygraph.prototype.destroy = function(){this.canvas_ctx_.restore();this.hidden_ctx_.restore(); // Destroy any plugins, in the reverse order that they were registered. +for(var i=this.plugins_.length - 1;i >= 0;i--) {var p=this.plugins_.pop();if(p.plugin.destroy)p.plugin.destroy();}var removeRecursive=function removeRecursive(node){while(node.hasChildNodes()) {removeRecursive(node.firstChild);node.removeChild(node.firstChild);}};this.removeTrackedEvents_(); // remove mouse event handlers (This may not be necessary anymore) +utils.removeEvent(window,'mouseout',this.mouseOutHandler_);utils.removeEvent(this.mouseEventElement_,'mousemove',this.mouseMoveHandler_); // remove window handlers +utils.removeEvent(window,'resize',this.resizeHandler_);this.resizeHandler_ = null;removeRecursive(this.maindiv_);var nullOut=function nullOut(obj){for(var n in obj) {if(typeof obj[n] === 'object'){obj[n] = null;}}}; // These may not all be necessary, but it can't hurt... +nullOut(this.layout_);nullOut(this.plotter_);nullOut(this);}; /** + * Creates the canvas on which the chart will be drawn. Only the Renderer ever + * draws on this particular canvas. All Dygraph work (i.e. drawing hover dots + * or the zoom rectangles) is done on this.canvas_. + * @param {Object} canvas The Dygraph canvas over which to overlay the plot + * @return {Object} The newly-created canvas + * @private + */Dygraph.prototype.createPlotKitCanvas_ = function(canvas){var h=utils.createCanvas();h.style.position = "absolute"; // TODO(danvk): h should be offset from canvas. canvas needs to include +// some extra area to make it easier to zoom in on the far left and far +// right. h needs to be precisely the plot area, so that clipping occurs. +h.style.top = canvas.style.top;h.style.left = canvas.style.left;h.width = this.width_;h.height = this.height_;h.style.width = this.width_ + "px"; // for IE +h.style.height = this.height_ + "px"; // for IE +return h;}; /** + * Creates an overlay element used to handle mouse events. + * @return {Object} The mouse event element. + * @private + */Dygraph.prototype.createMouseEventElement_ = function(){return this.canvas_;}; /** + * Generate a set of distinct colors for the data series. This is done with a + * color wheel. Saturation/Value are customizable, and the hue is + * equally-spaced around the color wheel. If a custom set of colors is + * specified, that is used instead. + * @private + */Dygraph.prototype.setColors_ = function(){var labels=this.getLabels();var num=labels.length - 1;this.colors_ = [];this.colorsMap_ = {}; // These are used for when no custom colors are specified. +var sat=this.getNumericOption('colorSaturation') || 1.0;var val=this.getNumericOption('colorValue') || 0.5;var half=Math.ceil(num / 2);var colors=this.getOption('colors');var visibility=this.visibility();for(var i=0;i < num;i++) {if(!visibility[i]){continue;}var label=labels[i + 1];var colorStr=this.attributes_.getForSeries('color',label);if(!colorStr){if(colors){colorStr = colors[i % colors.length];}else { // alternate colors for high contrast. +var idx=i % 2?half + (i + 1) / 2:Math.ceil((i + 1) / 2);var hue=1.0 * idx / (1 + num);colorStr = utils.hsvToRGB(hue,sat,val);}}this.colors_.push(colorStr);this.colorsMap_[label] = colorStr;}}; /** + * Return the list of colors. This is either the list of colors passed in the + * attributes or the autogenerated list of rgb(r,g,b) strings. + * This does not return colors for invisible series. + * @return {Array.} The list of colors. + */Dygraph.prototype.getColors = function(){return this.colors_;}; /** + * Returns a few attributes of a series, i.e. its color, its visibility, which + * axis it's assigned to, and its column in the original data. + * Returns null if the series does not exist. + * Otherwise, returns an object with column, visibility, color and axis properties. + * The "axis" property will be set to 1 for y1 and 2 for y2. + * The "column" property can be fed back into getValue(row, column) to get + * values for this series. + */Dygraph.prototype.getPropertiesForSeries = function(series_name){var idx=-1;var labels=this.getLabels();for(var i=1;i < labels.length;i++) {if(labels[i] == series_name){idx = i;break;}}if(idx == -1)return null;return {name:series_name,column:idx,visible:this.visibility()[idx - 1],color:this.colorsMap_[series_name],axis:1 + this.attributes_.axisForSeries(series_name)};}; /** + * Create the text box to adjust the averaging period + * @private + */Dygraph.prototype.createRollInterface_ = function(){var _this=this; // Create a roller if one doesn't exist already. +var roller=this.roller_;if(!roller){this.roller_ = roller = document.createElement("input");roller.type = "text";roller.style.display = "none";roller.className = 'dygraph-roller';this.graphDiv.appendChild(roller);}var display=this.getBooleanOption('showRoller')?'block':'none';var area=this.getArea();var textAttr={"top":area.y + area.h - 25 + "px","left":area.x + 1 + "px","display":display};roller.size = "2";roller.value = this.rollPeriod_;utils.update(roller.style,textAttr);roller.onchange = function(){return _this.adjustRoll(roller.value);};}; /** + * Set up all the mouse handlers needed to capture dragging behavior for zoom + * events. + * @private + */Dygraph.prototype.createDragInterface_ = function(){var context={ // Tracks whether the mouse is down right now +isZooming:false,isPanning:false, // is this drag part of a pan? +is2DPan:false, // if so, is that pan 1- or 2-dimensional? +dragStartX:null, // pixel coordinates +dragStartY:null, // pixel coordinates +dragEndX:null, // pixel coordinates +dragEndY:null, // pixel coordinates +dragDirection:null,prevEndX:null, // pixel coordinates +prevEndY:null, // pixel coordinates +prevDragDirection:null,cancelNextDblclick:false, // see comment in dygraph-interaction-model.js +// The value on the left side of the graph when a pan operation starts. +initialLeftmostDate:null, // The number of units each pixel spans. (This won't be valid for log +// scales) +xUnitsPerPixel:null, // TODO(danvk): update this comment +// The range in second/value units that the viewport encompasses during a +// panning operation. +dateRange:null, // Top-left corner of the canvas, in DOM coords +// TODO(konigsberg): Rename topLeftCanvasX, topLeftCanvasY. +px:0,py:0, // Values for use with panEdgeFraction, which limit how far outside the +// graph's data boundaries it can be panned. +boundedDates:null, // [minDate, maxDate] +boundedValues:null, // [[minValue, maxValue] ...] +// We cover iframes during mouse interactions. See comments in +// dygraph-utils.js for more info on why this is a good idea. +tarp:new _iframeTarp2['default'](), // contextB is the same thing as this context object but renamed. +initializeMouseDown:function initializeMouseDown(event,g,contextB){ // prevents mouse drags from selecting page text. +if(event.preventDefault){event.preventDefault(); // Firefox, Chrome, etc. +}else {event.returnValue = false; // IE +event.cancelBubble = true;}var canvasPos=utils.findPos(g.canvas_);contextB.px = canvasPos.x;contextB.py = canvasPos.y;contextB.dragStartX = utils.dragGetX_(event,contextB);contextB.dragStartY = utils.dragGetY_(event,contextB);contextB.cancelNextDblclick = false;contextB.tarp.cover();},destroy:function destroy(){var context=this;if(context.isZooming || context.isPanning){context.isZooming = false;context.dragStartX = null;context.dragStartY = null;}if(context.isPanning){context.isPanning = false;context.draggingDate = null;context.dateRange = null;for(var i=0;i < self.axes_.length;i++) {delete self.axes_[i].draggingValue;delete self.axes_[i].dragValueRange;}}context.tarp.uncover();}};var interactionModel=this.getOption("interactionModel"); // Self is the graph. +var self=this; // Function that binds the graph and context to the handler. +var bindHandler=function bindHandler(handler){return function(event){handler(event,self,context);};};for(var eventName in interactionModel) {if(!interactionModel.hasOwnProperty(eventName))continue;this.addAndTrackEvent(this.mouseEventElement_,eventName,bindHandler(interactionModel[eventName]));} // If the user releases the mouse button during a drag, but not over the +// canvas, then it doesn't count as a zooming action. +if(!interactionModel.willDestroyContextMyself){var mouseUpHandler=function mouseUpHandler(event){context.destroy();};this.addAndTrackEvent(document,'mouseup',mouseUpHandler);}}; /** + * Draw a gray zoom rectangle over the desired area of the canvas. Also clears + * up any previous zoom rectangles that were drawn. This could be optimized to + * avoid extra redrawing, but it's tricky to avoid interactions with the status + * dots. + * + * @param {number} direction the direction of the zoom rectangle. Acceptable + * values are utils.HORIZONTAL and utils.VERTICAL. + * @param {number} startX The X position where the drag started, in canvas + * coordinates. + * @param {number} endX The current X position of the drag, in canvas coords. + * @param {number} startY The Y position where the drag started, in canvas + * coordinates. + * @param {number} endY The current Y position of the drag, in canvas coords. + * @param {number} prevDirection the value of direction on the previous call to + * this function. Used to avoid excess redrawing + * @param {number} prevEndX The value of endX on the previous call to this + * function. Used to avoid excess redrawing + * @param {number} prevEndY The value of endY on the previous call to this + * function. Used to avoid excess redrawing + * @private + */Dygraph.prototype.drawZoomRect_ = function(direction,startX,endX,startY,endY,prevDirection,prevEndX,prevEndY){var ctx=this.canvas_ctx_; // Clean up from the previous rect if necessary +if(prevDirection == utils.HORIZONTAL){ctx.clearRect(Math.min(startX,prevEndX),this.layout_.getPlotArea().y,Math.abs(startX - prevEndX),this.layout_.getPlotArea().h);}else if(prevDirection == utils.VERTICAL){ctx.clearRect(this.layout_.getPlotArea().x,Math.min(startY,prevEndY),this.layout_.getPlotArea().w,Math.abs(startY - prevEndY));} // Draw a light-grey rectangle to show the new viewing area +if(direction == utils.HORIZONTAL){if(endX && startX){ctx.fillStyle = "rgba(128,128,128,0.33)";ctx.fillRect(Math.min(startX,endX),this.layout_.getPlotArea().y,Math.abs(endX - startX),this.layout_.getPlotArea().h);}}else if(direction == utils.VERTICAL){if(endY && startY){ctx.fillStyle = "rgba(128,128,128,0.33)";ctx.fillRect(this.layout_.getPlotArea().x,Math.min(startY,endY),this.layout_.getPlotArea().w,Math.abs(endY - startY));}}}; /** + * Clear the zoom rectangle (and perform no zoom). + * @private + */Dygraph.prototype.clearZoomRect_ = function(){this.currentZoomRectArgs_ = null;this.canvas_ctx_.clearRect(0,0,this.width_,this.height_);}; /** + * Zoom to something containing [lowX, highX]. These are pixel coordinates in + * the canvas. The exact zoom window may be slightly larger if there are no data + * points near lowX or highX. Don't confuse this function with doZoomXDates, + * which accepts dates that match the raw data. This function redraws the graph. + * + * @param {number} lowX The leftmost pixel value that should be visible. + * @param {number} highX The rightmost pixel value that should be visible. + * @private + */Dygraph.prototype.doZoomX_ = function(lowX,highX){this.currentZoomRectArgs_ = null; // Find the earliest and latest dates contained in this canvasx range. +// Convert the call to date ranges of the raw data. +var minDate=this.toDataXCoord(lowX);var maxDate=this.toDataXCoord(highX);this.doZoomXDates_(minDate,maxDate);}; /** + * Zoom to something containing [minDate, maxDate] values. Don't confuse this + * method with doZoomX which accepts pixel coordinates. This function redraws + * the graph. + * + * @param {number} minDate The minimum date that should be visible. + * @param {number} maxDate The maximum date that should be visible. + * @private + */Dygraph.prototype.doZoomXDates_ = function(minDate,maxDate){var _this2=this; // TODO(danvk): when xAxisRange is null (i.e. "fit to data", the animation +// can produce strange effects. Rather than the x-axis transitioning slowly +// between values, it can jerk around.) +var old_window=this.xAxisRange();var new_window=[minDate,maxDate];var zoomCallback=this.getFunctionOption('zoomCallback');this.doAnimatedZoom(old_window,new_window,null,null,function(){if(zoomCallback){zoomCallback.call(_this2,minDate,maxDate,_this2.yAxisRanges());}});}; /** + * Zoom to something containing [lowY, highY]. These are pixel coordinates in + * the canvas. This function redraws the graph. + * + * @param {number} lowY The topmost pixel value that should be visible. + * @param {number} highY The lowest pixel value that should be visible. + * @private + */Dygraph.prototype.doZoomY_ = function(lowY,highY){var _this3=this;this.currentZoomRectArgs_ = null; // Find the highest and lowest values in pixel range for each axis. +// Note that lowY (in pixels) corresponds to the max Value (in data coords). +// This is because pixels increase as you go down on the screen, whereas data +// coordinates increase as you go up the screen. +var oldValueRanges=this.yAxisRanges();var newValueRanges=[];for(var i=0;i < this.axes_.length;i++) {var hi=this.toDataYCoord(lowY,i);var low=this.toDataYCoord(highY,i);newValueRanges.push([low,hi]);}var zoomCallback=this.getFunctionOption('zoomCallback');this.doAnimatedZoom(null,null,oldValueRanges,newValueRanges,function(){if(zoomCallback){var _xAxisRange=_this3.xAxisRange();var _xAxisRange2=_slicedToArray(_xAxisRange,2);var minX=_xAxisRange2[0];var maxX=_xAxisRange2[1];zoomCallback.call(_this3,minX,maxX,_this3.yAxisRanges());}});}; /** + * Transition function to use in animations. Returns values between 0.0 + * (totally old values) and 1.0 (totally new values) for each frame. + * @private + */Dygraph.zoomAnimationFunction = function(frame,numFrames){var k=1.5;return (1.0 - Math.pow(k,-frame)) / (1.0 - Math.pow(k,-numFrames));}; /** + * Reset the zoom to the original view coordinates. This is the same as + * double-clicking on the graph. + */Dygraph.prototype.resetZoom = function(){var _this4=this;var dirtyX=this.isZoomed('x');var dirtyY=this.isZoomed('y');var dirty=dirtyX || dirtyY; // Clear any selection, since it's likely to be drawn in the wrong place. +this.clearSelection();if(!dirty)return; // Calculate extremes to avoid lack of padding on reset. +var _xAxisExtremes=this.xAxisExtremes();var _xAxisExtremes2=_slicedToArray(_xAxisExtremes,2);var minDate=_xAxisExtremes2[0];var maxDate=_xAxisExtremes2[1];var animatedZooms=this.getBooleanOption('animatedZooms');var zoomCallback=this.getFunctionOption('zoomCallback'); // TODO(danvk): merge this block w/ the code below. +// TODO(danvk): factor out a generic, public zoomTo method. +if(!animatedZooms){this.dateWindow_ = null;this.axes_.forEach(function(axis){if(axis.valueRange)delete axis.valueRange;});this.drawGraph_();if(zoomCallback){zoomCallback.call(this,minDate,maxDate,this.yAxisRanges());}return;}var oldWindow=null,newWindow=null,oldValueRanges=null,newValueRanges=null;if(dirtyX){oldWindow = this.xAxisRange();newWindow = [minDate,maxDate];}if(dirtyY){oldValueRanges = this.yAxisRanges();newValueRanges = this.yAxisExtremes();}this.doAnimatedZoom(oldWindow,newWindow,oldValueRanges,newValueRanges,function(){_this4.dateWindow_ = null;_this4.axes_.forEach(function(axis){if(axis.valueRange)delete axis.valueRange;});if(zoomCallback){zoomCallback.call(_this4,minDate,maxDate,_this4.yAxisRanges());}});}; /** + * Combined animation logic for all zoom functions. + * either the x parameters or y parameters may be null. + * @private + */Dygraph.prototype.doAnimatedZoom = function(oldXRange,newXRange,oldYRanges,newYRanges,callback){var _this5=this;var steps=this.getBooleanOption("animatedZooms")?Dygraph.ANIMATION_STEPS:1;var windows=[];var valueRanges=[];var step,frac;if(oldXRange !== null && newXRange !== null){for(step = 1;step <= steps;step++) {frac = Dygraph.zoomAnimationFunction(step,steps);windows[step - 1] = [oldXRange[0] * (1 - frac) + frac * newXRange[0],oldXRange[1] * (1 - frac) + frac * newXRange[1]];}}if(oldYRanges !== null && newYRanges !== null){for(step = 1;step <= steps;step++) {frac = Dygraph.zoomAnimationFunction(step,steps);var thisRange=[];for(var j=0;j < this.axes_.length;j++) {thisRange.push([oldYRanges[j][0] * (1 - frac) + frac * newYRanges[j][0],oldYRanges[j][1] * (1 - frac) + frac * newYRanges[j][1]]);}valueRanges[step - 1] = thisRange;}}utils.repeatAndCleanup(function(step){if(valueRanges.length){for(var i=0;i < _this5.axes_.length;i++) {var w=valueRanges[step][i];_this5.axes_[i].valueRange = [w[0],w[1]];}}if(windows.length){_this5.dateWindow_ = windows[step];}_this5.drawGraph_();},steps,Dygraph.ANIMATION_DURATION / steps,callback);}; /** + * Get the current graph's area object. + * + * Returns: {x, y, w, h} + */Dygraph.prototype.getArea = function(){return this.plotter_.area;}; /** + * Convert a mouse event to DOM coordinates relative to the graph origin. + * + * Returns a two-element array: [X, Y]. + */Dygraph.prototype.eventToDomCoords = function(event){if(event.offsetX && event.offsetY){return [event.offsetX,event.offsetY];}else {var eventElementPos=utils.findPos(this.mouseEventElement_);var canvasx=utils.pageX(event) - eventElementPos.x;var canvasy=utils.pageY(event) - eventElementPos.y;return [canvasx,canvasy];}}; /** + * Given a canvas X coordinate, find the closest row. + * @param {number} domX graph-relative DOM X coordinate + * Returns {number} row number. + * @private + */Dygraph.prototype.findClosestRow = function(domX){var minDistX=Infinity;var closestRow=-1;var sets=this.layout_.points;for(var i=0;i < sets.length;i++) {var points=sets[i];var len=points.length;for(var j=0;j < len;j++) {var point=points[j];if(!utils.isValidPoint(point,true))continue;var dist=Math.abs(point.canvasx - domX);if(dist < minDistX){minDistX = dist;closestRow = point.idx;}}}return closestRow;}; /** + * Given canvas X,Y coordinates, find the closest point. + * + * This finds the individual data point across all visible series + * that's closest to the supplied DOM coordinates using the standard + * Euclidean X,Y distance. + * + * @param {number} domX graph-relative DOM X coordinate + * @param {number} domY graph-relative DOM Y coordinate + * Returns: {row, seriesName, point} + * @private + */Dygraph.prototype.findClosestPoint = function(domX,domY){var minDist=Infinity;var dist,dx,dy,point,closestPoint,closestSeries,closestRow;for(var setIdx=this.layout_.points.length - 1;setIdx >= 0;--setIdx) {var points=this.layout_.points[setIdx];for(var i=0;i < points.length;++i) {point = points[i];if(!utils.isValidPoint(point))continue;dx = point.canvasx - domX;dy = point.canvasy - domY;dist = dx * dx + dy * dy;if(dist < minDist){minDist = dist;closestPoint = point;closestSeries = setIdx;closestRow = point.idx;}}}var name=this.layout_.setNames[closestSeries];return {row:closestRow,seriesName:name,point:closestPoint};}; /** + * Given canvas X,Y coordinates, find the touched area in a stacked graph. + * + * This first finds the X data point closest to the supplied DOM X coordinate, + * then finds the series which puts the Y coordinate on top of its filled area, + * using linear interpolation between adjacent point pairs. + * + * @param {number} domX graph-relative DOM X coordinate + * @param {number} domY graph-relative DOM Y coordinate + * Returns: {row, seriesName, point} + * @private + */Dygraph.prototype.findStackedPoint = function(domX,domY){var row=this.findClosestRow(domX);var closestPoint,closestSeries;for(var setIdx=0;setIdx < this.layout_.points.length;++setIdx) {var boundary=this.getLeftBoundary_(setIdx);var rowIdx=row - boundary;var points=this.layout_.points[setIdx];if(rowIdx >= points.length)continue;var p1=points[rowIdx];if(!utils.isValidPoint(p1))continue;var py=p1.canvasy;if(domX > p1.canvasx && rowIdx + 1 < points.length){ // interpolate series Y value using next point +var p2=points[rowIdx + 1];if(utils.isValidPoint(p2)){var dx=p2.canvasx - p1.canvasx;if(dx > 0){var r=(domX - p1.canvasx) / dx;py += r * (p2.canvasy - p1.canvasy);}}}else if(domX < p1.canvasx && rowIdx > 0){ // interpolate series Y value using previous point +var p0=points[rowIdx - 1];if(utils.isValidPoint(p0)){var dx=p1.canvasx - p0.canvasx;if(dx > 0){var r=(p1.canvasx - domX) / dx;py += r * (p0.canvasy - p1.canvasy);}}} // Stop if the point (domX, py) is above this series' upper edge +if(setIdx === 0 || py < domY){closestPoint = p1;closestSeries = setIdx;}}var name=this.layout_.setNames[closestSeries];return {row:row,seriesName:name,point:closestPoint};}; /** + * When the mouse moves in the canvas, display information about a nearby data + * point and draw dots over those points in the data series. This function + * takes care of cleanup of previously-drawn dots. + * @param {Object} event The mousemove event from the browser. + * @private + */Dygraph.prototype.mouseMove_ = function(event){ // This prevents JS errors when mousing over the canvas before data loads. +var points=this.layout_.points;if(points === undefined || points === null)return;var canvasCoords=this.eventToDomCoords(event);var canvasx=canvasCoords[0];var canvasy=canvasCoords[1];var highlightSeriesOpts=this.getOption("highlightSeriesOpts");var selectionChanged=false;if(highlightSeriesOpts && !this.isSeriesLocked()){var closest;if(this.getBooleanOption("stackedGraph")){closest = this.findStackedPoint(canvasx,canvasy);}else {closest = this.findClosestPoint(canvasx,canvasy);}selectionChanged = this.setSelection(closest.row,closest.seriesName);}else {var idx=this.findClosestRow(canvasx);selectionChanged = this.setSelection(idx);}var callback=this.getFunctionOption("highlightCallback");if(callback && selectionChanged){callback.call(this,event,this.lastx_,this.selPoints_,this.lastRow_,this.highlightSet_);}}; /** + * Fetch left offset from the specified set index or if not passed, the + * first defined boundaryIds record (see bug #236). + * @private + */Dygraph.prototype.getLeftBoundary_ = function(setIdx){if(this.boundaryIds_[setIdx]){return this.boundaryIds_[setIdx][0];}else {for(var i=0;i < this.boundaryIds_.length;i++) {if(this.boundaryIds_[i] !== undefined){return this.boundaryIds_[i][0];}}return 0;}};Dygraph.prototype.animateSelection_ = function(direction){var totalSteps=10;var millis=30;if(this.fadeLevel === undefined)this.fadeLevel = 0;if(this.animateId === undefined)this.animateId = 0;var start=this.fadeLevel;var steps=direction < 0?start:totalSteps - start;if(steps <= 0){if(this.fadeLevel){this.updateSelection_(1.0);}return;}var thisId=++this.animateId;var that=this;var cleanupIfClearing=function cleanupIfClearing(){ // if we haven't reached fadeLevel 0 in the max frame time, +// ensure that the clear happens and just go to 0 +if(that.fadeLevel !== 0 && direction < 0){that.fadeLevel = 0;that.clearSelection();}};utils.repeatAndCleanup(function(n){ // ignore simultaneous animations +if(that.animateId != thisId)return;that.fadeLevel += direction;if(that.fadeLevel === 0){that.clearSelection();}else {that.updateSelection_(that.fadeLevel / totalSteps);}},steps,millis,cleanupIfClearing);}; /** + * Draw dots over the selectied points in the data series. This function + * takes care of cleanup of previously-drawn dots. + * @private + */Dygraph.prototype.updateSelection_ = function(opt_animFraction){ /*var defaultPrevented = */this.cascadeEvents_('select',{selectedRow:this.lastRow_ === -1?undefined:this.lastRow_,selectedX:this.lastx_ === -1?undefined:this.lastx_,selectedPoints:this.selPoints_}); // TODO(danvk): use defaultPrevented here? +// Clear the previously drawn vertical, if there is one +var i;var ctx=this.canvas_ctx_;if(this.getOption('highlightSeriesOpts')){ctx.clearRect(0,0,this.width_,this.height_);var alpha=1.0 - this.getNumericOption('highlightSeriesBackgroundAlpha');var backgroundColor=utils.toRGB_(this.getOption('highlightSeriesBackgroundColor'));if(alpha){ // Activating background fade includes an animation effect for a gradual +// fade. TODO(klausw): make this independently configurable if it causes +// issues? Use a shared preference to control animations? +var animateBackgroundFade=true;if(animateBackgroundFade){if(opt_animFraction === undefined){ // start a new animation +this.animateSelection_(1);return;}alpha *= opt_animFraction;}ctx.fillStyle = 'rgba(' + backgroundColor.r + ',' + backgroundColor.g + ',' + backgroundColor.b + ',' + alpha + ')';ctx.fillRect(0,0,this.width_,this.height_);} // Redraw only the highlighted series in the interactive canvas (not the +// static plot canvas, which is where series are usually drawn). +this.plotter_._renderLineChart(this.highlightSet_,ctx);}else if(this.previousVerticalX_ >= 0){ // Determine the maximum highlight circle size. +var maxCircleSize=0;var labels=this.attr_('labels');for(i = 1;i < labels.length;i++) {var r=this.getNumericOption('highlightCircleSize',labels[i]);if(r > maxCircleSize)maxCircleSize = r;}var px=this.previousVerticalX_;ctx.clearRect(px - maxCircleSize - 1,0,2 * maxCircleSize + 2,this.height_);}if(this.selPoints_.length > 0){ // Draw colored circles over the center of each selected point +var canvasx=this.selPoints_[0].canvasx;ctx.save();for(i = 0;i < this.selPoints_.length;i++) {var pt=this.selPoints_[i];if(isNaN(pt.canvasy))continue;var circleSize=this.getNumericOption('highlightCircleSize',pt.name);var callback=this.getFunctionOption("drawHighlightPointCallback",pt.name);var color=this.plotter_.colors[pt.name];if(!callback){callback = utils.Circles.DEFAULT;}ctx.lineWidth = this.getNumericOption('strokeWidth',pt.name);ctx.strokeStyle = color;ctx.fillStyle = color;callback.call(this,this,pt.name,ctx,canvasx,pt.canvasy,color,circleSize,pt.idx);}ctx.restore();this.previousVerticalX_ = canvasx;}}; /** + * Manually set the selected points and display information about them in the + * legend. The selection can be cleared using clearSelection() and queried + * using getSelection(). + * + * To set a selected series but not a selected point, call setSelection with + * row=false and the selected series name. + * + * @param {number} row Row number that should be highlighted (i.e. appear with + * hover dots on the chart). + * @param {seriesName} optional series name to highlight that series with the + * the highlightSeriesOpts setting. + * @param { locked } optional If true, keep seriesName selected when mousing + * over the graph, disabling closest-series highlighting. Call clearSelection() + * to unlock it. + */Dygraph.prototype.setSelection = function(row,opt_seriesName,opt_locked){ // Extract the points we've selected +this.selPoints_ = [];var changed=false;if(row !== false && row >= 0){if(row != this.lastRow_)changed = true;this.lastRow_ = row;for(var setIdx=0;setIdx < this.layout_.points.length;++setIdx) {var points=this.layout_.points[setIdx]; // Check if the point at the appropriate index is the point we're looking +// for. If it is, just use it, otherwise search the array for a point +// in the proper place. +var setRow=row - this.getLeftBoundary_(setIdx);if(setRow >= 0 && setRow < points.length && points[setRow].idx == row){var point=points[setRow];if(point.yval !== null)this.selPoints_.push(point);}else {for(var pointIdx=0;pointIdx < points.length;++pointIdx) {var point=points[pointIdx];if(point.idx == row){if(point.yval !== null){this.selPoints_.push(point);}break;}}}}}else {if(this.lastRow_ >= 0)changed = true;this.lastRow_ = -1;}if(this.selPoints_.length){this.lastx_ = this.selPoints_[0].xval;}else {this.lastx_ = -1;}if(opt_seriesName !== undefined){if(this.highlightSet_ !== opt_seriesName)changed = true;this.highlightSet_ = opt_seriesName;}if(opt_locked !== undefined){this.lockedSet_ = opt_locked;}if(changed){this.updateSelection_(undefined);}return changed;}; /** + * The mouse has left the canvas. Clear out whatever artifacts remain + * @param {Object} event the mouseout event from the browser. + * @private + */Dygraph.prototype.mouseOut_ = function(event){if(this.getFunctionOption("unhighlightCallback")){this.getFunctionOption("unhighlightCallback").call(this,event);}if(this.getBooleanOption("hideOverlayOnMouseOut") && !this.lockedSet_){this.clearSelection();}}; /** + * Clears the current selection (i.e. points that were highlighted by moving + * the mouse over the chart). + */Dygraph.prototype.clearSelection = function(){this.cascadeEvents_('deselect',{});this.lockedSet_ = false; // Get rid of the overlay data +if(this.fadeLevel){this.animateSelection_(-1);return;}this.canvas_ctx_.clearRect(0,0,this.width_,this.height_);this.fadeLevel = 0;this.selPoints_ = [];this.lastx_ = -1;this.lastRow_ = -1;this.highlightSet_ = null;}; /** + * Returns the number of the currently selected row. To get data for this row, + * you can use the getValue method. + * @return {number} row number, or -1 if nothing is selected + */Dygraph.prototype.getSelection = function(){if(!this.selPoints_ || this.selPoints_.length < 1){return -1;}for(var setIdx=0;setIdx < this.layout_.points.length;setIdx++) {var points=this.layout_.points[setIdx];for(var row=0;row < points.length;row++) {if(points[row].x == this.selPoints_[0].x){return points[row].idx;}}}return -1;}; /** + * Returns the name of the currently-highlighted series. + * Only available when the highlightSeriesOpts option is in use. + */Dygraph.prototype.getHighlightSeries = function(){return this.highlightSet_;}; /** + * Returns true if the currently-highlighted series was locked + * via setSelection(..., seriesName, true). + */Dygraph.prototype.isSeriesLocked = function(){return this.lockedSet_;}; /** + * Fires when there's data available to be graphed. + * @param {string} data Raw CSV data to be plotted + * @private + */Dygraph.prototype.loadedEvent_ = function(data){this.rawData_ = this.parseCSV_(data);this.cascadeDataDidUpdateEvent_();this.predraw_();}; /** + * Add ticks on the x-axis representing years, months, quarters, weeks, or days + * @private + */Dygraph.prototype.addXTicks_ = function(){ // Determine the correct ticks scale on the x-axis: quarterly, monthly, ... +var range;if(this.dateWindow_){range = [this.dateWindow_[0],this.dateWindow_[1]];}else {range = this.xAxisExtremes();}var xAxisOptionsView=this.optionsViewForAxis_('x');var xTicks=xAxisOptionsView('ticker')(range[0],range[1],this.plotter_.area.w, // TODO(danvk): should be area.width +xAxisOptionsView,this); // var msg = 'ticker(' + range[0] + ', ' + range[1] + ', ' + this.width_ + ', ' + this.attr_('pixelsPerXLabel') + ') -> ' + JSON.stringify(xTicks); +// console.log(msg); +this.layout_.setXTicks(xTicks);}; /** + * Returns the correct handler class for the currently set options. + * @private + */Dygraph.prototype.getHandlerClass_ = function(){var handlerClass;if(this.attr_('dataHandler')){handlerClass = this.attr_('dataHandler');}else if(this.fractions_){if(this.getBooleanOption('errorBars')){handlerClass = _datahandlerBarsFractions2['default'];}else {handlerClass = _datahandlerDefaultFractions2['default'];}}else if(this.getBooleanOption('customBars')){handlerClass = _datahandlerBarsCustom2['default'];}else if(this.getBooleanOption('errorBars')){handlerClass = _datahandlerBarsError2['default'];}else {handlerClass = _datahandlerDefault2['default'];}return handlerClass;}; /** + * @private + * This function is called once when the chart's data is changed or the options + * dictionary is updated. It is _not_ called when the user pans or zooms. The + * idea is that values derived from the chart's data can be computed here, + * rather than every time the chart is drawn. This includes things like the + * number of axes, rolling averages, etc. + */Dygraph.prototype.predraw_ = function(){var start=new Date(); // Create the correct dataHandler +this.dataHandler_ = new (this.getHandlerClass_())();this.layout_.computePlotArea(); // TODO(danvk): move more computations out of drawGraph_ and into here. +this.computeYAxes_();if(!this.is_initial_draw_){this.canvas_ctx_.restore();this.hidden_ctx_.restore();}this.canvas_ctx_.save();this.hidden_ctx_.save(); // Create a new plotter. +this.plotter_ = new _dygraphCanvas2['default'](this,this.hidden_,this.hidden_ctx_,this.layout_); // The roller sits in the bottom left corner of the chart. We don't know where +// this will be until the options are available, so it's positioned here. +this.createRollInterface_();this.cascadeEvents_('predraw'); // Convert the raw data (a 2D array) into the internal format and compute +// rolling averages. +this.rolledSeries_ = [null]; // x-axis is the first series and it's special +for(var i=1;i < this.numColumns();i++) { // var logScale = this.attr_('logscale', i); // TODO(klausw): this looks wrong // konigsberg thinks so too. +var series=this.dataHandler_.extractSeries(this.rawData_,i,this.attributes_);if(this.rollPeriod_ > 1){series = this.dataHandler_.rollingAverage(series,this.rollPeriod_,this.attributes_);}this.rolledSeries_.push(series);} // If the data or options have changed, then we'd better redraw. +this.drawGraph_(); // This is used to determine whether to do various animations. +var end=new Date();this.drawingTimeMs_ = end - start;}; /** + * Point structure. + * + * xval_* and yval_* are the original unscaled data values, + * while x_* and y_* are scaled to the range (0.0-1.0) for plotting. + * yval_stacked is the cumulative Y value used for stacking graphs, + * and bottom/top/minus/plus are used for error bar graphs. + * + * @typedef {{ + * idx: number, + * name: string, + * x: ?number, + * xval: ?number, + * y_bottom: ?number, + * y: ?number, + * y_stacked: ?number, + * y_top: ?number, + * yval_minus: ?number, + * yval: ?number, + * yval_plus: ?number, + * yval_stacked + * }} + */Dygraph.PointType = undefined; /** + * Calculates point stacking for stackedGraph=true. + * + * For stacking purposes, interpolate or extend neighboring data across + * NaN values based on stackedGraphNaNFill settings. This is for display + * only, the underlying data value as shown in the legend remains NaN. + * + * @param {Array.} points Point array for a single series. + * Updates each Point's yval_stacked property. + * @param {Array.} cumulativeYval Accumulated top-of-graph stacked Y + * values for the series seen so far. Index is the row number. Updated + * based on the current series's values. + * @param {Array.} seriesExtremes Min and max values, updated + * to reflect the stacked values. + * @param {string} fillMethod Interpolation method, one of 'all', 'inside', or + * 'none'. + * @private + */Dygraph.stackPoints_ = function(points,cumulativeYval,seriesExtremes,fillMethod){var lastXval=null;var prevPoint=null;var nextPoint=null;var nextPointIdx=-1; // Find the next stackable point starting from the given index. +var updateNextPoint=function updateNextPoint(idx){ // If we've previously found a non-NaN point and haven't gone past it yet, +// just use that. +if(nextPointIdx >= idx)return; // We haven't found a non-NaN point yet or have moved past it, +// look towards the right to find a non-NaN point. +for(var j=idx;j < points.length;++j) { // Clear out a previously-found point (if any) since it's no longer +// valid, we shouldn't use it for interpolation anymore. +nextPoint = null;if(!isNaN(points[j].yval) && points[j].yval !== null){nextPointIdx = j;nextPoint = points[j];break;}}};for(var i=0;i < points.length;++i) {var point=points[i];var xval=point.xval;if(cumulativeYval[xval] === undefined){cumulativeYval[xval] = 0;}var actualYval=point.yval;if(isNaN(actualYval) || actualYval === null){if(fillMethod == 'none'){actualYval = 0;}else { // Interpolate/extend for stacking purposes if possible. +updateNextPoint(i);if(prevPoint && nextPoint && fillMethod != 'none'){ // Use linear interpolation between prevPoint and nextPoint. +actualYval = prevPoint.yval + (nextPoint.yval - prevPoint.yval) * ((xval - prevPoint.xval) / (nextPoint.xval - prevPoint.xval));}else if(prevPoint && fillMethod == 'all'){actualYval = prevPoint.yval;}else if(nextPoint && fillMethod == 'all'){actualYval = nextPoint.yval;}else {actualYval = 0;}}}else {prevPoint = point;}var stackedYval=cumulativeYval[xval];if(lastXval != xval){ // If an x-value is repeated, we ignore the duplicates. +stackedYval += actualYval;cumulativeYval[xval] = stackedYval;}lastXval = xval;point.yval_stacked = stackedYval;if(stackedYval > seriesExtremes[1]){seriesExtremes[1] = stackedYval;}if(stackedYval < seriesExtremes[0]){seriesExtremes[0] = stackedYval;}}}; /** + * Loop over all fields and create datasets, calculating extreme y-values for + * each series and extreme x-indices as we go. + * + * dateWindow is passed in as an explicit parameter so that we can compute + * extreme values "speculatively", i.e. without actually setting state on the + * dygraph. + * + * @param {Array.)>>} rolledSeries, where + * rolledSeries[seriesIndex][row] = raw point, where + * seriesIndex is the column number starting with 1, and + * rawPoint is [x,y] or [x, [y, err]] or [x, [y, yminus, yplus]]. + * @param {?Array.} dateWindow [xmin, xmax] pair, or null. + * @return {{ + * points: Array.>, + * seriesExtremes: Array.>, + * boundaryIds: Array.}} + * @private + */Dygraph.prototype.gatherDatasets_ = function(rolledSeries,dateWindow){var boundaryIds=[];var points=[];var cumulativeYval=[]; // For stacked series. +var extremes={}; // series name -> [low, high] +var seriesIdx,sampleIdx;var firstIdx,lastIdx;var axisIdx; // Loop over the fields (series). Go from the last to the first, +// because if they're stacked that's how we accumulate the values. +var num_series=rolledSeries.length - 1;var series;for(seriesIdx = num_series;seriesIdx >= 1;seriesIdx--) {if(!this.visibility()[seriesIdx - 1])continue; // Prune down to the desired range, if necessary (for zooming) +// Because there can be lines going to points outside of the visible area, +// we actually prune to visible points, plus one on either side. +if(dateWindow){series = rolledSeries[seriesIdx];var low=dateWindow[0];var high=dateWindow[1]; // TODO(danvk): do binary search instead of linear search. +// TODO(danvk): pass firstIdx and lastIdx directly to the renderer. +firstIdx = null;lastIdx = null;for(sampleIdx = 0;sampleIdx < series.length;sampleIdx++) {if(series[sampleIdx][0] >= low && firstIdx === null){firstIdx = sampleIdx;}if(series[sampleIdx][0] <= high){lastIdx = sampleIdx;}}if(firstIdx === null)firstIdx = 0;var correctedFirstIdx=firstIdx;var isInvalidValue=true;while(isInvalidValue && correctedFirstIdx > 0) {correctedFirstIdx--; // check if the y value is null. +isInvalidValue = series[correctedFirstIdx][1] === null;}if(lastIdx === null)lastIdx = series.length - 1;var correctedLastIdx=lastIdx;isInvalidValue = true;while(isInvalidValue && correctedLastIdx < series.length - 1) {correctedLastIdx++;isInvalidValue = series[correctedLastIdx][1] === null;}if(correctedFirstIdx !== firstIdx){firstIdx = correctedFirstIdx;}if(correctedLastIdx !== lastIdx){lastIdx = correctedLastIdx;}boundaryIds[seriesIdx - 1] = [firstIdx,lastIdx]; // .slice's end is exclusive, we want to include lastIdx. +series = series.slice(firstIdx,lastIdx + 1);}else {series = rolledSeries[seriesIdx];boundaryIds[seriesIdx - 1] = [0,series.length - 1];}var seriesName=this.attr_("labels")[seriesIdx];var seriesExtremes=this.dataHandler_.getExtremeYValues(series,dateWindow,this.getBooleanOption("stepPlot",seriesName));var seriesPoints=this.dataHandler_.seriesToPoints(series,seriesName,boundaryIds[seriesIdx - 1][0]);if(this.getBooleanOption("stackedGraph")){axisIdx = this.attributes_.axisForSeries(seriesName);if(cumulativeYval[axisIdx] === undefined){cumulativeYval[axisIdx] = [];}Dygraph.stackPoints_(seriesPoints,cumulativeYval[axisIdx],seriesExtremes,this.getBooleanOption("stackedGraphNaNFill"));}extremes[seriesName] = seriesExtremes;points[seriesIdx] = seriesPoints;}return {points:points,extremes:extremes,boundaryIds:boundaryIds};}; /** + * Update the graph with new data. This method is called when the viewing area + * has changed. If the underlying data or options have changed, predraw_ will + * be called before drawGraph_ is called. + * + * @private + */Dygraph.prototype.drawGraph_ = function(){var start=new Date(); // This is used to set the second parameter to drawCallback, below. +var is_initial_draw=this.is_initial_draw_;this.is_initial_draw_ = false;this.layout_.removeAllDatasets();this.setColors_();this.attrs_.pointSize = 0.5 * this.getNumericOption('highlightCircleSize');var packed=this.gatherDatasets_(this.rolledSeries_,this.dateWindow_);var points=packed.points;var extremes=packed.extremes;this.boundaryIds_ = packed.boundaryIds;this.setIndexByName_ = {};var labels=this.attr_("labels");var dataIdx=0;for(var i=1;i < points.length;i++) {if(!this.visibility()[i - 1])continue;this.layout_.addDataset(labels[i],points[i]);this.datasetIndex_[i] = dataIdx++;}for(var i=0;i < labels.length;i++) {this.setIndexByName_[labels[i]] = i;}this.computeYAxisRanges_(extremes);this.layout_.setYAxes(this.axes_);this.addXTicks_(); // Tell PlotKit to use this new data and render itself +this.layout_.evaluate();this.renderGraph_(is_initial_draw);if(this.getStringOption("timingName")){var end=new Date();console.log(this.getStringOption("timingName") + " - drawGraph: " + (end - start) + "ms");}}; /** + * This does the work of drawing the chart. It assumes that the layout and axis + * scales have already been set (e.g. by predraw_). + * + * @private + */Dygraph.prototype.renderGraph_ = function(is_initial_draw){this.cascadeEvents_('clearChart');this.plotter_.clear();var underlayCallback=this.getFunctionOption('underlayCallback');if(underlayCallback){ // NOTE: we pass the dygraph object to this callback twice to avoid breaking +// users who expect a deprecated form of this callback. +underlayCallback.call(this,this.hidden_ctx_,this.layout_.getPlotArea(),this,this);}var e={canvas:this.hidden_,drawingContext:this.hidden_ctx_};this.cascadeEvents_('willDrawChart',e);this.plotter_.render();this.cascadeEvents_('didDrawChart',e);this.lastRow_ = -1; // because plugins/legend.js clears the legend +// TODO(danvk): is this a performance bottleneck when panning? +// The interaction canvas should already be empty in that situation. +this.canvas_.getContext('2d').clearRect(0,0,this.width_,this.height_);var drawCallback=this.getFunctionOption("drawCallback");if(drawCallback !== null){drawCallback.call(this,this,is_initial_draw);}if(is_initial_draw){this.readyFired_ = true;while(this.readyFns_.length > 0) {var fn=this.readyFns_.pop();fn(this);}}}; /** + * @private + * Determine properties of the y-axes which are independent of the data + * currently being displayed. This includes things like the number of axes and + * the style of the axes. It does not include the range of each axis and its + * tick marks. + * This fills in this.axes_. + * axes_ = [ { options } ] + * indices are into the axes_ array. + */Dygraph.prototype.computeYAxes_ = function(){var axis,index,opts,v; // this.axes_ doesn't match this.attributes_.axes_.options. It's used for +// data computation as well as options storage. +// Go through once and add all the axes. +this.axes_ = [];for(axis = 0;axis < this.attributes_.numAxes();axis++) { // Add a new axis, making a copy of its per-axis options. +opts = {g:this};utils.update(opts,this.attributes_.axisOptions(axis));this.axes_[axis] = opts;}for(axis = 0;axis < this.axes_.length;axis++) {if(axis === 0){opts = this.optionsViewForAxis_('y' + (axis?'2':''));v = opts("valueRange");if(v)this.axes_[axis].valueRange = v;}else { // To keep old behavior +var axes=this.user_attrs_.axes;if(axes && axes.y2){v = axes.y2.valueRange;if(v)this.axes_[axis].valueRange = v;}}}}; /** + * Returns the number of y-axes on the chart. + * @return {number} the number of axes. + */Dygraph.prototype.numAxes = function(){return this.attributes_.numAxes();}; /** + * @private + * Returns axis properties for the given series. + * @param {string} setName The name of the series for which to get axis + * properties, e.g. 'Y1'. + * @return {Object} The axis properties. + */Dygraph.prototype.axisPropertiesForSeries = function(series){ // TODO(danvk): handle errors. +return this.axes_[this.attributes_.axisForSeries(series)];}; /** + * @private + * Determine the value range and tick marks for each axis. + * @param {Object} extremes A mapping from seriesName -> [low, high] + * This fills in the valueRange and ticks fields in each entry of this.axes_. + */Dygraph.prototype.computeYAxisRanges_ = function(extremes){var isNullUndefinedOrNaN=function isNullUndefinedOrNaN(num){return isNaN(parseFloat(num));};var numAxes=this.attributes_.numAxes();var ypadCompat,span,series,ypad;var p_axis; // Compute extreme values, a span and tick marks for each axis. +for(var i=0;i < numAxes;i++) {var axis=this.axes_[i];var logscale=this.attributes_.getForAxis("logscale",i);var includeZero=this.attributes_.getForAxis("includeZero",i);var independentTicks=this.attributes_.getForAxis("independentTicks",i);series = this.attributes_.seriesForAxis(i); // Add some padding. This supports two Y padding operation modes: +// +// - backwards compatible (yRangePad not set): +// 10% padding for automatic Y ranges, but not for user-supplied +// ranges, and move a close-to-zero edge to zero, since drawing at the edge +// results in invisible lines. Unfortunately lines drawn at the edge of a +// user-supplied range will still be invisible. If logscale is +// set, add a variable amount of padding at the top but +// none at the bottom. +// +// - new-style (yRangePad set by the user): +// always add the specified Y padding. +// +ypadCompat = true;ypad = 0.1; // add 10% +var yRangePad=this.getNumericOption('yRangePad');if(yRangePad !== null){ypadCompat = false; // Convert pixel padding to ratio +ypad = yRangePad / this.plotter_.area.h;}if(series.length === 0){ // If no series are defined or visible then use a reasonable default +axis.extremeRange = [0,1];}else { // Calculate the extremes of extremes. +var minY=Infinity; // extremes[series[0]][0]; +var maxY=-Infinity; // extremes[series[0]][1]; +var extremeMinY,extremeMaxY;for(var j=0;j < series.length;j++) { // this skips invisible series +if(!extremes.hasOwnProperty(series[j]))continue; // Only use valid extremes to stop null data series' from corrupting the scale. +extremeMinY = extremes[series[j]][0];if(extremeMinY !== null){minY = Math.min(extremeMinY,minY);}extremeMaxY = extremes[series[j]][1];if(extremeMaxY !== null){maxY = Math.max(extremeMaxY,maxY);}} // Include zero if requested by the user. +if(includeZero && !logscale){if(minY > 0)minY = 0;if(maxY < 0)maxY = 0;} // Ensure we have a valid scale, otherwise default to [0, 1] for safety. +if(minY == Infinity)minY = 0;if(maxY == -Infinity)maxY = 1;span = maxY - minY; // special case: if we have no sense of scale, center on the sole value. +if(span === 0){if(maxY !== 0){span = Math.abs(maxY);}else { // ... and if the sole value is zero, use range 0-1. +maxY = 1;span = 1;}}var maxAxisY=maxY,minAxisY=minY;if(ypadCompat){if(logscale){maxAxisY = maxY + ypad * span;minAxisY = minY;}else {maxAxisY = maxY + ypad * span;minAxisY = minY - ypad * span; // Backwards-compatible behavior: Move the span to start or end at zero if it's +// close to zero. +if(minAxisY < 0 && minY >= 0)minAxisY = 0;if(maxAxisY > 0 && maxY <= 0)maxAxisY = 0;}}axis.extremeRange = [minAxisY,maxAxisY];}if(axis.valueRange){ // This is a user-set value range for this axis. +var y0=isNullUndefinedOrNaN(axis.valueRange[0])?axis.extremeRange[0]:axis.valueRange[0];var y1=isNullUndefinedOrNaN(axis.valueRange[1])?axis.extremeRange[1]:axis.valueRange[1];axis.computedValueRange = [y0,y1];}else {axis.computedValueRange = axis.extremeRange;}if(!ypadCompat){ // When using yRangePad, adjust the upper/lower bounds to add +// padding unless the user has zoomed/panned the Y axis range. +if(logscale){y0 = axis.computedValueRange[0];y1 = axis.computedValueRange[1];var y0pct=ypad / (2 * ypad - 1);var y1pct=(ypad - 1) / (2 * ypad - 1);axis.computedValueRange[0] = utils.logRangeFraction(y0,y1,y0pct);axis.computedValueRange[1] = utils.logRangeFraction(y0,y1,y1pct);}else {y0 = axis.computedValueRange[0];y1 = axis.computedValueRange[1];span = y1 - y0;axis.computedValueRange[0] = y0 - span * ypad;axis.computedValueRange[1] = y1 + span * ypad;}}if(independentTicks){axis.independentTicks = independentTicks;var opts=this.optionsViewForAxis_('y' + (i?'2':''));var ticker=opts('ticker');axis.ticks = ticker(axis.computedValueRange[0],axis.computedValueRange[1],this.plotter_.area.h,opts,this); // Define the first independent axis as primary axis. +if(!p_axis)p_axis = axis;}}if(p_axis === undefined){throw "Configuration Error: At least one axis has to have the \"independentTicks\" option activated.";} // Add ticks. By default, all axes inherit the tick positions of the +// primary axis. However, if an axis is specifically marked as having +// independent ticks, then that is permissible as well. +for(var i=0;i < numAxes;i++) {var axis=this.axes_[i];if(!axis.independentTicks){var opts=this.optionsViewForAxis_('y' + (i?'2':''));var ticker=opts('ticker');var p_ticks=p_axis.ticks;var p_scale=p_axis.computedValueRange[1] - p_axis.computedValueRange[0];var scale=axis.computedValueRange[1] - axis.computedValueRange[0];var tick_values=[];for(var k=0;k < p_ticks.length;k++) {var y_frac=(p_ticks[k].v - p_axis.computedValueRange[0]) / p_scale;var y_val=axis.computedValueRange[0] + y_frac * scale;tick_values.push(y_val);}axis.ticks = ticker(axis.computedValueRange[0],axis.computedValueRange[1],this.plotter_.area.h,opts,this,tick_values);}}}; /** + * Detects the type of the str (date or numeric) and sets the various + * formatting attributes in this.attrs_ based on this type. + * @param {string} str An x value. + * @private + */Dygraph.prototype.detectTypeFromString_ = function(str){var isDate=false;var dashPos=str.indexOf('-'); // could be 2006-01-01 _or_ 1.0e-2 +if(dashPos > 0 && str[dashPos - 1] != 'e' && str[dashPos - 1] != 'E' || str.indexOf('/') >= 0 || isNaN(parseFloat(str))){isDate = true;}else if(str.length == 8 && str > '19700101' && str < '20371231'){ // TODO(danvk): remove support for this format. +isDate = true;}this.setXAxisOptions_(isDate);};Dygraph.prototype.setXAxisOptions_ = function(isDate){if(isDate){this.attrs_.xValueParser = utils.dateParser;this.attrs_.axes.x.valueFormatter = utils.dateValueFormatter;this.attrs_.axes.x.ticker = DygraphTickers.dateTicker;this.attrs_.axes.x.axisLabelFormatter = utils.dateAxisLabelFormatter;}else { /** @private (shut up, jsdoc!) */this.attrs_.xValueParser = function(x){return parseFloat(x);}; // TODO(danvk): use Dygraph.numberValueFormatter here? +/** @private (shut up, jsdoc!) */this.attrs_.axes.x.valueFormatter = function(x){return x;};this.attrs_.axes.x.ticker = DygraphTickers.numericTicks;this.attrs_.axes.x.axisLabelFormatter = this.attrs_.axes.x.valueFormatter;}}; /** + * @private + * Parses a string in a special csv format. We expect a csv file where each + * line is a date point, and the first field in each line is the date string. + * We also expect that all remaining fields represent series. + * if the errorBars attribute is set, then interpret the fields as: + * date, series1, stddev1, series2, stddev2, ... + * @param {[Object]} data See above. + * + * @return [Object] An array with one entry for each row. These entries + * are an array of cells in that row. The first entry is the parsed x-value for + * the row. The second, third, etc. are the y-values. These can take on one of + * three forms, depending on the CSV and constructor parameters: + * 1. numeric value + * 2. [ value, stddev ] + * 3. [ low value, center value, high value ] + */Dygraph.prototype.parseCSV_ = function(data){var ret=[];var line_delimiter=utils.detectLineDelimiter(data);var lines=data.split(line_delimiter || "\n");var vals,j; // Use the default delimiter or fall back to a tab if that makes sense. +var delim=this.getStringOption('delimiter');if(lines[0].indexOf(delim) == -1 && lines[0].indexOf('\t') >= 0){delim = '\t';}var start=0;if(!('labels' in this.user_attrs_)){ // User hasn't explicitly set labels, so they're (presumably) in the CSV. +start = 1;this.attrs_.labels = lines[0].split(delim); // NOTE: _not_ user_attrs_. +this.attributes_.reparseSeries();}var line_no=0;var xParser;var defaultParserSet=false; // attempt to auto-detect x value type +var expectedCols=this.attr_("labels").length;var outOfOrder=false;for(var i=start;i < lines.length;i++) {var line=lines[i];line_no = i;if(line.length === 0)continue; // skip blank lines +if(line[0] == '#')continue; // skip comment lines +var inFields=line.split(delim);if(inFields.length < 2)continue;var fields=[];if(!defaultParserSet){this.detectTypeFromString_(inFields[0]);xParser = this.getFunctionOption("xValueParser");defaultParserSet = true;}fields[0] = xParser(inFields[0],this); // If fractions are expected, parse the numbers as "A/B" +if(this.fractions_){for(j = 1;j < inFields.length;j++) { // TODO(danvk): figure out an appropriate way to flag parse errors. +vals = inFields[j].split("/");if(vals.length != 2){console.error('Expected fractional "num/den" values in CSV data ' + "but found a value '" + inFields[j] + "' on line " + (1 + i) + " ('" + line + "') which is not of this form.");fields[j] = [0,0];}else {fields[j] = [utils.parseFloat_(vals[0],i,line),utils.parseFloat_(vals[1],i,line)];}}}else if(this.getBooleanOption("errorBars")){ // If there are error bars, values are (value, stddev) pairs +if(inFields.length % 2 != 1){console.error('Expected alternating (value, stdev.) pairs in CSV data ' + 'but line ' + (1 + i) + ' has an odd number of values (' + (inFields.length - 1) + "): '" + line + "'");}for(j = 1;j < inFields.length;j += 2) {fields[(j + 1) / 2] = [utils.parseFloat_(inFields[j],i,line),utils.parseFloat_(inFields[j + 1],i,line)];}}else if(this.getBooleanOption("customBars")){ // Bars are a low;center;high tuple +for(j = 1;j < inFields.length;j++) {var val=inFields[j];if(/^ *$/.test(val)){fields[j] = [null,null,null];}else {vals = val.split(";");if(vals.length == 3){fields[j] = [utils.parseFloat_(vals[0],i,line),utils.parseFloat_(vals[1],i,line),utils.parseFloat_(vals[2],i,line)];}else {console.warn('When using customBars, values must be either blank ' + 'or "low;center;high" tuples (got "' + val + '" on line ' + (1 + i));}}}}else { // Values are just numbers +for(j = 1;j < inFields.length;j++) {fields[j] = utils.parseFloat_(inFields[j],i,line);}}if(ret.length > 0 && fields[0] < ret[ret.length - 1][0]){outOfOrder = true;}if(fields.length != expectedCols){console.error("Number of columns in line " + i + " (" + fields.length + ") does not agree with number of labels (" + expectedCols + ") " + line);} // If the user specified the 'labels' option and none of the cells of the +// first row parsed correctly, then they probably double-specified the +// labels. We go with the values set in the option, discard this row and +// log a warning to the JS console. +if(i === 0 && this.attr_('labels')){var all_null=true;for(j = 0;all_null && j < fields.length;j++) {if(fields[j])all_null = false;}if(all_null){console.warn("The dygraphs 'labels' option is set, but the first row " + "of CSV data ('" + line + "') appears to also contain " + "labels. Will drop the CSV labels and use the option " + "labels.");continue;}}ret.push(fields);}if(outOfOrder){console.warn("CSV is out of order; order it correctly to speed loading.");ret.sort(function(a,b){return a[0] - b[0];});}return ret;}; // In native format, all values must be dates or numbers. +// This check isn't perfect but will catch most mistaken uses of strings. +function validateNativeFormat(data){var firstRow=data[0];var firstX=firstRow[0];if(typeof firstX !== 'number' && !utils.isDateLike(firstX)){throw new Error('Expected number or date but got ' + typeof firstX + ': ' + firstX + '.');}for(var i=1;i < firstRow.length;i++) {var val=firstRow[i];if(val === null || val === undefined)continue;if(typeof val === 'number')continue;if(utils.isArrayLike(val))continue; // e.g. error bars or custom bars. +throw new Error('Expected number or array but got ' + typeof val + ': ' + val + '.');}} /** + * The user has provided their data as a pre-packaged JS array. If the x values + * are numeric, this is the same as dygraphs' internal format. If the x values + * are dates, we need to convert them from Date objects to ms since epoch. + * @param {!Array} data + * @return {Object} data with numeric x values. + * @private + */Dygraph.prototype.parseArray_ = function(data){ // Peek at the first x value to see if it's numeric. +if(data.length === 0){console.error("Can't plot empty data set");return null;}if(data[0].length === 0){console.error("Data set cannot contain an empty row");return null;}validateNativeFormat(data);var i;if(this.attr_("labels") === null){console.warn("Using default labels. Set labels explicitly via 'labels' " + "in the options parameter");this.attrs_.labels = ["X"];for(i = 1;i < data[0].length;i++) {this.attrs_.labels.push("Y" + i); // Not user_attrs_. +}this.attributes_.reparseSeries();}else {var num_labels=this.attr_("labels");if(num_labels.length != data[0].length){console.error("Mismatch between number of labels (" + num_labels + ")" + " and number of columns in array (" + data[0].length + ")");return null;}}if(utils.isDateLike(data[0][0])){ // Some intelligent defaults for a date x-axis. +this.attrs_.axes.x.valueFormatter = utils.dateValueFormatter;this.attrs_.axes.x.ticker = DygraphTickers.dateTicker;this.attrs_.axes.x.axisLabelFormatter = utils.dateAxisLabelFormatter; // Assume they're all dates. +var parsedData=utils.clone(data);for(i = 0;i < data.length;i++) {if(parsedData[i].length === 0){console.error("Row " + (1 + i) + " of data is empty");return null;}if(parsedData[i][0] === null || typeof parsedData[i][0].getTime != 'function' || isNaN(parsedData[i][0].getTime())){console.error("x value in row " + (1 + i) + " is not a Date");return null;}parsedData[i][0] = parsedData[i][0].getTime();}return parsedData;}else { // Some intelligent defaults for a numeric x-axis. +/** @private (shut up, jsdoc!) */this.attrs_.axes.x.valueFormatter = function(x){return x;};this.attrs_.axes.x.ticker = DygraphTickers.numericTicks;this.attrs_.axes.x.axisLabelFormatter = utils.numberAxisLabelFormatter;return data;}}; /** + * Parses a DataTable object from gviz. + * The data is expected to have a first column that is either a date or a + * number. All subsequent columns must be numbers. If there is a clear mismatch + * between this.xValueParser_ and the type of the first column, it will be + * fixed. Fills out rawData_. + * @param {!google.visualization.DataTable} data See above. + * @private + */Dygraph.prototype.parseDataTable_ = function(data){var shortTextForAnnotationNum=function shortTextForAnnotationNum(num){ // converts [0-9]+ [A-Z][a-z]* +// example: 0=A, 1=B, 25=Z, 26=Aa, 27=Ab +// and continues like.. Ba Bb .. Za .. Zz..Aaa...Zzz Aaaa Zzzz +var shortText=String.fromCharCode(65 /* A */ + num % 26);num = Math.floor(num / 26);while(num > 0) {shortText = String.fromCharCode(65 /* A */ + (num - 1) % 26) + shortText.toLowerCase();num = Math.floor((num - 1) / 26);}return shortText;};var cols=data.getNumberOfColumns();var rows=data.getNumberOfRows();var indepType=data.getColumnType(0);if(indepType == 'date' || indepType == 'datetime'){this.attrs_.xValueParser = utils.dateParser;this.attrs_.axes.x.valueFormatter = utils.dateValueFormatter;this.attrs_.axes.x.ticker = DygraphTickers.dateTicker;this.attrs_.axes.x.axisLabelFormatter = utils.dateAxisLabelFormatter;}else if(indepType == 'number'){this.attrs_.xValueParser = function(x){return parseFloat(x);};this.attrs_.axes.x.valueFormatter = function(x){return x;};this.attrs_.axes.x.ticker = DygraphTickers.numericTicks;this.attrs_.axes.x.axisLabelFormatter = this.attrs_.axes.x.valueFormatter;}else {throw new Error("only 'date', 'datetime' and 'number' types are supported " + "for column 1 of DataTable input (Got '" + indepType + "')");} // Array of the column indices which contain data (and not annotations). +var colIdx=[];var annotationCols={}; // data index -> [annotation cols] +var hasAnnotations=false;var i,j;for(i = 1;i < cols;i++) {var type=data.getColumnType(i);if(type == 'number'){colIdx.push(i);}else if(type == 'string' && this.getBooleanOption('displayAnnotations')){ // This is OK -- it's an annotation column. +var dataIdx=colIdx[colIdx.length - 1];if(!annotationCols.hasOwnProperty(dataIdx)){annotationCols[dataIdx] = [i];}else {annotationCols[dataIdx].push(i);}hasAnnotations = true;}else {throw new Error("Only 'number' is supported as a dependent type with Gviz." + " 'string' is only supported if displayAnnotations is true");}} // Read column labels +// TODO(danvk): add support back for errorBars +var labels=[data.getColumnLabel(0)];for(i = 0;i < colIdx.length;i++) {labels.push(data.getColumnLabel(colIdx[i]));if(this.getBooleanOption("errorBars"))i += 1;}this.attrs_.labels = labels;cols = labels.length;var ret=[];var outOfOrder=false;var annotations=[];for(i = 0;i < rows;i++) {var row=[];if(typeof data.getValue(i,0) === 'undefined' || data.getValue(i,0) === null){console.warn("Ignoring row " + i + " of DataTable because of undefined or null first column.");continue;}if(indepType == 'date' || indepType == 'datetime'){row.push(data.getValue(i,0).getTime());}else {row.push(data.getValue(i,0));}if(!this.getBooleanOption("errorBars")){for(j = 0;j < colIdx.length;j++) {var col=colIdx[j];row.push(data.getValue(i,col));if(hasAnnotations && annotationCols.hasOwnProperty(col) && data.getValue(i,annotationCols[col][0]) !== null){var ann={};ann.series = data.getColumnLabel(col);ann.xval = row[0];ann.shortText = shortTextForAnnotationNum(annotations.length);ann.text = '';for(var k=0;k < annotationCols[col].length;k++) {if(k)ann.text += "\n";ann.text += data.getValue(i,annotationCols[col][k]);}annotations.push(ann);}} // Strip out infinities, which give dygraphs problems later on. +for(j = 0;j < row.length;j++) {if(!isFinite(row[j]))row[j] = null;}}else {for(j = 0;j < cols - 1;j++) {row.push([data.getValue(i,1 + 2 * j),data.getValue(i,2 + 2 * j)]);}}if(ret.length > 0 && row[0] < ret[ret.length - 1][0]){outOfOrder = true;}ret.push(row);}if(outOfOrder){console.warn("DataTable is out of order; order it correctly to speed loading.");ret.sort(function(a,b){return a[0] - b[0];});}this.rawData_ = ret;if(annotations.length > 0){this.setAnnotations(annotations,true);}this.attributes_.reparseSeries();}; /** + * Signals to plugins that the chart data has updated. + * This happens after the data has updated but before the chart has redrawn. + * @private + */Dygraph.prototype.cascadeDataDidUpdateEvent_ = function(){ // TODO(danvk): there are some issues checking xAxisRange() and using +// toDomCoords from handlers of this event. The visible range should be set +// when the chart is drawn, not derived from the data. +this.cascadeEvents_('dataDidUpdate',{});}; /** + * Get the CSV data. If it's in a function, call that function. If it's in a + * file, do an XMLHttpRequest to get it. + * @private + */Dygraph.prototype.start_ = function(){var data=this.file_; // Functions can return references of all other types. +if(typeof data == 'function'){data = data();}if(utils.isArrayLike(data)){this.rawData_ = this.parseArray_(data);this.cascadeDataDidUpdateEvent_();this.predraw_();}else if(typeof data == 'object' && typeof data.getColumnRange == 'function'){ // must be a DataTable from gviz. +this.parseDataTable_(data);this.cascadeDataDidUpdateEvent_();this.predraw_();}else if(typeof data == 'string'){ // Heuristic: a newline means it's CSV data. Otherwise it's an URL. +var line_delimiter=utils.detectLineDelimiter(data);if(line_delimiter){this.loadedEvent_(data);}else { // REMOVE_FOR_IE +var req;if(window.XMLHttpRequest){ // Firefox, Opera, IE7, and other browsers will use the native object +req = new XMLHttpRequest();}else { // IE 5 and 6 will use the ActiveX control +req = new ActiveXObject("Microsoft.XMLHTTP");}var caller=this;req.onreadystatechange = function(){if(req.readyState == 4){if(req.status === 200 || // Normal http +req.status === 0){ // Chrome w/ --allow-file-access-from-files +caller.loadedEvent_(req.responseText);}}};req.open("GET",data,true);req.send(null);}}else {console.error("Unknown data format: " + typeof data);}}; /** + * Changes various properties of the graph. These can include: + *
    + *
  • file: changes the source data for the graph
  • + *
  • errorBars: changes whether the data contains stddev
  • + *
+ * + * There's a huge variety of options that can be passed to this method. For a + * full list, see http://dygraphs.com/options.html. + * + * @param {Object} input_attrs The new properties and values + * @param {boolean} block_redraw Usually the chart is redrawn after every + * call to updateOptions(). If you know better, you can pass true to + * explicitly block the redraw. This can be useful for chaining + * updateOptions() calls, avoiding the occasional infinite loop and + * preventing redraws when it's not necessary (e.g. when updating a + * callback). + */Dygraph.prototype.updateOptions = function(input_attrs,block_redraw){if(typeof block_redraw == 'undefined')block_redraw = false; // copyUserAttrs_ drops the "file" parameter as a convenience to us. +var file=input_attrs.file;var attrs=Dygraph.copyUserAttrs_(input_attrs); // TODO(danvk): this is a mess. Move these options into attr_. +if('rollPeriod' in attrs){this.rollPeriod_ = attrs.rollPeriod;}if('dateWindow' in attrs){this.dateWindow_ = attrs.dateWindow;} // TODO(danvk): validate per-series options. +// Supported: +// strokeWidth +// pointSize +// drawPoints +// highlightCircleSize +// Check if this set options will require new points. +var requiresNewPoints=utils.isPixelChangingOptionList(this.attr_("labels"),attrs);utils.updateDeep(this.user_attrs_,attrs);this.attributes_.reparseSeries();if(file){ // This event indicates that the data is about to change, but hasn't yet. +// TODO(danvk): support cancellation of the update via this event. +this.cascadeEvents_('dataWillUpdate',{});this.file_ = file;if(!block_redraw)this.start_();}else {if(!block_redraw){if(requiresNewPoints){this.predraw_();}else {this.renderGraph_(false);}}}}; /** + * Make a copy of input attributes, removing file as a convenience. + * @private + */Dygraph.copyUserAttrs_ = function(attrs){var my_attrs={};for(var k in attrs) {if(!attrs.hasOwnProperty(k))continue;if(k == 'file')continue;if(attrs.hasOwnProperty(k))my_attrs[k] = attrs[k];}return my_attrs;}; /** + * Resizes the dygraph. If no parameters are specified, resizes to fill the + * containing div (which has presumably changed size since the dygraph was + * instantiated. If the width/height are specified, the div will be resized. + * + * This is far more efficient than destroying and re-instantiating a + * Dygraph, since it doesn't have to reparse the underlying data. + * + * @param {number} width Width (in pixels) + * @param {number} height Height (in pixels) + */Dygraph.prototype.resize = function(width,height){if(this.resize_lock){return;}this.resize_lock = true;if(width === null != (height === null)){console.warn("Dygraph.resize() should be called with zero parameters or " + "two non-NULL parameters. Pretending it was zero.");width = height = null;}var old_width=this.width_;var old_height=this.height_;if(width){this.maindiv_.style.width = width + "px";this.maindiv_.style.height = height + "px";this.width_ = width;this.height_ = height;}else {this.width_ = this.maindiv_.clientWidth;this.height_ = this.maindiv_.clientHeight;}if(old_width != this.width_ || old_height != this.height_){ // Resizing a canvas erases it, even when the size doesn't change, so +// any resize needs to be followed by a redraw. +this.resizeElements_();this.predraw_();}this.resize_lock = false;}; /** + * Adjusts the number of points in the rolling average. Updates the graph to + * reflect the new averaging period. + * @param {number} length Number of points over which to average the data. + */Dygraph.prototype.adjustRoll = function(length){this.rollPeriod_ = length;this.predraw_();}; /** + * Returns a boolean array of visibility statuses. + */Dygraph.prototype.visibility = function(){ // Do lazy-initialization, so that this happens after we know the number of +// data series. +if(!this.getOption("visibility")){this.attrs_.visibility = [];} // TODO(danvk): it looks like this could go into an infinite loop w/ user_attrs. +while(this.getOption("visibility").length < this.numColumns() - 1) {this.attrs_.visibility.push(true);}return this.getOption("visibility");}; /** + * Changes the visibility of one or more series. + * + * @param {number|number[]|object} num the series index or an array of series indices + * or a boolean array of visibility states by index + * or an object mapping series numbers, as keys, to + * visibility state (boolean values) + * @param {boolean} value the visibility state expressed as a boolean + */Dygraph.prototype.setVisibility = function(num,value){var x=this.visibility();var numIsObject=false;if(!Array.isArray(num)){if(num !== null && typeof num === 'object'){numIsObject = true;}else {num = [num];}}if(numIsObject){for(var i in num) {if(num.hasOwnProperty(i)){if(i < 0 || i >= x.length){console.warn("Invalid series number in setVisibility: " + i);}else {x[i] = num[i];}}}}else {for(var i=0;i < num.length;i++) {if(typeof num[i] === 'boolean'){if(i >= x.length){console.warn("Invalid series number in setVisibility: " + i);}else {x[i] = num[i];}}else {if(num[i] < 0 || num[i] >= x.length){console.warn("Invalid series number in setVisibility: " + num[i]);}else {x[num[i]] = value;}}}}this.predraw_();}; /** + * How large of an area will the dygraph render itself in? + * This is used for testing. + * @return A {width: w, height: h} object. + * @private + */Dygraph.prototype.size = function(){return {width:this.width_,height:this.height_};}; /** + * Update the list of annotations and redraw the chart. + * See dygraphs.com/annotations.html for more info on how to use annotations. + * @param ann {Array} An array of annotation objects. + * @param suppressDraw {Boolean} Set to "true" to block chart redraw (optional). + */Dygraph.prototype.setAnnotations = function(ann,suppressDraw){ // Only add the annotation CSS rule once we know it will be used. +this.annotations_ = ann;if(!this.layout_){console.warn("Tried to setAnnotations before dygraph was ready. " + "Try setting them in a ready() block. See " + "dygraphs.com/tests/annotation.html");return;}this.layout_.setAnnotations(this.annotations_);if(!suppressDraw){this.predraw_();}}; /** + * Return the list of annotations. + */Dygraph.prototype.annotations = function(){return this.annotations_;}; /** + * Get the list of label names for this graph. The first column is the + * x-axis, so the data series names start at index 1. + * + * Returns null when labels have not yet been defined. + */Dygraph.prototype.getLabels = function(){var labels=this.attr_("labels");return labels?labels.slice():null;}; /** + * Get the index of a series (column) given its name. The first column is the + * x-axis, so the data series start with index 1. + */Dygraph.prototype.indexFromSetName = function(name){return this.setIndexByName_[name];}; /** + * Find the row number corresponding to the given x-value. + * Returns null if there is no such x-value in the data. + * If there are multiple rows with the same x-value, this will return the + * first one. + * @param {number} xVal The x-value to look for (e.g. millis since epoch). + * @return {?number} The row number, which you can pass to getValue(), or null. + */Dygraph.prototype.getRowForX = function(xVal){var low=0,high=this.numRows() - 1;while(low <= high) {var idx=high + low >> 1;var x=this.getValue(idx,0);if(x < xVal){low = idx + 1;}else if(x > xVal){high = idx - 1;}else if(low != idx){ // equal, but there may be an earlier match. +high = idx;}else {return idx;}}return null;}; /** + * Trigger a callback when the dygraph has drawn itself and is ready to be + * manipulated. This is primarily useful when dygraphs has to do an XHR for the + * data (i.e. a URL is passed as the data source) and the chart is drawn + * asynchronously. If the chart has already drawn, the callback will fire + * immediately. + * + * This is a good place to call setAnnotation(). + * + * @param {function(!Dygraph)} callback The callback to trigger when the chart + * is ready. + */Dygraph.prototype.ready = function(callback){if(this.is_initial_draw_){this.readyFns_.push(callback);}else {callback.call(this,this);}}; /** + * Add an event handler. This event handler is kept until the graph is + * destroyed with a call to graph.destroy(). + * + * @param {!Node} elem The element to add the event to. + * @param {string} type The type of the event, e.g. 'click' or 'mousemove'. + * @param {function(Event):(boolean|undefined)} fn The function to call + * on the event. The function takes one parameter: the event object. + * @private + */Dygraph.prototype.addAndTrackEvent = function(elem,type,fn){utils.addEvent(elem,type,fn);this.registeredEvents_.push({elem:elem,type:type,fn:fn});};Dygraph.prototype.removeTrackedEvents_ = function(){if(this.registeredEvents_){for(var idx=0;idx < this.registeredEvents_.length;idx++) {var reg=this.registeredEvents_[idx];utils.removeEvent(reg.elem,reg.type,reg.fn);}}this.registeredEvents_ = [];}; // Installed plugins, in order of precedence (most-general to most-specific). +Dygraph.PLUGINS = [_pluginsLegend2['default'],_pluginsAxes2['default'],_pluginsRangeSelector2['default'], // Has to be before ChartLabels so that its callbacks are called after ChartLabels' callbacks. +_pluginsChartLabels2['default'],_pluginsAnnotations2['default'],_pluginsGrid2['default']]; // There are many symbols which have historically been available through the +// Dygraph class. These are exported here for backwards compatibility. +Dygraph.GVizChart = _dygraphGviz2['default'];Dygraph.DASHED_LINE = utils.DASHED_LINE;Dygraph.DOT_DASH_LINE = utils.DOT_DASH_LINE;Dygraph.dateAxisLabelFormatter = utils.dateAxisLabelFormatter;Dygraph.toRGB_ = utils.toRGB_;Dygraph.findPos = utils.findPos;Dygraph.pageX = utils.pageX;Dygraph.pageY = utils.pageY;Dygraph.dateString_ = utils.dateString_;Dygraph.defaultInteractionModel = _dygraphInteractionModel2['default'].defaultModel;Dygraph.nonInteractiveModel = Dygraph.nonInteractiveModel_ = _dygraphInteractionModel2['default'].nonInteractiveModel_;Dygraph.Circles = utils.Circles;Dygraph.Plugins = {Legend:_pluginsLegend2['default'],Axes:_pluginsAxes2['default'],Annotations:_pluginsAnnotations2['default'],ChartLabels:_pluginsChartLabels2['default'],Grid:_pluginsGrid2['default'],RangeSelector:_pluginsRangeSelector2['default']};Dygraph.DataHandlers = {DefaultHandler:_datahandlerDefault2['default'],BarsHandler:_datahandlerBars2['default'],CustomBarsHandler:_datahandlerBarsCustom2['default'],DefaultFractionHandler:_datahandlerDefaultFractions2['default'],ErrorBarsHandler:_datahandlerBarsError2['default'],FractionsBarsHandler:_datahandlerBarsFractions2['default']};Dygraph.startPan = _dygraphInteractionModel2['default'].startPan;Dygraph.startZoom = _dygraphInteractionModel2['default'].startZoom;Dygraph.movePan = _dygraphInteractionModel2['default'].movePan;Dygraph.moveZoom = _dygraphInteractionModel2['default'].moveZoom;Dygraph.endPan = _dygraphInteractionModel2['default'].endPan;Dygraph.endZoom = _dygraphInteractionModel2['default'].endZoom;Dygraph.numericLinearTicks = DygraphTickers.numericLinearTicks;Dygraph.numericTicks = DygraphTickers.numericTicks;Dygraph.dateTicker = DygraphTickers.dateTicker;Dygraph.Granularity = DygraphTickers.Granularity;Dygraph.getDateAxis = DygraphTickers.getDateAxis;Dygraph.floatFormat = utils.floatFormat;exports['default'] = Dygraph;module.exports = exports['default']; + +}).call(this,require('_process')) + +},{"./datahandler/bars":5,"./datahandler/bars-custom":2,"./datahandler/bars-error":3,"./datahandler/bars-fractions":4,"./datahandler/default":8,"./datahandler/default-fractions":7,"./dygraph-canvas":9,"./dygraph-default-attrs":10,"./dygraph-gviz":11,"./dygraph-interaction-model":12,"./dygraph-layout":13,"./dygraph-options":15,"./dygraph-options-reference":14,"./dygraph-tickers":16,"./dygraph-utils":17,"./iframe-tarp":19,"./plugins/annotations":20,"./plugins/axes":21,"./plugins/chart-labels":22,"./plugins/grid":23,"./plugins/legend":24,"./plugins/range-selector":25,"_process":1}],19:[function(require,module,exports){ +/** + * To create a "drag" interaction, you typically register a mousedown event + * handler on the element where the drag begins. In that handler, you register a + * mouseup handler on the window to determine when the mouse is released, + * wherever that release happens. This works well, except when the user releases + * the mouse over an off-domain iframe. In that case, the mouseup event is + * handled by the iframe and never bubbles up to the window handler. + * + * To deal with this issue, we cover iframes with high z-index divs to make sure + * they don't capture mouseup. + * + * Usage: + * element.addEventListener('mousedown', function() { + * var tarper = new IFrameTarp(); + * tarper.cover(); + * var mouseUpHandler = function() { + * ... + * window.removeEventListener(mouseUpHandler); + * tarper.uncover(); + * }; + * window.addEventListener('mouseup', mouseUpHandler); + * }; + * + * @constructor + */ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj["default"] = obj; return newObj; } } + +var _dygraphUtils = require('./dygraph-utils'); + +var utils = _interopRequireWildcard(_dygraphUtils); + +function IFrameTarp() { + /** @type {Array.} */ + this.tarps = []; +}; + +/** + * Find all the iframes in the document and cover them with high z-index + * transparent divs. + */ +IFrameTarp.prototype.cover = function () { + var iframes = document.getElementsByTagName("iframe"); + for (var i = 0; i < iframes.length; i++) { + var iframe = iframes[i]; + var pos = utils.findPos(iframe), + x = pos.x, + y = pos.y, + width = iframe.offsetWidth, + height = iframe.offsetHeight; + + var div = document.createElement("div"); + div.style.position = "absolute"; + div.style.left = x + 'px'; + div.style.top = y + 'px'; + div.style.width = width + 'px'; + div.style.height = height + 'px'; + div.style.zIndex = 999; + document.body.appendChild(div); + this.tarps.push(div); + } +}; + +/** + * Remove all the iframe covers. You should call this in a mouseup handler. + */ +IFrameTarp.prototype.uncover = function () { + for (var i = 0; i < this.tarps.length; i++) { + this.tarps[i].parentNode.removeChild(this.tarps[i]); + } + this.tarps = []; +}; + +exports["default"] = IFrameTarp; +module.exports = exports["default"]; + +},{"./dygraph-utils":17}],20:[function(require,module,exports){ +/** + * @license + * Copyright 2012 Dan Vanderkam (danvdk@gmail.com) + * MIT-licensed (http://opensource.org/licenses/MIT) + */ + +/*global Dygraph:false */ + +"use strict"; + +/** +Current bits of jankiness: +- Uses dygraph.layout_ to get the parsed annotations. +- Uses dygraph.plotter_.area + +It would be nice if the plugin didn't require so much special support inside +the core dygraphs classes, but annotations involve quite a bit of parsing and +layout. + +TODO(danvk): cache DOM elements. +*/ + +Object.defineProperty(exports, "__esModule", { + value: true +}); +var annotations = function annotations() { + this.annotations_ = []; +}; + +annotations.prototype.toString = function () { + return "Annotations Plugin"; +}; + +annotations.prototype.activate = function (g) { + return { + clearChart: this.clearChart, + didDrawChart: this.didDrawChart + }; +}; + +annotations.prototype.detachLabels = function () { + for (var i = 0; i < this.annotations_.length; i++) { + var a = this.annotations_[i]; + if (a.parentNode) a.parentNode.removeChild(a); + this.annotations_[i] = null; + } + this.annotations_ = []; +}; + +annotations.prototype.clearChart = function (e) { + this.detachLabels(); +}; + +annotations.prototype.didDrawChart = function (e) { + var g = e.dygraph; + + // Early out in the (common) case of zero annotations. + var points = g.layout_.annotated_points; + if (!points || points.length === 0) return; + + var containerDiv = e.canvas.parentNode; + + var bindEvt = function bindEvt(eventName, classEventName, pt) { + return function (annotation_event) { + var a = pt.annotation; + if (a.hasOwnProperty(eventName)) { + a[eventName](a, pt, g, annotation_event); + } else if (g.getOption(classEventName)) { + g.getOption(classEventName)(a, pt, g, annotation_event); + } + }; + }; + + // Add the annotations one-by-one. + var area = e.dygraph.getArea(); + + // x-coord to sum of previous annotation's heights (used for stacking). + var xToUsedHeight = {}; + + for (var i = 0; i < points.length; i++) { + var p = points[i]; + if (p.canvasx < area.x || p.canvasx > area.x + area.w || p.canvasy < area.y || p.canvasy > area.y + area.h) { + continue; + } + + var a = p.annotation; + var tick_height = 6; + if (a.hasOwnProperty("tickHeight")) { + tick_height = a.tickHeight; + } + + // TODO: deprecate axisLabelFontSize in favor of CSS + var div = document.createElement("div"); + div.style['fontSize'] = g.getOption('axisLabelFontSize') + "px"; + var className = 'dygraph-annotation'; + if (!a.hasOwnProperty('icon')) { + // camelCase class names are deprecated. + className += ' dygraphDefaultAnnotation dygraph-default-annotation'; + } + if (a.hasOwnProperty('cssClass')) { + className += " " + a.cssClass; + } + div.className = className; + + var width = a.hasOwnProperty('width') ? a.width : 16; + var height = a.hasOwnProperty('height') ? a.height : 16; + if (a.hasOwnProperty('icon')) { + var img = document.createElement("img"); + img.src = a.icon; + img.width = width; + img.height = height; + div.appendChild(img); + } else if (p.annotation.hasOwnProperty('shortText')) { + div.appendChild(document.createTextNode(p.annotation.shortText)); + } + var left = p.canvasx - width / 2; + div.style.left = left + "px"; + var divTop = 0; + if (a.attachAtBottom) { + var y = area.y + area.h - height - tick_height; + if (xToUsedHeight[left]) { + y -= xToUsedHeight[left]; + } else { + xToUsedHeight[left] = 0; + } + xToUsedHeight[left] += tick_height + height; + divTop = y; + } else { + divTop = p.canvasy - height - tick_height; + } + div.style.top = divTop + "px"; + div.style.width = width + "px"; + div.style.height = height + "px"; + div.title = p.annotation.text; + div.style.color = g.colorsMap_[p.name]; + div.style.borderColor = g.colorsMap_[p.name]; + a.div = div; + + g.addAndTrackEvent(div, 'click', bindEvt('clickHandler', 'annotationClickHandler', p, this)); + g.addAndTrackEvent(div, 'mouseover', bindEvt('mouseOverHandler', 'annotationMouseOverHandler', p, this)); + g.addAndTrackEvent(div, 'mouseout', bindEvt('mouseOutHandler', 'annotationMouseOutHandler', p, this)); + g.addAndTrackEvent(div, 'dblclick', bindEvt('dblClickHandler', 'annotationDblClickHandler', p, this)); + + containerDiv.appendChild(div); + this.annotations_.push(div); + + var ctx = e.drawingContext; + ctx.save(); + ctx.strokeStyle = a.hasOwnProperty('tickColor') ? a.tickColor : g.colorsMap_[p.name]; + ctx.lineWidth = a.hasOwnProperty('tickWidth') ? a.tickWidth : g.getOption('strokeWidth'); + ctx.beginPath(); + if (!a.attachAtBottom) { + ctx.moveTo(p.canvasx, p.canvasy); + ctx.lineTo(p.canvasx, p.canvasy - 2 - tick_height); + } else { + var y = divTop + height; + ctx.moveTo(p.canvasx, y); + ctx.lineTo(p.canvasx, y + tick_height); + } + ctx.closePath(); + ctx.stroke(); + ctx.restore(); + } +}; + +annotations.prototype.destroy = function () { + this.detachLabels(); +}; + +exports["default"] = annotations; +module.exports = exports["default"]; + +},{}],21:[function(require,module,exports){ +/** + * @license + * Copyright 2012 Dan Vanderkam (danvdk@gmail.com) + * MIT-licensed (http://opensource.org/licenses/MIT) + */ + +/*global Dygraph:false */ + +'use strict'; + +/* +Bits of jankiness: +- Direct layout access +- Direct area access +- Should include calculation of ticks, not just the drawing. + +Options left to make axis-friendly. + ('drawAxesAtZero') + ('xAxisHeight') +*/ + +Object.defineProperty(exports, '__esModule', { + value: true +}); + +function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } } + +var _dygraphUtils = require('../dygraph-utils'); + +var utils = _interopRequireWildcard(_dygraphUtils); + +/** + * Draws the axes. This includes the labels on the x- and y-axes, as well + * as the tick marks on the axes. + * It does _not_ draw the grid lines which span the entire chart. + */ +var axes = function axes() { + this.xlabels_ = []; + this.ylabels_ = []; +}; + +axes.prototype.toString = function () { + return 'Axes Plugin'; +}; + +axes.prototype.activate = function (g) { + return { + layout: this.layout, + clearChart: this.clearChart, + willDrawChart: this.willDrawChart + }; +}; + +axes.prototype.layout = function (e) { + var g = e.dygraph; + + if (g.getOptionForAxis('drawAxis', 'y')) { + var w = g.getOptionForAxis('axisLabelWidth', 'y') + 2 * g.getOptionForAxis('axisTickSize', 'y'); + e.reserveSpaceLeft(w); + } + + if (g.getOptionForAxis('drawAxis', 'x')) { + var h; + // NOTE: I think this is probably broken now, since g.getOption() now + // hits the dictionary. (That is, g.getOption('xAxisHeight') now always + // has a value.) + if (g.getOption('xAxisHeight')) { + h = g.getOption('xAxisHeight'); + } else { + h = g.getOptionForAxis('axisLabelFontSize', 'x') + 2 * g.getOptionForAxis('axisTickSize', 'x'); + } + e.reserveSpaceBottom(h); + } + + if (g.numAxes() == 2) { + if (g.getOptionForAxis('drawAxis', 'y2')) { + var w = g.getOptionForAxis('axisLabelWidth', 'y2') + 2 * g.getOptionForAxis('axisTickSize', 'y2'); + e.reserveSpaceRight(w); + } + } else if (g.numAxes() > 2) { + g.error('Only two y-axes are supported at this time. (Trying ' + 'to use ' + g.numAxes() + ')'); + } +}; + +axes.prototype.detachLabels = function () { + function removeArray(ary) { + for (var i = 0; i < ary.length; i++) { + var el = ary[i]; + if (el.parentNode) el.parentNode.removeChild(el); + } + } + + removeArray(this.xlabels_); + removeArray(this.ylabels_); + this.xlabels_ = []; + this.ylabels_ = []; +}; + +axes.prototype.clearChart = function (e) { + this.detachLabels(); +}; + +axes.prototype.willDrawChart = function (e) { + var _this = this; + + var g = e.dygraph; + + if (!g.getOptionForAxis('drawAxis', 'x') && !g.getOptionForAxis('drawAxis', 'y') && !g.getOptionForAxis('drawAxis', 'y2')) { + return; + } + + // Round pixels to half-integer boundaries for crisper drawing. + function halfUp(x) { + return Math.round(x) + 0.5; + } + function halfDown(y) { + return Math.round(y) - 0.5; + } + + var context = e.drawingContext; + var containerDiv = e.canvas.parentNode; + var canvasWidth = g.width_; // e.canvas.width is affected by pixel ratio. + var canvasHeight = g.height_; + + var label, x, y, tick, i; + + var makeLabelStyle = function makeLabelStyle(axis) { + return { + position: 'absolute', + fontSize: g.getOptionForAxis('axisLabelFontSize', axis) + 'px', + width: g.getOptionForAxis('axisLabelWidth', axis) + 'px' + }; + }; + + var labelStyles = { + x: makeLabelStyle('x'), + y: makeLabelStyle('y'), + y2: makeLabelStyle('y2') + }; + + var makeDiv = function makeDiv(txt, axis, prec_axis) { + /* + * This seems to be called with the following three sets of axis/prec_axis: + * x: undefined + * y: y1 + * y: y2 + */ + var div = document.createElement('div'); + var labelStyle = labelStyles[prec_axis == 'y2' ? 'y2' : axis]; + utils.update(div.style, labelStyle); + // TODO: combine outer & inner divs + var inner_div = document.createElement('div'); + inner_div.className = 'dygraph-axis-label' + ' dygraph-axis-label-' + axis + (prec_axis ? ' dygraph-axis-label-' + prec_axis : ''); + inner_div.innerHTML = txt; + div.appendChild(inner_div); + return div; + }; + + // axis lines + context.save(); + + var layout = g.layout_; + var area = e.dygraph.plotter_.area; + + // Helper for repeated axis-option accesses. + var makeOptionGetter = function makeOptionGetter(axis) { + return function (option) { + return g.getOptionForAxis(option, axis); + }; + }; + + if (g.getOptionForAxis('drawAxis', 'y')) { + if (layout.yticks && layout.yticks.length > 0) { + var num_axes = g.numAxes(); + var getOptions = [makeOptionGetter('y'), makeOptionGetter('y2')]; + layout.yticks.forEach(function (tick) { + if (tick.label === undefined) return; // this tick only has a grid line. + x = area.x; + var sgn = 1; + var prec_axis = 'y1'; + var getAxisOption = getOptions[0]; + if (tick.axis == 1) { + // right-side y-axis + x = area.x + area.w; + sgn = -1; + prec_axis = 'y2'; + getAxisOption = getOptions[1]; + } + var fontSize = getAxisOption('axisLabelFontSize'); + y = area.y + tick.pos * area.h; + + /* Tick marks are currently clipped, so don't bother drawing them. + context.beginPath(); + context.moveTo(halfUp(x), halfDown(y)); + context.lineTo(halfUp(x - sgn * this.attr_('axisTickSize')), halfDown(y)); + context.closePath(); + context.stroke(); + */ + + label = makeDiv(tick.label, 'y', num_axes == 2 ? prec_axis : null); + var top = y - fontSize / 2; + if (top < 0) top = 0; + + if (top + fontSize + 3 > canvasHeight) { + label.style.bottom = '0'; + } else { + label.style.top = top + 'px'; + } + // TODO: replace these with css classes? + if (tick.axis === 0) { + label.style.left = area.x - getAxisOption('axisLabelWidth') - getAxisOption('axisTickSize') + 'px'; + label.style.textAlign = 'right'; + } else if (tick.axis == 1) { + label.style.left = area.x + area.w + getAxisOption('axisTickSize') + 'px'; + label.style.textAlign = 'left'; + } + label.style.width = getAxisOption('axisLabelWidth') + 'px'; + containerDiv.appendChild(label); + _this.ylabels_.push(label); + }); + + // The lowest tick on the y-axis often overlaps with the leftmost + // tick on the x-axis. Shift the bottom tick up a little bit to + // compensate if necessary. + var bottomTick = this.ylabels_[0]; + // Interested in the y2 axis also? + var fontSize = g.getOptionForAxis('axisLabelFontSize', 'y'); + var bottom = parseInt(bottomTick.style.top, 10) + fontSize; + if (bottom > canvasHeight - fontSize) { + bottomTick.style.top = parseInt(bottomTick.style.top, 10) - fontSize / 2 + 'px'; + } + } + + // draw a vertical line on the left to separate the chart from the labels. + var axisX; + if (g.getOption('drawAxesAtZero')) { + var r = g.toPercentXCoord(0); + if (r > 1 || r < 0 || isNaN(r)) r = 0; + axisX = halfUp(area.x + r * area.w); + } else { + axisX = halfUp(area.x); + } + + context.strokeStyle = g.getOptionForAxis('axisLineColor', 'y'); + context.lineWidth = g.getOptionForAxis('axisLineWidth', 'y'); + + context.beginPath(); + context.moveTo(axisX, halfDown(area.y)); + context.lineTo(axisX, halfDown(area.y + area.h)); + context.closePath(); + context.stroke(); + + // if there's a secondary y-axis, draw a vertical line for that, too. + if (g.numAxes() == 2) { + context.strokeStyle = g.getOptionForAxis('axisLineColor', 'y2'); + context.lineWidth = g.getOptionForAxis('axisLineWidth', 'y2'); + context.beginPath(); + context.moveTo(halfDown(area.x + area.w), halfDown(area.y)); + context.lineTo(halfDown(area.x + area.w), halfDown(area.y + area.h)); + context.closePath(); + context.stroke(); + } + } + + if (g.getOptionForAxis('drawAxis', 'x')) { + if (layout.xticks) { + var getAxisOption = makeOptionGetter('x'); + layout.xticks.forEach(function (tick) { + if (tick.label === undefined) return; // this tick only has a grid line. + x = area.x + tick.pos * area.w; + y = area.y + area.h; + + /* Tick marks are currently clipped, so don't bother drawing them. + context.beginPath(); + context.moveTo(halfUp(x), halfDown(y)); + context.lineTo(halfUp(x), halfDown(y + this.attr_('axisTickSize'))); + context.closePath(); + context.stroke(); + */ + + label = makeDiv(tick.label, 'x'); + label.style.textAlign = 'center'; + label.style.top = y + getAxisOption('axisTickSize') + 'px'; + + var left = x - getAxisOption('axisLabelWidth') / 2; + if (left + getAxisOption('axisLabelWidth') > canvasWidth) { + left = canvasWidth - getAxisOption('axisLabelWidth'); + label.style.textAlign = 'right'; + } + if (left < 0) { + left = 0; + label.style.textAlign = 'left'; + } + + label.style.left = left + 'px'; + label.style.width = getAxisOption('axisLabelWidth') + 'px'; + containerDiv.appendChild(label); + _this.xlabels_.push(label); + }); + } + + context.strokeStyle = g.getOptionForAxis('axisLineColor', 'x'); + context.lineWidth = g.getOptionForAxis('axisLineWidth', 'x'); + context.beginPath(); + var axisY; + if (g.getOption('drawAxesAtZero')) { + var r = g.toPercentYCoord(0, 0); + if (r > 1 || r < 0) r = 1; + axisY = halfDown(area.y + r * area.h); + } else { + axisY = halfDown(area.y + area.h); + } + context.moveTo(halfUp(area.x), axisY); + context.lineTo(halfUp(area.x + area.w), axisY); + context.closePath(); + context.stroke(); + } + + context.restore(); +}; + +exports['default'] = axes; +module.exports = exports['default']; + +},{"../dygraph-utils":17}],22:[function(require,module,exports){ +/** + * @license + * Copyright 2012 Dan Vanderkam (danvdk@gmail.com) + * MIT-licensed (http://opensource.org/licenses/MIT) + */ +/*global Dygraph:false */ + +"use strict"; + +// TODO(danvk): move chart label options out of dygraphs and into the plugin. +// TODO(danvk): only tear down & rebuild the DIVs when it's necessary. + +Object.defineProperty(exports, "__esModule", { + value: true +}); +var chart_labels = function chart_labels() { + this.title_div_ = null; + this.xlabel_div_ = null; + this.ylabel_div_ = null; + this.y2label_div_ = null; +}; + +chart_labels.prototype.toString = function () { + return "ChartLabels Plugin"; +}; + +chart_labels.prototype.activate = function (g) { + return { + layout: this.layout, + // clearChart: this.clearChart, + didDrawChart: this.didDrawChart + }; +}; + +// QUESTION: should there be a plugin-utils.js? +var createDivInRect = function createDivInRect(r) { + var div = document.createElement('div'); + div.style.position = 'absolute'; + div.style.left = r.x + 'px'; + div.style.top = r.y + 'px'; + div.style.width = r.w + 'px'; + div.style.height = r.h + 'px'; + return div; +}; + +// Detach and null out any existing nodes. +chart_labels.prototype.detachLabels_ = function () { + var els = [this.title_div_, this.xlabel_div_, this.ylabel_div_, this.y2label_div_]; + for (var i = 0; i < els.length; i++) { + var el = els[i]; + if (!el) continue; + if (el.parentNode) el.parentNode.removeChild(el); + } + + this.title_div_ = null; + this.xlabel_div_ = null; + this.ylabel_div_ = null; + this.y2label_div_ = null; +}; + +var createRotatedDiv = function createRotatedDiv(g, box, axis, classes, html) { + // TODO(danvk): is this outer div actually necessary? + var div = document.createElement("div"); + div.style.position = 'absolute'; + if (axis == 1) { + // NOTE: this is cheating. Should be positioned relative to the box. + div.style.left = '0px'; + } else { + div.style.left = box.x + 'px'; + } + div.style.top = box.y + 'px'; + div.style.width = box.w + 'px'; + div.style.height = box.h + 'px'; + div.style.fontSize = g.getOption('yLabelWidth') - 2 + 'px'; + + var inner_div = document.createElement("div"); + inner_div.style.position = 'absolute'; + inner_div.style.width = box.h + 'px'; + inner_div.style.height = box.w + 'px'; + inner_div.style.top = box.h / 2 - box.w / 2 + 'px'; + inner_div.style.left = box.w / 2 - box.h / 2 + 'px'; + // TODO: combine inner_div and class_div. + inner_div.className = 'dygraph-label-rotate-' + (axis == 1 ? 'right' : 'left'); + + var class_div = document.createElement("div"); + class_div.className = classes; + class_div.innerHTML = html; + + inner_div.appendChild(class_div); + div.appendChild(inner_div); + return div; +}; + +chart_labels.prototype.layout = function (e) { + this.detachLabels_(); + + var g = e.dygraph; + var div = e.chart_div; + if (g.getOption('title')) { + // QUESTION: should this return an absolutely-positioned div instead? + var title_rect = e.reserveSpaceTop(g.getOption('titleHeight')); + this.title_div_ = createDivInRect(title_rect); + this.title_div_.style.fontSize = g.getOption('titleHeight') - 8 + 'px'; + + var class_div = document.createElement("div"); + class_div.className = 'dygraph-label dygraph-title'; + class_div.innerHTML = g.getOption('title'); + this.title_div_.appendChild(class_div); + div.appendChild(this.title_div_); + } + + if (g.getOption('xlabel')) { + var x_rect = e.reserveSpaceBottom(g.getOption('xLabelHeight')); + this.xlabel_div_ = createDivInRect(x_rect); + this.xlabel_div_.style.fontSize = g.getOption('xLabelHeight') - 2 + 'px'; + + var class_div = document.createElement("div"); + class_div.className = 'dygraph-label dygraph-xlabel'; + class_div.innerHTML = g.getOption('xlabel'); + this.xlabel_div_.appendChild(class_div); + div.appendChild(this.xlabel_div_); + } + + if (g.getOption('ylabel')) { + // It would make sense to shift the chart here to make room for the y-axis + // label, but the default yAxisLabelWidth is large enough that this results + // in overly-padded charts. The y-axis label should fit fine. If it + // doesn't, the yAxisLabelWidth option can be increased. + var y_rect = e.reserveSpaceLeft(0); + + this.ylabel_div_ = createRotatedDiv(g, y_rect, 1, // primary (left) y-axis + 'dygraph-label dygraph-ylabel', g.getOption('ylabel')); + div.appendChild(this.ylabel_div_); + } + + if (g.getOption('y2label') && g.numAxes() == 2) { + // same logic applies here as for ylabel. + var y2_rect = e.reserveSpaceRight(0); + this.y2label_div_ = createRotatedDiv(g, y2_rect, 2, // secondary (right) y-axis + 'dygraph-label dygraph-y2label', g.getOption('y2label')); + div.appendChild(this.y2label_div_); + } +}; + +chart_labels.prototype.didDrawChart = function (e) { + var g = e.dygraph; + if (this.title_div_) { + this.title_div_.children[0].innerHTML = g.getOption('title'); + } + if (this.xlabel_div_) { + this.xlabel_div_.children[0].innerHTML = g.getOption('xlabel'); + } + if (this.ylabel_div_) { + this.ylabel_div_.children[0].children[0].innerHTML = g.getOption('ylabel'); + } + if (this.y2label_div_) { + this.y2label_div_.children[0].children[0].innerHTML = g.getOption('y2label'); + } +}; + +chart_labels.prototype.clearChart = function () {}; + +chart_labels.prototype.destroy = function () { + this.detachLabels_(); +}; + +exports["default"] = chart_labels; +module.exports = exports["default"]; + +},{}],23:[function(require,module,exports){ +/** + * @license + * Copyright 2012 Dan Vanderkam (danvdk@gmail.com) + * MIT-licensed (http://opensource.org/licenses/MIT) + */ +/*global Dygraph:false */ + +/* + +Current bits of jankiness: +- Direct layout access +- Direct area access + +*/ + +"use strict"; + +/** + * Draws the gridlines, i.e. the gray horizontal & vertical lines running the + * length of the chart. + * + * @constructor + */ +Object.defineProperty(exports, "__esModule", { + value: true +}); +var grid = function grid() {}; + +grid.prototype.toString = function () { + return "Gridline Plugin"; +}; + +grid.prototype.activate = function (g) { + return { + willDrawChart: this.willDrawChart + }; +}; + +grid.prototype.willDrawChart = function (e) { + // Draw the new X/Y grid. Lines appear crisper when pixels are rounded to + // half-integers. This prevents them from drawing in two rows/cols. + var g = e.dygraph; + var ctx = e.drawingContext; + var layout = g.layout_; + var area = e.dygraph.plotter_.area; + + function halfUp(x) { + return Math.round(x) + 0.5; + } + function halfDown(y) { + return Math.round(y) - 0.5; + } + + var x, y, i, ticks; + if (g.getOptionForAxis('drawGrid', 'y')) { + var axes = ["y", "y2"]; + var strokeStyles = [], + lineWidths = [], + drawGrid = [], + stroking = [], + strokePattern = []; + for (var i = 0; i < axes.length; i++) { + drawGrid[i] = g.getOptionForAxis('drawGrid', axes[i]); + if (drawGrid[i]) { + strokeStyles[i] = g.getOptionForAxis('gridLineColor', axes[i]); + lineWidths[i] = g.getOptionForAxis('gridLineWidth', axes[i]); + strokePattern[i] = g.getOptionForAxis('gridLinePattern', axes[i]); + stroking[i] = strokePattern[i] && strokePattern[i].length >= 2; + } + } + ticks = layout.yticks; + ctx.save(); + // draw grids for the different y axes + ticks.forEach(function (tick) { + if (!tick.has_tick) return; + var axis = tick.axis; + if (drawGrid[axis]) { + ctx.save(); + if (stroking[axis]) { + if (ctx.setLineDash) ctx.setLineDash(strokePattern[axis]); + } + ctx.strokeStyle = strokeStyles[axis]; + ctx.lineWidth = lineWidths[axis]; + + x = halfUp(area.x); + y = halfDown(area.y + tick.pos * area.h); + ctx.beginPath(); + ctx.moveTo(x, y); + ctx.lineTo(x + area.w, y); + ctx.stroke(); + + ctx.restore(); + } + }); + ctx.restore(); + } + + // draw grid for x axis + if (g.getOptionForAxis('drawGrid', 'x')) { + ticks = layout.xticks; + ctx.save(); + var strokePattern = g.getOptionForAxis('gridLinePattern', 'x'); + var stroking = strokePattern && strokePattern.length >= 2; + if (stroking) { + if (ctx.setLineDash) ctx.setLineDash(strokePattern); + } + ctx.strokeStyle = g.getOptionForAxis('gridLineColor', 'x'); + ctx.lineWidth = g.getOptionForAxis('gridLineWidth', 'x'); + ticks.forEach(function (tick) { + if (!tick.has_tick) return; + x = halfUp(area.x + tick.pos * area.w); + y = halfDown(area.y + area.h); + ctx.beginPath(); + ctx.moveTo(x, y); + ctx.lineTo(x, area.y); + ctx.closePath(); + ctx.stroke(); + }); + if (stroking) { + if (ctx.setLineDash) ctx.setLineDash([]); + } + ctx.restore(); + } +}; + +grid.prototype.destroy = function () {}; + +exports["default"] = grid; +module.exports = exports["default"]; + +},{}],24:[function(require,module,exports){ +/** + * @license + * Copyright 2012 Dan Vanderkam (danvdk@gmail.com) + * MIT-licensed (http://opensource.org/licenses/MIT) + */ +/*global Dygraph:false */ + +/* +Current bits of jankiness: +- Uses two private APIs: + 1. Dygraph.optionsViewForAxis_ + 2. dygraph.plotter_.area +- Registers for a "predraw" event, which should be renamed. +- I call calculateEmWidthInDiv more often than needed. +*/ + +/*global Dygraph:false */ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); + +function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj["default"] = obj; return newObj; } } + +var _dygraphUtils = require('../dygraph-utils'); + +var utils = _interopRequireWildcard(_dygraphUtils); + +/** + * Creates the legend, which appears when the user hovers over the chart. + * The legend can be either a user-specified or generated div. + * + * @constructor + */ +var Legend = function Legend() { + this.legend_div_ = null; + this.is_generated_div_ = false; // do we own this div, or was it user-specified? +}; + +Legend.prototype.toString = function () { + return "Legend Plugin"; +}; + +/** + * This is called during the dygraph constructor, after options have been set + * but before the data is available. + * + * Proper tasks to do here include: + * - Reading your own options + * - DOM manipulation + * - Registering event listeners + * + * @param {Dygraph} g Graph instance. + * @return {object.} Mapping of event names to callbacks. + */ +Legend.prototype.activate = function (g) { + var div; + + var userLabelsDiv = g.getOption('labelsDiv'); + if (userLabelsDiv && null !== userLabelsDiv) { + if (typeof userLabelsDiv == "string" || userLabelsDiv instanceof String) { + div = document.getElementById(userLabelsDiv); + } else { + div = userLabelsDiv; + } + } else { + div = document.createElement("div"); + div.className = "dygraph-legend"; + // TODO(danvk): come up with a cleaner way to expose this. + g.graphDiv.appendChild(div); + this.is_generated_div_ = true; + } + + this.legend_div_ = div; + this.one_em_width_ = 10; // just a guess, will be updated. + + return { + select: this.select, + deselect: this.deselect, + // TODO(danvk): rethink the name "predraw" before we commit to it in any API. + predraw: this.predraw, + didDrawChart: this.didDrawChart + }; +}; + +// Needed for dashed lines. +var calculateEmWidthInDiv = function calculateEmWidthInDiv(div) { + var sizeSpan = document.createElement('span'); + sizeSpan.setAttribute('style', 'margin: 0; padding: 0 0 0 1em; border: 0;'); + div.appendChild(sizeSpan); + var oneEmWidth = sizeSpan.offsetWidth; + div.removeChild(sizeSpan); + return oneEmWidth; +}; + +var escapeHTML = function escapeHTML(str) { + return str.replace(/&/g, "&").replace(/"/g, """).replace(//g, ">"); +}; + +Legend.prototype.select = function (e) { + var xValue = e.selectedX; + var points = e.selectedPoints; + var row = e.selectedRow; + + var legendMode = e.dygraph.getOption('legend'); + if (legendMode === 'never') { + this.legend_div_.style.display = 'none'; + return; + } + + if (legendMode === 'follow') { + // create floating legend div + var area = e.dygraph.plotter_.area; + var labelsDivWidth = this.legend_div_.offsetWidth; + var yAxisLabelWidth = e.dygraph.getOptionForAxis('axisLabelWidth', 'y'); + // determine floating [left, top] coordinates of the legend div + // within the plotter_ area + // offset 50 px to the right and down from the first selection point + // 50 px is guess based on mouse cursor size + var leftLegend = points[0].x * area.w + 50; + var topLegend = points[0].y * area.h - 50; + + // if legend floats to end of the chart area, it flips to the other + // side of the selection point + if (leftLegend + labelsDivWidth + 1 > area.w) { + leftLegend = leftLegend - 2 * 50 - labelsDivWidth - (yAxisLabelWidth - area.x); + } + + e.dygraph.graphDiv.appendChild(this.legend_div_); + this.legend_div_.style.left = yAxisLabelWidth + leftLegend + "px"; + this.legend_div_.style.top = topLegend + "px"; + } + + var html = Legend.generateLegendHTML(e.dygraph, xValue, points, this.one_em_width_, row); + this.legend_div_.innerHTML = html; + this.legend_div_.style.display = ''; +}; + +Legend.prototype.deselect = function (e) { + var legendMode = e.dygraph.getOption('legend'); + if (legendMode !== 'always') { + this.legend_div_.style.display = "none"; + } + + // Have to do this every time, since styles might have changed. + var oneEmWidth = calculateEmWidthInDiv(this.legend_div_); + this.one_em_width_ = oneEmWidth; + + var html = Legend.generateLegendHTML(e.dygraph, undefined, undefined, oneEmWidth, null); + this.legend_div_.innerHTML = html; +}; + +Legend.prototype.didDrawChart = function (e) { + this.deselect(e); +}; + +// Right edge should be flush with the right edge of the charting area (which +// may not be the same as the right edge of the div, if we have two y-axes. +// TODO(danvk): is any of this really necessary? Could just set "right" in "activate". +/** + * Position the labels div so that: + * - its right edge is flush with the right edge of the charting area + * - its top edge is flush with the top edge of the charting area + * @private + */ +Legend.prototype.predraw = function (e) { + // Don't touch a user-specified labelsDiv. + if (!this.is_generated_div_) return; + + // TODO(danvk): only use real APIs for this. + e.dygraph.graphDiv.appendChild(this.legend_div_); + var area = e.dygraph.getArea(); + var labelsDivWidth = this.legend_div_.offsetWidth; + this.legend_div_.style.left = area.x + area.w - labelsDivWidth - 1 + "px"; + this.legend_div_.style.top = area.y + "px"; +}; + +/** + * Called when dygraph.destroy() is called. + * You should null out any references and detach any DOM elements. + */ +Legend.prototype.destroy = function () { + this.legend_div_ = null; +}; + +/** + * Generates HTML for the legend which is displayed when hovering over the + * chart. If no selected points are specified, a default legend is returned + * (this may just be the empty string). + * @param {number} x The x-value of the selected points. + * @param {Object} sel_points List of selected points for the given + * x-value. Should have properties like 'name', 'yval' and 'canvasy'. + * @param {number} oneEmWidth The pixel width for 1em in the legend. Only + * relevant when displaying a legend with no selection (i.e. {legend: + * 'always'}) and with dashed lines. + * @param {number} row The selected row index. + * @private + */ +Legend.generateLegendHTML = function (g, x, sel_points, oneEmWidth, row) { + // Data about the selection to pass to legendFormatter + var data = { + dygraph: g, + x: x, + series: [] + }; + + var labelToSeries = {}; + var labels = g.getLabels(); + if (labels) { + for (var i = 1; i < labels.length; i++) { + var series = g.getPropertiesForSeries(labels[i]); + var strokePattern = g.getOption('strokePattern', labels[i]); + var seriesData = { + dashHTML: generateLegendDashHTML(strokePattern, series.color, oneEmWidth), + label: labels[i], + labelHTML: escapeHTML(labels[i]), + isVisible: series.visible, + color: series.color + }; + + data.series.push(seriesData); + labelToSeries[labels[i]] = seriesData; + } + } + + if (typeof x !== 'undefined') { + var xOptView = g.optionsViewForAxis_('x'); + var xvf = xOptView('valueFormatter'); + data.xHTML = xvf.call(g, x, xOptView, labels[0], g, row, 0); + + var yOptViews = []; + var num_axes = g.numAxes(); + for (var i = 0; i < num_axes; i++) { + // TODO(danvk): remove this use of a private API + yOptViews[i] = g.optionsViewForAxis_('y' + (i ? 1 + i : '')); + } + + var showZeros = g.getOption('labelsShowZeroValues'); + var highlightSeries = g.getHighlightSeries(); + for (i = 0; i < sel_points.length; i++) { + var pt = sel_points[i]; + var seriesData = labelToSeries[pt.name]; + seriesData.y = pt.yval; + + if (pt.yval === 0 && !showZeros || isNaN(pt.canvasy)) { + seriesData.isVisible = false; + continue; + } + + var series = g.getPropertiesForSeries(pt.name); + var yOptView = yOptViews[series.axis - 1]; + var fmtFunc = yOptView('valueFormatter'); + var yHTML = fmtFunc.call(g, pt.yval, yOptView, pt.name, g, row, labels.indexOf(pt.name)); + + utils.update(seriesData, { yHTML: yHTML }); + + if (pt.name == highlightSeries) { + seriesData.isHighlighted = true; + } + } + } + + var formatter = g.getOption('legendFormatter') || Legend.defaultFormatter; + return formatter.call(g, data); +}; + +Legend.defaultFormatter = function (data) { + var g = data.dygraph; + + // TODO(danvk): deprecate this option in place of {legend: 'never'} + // XXX should this logic be in the formatter? + if (g.getOption('showLabelsOnHighlight') !== true) return ''; + + var sepLines = g.getOption('labelsSeparateLines'); + var html; + + if (typeof data.x === 'undefined') { + // TODO: this check is duplicated in generateLegendHTML. Put it in one place. + if (g.getOption('legend') != 'always') { + return ''; + } + + html = ''; + for (var i = 0; i < data.series.length; i++) { + var series = data.series[i]; + if (!series.isVisible) continue; + + if (html !== '') html += sepLines ? '
' : ' '; + html += "" + series.dashHTML + " " + series.labelHTML + ""; + } + return html; + } + + html = data.xHTML + ':'; + for (var i = 0; i < data.series.length; i++) { + var series = data.series[i]; + if (!series.isVisible) continue; + if (sepLines) html += '
'; + var cls = series.isHighlighted ? ' class="highlight"' : ''; + html += " " + series.labelHTML + ": " + series.yHTML + ""; + } + return html; +}; + +/** + * Generates html for the "dash" displayed on the legend when using "legend: always". + * In particular, this works for dashed lines with any stroke pattern. It will + * try to scale the pattern to fit in 1em width. Or if small enough repeat the + * pattern for 1em width. + * + * @param strokePattern The pattern + * @param color The color of the series. + * @param oneEmWidth The width in pixels of 1em in the legend. + * @private + */ +// TODO(danvk): cache the results of this +function generateLegendDashHTML(strokePattern, color, oneEmWidth) { + // Easy, common case: a solid line + if (!strokePattern || strokePattern.length <= 1) { + return "
"; + } + + var i, j, paddingLeft, marginRight; + var strokePixelLength = 0, + segmentLoop = 0; + var normalizedPattern = []; + var loop; + + // Compute the length of the pixels including the first segment twice, + // since we repeat it. + for (i = 0; i <= strokePattern.length; i++) { + strokePixelLength += strokePattern[i % strokePattern.length]; + } + + // See if we can loop the pattern by itself at least twice. + loop = Math.floor(oneEmWidth / (strokePixelLength - strokePattern[0])); + if (loop > 1) { + // This pattern fits at least two times, no scaling just convert to em; + for (i = 0; i < strokePattern.length; i++) { + normalizedPattern[i] = strokePattern[i] / oneEmWidth; + } + // Since we are repeating the pattern, we don't worry about repeating the + // first segment in one draw. + segmentLoop = normalizedPattern.length; + } else { + // If the pattern doesn't fit in the legend we scale it to fit. + loop = 1; + for (i = 0; i < strokePattern.length; i++) { + normalizedPattern[i] = strokePattern[i] / strokePixelLength; + } + // For the scaled patterns we do redraw the first segment. + segmentLoop = normalizedPattern.length + 1; + } + + // Now make the pattern. + var dash = ""; + for (j = 0; j < loop; j++) { + for (i = 0; i < segmentLoop; i += 2) { + // The padding is the drawn segment. + paddingLeft = normalizedPattern[i % normalizedPattern.length]; + if (i < strokePattern.length) { + // The margin is the space segment. + marginRight = normalizedPattern[(i + 1) % normalizedPattern.length]; + } else { + // The repeated first segment has no right margin. + marginRight = 0; + } + dash += "
"; + } + } + return dash; +}; + +exports["default"] = Legend; +module.exports = exports["default"]; + +},{"../dygraph-utils":17}],25:[function(require,module,exports){ +/** + * @license + * Copyright 2011 Paul Felix (paul.eric.felix@gmail.com) + * MIT-licensed (http://opensource.org/licenses/MIT) + */ +/*global Dygraph:false,TouchEvent:false */ + +/** + * @fileoverview This file contains the RangeSelector plugin used to provide + * a timeline range selector widget for dygraphs. + */ + +/*global Dygraph:false */ +"use strict"; + +Object.defineProperty(exports, '__esModule', { + value: true +}); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } + +function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj['default'] = obj; return newObj; } } + +var _dygraphUtils = require('../dygraph-utils'); + +var utils = _interopRequireWildcard(_dygraphUtils); + +var _dygraphInteractionModel = require('../dygraph-interaction-model'); + +var _dygraphInteractionModel2 = _interopRequireDefault(_dygraphInteractionModel); + +var _iframeTarp = require('../iframe-tarp'); + +var _iframeTarp2 = _interopRequireDefault(_iframeTarp); + +var rangeSelector = function rangeSelector() { + this.hasTouchInterface_ = typeof TouchEvent != 'undefined'; + this.isMobileDevice_ = /mobile|android/gi.test(navigator.appVersion); + this.interfaceCreated_ = false; +}; + +rangeSelector.prototype.toString = function () { + return "RangeSelector Plugin"; +}; + +rangeSelector.prototype.activate = function (dygraph) { + this.dygraph_ = dygraph; + if (this.getOption_('showRangeSelector')) { + this.createInterface_(); + } + return { + layout: this.reserveSpace_, + predraw: this.renderStaticLayer_, + didDrawChart: this.renderInteractiveLayer_ + }; +}; + +rangeSelector.prototype.destroy = function () { + this.bgcanvas_ = null; + this.fgcanvas_ = null; + this.leftZoomHandle_ = null; + this.rightZoomHandle_ = null; +}; + +//------------------------------------------------------------------ +// Private methods +//------------------------------------------------------------------ + +rangeSelector.prototype.getOption_ = function (name, opt_series) { + return this.dygraph_.getOption(name, opt_series); +}; + +rangeSelector.prototype.setDefaultOption_ = function (name, value) { + this.dygraph_.attrs_[name] = value; +}; + +/** + * @private + * Creates the range selector elements and adds them to the graph. + */ +rangeSelector.prototype.createInterface_ = function () { + this.createCanvases_(); + this.createZoomHandles_(); + this.initInteraction_(); + + // Range selector and animatedZooms have a bad interaction. See issue 359. + if (this.getOption_('animatedZooms')) { + console.warn('Animated zooms and range selector are not compatible; disabling animatedZooms.'); + this.dygraph_.updateOptions({ animatedZooms: false }, true); + } + + this.interfaceCreated_ = true; + this.addToGraph_(); +}; + +/** + * @private + * Adds the range selector to the graph. + */ +rangeSelector.prototype.addToGraph_ = function () { + var graphDiv = this.graphDiv_ = this.dygraph_.graphDiv; + graphDiv.appendChild(this.bgcanvas_); + graphDiv.appendChild(this.fgcanvas_); + graphDiv.appendChild(this.leftZoomHandle_); + graphDiv.appendChild(this.rightZoomHandle_); +}; + +/** + * @private + * Removes the range selector from the graph. + */ +rangeSelector.prototype.removeFromGraph_ = function () { + var graphDiv = this.graphDiv_; + graphDiv.removeChild(this.bgcanvas_); + graphDiv.removeChild(this.fgcanvas_); + graphDiv.removeChild(this.leftZoomHandle_); + graphDiv.removeChild(this.rightZoomHandle_); + this.graphDiv_ = null; +}; + +/** + * @private + * Called by Layout to allow range selector to reserve its space. + */ +rangeSelector.prototype.reserveSpace_ = function (e) { + if (this.getOption_('showRangeSelector')) { + e.reserveSpaceBottom(this.getOption_('rangeSelectorHeight') + 4); + } +}; + +/** + * @private + * Renders the static portion of the range selector at the predraw stage. + */ +rangeSelector.prototype.renderStaticLayer_ = function () { + if (!this.updateVisibility_()) { + return; + } + this.resize_(); + this.drawStaticLayer_(); +}; + +/** + * @private + * Renders the interactive portion of the range selector after the chart has been drawn. + */ +rangeSelector.prototype.renderInteractiveLayer_ = function () { + if (!this.updateVisibility_() || this.isChangingRange_) { + return; + } + this.placeZoomHandles_(); + this.drawInteractiveLayer_(); +}; + +/** + * @private + * Check to see if the range selector is enabled/disabled and update visibility accordingly. + */ +rangeSelector.prototype.updateVisibility_ = function () { + var enabled = this.getOption_('showRangeSelector'); + if (enabled) { + if (!this.interfaceCreated_) { + this.createInterface_(); + } else if (!this.graphDiv_ || !this.graphDiv_.parentNode) { + this.addToGraph_(); + } + } else if (this.graphDiv_) { + this.removeFromGraph_(); + var dygraph = this.dygraph_; + setTimeout(function () { + dygraph.width_ = 0;dygraph.resize(); + }, 1); + } + return enabled; +}; + +/** + * @private + * Resizes the range selector. + */ +rangeSelector.prototype.resize_ = function () { + function setElementRect(canvas, context, rect, pixelRatioOption) { + var canvasScale = pixelRatioOption || utils.getContextPixelRatio(context); + + canvas.style.top = rect.y + 'px'; + canvas.style.left = rect.x + 'px'; + canvas.width = rect.w * canvasScale; + canvas.height = rect.h * canvasScale; + canvas.style.width = rect.w + 'px'; + canvas.style.height = rect.h + 'px'; + + if (canvasScale != 1) { + context.scale(canvasScale, canvasScale); + } + } + + var plotArea = this.dygraph_.layout_.getPlotArea(); + + var xAxisLabelHeight = 0; + if (this.dygraph_.getOptionForAxis('drawAxis', 'x')) { + xAxisLabelHeight = this.getOption_('xAxisHeight') || this.getOption_('axisLabelFontSize') + 2 * this.getOption_('axisTickSize'); + } + this.canvasRect_ = { + x: plotArea.x, + y: plotArea.y + plotArea.h + xAxisLabelHeight + 4, + w: plotArea.w, + h: this.getOption_('rangeSelectorHeight') + }; + + var pixelRatioOption = this.dygraph_.getNumericOption('pixelRatio'); + setElementRect(this.bgcanvas_, this.bgcanvas_ctx_, this.canvasRect_, pixelRatioOption); + setElementRect(this.fgcanvas_, this.fgcanvas_ctx_, this.canvasRect_, pixelRatioOption); +}; + +/** + * @private + * Creates the background and foreground canvases. + */ +rangeSelector.prototype.createCanvases_ = function () { + this.bgcanvas_ = utils.createCanvas(); + this.bgcanvas_.className = 'dygraph-rangesel-bgcanvas'; + this.bgcanvas_.style.position = 'absolute'; + this.bgcanvas_.style.zIndex = 9; + this.bgcanvas_ctx_ = utils.getContext(this.bgcanvas_); + + this.fgcanvas_ = utils.createCanvas(); + this.fgcanvas_.className = 'dygraph-rangesel-fgcanvas'; + this.fgcanvas_.style.position = 'absolute'; + this.fgcanvas_.style.zIndex = 9; + this.fgcanvas_.style.cursor = 'default'; + this.fgcanvas_ctx_ = utils.getContext(this.fgcanvas_); +}; + +/** + * @private + * Creates the zoom handle elements. + */ +rangeSelector.prototype.createZoomHandles_ = function () { + var img = new Image(); + img.className = 'dygraph-rangesel-zoomhandle'; + img.style.position = 'absolute'; + img.style.zIndex = 10; + img.style.visibility = 'hidden'; // Initially hidden so they don't show up in the wrong place. + img.style.cursor = 'col-resize'; + // TODO: change image to more options + img.width = 9; + img.height = 16; + img.src = 'data:image/png;base64,' + 'iVBORw0KGgoAAAANSUhEUgAAAAkAAAAQCAYAAADESFVDAAAAAXNSR0IArs4c6QAAAAZiS0dEANAA' + 'zwDP4Z7KegAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAAd0SU1FB9sHGw0cMqdt1UwAAAAZdEVYdENv' + 'bW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAaElEQVQoz+3SsRFAQBCF4Z9WJM8KCDVwownl' + '6YXsTmCUsyKGkZzcl7zkz3YLkypgAnreFmDEpHkIwVOMfpdi9CEEN2nGpFdwD03yEqDtOgCaun7s' + 'qSTDH32I1pQA2Pb9sZecAxc5r3IAb21d6878xsAAAAAASUVORK5CYII='; + + if (this.isMobileDevice_) { + img.width *= 2; + img.height *= 2; + } + + this.leftZoomHandle_ = img; + this.rightZoomHandle_ = img.cloneNode(false); +}; + +/** + * @private + * Sets up the interaction for the range selector. + */ +rangeSelector.prototype.initInteraction_ = function () { + var self = this; + var topElem = document; + var clientXLast = 0; + var handle = null; + var isZooming = false; + var isPanning = false; + var dynamic = !this.isMobileDevice_; + + // We cover iframes during mouse interactions. See comments in + // dygraph-utils.js for more info on why this is a good idea. + var tarp = new _iframeTarp2['default'](); + + // functions, defined below. Defining them this way (rather than with + // "function foo() {...}" makes JSHint happy. + var toXDataWindow, onZoomStart, onZoom, onZoomEnd, doZoom, isMouseInPanZone, onPanStart, onPan, onPanEnd, doPan, onCanvasHover; + + // Touch event functions + var onZoomHandleTouchEvent, onCanvasTouchEvent, addTouchEvents; + + toXDataWindow = function (zoomHandleStatus) { + var xDataLimits = self.dygraph_.xAxisExtremes(); + var fact = (xDataLimits[1] - xDataLimits[0]) / self.canvasRect_.w; + var xDataMin = xDataLimits[0] + (zoomHandleStatus.leftHandlePos - self.canvasRect_.x) * fact; + var xDataMax = xDataLimits[0] + (zoomHandleStatus.rightHandlePos - self.canvasRect_.x) * fact; + return [xDataMin, xDataMax]; + }; + + onZoomStart = function (e) { + utils.cancelEvent(e); + isZooming = true; + clientXLast = e.clientX; + handle = e.target ? e.target : e.srcElement; + if (e.type === 'mousedown' || e.type === 'dragstart') { + // These events are removed manually. + utils.addEvent(topElem, 'mousemove', onZoom); + utils.addEvent(topElem, 'mouseup', onZoomEnd); + } + self.fgcanvas_.style.cursor = 'col-resize'; + tarp.cover(); + return true; + }; + + onZoom = function (e) { + if (!isZooming) { + return false; + } + utils.cancelEvent(e); + + var delX = e.clientX - clientXLast; + if (Math.abs(delX) < 4) { + return true; + } + clientXLast = e.clientX; + + // Move handle. + var zoomHandleStatus = self.getZoomHandleStatus_(); + var newPos; + if (handle == self.leftZoomHandle_) { + newPos = zoomHandleStatus.leftHandlePos + delX; + newPos = Math.min(newPos, zoomHandleStatus.rightHandlePos - handle.width - 3); + newPos = Math.max(newPos, self.canvasRect_.x); + } else { + newPos = zoomHandleStatus.rightHandlePos + delX; + newPos = Math.min(newPos, self.canvasRect_.x + self.canvasRect_.w); + newPos = Math.max(newPos, zoomHandleStatus.leftHandlePos + handle.width + 3); + } + var halfHandleWidth = handle.width / 2; + handle.style.left = newPos - halfHandleWidth + 'px'; + self.drawInteractiveLayer_(); + + // Zoom on the fly. + if (dynamic) { + doZoom(); + } + return true; + }; + + onZoomEnd = function (e) { + if (!isZooming) { + return false; + } + isZooming = false; + tarp.uncover(); + utils.removeEvent(topElem, 'mousemove', onZoom); + utils.removeEvent(topElem, 'mouseup', onZoomEnd); + self.fgcanvas_.style.cursor = 'default'; + + // If on a slower device, zoom now. + if (!dynamic) { + doZoom(); + } + return true; + }; + + doZoom = function () { + try { + var zoomHandleStatus = self.getZoomHandleStatus_(); + self.isChangingRange_ = true; + if (!zoomHandleStatus.isZoomed) { + self.dygraph_.resetZoom(); + } else { + var xDataWindow = toXDataWindow(zoomHandleStatus); + self.dygraph_.doZoomXDates_(xDataWindow[0], xDataWindow[1]); + } + } finally { + self.isChangingRange_ = false; + } + }; + + isMouseInPanZone = function (e) { + var rect = self.leftZoomHandle_.getBoundingClientRect(); + var leftHandleClientX = rect.left + rect.width / 2; + rect = self.rightZoomHandle_.getBoundingClientRect(); + var rightHandleClientX = rect.left + rect.width / 2; + return e.clientX > leftHandleClientX && e.clientX < rightHandleClientX; + }; + + onPanStart = function (e) { + if (!isPanning && isMouseInPanZone(e) && self.getZoomHandleStatus_().isZoomed) { + utils.cancelEvent(e); + isPanning = true; + clientXLast = e.clientX; + if (e.type === 'mousedown') { + // These events are removed manually. + utils.addEvent(topElem, 'mousemove', onPan); + utils.addEvent(topElem, 'mouseup', onPanEnd); + } + return true; + } + return false; + }; + + onPan = function (e) { + if (!isPanning) { + return false; + } + utils.cancelEvent(e); + + var delX = e.clientX - clientXLast; + if (Math.abs(delX) < 4) { + return true; + } + clientXLast = e.clientX; + + // Move range view + var zoomHandleStatus = self.getZoomHandleStatus_(); + var leftHandlePos = zoomHandleStatus.leftHandlePos; + var rightHandlePos = zoomHandleStatus.rightHandlePos; + var rangeSize = rightHandlePos - leftHandlePos; + if (leftHandlePos + delX <= self.canvasRect_.x) { + leftHandlePos = self.canvasRect_.x; + rightHandlePos = leftHandlePos + rangeSize; + } else if (rightHandlePos + delX >= self.canvasRect_.x + self.canvasRect_.w) { + rightHandlePos = self.canvasRect_.x + self.canvasRect_.w; + leftHandlePos = rightHandlePos - rangeSize; + } else { + leftHandlePos += delX; + rightHandlePos += delX; + } + var halfHandleWidth = self.leftZoomHandle_.width / 2; + self.leftZoomHandle_.style.left = leftHandlePos - halfHandleWidth + 'px'; + self.rightZoomHandle_.style.left = rightHandlePos - halfHandleWidth + 'px'; + self.drawInteractiveLayer_(); + + // Do pan on the fly. + if (dynamic) { + doPan(); + } + return true; + }; + + onPanEnd = function (e) { + if (!isPanning) { + return false; + } + isPanning = false; + utils.removeEvent(topElem, 'mousemove', onPan); + utils.removeEvent(topElem, 'mouseup', onPanEnd); + // If on a slower device, do pan now. + if (!dynamic) { + doPan(); + } + return true; + }; + + doPan = function () { + try { + self.isChangingRange_ = true; + self.dygraph_.dateWindow_ = toXDataWindow(self.getZoomHandleStatus_()); + self.dygraph_.drawGraph_(false); + } finally { + self.isChangingRange_ = false; + } + }; + + onCanvasHover = function (e) { + if (isZooming || isPanning) { + return; + } + var cursor = isMouseInPanZone(e) ? 'move' : 'default'; + if (cursor != self.fgcanvas_.style.cursor) { + self.fgcanvas_.style.cursor = cursor; + } + }; + + onZoomHandleTouchEvent = function (e) { + if (e.type == 'touchstart' && e.targetTouches.length == 1) { + if (onZoomStart(e.targetTouches[0])) { + utils.cancelEvent(e); + } + } else if (e.type == 'touchmove' && e.targetTouches.length == 1) { + if (onZoom(e.targetTouches[0])) { + utils.cancelEvent(e); + } + } else { + onZoomEnd(e); + } + }; + + onCanvasTouchEvent = function (e) { + if (e.type == 'touchstart' && e.targetTouches.length == 1) { + if (onPanStart(e.targetTouches[0])) { + utils.cancelEvent(e); + } + } else if (e.type == 'touchmove' && e.targetTouches.length == 1) { + if (onPan(e.targetTouches[0])) { + utils.cancelEvent(e); + } + } else { + onPanEnd(e); + } + }; + + addTouchEvents = function (elem, fn) { + var types = ['touchstart', 'touchend', 'touchmove', 'touchcancel']; + for (var i = 0; i < types.length; i++) { + self.dygraph_.addAndTrackEvent(elem, types[i], fn); + } + }; + + this.setDefaultOption_('interactionModel', _dygraphInteractionModel2['default'].dragIsPanInteractionModel); + this.setDefaultOption_('panEdgeFraction', 0.0001); + + var dragStartEvent = window.opera ? 'mousedown' : 'dragstart'; + this.dygraph_.addAndTrackEvent(this.leftZoomHandle_, dragStartEvent, onZoomStart); + this.dygraph_.addAndTrackEvent(this.rightZoomHandle_, dragStartEvent, onZoomStart); + + this.dygraph_.addAndTrackEvent(this.fgcanvas_, 'mousedown', onPanStart); + this.dygraph_.addAndTrackEvent(this.fgcanvas_, 'mousemove', onCanvasHover); + + // Touch events + if (this.hasTouchInterface_) { + addTouchEvents(this.leftZoomHandle_, onZoomHandleTouchEvent); + addTouchEvents(this.rightZoomHandle_, onZoomHandleTouchEvent); + addTouchEvents(this.fgcanvas_, onCanvasTouchEvent); + } +}; + +/** + * @private + * Draws the static layer in the background canvas. + */ +rangeSelector.prototype.drawStaticLayer_ = function () { + var ctx = this.bgcanvas_ctx_; + ctx.clearRect(0, 0, this.canvasRect_.w, this.canvasRect_.h); + try { + this.drawMiniPlot_(); + } catch (ex) { + console.warn(ex); + } + + var margin = 0.5; + this.bgcanvas_ctx_.lineWidth = this.getOption_('rangeSelectorBackgroundLineWidth'); + ctx.strokeStyle = this.getOption_('rangeSelectorBackgroundStrokeColor'); + ctx.beginPath(); + ctx.moveTo(margin, margin); + ctx.lineTo(margin, this.canvasRect_.h - margin); + ctx.lineTo(this.canvasRect_.w - margin, this.canvasRect_.h - margin); + ctx.lineTo(this.canvasRect_.w - margin, margin); + ctx.stroke(); +}; + +/** + * @private + * Draws the mini plot in the background canvas. + */ +rangeSelector.prototype.drawMiniPlot_ = function () { + var fillStyle = this.getOption_('rangeSelectorPlotFillColor'); + var fillGradientStyle = this.getOption_('rangeSelectorPlotFillGradientColor'); + var strokeStyle = this.getOption_('rangeSelectorPlotStrokeColor'); + if (!fillStyle && !strokeStyle) { + return; + } + + var stepPlot = this.getOption_('stepPlot'); + + var combinedSeriesData = this.computeCombinedSeriesAndLimits_(); + var yRange = combinedSeriesData.yMax - combinedSeriesData.yMin; + + // Draw the mini plot. + var ctx = this.bgcanvas_ctx_; + var margin = 0.5; + + var xExtremes = this.dygraph_.xAxisExtremes(); + var xRange = Math.max(xExtremes[1] - xExtremes[0], 1.e-30); + var xFact = (this.canvasRect_.w - margin) / xRange; + var yFact = (this.canvasRect_.h - margin) / yRange; + var canvasWidth = this.canvasRect_.w - margin; + var canvasHeight = this.canvasRect_.h - margin; + + var prevX = null, + prevY = null; + + ctx.beginPath(); + ctx.moveTo(margin, canvasHeight); + for (var i = 0; i < combinedSeriesData.data.length; i++) { + var dataPoint = combinedSeriesData.data[i]; + var x = dataPoint[0] !== null ? (dataPoint[0] - xExtremes[0]) * xFact : NaN; + var y = dataPoint[1] !== null ? canvasHeight - (dataPoint[1] - combinedSeriesData.yMin) * yFact : NaN; + + // Skip points that don't change the x-value. Overly fine-grained points + // can cause major slowdowns with the ctx.fill() call below. + if (!stepPlot && prevX !== null && Math.round(x) == Math.round(prevX)) { + continue; + } + + if (isFinite(x) && isFinite(y)) { + if (prevX === null) { + ctx.lineTo(x, canvasHeight); + } else if (stepPlot) { + ctx.lineTo(x, prevY); + } + ctx.lineTo(x, y); + prevX = x; + prevY = y; + } else { + if (prevX !== null) { + if (stepPlot) { + ctx.lineTo(x, prevY); + ctx.lineTo(x, canvasHeight); + } else { + ctx.lineTo(prevX, canvasHeight); + } + } + prevX = prevY = null; + } + } + ctx.lineTo(canvasWidth, canvasHeight); + ctx.closePath(); + + if (fillStyle) { + var lingrad = this.bgcanvas_ctx_.createLinearGradient(0, 0, 0, canvasHeight); + if (fillGradientStyle) { + lingrad.addColorStop(0, fillGradientStyle); + } + lingrad.addColorStop(1, fillStyle); + this.bgcanvas_ctx_.fillStyle = lingrad; + ctx.fill(); + } + + if (strokeStyle) { + this.bgcanvas_ctx_.strokeStyle = strokeStyle; + this.bgcanvas_ctx_.lineWidth = this.getOption_('rangeSelectorPlotLineWidth'); + ctx.stroke(); + } +}; + +/** + * @private + * Computes and returns the combined series data along with min/max for the mini plot. + * The combined series consists of averaged values for all series. + * When series have error bars, the error bars are ignored. + * @return {Object} An object containing combined series array, ymin, ymax. + */ +rangeSelector.prototype.computeCombinedSeriesAndLimits_ = function () { + var g = this.dygraph_; + var logscale = this.getOption_('logscale'); + var i; + + // Select series to combine. By default, all series are combined. + var numColumns = g.numColumns(); + var labels = g.getLabels(); + var includeSeries = new Array(numColumns); + var anySet = false; + var visibility = g.visibility(); + var inclusion = []; + + for (i = 1; i < numColumns; i++) { + var include = this.getOption_('showInRangeSelector', labels[i]); + inclusion.push(include); + if (include !== null) anySet = true; // it's set explicitly for this series + } + + if (anySet) { + for (i = 1; i < numColumns; i++) { + includeSeries[i] = inclusion[i - 1]; + } + } else { + for (i = 1; i < numColumns; i++) { + includeSeries[i] = visibility[i - 1]; + } + } + + // Create a combined series (average of selected series values). + // TODO(danvk): short-circuit if there's only one series. + var rolledSeries = []; + var dataHandler = g.dataHandler_; + var options = g.attributes_; + for (i = 1; i < g.numColumns(); i++) { + if (!includeSeries[i]) continue; + var series = dataHandler.extractSeries(g.rawData_, i, options); + if (g.rollPeriod() > 1) { + series = dataHandler.rollingAverage(series, g.rollPeriod(), options); + } + + rolledSeries.push(series); + } + + var combinedSeries = []; + for (i = 0; i < rolledSeries[0].length; i++) { + var sum = 0; + var count = 0; + for (var j = 0; j < rolledSeries.length; j++) { + var y = rolledSeries[j][i][1]; + if (y === null || isNaN(y)) continue; + count++; + sum += y; + } + combinedSeries.push([rolledSeries[0][i][0], sum / count]); + } + + // Compute the y range. + var yMin = Number.MAX_VALUE; + var yMax = -Number.MAX_VALUE; + for (i = 0; i < combinedSeries.length; i++) { + var yVal = combinedSeries[i][1]; + if (yVal !== null && isFinite(yVal) && (!logscale || yVal > 0)) { + yMin = Math.min(yMin, yVal); + yMax = Math.max(yMax, yVal); + } + } + + // Convert Y data to log scale if needed. + // Also, expand the Y range to compress the mini plot a little. + var extraPercent = 0.25; + if (logscale) { + yMax = utils.log10(yMax); + yMax += yMax * extraPercent; + yMin = utils.log10(yMin); + for (i = 0; i < combinedSeries.length; i++) { + combinedSeries[i][1] = utils.log10(combinedSeries[i][1]); + } + } else { + var yExtra; + var yRange = yMax - yMin; + if (yRange <= Number.MIN_VALUE) { + yExtra = yMax * extraPercent; + } else { + yExtra = yRange * extraPercent; + } + yMax += yExtra; + yMin -= yExtra; + } + + return { data: combinedSeries, yMin: yMin, yMax: yMax }; +}; + +/** + * @private + * Places the zoom handles in the proper position based on the current X data window. + */ +rangeSelector.prototype.placeZoomHandles_ = function () { + var xExtremes = this.dygraph_.xAxisExtremes(); + var xWindowLimits = this.dygraph_.xAxisRange(); + var xRange = xExtremes[1] - xExtremes[0]; + var leftPercent = Math.max(0, (xWindowLimits[0] - xExtremes[0]) / xRange); + var rightPercent = Math.max(0, (xExtremes[1] - xWindowLimits[1]) / xRange); + var leftCoord = this.canvasRect_.x + this.canvasRect_.w * leftPercent; + var rightCoord = this.canvasRect_.x + this.canvasRect_.w * (1 - rightPercent); + var handleTop = Math.max(this.canvasRect_.y, this.canvasRect_.y + (this.canvasRect_.h - this.leftZoomHandle_.height) / 2); + var halfHandleWidth = this.leftZoomHandle_.width / 2; + this.leftZoomHandle_.style.left = leftCoord - halfHandleWidth + 'px'; + this.leftZoomHandle_.style.top = handleTop + 'px'; + this.rightZoomHandle_.style.left = rightCoord - halfHandleWidth + 'px'; + this.rightZoomHandle_.style.top = this.leftZoomHandle_.style.top; + + this.leftZoomHandle_.style.visibility = 'visible'; + this.rightZoomHandle_.style.visibility = 'visible'; +}; + +/** + * @private + * Draws the interactive layer in the foreground canvas. + */ +rangeSelector.prototype.drawInteractiveLayer_ = function () { + var ctx = this.fgcanvas_ctx_; + ctx.clearRect(0, 0, this.canvasRect_.w, this.canvasRect_.h); + var margin = 1; + var width = this.canvasRect_.w - margin; + var height = this.canvasRect_.h - margin; + var zoomHandleStatus = this.getZoomHandleStatus_(); + + ctx.strokeStyle = this.getOption_('rangeSelectorForegroundStrokeColor'); + ctx.lineWidth = this.getOption_('rangeSelectorForegroundLineWidth'); + if (!zoomHandleStatus.isZoomed) { + ctx.beginPath(); + ctx.moveTo(margin, margin); + ctx.lineTo(margin, height); + ctx.lineTo(width, height); + ctx.lineTo(width, margin); + ctx.stroke(); + } else { + var leftHandleCanvasPos = Math.max(margin, zoomHandleStatus.leftHandlePos - this.canvasRect_.x); + var rightHandleCanvasPos = Math.min(width, zoomHandleStatus.rightHandlePos - this.canvasRect_.x); + + ctx.fillStyle = 'rgba(240, 240, 240, ' + this.getOption_('rangeSelectorAlpha').toString() + ')'; + ctx.fillRect(0, 0, leftHandleCanvasPos, this.canvasRect_.h); + ctx.fillRect(rightHandleCanvasPos, 0, this.canvasRect_.w - rightHandleCanvasPos, this.canvasRect_.h); + + ctx.beginPath(); + ctx.moveTo(margin, margin); + ctx.lineTo(leftHandleCanvasPos, margin); + ctx.lineTo(leftHandleCanvasPos, height); + ctx.lineTo(rightHandleCanvasPos, height); + ctx.lineTo(rightHandleCanvasPos, margin); + ctx.lineTo(width, margin); + ctx.stroke(); + } +}; + +/** + * @private + * Returns the current zoom handle position information. + * @return {Object} The zoom handle status. + */ +rangeSelector.prototype.getZoomHandleStatus_ = function () { + var halfHandleWidth = this.leftZoomHandle_.width / 2; + var leftHandlePos = parseFloat(this.leftZoomHandle_.style.left) + halfHandleWidth; + var rightHandlePos = parseFloat(this.rightZoomHandle_.style.left) + halfHandleWidth; + return { + leftHandlePos: leftHandlePos, + rightHandlePos: rightHandlePos, + isZoomed: leftHandlePos - 1 > this.canvasRect_.x || rightHandlePos + 1 < this.canvasRect_.x + this.canvasRect_.w + }; +}; + +exports['default'] = rangeSelector; +module.exports = exports['default']; + +},{"../dygraph-interaction-model":12,"../dygraph-utils":17,"../iframe-tarp":19}]},{},[18])(18) +}); +//# sourceMappingURL=dygraph.js.map diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components/dygraph/extras/hairlines.js b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components/dygraph/extras/hairlines.js new file mode 100644 index 0000000..74a907d --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components/dygraph/extras/hairlines.js @@ -0,0 +1,459 @@ +/** + * @license + * Copyright 2013 Dan Vanderkam (danvdk@gmail.com) + * MIT-licensed (http://opensource.org/licenses/MIT) + * + * Note: This plugin requires jQuery and jQuery UI Draggable. + * + * See high-level documentation at + * https://docs.google.com/document/d/1OHNE8BNNmMtFlRQ969DACIYIJ9VVJ7w3dSPRJDEeIew/edit# + */ + +/*global Dygraph:false */ + +Dygraph.Plugins.Hairlines = (function() { + +"use strict"; + +/** + * @typedef { + * xval: number, // x-value (i.e. millis or a raw number) + * interpolated: bool, // alternative is to snap to closest + * lineDiv: !Element // vertical hairline div + * infoDiv: !Element // div containing info about the nearest points + * selected: boolean // whether this hairline is selected + * } Hairline + */ + +// We have to wait a few ms after clicks to give the user a chance to +// double-click to unzoom. This sets that delay period. +var CLICK_DELAY_MS = 300; + +var hairlines = function(opt_options) { + /* @type {!Array.} */ + this.hairlines_ = []; + + // Used to detect resizes (which require the divs to be repositioned). + this.lastWidth_ = -1; + this.lastHeight = -1; + this.dygraph_ = null; + + this.addTimer_ = null; + opt_options = opt_options || {}; + + this.divFiller_ = opt_options['divFiller'] || null; +}; + +hairlines.prototype.toString = function() { + return "Hairlines Plugin"; +}; + +hairlines.prototype.activate = function(g) { + this.dygraph_ = g; + this.hairlines_ = []; + + return { + didDrawChart: this.didDrawChart, + click: this.click, + dblclick: this.dblclick, + dataDidUpdate: this.dataDidUpdate + }; +}; + +hairlines.prototype.detachLabels = function() { + for (var i = 0; i < this.hairlines_.length; i++) { + var h = this.hairlines_[i]; + $(h.lineDiv).remove(); + $(h.infoDiv).remove(); + this.hairlines_[i] = null; + } + this.hairlines_ = []; +}; + +hairlines.prototype.hairlineWasDragged = function(h, event, ui) { + var area = this.dygraph_.getArea(); + var oldXVal = h.xval; + h.xval = this.dygraph_.toDataXCoord(ui.position.left); + this.moveHairlineToTop(h); + this.updateHairlineDivPositions(); + this.updateHairlineInfo(); + this.updateHairlineStyles(); + $(this).triggerHandler('hairlineMoved', { + oldXVal: oldXVal, + newXVal: h.xval + }); + $(this).triggerHandler('hairlinesChanged', {}); +}; + +// This creates the hairline object and returns it. +// It does not position it and does not attach it to the chart. +hairlines.prototype.createHairline = function(props) { + var h; + var self = this; + + var $lineContainerDiv = $('
').css({ + 'width': '6px', + 'margin-left': '-3px', + 'position': 'absolute', + 'z-index': '10' + }) + .addClass('dygraph-hairline'); + + var $lineDiv = $('
').css({ + 'width': '1px', + 'position': 'relative', + 'left': '3px', + 'background': 'black', + 'height': '100%' + }); + $lineDiv.appendTo($lineContainerDiv); + + var $infoDiv = $('#hairline-template').clone().removeAttr('id').css({ + 'position': 'absolute' + }) + .show(); + + // Surely there's a more jQuery-ish way to do this! + $([$infoDiv.get(0), $lineContainerDiv.get(0)]) + .draggable({ + 'axis': 'x', + 'drag': function(event, ui) { + self.hairlineWasDragged(h, event, ui); + } + // TODO(danvk): set cursor here + }); + + h = $.extend({ + interpolated: false, + selected: false, + lineDiv: $lineContainerDiv.get(0), + infoDiv: $infoDiv.get(0) + }, props); + + var that = this; + $infoDiv.on('click', '.hairline-kill-button', function(e) { + that.removeHairline(h); + $(that).triggerHandler('hairlineDeleted', { + xval: h.xval + }); + $(that).triggerHandler('hairlinesChanged', {}); + e.stopPropagation(); // don't want .click() to trigger, below. + }).on('click', function() { + that.moveHairlineToTop(h); + }); + + return h; +}; + +// Moves a hairline's divs to the top of the z-ordering. +hairlines.prototype.moveHairlineToTop = function(h) { + var div = this.dygraph_.graphDiv; + $(h.infoDiv).appendTo(div); + $(h.lineDiv).appendTo(div); + + var idx = this.hairlines_.indexOf(h); + this.hairlines_.splice(idx, 1); + this.hairlines_.push(h); +}; + +// Positions existing hairline divs. +hairlines.prototype.updateHairlineDivPositions = function() { + var g = this.dygraph_; + var layout = this.dygraph_.getArea(); + var chartLeft = layout.x, chartRight = layout.x + layout.w; + var div = this.dygraph_.graphDiv; + var pos = Dygraph.findPos(div); + var box = [layout.x + pos.x, layout.y + pos.y]; + box.push(box[0] + layout.w); + box.push(box[1] + layout.h); + + $.each(this.hairlines_, function(idx, h) { + var left = g.toDomXCoord(h.xval); + h.domX = left; // See comments in this.dataDidUpdate + $(h.lineDiv).css({ + 'left': left + 'px', + 'top': layout.y + 'px', + 'height': layout.h + 'px' + }); // .draggable("option", "containment", box); + $(h.infoDiv).css({ + 'left': left + 'px', + 'top': layout.y + 'px', + }).draggable("option", "containment", box); + + var visible = (left >= chartLeft && left <= chartRight); + $([h.infoDiv, h.lineDiv]).toggle(visible); + }); +}; + +// Sets styles on the hairline (i.e. "selected") +hairlines.prototype.updateHairlineStyles = function() { + $.each(this.hairlines_, function(idx, h) { + $([h.infoDiv, h.lineDiv]).toggleClass('selected', h.selected); + }); +}; + +// Find prevRow and nextRow such that +// g.getValue(prevRow, 0) <= xval +// g.getValue(nextRow, 0) >= xval +// g.getValue({prev,next}Row, col) != null, NaN or undefined +// and there's no other row such that: +// g.getValue(prevRow, 0) < g.getValue(row, 0) < g.getValue(nextRow, 0) +// g.getValue(row, col) != null, NaN or undefined. +// Returns [prevRow, nextRow]. Either can be null (but not both). +hairlines.findPrevNextRows = function(g, xval, col) { + var prevRow = null, nextRow = null; + var numRows = g.numRows(); + for (var row = 0; row < numRows; row++) { + var yval = g.getValue(row, col); + if (yval === null || yval === undefined || isNaN(yval)) continue; + + var rowXval = g.getValue(row, 0); + if (rowXval <= xval) prevRow = row; + + if (rowXval >= xval) { + nextRow = row; + break; + } + } + + return [prevRow, nextRow]; +}; + +// Fills out the info div based on current coordinates. +hairlines.prototype.updateHairlineInfo = function() { + var mode = 'closest'; + + var g = this.dygraph_; + var xRange = g.xAxisRange(); + var that = this; + $.each(this.hairlines_, function(idx, h) { + // To use generateLegendHTML, we synthesize an array of selected points. + var selPoints = []; + var labels = g.getLabels(); + var row, prevRow, nextRow; + + if (!h.interpolated) { + // "closest point" mode. + // TODO(danvk): make findClosestRow method public + row = g.findClosestRow(g.toDomXCoord(h.xval)); + for (var i = 1; i < g.numColumns(); i++) { + selPoints.push({ + canvasx: g.toDomXCoord(h.xval), + canvasy: g.toDomYCoord(g.getValue(row, i)), + xval: h.xval, + yval: g.getValue(row, i), + name: labels[i] + }); + } + } else { + // "interpolated" mode. + for (var i = 1; i < g.numColumns(); i++) { + var prevNextRow = hairlines.findPrevNextRows(g, h.xval, i); + prevRow = prevNextRow[0], nextRow = prevNextRow[1]; + + // For x-values outside the domain, interpolate "between" the extreme + // point and itself. + if (prevRow === null) prevRow = nextRow; + if (nextRow === null) nextRow = prevRow; + + // linear interpolation + var prevX = g.getValue(prevRow, 0), + nextX = g.getValue(nextRow, 0), + prevY = g.getValue(prevRow, i), + nextY = g.getValue(nextRow, i), + frac = prevRow == nextRow ? 0 : (h.xval - prevX) / (nextX - prevX), + yval = frac * nextY + (1 - frac) * prevY; + + selPoints.push({ + canvasx: g.toDomXCoord(h.xval), + canvasy: g.toDomYCoord(yval), + xval: h.xval, + yval: yval, + prevRow: prevRow, + nextRow: nextRow, + name: labels[i] + }); + } + } + + if (that.divFiller_) { + that.divFiller_(h.infoDiv, { + closestRow: row, + points: selPoints, + hairline: that.createPublicHairline_(h), + dygraph: g + }); + } else { + var html = Dygraph.Plugins.Legend.generateLegendHTML(g, h.xval, selPoints, 10, row); + $('.hairline-legend', h.infoDiv).html(html); + } + }); +}; + +// After a resize, the hairline divs can get dettached from the chart. +// This reattaches them. +hairlines.prototype.attachHairlinesToChart_ = function() { + var div = this.dygraph_.graphDiv; + $.each(this.hairlines_, function(idx, h) { + $([h.lineDiv, h.infoDiv]).appendTo(div); + }); +}; + +// Deletes a hairline and removes it from the chart. +hairlines.prototype.removeHairline = function(h) { + var idx = this.hairlines_.indexOf(h); + if (idx >= 0) { + this.hairlines_.splice(idx, 1); + $([h.lineDiv, h.infoDiv]).remove(); + } else { + Dygraph.warn('Tried to remove non-existent hairline.'); + } +}; + +hairlines.prototype.didDrawChart = function(e) { + var g = e.dygraph; + + // Early out in the (common) case of zero hairlines. + if (this.hairlines_.length === 0) return; + + this.updateHairlineDivPositions(); + this.attachHairlinesToChart_(); + this.updateHairlineInfo(); + this.updateHairlineStyles(); +}; + +hairlines.prototype.dataDidUpdate = function(e) { + // When the data in the chart updates, the hairlines should stay in the same + // position on the screen. didDrawChart stores a domX parameter for each + // hairline. We use that to reposition them on data updates. + var g = this.dygraph_; + $.each(this.hairlines_, function(idx, h) { + if (h.hasOwnProperty('domX')) { + h.xval = g.toDataXCoord(h.domX); + } + }); +}; + +hairlines.prototype.click = function(e) { + if (this.addTimer_) { + // Another click is in progress; ignore this one. + return; + } + + var area = e.dygraph.getArea(); + var xval = this.dygraph_.toDataXCoord(e.canvasx); + + var that = this; + this.addTimer_ = setTimeout(function() { + that.addTimer_ = null; + that.hairlines_.push(that.createHairline({xval: xval})); + + that.updateHairlineDivPositions(); + that.updateHairlineInfo(); + that.updateHairlineStyles(); + that.attachHairlinesToChart_(); + + $(that).triggerHandler('hairlineCreated', { + xval: xval + }); + $(that).triggerHandler('hairlinesChanged', {}); + }, CLICK_DELAY_MS); +}; + +hairlines.prototype.dblclick = function(e) { + if (this.addTimer_) { + clearTimeout(this.addTimer_); + this.addTimer_ = null; + } +}; + +hairlines.prototype.destroy = function() { + this.detachLabels(); +}; + + +// Public API + +/** + * This is a restricted view of this.hairlines_ which doesn't expose + * implementation details like the handle divs. + * + * @typedef { + * xval: number, // x-value (i.e. millis or a raw number) + * interpolated: bool, // alternative is to snap to closest + * selected: bool // whether the hairline is selected. + * } PublicHairline + */ + +/** + * @param {!Hairline} h Internal hairline. + * @return {!PublicHairline} Restricted public view of the hairline. + */ +hairlines.prototype.createPublicHairline_ = function(h) { + return { + xval: h.xval, + interpolated: h.interpolated, + selected: h.selected + }; +}; + +/** + * @return {!Array.} The current set of hairlines, ordered + * from back to front. + */ +hairlines.prototype.get = function() { + var result = []; + for (var i = 0; i < this.hairlines_.length; i++) { + var h = this.hairlines_[i]; + result.push(this.createPublicHairline_(h)); + } + return result; +}; + +/** + * Calling this will result in a hairlinesChanged event being triggered, no + * matter whether it consists of additions, deletions, moves or no changes at + * all. + * + * @param {!Array.} hairlines The new set of hairlines, + * ordered from back to front. + */ +hairlines.prototype.set = function(hairlines) { + // Re-use divs from the old hairlines array so far as we can. + // They're already correctly z-ordered. + var anyCreated = false; + for (var i = 0; i < hairlines.length; i++) { + var h = hairlines[i]; + + if (this.hairlines_.length > i) { + this.hairlines_[i].xval = h.xval; + this.hairlines_[i].interpolated = h.interpolated; + this.hairlines_[i].selected = h.selected; + } else { + this.hairlines_.push(this.createHairline({ + xval: h.xval, + interpolated: h.interpolated, + selected: h.selected + })); + anyCreated = true; + } + } + + // If there are any remaining hairlines, destroy them. + while (hairlines.length < this.hairlines_.length) { + this.removeHairline(this.hairlines_[hairlines.length]); + } + + this.updateHairlineDivPositions(); + this.updateHairlineInfo(); + this.updateHairlineStyles(); + if (anyCreated) { + this.attachHairlinesToChart_(); + } + + $(this).triggerHandler('hairlinesChanged', {}); +}; + +return hairlines; + +})(); diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components/dygraph/extras/interaction.js b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components/dygraph/extras/interaction.js new file mode 100644 index 0000000..7217713 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components/dygraph/extras/interaction.js @@ -0,0 +1,313 @@ +// Code for a variety of interaction models. Used in interaction.html, but split out from +// that file so they can be tested in isolation. +// +function downV3(event, g, context) { + context.initializeMouseDown(event, g, context); + if (event.altKey || event.shiftKey) { + Dygraph.startZoom(event, g, context); + } else { + Dygraph.startPan(event, g, context); + } +} + +function moveV3(event, g, context) { + if (context.isPanning) { + Dygraph.movePan(event, g, context); + } else if (context.isZooming) { + Dygraph.moveZoom(event, g, context); + } +} + +function upV3(event, g, context) { + if (context.isPanning) { + Dygraph.endPan(event, g, context); + } else if (context.isZooming) { + Dygraph.endZoom(event, g, context); + } +} + +// Take the offset of a mouse event on the dygraph canvas and +// convert it to a pair of percentages from the bottom left. +// (Not top left, bottom is where the lower value is.) +function offsetToPercentage(g, offsetX, offsetY) { + // This is calculating the pixel offset of the leftmost date. + var xOffset = g.toDomCoords(g.xAxisRange()[0], null)[0]; + var yar0 = g.yAxisRange(0); + + // This is calculating the pixel of the higest value. (Top pixel) + var yOffset = g.toDomCoords(null, yar0[1])[1]; + + // x y w and h are relative to the corner of the drawing area, + // so that the upper corner of the drawing area is (0, 0). + var x = offsetX - xOffset; + var y = offsetY - yOffset; + + // This is computing the rightmost pixel, effectively defining the + // width. + var w = g.toDomCoords(g.xAxisRange()[1], null)[0] - xOffset; + + // This is computing the lowest pixel, effectively defining the height. + var h = g.toDomCoords(null, yar0[0])[1] - yOffset; + + // Percentage from the left. + var xPct = w == 0 ? 0 : (x / w); + // Percentage from the top. + var yPct = h == 0 ? 0 : (y / h); + + // The (1-) part below changes it from "% distance down from the top" + // to "% distance up from the bottom". + return [xPct, (1-yPct)]; +} + +function dblClickV3(event, g, context) { + // Reducing by 20% makes it 80% the original size, which means + // to restore to original size it must grow by 25% + + if (!(event.offsetX && event.offsetY)){ + event.offsetX = event.layerX - event.target.offsetLeft; + event.offsetY = event.layerY - event.target.offsetTop; + } + + var percentages = offsetToPercentage(g, event.offsetX, event.offsetY); + var xPct = percentages[0]; + var yPct = percentages[1]; + + if (event.ctrlKey) { + zoom(g, -.25, xPct, yPct); + } else { + zoom(g, +.2, xPct, yPct); + } +} + +var lastClickedGraph = null; + +function clickV3(event, g, context) { + lastClickedGraph = g; + event.preventDefault(); + event.stopPropagation(); +} + +function scrollV3(event, g, context) { + if (lastClickedGraph != g) { + return; + } + var normal = event.detail ? event.detail * -1 : event.wheelDelta / 40; + // For me the normalized value shows 0.075 for one click. If I took + // that verbatim, it would be a 7.5%. + var percentage = normal / 50; + + if (!(event.offsetX && event.offsetY)){ + event.offsetX = event.layerX - event.target.offsetLeft; + event.offsetY = event.layerY - event.target.offsetTop; + } + + var percentages = offsetToPercentage(g, event.offsetX, event.offsetY); + var xPct = percentages[0]; + var yPct = percentages[1]; + + zoom(g, percentage, xPct, yPct); + event.preventDefault(); + event.stopPropagation(); +} + +// Adjusts [x, y] toward each other by zoomInPercentage% +// Split it so the left/bottom axis gets xBias/yBias of that change and +// tight/top gets (1-xBias)/(1-yBias) of that change. +// +// If a bias is missing it splits it down the middle. +function zoom(g, zoomInPercentage, xBias, yBias) { + xBias = xBias || 0.5; + yBias = yBias || 0.5; + function adjustAxis(axis, zoomInPercentage, bias) { + var delta = axis[1] - axis[0]; + var increment = delta * zoomInPercentage; + var foo = [increment * bias, increment * (1-bias)]; + return [ axis[0] + foo[0], axis[1] - foo[1] ]; + } + var yAxes = g.yAxisRanges(); + var newYAxes = []; + for (var i = 0; i < yAxes.length; i++) { + newYAxes[i] = adjustAxis(yAxes[i], zoomInPercentage, yBias); + } + + g.updateOptions({ + dateWindow: adjustAxis(g.xAxisRange(), zoomInPercentage, xBias), + valueRange: newYAxes[0] + }); +} + +var v4Active = false; +var v4Canvas = null; + +function downV4(event, g, context) { + context.initializeMouseDown(event, g, context); + v4Active = true; + moveV4(event, g, context); // in case the mouse went down on a data point. +} + +var processed = []; + +function moveV4(event, g, context) { + var RANGE = 7; + + if (v4Active) { + var graphPos = Dygraph.findPos(g.graphDiv); + var canvasx = Dygraph.pageX(event) - graphPos.x; + var canvasy = Dygraph.pageY(event) - graphPos.y; + + var rows = g.numRows(); + // Row layout: + // [date, [val1, stdev1], [val2, stdev2]] + for (var row = 0; row < rows; row++) { + var date = g.getValue(row, 0); + var x = g.toDomCoords(date, null)[0]; + var diff = Math.abs(canvasx - x); + if (diff < RANGE) { + for (var col = 1; col < 3; col++) { + // TODO(konigsberg): these will throw exceptions as data is removed. + var vals = g.getValue(row, col); + if (vals == null) { continue; } + var val = vals[0]; + var y = g.toDomCoords(null, val)[1]; + var diff2 = Math.abs(canvasy - y); + if (diff2 < RANGE) { + var found = false; + for (var i in processed) { + var stored = processed[i]; + if(stored[0] == row && stored[1] == col) { + found = true; + break; + } + } + if (!found) { + processed.push([row, col]); + drawV4(x, y); + } + return; + } + } + } + } + } +} + +function upV4(event, g, context) { + if (v4Active) { + v4Active = false; + } +} + +function dblClickV4(event, g, context) { + restorePositioning(g); +} + +function drawV4(x, y) { + var ctx = v4Canvas; + + ctx.strokeStyle = "#000000"; + ctx.fillStyle = "#FFFF00"; + ctx.beginPath(); + ctx.arc(x,y,5,0,Math.PI*2,true); + ctx.closePath(); + ctx.stroke(); + ctx.fill(); +} + +function captureCanvas(canvas, area, g) { + v4Canvas = canvas; +} + +function restorePositioning(g) { + g.updateOptions({ + dateWindow: null, + valueRange: null + }); +} + +// +// APIs Added by TI for graphing widget +// + + +// Zoom in and out using mouse scroll wheel +function zoomMouseScroll(event, g, context) { + + // Capture the graph range limits + var xLeftLimit = g.xAxisExtremes()[0]; + var xRightLimit = g.xAxisExtremes()[1]; + + // X Offset of the scroll points + xScrollPointDom = event.offsetX; + + // Left most point on the graphs + xLeftDom = g.toDomCoords(g.xAxisRange()[0])[0]; + xRightDom = g.toDomCoords(g.xAxisRange()[1])[0]; + widthDom = xRightDom - xLeftDom; + + // xPoint percentage offset within graph space + xScrollPointPercent = (xScrollPointDom - xLeftDom) / widthDom; + + // Scroll percentage as indicated by the wheel event polarity + // If wheelDelta is positive, zoom in + // If wheelDelta is negative, zoom out + mouseScrollPercent = (event.wheelDelta >= 0) ? 0.20 : -0.20; + + // New left and right extremes + deltaRange = g.xAxisRange()[1] - g.xAxisRange()[0]; + xLeftNew = g.xAxisRange()[0] + (xScrollPointPercent * mouseScrollPercent * deltaRange); + xRightNew = g.xAxisRange()[1] - ((1- xScrollPointPercent) * mouseScrollPercent * deltaRange); + + // If the left x value is greater than the right x value + // then don't do anything else the x axis will be reverted + if (xRightNew <= xLeftNew) + { + return; + } + if (xLeftNew < xLeftLimit) + { + xLeftNew = xLeftLimit; + } + if (xRightNew > xRightLimit) + { + xRightNew = xRightLimit; + } + + g.updateOptions({ + dateWindow: [xLeftNew, xRightNew], + }); + + event.preventDefault(); + event.stopPropagation(); + +} + +// Restore graph to full range on double click +function dblClickRestoreZoom(event, g, context) { + // Restore the graph range limits + var xLeftLimit = g.xAxisExtremes()[0]; + var xRightLimit = g.xAxisExtremes()[1]; + g.updateOptions({ + dateWindow: [xLeftLimit, xRightLimit], + }); + event.preventDefault(); + event.stopPropagation(); +} + +// Add a marker on mouse click with shift key pressed +function shiftClickAddMarker(event, g, context) { + if (event.shiftKey) + { + var e = {dygraph: g, canvasx: event.x}; + var callback_plugin_pairs=g.eventListeners_["click"]; + + if(callback_plugin_pairs) + { + for(var i=callback_plugin_pairs.length - 1;i >= 0;i--) + { + var plugin=callback_plugin_pairs[i][0]; + var callback=callback_plugin_pairs[i][1]; + callback.call(plugin,e); + } + } + } +} diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components/dygraph/extras/jquery-ui.css b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components/dygraph/extras/jquery-ui.css new file mode 100644 index 0000000..c0afe83 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components/dygraph/extras/jquery-ui.css @@ -0,0 +1,1174 @@ +/*! jQuery UI - v1.10.1 - 2013-02-15 +* http://jqueryui.com +* Includes: jquery.ui.core.css, jquery.ui.accordion.css, jquery.ui.autocomplete.css, jquery.ui.button.css, jquery.ui.datepicker.css, jquery.ui.dialog.css, jquery.ui.menu.css, jquery.ui.progressbar.css, jquery.ui.resizable.css, jquery.ui.selectable.css, jquery.ui.slider.css, jquery.ui.spinner.css, jquery.ui.tabs.css, jquery.ui.tooltip.css +* Copyright (c) 2013 jQuery Foundation and other contributors Licensed MIT */ + +/* Layout helpers +----------------------------------*/ +.ui-helper-hidden { + display: none; +} +.ui-helper-hidden-accessible { + border: 0; + clip: rect(0 0 0 0); + height: 1px; + margin: -1px; + overflow: hidden; + padding: 0; + position: absolute; + width: 1px; +} +.ui-helper-reset { + margin: 0; + padding: 0; + border: 0; + outline: 0; + line-height: 1.3; + text-decoration: none; + font-size: 100%; + list-style: none; +} +.ui-helper-clearfix:before, +.ui-helper-clearfix:after { + content: ""; + display: table; + border-collapse: collapse; +} +.ui-helper-clearfix:after { + clear: both; +} +.ui-helper-clearfix { + min-height: 0; /* support: IE7 */ +} +.ui-helper-zfix { + width: 100%; + height: 100%; + top: 0; + left: 0; + position: absolute; + opacity: 0; + filter:Alpha(Opacity=0); +} + +.ui-front { + z-index: 100; +} + + +/* Interaction Cues +----------------------------------*/ +.ui-state-disabled { + cursor: default !important; +} + + +/* Icons +----------------------------------*/ + +/* states and images */ +.ui-icon { + display: block; + text-indent: -99999px; + overflow: hidden; + background-repeat: no-repeat; +} + + +/* Misc visuals +----------------------------------*/ + +/* Overlays */ +.ui-widget-overlay { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; +} +.ui-accordion .ui-accordion-header { + display: block; + cursor: pointer; + position: relative; + margin-top: 2px; + padding: .5em .5em .5em .7em; + min-height: 0; /* support: IE7 */ +} +.ui-accordion .ui-accordion-icons { + padding-left: 2.2em; +} +.ui-accordion .ui-accordion-noicons { + padding-left: .7em; +} +.ui-accordion .ui-accordion-icons .ui-accordion-icons { + padding-left: 2.2em; +} +.ui-accordion .ui-accordion-header .ui-accordion-header-icon { + position: absolute; + left: .5em; + top: 50%; + margin-top: -8px; +} +.ui-accordion .ui-accordion-content { + padding: 1em 2.2em; + border-top: 0; + overflow: auto; +} +.ui-autocomplete { + position: absolute; + top: 0; + left: 0; + cursor: default; +} +.ui-button { + display: inline-block; + position: relative; + padding: 0; + line-height: normal; + margin-right: .1em; + cursor: pointer; + vertical-align: middle; + text-align: center; + overflow: visible; /* removes extra width in IE */ +} +.ui-button, +.ui-button:link, +.ui-button:visited, +.ui-button:hover, +.ui-button:active { + text-decoration: none; +} +/* to make room for the icon, a width needs to be set here */ +.ui-button-icon-only { + width: 2.2em; +} +/* button elements seem to need a little more width */ +button.ui-button-icon-only { + width: 2.4em; +} +.ui-button-icons-only { + width: 3.4em; +} +button.ui-button-icons-only { + width: 3.7em; +} + +/* button text element */ +.ui-button .ui-button-text { + display: block; + line-height: normal; +} +.ui-button-text-only .ui-button-text { + padding: .4em 1em; +} +.ui-button-icon-only .ui-button-text, +.ui-button-icons-only .ui-button-text { + padding: .4em; + text-indent: -9999999px; +} +.ui-button-text-icon-primary .ui-button-text, +.ui-button-text-icons .ui-button-text { + padding: .4em 1em .4em 2.1em; +} +.ui-button-text-icon-secondary .ui-button-text, +.ui-button-text-icons .ui-button-text { + padding: .4em 2.1em .4em 1em; +} +.ui-button-text-icons .ui-button-text { + padding-left: 2.1em; + padding-right: 2.1em; +} +/* no icon support for input elements, provide padding by default */ +input.ui-button { + padding: .4em 1em; +} + +/* button icon element(s) */ +.ui-button-icon-only .ui-icon, +.ui-button-text-icon-primary .ui-icon, +.ui-button-text-icon-secondary .ui-icon, +.ui-button-text-icons .ui-icon, +.ui-button-icons-only .ui-icon { + position: absolute; + top: 50%; + margin-top: -8px; +} +.ui-button-icon-only .ui-icon { + left: 50%; + margin-left: -8px; +} +.ui-button-text-icon-primary .ui-button-icon-primary, +.ui-button-text-icons .ui-button-icon-primary, +.ui-button-icons-only .ui-button-icon-primary { + left: .5em; +} +.ui-button-text-icon-secondary .ui-button-icon-secondary, +.ui-button-text-icons .ui-button-icon-secondary, +.ui-button-icons-only .ui-button-icon-secondary { + right: .5em; +} + +/* button sets */ +.ui-buttonset { + margin-right: 7px; +} +.ui-buttonset .ui-button { + margin-left: 0; + margin-right: -.3em; +} + +/* workarounds */ +/* reset extra padding in Firefox, see h5bp.com/l */ +input.ui-button::-moz-focus-inner, +button.ui-button::-moz-focus-inner { + border: 0; + padding: 0; +} +.ui-datepicker { + width: 17em; + padding: .2em .2em 0; + display: none; +} +.ui-datepicker .ui-datepicker-header { + position: relative; + padding: .2em 0; +} +.ui-datepicker .ui-datepicker-prev, +.ui-datepicker .ui-datepicker-next { + position: absolute; + top: 2px; + width: 1.8em; + height: 1.8em; +} +.ui-datepicker .ui-datepicker-prev-hover, +.ui-datepicker .ui-datepicker-next-hover { + top: 1px; +} +.ui-datepicker .ui-datepicker-prev { + left: 2px; +} +.ui-datepicker .ui-datepicker-next { + right: 2px; +} +.ui-datepicker .ui-datepicker-prev-hover { + left: 1px; +} +.ui-datepicker .ui-datepicker-next-hover { + right: 1px; +} +.ui-datepicker .ui-datepicker-prev span, +.ui-datepicker .ui-datepicker-next span { + display: block; + position: absolute; + left: 50%; + margin-left: -8px; + top: 50%; + margin-top: -8px; +} +.ui-datepicker .ui-datepicker-title { + margin: 0 2.3em; + line-height: 1.8em; + text-align: center; +} +.ui-datepicker .ui-datepicker-title select { + font-size: 1em; + margin: 1px 0; +} +.ui-datepicker select.ui-datepicker-month-year { + width: 100%; +} +.ui-datepicker select.ui-datepicker-month, +.ui-datepicker select.ui-datepicker-year { + width: 49%; +} +.ui-datepicker table { + width: 100%; + font-size: .9em; + border-collapse: collapse; + margin: 0 0 .4em; +} +.ui-datepicker th { + padding: .7em .3em; + text-align: center; + font-weight: bold; + border: 0; +} +.ui-datepicker td { + border: 0; + padding: 1px; +} +.ui-datepicker td span, +.ui-datepicker td a { + display: block; + padding: .2em; + text-align: right; + text-decoration: none; +} +.ui-datepicker .ui-datepicker-buttonpane { + background-image: none; + margin: .7em 0 0 0; + padding: 0 .2em; + border-left: 0; + border-right: 0; + border-bottom: 0; +} +.ui-datepicker .ui-datepicker-buttonpane button { + float: right; + margin: .5em .2em .4em; + cursor: pointer; + padding: .2em .6em .3em .6em; + width: auto; + overflow: visible; +} +.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { + float: left; +} + +/* with multiple calendars */ +.ui-datepicker.ui-datepicker-multi { + width: auto; +} +.ui-datepicker-multi .ui-datepicker-group { + float: left; +} +.ui-datepicker-multi .ui-datepicker-group table { + width: 95%; + margin: 0 auto .4em; +} +.ui-datepicker-multi-2 .ui-datepicker-group { + width: 50%; +} +.ui-datepicker-multi-3 .ui-datepicker-group { + width: 33.3%; +} +.ui-datepicker-multi-4 .ui-datepicker-group { + width: 25%; +} +.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header, +.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { + border-left-width: 0; +} +.ui-datepicker-multi .ui-datepicker-buttonpane { + clear: left; +} +.ui-datepicker-row-break { + clear: both; + width: 100%; + font-size: 0; +} + +/* RTL support */ +.ui-datepicker-rtl { + direction: rtl; +} +.ui-datepicker-rtl .ui-datepicker-prev { + right: 2px; + left: auto; +} +.ui-datepicker-rtl .ui-datepicker-next { + left: 2px; + right: auto; +} +.ui-datepicker-rtl .ui-datepicker-prev:hover { + right: 1px; + left: auto; +} +.ui-datepicker-rtl .ui-datepicker-next:hover { + left: 1px; + right: auto; +} +.ui-datepicker-rtl .ui-datepicker-buttonpane { + clear: right; +} +.ui-datepicker-rtl .ui-datepicker-buttonpane button { + float: left; +} +.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current, +.ui-datepicker-rtl .ui-datepicker-group { + float: right; +} +.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header, +.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { + border-right-width: 0; + border-left-width: 1px; +} +.ui-dialog { + position: absolute; + top: 0; + left: 0; + padding: .2em; + outline: 0; +} +.ui-dialog .ui-dialog-titlebar { + padding: .4em 1em; + position: relative; +} +.ui-dialog .ui-dialog-title { + float: left; + margin: .1em 0; + white-space: nowrap; + width: 90%; + overflow: hidden; + text-overflow: ellipsis; +} +.ui-dialog .ui-dialog-titlebar-close { + position: absolute; + right: .3em; + top: 50%; + width: 21px; + margin: -10px 0 0 0; + padding: 1px; + height: 20px; +} +.ui-dialog .ui-dialog-content { + position: relative; + border: 0; + padding: .5em 1em; + background: none; + overflow: auto; +} +.ui-dialog .ui-dialog-buttonpane { + text-align: left; + border-width: 1px 0 0 0; + background-image: none; + margin-top: .5em; + padding: .3em 1em .5em .4em; +} +.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { + float: right; +} +.ui-dialog .ui-dialog-buttonpane button { + margin: .5em .4em .5em 0; + cursor: pointer; +} +.ui-dialog .ui-resizable-se { + width: 12px; + height: 12px; + right: -5px; + bottom: -5px; + background-position: 16px 16px; +} +.ui-draggable .ui-dialog-titlebar { + cursor: move; +} +.ui-menu { + list-style: none; + padding: 2px; + margin: 0; + display: block; + outline: none; +} +.ui-menu .ui-menu { + margin-top: -3px; + position: absolute; +} +.ui-menu .ui-menu-item { + margin: 0; + padding: 0; + width: 100%; +} +.ui-menu .ui-menu-divider { + margin: 5px -2px 5px -2px; + height: 0; + font-size: 0; + line-height: 0; + border-width: 1px 0 0 0; +} +.ui-menu .ui-menu-item a { + text-decoration: none; + display: block; + padding: 2px .4em; + line-height: 1.5; + min-height: 0; /* support: IE7 */ + font-weight: normal; +} +.ui-menu .ui-menu-item a.ui-state-focus, +.ui-menu .ui-menu-item a.ui-state-active { + font-weight: normal; + margin: -1px; +} + +.ui-menu .ui-state-disabled { + font-weight: normal; + margin: .4em 0 .2em; + line-height: 1.5; +} +.ui-menu .ui-state-disabled a { + cursor: default; +} + +/* icon support */ +.ui-menu-icons { + position: relative; +} +.ui-menu-icons .ui-menu-item a { + position: relative; + padding-left: 2em; +} + +/* left-aligned */ +.ui-menu .ui-icon { + position: absolute; + top: .2em; + left: .2em; +} + +/* right-aligned */ +.ui-menu .ui-menu-icon { + position: static; + float: right; +} +.ui-progressbar { + height: 2em; + text-align: left; + overflow: hidden; +} +.ui-progressbar .ui-progressbar-value { + margin: -1px; + height: 100%; +} +.ui-progressbar .ui-progressbar-overlay { + background: url("images/animated-overlay.gif"); + height: 100%; + filter: alpha(opacity=25); + opacity: 0.25; +} +.ui-progressbar-indeterminate .ui-progressbar-value { + background-image: none; +} +.ui-resizable { + position: relative; +} +.ui-resizable-handle { + position: absolute; + font-size: 0.1px; + display: block; +} +.ui-resizable-disabled .ui-resizable-handle, +.ui-resizable-autohide .ui-resizable-handle { + display: none; +} +.ui-resizable-n { + cursor: n-resize; + height: 7px; + width: 100%; + top: -5px; + left: 0; +} +.ui-resizable-s { + cursor: s-resize; + height: 7px; + width: 100%; + bottom: -5px; + left: 0; +} +.ui-resizable-e { + cursor: e-resize; + width: 7px; + right: -5px; + top: 0; + height: 100%; +} +.ui-resizable-w { + cursor: w-resize; + width: 7px; + left: -5px; + top: 0; + height: 100%; +} +.ui-resizable-se { + cursor: se-resize; + width: 12px; + height: 12px; + right: 1px; + bottom: 1px; +} +.ui-resizable-sw { + cursor: sw-resize; + width: 9px; + height: 9px; + left: -5px; + bottom: -5px; +} +.ui-resizable-nw { + cursor: nw-resize; + width: 9px; + height: 9px; + left: -5px; + top: -5px; +} +.ui-resizable-ne { + cursor: ne-resize; + width: 9px; + height: 9px; + right: -5px; + top: -5px; +} +.ui-selectable-helper { + position: absolute; + z-index: 100; + border: 1px dotted black; +} +.ui-slider { + position: relative; + text-align: left; +} +.ui-slider .ui-slider-handle { + position: absolute; + z-index: 2; + width: 1.2em; + height: 1.2em; + cursor: default; +} +.ui-slider .ui-slider-range { + position: absolute; + z-index: 1; + font-size: .7em; + display: block; + border: 0; + background-position: 0 0; +} + +/* For IE8 - See #6727 */ +.ui-slider.ui-state-disabled .ui-slider-handle, +.ui-slider.ui-state-disabled .ui-slider-range { + filter: inherit; +} + +.ui-slider-horizontal { + height: .8em; +} +.ui-slider-horizontal .ui-slider-handle { + top: -.3em; + margin-left: -.6em; +} +.ui-slider-horizontal .ui-slider-range { + top: 0; + height: 100%; +} +.ui-slider-horizontal .ui-slider-range-min { + left: 0; +} +.ui-slider-horizontal .ui-slider-range-max { + right: 0; +} + +.ui-slider-vertical { + width: .8em; + height: 100px; +} +.ui-slider-vertical .ui-slider-handle { + left: -.3em; + margin-left: 0; + margin-bottom: -.6em; +} +.ui-slider-vertical .ui-slider-range { + left: 0; + width: 100%; +} +.ui-slider-vertical .ui-slider-range-min { + bottom: 0; +} +.ui-slider-vertical .ui-slider-range-max { + top: 0; +} +.ui-spinner { + position: relative; + display: inline-block; + overflow: hidden; + padding: 0; + vertical-align: middle; +} +.ui-spinner-input { + border: none; + background: none; + color: inherit; + padding: 0; + margin: .2em 0; + vertical-align: middle; + margin-left: .4em; + margin-right: 22px; +} +.ui-spinner-button { + width: 16px; + height: 50%; + font-size: .5em; + padding: 0; + margin: 0; + text-align: center; + position: absolute; + cursor: default; + display: block; + overflow: hidden; + right: 0; +} +/* more specificity required here to overide default borders */ +.ui-spinner a.ui-spinner-button { + border-top: none; + border-bottom: none; + border-right: none; +} +/* vertical centre icon */ +.ui-spinner .ui-icon { + position: absolute; + margin-top: -8px; + top: 50%; + left: 0; +} +.ui-spinner-up { + top: 0; +} +.ui-spinner-down { + bottom: 0; +} + +/* TR overrides */ +.ui-spinner .ui-icon-triangle-1-s { + /* need to fix icons sprite */ + background-position: -65px -16px; +} +.ui-tabs { + position: relative;/* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */ + padding: .2em; +} +.ui-tabs .ui-tabs-nav { + margin: 0; + padding: .2em .2em 0; +} +.ui-tabs .ui-tabs-nav li { + list-style: none; + float: left; + position: relative; + top: 0; + margin: 1px .2em 0 0; + border-bottom: 0; + padding: 0; + white-space: nowrap; +} +.ui-tabs .ui-tabs-nav li a { + float: left; + padding: .5em 1em; + text-decoration: none; +} +.ui-tabs .ui-tabs-nav li.ui-tabs-active { + margin-bottom: -1px; + padding-bottom: 1px; +} +.ui-tabs .ui-tabs-nav li.ui-tabs-active a, +.ui-tabs .ui-tabs-nav li.ui-state-disabled a, +.ui-tabs .ui-tabs-nav li.ui-tabs-loading a { + cursor: text; +} +.ui-tabs .ui-tabs-nav li a, /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */ +.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-active a { + cursor: pointer; +} +.ui-tabs .ui-tabs-panel { + display: block; + border-width: 0; + padding: 1em 1.4em; + background: none; +} +.ui-tooltip { + padding: 8px; + position: absolute; + z-index: 9999; + max-width: 300px; + -webkit-box-shadow: 0 0 5px #aaa; + box-shadow: 0 0 5px #aaa; +} +body .ui-tooltip { + border-width: 2px; +} + +/* Component containers +----------------------------------*/ +.ui-widget { + font-family: Verdana,Arial,sans-serif/*{ffDefault}*/; + font-size: 1.1em/*{fsDefault}*/; +} +.ui-widget .ui-widget { + font-size: 1em; +} +.ui-widget input, +.ui-widget select, +.ui-widget textarea, +.ui-widget button { + font-family: Verdana,Arial,sans-serif/*{ffDefault}*/; + font-size: 1em; +} +.ui-widget-content { + border: 1px solid #aaaaaa/*{borderColorContent}*/; + background: #ffffff/*{bgColorContent}*/ url(images/ui-bg_flat_75_ffffff_40x100.png)/*{bgImgUrlContent}*/ 50%/*{bgContentXPos}*/ 50%/*{bgContentYPos}*/ repeat-x/*{bgContentRepeat}*/; + color: #222222/*{fcContent}*/; +} +.ui-widget-content a { + color: #222222/*{fcContent}*/; +} +.ui-widget-header { + border: 1px solid #aaaaaa/*{borderColorHeader}*/; + background: #cccccc/*{bgColorHeader}*/ url(images/ui-bg_highlight-soft_75_cccccc_1x100.png)/*{bgImgUrlHeader}*/ 50%/*{bgHeaderXPos}*/ 50%/*{bgHeaderYPos}*/ repeat-x/*{bgHeaderRepeat}*/; + color: #222222/*{fcHeader}*/; + font-weight: bold; +} +.ui-widget-header a { + color: #222222/*{fcHeader}*/; +} + +/* Interaction states +----------------------------------*/ +.ui-state-default, +.ui-widget-content .ui-state-default, +.ui-widget-header .ui-state-default { + border: 1px solid #d3d3d3/*{borderColorDefault}*/; + background: #e6e6e6/*{bgColorDefault}*/ url(images/ui-bg_glass_75_e6e6e6_1x400.png)/*{bgImgUrlDefault}*/ 50%/*{bgDefaultXPos}*/ 50%/*{bgDefaultYPos}*/ repeat-x/*{bgDefaultRepeat}*/; + font-weight: normal/*{fwDefault}*/; + color: #555555/*{fcDefault}*/; +} +.ui-state-default a, +.ui-state-default a:link, +.ui-state-default a:visited { + color: #555555/*{fcDefault}*/; + text-decoration: none; +} +.ui-state-hover, +.ui-widget-content .ui-state-hover, +.ui-widget-header .ui-state-hover, +.ui-state-focus, +.ui-widget-content .ui-state-focus, +.ui-widget-header .ui-state-focus { + border: 1px solid #999999/*{borderColorHover}*/; + background: #dadada/*{bgColorHover}*/ url(images/ui-bg_glass_75_dadada_1x400.png)/*{bgImgUrlHover}*/ 50%/*{bgHoverXPos}*/ 50%/*{bgHoverYPos}*/ repeat-x/*{bgHoverRepeat}*/; + font-weight: normal/*{fwDefault}*/; + color: #212121/*{fcHover}*/; +} +.ui-state-hover a, +.ui-state-hover a:hover, +.ui-state-hover a:link, +.ui-state-hover a:visited { + color: #212121/*{fcHover}*/; + text-decoration: none; +} +.ui-state-active, +.ui-widget-content .ui-state-active, +.ui-widget-header .ui-state-active { + border: 1px solid #aaaaaa/*{borderColorActive}*/; + background: #ffffff/*{bgColorActive}*/ url(images/ui-bg_glass_65_ffffff_1x400.png)/*{bgImgUrlActive}*/ 50%/*{bgActiveXPos}*/ 50%/*{bgActiveYPos}*/ repeat-x/*{bgActiveRepeat}*/; + font-weight: normal/*{fwDefault}*/; + color: #212121/*{fcActive}*/; +} +.ui-state-active a, +.ui-state-active a:link, +.ui-state-active a:visited { + color: #212121/*{fcActive}*/; + text-decoration: none; +} + +/* Interaction Cues +----------------------------------*/ +.ui-state-highlight, +.ui-widget-content .ui-state-highlight, +.ui-widget-header .ui-state-highlight { + border: 1px solid #fcefa1/*{borderColorHighlight}*/; + background: #fbf9ee/*{bgColorHighlight}*/ url(images/ui-bg_glass_55_fbf9ee_1x400.png)/*{bgImgUrlHighlight}*/ 50%/*{bgHighlightXPos}*/ 50%/*{bgHighlightYPos}*/ repeat-x/*{bgHighlightRepeat}*/; + color: #363636/*{fcHighlight}*/; +} +.ui-state-highlight a, +.ui-widget-content .ui-state-highlight a, +.ui-widget-header .ui-state-highlight a { + color: #363636/*{fcHighlight}*/; +} +.ui-state-error, +.ui-widget-content .ui-state-error, +.ui-widget-header .ui-state-error { + border: 1px solid #cd0a0a/*{borderColorError}*/; + background: #fef1ec/*{bgColorError}*/ url(images/ui-bg_glass_95_fef1ec_1x400.png)/*{bgImgUrlError}*/ 50%/*{bgErrorXPos}*/ 50%/*{bgErrorYPos}*/ repeat-x/*{bgErrorRepeat}*/; + color: #cd0a0a/*{fcError}*/; +} +.ui-state-error a, +.ui-widget-content .ui-state-error a, +.ui-widget-header .ui-state-error a { + color: #cd0a0a/*{fcError}*/; +} +.ui-state-error-text, +.ui-widget-content .ui-state-error-text, +.ui-widget-header .ui-state-error-text { + color: #cd0a0a/*{fcError}*/; +} +.ui-priority-primary, +.ui-widget-content .ui-priority-primary, +.ui-widget-header .ui-priority-primary { + font-weight: bold; +} +.ui-priority-secondary, +.ui-widget-content .ui-priority-secondary, +.ui-widget-header .ui-priority-secondary { + opacity: .7; + filter:Alpha(Opacity=70); + font-weight: normal; +} +.ui-state-disabled, +.ui-widget-content .ui-state-disabled, +.ui-widget-header .ui-state-disabled { + opacity: .35; + filter:Alpha(Opacity=35); + background-image: none; +} +.ui-state-disabled .ui-icon { + filter:Alpha(Opacity=35); /* For IE8 - See #6059 */ +} + +/* Icons +----------------------------------*/ + +/* states and images */ +.ui-icon { + width: 16px; + height: 16px; + background-position: 16px 16px; +} +.ui-icon, +.ui-widget-content .ui-icon { + background-image: url(images/ui-icons_222222_256x240.png)/*{iconsContent}*/; +} +.ui-widget-header .ui-icon { + background-image: url(images/ui-icons_222222_256x240.png)/*{iconsHeader}*/; +} +.ui-state-default .ui-icon { + background-image: url(images/ui-icons_888888_256x240.png)/*{iconsDefault}*/; +} +.ui-state-hover .ui-icon, +.ui-state-focus .ui-icon { + background-image: url(images/ui-icons_454545_256x240.png)/*{iconsHover}*/; +} +.ui-state-active .ui-icon { + background-image: url(images/ui-icons_454545_256x240.png)/*{iconsActive}*/; +} +.ui-state-highlight .ui-icon { + background-image: url(images/ui-icons_2e83ff_256x240.png)/*{iconsHighlight}*/; +} +.ui-state-error .ui-icon, +.ui-state-error-text .ui-icon { + background-image: url(images/ui-icons_cd0a0a_256x240.png)/*{iconsError}*/; +} + +/* positioning */ +.ui-icon-carat-1-n { background-position: 0 0; } +.ui-icon-carat-1-ne { background-position: -16px 0; } +.ui-icon-carat-1-e { background-position: -32px 0; } +.ui-icon-carat-1-se { background-position: -48px 0; } +.ui-icon-carat-1-s { background-position: -64px 0; } +.ui-icon-carat-1-sw { background-position: -80px 0; } +.ui-icon-carat-1-w { background-position: -96px 0; } +.ui-icon-carat-1-nw { background-position: -112px 0; } +.ui-icon-carat-2-n-s { background-position: -128px 0; } +.ui-icon-carat-2-e-w { background-position: -144px 0; } +.ui-icon-triangle-1-n { background-position: 0 -16px; } +.ui-icon-triangle-1-ne { background-position: -16px -16px; } +.ui-icon-triangle-1-e { background-position: -32px -16px; } +.ui-icon-triangle-1-se { background-position: -48px -16px; } +.ui-icon-triangle-1-s { background-position: -64px -16px; } +.ui-icon-triangle-1-sw { background-position: -80px -16px; } +.ui-icon-triangle-1-w { background-position: -96px -16px; } +.ui-icon-triangle-1-nw { background-position: -112px -16px; } +.ui-icon-triangle-2-n-s { background-position: -128px -16px; } +.ui-icon-triangle-2-e-w { background-position: -144px -16px; } +.ui-icon-arrow-1-n { background-position: 0 -32px; } +.ui-icon-arrow-1-ne { background-position: -16px -32px; } +.ui-icon-arrow-1-e { background-position: -32px -32px; } +.ui-icon-arrow-1-se { background-position: -48px -32px; } +.ui-icon-arrow-1-s { background-position: -64px -32px; } +.ui-icon-arrow-1-sw { background-position: -80px -32px; } +.ui-icon-arrow-1-w { background-position: -96px -32px; } +.ui-icon-arrow-1-nw { background-position: -112px -32px; } +.ui-icon-arrow-2-n-s { background-position: -128px -32px; } +.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; } +.ui-icon-arrow-2-e-w { background-position: -160px -32px; } +.ui-icon-arrow-2-se-nw { background-position: -176px -32px; } +.ui-icon-arrowstop-1-n { background-position: -192px -32px; } +.ui-icon-arrowstop-1-e { background-position: -208px -32px; } +.ui-icon-arrowstop-1-s { background-position: -224px -32px; } +.ui-icon-arrowstop-1-w { background-position: -240px -32px; } +.ui-icon-arrowthick-1-n { background-position: 0 -48px; } +.ui-icon-arrowthick-1-ne { background-position: -16px -48px; } +.ui-icon-arrowthick-1-e { background-position: -32px -48px; } +.ui-icon-arrowthick-1-se { background-position: -48px -48px; } +.ui-icon-arrowthick-1-s { background-position: -64px -48px; } +.ui-icon-arrowthick-1-sw { background-position: -80px -48px; } +.ui-icon-arrowthick-1-w { background-position: -96px -48px; } +.ui-icon-arrowthick-1-nw { background-position: -112px -48px; } +.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; } +.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; } +.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; } +.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; } +.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; } +.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; } +.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; } +.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; } +.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; } +.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; } +.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; } +.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; } +.ui-icon-arrowreturn-1-w { background-position: -64px -64px; } +.ui-icon-arrowreturn-1-n { background-position: -80px -64px; } +.ui-icon-arrowreturn-1-e { background-position: -96px -64px; } +.ui-icon-arrowreturn-1-s { background-position: -112px -64px; } +.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; } +.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; } +.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; } +.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; } +.ui-icon-arrow-4 { background-position: 0 -80px; } +.ui-icon-arrow-4-diag { background-position: -16px -80px; } +.ui-icon-extlink { background-position: -32px -80px; } +.ui-icon-newwin { background-position: -48px -80px; } +.ui-icon-refresh { background-position: -64px -80px; } +.ui-icon-shuffle { background-position: -80px -80px; } +.ui-icon-transfer-e-w { background-position: -96px -80px; } +.ui-icon-transferthick-e-w { background-position: -112px -80px; } +.ui-icon-folder-collapsed { background-position: 0 -96px; } +.ui-icon-folder-open { background-position: -16px -96px; } +.ui-icon-document { background-position: -32px -96px; } +.ui-icon-document-b { background-position: -48px -96px; } +.ui-icon-note { background-position: -64px -96px; } +.ui-icon-mail-closed { background-position: -80px -96px; } +.ui-icon-mail-open { background-position: -96px -96px; } +.ui-icon-suitcase { background-position: -112px -96px; } +.ui-icon-comment { background-position: -128px -96px; } +.ui-icon-person { background-position: -144px -96px; } +.ui-icon-print { background-position: -160px -96px; } +.ui-icon-trash { background-position: -176px -96px; } +.ui-icon-locked { background-position: -192px -96px; } +.ui-icon-unlocked { background-position: -208px -96px; } +.ui-icon-bookmark { background-position: -224px -96px; } +.ui-icon-tag { background-position: -240px -96px; } +.ui-icon-home { background-position: 0 -112px; } +.ui-icon-flag { background-position: -16px -112px; } +.ui-icon-calendar { background-position: -32px -112px; } +.ui-icon-cart { background-position: -48px -112px; } +.ui-icon-pencil { background-position: -64px -112px; } +.ui-icon-clock { background-position: -80px -112px; } +.ui-icon-disk { background-position: -96px -112px; } +.ui-icon-calculator { background-position: -112px -112px; } +.ui-icon-zoomin { background-position: -128px -112px; } +.ui-icon-zoomout { background-position: -144px -112px; } +.ui-icon-search { background-position: -160px -112px; } +.ui-icon-wrench { background-position: -176px -112px; } +.ui-icon-gear { background-position: -192px -112px; } +.ui-icon-heart { background-position: -208px -112px; } +.ui-icon-star { background-position: -224px -112px; } +.ui-icon-link { background-position: -240px -112px; } +.ui-icon-cancel { background-position: 0 -128px; } +.ui-icon-plus { background-position: -16px -128px; } +.ui-icon-plusthick { background-position: -32px -128px; } +.ui-icon-minus { background-position: -48px -128px; } +.ui-icon-minusthick { background-position: -64px -128px; } +.ui-icon-close { background-position: -80px -128px; } +.ui-icon-closethick { background-position: -96px -128px; } +.ui-icon-key { background-position: -112px -128px; } +.ui-icon-lightbulb { background-position: -128px -128px; } +.ui-icon-scissors { background-position: -144px -128px; } +.ui-icon-clipboard { background-position: -160px -128px; } +.ui-icon-copy { background-position: -176px -128px; } +.ui-icon-contact { background-position: -192px -128px; } +.ui-icon-image { background-position: -208px -128px; } +.ui-icon-video { background-position: -224px -128px; } +.ui-icon-script { background-position: -240px -128px; } +.ui-icon-alert { background-position: 0 -144px; } +.ui-icon-info { background-position: -16px -144px; } +.ui-icon-notice { background-position: -32px -144px; } +.ui-icon-help { background-position: -48px -144px; } +.ui-icon-check { background-position: -64px -144px; } +.ui-icon-bullet { background-position: -80px -144px; } +.ui-icon-radio-on { background-position: -96px -144px; } +.ui-icon-radio-off { background-position: -112px -144px; } +.ui-icon-pin-w { background-position: -128px -144px; } +.ui-icon-pin-s { background-position: -144px -144px; } +.ui-icon-play { background-position: 0 -160px; } +.ui-icon-pause { background-position: -16px -160px; } +.ui-icon-seek-next { background-position: -32px -160px; } +.ui-icon-seek-prev { background-position: -48px -160px; } +.ui-icon-seek-end { background-position: -64px -160px; } +.ui-icon-seek-start { background-position: -80px -160px; } +/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */ +.ui-icon-seek-first { background-position: -80px -160px; } +.ui-icon-stop { background-position: -96px -160px; } +.ui-icon-eject { background-position: -112px -160px; } +.ui-icon-volume-off { background-position: -128px -160px; } +.ui-icon-volume-on { background-position: -144px -160px; } +.ui-icon-power { background-position: 0 -176px; } +.ui-icon-signal-diag { background-position: -16px -176px; } +.ui-icon-signal { background-position: -32px -176px; } +.ui-icon-battery-0 { background-position: -48px -176px; } +.ui-icon-battery-1 { background-position: -64px -176px; } +.ui-icon-battery-2 { background-position: -80px -176px; } +.ui-icon-battery-3 { background-position: -96px -176px; } +.ui-icon-circle-plus { background-position: 0 -192px; } +.ui-icon-circle-minus { background-position: -16px -192px; } +.ui-icon-circle-close { background-position: -32px -192px; } +.ui-icon-circle-triangle-e { background-position: -48px -192px; } +.ui-icon-circle-triangle-s { background-position: -64px -192px; } +.ui-icon-circle-triangle-w { background-position: -80px -192px; } +.ui-icon-circle-triangle-n { background-position: -96px -192px; } +.ui-icon-circle-arrow-e { background-position: -112px -192px; } +.ui-icon-circle-arrow-s { background-position: -128px -192px; } +.ui-icon-circle-arrow-w { background-position: -144px -192px; } +.ui-icon-circle-arrow-n { background-position: -160px -192px; } +.ui-icon-circle-zoomin { background-position: -176px -192px; } +.ui-icon-circle-zoomout { background-position: -192px -192px; } +.ui-icon-circle-check { background-position: -208px -192px; } +.ui-icon-circlesmall-plus { background-position: 0 -208px; } +.ui-icon-circlesmall-minus { background-position: -16px -208px; } +.ui-icon-circlesmall-close { background-position: -32px -208px; } +.ui-icon-squaresmall-plus { background-position: -48px -208px; } +.ui-icon-squaresmall-minus { background-position: -64px -208px; } +.ui-icon-squaresmall-close { background-position: -80px -208px; } +.ui-icon-grip-dotted-vertical { background-position: 0 -224px; } +.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; } +.ui-icon-grip-solid-vertical { background-position: -32px -224px; } +.ui-icon-grip-solid-horizontal { background-position: -48px -224px; } +.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; } +.ui-icon-grip-diagonal-se { background-position: -80px -224px; } + + +/* Misc visuals +----------------------------------*/ + +/* Corner radius */ +.ui-corner-all, +.ui-corner-top, +.ui-corner-left, +.ui-corner-tl { + border-top-left-radius: 4px/*{cornerRadius}*/; +} +.ui-corner-all, +.ui-corner-top, +.ui-corner-right, +.ui-corner-tr { + border-top-right-radius: 4px/*{cornerRadius}*/; +} +.ui-corner-all, +.ui-corner-bottom, +.ui-corner-left, +.ui-corner-bl { + border-bottom-left-radius: 4px/*{cornerRadius}*/; +} +.ui-corner-all, +.ui-corner-bottom, +.ui-corner-right, +.ui-corner-br { + border-bottom-right-radius: 4px/*{cornerRadius}*/; +} + +/* Overlays */ +.ui-widget-overlay { + background: #aaaaaa/*{bgColorOverlay}*/ url(images/ui-bg_flat_0_aaaaaa_40x100.png)/*{bgImgUrlOverlay}*/ 50%/*{bgOverlayXPos}*/ 50%/*{bgOverlayYPos}*/ repeat-x/*{bgOverlayRepeat}*/; + opacity: .3/*{opacityOverlay}*/; + filter: Alpha(Opacity=30)/*{opacityFilterOverlay}*/; +} +.ui-widget-shadow { + margin: -8px/*{offsetTopShadow}*/ 0 0 -8px/*{offsetLeftShadow}*/; + padding: 8px/*{thicknessShadow}*/; + background: #aaaaaa/*{bgColorShadow}*/ url(images/ui-bg_flat_0_aaaaaa_40x100.png)/*{bgImgUrlShadow}*/ 50%/*{bgShadowXPos}*/ 50%/*{bgShadowYPos}*/ repeat-x/*{bgShadowRepeat}*/; + opacity: .3/*{opacityShadow}*/; + filter: Alpha(Opacity=30)/*{opacityFilterShadow}*/; + border-radius: 8px/*{cornerRadiusShadow}*/; +} diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components/dygraph/extras/jquery-ui.min.js.download b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components/dygraph/extras/jquery-ui.min.js.download new file mode 100644 index 0000000..192dc36 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components/dygraph/extras/jquery-ui.min.js.download @@ -0,0 +1,5 @@ +/*! jQuery UI - v1.10.1 - 2013-02-15 +* http://jqueryui.com +* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.ui.effect.js, jquery.ui.accordion.js, jquery.ui.autocomplete.js, jquery.ui.button.js, jquery.ui.datepicker.js, jquery.ui.dialog.js, jquery.ui.effect-blind.js, jquery.ui.effect-bounce.js, jquery.ui.effect-clip.js, jquery.ui.effect-drop.js, jquery.ui.effect-explode.js, jquery.ui.effect-fade.js, jquery.ui.effect-fold.js, jquery.ui.effect-highlight.js, jquery.ui.effect-pulsate.js, jquery.ui.effect-scale.js, jquery.ui.effect-shake.js, jquery.ui.effect-slide.js, jquery.ui.effect-transfer.js, jquery.ui.menu.js, jquery.ui.position.js, jquery.ui.progressbar.js, jquery.ui.slider.js, jquery.ui.spinner.js, jquery.ui.tabs.js, jquery.ui.tooltip.js +* Copyright 2013 jQuery Foundation and other contributors; Licensed MIT */ +(function(e,t){function i(t,n){var r,i,o,u=t.nodeName.toLowerCase();return"area"===u?(r=t.parentNode,i=r.name,!t.href||!i||r.nodeName.toLowerCase()!=="map"?!1:(o=e("img[usemap=#"+i+"]")[0],!!o&&s(o))):(/input|select|textarea|button|object/.test(u)?!t.disabled:"a"===u?t.href||n:n)&&s(t)}function s(t){return e.expr.filters.visible(t)&&!e(t).parents().addBack().filter(function(){return e.css(this,"visibility")==="hidden"}).length}var n=0,r=/^ui-id-\d+$/;e.ui=e.ui||{};if(e.ui.version)return;e.extend(e.ui,{version:"1.10.1",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),e.fn.extend({_focus:e.fn.focus,focus:function(t,n){return typeof t=="number"?this.each(function(){var r=this;setTimeout(function(){e(r).focus(),n&&n.call(r)},t)}):this._focus.apply(this,arguments)},scrollParent:function(){var t;return e.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?t=this.parents().filter(function(){return/(relative|absolute|fixed)/.test(e.css(this,"position"))&&/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))}).eq(0):t=this.parents().filter(function(){return/(auto|scroll)/.test(e.css(this,"overflow")+e.css(this,"overflow-y")+e.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!t.length?e(document):t},zIndex:function(n){if(n!==t)return this.css("zIndex",n);if(this.length){var r=e(this[0]),i,s;while(r.length&&r[0]!==document){i=r.css("position");if(i==="absolute"||i==="relative"||i==="fixed"){s=parseInt(r.css("zIndex"),10);if(!isNaN(s)&&s!==0)return s}r=r.parent()}}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++n)})},removeUniqueId:function(){return this.each(function(){r.test(this.id)&&e(this).removeAttr("id")})}}),e.extend(e.expr[":"],{data:e.expr.createPseudo?e.expr.createPseudo(function(t){return function(n){return!!e.data(n,t)}}):function(t,n,r){return!!e.data(t,r[3])},focusable:function(t){return i(t,!isNaN(e.attr(t,"tabindex")))},tabbable:function(t){var n=e.attr(t,"tabindex"),r=isNaN(n);return(r||n>=0)&&i(t,!r)}}),e("").outerWidth(1).jquery||e.each(["Width","Height"],function(n,r){function u(t,n,r,s){return e.each(i,function(){n-=parseFloat(e.css(t,"padding"+this))||0,r&&(n-=parseFloat(e.css(t,"border"+this+"Width"))||0),s&&(n-=parseFloat(e.css(t,"margin"+this))||0)}),n}var i=r==="Width"?["Left","Right"]:["Top","Bottom"],s=r.toLowerCase(),o={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};e.fn["inner"+r]=function(n){return n===t?o["inner"+r].call(this):this.each(function(){e(this).css(s,u(this,n)+"px")})},e.fn["outer"+r]=function(t,n){return typeof t!="number"?o["outer"+r].call(this,t):this.each(function(){e(this).css(s,u(this,t,!0,n)+"px")})}}),e.fn.addBack||(e.fn.addBack=function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}),e("").data("a-b","a").removeData("a-b").data("a-b")&&(e.fn.removeData=function(t){return function(n){return arguments.length?t.call(this,e.camelCase(n)):t.call(this)}}(e.fn.removeData)),e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),e.support.selectstart="onselectstart"in document.createElement("div"),e.fn.extend({disableSelection:function(){return this.bind((e.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(e){e.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),e.extend(e.ui,{plugin:{add:function(t,n,r){var i,s=e.ui[t].prototype;for(i in r)s.plugins[i]=s.plugins[i]||[],s.plugins[i].push([n,r[i]])},call:function(e,t,n){var r,i=e.plugins[t];if(!i||!e.element[0].parentNode||e.element[0].parentNode.nodeType===11)return;for(r=0;r0?!0:(t[r]=1,i=t[r]>0,t[r]=0,i)}})})(jQuery),function(e,t){var n=0,r=Array.prototype.slice,i=e.cleanData;e.cleanData=function(t){for(var n=0,r;(r=t[n])!=null;n++)try{e(r).triggerHandler("remove")}catch(s){}i(t)},e.widget=function(t,n,r){var i,s,o,u,a={},f=t.split(".")[0];t=t.split(".")[1],i=f+"-"+t,r||(r=n,n=e.Widget),e.expr[":"][i.toLowerCase()]=function(t){return!!e.data(t,i)},e[f]=e[f]||{},s=e[f][t],o=e[f][t]=function(e,t){if(!this._createWidget)return new o(e,t);arguments.length&&this._createWidget(e,t)},e.extend(o,s,{version:r.version,_proto:e.extend({},r),_childConstructors:[]}),u=new n,u.options=e.widget.extend({},u.options),e.each(r,function(t,r){if(!e.isFunction(r)){a[t]=r;return}a[t]=function(){var e=function(){return n.prototype[t].apply(this,arguments)},i=function(e){return n.prototype[t].apply(this,e)};return function(){var t=this._super,n=this._superApply,s;return this._super=e,this._superApply=i,s=r.apply(this,arguments),this._super=t,this._superApply=n,s}}()}),o.prototype=e.widget.extend(u,{widgetEventPrefix:s?u.widgetEventPrefix:t},a,{constructor:o,namespace:f,widgetName:t,widgetFullName:i}),s?(e.each(s._childConstructors,function(t,n){var r=n.prototype;e.widget(r.namespace+"."+r.widgetName,o,n._proto)}),delete s._childConstructors):n._childConstructors.push(o),e.widget.bridge(t,o)},e.widget.extend=function(n){var i=r.call(arguments,1),s=0,o=i.length,u,a;for(;s",options:{disabled:!1,create:null},_createWidget:function(t,r){r=e(r||this.defaultElement||this)[0],this.element=e(r),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this.bindings=e(),this.hoverable=e(),this.focusable=e(),r!==this&&(e.data(r,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===r&&this.destroy()}}),this.document=e(r.style?r.ownerDocument:r.document||r),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:e.noop,_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(e.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled "+"ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:e.noop,widget:function(){return this.element},option:function(n,r){var i=n,s,o,u;if(arguments.length===0)return e.widget.extend({},this.options);if(typeof n=="string"){i={},s=n.split("."),n=s.shift();if(s.length){o=i[n]=e.widget.extend({},this.options[n]);for(u=0;u=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}(jQuery),function(e,t){e.widget("ui.draggable",e.ui.mouse,{version:"1.10.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){this.options.helper==="original"&&!/^(?:r|a|f)/.test(this.element.css("position"))&&(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._mouseInit()},_destroy:function(){this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy()},_mouseCapture:function(t){var n=this.options;return this.helper||n.disabled||e(t.target).closest(".ui-resizable-handle").length>0?!1:(this.handle=this._getHandle(t),this.handle?(e(n.iframeFix===!0?"iframe":n.iframeFix).each(function(){e("
").css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(e(this).offset()).appendTo("body")}),!0):!1)},_mouseStart:function(t){var n=this.options;return this.helper=this._createHelper(t),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),e.ui.ddmanager&&(e.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},e.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,n.cursorAt&&this._adjustOffsetFromHelper(n.cursorAt),n.containment&&this._setContainment(),this._trigger("start",t)===!1?(this._clear(),!1):(this._cacheHelperProportions(),e.ui.ddmanager&&!n.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),e.ui.ddmanager&&e.ui.ddmanager.dragStart(this,t),!0)},_mouseDrag:function(t,n){this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute");if(!n){var r=this._uiHash();if(this._trigger("drag",t,r)===!1)return this._mouseUp({}),!1;this.position=r.position}if(!this.options.axis||this.options.axis!=="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!=="x")this.helper[0].style.top=this.position.top+"px";return e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var n,r=this,i=!1,s=!1;e.ui.ddmanager&&!this.options.dropBehaviour&&(s=e.ui.ddmanager.drop(this,t)),this.dropped&&(s=this.dropped,this.dropped=!1),n=this.element[0];while(n&&(n=n.parentNode))n===document&&(i=!0);return!i&&this.options.helper==="original"?!1:(this.options.revert==="invalid"&&!s||this.options.revert==="valid"&&s||this.options.revert===!0||e.isFunction(this.options.revert)&&this.options.revert.call(this.element,s)?e(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){r._trigger("stop",t)!==!1&&r._clear()}):this._trigger("stop",t)!==!1&&this._clear(),!1)},_mouseUp:function(t){return e("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),e.ui.ddmanager&&e.ui.ddmanager.dragStop(this,t),e.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(t){var n=!this.options.handle||!e(this.options.handle,this.element).length?!0:!1;return e(this.options.handle,this.element).find("*").addBack().each(function(){this===t.target&&(n=!0)}),n},_createHelper:function(t){var n=this.options,r=e.isFunction(n.helper)?e(n.helper.apply(this.element[0],[t])):n.helper==="clone"?this.element.clone().removeAttr("id"):this.element;return r.parents("body").length||r.appendTo(n.appendTo==="parent"?this.element[0].parentNode:n.appendTo),r[0]!==this.element[0]&&!/(fixed|absolute)/.test(r.css("position"))&&r.css("position","absolute"),r},_adjustOffsetFromHelper:function(t){typeof t=="string"&&(t=t.split(" ")),e.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();this.cssPosition==="absolute"&&this.scrollParent[0]!==document&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop());if(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()==="html"&&e.ui.ie)t={top:0,left:0};return{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition==="relative"){var e=this.element.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,n,r,i=this.options;i.containment==="parent"&&(i.containment=this.helper[0].parentNode);if(i.containment==="document"||i.containment==="window")this.containment=[i.containment==="document"?0:e(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,i.containment==="document"?0:e(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,(i.containment==="document"?0:e(window).scrollLeft())+e(i.containment==="document"?document:window).width()-this.helperProportions.width-this.margins.left,(i.containment==="document"?0:e(window).scrollTop())+(e(i.containment==="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(i.containment)&&i.containment.constructor!==Array){n=e(i.containment),r=n[0];if(!r)return;t=e(r).css("overflow")!=="hidden",this.containment=[(parseInt(e(r).css("borderLeftWidth"),10)||0)+(parseInt(e(r).css("paddingLeft"),10)||0),(parseInt(e(r).css("borderTopWidth"),10)||0)+(parseInt(e(r).css("paddingTop"),10)||0),(t?Math.max(r.scrollWidth,r.offsetWidth):r.offsetWidth)-(parseInt(e(r).css("borderLeftWidth"),10)||0)-(parseInt(e(r).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(r.scrollHeight,r.offsetHeight):r.offsetHeight)-(parseInt(e(r).css("borderTopWidth"),10)||0)-(parseInt(e(r).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=n}else i.containment.constructor===Array&&(this.containment=i.containment)},_convertPositionTo:function(t,n){n||(n=this.position);var r=t==="absolute"?1:-1,i=this.cssPosition!=="absolute"||this.scrollParent[0]!==document&&!!e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,s=/(html|body)/i.test(i[0].tagName);return{top:n.top+this.offset.relative.top*r+this.offset.parent.top*r-(this.cssPosition==="fixed"?-this.scrollParent.scrollTop():s?0:i.scrollTop())*r,left:n.left+this.offset.relative.left*r+this.offset.parent.left*r-(this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():s?0:i.scrollLeft())*r}},_generatePosition:function(t){var n,r,i,s,o=this.options,u=this.cssPosition!=="absolute"||this.scrollParent[0]!==document&&!!e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,a=/(html|body)/i.test(u[0].tagName),f=t.pageX,l=t.pageY;return this.originalPosition&&(this.containment&&(this.relative_container?(r=this.relative_container.offset(),n=[this.containment[0]+r.left,this.containment[1]+r.top,this.containment[2]+r.left,this.containment[3]+r.top]):n=this.containment,t.pageX-this.offset.click.leftn[2]&&(f=n[2]+this.offset.click.left),t.pageY-this.offset.click.top>n[3]&&(l=n[3]+this.offset.click.top)),o.grid&&(i=o.grid[1]?this.originalPageY+Math.round((l-this.originalPageY)/o.grid[1])*o.grid[1]:this.originalPageY,l=n?i-this.offset.click.top>=n[1]||i-this.offset.click.top>n[3]?i:i-this.offset.click.top>=n[1]?i-o.grid[1]:i+o.grid[1]:i,s=o.grid[0]?this.originalPageX+Math.round((f-this.originalPageX)/o.grid[0])*o.grid[0]:this.originalPageX,f=n?s-this.offset.click.left>=n[0]||s-this.offset.click.left>n[2]?s:s-this.offset.click.left>=n[0]?s-o.grid[0]:s+o.grid[0]:s)),{top:l-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition==="fixed"?-this.scrollParent.scrollTop():a?0:u.scrollTop()),left:f-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():a?0:u.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]!==this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1},_trigger:function(t,n,r){return r=r||this._uiHash(),e.ui.plugin.call(this,t,[n,r]),t==="drag"&&(this.positionAbs=this._convertPositionTo("absolute")),e.Widget.prototype._trigger.call(this,t,n,r)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),e.ui.plugin.add("draggable","connectToSortable",{start:function(t,n){var r=e(this).data("ui-draggable"),i=r.options,s=e.extend({},n,{item:r.element});r.sortables=[],e(i.connectToSortable).each(function(){var n=e.data(this,"ui-sortable");n&&!n.options.disabled&&(r.sortables.push({instance:n,shouldRevert:n.options.revert}),n.refreshPositions(),n._trigger("activate",t,s))})},stop:function(t,n){var r=e(this).data("ui-draggable"),i=e.extend({},n,{item:r.element});e.each(r.sortables,function(){this.instance.isOver?(this.instance.isOver=0,r.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=!0),this.instance._mouseStop(t),this.instance.options.helper=this.instance.options._helper,r.options.helper==="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",t,i))})},drag:function(t,n){var r=e(this).data("ui-draggable"),i=this;e.each(r.sortables,function(){var s=!1,o=this;this.instance.positionAbs=r.positionAbs,this.instance.helperProportions=r.helperProportions,this.instance.offset.click=r.offset.click,this.instance._intersectsWith(this.instance.containerCache)&&(s=!0,e.each(r.sortables,function(){return this.instance.positionAbs=r.positionAbs,this.instance.helperProportions=r.helperProportions,this.instance.offset.click=r.offset.click,this!==o&&this.instance._intersectsWith(this.instance.containerCache)&&e.contains(o.instance.element[0],this.instance.element[0])&&(s=!1),s})),s?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=e(i).clone().removeAttr("id").appendTo(this.instance.element).data("ui-sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return n.helper[0]},t.target=this.instance.currentItem[0],this.instance._mouseCapture(t,!0),this.instance._mouseStart(t,!0,!0),this.instance.offset.click.top=r.offset.click.top,this.instance.offset.click.left=r.offset.click.left,this.instance.offset.parent.left-=r.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=r.offset.parent.top-this.instance.offset.parent.top,r._trigger("toSortable",t),r.dropped=this.instance.element,r.currentItem=r.element,this.instance.fromOutside=r),this.instance.currentItem&&this.instance._mouseDrag(t)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",t,this.instance._uiHash(this.instance)),this.instance._mouseStop(t,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),r._trigger("fromSortable",t),r.dropped=!1)})}}),e.ui.plugin.add("draggable","cursor",{start:function(){var t=e("body"),n=e(this).data("ui-draggable").options;t.css("cursor")&&(n._cursor=t.css("cursor")),t.css("cursor",n.cursor)},stop:function(){var t=e(this).data("ui-draggable").options;t._cursor&&e("body").css("cursor",t._cursor)}}),e.ui.plugin.add("draggable","opacity",{start:function(t,n){var r=e(n.helper),i=e(this).data("ui-draggable").options;r.css("opacity")&&(i._opacity=r.css("opacity")),r.css("opacity",i.opacity)},stop:function(t,n){var r=e(this).data("ui-draggable").options;r._opacity&&e(n.helper).css("opacity",r._opacity)}}),e.ui.plugin.add("draggable","scroll",{start:function(){var t=e(this).data("ui-draggable");t.scrollParent[0]!==document&&t.scrollParent[0].tagName!=="HTML"&&(t.overflowOffset=t.scrollParent.offset())},drag:function(t){var n=e(this).data("ui-draggable"),r=n.options,i=!1;if(n.scrollParent[0]!==document&&n.scrollParent[0].tagName!=="HTML"){if(!r.axis||r.axis!=="x")n.overflowOffset.top+n.scrollParent[0].offsetHeight-t.pageY=0;c--){u=p.snapElements[c].left,a=u+p.snapElements[c].width,f=p.snapElements[c].top,l=f+p.snapElements[c].height;if(!(u-vt&&e=h&&a<=p||f>=h&&f<=p||ap)&&(o>=l&&o<=c||u>=l&&u<=c||oc);default:return!1}},e.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(t,n){var r,i,s=e.ui.ddmanager.droppables[t.options.scope]||[],o=n?n.type:null,u=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();e:for(r=0;r
").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.data("ui-resizable")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=u.handles||(e(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se");if(this.handles.constructor===String){this.handles==="all"&&(this.handles="n,e,s,w,se,sw,ne,nw"),t=this.handles.split(","),this.handles={};for(n=0;n
"),i.css({zIndex:u.zIndex}),"se"===r&&i.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[r]=".ui-resizable-"+r,this.element.append(i)}this._renderAxis=function(t){var n,r,i,s;t=t||this.element;for(n in this.handles){this.handles[n].constructor===String&&(this.handles[n]=e(this.handles[n],this.element).show()),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)&&(r=e(this.handles[n],this.element),s=/sw|ne|nw|se|n|s/.test(n)?r.outerHeight():r.outerWidth(),i=["padding",/ne|nw|n/.test(n)?"Top":/se|sw|s/.test(n)?"Bottom":/^e$/.test(n)?"Right":"Left"].join(""),t.css(i,s),this._proportionallyResize());if(!e(this.handles[n]).length)continue}},this._renderAxis(this.element),this._handles=e(".ui-resizable-handle",this.element).disableSelection(),this._handles.mouseover(function(){o.resizing||(this.className&&(i=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),o.axis=i&&i[1]?i[1]:"se")}),u.autoHide&&(this._handles.hide(),e(this.element).addClass("ui-resizable-autohide").mouseenter(function(){if(u.disabled)return;e(this).removeClass("ui-resizable-autohide"),o._handles.show()}).mouseleave(function(){if(u.disabled)return;o.resizing||(e(this).addClass("ui-resizable-autohide"),o._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();var t,n=function(t){e(t).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(n(this.element),t=this.element,this.originalElement.css({position:t.css("position"),width:t.outerWidth(),height:t.outerHeight(),top:t.css("top"),left:t.css("left")}).insertAfter(t),t.remove()),this.originalElement.css("resize",this.originalResizeStyle),n(this.originalElement),this},_mouseCapture:function(t){var n,r,i=!1;for(n in this.handles){r=e(this.handles[n])[0];if(r===t.target||e.contains(r,t.target))i=!0}return!this.options.disabled&&i},_mouseStart:function(t){var r,i,s,o=this.options,u=this.element.position(),a=this.element;return this.resizing=!0,/absolute/.test(a.css("position"))?a.css({position:"absolute",top:a.css("top"),left:a.css("left")}):a.is(".ui-draggable")&&a.css({position:"absolute",top:u.top,left:u.left}),this._renderProxy(),r=n(this.helper.css("left")),i=n(this.helper.css("top")),o.containment&&(r+=e(o.containment).scrollLeft()||0,i+=e(o.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:r,top:i},this.size=this._helper?{width:a.outerWidth(),height:a.outerHeight()}:{width:a.width(),height:a.height()},this.originalSize=this._helper?{width:a.outerWidth(),height:a.outerHeight()}:{width:a.width(),height:a.height()},this.originalPosition={left:r,top:i},this.sizeDiff={width:a.outerWidth()-a.width(),height:a.outerHeight()-a.height()},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio=typeof o.aspectRatio=="number"?o.aspectRatio:this.originalSize.width/this.originalSize.height||1,s=e(".ui-resizable-"+this.axis).css("cursor"),e("body").css("cursor",s==="auto"?this.axis+"-resize":s),a.addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var n,r=this.helper,i={},s=this.originalMousePosition,o=this.axis,u=this.position.top,a=this.position.left,f=this.size.width,l=this.size.height,c=t.pageX-s.left||0,h=t.pageY-s.top||0,p=this._change[o];if(!p)return!1;n=p.apply(this,[t,c,h]),this._updateVirtualBoundaries(t.shiftKey);if(this._aspectRatio||t.shiftKey)n=this._updateRatio(n,t);return n=this._respectSize(n,t),this._updateCache(n),this._propagate("resize",t),this.position.top!==u&&(i.top=this.position.top+"px"),this.position.left!==a&&(i.left=this.position.left+"px"),this.size.width!==f&&(i.width=this.size.width+"px"),this.size.height!==l&&(i.height=this.size.height+"px"),r.css(i),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),e.isEmptyObject(i)||this._trigger("resize",t,this.ui()),!1},_mouseStop:function(t){this.resizing=!1;var n,r,i,s,o,u,a,f=this.options,l=this;return this._helper&&(n=this._proportionallyResizeElements,r=n.length&&/textarea/i.test(n[0].nodeName),i=r&&e.ui.hasScroll(n[0],"left")?0:l.sizeDiff.height,s=r?0:l.sizeDiff.width,o={width:l.helper.width()-s,height:l.helper.height()-i},u=parseInt(l.element.css("left"),10)+(l.position.left-l.originalPosition.left)||null,a=parseInt(l.element.css("top"),10)+(l.position.top-l.originalPosition.top)||null,f.animate||this.element.css(e.extend(o,{top:a,left:u})),l.helper.height(l.size.height),l.helper.width(l.size.width),this._helper&&!f.animate&&this._proportionallyResize()),e("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updateVirtualBoundaries:function(e){var t,n,i,s,o,u=this.options;o={minWidth:r(u.minWidth)?u.minWidth:0,maxWidth:r(u.maxWidth)?u.maxWidth:Infinity,minHeight:r(u.minHeight)?u.minHeight:0,maxHeight:r(u.maxHeight)?u.maxHeight:Infinity};if(this._aspectRatio||e)t=o.minHeight*this.aspectRatio,i=o.minWidth/this.aspectRatio,n=o.maxHeight*this.aspectRatio,s=o.maxWidth/this.aspectRatio,t>o.minWidth&&(o.minWidth=t),i>o.minHeight&&(o.minHeight=i),ne.width,u=r(e.height)&&t.minHeight&&t.minHeight>e.height,a=this.originalPosition.left+this.originalSize.width,f=this.position.top+this.size.height,l=/sw|nw|w/.test(n),c=/nw|ne|n/.test(n);return o&&(e.width=t.minWidth),u&&(e.height=t.minHeight),i&&(e.width=t.maxWidth),s&&(e.height=t.maxHeight),o&&l&&(e.left=a-t.minWidth),i&&l&&(e.left=a-t.maxWidth),u&&c&&(e.top=f-t.minHeight),s&&c&&(e.top=f-t.maxHeight),!e.width&&!e.height&&!e.left&&e.top?e.top=null:!e.width&&!e.height&&!e.top&&e.left&&(e.left=null),e},_proportionallyResize:function(){if(!this._proportionallyResizeElements.length)return;var e,t,n,r,i,s=this.helper||this.element;for(e=0;e"),this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++n.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(e,t){return{width:this.originalSize.width+t}},w:function(e,t){var n=this.originalSize,r=this.originalPosition;return{left:r.left+t,width:n.width-t}},n:function(e,t,n){var r=this.originalSize,i=this.originalPosition;return{top:i.top+n,height:r.height-n}},s:function(e,t,n){return{height:this.originalSize.height+n}},se:function(t,n,r){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,n,r]))},sw:function(t,n,r){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,n,r]))},ne:function(t,n,r){return e.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,n,r]))},nw:function(t,n,r){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,n,r]))}},_propagate:function(t,n){e.ui.plugin.call(this,t,[n,this.ui()]),t!=="resize"&&this._trigger(t,n,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),e.ui.plugin.add("resizable","animate",{stop:function(t){var n=e(this).data("ui-resizable"),r=n.options,i=n._proportionallyResizeElements,s=i.length&&/textarea/i.test(i[0].nodeName),o=s&&e.ui.hasScroll(i[0],"left")?0:n.sizeDiff.height,u=s?0:n.sizeDiff.width,a={width:n.size.width-u,height:n.size.height-o},f=parseInt(n.element.css("left"),10)+(n.position.left-n.originalPosition.left)||null,l=parseInt(n.element.css("top"),10)+(n.position.top-n.originalPosition.top)||null;n.element.animate(e.extend(a,l&&f?{top:l,left:f}:{}),{duration:r.animateDuration,easing:r.animateEasing,step:function(){var r={width:parseInt(n.element.css("width"),10),height:parseInt(n.element.css("height"),10),top:parseInt(n.element.css("top"),10),left:parseInt(n.element.css("left"),10)};i&&i.length&&e(i[0]).css({width:r.width,height:r.height}),n._updateCache(r),n._propagate("resize",t)}})}}),e.ui.plugin.add("resizable","containment",{start:function(){var t,r,i,s,o,u,a,f=e(this).data("ui-resizable"),l=f.options,c=f.element,h=l.containment,p=h instanceof e?h.get(0):/parent/.test(h)?c.parent().get(0):h;if(!p)return;f.containerElement=e(p),/document/.test(h)||h===document?(f.containerOffset={left:0,top:0},f.containerPosition={left:0,top:0},f.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNode.scrollHeight}):(t=e(p),r=[],e(["Top","Right","Left","Bottom"]).each(function(e,i){r[e]=n(t.css("padding"+i))}),f.containerOffset=t.offset(),f.containerPosition=t.position(),f.containerSize={height:t.innerHeight()-r[3],width:t.innerWidth()-r[1]},i=f.containerOffset,s=f.containerSize.height,o=f.containerSize.width,u=e.ui.hasScroll(p,"left")?p.scrollWidth:o,a=e.ui.hasScroll(p)?p.scrollHeight:s,f.parentData={element:p,left:i.left,top:i.top,width:u,height:a})},resize:function(t){var n,r,i,s,o=e(this).data("ui-resizable"),u=o.options,a=o.containerOffset,f=o.position,l=o._aspectRatio||t.shiftKey,c={top:0,left:0},h=o.containerElement;h[0]!==document&&/static/.test(h.css("position"))&&(c=a),f.left<(o._helper?a.left:0)&&(o.size.width=o.size.width+(o._helper?o.position.left-a.left:o.position.left-c.left),l&&(o.size.height=o.size.width/o.aspectRatio),o.position.left=u.helper?a.left:0),f.top<(o._helper?a.top:0)&&(o.size.height=o.size.height+(o._helper?o.position.top-a.top:o.position.top),l&&(o.size.width=o.size.height*o.aspectRatio),o.position.top=o._helper?a.top:0),o.offset.left=o.parentData.left+o.position.left,o.offset.top=o.parentData.top+o.position.top,n=Math.abs((o._helper?o.offset.left-c.left:o.offset.left-c.left)+o.sizeDiff.width),r=Math.abs((o._helper?o.offset.top-c.top:o.offset.top-a.top)+o.sizeDiff.height),i=o.containerElement.get(0)===o.element.parent().get(0),s=/relative|absolute/.test(o.containerElement.css("position")),i&&s&&(n-=o.parentData.left),n+o.size.width>=o.parentData.width&&(o.size.width=o.parentData.width-n,l&&(o.size.height=o.size.width/o.aspectRatio)),r+o.size.height>=o.parentData.height&&(o.size.height=o.parentData.height-r,l&&(o.size.width=o.size.height*o.aspectRatio))},stop:function(){var t=e(this).data("ui-resizable"),n=t.options,r=t.containerOffset,i=t.containerPosition,s=t.containerElement,o=e(t.helper),u=o.offset(),a=o.outerWidth()-t.sizeDiff.width,f=o.outerHeight()-t.sizeDiff.height;t._helper&&!n.animate&&/relative/.test(s.css("position"))&&e(this).css({left:u.left-i.left-r.left,width:a,height:f}),t._helper&&!n.animate&&/static/.test(s.css("position"))&&e(this).css({left:u.left-i.left-r.left,width:a,height:f})}}),e.ui.plugin.add("resizable","alsoResize",{start:function(){var t=e(this).data("ui-resizable"),n=t.options,r=function(t){e(t).each(function(){var t=e(this);t.data("ui-resizable-alsoresize",{width:parseInt(t.width(),10),height:parseInt(t.height(),10),left:parseInt(t.css("left"),10),top:parseInt(t.css("top"),10)})})};typeof n.alsoResize=="object"&&!n.alsoResize.parentNode?n.alsoResize.length?(n.alsoResize=n.alsoResize[0],r(n.alsoResize)):e.each(n.alsoResize,function(e){r(e)}):r(n.alsoResize)},resize:function(t,n){var r=e(this).data("ui-resizable"),i=r.options,s=r.originalSize,o=r.originalPosition,u={height:r.size.height-s.height||0,width:r.size.width-s.width||0,top:r.position.top-o.top||0,left:r.position.left-o.left||0},a=function(t,r){e(t).each(function(){var t=e(this),i=e(this).data("ui-resizable-alsoresize"),s={},o=r&&r.length?r:t.parents(n.originalElement[0]).length?["width","height"]:["width","height","top","left"];e.each(o,function(e,t){var n=(i[t]||0)+(u[t]||0);n&&n>=0&&(s[t]=n||null)}),t.css(s)})};typeof i.alsoResize=="object"&&!i.alsoResize.nodeType?e.each(i.alsoResize,function(e,t){a(e,t)}):a(i.alsoResize)},stop:function(){e(this).removeData("resizable-alsoresize")}}),e.ui.plugin.add("resizable","ghost",{start:function(){var t=e(this).data("ui-resizable"),n=t.options,r=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:r.height,width:r.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof n.ghost=="string"?n.ghost:""),t.ghost.appendTo(t.helper)},resize:function(){var t=e(this).data("ui-resizable");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=e(this).data("ui-resizable");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),e.ui.plugin.add("resizable","grid",{resize:function(){var t=e(this).data("ui-resizable"),n=t.options,r=t.size,i=t.originalSize,s=t.originalPosition,o=t.axis,u=typeof n.grid=="number"?[n.grid,n.grid]:n.grid,a=u[0]||1,f=u[1]||1,l=Math.round((r.width-i.width)/a)*a,c=Math.round((r.height-i.height)/f)*f,h=i.width+l,p=i.height+c,d=n.maxWidth&&n.maxWidthh,g=n.minHeight&&n.minHeight>p;n.grid=u,m&&(h+=a),g&&(p+=f),d&&(h-=a),v&&(p-=f),/^(se|s|e)$/.test(o)?(t.size.width=h,t.size.height=p):/^(ne)$/.test(o)?(t.size.width=h,t.size.height=p,t.position.top=s.top-c):/^(sw)$/.test(o)?(t.size.width=h,t.size.height=p,t.position.left=s.left-l):(t.size.width=h,t.size.height=p,t.position.top=s.top-c,t.position.left=s.left-l)}})}(jQuery),function(e,t){e.widget("ui.selectable",e.ui.mouse,{version:"1.10.1",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var t,n=this;this.element.addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){t=e(n.options.filter,n.element[0]),t.addClass("ui-selectee"),t.each(function(){var t=e(this),n=t.offset();e.data(this,"selectable-item",{element:this,$element:t,left:n.left,top:n.top,right:n.left+t.outerWidth(),bottom:n.top+t.outerHeight(),startselected:!1,selected:t.hasClass("ui-selected"),selecting:t.hasClass("ui-selecting"),unselecting:t.hasClass("ui-unselecting")})})},this.refresh(),this.selectees=t.addClass("ui-selectee"),this._mouseInit(),this.helper=e("
")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled"),this._mouseDestroy()},_mouseStart:function(t){var n=this,r=this.options;this.opos=[t.pageX,t.pageY];if(this.options.disabled)return;this.selectees=e(r.filter,this.element[0]),this._trigger("start",t),e(r.appendTo).append(this.helper),this.helper.css({left:t.pageX,top:t.pageY,width:0,height:0}),r.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var r=e.data(this,"selectable-item");r.startselected=!0,!t.metaKey&&!t.ctrlKey&&(r.$element.removeClass("ui-selected"),r.selected=!1,r.$element.addClass("ui-unselecting"),r.unselecting=!0,n._trigger("unselecting",t,{unselecting:r.element}))}),e(t.target).parents().addBack().each(function(){var r,i=e.data(this,"selectable-item");if(i)return r=!t.metaKey&&!t.ctrlKey||!i.$element.hasClass("ui-selected"),i.$element.removeClass(r?"ui-unselecting":"ui-selected").addClass(r?"ui-selecting":"ui-unselecting"),i.unselecting=!r,i.selecting=r,i.selected=r,r?n._trigger("selecting",t,{selecting:i.element}):n._trigger("unselecting",t,{unselecting:i.element}),!1})},_mouseDrag:function(t){this.dragged=!0;if(this.options.disabled)return;var n,r=this,i=this.options,s=this.opos[0],o=this.opos[1],u=t.pageX,a=t.pageY;return s>u&&(n=u,u=s,s=n),o>a&&(n=a,a=o,o=n),this.helper.css({left:s,top:o,width:u-s,height:a-o}),this.selectees.each(function(){var n=e.data(this,"selectable-item"),f=!1;if(!n||n.element===r.element[0])return;i.tolerance==="touch"?f=!(n.left>u||n.righta||n.bottoms&&n.righto&&n.bottomt&&e *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_create:function(){var e=this.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=this.items.length?e.axis==="x"||/left|right/.test(this.items[0].item.css("float"))||/inline|table-cell/.test(this.items[0].item.css("display")):!1,this.offset=this.element.offset(),this._mouseInit(),this.ready=!0},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled"),this._mouseDestroy();for(var e=this.items.length-1;e>=0;e--)this.items[e].item.removeData(this.widgetName+"-item");return this},_setOption:function(t,n){t==="disabled"?(this.options[t]=n,this.widget().toggleClass("ui-sortable-disabled",!!n)):e.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(t,n){var r=null,i=!1,s=this;if(this.reverting)return!1;if(this.options.disabled||this.options.type==="static")return!1;this._refreshItems(t),e(t.target).parents().each(function(){if(e.data(this,s.widgetName+"-item")===s)return r=e(this),!1}),e.data(t.target,s.widgetName+"-item")===s&&(r=e(t.target));if(!r)return!1;if(this.options.handle&&!n){e(this.options.handle,r).find("*").addBack().each(function(){this===t.target&&(i=!0)});if(!i)return!1}return this.currentItem=r,this._removeCurrentsFromItems(),!0},_mouseStart:function(t,n,r){var i,s=this.options;this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},e.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,s.cursorAt&&this._adjustOffsetFromHelper(s.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),s.containment&&this._setContainment(),s.cursor&&(e("body").css("cursor")&&(this._storedCursor=e("body").css("cursor")),e("body").css("cursor",s.cursor)),s.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",s.opacity)),s.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",s.zIndex)),this.scrollParent[0]!==document&&this.scrollParent[0].tagName!=="HTML"&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions();if(!r)for(i=this.containers.length-1;i>=0;i--)this.containers[i]._trigger("activate",t,this._uiHash(this));return e.ui.ddmanager&&(e.ui.ddmanager.current=this),e.ui.ddmanager&&!s.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(t),!0},_mouseDrag:function(t){var n,r,i,s,o=this.options,u=!1;this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==document&&this.scrollParent[0].tagName!=="HTML"?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY=0;n--){r=this.items[n],i=r.item[0],s=this._intersectsWithPointer(r);if(!s)continue;if(r.instance!==this.currentContainer)continue;if(i!==this.currentItem[0]&&this.placeholder[s===1?"next":"prev"]()[0]!==i&&!e.contains(this.placeholder[0],i)&&(this.options.type==="semi-dynamic"?!e.contains(this.element[0],i):!0)){this.direction=s===1?"down":"up";if(this.options.tolerance!=="pointer"&&!this._intersectsWithSides(r))break;this._rearrange(t,r),this._trigger("change",t,this._uiHash());break}}return this._contactContainers(t),e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,n){if(!t)return;e.ui.ddmanager&&!this.options.dropBehaviour&&e.ui.ddmanager.drop(this,t);if(this.options.revert){var r=this,i=this.placeholder.offset();this.reverting=!0,e(this.helper).animate({left:i.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollLeft),top:i.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){r._clear(t)})}else this._clear(t,n);return!1},cancel:function(){if(this.dragging){this._mouseUp({target:null}),this.options.helper==="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var t=this.containers.length-1;t>=0;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.options.helper!=="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),e.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?e(this.domPosition.prev).after(this.currentItem):e(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(t){var n=this._getItemsAsjQuery(t&&t.connected),r=[];return t=t||{},e(n).each(function(){var n=(e(t.item||this).attr(t.attribute||"id")||"").match(t.expression||/(.+)[\-=_](.+)/);n&&r.push((t.key||n[1]+"[]")+"="+(t.key&&t.expression?n[1]:n[2]))}),!r.length&&t.key&&r.push(t.key+"="),r.join("&")},toArray:function(t){var n=this._getItemsAsjQuery(t&&t.connected),r=[];return t=t||{},n.each(function(){r.push(e(t.item||this).attr(t.attribute||"id")||"")}),r},_intersectsWith:function(e){var t=this.positionAbs.left,n=t+this.helperProportions.width,r=this.positionAbs.top,i=r+this.helperProportions.height,s=e.left,o=s+e.width,u=e.top,a=u+e.height,f=this.offset.click.top,l=this.offset.click.left,c=r+f>u&&r+fs&&t+le[this.floating?"width":"height"]?c:s0?"down":"up")},_getDragHorizontalDirection:function(){var e=this.positionAbs.left-this.lastPositionAbs.left;return e!==0&&(e>0?"right":"left")},refresh:function(e){return this._refreshItems(e),this.refreshPositions(),this},_connectWith:function(){var e=this.options;return e.connectWith.constructor===String?[e.connectWith]:e.connectWith},_getItemsAsjQuery:function(t){var n,r,i,s,o=[],u=[],a=this._connectWith();if(a&&t)for(n=a.length-1;n>=0;n--){i=e(a[n]);for(r=i.length-1;r>=0;r--)s=e.data(i[r],this.widgetFullName),s&&s!==this&&!s.options.disabled&&u.push([e.isFunction(s.options.items)?s.options.items.call(s.element):e(s.options.items,s.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),s])}u.push([e.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):e(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(n=u.length-1;n>=0;n--)u[n][0].each(function(){o.push(this)});return e(o)},_removeCurrentsFromItems:function(){var t=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=e.grep(this.items,function(e){for(var n=0;n=0;n--){i=e(h[n]);for(r=i.length-1;r>=0;r--)s=e.data(i[r],this.widgetFullName),s&&s!==this&&!s.options.disabled&&(c.push([e.isFunction(s.options.items)?s.options.items.call(s.element[0],t,{item:this.currentItem}):e(s.options.items,s.element),s]),this.containers.push(s))}for(n=c.length-1;n>=0;n--){o=c[n][1],u=c[n][0];for(r=0,f=u.length;r=0;n--){r=this.items[n];if(r.instance!==this.currentContainer&&this.currentContainer&&r.item[0]!==this.currentItem[0])continue;i=this.options.toleranceElement?e(this.options.toleranceElement,r.item):r.item,t||(r.width=i.outerWidth(),r.height=i.outerHeight()),s=i.offset(),r.left=s.left,r.top=s.top}if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(n=this.containers.length-1;n>=0;n--)s=this.containers[n].element.offset(),this.containers[n].containerCache.left=s.left,this.containers[n].containerCache.top=s.top,this.containers[n].containerCache.width=this.containers[n].element.outerWidth(),this.containers[n].containerCache.height=this.containers[n].element.outerHeight();return this},_createPlaceholder:function(t){t=t||this;var n,r=t.options;if(!r.placeholder||r.placeholder.constructor===String)n=r.placeholder,r.placeholder={element:function(){var r=e(document.createElement(t.currentItem[0].nodeName)).addClass(n||t.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];return n||(r.style.visibility="hidden"),r},update:function(e,i){if(n&&!r.forcePlaceholderSize)return;i.height()||i.height(t.currentItem.innerHeight()-parseInt(t.currentItem.css("paddingTop")||0,10)-parseInt(t.currentItem.css("paddingBottom")||0,10)),i.width()||i.width(t.currentItem.innerWidth()-parseInt(t.currentItem.css("paddingLeft")||0,10)-parseInt(t.currentItem.css("paddingRight")||0,10))}};t.placeholder=e(r.placeholder.element.call(t.element,t.currentItem)),t.currentItem.after(t.placeholder),r.placeholder.update(t,t.placeholder)},_contactContainers:function(t){var n,r,i,s,o,u,a,f,l,c=null,h=null;for(n=this.containers.length-1;n>=0;n--){if(e.contains(this.currentItem[0],this.containers[n].element[0]))continue;if(this._intersectsWith(this.containers[n].containerCache)){if(c&&e.contains(this.containers[n].element[0],c.element[0]))continue;c=this.containers[n],h=n}else this.containers[n].containerCache.over&&(this.containers[n]._trigger("out",t,this._uiHash(this)),this.containers[n].containerCache.over=0)}if(!c)return;if(this.containers.length===1)this.containers[h]._trigger("over",t,this._uiHash(this)),this.containers[h].containerCache.over=1;else{i=1e4,s=null,o=this.containers[h].floating?"left":"top",u=this.containers[h].floating?"width":"height",a=this.positionAbs[o]+this.offset.click[o];for(r=this.items.length-1;r>=0;r--){if(!e.contains(this.containers[h].element[0],this.items[r].item[0]))continue;if(this.items[r].item[0]===this.currentItem[0])continue;f=this.items[r].item.offset()[o],l=!1,Math.abs(f-a)>Math.abs(f+this.items[r][u]-a)&&(l=!0,f+=this.items[r][u]),Math.abs(f-a)this.containment[2]&&(s=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(o=this.containment[3]+this.offset.click.top)),i.grid&&(n=this.originalPageY+Math.round((o-this.originalPageY)/i.grid[1])*i.grid[1],o=this.containment?n-this.offset.click.top>=this.containment[1]&&n-this.offset.click.top<=this.containment[3]?n:n-this.offset.click.top>=this.containment[1]?n-i.grid[1]:n+i.grid[1]:n,r=this.originalPageX+Math.round((s-this.originalPageX)/i.grid[0])*i.grid[0],s=this.containment?r-this.offset.click.left>=this.containment[0]&&r-this.offset.click.left<=this.containment[2]?r:r-this.offset.click.left>=this.containment[0]?r-i.grid[0]:r+i.grid[0]:r)),{top:o-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition==="fixed"?-this.scrollParent.scrollTop():a?0:u.scrollTop()),left:s-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition==="fixed"?-this.scrollParent.scrollLeft():a?0:u.scrollLeft())}},_rearrange:function(e,t,n,r){n?n[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],this.direction==="down"?t.item[0]:t.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var i=this.counter;this._delay(function(){i===this.counter&&this.refreshPositions(!r)})},_clear:function(t,n){this.reverting=!1;var r,i=[];!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null;if(this.helper[0]===this.currentItem[0]){for(r in this._storedCSS)if(this._storedCSS[r]==="auto"||this._storedCSS[r]==="static")this._storedCSS[r]="";this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();this.fromOutside&&!n&&i.push(function(e){this._trigger("receive",e,this._uiHash(this.fromOutside))}),(this.fromOutside||this.domPosition.prev!==this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!==this.currentItem.parent()[0])&&!n&&i.push(function(e){this._trigger("update",e,this._uiHash())}),this!==this.currentContainer&&(n||(i.push(function(e){this._trigger("remove",e,this._uiHash())}),i.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),i.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer))));for(r=this.containers.length-1;r>=0;r--)n||i.push(function(e){return function(t){e._trigger("deactivate",t,this._uiHash(this))}}.call(this,this.containers[r])),this.containers[r].containerCache.over&&(i.push(function(e){return function(t){e._trigger("out",t,this._uiHash(this))}}.call(this,this.containers[r])),this.containers[r].containerCache.over=0);this._storedCursor&&e("body").css("cursor",this._storedCursor),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex",this._storedZIndex==="auto"?"":this._storedZIndex),this.dragging=!1;if(this.cancelHelperRemoval){if(!n){this._trigger("beforeStop",t,this._uiHash());for(r=0;re?0:r.max")[0],l,c=e.each;f.style.cssText="background-color:rgba(1,1,1,.5)",a.rgba=f.style.backgroundColor.indexOf("rgba")>-1,c(o,function(e,t){t.cache="_"+e,t.props.alpha={idx:3,type:"percent",def:1}}),s.fn=e.extend(s.prototype,{parse:function(n,r,i,u){if(n===t)return this._rgba=[null,null,null,null],this;if(n.jquery||n.nodeType)n=e(n).css(r),r=t;var a=this,f=e.type(n),d=this._rgba=[];r!==t&&(n=[n,r,i,u],f="array");if(f==="string")return this.parse(p(n)||l._default);if(f==="array")return c(o.rgba.props,function(e,t){d[t.idx]=h(n[t.idx],t)}),this;if(f==="object")return n instanceof s?c(o,function(e,t){n[t.cache]&&(a[t.cache]=n[t.cache].slice())}):c(o,function(t,r){var i=r.cache;c(r.props,function(e,t){if(!a[i]&&r.to){if(e==="alpha"||n[e]==null)return;a[i]=r.to(a._rgba)}a[i][t.idx]=h(n[e],t,!0)}),a[i]&&e.inArray(null,a[i].slice(0,3))<0&&(a[i][3]=1,r.from&&(a._rgba=r.from(a[i])))}),this},is:function(e){var t=s(e),n=!0,r=this;return c(o,function(e,i){var s,o=t[i.cache];return o&&(s=r[i.cache]||i.to&&i.to(r._rgba)||[],c(i.props,function(e,t){if(o[t.idx]!=null)return n=o[t.idx]===s[t.idx],n})),n}),n},_space:function(){var e=[],t=this;return c(o,function(n,r){t[r.cache]&&e.push(n)}),e.pop()},transition:function(e,t){var n=s(e),r=n._space(),i=o[r],a=this.alpha()===0?s("transparent"):this,f=a[i.cache]||i.to(a._rgba),l=f.slice();return n=n[i.cache],c(i.props,function(e,r){var i=r.idx,s=f[i],o=n[i],a=u[r.type]||{};if(o===null)return;s===null?l[i]=o:(a.mod&&(o-s>a.mod/2?s+=a.mod:s-o>a.mod/2&&(s-=a.mod)),l[i]=h((o-s)*t+s,r))}),this[r](l)},blend:function(t){if(this._rgba[3]===1)return this;var n=this._rgba.slice(),r=n.pop(),i=s(t)._rgba;return s(e.map(n,function(e,t){return(1-r)*i[t]+r*e}))},toRgbaString:function(){var t="rgba(",n=e.map(this._rgba,function(e,t){return e==null?t>2?1:0:e});return n[3]===1&&(n.pop(),t="rgb("),t+n.join()+")"},toHslaString:function(){var t="hsla(",n=e.map(this.hsla(),function(e,t){return e==null&&(e=t>2?1:0),t&&t<3&&(e=Math.round(e*100)+"%"),e});return n[3]===1&&(n.pop(),t="hsl("),t+n.join()+")"},toHexString:function(t){var n=this._rgba.slice(),r=n.pop();return t&&n.push(~~(r*255)),"#"+e.map(n,function(e){return e=(e||0).toString(16),e.length===1?"0"+e:e}).join("")},toString:function(){return this._rgba[3]===0?"transparent":this.toRgbaString()}}),s.fn.parse.prototype=s.fn,o.hsla.to=function(e){if(e[0]==null||e[1]==null||e[2]==null)return[null,null,null,e[3]];var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=e[3],s=Math.max(t,n,r),o=Math.min(t,n,r),u=s-o,a=s+o,f=a*.5,l,c;return o===s?l=0:t===s?l=60*(n-r)/u+360:n===s?l=60*(r-t)/u+120:l=60*(t-n)/u+240,u===0?c=0:f<=.5?c=u/a:c=u/(2-a),[Math.round(l)%360,c,f,i==null?1:i]},o.hsla.from=function(e){if(e[0]==null||e[1]==null||e[2]==null)return[null,null,null,e[3]];var t=e[0]/360,n=e[1],r=e[2],i=e[3],s=r<=.5?r*(1+n):r+n-r*n,o=2*r-s;return[Math.round(d(o,s,t+1/3)*255),Math.round(d(o,s,t)*255),Math.round(d(o,s,t-1/3)*255),i]},c(o,function(n,i){var o=i.props,u=i.cache,a=i.to,f=i.from;s.fn[n]=function(n){a&&!this[u]&&(this[u]=a(this._rgba));if(n===t)return this[u].slice();var r,i=e.type(n),l=i==="array"||i==="object"?n:arguments,p=this[u].slice();return c(o,function(e,t){var n=l[i==="object"?e:t.idx];n==null&&(n=p[t.idx]),p[t.idx]=h(n,t)}),f?(r=s(f(p)),r[u]=p,r):s(p)},c(o,function(t,i){if(s.fn[t])return;s.fn[t]=function(s){var o=e.type(s),u=t==="alpha"?this._hsla?"hsla":"rgba":n,a=this[u](),f=a[i.idx],l;return o==="undefined"?f:(o==="function"&&(s=s.call(this,f),o=e.type(s)),s==null&&i.empty?this:(o==="string"&&(l=r.exec(s),l&&(s=f+parseFloat(l[2])*(l[1]==="+"?1:-1))),a[i.idx]=s,this[u](a)))}})}),s.hook=function(t){var n=t.split(" ");c(n,function(t,n){e.cssHooks[n]={set:function(t,r){var i,o,u="";if(r!=="transparent"&&(e.type(r)!=="string"||(i=p(r)))){r=s(i||r);if(!a.rgba&&r._rgba[3]!==1){o=n==="backgroundColor"?t.parentNode:t;while((u===""||u==="transparent")&&o&&o.style)try{u=e.css(o,"backgroundColor"),o=o.parentNode}catch(f){}r=r.blend(u&&u!=="transparent"?u:"_default")}r=r.toRgbaString()}try{t.style[n]=r}catch(f){}}},e.fx.step[n]=function(t){t.colorInit||(t.start=s(t.elem,n),t.end=s(t.end),t.colorInit=!0),e.cssHooks[n].set(t.elem,t.start.transition(t.end,t.pos))}})},s.hook(n),e.cssHooks.borderColor={expand:function(e){var t={};return c(["Top","Right","Bottom","Left"],function(n,r){t["border"+r+"Color"]=e}),t}},l=e.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(jQuery),function(){function i(t){var n,r,i=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,s={};if(i&&i.length&&i[0]&&i[i[0]]){r=i.length;while(r--)n=i[r],typeof i[n]=="string"&&(s[e.camelCase(n)]=i[n])}else for(n in i)typeof i[n]=="string"&&(s[n]=i[n]);return s}function s(t,n){var i={},s,o;for(s in n)o=n[s],t[s]!==o&&!r[s]&&(e.fx.step[s]||!isNaN(parseFloat(o)))&&(i[s]=o);return i}var n=["add","remove","toggle"],r={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};e.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,n){e.fx.step[n]=function(e){if(e.end!=="none"&&!e.setAttr||e.pos===1&&!e.setAttr)jQuery.style(e.elem,n,e.end),e.setAttr=!0}}),e.fn.addBack||(e.fn.addBack=function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}),e.effects.animateClass=function(t,r,o,u){var a=e.speed(r,o,u);return this.queue(function(){var r=e(this),o=r.attr("class")||"",u,f=a.children?r.find("*").addBack():r;f=f.map(function(){var t=e(this);return{el:t,start:i(this)}}),u=function(){e.each(n,function(e,n){t[n]&&r[n+"Class"](t[n])})},u(),f=f.map(function(){return this.end=i(this.el[0]),this.diff=s(this.start,this.end),this}),r.attr("class",o),f=f.map(function(){var t=this,n=e.Deferred(),r=e.extend({},a,{queue:!1,complete:function(){n.resolve(t)}});return this.el.animate(this.diff,r),n.promise()}),e.when.apply(e,f.get()).done(function(){u(),e.each(arguments,function(){var t=this.el;e.each(this.diff,function(e){t.css(e,"")})}),a.complete.call(r[0])})})},e.fn.extend({_addClass:e.fn.addClass,addClass:function(t,n,r,i){return n?e.effects.animateClass.call(this,{add:t},n,r,i):this._addClass(t)},_removeClass:e.fn.removeClass,removeClass:function(t,n,r,i){return arguments.length>1?e.effects.animateClass.call(this,{remove:t},n,r,i):this._removeClass.apply(this,arguments)},_toggleClass:e.fn.toggleClass,toggleClass:function(n,r,i,s,o){return typeof r=="boolean"||r===t?i?e.effects.animateClass.call(this,r?{add:n}:{remove:n},i,s,o):this._toggleClass(n,r):e.effects.animateClass.call(this,{toggle:n},r,i,s)},switchClass:function(t,n,r,i,s){return e.effects.animateClass.call(this,{add:n,remove:t},r,i,s)}})}(),function(){function r(t,n,r,i){e.isPlainObject(t)&&(n=t,t=t.effect),t={effect:t},n==null&&(n={}),e.isFunction(n)&&(i=n,r=null,n={});if(typeof n=="number"||e.fx.speeds[n])i=r,r=n,n={};return e.isFunction(r)&&(i=r,r=null),n&&e.extend(t,n),r=r||n.duration,t.duration=e.fx.off?0:typeof r=="number"?r:r in e.fx.speeds?e.fx.speeds[r]:e.fx.speeds._default,t.complete=i||n.complete,t}function i(t){return!t||typeof t=="number"||e.fx.speeds[t]?!0:typeof t=="string"&&!e.effects.effect[t]}e.extend(e.effects,{version:"1.10.1",save:function(e,t){for(var r=0;r").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),i={width:t.width(),height:t.height()},s=document.activeElement;try{s.id}catch(o){s=document.body}return t.wrap(r),(t[0]===s||e.contains(t[0],s))&&e(s).focus(),r=t.parent(),t.css("position")==="static"?(r.css({position:"relative"}),t.css({position:"relative"})):(e.extend(n,{position:t.css("position"),zIndex:t.css("z-index")}),e.each(["top","left","bottom","right"],function(e,r){n[r]=t.css(r),isNaN(parseInt(n[r],10))&&(n[r]="auto")}),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),t.css(i),r.css(n).show()},removeWrapper:function(t){var n=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===n||e.contains(t[0],n))&&e(n).focus()),t},setTransition:function(t,n,r,i){return i=i||{},e.each(n,function(e,n){var s=t.cssUnit(n);s[0]>0&&(i[n]=s[0]*r+s[1])}),i}}),e.fn.extend({effect:function(){function o(n){function u(){e.isFunction(i)&&i.call(r[0]),e.isFunction(n)&&n()}var r=e(this),i=t.complete,o=t.mode;(r.is(":hidden")?o==="hide":o==="show")?u():s.call(r[0],t,u)}var t=r.apply(this,arguments),n=t.mode,i=t.queue,s=e.effects.effect[t.effect];return e.fx.off||!s?n?this[n](t.duration,t.complete):this.each(function(){t.complete&&t.complete.call(this)}):i===!1?this.each(o):this.queue(i||"fx",o)},_show:e.fn.show,show:function(e){if(i(e))return this._show.apply(this,arguments);var t=r.apply(this,arguments);return t.mode="show",this.effect.call(this,t)},_hide:e.fn.hide,hide:function(e){if(i(e))return this._hide.apply(this,arguments);var t=r.apply(this,arguments);return t.mode="hide",this.effect.call(this,t)},__toggle:e.fn.toggle,toggle:function(t){if(i(t)||typeof t=="boolean"||e.isFunction(t))return this.__toggle.apply(this,arguments);var n=r.apply(this,arguments);return n.mode="toggle",this.effect.call(this,n)},cssUnit:function(t){var n=this.css(t),r=[];return e.each(["em","px","%","pt"],function(e,t){n.indexOf(t)>0&&(r=[parseFloat(n),t])}),r}})}(),function(){var t={};e.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,n){t[n]=function(t){return Math.pow(t,e+2)}}),e.extend(t,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:function(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return e===0||e===1?e:-Math.pow(2,8*(e-1))*Math.sin(((e-1)*80-7.5)*Math.PI/15)},Back:function(e){return e*e*(3*e-2)},Bounce:function(e){var t,n=4;while(e<((t=Math.pow(2,--n))-1)/11);return 1/Math.pow(4,3-n)-7.5625*Math.pow((t*3-2)/22-e,2)}}),e.each(t,function(t,n){e.easing["easeIn"+t]=n,e.easing["easeOut"+t]=function(e){return 1-n(1-e)},e.easing["easeInOut"+t]=function(e){return e<.5?n(e*2)/2:1-n(e*-2+2)/2}})}()}(jQuery),function(e,t){var n=0,r={},i={};r.height=r.paddingTop=r.paddingBottom=r.borderTopWidth=r.borderBottomWidth="hide",i.height=i.paddingTop=i.paddingBottom=i.borderTopWidth=i.borderBottomWidth="show",e.widget("ui.accordion",{version:"1.10.1",options:{active:0,animate:{},collapsible:!1,event:"click",header:"> li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},_create:function(){var t=this.options;this.prevShow=this.prevHide=e(),this.element.addClass("ui-accordion ui-widget ui-helper-reset").attr("role","tablist"),!t.collapsible&&(t.active===!1||t.active==null)&&(t.active=0),this._processPanels(),t.active<0&&(t.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():e(),content:this.active.length?this.active.next():e()}},_createIcons:function(){var t=this.options.icons;t&&(e("").addClass("ui-accordion-header-icon ui-icon "+t.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(t.header).addClass(t.activeHeader),this.headers.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var e;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")}),this._destroyIcons(),e=this.headers.next().css("display","").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")}),this.options.heightStyle!=="content"&&e.css("height","")},_setOption:function(e,t){if(e==="active"){this._activate(t);return}e==="event"&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(t)),this._super(e,t),e==="collapsible"&&!t&&this.options.active===!1&&this._activate(0),e==="icons"&&(this._destroyIcons(),t&&this._createIcons()),e==="disabled"&&this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!t)},_keydown:function(t){if(t.altKey||t.ctrlKey)return;var n=e.ui.keyCode,r=this.headers.length,i=this.headers.index(t.target),s=!1;switch(t.keyCode){case n.RIGHT:case n.DOWN:s=this.headers[(i+1)%r];break;case n.LEFT:case n.UP:s=this.headers[(i-1+r)%r];break;case n.SPACE:case n.ENTER:this._eventHandler(t);break;case n.HOME:s=this.headers[0];break;case n.END:s=this.headers[r-1]}s&&(e(t.target).attr("tabIndex",-1),e(s).attr("tabIndex",0),s.focus(),t.preventDefault())},_panelKeyDown:function(t){t.keyCode===e.ui.keyCode.UP&&t.ctrlKey&&e(t.currentTarget).prev().focus()},refresh:function(){var t=this.options;this._processPanels();if(t.active===!1&&t.collapsible===!0||!this.headers.length)t.active=!1,this.active=e();t.active===!1?this._activate(0):this.active.length&&!e.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(t.active=!1,this.active=e()):this._activate(Math.max(0,t.active-1)):t.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){this.headers=this.element.find(this.options.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all"),this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").filter(":not(.ui-accordion-content-active)").hide()},_refresh:function(){var t,r=this.options,i=r.heightStyle,s=this.element.parent(),o=this.accordionId="ui-accordion-"+(this.element.attr("id")||++n);this.active=this._findActive(r.active).addClass("ui-accordion-header-active ui-state-active ui-corner-top").removeClass("ui-corner-all"),this.active.next().addClass("ui-accordion-content-active").show(),this.headers.attr("role","tab").each(function(t){var n=e(this),r=n.attr("id"),i=n.next(),s=i.attr("id");r||(r=o+"-header-"+t,n.attr("id",r)),s||(s=o+"-panel-"+t,i.attr("id",s)),n.attr("aria-controls",s),i.attr("aria-labelledby",r)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false",tabIndex:-1}).next().attr({"aria-expanded":"false","aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true",tabIndex:0}).next().attr({"aria-expanded":"true","aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(r.event),i==="fill"?(t=s.height(),this.element.siblings(":visible").each(function(){var n=e(this),r=n.css("position");if(r==="absolute"||r==="fixed")return;t-=n.outerHeight(!0)}),this.headers.each(function(){t-=e(this).outerHeight(!0)}),this.headers.next().each(function(){e(this).height(Math.max(0,t-e(this).innerHeight()+e(this).height()))}).css("overflow","auto")):i==="auto"&&(t=0,this.headers.next().each(function(){t=Math.max(t,e(this).css("height","").height())}).height(t))},_activate:function(t){var n=this._findActive(t)[0];if(n===this.active[0])return;n=n||this.active[0],this._eventHandler({target:n,currentTarget:n,preventDefault:e.noop})},_findActive:function(t){return typeof t=="number"?this.headers.eq(t):e()},_setupEvents:function(t){var n={keydown:"_keydown"};t&&e.each(t.split(" "),function(e,t){n[t]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,n),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(t){var n=this.options,r=this.active,i=e(t.currentTarget),s=i[0]===r[0],o=s&&n.collapsible,u=o?e():i.next(),a=r.next(),f={oldHeader:r,oldPanel:a,newHeader:o?e():i,newPanel:u};t.preventDefault();if(s&&!n.collapsible||this._trigger("beforeActivate",t,f)===!1)return;n.active=o?!1:this.headers.index(i),this.active=s?e():i,this._toggle(f),r.removeClass("ui-accordion-header-active ui-state-active"),n.icons&&r.children(".ui-accordion-header-icon").removeClass(n.icons.activeHeader).addClass(n.icons.header),s||(i.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),n.icons&&i.children(".ui-accordion-header-icon").removeClass(n.icons.header).addClass(n.icons.activeHeader),i.next().addClass("ui-accordion-content-active"))},_toggle:function(t){var n=t.newPanel,r=this.prevShow.length?this.prevShow:t.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=n,this.prevHide=r,this.options.animate?this._animate(n,r,t):(r.hide(),n.show(),this._toggleComplete(t)),r.attr({"aria-expanded":"false","aria-hidden":"true"}),r.prev().attr("aria-selected","false"),n.length&&r.length?r.prev().attr("tabIndex",-1):n.length&&this.headers.filter(function(){return e(this).attr("tabIndex")===0}).attr("tabIndex",-1),n.attr({"aria-expanded":"true","aria-hidden":"false"}).prev().attr({"aria-selected":"true",tabIndex:0})},_animate:function(e,t,n){var s,o,u,a=this,f=0,l=e.length&&(!t.length||e.index()",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},pending:0,_create:function(){var t,n,r,i=this.element[0].nodeName.toLowerCase(),s=i==="textarea",o=i==="input";this.isMultiLine=s?!0:o?!1:this.element.prop("isContentEditable"),this.valueMethod=this.element[s||o?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(i){if(this.element.prop("readOnly")){t=!0,r=!0,n=!0;return}t=!1,r=!1,n=!1;var s=e.ui.keyCode;switch(i.keyCode){case s.PAGE_UP:t=!0,this._move("previousPage",i);break;case s.PAGE_DOWN:t=!0,this._move("nextPage",i);break;case s.UP:t=!0,this._keyEvent("previous",i);break;case s.DOWN:t=!0,this._keyEvent("next",i);break;case s.ENTER:case s.NUMPAD_ENTER:this.menu.active&&(t=!0,i.preventDefault(),this.menu.select(i));break;case s.TAB:this.menu.active&&this.menu.select(i);break;case s.ESCAPE:this.menu.element.is(":visible")&&(this._value(this.term),this.close(i),i.preventDefault());break;default:n=!0,this._searchTimeout(i)}},keypress:function(r){if(t){t=!1,r.preventDefault();return}if(n)return;var i=e.ui.keyCode;switch(r.keyCode){case i.PAGE_UP:this._move("previousPage",r);break;case i.PAGE_DOWN:this._move("nextPage",r);break;case i.UP:this._keyEvent("previous",r);break;case i.DOWN:this._keyEvent("next",r)}},input:function(e){if(r){r=!1,e.preventDefault();return}this._searchTimeout(e)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(e){if(this.cancelBlur){delete this.cancelBlur;return}clearTimeout(this.searching),this.close(e),this._change(e)}}),this._initSource(),this.menu=e("
    ").addClass("ui-autocomplete ui-front").appendTo(this._appendTo()).menu({input:e(),role:null}).hide().data("ui-menu"),this._on(this.menu.element,{mousedown:function(t){t.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur});var n=this.menu.element[0];e(t.target).closest(".ui-menu-item").length||this._delay(function(){var t=this;this.document.one("mousedown",function(r){r.target!==t.element[0]&&r.target!==n&&!e.contains(n,r.target)&&t.close()})})},menufocus:function(t,n){if(this.isNewMenu){this.isNewMenu=!1;if(t.originalEvent&&/^mouse/.test(t.originalEvent.type)){this.menu.blur(),this.document.one("mousemove",function(){e(t.target).trigger(t.originalEvent)});return}}var r=n.item.data("ui-autocomplete-item");!1!==this._trigger("focus",t,{item:r})?t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(r.value):this.liveRegion.text(r.value)},menuselect:function(e,t){var n=t.item.data("ui-autocomplete-item"),r=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.focus(),this.previous=r,this._delay(function(){this.previous=r,this.selectedItem=n})),!1!==this._trigger("select",e,{item:n})&&this._value(n.value),this.term=this._value(),this.close(e),this.selectedItem=n}}),this.liveRegion=e("",{role:"status","aria-live":"polite"}).addClass("ui-helper-hidden-accessible").insertAfter(this.element),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t),e==="source"&&this._initSource(),e==="appendTo"&&this.menu.element.appendTo(this._appendTo()),e==="disabled"&&t&&this.xhr&&this.xhr.abort()},_appendTo:function(){var t=this.options.appendTo;return t&&(t=t.jquery||t.nodeType?e(t):this.document.find(t).eq(0)),t||(t=this.element.closest(".ui-front")),t.length||(t=this.document[0].body),t},_initSource:function(){var t,n,r=this;e.isArray(this.options.source)?(t=this.options.source,this.source=function(n,r){r(e.ui.autocomplete.filter(t,n.term))}):typeof this.options.source=="string"?(n=this.options.source,this.source=function(t,i){r.xhr&&r.xhr.abort(),r.xhr=e.ajax({url:n,data:t,dataType:"json",success:function(e){i(e)},error:function(){i([])}})}):this.source=this.options.source},_searchTimeout:function(e){clearTimeout(this.searching),this.searching=this._delay(function(){this.term!==this._value()&&(this.selectedItem=null,this.search(null,e))},this.options.delay)},search:function(e,t){e=e!=null?e:this._value(),this.term=this._value();if(e.length").append(e("").text(n.label)).appendTo(t)},_move:function(e,t){if(!this.menu.element.is(":visible")){this.search(null,t);return}if(this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)){this._value(this.term),this.menu.blur();return}this.menu[e](t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){if(!this.isMultiLine||this.menu.element.is(":visible"))this._move(e,t),t.preventDefault()}}),e.extend(e.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,n){var r=new RegExp(e.ui.autocomplete.escapeRegex(n),"i");return e.grep(t,function(e){return r.test(e.label||e.value||e)})}}),e.widget("ui.autocomplete",e.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(e>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var t;this._superApply(arguments);if(this.options.disabled||this.cancelSearch)return;e&&e.length?t=this.options.messages.results(e.length):t=this.options.messages.noResults,this.liveRegion.text(t)}})}(jQuery),function(e,t){var n,r,i,s,o="ui-button ui-widget ui-state-default ui-corner-all",u="ui-state-hover ui-state-active ",a="ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",f=function(){var t=e(this).find(":ui-button");setTimeout(function(){t.button("refresh")},1)},l=function(t){var n=t.name,r=t.form,i=e([]);return n&&(n=n.replace(/'/g,"\\'"),r?i=e(r).find("[name='"+n+"']"):i=e("[name='"+n+"']",t.ownerDocument).filter(function(){return!this.form})),i};e.widget("ui.button",{version:"1.10.1",defaultElement:"").addClass(this._triggerClass).html(s?e("").attr({src:s,alt:i,title:i}):i)),t[u?"before":"after"](n.trigger),n.trigger.click(function(){return e.datepicker._datepickerShowing&&e.datepicker._lastInput===t[0]?e.datepicker._hideDatepicker():e.datepicker._datepickerShowing&&e.datepicker._lastInput!==t[0]?(e.datepicker._hideDatepicker(),e.datepicker._showDatepicker(t[0])):e.datepicker._showDatepicker(t[0]),!1})},_autoSize:function(e){if(this._get(e,"autoSize")&&!e.inline){var t,n,r,i,s=new Date(2009,11,20),o=this._get(e,"dateFormat");o.match(/[DM]/)&&(t=function(e){n=0,r=0;for(i=0;in&&(n=e[i].length,r=i);return r},s.setMonth(t(this._get(e,o.match(/MM/)?"monthNames":"monthNamesShort"))),s.setDate(t(this._get(e,o.match(/DD/)?"dayNames":"dayNamesShort"))+20-s.getDay())),e.input.attr("size",this._formatDate(e,s).length)}},_inlineDatepicker:function(t,r){var i=e(t);if(i.hasClass(this.markerClassName))return;i.addClass(this.markerClassName).append(r.dpDiv),e.data(t,n,r),this._setDate(r,this._getDefaultDate(r),!0),this._updateDatepicker(r),this._updateAlternate(r),r.settings.disabled&&this._disableDatepicker(t),r.dpDiv.css("display","block")},_dialogDatepicker:function(t,r,i,s,o){var a,f,l,c,h,p=this._dialogInst;return p||(this.uuid+=1,a="dp"+this.uuid,this._dialogInput=e(""),this._dialogInput.keydown(this._doKeyDown),e("body").append(this._dialogInput),p=this._dialogInst=this._newInst(this._dialogInput,!1),p.settings={},e.data(this._dialogInput[0],n,p)),u(p.settings,s||{}),r=r&&r.constructor===Date?this._formatDate(p,r):r,this._dialogInput.val(r),this._pos=o?o.length?o:[o.pageX,o.pageY]:null,this._pos||(f=document.documentElement.clientWidth,l=document.documentElement.clientHeight,c=document.documentElement.scrollLeft||document.body.scrollLeft,h=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[f/2-100+c,l/2-150+h]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),p.settings.onSelect=i,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),e.blockUI&&e.blockUI(this.dpDiv),e.data(this._dialogInput[0],n,p),this},_destroyDatepicker:function(t){var r,i=e(t),s=e.data(t,n);if(!i.hasClass(this.markerClassName))return;r=t.nodeName.toLowerCase(),e.removeData(t,n),r==="input"?(s.append.remove(),s.trigger.remove(),i.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):(r==="div"||r==="span")&&i.removeClass(this.markerClassName).empty()},_enableDatepicker:function(t){var r,i,s=e(t),o=e.data(t,n);if(!s.hasClass(this.markerClassName))return;r=t.nodeName.toLowerCase();if(r==="input")t.disabled=!1,o.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""});else if(r==="div"||r==="span")i=s.children("."+this._inlineClass),i.children().removeClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1);this._disabledInputs=e.map(this._disabledInputs,function(e){return e===t?null:e})},_disableDatepicker:function(t){var r,i,s=e(t),o=e.data(t,n);if(!s.hasClass(this.markerClassName))return;r=t.nodeName.toLowerCase();if(r==="input")t.disabled=!0,o.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"});else if(r==="div"||r==="span")i=s.children("."+this._inlineClass),i.children().addClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0);this._disabledInputs=e.map(this._disabledInputs,function(e){return e===t?null:e}),this._disabledInputs[this._disabledInputs.length]=t},_isDisabledDatepicker:function(e){if(!e)return!1;for(var t=0;t-1},_doKeyUp:function(t){var n,r=e.datepicker._getInst(t.target);if(r.input.val()!==r.lastVal)try{n=e.datepicker.parseDate(e.datepicker._get(r,"dateFormat"),r.input?r.input.val():null,e.datepicker._getFormatConfig(r)),n&&(e.datepicker._setDateFromField(r),e.datepicker._updateAlternate(r),e.datepicker._updateDatepicker(r))}catch(i){}return!0},_showDatepicker:function(t){t=t.target||t,t.nodeName.toLowerCase()!=="input"&&(t=e("input",t.parentNode)[0]);if(e.datepicker._isDisabledDatepicker(t)||e.datepicker._lastInput===t)return;var n,r,i,s,o,a,f;n=e.datepicker._getInst(t),e.datepicker._curInst&&e.datepicker._curInst!==n&&(e.datepicker._curInst.dpDiv.stop(!0,!0),n&&e.datepicker._datepickerShowing&&e.datepicker._hideDatepicker(e.datepicker._curInst.input[0])),r=e.datepicker._get(n,"beforeShow"),i=r?r.apply(t,[t,n]):{};if(i===!1)return;u(n.settings,i),n.lastVal=null,e.datepicker._lastInput=t,e.datepicker._setDateFromField(n),e.datepicker._inDialog&&(t.value=""),e.datepicker._pos||(e.datepicker._pos=e.datepicker._findPos(t),e.datepicker._pos[1]+=t.offsetHeight),s=!1,e(t).parents().each(function(){return s|=e(this).css("position")==="fixed",!s}),o={left:e.datepicker._pos[0],top:e.datepicker._pos[1]},e.datepicker._pos=null,n.dpDiv.empty(),n.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),e.datepicker._updateDatepicker(n),o=e.datepicker._checkOffset(n,o,s),n.dpDiv.css({position:e.datepicker._inDialog&&e.blockUI?"static":s?"fixed":"absolute",display:"none",left:o.left+"px",top:o.top+"px"}),n.inline||(a=e.datepicker._get(n,"showAnim"),f=e.datepicker._get(n,"duration"),n.dpDiv.zIndex(e(t).zIndex()+1),e.datepicker._datepickerShowing=!0,e.effects&&e.effects.effect[a]?n.dpDiv.show(a,e.datepicker._get(n,"showOptions"),f):n.dpDiv[a||"show"](a?f:null),n.input.is(":visible")&&!n.input.is(":disabled")&&n.input.focus(),e.datepicker._curInst=n)},_updateDatepicker:function(t){this.maxRows=4,i=t,t.dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t),t.dpDiv.find("."+this._dayOverClass+" a").mouseover();var n,r=this._getNumberOfMonths(t),s=r[1],o=17;t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),s>1&&t.dpDiv.addClass("ui-datepicker-multi-"+s).css("width",o*s+"em"),t.dpDiv[(r[0]!==1||r[1]!==1?"add":"remove")+"Class"]("ui-datepicker-multi"),t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),t===e.datepicker._curInst&&e.datepicker._datepickerShowing&&t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&t.input[0]!==document.activeElement&&t.input.focus(),t.yearshtml&&(n=t.yearshtml,setTimeout(function(){n===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year:first").replaceWith(t.yearshtml),n=t.yearshtml=null},0))},_getBorders:function(e){var t=function(e){return{thin:1,medium:2,thick:3}[e]||e};return[parseFloat(t(e.css("border-left-width"))),parseFloat(t(e.css("border-top-width")))]},_checkOffset:function(t,n,r){var i=t.dpDiv.outerWidth(),s=t.dpDiv.outerHeight(),o=t.input?t.input.outerWidth():0,u=t.input?t.input.outerHeight():0,a=document.documentElement.clientWidth+(r?0:e(document).scrollLeft()),f=document.documentElement.clientHeight+(r?0:e(document).scrollTop());return n.left-=this._get(t,"isRTL")?i-o:0,n.left-=r&&n.left===t.input.offset().left?e(document).scrollLeft():0,n.top-=r&&n.top===t.input.offset().top+u?e(document).scrollTop():0,n.left-=Math.min(n.left,n.left+i>a&&a>i?Math.abs(n.left+i-a):0),n.top-=Math.min(n.top,n.top+s>f&&f>s?Math.abs(s+u):0),n},_findPos:function(t){var n,r=this._getInst(t),i=this._get(r,"isRTL");while(t&&(t.type==="hidden"||t.nodeType!==1||e.expr.filters.hidden(t)))t=t[i?"previousSibling":"nextSibling"];return n=e(t).offset(),[n.left,n.top]},_hideDatepicker:function(t){var r,i,s,o,u=this._curInst;if(!u||t&&u!==e.data(t,n))return;this._datepickerShowing&&(r=this._get(u,"showAnim"),i=this._get(u,"duration"),s=function(){e.datepicker._tidyDialog(u)},e.effects&&(e.effects.effect[r]||e.effects[r])?u.dpDiv.hide(r,e.datepicker._get(u,"showOptions"),i,s):u.dpDiv[r==="slideDown"?"slideUp":r==="fadeIn"?"fadeOut":"hide"](r?i:null,s),r||s(),this._datepickerShowing=!1,o=this._get(u,"onClose"),o&&o.apply(u.input?u.input[0]:null,[u.input?u.input.val():"",u]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),e.blockUI&&(e.unblockUI(),e("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(t){if(!e.datepicker._curInst)return;var n=e(t.target),r=e.datepicker._getInst(n[0]);(n[0].id!==e.datepicker._mainDivId&&n.parents("#"+e.datepicker._mainDivId).length===0&&!n.hasClass(e.datepicker.markerClassName)&&!n.closest("."+e.datepicker._triggerClass).length&&e.datepicker._datepickerShowing&&(!e.datepicker._inDialog||!e.blockUI)||n.hasClass(e.datepicker.markerClassName)&&e.datepicker._curInst!==r)&&e.datepicker._hideDatepicker()},_adjustDate:function(t,n,r){var i=e(t),s=this._getInst(i[0]);if(this._isDisabledDatepicker(i[0]))return;this._adjustInstDate(s,n+(r==="M"?this._get(s,"showCurrentAtPos"):0),r),this._updateDatepicker(s)},_gotoToday:function(t){var n,r=e(t),i=this._getInst(r[0]);this._get(i,"gotoCurrent")&&i.currentDay?(i.selectedDay=i.currentDay,i.drawMonth=i.selectedMonth=i.currentMonth,i.drawYear=i.selectedYear=i.currentYear):(n=new Date,i.selectedDay=n.getDate(),i.drawMonth=i.selectedMonth=n.getMonth(),i.drawYear=i.selectedYear=n.getFullYear()),this._notifyChange(i),this._adjustDate(r)},_selectMonthYear:function(t,n,r){var i=e(t),s=this._getInst(i[0]);s["selected"+(r==="M"?"Month":"Year")]=s["draw"+(r==="M"?"Month":"Year")]=parseInt(n.options[n.selectedIndex].value,10),this._notifyChange(s),this._adjustDate(i)},_selectDay:function(t,n,r,i){var s,o=e(t);if(e(i).hasClass(this._unselectableClass)||this._isDisabledDatepicker(o[0]))return;s=this._getInst(o[0]),s.selectedDay=s.currentDay=e("a",i).html(),s.selectedMonth=s.currentMonth=n,s.selectedYear=s.currentYear=r,this._selectDate(t,this._formatDate(s,s.currentDay,s.currentMonth,s.currentYear))},_clearDate:function(t){var n=e(t);this._selectDate(n,"")},_selectDate:function(t,n){var r,i=e(t),s=this._getInst(i[0]);n=n!=null?n:this._formatDate(s),s.input&&s.input.val(n),this._updateAlternate(s),r=this._get(s,"onSelect"),r?r.apply(s.input?s.input[0]:null,[n,s]):s.input&&s.input.trigger("change"),s.inline?this._updateDatepicker(s):(this._hideDatepicker(),this._lastInput=s.input[0],typeof s.input[0]!="object"&&s.input.focus(),this._lastInput=null)},_updateAlternate:function(t){var n,r,i,s=this._get(t,"altField");s&&(n=this._get(t,"altFormat")||this._get(t,"dateFormat"),r=this._getDate(t),i=this.formatDate(n,r,this._getFormatConfig(t)),e(s).each(function(){e(this).val(i)}))},noWeekends:function(e){var t=e.getDay();return[t>0&&t<6,""]},iso8601Week:function(e){var t,n=new Date(e.getTime());return n.setDate(n.getDate()+4-(n.getDay()||7)),t=n.getTime(),n.setMonth(0),n.setDate(1),Math.floor(Math.round((t-n)/864e5)/7)+1},parseDate:function(t,n,r){if(t==null||n==null)throw"Invalid arguments";n=typeof n=="object"?n.toString():n+"";if(n==="")return null;var i,s,o,u=0,a=(r?r.shortYearCutoff:null)||this._defaults.shortYearCutoff,f=typeof a!="string"?a:(new Date).getFullYear()%100+parseInt(a,10),l=(r?r.dayNamesShort:null)||this._defaults.dayNamesShort,c=(r?r.dayNames:null)||this._defaults.dayNames,h=(r?r.monthNamesShort:null)||this._defaults.monthNamesShort,p=(r?r.monthNames:null)||this._defaults.monthNames,d=-1,v=-1,m=-1,g=-1,y=!1,b,w=function(e){var n=i+1-1){v=1,m=g;do{s=this._getDaysInMonth(d,v-1);if(m<=s)break;v++,m-=s}while(!0)}b=this._daylightSavingAdjust(new Date(d,v-1,m));if(b.getFullYear()!==d||b.getMonth()+1!==v||b.getDate()!==m)throw"Invalid date";return b},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*24*60*60*1e7,formatDate:function(e,t,n){if(!t)return"";var r,i=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,s=(n?n.dayNames:null)||this._defaults.dayNames,o=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,u=(n?n.monthNames:null)||this._defaults.monthNames,a=function(t){var n=r+112?e.getHours()+2:0),e):null},_setDate:function(e,t,n){var r=!t,i=e.selectedMonth,s=e.selectedYear,o=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=o.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=o.getMonth(),e.drawYear=e.selectedYear=e.currentYear=o.getFullYear(),(i!==e.selectedMonth||s!==e.selectedYear)&&!n&&this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(r?"":this._formatDate(e))},_getDate:function(e){var t=!e.currentYear||e.input&&e.input.val()===""?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return t},_attachHandlers:function(t){var n=this._get(t,"stepMonths"),i="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){window["DP_jQuery_"+r].datepicker._adjustDate(i,-n,"M")},next:function(){window["DP_jQuery_"+r].datepicker._adjustDate(i,+n,"M")},hide:function(){window["DP_jQuery_"+r].datepicker._hideDatepicker()},today:function(){window["DP_jQuery_"+r].datepicker._gotoToday(i)},selectDay:function(){return window["DP_jQuery_"+r].datepicker._selectDay(i,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return window["DP_jQuery_"+r].datepicker._selectMonthYear(i,this,"M"),!1},selectYear:function(){return window["DP_jQuery_"+r].datepicker._selectMonthYear(i,this,"Y"),!1}};e(this).bind(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(e){var t,n,r,i,s,o,u,a,f,l,c,h,p,d,v,m,g,y,b,w,E,S,x,T,N,C,k,L,A,O,M,_,D,P,H,B,j,F,I,q=new Date,R=this._daylightSavingAdjust(new Date(q.getFullYear(),q.getMonth(),q.getDate())),U=this._get(e,"isRTL"),z=this._get(e,"showButtonPanel"),W=this._get(e,"hideIfNoPrevNext"),X=this._get(e,"navigationAsDateFormat"),V=this._getNumberOfMonths(e),$=this._get(e,"showCurrentAtPos"),J=this._get(e,"stepMonths"),K=V[0]!==1||V[1]!==1,Q=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),G=this._getMinMaxDate(e,"min"),Y=this._getMinMaxDate(e,"max"),Z=e.drawMonth-$,et=e.drawYear;Z<0&&(Z+=12,et--);if(Y){t=this._daylightSavingAdjust(new Date(Y.getFullYear(),Y.getMonth()-V[0]*V[1]+1,Y.getDate())),t=G&&tt)Z--,Z<0&&(Z=11,et--)}e.drawMonth=Z,e.drawYear=et,n=this._get(e,"prevText"),n=X?this.formatDate(n,this._daylightSavingAdjust(new Date(et,Z-J,1)),this._getFormatConfig(e)):n,r=this._canAdjustMonth(e,-1,et,Z)?""+n+"":W?"":""+n+"",i=this._get(e,"nextText"),i=X?this.formatDate(i,this._daylightSavingAdjust(new Date(et,Z+J,1)),this._getFormatConfig(e)):i,s=this._canAdjustMonth(e,1,et,Z)?""+i+"":W?"":""+i+"",o=this._get(e,"currentText"),u=this._get(e,"gotoCurrent")&&e.currentDay?Q:R,o=X?this.formatDate(o,u,this._getFormatConfig(e)):o,a=e.inline?"":"",f=z?"
    "+(U?a:"")+(this._isInRange(e,u)?"":"")+(U?"":a)+"
    ":"",l=parseInt(this._get(e,"firstDay"),10),l=isNaN(l)?0:l,c=this._get(e,"showWeek"),h=this._get(e,"dayNames"),p=this._get(e,"dayNamesMin"),d=this._get(e,"monthNames"),v=this._get(e,"monthNamesShort"),m=this._get(e,"beforeShowDay"),g=this._get(e,"showOtherMonths"),y=this._get(e,"selectOtherMonths"),b=this._getDefaultDate(e),w="",E;for(S=0;S1)switch(T){case 0:k+=" ui-datepicker-group-first",C=" ui-corner-"+(U?"right":"left");break;case V[1]-1:k+=" ui-datepicker-group-last",C=" ui-corner-"+(U?"left":"right");break;default:k+=" ui-datepicker-group-middle",C=""}k+="'>"}k+="
    "+(/all|left/.test(C)&&S===0?U?s:r:"")+(/all|right/.test(C)&&S===0?U?r:s:"")+this._generateMonthYearHeader(e,Z,et,G,Y,S>0||T>0,d,v)+"
    "+"",L=c?"":"";for(E=0;E<7;E++)A=(E+l)%7,L+="=5?" class='ui-datepicker-week-end'":"")+">"+""+p[A]+"";k+=L+"",O=this._getDaysInMonth(et,Z),et===e.selectedYear&&Z===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,O)),M=(this._getFirstDayOfMonth(et,Z)-l+7)%7,_=Math.ceil((M+O)/7),D=K?this.maxRows>_?this.maxRows:_:_,this.maxRows=D,P=this._daylightSavingAdjust(new Date(et,Z,1-M));for(H=0;H",B=c?"":"";for(E=0;E<7;E++)j=m?m.apply(e.input?e.input[0]:null,[P]):[!0,""],F=P.getMonth()!==Z,I=F&&!y||!j[0]||G&&PY,B+="",P.setDate(P.getDate()+1),P=this._daylightSavingAdjust(P);k+=B+""}Z++,Z>11&&(Z=0,et++),k+="
    "+this._get(e,"weekHeader")+"
    "+this._get(e,"calculateWeek")(P)+""+(F&&!g?" ":I?""+P.getDate()+"":""+P.getDate()+"")+"
    "+(K?""+(V[0]>0&&T===V[1]-1?"
    ":""):""),x+=k}w+=x}return w+=f,e._keyEvent=!1,w},_generateMonthYearHeader:function(e,t,n,r,i,s,o,u){var a,f,l,c,h,p,d,v,m=this._get(e,"changeMonth"),g=this._get(e,"changeYear"),y=this._get(e,"showMonthAfterYear"),b="
    ",w="";if(s||!m)w+=""+o[t]+"";else{a=r&&r.getFullYear()===n,f=i&&i.getFullYear()===n,w+=""}y||(b+=w+(s||!m||!g?" ":""));if(!e.yearshtml){e.yearshtml="";if(s||!g)b+=""+n+"";else{c=this._get(e,"yearRange").split(":"),h=(new Date).getFullYear(),p=function(e){var t=e.match(/c[+\-].*/)?n+parseInt(e.substring(1),10):e.match(/[+\-].*/)?h+parseInt(e,10):parseInt(e,10);return isNaN(t)?h:t},d=p(c[0]),v=Math.max(d,p(c[1]||"")),d=r?Math.max(d,r.getFullYear()):d,v=i?Math.min(v,i.getFullYear()):v,e.yearshtml+="",b+=e.yearshtml,e.yearshtml=null}}return b+=this._get(e,"yearSuffix"),y&&(b+=(s||!m||!g?" ":"")+w),b+="
    ",b},_adjustInstDate:function(e,t,n){var r=e.drawYear+(n==="Y"?t:0),i=e.drawMonth+(n==="M"?t:0),s=Math.min(e.selectedDay,this._getDaysInMonth(r,i))+(n==="D"?t:0),o=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(r,i,s)));e.selectedDay=o.getDate(),e.drawMonth=e.selectedMonth=o.getMonth(),e.drawYear=e.selectedYear=o.getFullYear(),(n==="M"||n==="Y")&&this._notifyChange(e)},_restrictMinMax:function(e,t){var n=this._getMinMaxDate(e,"min"),r=this._getMinMaxDate(e,"max"),i=n&&tr?r:i},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){var t=this._get(e,"numberOfMonths");return t==null?[1,1]:typeof t=="number"?[1,t]:t},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return(new Date(e,t,1)).getDay()},_canAdjustMonth:function(e,t,n,r){var i=this._getNumberOfMonths(e),s=this._daylightSavingAdjust(new Date(n,r+(t<0?t:i[0]*i[1]),1));return t<0&&s.setDate(this._getDaysInMonth(s.getFullYear(),s.getMonth())),this._isInRange(e,s)},_isInRange:function(e,t){var n,r,i=this._getMinMaxDate(e,"min"),s=this._getMinMaxDate(e,"max"),o=null,u=null,a=this._get(e,"yearRange");return a&&(n=a.split(":"),r=(new Date).getFullYear(),o=parseInt(n[0],10),u=parseInt(n[1],10),n[0].match(/[+\-].*/)&&(o+=r),n[1].match(/[+\-].*/)&&(u+=r)),(!i||t.getTime()>=i.getTime())&&(!s||t.getTime()<=s.getTime())&&(!o||t.getFullYear()>=o)&&(!u||t.getFullYear()<=u)},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return t=typeof t!="string"?t:(new Date).getFullYear()%100+parseInt(t,10),{shortYearCutoff:t,dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,n,r){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);var i=t?typeof t=="object"?t:this._daylightSavingAdjust(new Date(r,n,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),i,this._getFormatConfig(e))}}),e.fn.datepicker=function(t){if(!this.length)return this;e.datepicker.initialized||(e(document).mousedown(e.datepicker._checkExternalClick),e.datepicker.initialized=!0),e("#"+e.datepicker._mainDivId).length===0&&e("body").append(e.datepicker.dpDiv);var n=Array.prototype.slice.call(arguments,1);return typeof t!="string"||t!=="isDisabled"&&t!=="getDate"&&t!=="widget"?t==="option"&&arguments.length===2&&typeof arguments[1]=="string"?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(n)):this.each(function(){typeof t=="string"?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this].concat(n)):e.datepicker._attachDatepicker(this,t)}):e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(n))},e.datepicker=new s,e.datepicker.initialized=!1,e.datepicker.uuid=(new Date).getTime(),e.datepicker.version="1.10.1",window["DP_jQuery_"+r]=e}(jQuery),function(e,t){var n={buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},r={maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0};e.widget("ui.dialog",{version:"1.10.1",options:{appendTo:"body",autoOpen:!0,buttons:[],closeOnEscape:!0,closeText:"close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(t){var n=e(this).css(t).offset().top;n<0&&e(this).css("top",t.top-n)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),this.options.title=this.options.title||this.originalTitle,this._createWrapper(),this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(this.uiDialog),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&e.fn.draggable&&this._makeDraggable(),this.options.resizable&&e.fn.resizable&&this._makeResizable(),this._isOpen=!1},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var t=this.options.appendTo;return t&&(t.jquery||t.nodeType)?e(t):this.document.find(t||"body").eq(0)},_destroy:function(){var e,t=this.originalPosition;this._destroyOverlay(),this.element.removeUniqueId().removeClass("ui-dialog-content ui-widget-content").css(this.originalCss).detach(),this.uiDialog.stop(!0,!0).remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),e=t.parent.children().eq(t.index),e.length&&e[0]!==this.element[0]?e.before(this.element):t.parent.append(this.element)},widget:function(){return this.uiDialog},disable:e.noop,enable:e.noop,close:function(t){var n=this;if(!this._isOpen||this._trigger("beforeClose",t)===!1)return;this._isOpen=!1,this._destroyOverlay(),this.opener.filter(":focusable").focus().length||e(this.document[0].activeElement).blur(),this._hide(this.uiDialog,this.options.hide,function(){n._trigger("close",t)})},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(e,t){var n=!!this.uiDialog.nextAll(":visible").insertBefore(this.uiDialog).length;return n&&!t&&this._trigger("focus",e),n},open:function(){var t=this;if(this._isOpen){this._moveToTop()&&this._focusTabbable();return}this._isOpen=!0,this.opener=e(this.document[0].activeElement),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this._show(this.uiDialog,this.options.show,function(){t._focusTabbable(),t._trigger("focus")}),this._trigger("open")},_focusTabbable:function(){var e=this.element.find("[autofocus]");e.length||(e=this.element.find(":tabbable")),e.length||(e=this.uiDialogButtonPane.find(":tabbable")),e.length||(e=this.uiDialogTitlebarClose.filter(":tabbable")),e.length||(e=this.uiDialog),e.eq(0).focus()},_keepFocus:function(t){function n(){var t=this.document[0].activeElement,n=this.uiDialog[0]===t||e.contains(this.uiDialog[0],t);n||this._focusTabbable()}t.preventDefault(),n.call(this),this._delay(n)},_createWrapper:function(){this.uiDialog=e("
    ").addClass("ui-dialog ui-widget ui-widget-content ui-corner-all ui-front "+this.options.dialogClass).hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._on(this.uiDialog,{keydown:function(t){if(this.options.closeOnEscape&&!t.isDefaultPrevented()&&t.keyCode&&t.keyCode===e.ui.keyCode.ESCAPE){t.preventDefault(),this.close(t);return}if(t.keyCode!==e.ui.keyCode.TAB)return;var n=this.uiDialog.find(":tabbable"),r=n.filter(":first"),i=n.filter(":last");t.target!==i[0]&&t.target!==this.uiDialog[0]||!!t.shiftKey?(t.target===r[0]||t.target===this.uiDialog[0])&&t.shiftKey&&(i.focus(1),t.preventDefault()):(r.focus(1),t.preventDefault())},mousedown:function(e){this._moveToTop(e)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var t;this.uiDialogTitlebar=e("
    ").addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(this.uiDialog),this._on(this.uiDialogTitlebar,{mousedown:function(t){e(t.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.focus()}}),this.uiDialogTitlebarClose=e("").button({label:this.options.closeText,icons:{primary:"ui-icon-closethick"},text:!1}).addClass("ui-dialog-titlebar-close").appendTo(this.uiDialogTitlebar),this._on(this.uiDialogTitlebarClose,{click:function(e){e.preventDefault(),this.close(e)}}),t=e("").uniqueId().addClass("ui-dialog-title").prependTo(this.uiDialogTitlebar),this._title(t),this.uiDialog.attr({"aria-labelledby":t.attr("id")})},_title:function(e){this.options.title||e.html(" "),e.text(this.options.title)},_createButtonPane:function(){this.uiDialogButtonPane=e("
    ").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),this.uiButtonSet=e("
    ").addClass("ui-dialog-buttonset").appendTo(this.uiDialogButtonPane),this._createButtons()},_createButtons:function(){var t=this,n=this.options.buttons;this.uiDialogButtonPane.remove(),this.uiButtonSet.empty();if(e.isEmptyObject(n)||e.isArray(n)&&!n.length){this.uiDialog.removeClass("ui-dialog-buttons");return}e.each(n,function(n,r){var i,s;r=e.isFunction(r)?{click:r,text:n}:r,r=e.extend({type:"button"},r),i=r.click,r.click=function(){i.apply(t.element[0],arguments)},s={icons:r.icons,text:r.showText},delete r.icons,delete r.showText,e("",r).button(s).appendTo(t.uiButtonSet)}),this.uiDialog.addClass("ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog)},_makeDraggable:function(){function r(e){return{position:e.position,offset:e.offset}}var t=this,n=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(n,i){e(this).addClass("ui-dialog-dragging"),t._blockFrames(),t._trigger("dragStart",n,r(i))},drag:function(e,n){t._trigger("drag",e,r(n))},stop:function(i,s){n.position=[s.position.left-t.document.scrollLeft(),s.position.top-t.document.scrollTop()],e(this).removeClass("ui-dialog-dragging"),t._unblockFrames(),t._trigger("dragStop",i,r(s))}})},_makeResizable:function(){function o(e){return{originalPosition:e.originalPosition,originalSize:e.originalSize,position:e.position,size:e.size}}var t=this,n=this.options,r=n.resizable,i=this.uiDialog.css("position"),s=typeof r=="string"?r:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:n.maxWidth,maxHeight:n.maxHeight,minWidth:n.minWidth,minHeight:this._minHeight(),handles:s,start:function(n,r){e(this).addClass("ui-dialog-resizing"),t._blockFrames(),t._trigger("resizeStart",n,o(r))},resize:function(e,n){t._trigger("resize",e,o(n))},stop:function(r,i){n.height=e(this).height(),n.width=e(this).width(),e(this).removeClass("ui-dialog-resizing"),t._unblockFrames(),t._trigger("resizeStop",r,o(i))}}).css("position",i)},_minHeight:function(){var e=this.options;return e.height==="auto"?e.minHeight:Math.min(e.minHeight,e.height)},_position:function(){var e=this.uiDialog.is(":visible");e||this.uiDialog.show(),this.uiDialog.position(this.options.position),e||this.uiDialog.hide()},_setOptions:function(t){var i=this,s=!1,o={};e.each(t,function(e,t){i._setOption(e,t),e in n&&(s=!0),e in r&&(o[e]=t)}),s&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",o)},_setOption:function(e,t){var n,r,i=this.uiDialog;e==="dialogClass"&&i.removeClass(this.options.dialogClass).addClass(t);if(e==="disabled")return;this._super(e,t),e==="appendTo"&&this.uiDialog.appendTo(this._appendTo()),e==="buttons"&&this._createButtons(),e==="closeText"&&this.uiDialogTitlebarClose.button({label:""+t}),e==="draggable"&&(n=i.is(":data(ui-draggable)"),n&&!t&&i.draggable("destroy"),!n&&t&&this._makeDraggable()),e==="position"&&this._position(),e==="resizable"&&(r=i.is(":data(ui-resizable)"),r&&!t&&i.resizable("destroy"),r&&typeof t=="string"&&i.resizable("option","handles",t),!r&&t!==!1&&this._makeResizable()),e==="title"&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title"))},_size:function(){var e,t,n,r=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),r.minWidth>r.width&&(r.width=r.minWidth),e=this.uiDialog.css({height:"auto",width:r.width}).outerHeight(),t=Math.max(0,r.minHeight-e),n=typeof r.maxHeight=="number"?Math.max(0,r.maxHeight-e):"none",r.height==="auto"?this.element.css({minHeight:t,maxHeight:n,height:"auto"}):this.element.height(Math.max(0,r.height-e)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var t=e(this);return e("
    ").css({position:"absolute",width:t.outerWidth(),height:t.outerHeight()}).appendTo(t.parent()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_createOverlay:function(){if(!this.options.modal)return;e.ui.dialog.overlayInstances||this._delay(function(){e.ui.dialog.overlayInstances&&this.document.bind("focusin.dialog",function(t){!e(t.target).closest(".ui-dialog").length&&!e(t.target).closest(".ui-datepicker").length&&(t.preventDefault(),e(".ui-dialog:visible:last .ui-dialog-content").data("ui-dialog")._focusTabbable())})}),this.overlay=e("
    ").addClass("ui-widget-overlay ui-front").appendTo(this._appendTo()),this._on(this.overlay,{mousedown:"_keepFocus"}),e.ui.dialog.overlayInstances++},_destroyOverlay:function(){if(!this.options.modal)return;this.overlay&&(e.ui.dialog.overlayInstances--,e.ui.dialog.overlayInstances||this.document.unbind("focusin.dialog"),this.overlay.remove(),this.overlay=null)}}),e.ui.dialog.overlayInstances=0,e.uiBackCompat!==!1&&e.widget("ui.dialog",e.ui.dialog,{_position:function(){var t=this.options.position,n=[],r=[0,0],i;if(t){if(typeof t=="string"||typeof t=="object"&&"0"in t)n=t.split?t.split(" "):[t[0],t[1]],n.length===1&&(n[1]=n[0]),e.each(["left","top"],function(e,t){+n[e]===n[e]&&(r[e]=n[e],n[e]=t)}),t={my:n[0]+(r[0]<0?r[0]:"+"+r[0])+" "+n[1]+(r[1]<0?r[1]:"+"+r[1]),at:n.join(" ")};t=e.extend({},e.ui.dialog.prototype.options.position,t)}else t=e.ui.dialog.prototype.options.position;i=this.uiDialog.is(":visible"),i||this.uiDialog.show(),this.uiDialog.position(t),i||this.uiDialog.hide()}})}(jQuery),function(e,t){var n=/up|down|vertical/,r=/up|left|vertical|horizontal/;e.effects.effect.blind=function(t,i){var s=e(this),o=["position","top","bottom","left","right","height","width"],u=e.effects.setMode(s,t.mode||"hide"),a=t.direction||"up",f=n.test(a),l=f?"height":"width",c=f?"top":"left",h=r.test(a),p={},d=u==="show",v,m,g;s.parent().is(".ui-effects-wrapper")?e.effects.save(s.parent(),o):e.effects.save(s,o),s.show(),v=e.effects.createWrapper(s).css({overflow:"hidden"}),m=v[l](),g=parseFloat(v.css(c))||0,p[l]=d?m:0,h||(s.css(f?"bottom":"right",0).css(f?"top":"left","auto").css({position:"absolute"}),p[c]=d?g:m+g),d&&(v.css(l,0),h||v.css(c,g+m)),v.animate(p,{duration:t.duration,easing:t.easing,queue:!1,complete:function(){u==="hide"&&s.hide(),e.effects.restore(s,o),e.effects.removeWrapper(s),i()}})}}(jQuery),function(e,t){e.effects.effect.bounce=function(t,n){var r=e(this),i=["position","top","bottom","left","right","height","width"],s=e.effects.setMode(r,t.mode||"effect"),o=s==="hide",u=s==="show",a=t.direction||"up",f=t.distance,l=t.times||5,c=l*2+(u||o?1:0),h=t.duration/c,p=t.easing,d=a==="up"||a==="down"?"top":"left",v=a==="up"||a==="left",m,g,y,b=r.queue(),w=b.length;(u||o)&&i.push("opacity"),e.effects.save(r,i),r.show(),e.effects.createWrapper(r),f||(f=r[d==="top"?"outerHeight":"outerWidth"]()/3),u&&(y={opacity:1},y[d]=0,r.css("opacity",0).css(d,v?-f*2:f*2).animate(y,h,p)),o&&(f/=Math.pow(2,l-1)),y={},y[d]=0;for(m=0;m1&&b.splice.apply(b,[1,0].concat(b.splice(w,c+1))),r.dequeue()}}(jQuery),function(e,t){e.effects.effect.clip=function(t,n){var r=e(this),i=["position","top","bottom","left","right","height","width"],s=e.effects.setMode(r,t.mode||"hide"),o=s==="show",u=t.direction||"vertical",a=u==="vertical",f=a?"height":"width",l=a?"top":"left",c={},h,p,d;e.effects.save(r,i),r.show(),h=e.effects.createWrapper(r).css({overflow:"hidden"}),p=r[0].tagName==="IMG"?h:r,d=p[f](),o&&(p.css(f,0),p.css(l,d/2)),c[f]=o?d:0,c[l]=o?0:d/2,p.animate(c,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){o||r.hide(),e.effects.restore(r,i),e.effects.removeWrapper(r),n()}})}}(jQuery),function(e,t){e.effects.effect.drop=function(t,n){var r=e(this),i=["position","top","bottom","left","right","opacity","height","width"],s=e.effects.setMode(r,t.mode||"hide"),o=s==="show",u=t.direction||"left",a=u==="up"||u==="down"?"top":"left",f=u==="up"||u==="left"?"pos":"neg",l={opacity:o?1:0},c;e.effects.save(r,i),r.show(),e.effects.createWrapper(r),c=t.distance||r[a==="top"?"outerHeight":"outerWidth"](!0)/2,o&&r.css("opacity",0).css(a,f==="pos"?-c:c),l[a]=(o?f==="pos"?"+=":"-=":f==="pos"?"-=":"+=")+c,r.animate(l,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){s==="hide"&&r.hide(),e.effects.restore(r,i),e.effects.removeWrapper(r),n()}})}}(jQuery),function(e,t){e.effects.effect.explode=function(t,n){function y(){c.push(this),c.length===r*i&&b()}function b(){s.css({visibility:"visible"}),e(c).remove(),u||s.hide(),n()}var r=t.pieces?Math.round(Math.sqrt(t.pieces)):3,i=r,s=e(this),o=e.effects.setMode(s,t.mode||"hide"),u=o==="show",a=s.show().css("visibility","hidden").offset(),f=Math.ceil(s.outerWidth()/i),l=Math.ceil(s.outerHeight()/r),c=[],h,p,d,v,m,g;for(h=0;h
    ").css({position:"absolute",visibility:"visible",left:-p*f,top:-h*l}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:f,height:l,left:d+(u?m*f:0),top:v+(u?g*l:0),opacity:u?0:1}).animate({left:d+(u?0:m*f),top:v+(u?0:g*l),opacity:u?1:0},t.duration||500,t.easing,y)}}}(jQuery),function(e,t){e.effects.effect.fade=function(t,n){var r=e(this),i=e.effects.setMode(r,t.mode||"toggle");r.animate({opacity:i},{queue:!1,duration:t.duration,easing:t.easing,complete:n})}}(jQuery),function(e,t){e.effects.effect.fold=function(t,n){var r=e(this),i=["position","top","bottom","left","right","height","width"],s=e.effects.setMode(r,t.mode||"hide"),o=s==="show",u=s==="hide",a=t.size||15,f=/([0-9]+)%/.exec(a),l=!!t.horizFirst,c=o!==l,h=c?["width","height"]:["height","width"],p=t.duration/2,d,v,m={},g={};e.effects.save(r,i),r.show(),d=e.effects.createWrapper(r).css({overflow:"hidden"}),v=c?[d.width(),d.height()]:[d.height(),d.width()],f&&(a=parseInt(f[1],10)/100*v[u?0:1]),o&&d.css(l?{height:0,width:a}:{height:a,width:0}),m[h[0]]=o?v[0]:a,g[h[1]]=o?v[1]:0,d.animate(m,p,t.easing).animate(g,p,t.easing,function(){u&&r.hide(),e.effects.restore(r,i),e.effects.removeWrapper(r),n()})}}(jQuery),function(e,t){e.effects.effect.highlight=function(t,n){var r=e(this),i=["backgroundImage","backgroundColor","opacity"],s=e.effects.setMode(r,t.mode||"show"),o={backgroundColor:r.css("backgroundColor")};s==="hide"&&(o.opacity=0),e.effects.save(r,i),r.show().css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(o,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){s==="hide"&&r.hide(),e.effects.restore(r,i),n()}})}}(jQuery),function(e,t){e.effects.effect.pulsate=function(t,n){var r=e(this),i=e.effects.setMode(r,t.mode||"show"),s=i==="show",o=i==="hide",u=s||i==="hide",a=(t.times||5)*2+(u?1:0),f=t.duration/a,l=0,c=r.queue(),h=c.length,p;if(s||!r.is(":visible"))r.css("opacity",0).show(),l=1;for(p=1;p1&&c.splice.apply(c,[1,0].concat(c.splice(h,a+1))),r.dequeue()}}(jQuery),function(e,t){e.effects.effect.puff=function(t,n){var r=e(this),i=e.effects.setMode(r,t.mode||"hide"),s=i==="hide",o=parseInt(t.percent,10)||150,u=o/100,a={height:r.height(),width:r.width(),outerHeight:r.outerHeight(),outerWidth:r.outerWidth()};e.extend(t,{effect:"scale",queue:!1,fade:!0,mode:i,complete:n,percent:s?o:100,from:s?a:{height:a.height*u,width:a.width*u,outerHeight:a.outerHeight*u,outerWidth:a.outerWidth*u}}),r.effect(t)},e.effects.effect.scale=function(t,n){var r=e(this),i=e.extend(!0,{},t),s=e.effects.setMode(r,t.mode||"effect"),o=parseInt(t.percent,10)||(parseInt(t.percent,10)===0?0:s==="hide"?0:100),u=t.direction||"both",a=t.origin,f={height:r.height(),width:r.width(),outerHeight:r.outerHeight(),outerWidth:r.outerWidth()},l={y:u!=="horizontal"?o/100:1,x:u!=="vertical"?o/100:1};i.effect="size",i.queue=!1,i.complete=n,s!=="effect"&&(i.origin=a||["middle","center"],i.restore=!0),i.from=t.from||(s==="show"?{height:0,width:0,outerHeight:0,outerWidth:0}:f),i.to={height:f.height*l.y,width:f.width*l.x,outerHeight:f.outerHeight*l.y,outerWidth:f.outerWidth*l.x},i.fade&&(s==="show"&&(i.from.opacity=0,i.to.opacity=1),s==="hide"&&(i.from.opacity=1,i.to.opacity=0)),r.effect(i)},e.effects.effect.size=function(t,n){var r,i,s,o=e(this),u=["position","top","bottom","left","right","width","height","overflow","opacity"],a=["position","top","bottom","left","right","overflow","opacity"],f=["width","height","overflow"],l=["fontSize"],c=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],h=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],p=e.effects.setMode(o,t.mode||"effect"),d=t.restore||p!=="effect",v=t.scale||"both",m=t.origin||["middle","center"],g=o.css("position"),y=d?u:a,b={height:0,width:0,outerHeight:0,outerWidth:0};p==="show"&&o.show(),r={height:o.height(),width:o.width(),outerHeight:o.outerHeight(),outerWidth:o.outerWidth()},t.mode==="toggle"&&p==="show"?(o.from=t.to||b,o.to=t.from||r):(o.from=t.from||(p==="show"?b:r),o.to=t.to||(p==="hide"?b:r)),s={from:{y:o.from.height/r.height,x:o.from.width/r.width},to:{y:o.to.height/r.height,x:o.to.width/r.width}};if(v==="box"||v==="both")s.from.y!==s.to.y&&(y=y.concat(c),o.from=e.effects.setTransition(o,c,s.from.y,o.from),o.to=e.effects.setTransition(o,c,s.to.y,o.to)),s.from.x!==s.to.x&&(y=y.concat(h),o.from=e.effects.setTransition(o,h,s.from.x,o.from),o.to=e.effects.setTransition(o,h,s.to.x,o.to));(v==="content"||v==="both")&&s.from.y!==s.to.y&&(y=y.concat(l).concat(f),o.from=e.effects.setTransition(o,l,s.from.y,o.from),o.to=e.effects.setTransition(o,l,s.to.y,o.to)),e.effects.save(o,y),o.show(),e.effects.createWrapper(o),o.css("overflow","hidden").css(o.from),m&&(i=e.effects.getBaseline(m,r),o.from.top=(r.outerHeight-o.outerHeight())*i.y,o.from.left=(r.outerWidth-o.outerWidth())*i.x,o.to.top=(r.outerHeight-o.to.outerHeight)*i.y,o.to.left=(r.outerWidth-o.to.outerWidth)*i.x),o.css(o.from);if(v==="content"||v==="both")c=c.concat(["marginTop","marginBottom"]).concat(l),h=h.concat(["marginLeft","marginRight"]),f=u.concat(c).concat(h),o.find("*[width]").each(function(){var n=e(this),r={height:n.height(),width:n.width(),outerHeight:n.outerHeight(),outerWidth:n.outerWidth()};d&&e.effects.save(n,f),n.from={height:r.height*s.from.y,width:r.width*s.from.x,outerHeight:r.outerHeight*s.from.y,outerWidth:r.outerWidth*s.from.x},n.to={height:r.height*s.to.y,width:r.width*s.to.x,outerHeight:r.height*s.to.y,outerWidth:r.width*s.to.x},s.from.y!==s.to.y&&(n.from=e.effects.setTransition(n,c,s.from.y,n.from),n.to=e.effects.setTransition(n,c,s.to.y,n.to)),s.from.x!==s.to.x&&(n.from=e.effects.setTransition(n,h,s.from.x,n.from),n.to=e.effects.setTransition(n,h,s.to.x,n.to)),n.css(n.from),n.animate(n.to,t.duration,t.easing,function(){d&&e.effects.restore(n,f)})});o.animate(o.to,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){o.to.opacity===0&&o.css("opacity",o.from.opacity),p==="hide"&&o.hide(),e.effects.restore(o,y),d||(g==="static"?o.css({position:"relative",top:o.to.top,left:o.to.left}):e.each(["top","left"],function(e,t){o.css(t,function(t,n){var r=parseInt(n,10),i=e?o.to.left:o.to.top;return n==="auto"?i+"px":r+i+"px"})})),e.effects.removeWrapper(o),n()}})}}(jQuery),function(e,t){e.effects.effect.shake=function(t,n){var r=e(this),i=["position","top","bottom","left","right","height","width"],s=e.effects.setMode(r,t.mode||"effect"),o=t.direction||"left",u=t.distance||20,a=t.times||3,f=a*2+1,l=Math.round(t.duration/f),c=o==="up"||o==="down"?"top":"left",h=o==="up"||o==="left",p={},d={},v={},m,g=r.queue(),y=g.length;e.effects.save(r,i),r.show(),e.effects.createWrapper(r),p[c]=(h?"-=":"+=")+u,d[c]=(h?"+=":"-=")+u*2,v[c]=(h?"-=":"+=")+u*2,r.animate(p,l,t.easing);for(m=1;m1&&g.splice.apply(g,[1,0].concat(g.splice(y,f+1))),r.dequeue()}}(jQuery),function(e,t){e.effects.effect.slide=function(t,n){var r=e(this),i=["position","top","bottom","left","right","width","height"],s=e.effects.setMode(r,t.mode||"show"),o=s==="show",u=t.direction||"left",a=u==="up"||u==="down"?"top":"left",f=u==="up"||u==="left",l,c={};e.effects.save(r,i),r.show(),l=t.distance||r[a==="top"?"outerHeight":"outerWidth"](!0),e.effects.createWrapper(r).css({overflow:"hidden"}),o&&r.css(a,f?isNaN(l)?"-"+l:-l:l),c[a]=(o?f?"+=":"-=":f?"-=":"+=")+l,r.animate(c,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){s==="hide"&&r.hide(),e.effects.restore(r,i),e.effects.removeWrapper(r),n()}})}}(jQuery),function(e,t){e.effects.effect.transfer=function(t,n){var r=e(this),i=e(t.to),s=i.css("position")==="fixed",o=e("body"),u=s?o.scrollTop():0,a=s?o.scrollLeft():0,f=i.offset(),l={top:f.top-u,left:f.left-a,height:i.innerHeight(),width:i.innerWidth()},c=r.offset(),h=e("
    ").appendTo(document.body).addClass(t.className).css({top:c.top-u,left:c.left-a,height:r.innerHeight(),width:r.innerWidth(),position:s?"fixed":"absolute"}).animate(l,t.duration,t.easing,function(){h.remove(),n()})}}(jQuery),function(e,t){e.widget("ui.menu",{version:"1.10.1",defaultElement:"
      ",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,e.proxy(function(e){this.options.disabled&&e.preventDefault()},this)),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item > a":function(e){e.preventDefault()},"click .ui-state-disabled > a":function(e){e.preventDefault()},"click .ui-menu-item:has(a)":function(t){var n=e(t.target).closest(".ui-menu-item");!this.mouseHandled&&n.not(".ui-state-disabled").length&&(this.mouseHandled=!0,this.select(t),n.has(".ui-menu").length?this.expand(t):this.element.is(":focus")||(this.element.trigger("focus",[!0]),this.active&&this.active.parents(".ui-menu").length===1&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(t){var n=e(t.currentTarget);n.siblings().children(".ui-state-active").removeClass("ui-state-active"),this.focus(t,n)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,t){var n=this.active||this.element.children(".ui-menu-item").eq(0);t||this.focus(e,n)},blur:function(t){this._delay(function(){e.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(t)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){e(t.target).closest(".ui-menu").length||this.collapseAll(t),this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var t=e(this);t.data("ui-menu-submenu-carat")&&t.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(t){function a(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}var n,r,i,s,o,u=!0;switch(t.keyCode){case e.ui.keyCode.PAGE_UP:this.previousPage(t);break;case e.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case e.ui.keyCode.HOME:this._move("first","first",t);break;case e.ui.keyCode.END:this._move("last","last",t);break;case e.ui.keyCode.UP:this.previous(t);break;case e.ui.keyCode.DOWN:this.next(t);break;case e.ui.keyCode.LEFT:this.collapse(t);break;case e.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case e.ui.keyCode.ENTER:case e.ui.keyCode.SPACE:this._activate(t);break;case e.ui.keyCode.ESCAPE:this.collapse(t);break;default:u=!1,r=this.previousFilter||"",i=String.fromCharCode(t.keyCode),s=!1,clearTimeout(this.filterTimer),i===r?s=!0:i=r+i,o=new RegExp("^"+a(i),"i"),n=this.activeMenu.children(".ui-menu-item").filter(function(){return o.test(e(this).children("a").text())}),n=s&&n.index(this.active.next())!==-1?this.active.nextAll(".ui-menu-item"):n,n.length||(i=String.fromCharCode(t.keyCode),o=new RegExp("^"+a(i),"i"),n=this.activeMenu.children(".ui-menu-item").filter(function(){return o.test(e(this).children("a").text())})),n.length?(this.focus(t,n),n.length>1?(this.previousFilter=i,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter):delete this.previousFilter}u&&t.preventDefault()},_activate:function(e){this.active.is(".ui-state-disabled")||(this.active.children("a[aria-haspopup='true']").length?this.expand(e):this.select(e))},refresh:function(){var t,n=this.options.icons.submenu,r=this.element.find(this.options.menus);r.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-corner-all").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=e(this),r=t.prev("a"),i=e("").addClass("ui-menu-icon ui-icon "+n).data("ui-menu-submenu-carat",!0);r.attr("aria-haspopup","true").prepend(i),t.attr("aria-labelledby",r.attr("id"))}),t=r.add(this.element),t.children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("ui-corner-all").attr({tabIndex:-1,role:this._itemRole()}),t.children(":not(.ui-menu-item)").each(function(){var t=e(this);/[^\-\u2014\u2013\s]/.test(t.text())||t.addClass("ui-widget-content ui-menu-divider")}),t.children(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!e.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(e,t){e==="icons"&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(t.submenu),this._super(e,t)},focus:function(e,t){var n,r;this.blur(e,e&&e.type==="focus"),this._scrollIntoView(t),this.active=t.first(),r=this.active.children("a").addClass("ui-state-focus"),this.options.role&&this.element.attr("aria-activedescendant",r.attr("id")),this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active"),e&&e.type==="keydown"?this._close():this.timer=this._delay(function(){this._close()},this.delay),n=t.children(".ui-menu"),n.length&&/^mouse/.test(e.type)&&this._startOpening(n),this.activeMenu=t.parent(),this._trigger("focus",e,{item:t})},_scrollIntoView:function(t){var n,r,i,s,o,u;this._hasScroll()&&(n=parseFloat(e.css(this.activeMenu[0],"borderTopWidth"))||0,r=parseFloat(e.css(this.activeMenu[0],"paddingTop"))||0,i=t.offset().top-this.activeMenu.offset().top-n-r,s=this.activeMenu.scrollTop(),o=this.activeMenu.height(),u=t.height(),i<0?this.activeMenu.scrollTop(s+i):i+u>o&&this.activeMenu.scrollTop(s+i-o+u))},blur:function(e,t){t||clearTimeout(this.timer);if(!this.active)return;this.active.children("a").removeClass("ui-state-focus"),this.active=null,this._trigger("blur",e,{item:this.active})},_startOpening:function(e){clearTimeout(this.timer);if(e.attr("aria-hidden")!=="true")return;this.timer=this._delay(function(){this._close(),this._open(e)},this.delay)},_open:function(t){var n=e.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true"),t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(n)},collapseAll:function(t,n){clearTimeout(this.timer),this.timer=this._delay(function(){var r=n?this.element:e(t&&t.target).closest(this.element.find(".ui-menu"));r.length||(r=this.element),this._close(r),this.blur(t),this.activeMenu=r},this.delay)},_close:function(e){e||(e=this.active?this.active.parent():this.element),e.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find("a.ui-state-active").removeClass("ui-state-active")},collapse:function(e){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(e,t))},expand:function(e){var t=this.active&&this.active.children(".ui-menu ").children(".ui-menu-item").first();t&&t.length&&(this._open(t.parent()),this._delay(function(){this.focus(e,t)}))},next:function(e){this._move("next","first",e)},previous:function(e){this._move("prev","last",e)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(e,t,n){var r;this.active&&(e==="first"||e==="last"?r=this.active[e==="first"?"prevAll":"nextAll"](".ui-menu-item").eq(-1):r=this.active[e+"All"](".ui-menu-item").eq(0));if(!r||!r.length||!this.active)r=this.activeMenu.children(".ui-menu-item")[t]();this.focus(n,r)},nextPage:function(t){var n,r,i;if(!this.active){this.next(t);return}if(this.isLastItem())return;this._hasScroll()?(r=this.active.offset().top,i=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return n=e(this),n.offset().top-r-i<0}),this.focus(t,n)):this.focus(t,this.activeMenu.children(".ui-menu-item")[this.active?"last":"first"]())},previousPage:function(t){var n,r,i;if(!this.active){this.next(t);return}if(this.isFirstItem())return;this._hasScroll()?(r=this.active.offset().top,i=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return n=e(this),n.offset().top-r+i>0}),this.focus(t,n)):this.focus(t,this.activeMenu.children(".ui-menu-item").first())},_hasScroll:function(){return this.element.outerHeight()
    "),o=s.children()[0];return e("body").append(s),r=o.offsetWidth,s.css("overflow","scroll"),i=o.offsetWidth,r===i&&(i=s[0].clientWidth),s.remove(),n=r-i},getScrollInfo:function(t){var n=t.isWindow?"":t.element.css("overflow-x"),r=t.isWindow?"":t.element.css("overflow-y"),i=n==="scroll"||n==="auto"&&t.width0?"right":"center",vertical:u<0?"top":o>0?"bottom":"middle"};lr(i(o),i(u))?h.important="horizontal":h.important="vertical",t.using.call(this,e,h)}),a.offset(e.extend(C,{using:u}))})},e.ui.position={fit:{left:function(e,t){var n=t.within,i=n.isWindow?n.scrollLeft:n.offset.left,s=n.width,o=e.left-t.collisionPosition.marginLeft,u=i-o,a=o+t.collisionWidth-s-i,f;t.collisionWidth>s?u>0&&a<=0?(f=e.left+u+t.collisionWidth-s-i,e.left+=u-f):a>0&&u<=0?e.left=i:u>a?e.left=i+s-t.collisionWidth:e.left=i:u>0?e.left+=u:a>0?e.left-=a:e.left=r(e.left-o,e.left)},top:function(e,t){var n=t.within,i=n.isWindow?n.scrollTop:n.offset.top,s=t.within.height,o=e.top-t.collisionPosition.marginTop,u=i-o,a=o+t.collisionHeight-s-i,f;t.collisionHeight>s?u>0&&a<=0?(f=e.top+u+t.collisionHeight-s-i,e.top+=u-f):a>0&&u<=0?e.top=i:u>a?e.top=i+s-t.collisionHeight:e.top=i:u>0?e.top+=u:a>0?e.top-=a:e.top=r(e.top-o,e.top)}},flip:{left:function(e,t){var n=t.within,r=n.offset.left+n.scrollLeft,s=n.width,o=n.isWindow?n.scrollLeft:n.offset.left,u=e.left-t.collisionPosition.marginLeft,a=u-o,f=u+t.collisionWidth-s-o,l=t.my[0]==="left"?-t.elemWidth:t.my[0]==="right"?t.elemWidth:0,c=t.at[0]==="left"?t.targetWidth:t.at[0]==="right"?-t.targetWidth:0,h=-2*t.offset[0],p,d;if(a<0){p=e.left+l+c+h+t.collisionWidth-s-r;if(p<0||p0){d=e.left-t.collisionPosition.marginLeft+l+c+h-o;if(d>0||i(d)a&&(v<0||v0&&(d=e.top-t.collisionPosition.marginTop+c+h+p-o,e.top+c+h+p>f&&(d>0||i(d)10&&i<11,t.innerHTML="",n.removeChild(t)}()}(jQuery),function(e,t){e.widget("ui.progressbar",{version:"1.10.1",options:{max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min}),this.valueDiv=e("
    ").appendTo(this.element),this._refreshValue()},_destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.valueDiv.remove()},value:function(e){if(e===t)return this.options.value;this.options.value=this._constrainedValue(e),this._refreshValue()},_constrainedValue:function(e){return e===t&&(e=this.options.value),this.indeterminate=e===!1,typeof e!="number"&&(e=0),this.indeterminate?!1:Math.min(this.options.max,Math.max(this.min,e))},_setOptions:function(e){var t=e.value;delete e.value,this._super(e),this.options.value=this._constrainedValue(t),this._refreshValue()},_setOption:function(e,t){e==="max"&&(t=Math.max(this.min,t)),this._super(e,t)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var t=this.options.value,n=this._percentage();this.valueDiv.toggle(this.indeterminate||t>this.min).toggleClass("ui-corner-right",t===this.options.max).width(n.toFixed(0)+"%"),this.element.toggleClass("ui-progressbar-indeterminate",this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=e("
    ").appendTo(this.valueDiv))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":t}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==t&&(this.oldValue=t,this._trigger("change")),t===this.options.max&&this._trigger("complete")}})}(jQuery),function(e,t){var n=5;e.widget("ui.slider",e.ui.mouse,{version:"1.10.1",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget"+" ui-widget-content"+" ui-corner-all"),this._refresh(),this._setOption("disabled",this.options.disabled),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var t,n,r=this.options,i=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),s="",o=[];n=r.values&&r.values.length||1,i.length>n&&(i.slice(n).remove(),i=i.slice(0,n));for(t=i.length;t
    ").appendTo(this.element),n="ui-slider-range ui-widget-header ui-corner-all"):this.range.removeClass("ui-slider-range-min ui-slider-range-max").css({left:"",bottom:""}),this.range.addClass(n+(t.range==="min"||t.range==="max"?" ui-slider-range-"+t.range:""))):this.range=e([])},_setupEvents:function(){var e=this.handles.add(this.range).filter("a");this._off(e),this._on(e,this._handleEvents),this._hoverable(e),this._focusable(e)},_destroy:function(){this.handles.remove(),this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all"),this._mouseDestroy()},_mouseCapture:function(t){var n,r,i,s,o,u,a,f,l=this,c=this.options;return c.disabled?!1:(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),n={x:t.pageX,y:t.pageY},r=this._normValueFromMouse(n),i=this._valueMax()-this._valueMin()+1,this.handles.each(function(t){var n=Math.abs(r-l.values(t));if(i>n||i===n&&(t===l._lastChangedValue||l.values(t)===c.min))i=n,s=e(this),o=t}),u=this._start(t,o),u===!1?!1:(this._mouseSliding=!0,this._handleIndex=o,s.addClass("ui-state-active").focus(),a=s.offset(),f=!e(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=f?{left:0,top:0}:{left:t.pageX-a.left-s.width()/2,top:t.pageY-a.top-s.height()/2-(parseInt(s.css("borderTopWidth"),10)||0)-(parseInt(s.css("borderBottomWidth"),10)||0)+(parseInt(s.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,o,r),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(e){var t={x:e.pageX,y:e.pageY},n=this._normValueFromMouse(t);return this._slide(e,this._handleIndex,n),!1},_mouseStop:function(e){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(e,this._handleIndex),this._change(e,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(e){var t,n,r,i,s;return this.orientation==="horizontal"?(t=this.elementSize.width,n=e.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(t=this.elementSize.height,n=e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),r=n/t,r>1&&(r=1),r<0&&(r=0),this.orientation==="vertical"&&(r=1-r),i=this._valueMax()-this._valueMin(),s=this._valueMin()+r*i,this._trimAlignValue(s)},_start:function(e,t){var n={handle:this.handles[t],value:this.value()};return this.options.values&&this.options.values.length&&(n.value=this.values(t),n.values=this.values()),this._trigger("start",e,n)},_slide:function(e,t,n){var r,i,s;this.options.values&&this.options.values.length?(r=this.values(t?0:1),this.options.values.length===2&&this.options.range===!0&&(t===0&&n>r||t===1&&n1){this.options.values[t]=this._trimAlignValue(n),this._refreshValue(),this._change(null,t);return}if(!arguments.length)return this._values();if(!e.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(t):this.value();r=this.options.values,i=arguments[0];for(s=0;s=this._valueMax())return this._valueMax();var t=this.options.step>0?this.options.step:1,n=(e-this._valueMin())%t,r=e-n;return Math.abs(n)*2>=t&&(r+=n>0?t:-t),parseFloat(r.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var t,n,r,i,s,o=this.options.range,u=this.options,a=this,f=this._animateOff?!1:u.animate,l={};this.options.values&&this.options.values.length?this.handles.each(function(r){n=(a.values(r)-a._valueMin())/(a._valueMax()-a._valueMin())*100,l[a.orientation==="horizontal"?"left":"bottom"]=n+"%",e(this).stop(1,1)[f?"animate":"css"](l,u.animate),a.options.range===!0&&(a.orientation==="horizontal"?(r===0&&a.range.stop(1,1)[f?"animate":"css"]({left:n+"%"},u.animate),r===1&&a.range[f?"animate":"css"]({width:n-t+"%"},{queue:!1,duration:u.animate})):(r===0&&a.range.stop(1,1)[f?"animate":"css"]({bottom:n+"%"},u.animate),r===1&&a.range[f?"animate":"css"]({height:n-t+"%"},{queue:!1,duration:u.animate}))),t=n}):(r=this.value(),i=this._valueMin(),s=this._valueMax(),n=s!==i?(r-i)/(s-i)*100:0,l[this.orientation==="horizontal"?"left":"bottom"]=n+"%",this.handle.stop(1,1)[f?"animate":"css"](l,u.animate),o==="min"&&this.orientation==="horizontal"&&this.range.stop(1,1)[f?"animate":"css"]({width:n+"%"},u.animate),o==="max"&&this.orientation==="horizontal"&&this.range[f?"animate":"css"]({width:100-n+"%"},{queue:!1,duration:u.animate}),o==="min"&&this.orientation==="vertical"&&this.range.stop(1,1)[f?"animate":"css"]({height:n+"%"},u.animate),o==="max"&&this.orientation==="vertical"&&this.range[f?"animate":"css"]({height:100-n+"%"},{queue:!1,duration:u.animate}))},_handleEvents:{keydown:function(t){var r,i,s,o,u=e(t.target).data("ui-slider-handle-index");switch(t.keyCode){case e.ui.keyCode.HOME:case e.ui.keyCode.END:case e.ui.keyCode.PAGE_UP:case e.ui.keyCode.PAGE_DOWN:case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:t.preventDefault();if(!this._keySliding){this._keySliding=!0,e(t.target).addClass("ui-state-active"),r=this._start(t,u);if(r===!1)return}}o=this.options.step,this.options.values&&this.options.values.length?i=s=this.values(u):i=s=this.value();switch(t.keyCode){case e.ui.keyCode.HOME:s=this._valueMin();break;case e.ui.keyCode.END:s=this._valueMax();break;case e.ui.keyCode.PAGE_UP:s=this._trimAlignValue(i+(this._valueMax()-this._valueMin())/n);break;case e.ui.keyCode.PAGE_DOWN:s=this._trimAlignValue(i-(this._valueMax()-this._valueMin())/n);break;case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:if(i===this._valueMax())return;s=this._trimAlignValue(i+o);break;case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(i===this._valueMin())return;s=this._trimAlignValue(i-o)}this._slide(t,u,s)},click:function(e){e.preventDefault()},keyup:function(t){var n=e(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,n),this._change(t,n),e(t.target).removeClass("ui-state-active"))}}})}(jQuery),function(e){function t(e){return function(){var t=this.element.val();e.apply(this,arguments),this._refresh(),t!==this.element.val()&&this._trigger("change")}}e.widget("ui.spinner",{version:"1.10.1",defaultElement:"",widgetEventPrefix:"spin",options:{culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var t={},n=this.element;return e.each(["min","max","step"],function(e,r){var i=n.attr(r);i!==undefined&&i.length&&(t[r]=i)}),t},_events:{keydown:function(e){this._start(e)&&this._keydown(e)&&e.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(e){if(this.cancelBlur){delete this.cancelBlur;return}this._refresh(),this.previous!==this.element.val()&&this._trigger("change",e)},mousewheel:function(e,t){if(!t)return;if(!this.spinning&&!this._start(e))return!1;this._spin((t>0?1:-1)*this.options.step,e),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(e)},100),e.preventDefault()},"mousedown .ui-spinner-button":function(t){function r(){var e=this.element[0]===this.document[0].activeElement;e||(this.element.focus(),this.previous=n,this._delay(function(){this.previous=n}))}var n;n=this.element[0]===this.document[0].activeElement?this.previous:this.element.val(),t.preventDefault(),r.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,r.call(this)});if(this._start(t)===!1)return;this._repeat(null,e(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(t){if(!e(t.currentTarget).hasClass("ui-state-active"))return;if(this._start(t)===!1)return!1;this._repeat(null,e(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var e=this.uiSpinner=this.element.addClass("ui-spinner-input").attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr("role","spinbutton"),this.buttons=e.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all"),this.buttons.height()>Math.ceil(e.height()*.5)&&e.height()>0&&e.height(e.height()),this.options.disabled&&this.disable()},_keydown:function(t){var n=this.options,r=e.ui.keyCode;switch(t.keyCode){case r.UP:return this._repeat(null,1,t),!0;case r.DOWN:return this._repeat(null,-1,t),!0;case r.PAGE_UP:return this._repeat(null,n.page,t),!0;case r.PAGE_DOWN:return this._repeat(null,-n.page,t),!0}return!1},_uiSpinnerHtml:function(){return""},_buttonHtml:function(){return"▲"+""+""+"▼"+""},_start:function(e){return!this.spinning&&this._trigger("start",e)===!1?!1:(this.counter||(this.counter=1),this.spinning=!0,!0)},_repeat:function(e,t,n){e=e||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,t,n)},e),this._spin(t*this.options.step,n)},_spin:function(e,t){var n=this.value()||0;this.counter||(this.counter=1),n=this._adjustValue(n+e*this._increment(this.counter));if(!this.spinning||this._trigger("spin",t,{value:n})!==!1)this._value(n),this.counter++},_increment:function(t){var n=this.options.incremental;return n?e.isFunction(n)?n(t):Math.floor(t*t*t/5e4-t*t/500+17*t/200+1):1},_precision:function(){var e=this._precisionOf(this.options.step);return this.options.min!==null&&(e=Math.max(e,this._precisionOf(this.options.min))),e},_precisionOf:function(e){var t=e.toString(),n=t.indexOf(".");return n===-1?0:t.length-n-1},_adjustValue:function(e){var t,n,r=this.options;return t=r.min!==null?r.min:0,n=e-t,n=Math.round(n/r.step)*r.step,e=t+n,e=parseFloat(e.toFixed(this._precision())),r.max!==null&&e>r.max?r.max:r.min!==null&&e1&&decodeURIComponent(e.href.replace(r,""))===decodeURIComponent(location.href.replace(r,""))}var n=0,r=/#.*$/;e.widget("ui.tabs",{version:"1.10.1",delay:300,options:{active:null,collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_create:function(){var t=this,n=this.options;this.running=!1,this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",n.collapsible).delegate(".ui-tabs-nav > li","mousedown"+this.eventNamespace,function(t){e(this).is(".ui-state-disabled")&&t.preventDefault()}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){e(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this._processTabs(),n.active=this._initialActive(),e.isArray(n.disabled)&&(n.disabled=e.unique(n.disabled.concat(e.map(this.tabs.filter(".ui-state-disabled"),function(e){return t.tabs.index(e)}))).sort()),this.options.active!==!1&&this.anchors.length?this.active=this._findActive(n.active):this.active=e(),this._refresh(),this.active.length&&this.load(n.active)},_initialActive:function(){var t=this.options.active,n=this.options.collapsible,r=location.hash.substring(1);if(t===null){r&&this.tabs.each(function(n,i){if(e(i).attr("aria-controls")===r)return t=n,!1}),t===null&&(t=this.tabs.index(this.tabs.filter(".ui-tabs-active")));if(t===null||t===-1)t=this.tabs.length?0:!1}return t!==!1&&(t=this.tabs.index(this.tabs.eq(t)),t===-1&&(t=n?!1:0)),!n&&t===!1&&this.anchors.length&&(t=0),t},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):e()}},_tabKeydown:function(t){var n=e(this.document[0].activeElement).closest("li"),r=this.tabs.index(n),i=!0;if(this._handlePageNav(t))return;switch(t.keyCode){case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:r++;break;case e.ui.keyCode.UP:case e.ui.keyCode.LEFT:i=!1,r--;break;case e.ui.keyCode.END:r=this.anchors.length-1;break;case e.ui.keyCode.HOME:r=0;break;case e.ui.keyCode.SPACE:t.preventDefault(),clearTimeout(this.activating),this._activate(r);return;case e.ui.keyCode.ENTER:t.preventDefault(),clearTimeout(this.activating),this._activate(r===this.options.active?!1:r);return;default:return}t.preventDefault(),clearTimeout(this.activating),r=this._focusNextTab(r,i),t.ctrlKey||(n.attr("aria-selected","false"),this.tabs.eq(r).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",r)},this.delay))},_panelKeydown:function(t){if(this._handlePageNav(t))return;t.ctrlKey&&t.keyCode===e.ui.keyCode.UP&&(t.preventDefault(),this.active.focus())},_handlePageNav:function(t){if(t.altKey&&t.keyCode===e.ui.keyCode.PAGE_UP)return this._activate(this._focusNextTab(this.options.active-1,!1)),!0;if(t.altKey&&t.keyCode===e.ui.keyCode.PAGE_DOWN)return this._activate(this._focusNextTab(this.options.active+1,!0)),!0},_findNextTab:function(t,n){function i(){return t>r&&(t=0),t<0&&(t=r),t}var r=this.tabs.length-1;while(e.inArray(i(),this.options.disabled)!==-1)t=n?t+1:t-1;return t},_focusNextTab:function(e,t){return e=this._findNextTab(e,t),this.tabs.eq(e).focus(),e},_setOption:function(e,t){if(e==="active"){this._activate(t);return}if(e==="disabled"){this._setupDisabled(t);return}this._super(e,t),e==="collapsible"&&(this.element.toggleClass("ui-tabs-collapsible",t),!t&&this.options.active===!1&&this._activate(0)),e==="event"&&this._setupEvents(t),e==="heightStyle"&&this._setupHeightStyle(t)},_tabId:function(e){return e.attr("aria-controls")||"ui-tabs-"+i()},_sanitizeSelector:function(e){return e?e.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,n=this.tablist.children(":has(a[href])");t.disabled=e.map(n.filter(".ui-state-disabled"),function(e){return n.index(e)}),this._processTabs(),t.active===!1||!this.anchors.length?(t.active=!1,this.active=e()):this.active.length&&!e.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=e()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active),this._refresh()},_refresh:function(){this._setupDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-expanded":"false","aria-hidden":"true"}),this.active.length?(this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true",tabIndex:0}),this._getPanelForTab(this.active).show().attr({"aria-expanded":"true","aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var t=this;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist"),this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1}),this.anchors=this.tabs.map(function(){return e("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1}),this.panels=e(),this.anchors.each(function(n,r){var i,o,u,a=e(r).uniqueId().attr("id"),f=e(r).closest("li"),l=f.attr("aria-controls");s(r)?(i=r.hash,o=t.element.find(t._sanitizeSelector(i))):(u=t._tabId(f),i="#"+u,o=t.element.find(i),o.length||(o=t._createPanel(u),o.insertAfter(t.panels[n-1]||t.tablist)),o.attr("aria-live","polite")),o.length&&(t.panels=t.panels.add(o)),l&&f.data("ui-tabs-aria-controls",l),f.attr({"aria-controls":i.substring(1),"aria-labelledby":a}),o.attr("aria-labelledby",a)}),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel")},_getList:function(){return this.element.find("ol,ul").eq(0)},_createPanel:function(t){return e("
    ").attr("id",t).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDisabled:function(t){e.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1);for(var n=0,r;r=this.tabs[n];n++)t===!0||e.inArray(n,t)!==-1?e(r).addClass("ui-state-disabled").attr("aria-disabled","true"):e(r).removeClass("ui-state-disabled").removeAttr("aria-disabled");this.options.disabled=t},_setupEvents:function(t){var n={click:function(e){e.preventDefault()}};t&&e.each(t.split(" "),function(e,t){n[t]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(this.anchors,n),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(t){var n,r=this.element.parent();t==="fill"?(n=r.height(),n-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var t=e(this),r=t.css("position");if(r==="absolute"||r==="fixed")return;n-=t.outerHeight(!0)}),this.element.children().not(this.panels).each(function(){n-=e(this).outerHeight(!0)}),this.panels.each(function(){e(this).height(Math.max(0,n-e(this).innerHeight()+e(this).height()))}).css("overflow","auto")):t==="auto"&&(n=0,this.panels.each(function(){n=Math.max(n,e(this).height("").height())}).height(n))},_eventHandler:function(t){var n=this.options,r=this.active,i=e(t.currentTarget),s=i.closest("li"),o=s[0]===r[0],u=o&&n.collapsible,a=u?e():this._getPanelForTab(s),f=r.length?this._getPanelForTab(r):e(),l={oldTab:r,oldPanel:f,newTab:u?e():s,newPanel:a};t.preventDefault();if(s.hasClass("ui-state-disabled")||s.hasClass("ui-tabs-loading")||this.running||o&&!n.collapsible||this._trigger("beforeActivate",t,l)===!1)return;n.active=u?!1:this.tabs.index(s),this.active=o?e():s,this.xhr&&this.xhr.abort(),!f.length&&!a.length&&e.error("jQuery UI Tabs: Mismatching fragment identifier."),a.length&&this.load(this.tabs.index(s),t),this._toggle(t,l)},_toggle:function(t,n){function o(){r.running=!1,r._trigger("activate",t,n)}function u(){n.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),i.length&&r.options.show?r._show(i,r.options.show,o):(i.show(),o())}var r=this,i=n.newPanel,s=n.oldPanel;this.running=!0,s.length&&this.options.hide?this._hide(s,this.options.hide,function(){n.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),u()}):(n.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),s.hide(),u()),s.attr({"aria-expanded":"false","aria-hidden":"true"}),n.oldTab.attr("aria-selected","false"),i.length&&s.length?n.oldTab.attr("tabIndex",-1):i.length&&this.tabs.filter(function(){return e(this).attr("tabIndex")===0}).attr("tabIndex",-1),i.attr({"aria-expanded":"true","aria-hidden":"false"}),n.newTab.attr({"aria-selected":"true",tabIndex:0})},_activate:function(t){var n,r=this._findActive(t);if(r[0]===this.active[0])return;r.length||(r=this.active),n=r.find(".ui-tabs-anchor")[0],this._eventHandler({target:n,currentTarget:n,preventDefault:e.noop})},_findActive:function(t){return t===!1?e():this.tabs.eq(t)},_getIndex:function(e){return typeof e=="string"&&(e=this.anchors.index(this.anchors.filter("[href$='"+e+"']"))),e},_destroy:function(){this.xhr&&this.xhr.abort(),this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible"),this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role"),this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){e.data(this,"ui-tabs-destroy")?e(this).remove():e(this).removeClass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")}),this.tabs.each(function(){var t=e(this),n=t.data("ui-tabs-aria-controls");n?t.attr("aria-controls",n).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")}),this.panels.show(),this.options.heightStyle!=="content"&&this.panels.css("height","")},enable:function(n){var r=this.options.disabled;if(r===!1)return;n===t?r=!1:(n=this._getIndex(n),e.isArray(r)?r=e.map(r,function(e){return e!==n?e:null}):r=e.map(this.tabs,function(e,t){return t!==n?t:null})),this._setupDisabled(r)},disable:function(n){var r=this.options.disabled;if(r===!0)return;if(n===t)r=!0;else{n=this._getIndex(n);if(e.inArray(n,r)!==-1)return;e.isArray(r)?r=e.merge([n],r).sort():r=[n]}this._setupDisabled(r)},load:function(t,n){t=this._getIndex(t);var r=this,i=this.tabs.eq(t),o=i.find(".ui-tabs-anchor"),u=this._getPanelForTab(i),a={tab:i,panel:u};if(s(o[0]))return;this.xhr=e.ajax(this._ajaxSettings(o,n,a)),this.xhr&&this.xhr.statusText!=="canceled"&&(i.addClass("ui-tabs-loading"),u.attr("aria-busy","true"),this.xhr.success(function(e){setTimeout(function(){u.html(e),r._trigger("load",n,a)},1)}).complete(function(e,t){setTimeout(function(){t==="abort"&&r.panels.stop(!1,!0),i.removeClass("ui-tabs-loading"),u.removeAttr("aria-busy"),e===r.xhr&&delete r.xhr},1)}))},_ajaxSettings:function(t,n,r){var i=this;return{url:t.attr("href"),beforeSend:function(t,s){return i._trigger("beforeLoad",n,e.extend({jqXHR:t,ajaxSettings:s},r))}}},_getPanelForTab:function(t){var n=e(t).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+n))}})}(jQuery),function(e){function n(t,n){var r=(t.attr("aria-describedby")||"").split(/\s+/);r.push(n),t.data("ui-tooltip-id",n).attr("aria-describedby",e.trim(r.join(" ")))}function r(t){var n=t.data("ui-tooltip-id"),r=(t.attr("aria-describedby")||"").split(/\s+/),i=e.inArray(n,r);i!==-1&&r.splice(i,1),t.removeData("ui-tooltip-id"),r=e.trim(r.join(" ")),r?t.attr("aria-describedby",r):t.removeAttr("aria-describedby")}var t=0;e.widget("ui.tooltip",{version:"1.10.1",options:{content:function(){var t=e(this).attr("title")||"";return e("").text(t).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,tooltipClass:null,track:!1,close:null,open:null},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.options.disabled&&this._disable()},_setOption:function(t,n){var r=this;if(t==="disabled"){this[n?"_disable":"_enable"](),this.options[t]=n;return}this._super(t,n),t==="content"&&e.each(this.tooltips,function(e,t){r._updateContent(t)})},_disable:function(){var t=this;e.each(this.tooltips,function(n,r){var i=e.Event("blur");i.target=i.currentTarget=r[0],t.close(i,!0)}),this.element.find(this.options.items).addBack().each(function(){var t=e(this);t.is("[title]")&&t.data("ui-tooltip-title",t.attr("title")).attr("title","")})},_enable:function(){this.element.find(this.options.items).addBack().each(function(){var t=e(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))})},open:function(t){var n=this,r=e(t?t.target:this.element).closest(this.options.items);if(!r.length||r.data("ui-tooltip-id"))return;r.attr("title")&&r.data("ui-tooltip-title",r.attr("title")),r.data("ui-tooltip-open",!0),t&&t.type==="mouseover"&&r.parents().each(function(){var t=e(this),r;t.data("ui-tooltip-open")&&(r=e.Event("blur"),r.target=r.currentTarget=this,n.close(r,!0)),t.attr("title")&&(t.uniqueId(),n.parents[this.id]={element:this,title:t.attr("title")},t.attr("title",""))}),this._updateContent(r,t)},_updateContent:function(e,t){var n,r=this.options.content,i=this,s=t?t.type:null;if(typeof r=="string")return this._open(t,e,r);n=r.call(e[0],function(n){if(!e.data("ui-tooltip-open"))return;i._delay(function(){t&&(t.type=s),this._open(t,e,n)})}),n&&this._open(t,e,n)},_open:function(t,r,i){function f(e){a.of=e;if(s.is(":hidden"))return;s.position(a)}var s,o,u,a=e.extend({},this.options.position);if(!i)return;s=this._find(r);if(s.length){s.find(".ui-tooltip-content").html(i);return}r.is("[title]")&&(t&&t.type==="mouseover"?r.attr("title",""):r.removeAttr("title")),s=this._tooltip(r),n(r,s.attr("id")),s.find(".ui-tooltip-content").html(i),this.options.track&&t&&/^mouse/.test(t.type)?(this._on(this.document,{mousemove:f}),f(t)):s.position(e.extend({of:r},this.options.position)),s.hide(),this._show(s,this.options.show),this.options.show&&this.options.show.delay&&(u=this.delayedShow=setInterval(function(){s.is(":visible")&&(f(a.of),clearInterval(u))},e.fx.interval)),this._trigger("open",t,{tooltip:s}),o={keyup:function(t){if(t.keyCode===e.ui.keyCode.ESCAPE){var n=e.Event(t);n.currentTarget=r[0],this.close(n,!0)}},remove:function(){this._removeTooltip(s)}};if(!t||t.type==="mouseover")o.mouseleave="close";if(!t||t.type==="focusin")o.focusout="close";this._on(!0,r,o)},close:function(t){var n=this,i=e(t?t.currentTarget:this.element),s=this._find(i);if(this.closing)return;clearInterval(this.delayedShow),i.data("ui-tooltip-title")&&i.attr("title",i.data("ui-tooltip-title")),r(i),s.stop(!0),this._hide(s,this.options.hide,function(){n._removeTooltip(e(this))}),i.removeData("ui-tooltip-open"),this._off(i,"mouseleave focusout keyup"),i[0]!==this.element[0]&&this._off(i,"remove"),this._off(this.document,"mousemove"),t&&t.type==="mouseleave"&&e.each(this.parents,function(t,r){e(r.element).attr("title",r.title),delete n.parents[t]}),this.closing=!0,this._trigger("close",t,{tooltip:s}),this.closing=!1},_tooltip:function(n){var r="ui-tooltip-"+t++,i=e("
    ").attr({id:r,role:"tooltip"}).addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||""));return e("
    ").addClass("ui-tooltip-content").appendTo(i),i.appendTo(this.document[0].body),this.tooltips[r]=n,i},_find:function(t){var n=t.data("ui-tooltip-id");return n?e("#"+n):e()},_removeTooltip:function(e){e.remove(),delete this.tooltips[e.attr("id")]},_destroy:function(){var t=this;e.each(this.tooltips,function(n,r){var i=e.Event("blur");i.target=i.currentTarget=r[0],t.close(i,!0),e("#"+n).remove(),r.data("ui-tooltip-title")&&(r.attr("title",r.data("ui-tooltip-title")),r.removeData("ui-tooltip-title"))})}})}(jQuery); \ No newline at end of file diff --git a/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components/dygraph/extras/jquery.min.js.download b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components/dygraph/extras/jquery.min.js.download new file mode 100644 index 0000000..006e953 --- /dev/null +++ b/Final/Projects/VECSM0C0-B23/firmwares/SOC_FINAL/ccs_base/emulation/analysis/gc-usecases/components/dygraph/extras/jquery.min.js.download @@ -0,0 +1,5 @@ +/*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license +//@ sourceMappingURL=jquery.min.map +*/(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return new b.fn.init(e,t,r)},x=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,w=/\S+/g,T=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,N=/^(?:(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,k=/^[\],:{}\s]*$/,E=/(?:^|:|,)(?:\s*\[)+/g,S=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,A=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,j=/^-ms-/,D=/-([\da-z])/gi,L=function(e,t){return t.toUpperCase()},H=function(e){(o.addEventListener||"load"===e.type||"complete"===o.readyState)&&(q(),b.ready())},q=function(){o.addEventListener?(o.removeEventListener("DOMContentLoaded",H,!1),e.removeEventListener("load",H,!1)):(o.detachEvent("onreadystatechange",H),e.detachEvent("onload",H))};b.fn=b.prototype={jquery:p,constructor:b,init:function(e,n,r){var i,a;if(!e)return this;if("string"==typeof e){if(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:N.exec(e),!i||!i[1]&&n)return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e);if(i[1]){if(n=n instanceof b?n[0]:n,b.merge(this,b.parseHTML(i[1],n&&n.nodeType?n.ownerDocument||n:o,!0)),C.test(i[1])&&b.isPlainObject(n))for(i in n)b.isFunction(this[i])?this[i](n[i]):this.attr(i,n[i]);return this}if(a=o.getElementById(i[2]),a&&a.parentNode){if(a.id!==i[2])return r.find(e);this.length=1,this[0]=a}return this.context=o,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):b.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),b.makeArray(e,this))},selector:"",length:0,size:function(){return this.length},toArray:function(){return h.call(this)},get:function(e){return null==e?this.toArray():0>e?this[this.length+e]:this[e]},pushStack:function(e){var t=b.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return b.each(this,e,t)},ready:function(e){return b.ready.promise().done(e),this},slice:function(){return this.pushStack(h.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},map:function(e){return this.pushStack(b.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:d,sort:[].sort,splice:[].splice},b.fn.init.prototype=b.fn,b.extend=b.fn.extend=function(){var e,n,r,i,o,a,s=arguments[0]||{},u=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},u=2),"object"==typeof s||b.isFunction(s)||(s={}),l===u&&(s=this,--u);l>u;u++)if(null!=(o=arguments[u]))for(i in o)e=s[i],r=o[i],s!==r&&(c&&r&&(b.isPlainObject(r)||(n=b.isArray(r)))?(n?(n=!1,a=e&&b.isArray(e)?e:[]):a=e&&b.isPlainObject(e)?e:{},s[i]=b.extend(c,a,r)):r!==t&&(s[i]=r));return s},b.extend({noConflict:function(t){return e.$===b&&(e.$=u),t&&e.jQuery===b&&(e.jQuery=s),b},isReady:!1,readyWait:1,holdReady:function(e){e?b.readyWait++:b.ready(!0)},ready:function(e){if(e===!0?!--b.readyWait:!b.isReady){if(!o.body)return setTimeout(b.ready);b.isReady=!0,e!==!0&&--b.readyWait>0||(n.resolveWith(o,[b]),b.fn.trigger&&b(o).trigger("ready").off("ready"))}},isFunction:function(e){return"function"===b.type(e)},isArray:Array.isArray||function(e){return"array"===b.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[m.call(e)]||"object":typeof e},isPlainObject:function(e){if(!e||"object"!==b.type(e)||e.nodeType||b.isWindow(e))return!1;try{if(e.constructor&&!y.call(e,"constructor")&&!y.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}var r;for(r in e);return r===t||y.call(e,r)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw Error(e)},parseHTML:function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||o;var r=C.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=b.buildFragment([e],t,i),i&&b(i).remove(),b.merge([],r.childNodes))},parseJSON:function(n){return e.JSON&&e.JSON.parse?e.JSON.parse(n):null===n?n:"string"==typeof n&&(n=b.trim(n),n&&k.test(n.replace(S,"@").replace(A,"]").replace(E,"")))?Function("return "+n)():(b.error("Invalid JSON: "+n),t)},parseXML:function(n){var r,i;if(!n||"string"!=typeof n)return null;try{e.DOMParser?(i=new DOMParser,r=i.parseFromString(n,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(n))}catch(o){r=t}return r&&r.documentElement&&!r.getElementsByTagName("parsererror").length||b.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&b.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(j,"ms-").replace(D,L)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r,i=0,o=e.length,a=M(e);if(n){if(a){for(;o>i;i++)if(r=t.apply(e[i],n),r===!1)break}else for(i in e)if(r=t.apply(e[i],n),r===!1)break}else if(a){for(;o>i;i++)if(r=t.call(e[i],i,e[i]),r===!1)break}else for(i in e)if(r=t.call(e[i],i,e[i]),r===!1)break;return e},trim:v&&!v.call("\ufeff\u00a0")?function(e){return null==e?"":v.call(e)}:function(e){return null==e?"":(e+"").replace(T,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(M(Object(e))?b.merge(n,"string"==typeof e?[e]:e):d.call(n,e)),n},inArray:function(e,t,n){var r;if(t){if(g)return g.call(t,e,n);for(r=t.length,n=n?0>n?Math.max(0,r+n):n:0;r>n;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,n){var r=n.length,i=e.length,o=0;if("number"==typeof r)for(;r>o;o++)e[i++]=n[o];else while(n[o]!==t)e[i++]=n[o++];return e.length=i,e},grep:function(e,t,n){var r,i=[],o=0,a=e.length;for(n=!!n;a>o;o++)r=!!t(e[o],o),n!==r&&i.push(e[o]);return i},map:function(e,t,n){var r,i=0,o=e.length,a=M(e),s=[];if(a)for(;o>i;i++)r=t(e[i],i,n),null!=r&&(s[s.length]=r);else for(i in e)r=t(e[i],i,n),null!=r&&(s[s.length]=r);return f.apply([],s)},guid:1,proxy:function(e,n){var r,i,o;return"string"==typeof n&&(o=e[n],n=e,e=o),b.isFunction(e)?(r=h.call(arguments,2),i=function(){return e.apply(n||this,r.concat(h.call(arguments)))},i.guid=e.guid=e.guid||b.guid++,i):t},access:function(e,n,r,i,o,a,s){var u=0,l=e.length,c=null==r;if("object"===b.type(r)){o=!0;for(u in r)b.access(e,n,u,r[u],!0,a,s)}else if(i!==t&&(o=!0,b.isFunction(i)||(s=!0),c&&(s?(n.call(e,i),n=null):(c=n,n=function(e,t,n){return c.call(b(e),n)})),n))for(;l>u;u++)n(e[u],r,s?i:i.call(e[u],u,n(e[u],r)));return o?e:c?n.call(e):l?n(e[0],r):a},now:function(){return(new Date).getTime()}}),b.ready.promise=function(t){if(!n)if(n=b.Deferred(),"complete"===o.readyState)setTimeout(b.ready);else if(o.addEventListener)o.addEventListener("DOMContentLoaded",H,!1),e.addEventListener("load",H,!1);else{o.attachEvent("onreadystatechange",H),e.attachEvent("onload",H);var r=!1;try{r=null==e.frameElement&&o.documentElement}catch(i){}r&&r.doScroll&&function a(){if(!b.isReady){try{r.doScroll("left")}catch(e){return setTimeout(a,50)}q(),b.ready()}}()}return n.promise(t)},b.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){l["[object "+t+"]"]=t.toLowerCase()});function M(e){var t=e.length,n=b.type(e);return b.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}r=b(o);var _={};function F(e){var t=_[e]={};return b.each(e.match(w)||[],function(e,n){t[n]=!0}),t}b.Callbacks=function(e){e="string"==typeof e?_[e]||F(e):b.extend({},e);var n,r,i,o,a,s,u=[],l=!e.once&&[],c=function(t){for(r=e.memory&&t,i=!0,a=s||0,s=0,o=u.length,n=!0;u&&o>a;a++)if(u[a].apply(t[0],t[1])===!1&&e.stopOnFalse){r=!1;break}n=!1,u&&(l?l.length&&c(l.shift()):r?u=[]:p.disable())},p={add:function(){if(u){var t=u.length;(function i(t){b.each(t,function(t,n){var r=b.type(n);"function"===r?e.unique&&p.has(n)||u.push(n):n&&n.length&&"string"!==r&&i(n)})})(arguments),n?o=u.length:r&&(s=t,c(r))}return this},remove:function(){return u&&b.each(arguments,function(e,t){var r;while((r=b.inArray(t,u,r))>-1)u.splice(r,1),n&&(o>=r&&o--,a>=r&&a--)}),this},has:function(e){return e?b.inArray(e,u)>-1:!(!u||!u.length)},empty:function(){return u=[],this},disable:function(){return u=l=r=t,this},disabled:function(){return!u},lock:function(){return l=t,r||p.disable(),this},locked:function(){return!l},fireWith:function(e,t){return t=t||[],t=[e,t.slice?t.slice():t],!u||i&&!l||(n?l.push(t):c(t)),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!i}};return p},b.extend({Deferred:function(e){var t=[["resolve","done",b.Callbacks("once memory"),"resolved"],["reject","fail",b.Callbacks("once memory"),"rejected"],["notify","progress",b.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return b.Deferred(function(n){b.each(t,function(t,o){var a=o[0],s=b.isFunction(e[t])&&e[t];i[o[1]](function(){var e=s&&s.apply(this,arguments);e&&b.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[a+"With"](this===r?n.promise():this,s?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?b.extend(e,r):r}},i={};return r.pipe=r.then,b.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=h.call(arguments),r=n.length,i=1!==r||e&&b.isFunction(e.promise)?r:0,o=1===i?e:b.Deferred(),a=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?h.call(arguments):r,n===s?o.notifyWith(t,n):--i||o.resolveWith(t,n)}},s,u,l;if(r>1)for(s=Array(r),u=Array(r),l=Array(r);r>t;t++)n[t]&&b.isFunction(n[t].promise)?n[t].promise().done(a(t,l,n)).fail(o.reject).progress(a(t,u,s)):--i;return i||o.resolveWith(l,n),o.promise()}}),b.support=function(){var t,n,r,a,s,u,l,c,p,f,d=o.createElement("div");if(d.setAttribute("className","t"),d.innerHTML="
    a",n=d.getElementsByTagName("*"),r=d.getElementsByTagName("a")[0],!n||!r||!n.length)return{};s=o.createElement("select"),l=s.appendChild(o.createElement("option")),a=d.getElementsByTagName("input")[0],r.style.cssText="top:1px;float:left;opacity:.5",t={getSetAttribute:"t"!==d.className,leadingWhitespace:3===d.firstChild.nodeType,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/top/.test(r.getAttribute("style")),hrefNormalized:"/a"===r.getAttribute("href"),opacity:/^0.5/.test(r.style.opacity),cssFloat:!!r.style.cssFloat,checkOn:!!a.value,optSelected:l.selected,enctype:!!o.createElement("form").enctype,html5Clone:"<:nav>"!==o.createElement("nav").cloneNode(!0).outerHTML,boxModel:"CSS1Compat"===o.compatMode,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},a.checked=!0,t.noCloneChecked=a.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!l.disabled;try{delete d.test}catch(h){t.deleteExpando=!1}a=o.createElement("input"),a.setAttribute("value",""),t.input=""===a.getAttribute("value"),a.value="t",a.setAttribute("type","radio"),t.radioValue="t"===a.value,a.setAttribute("checked","t"),a.setAttribute("name","t"),u=o.createDocumentFragment(),u.appendChild(a),t.appendChecked=a.checked,t.checkClone=u.cloneNode(!0).cloneNode(!0).lastChild.checked,d.attachEvent&&(d.attachEvent("onclick",function(){t.noCloneEvent=!1}),d.cloneNode(!0).click());for(f in{submit:!0,change:!0,focusin:!0})d.setAttribute(c="on"+f,"t"),t[f+"Bubbles"]=c in e||d.attributes[c].expando===!1;return d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle="content-box"===d.style.backgroundClip,b(function(){var n,r,a,s="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",u=o.getElementsByTagName("body")[0];u&&(n=o.createElement("div"),n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",u.appendChild(n).appendChild(d),d.innerHTML="
    t
    ",a=d.getElementsByTagName("td"),a[0].style.cssText="padding:0;margin:0;border:0;display:none",p=0===a[0].offsetHeight,a[0].style.display="",a[1].style.display="none",t.reliableHiddenOffsets=p&&0===a[0].offsetHeight,d.innerHTML="",d.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",t.boxSizing=4===d.offsetWidth,t.doesNotIncludeMarginInBodyOffset=1!==u.offsetTop,e.getComputedStyle&&(t.pixelPosition="1%"!==(e.getComputedStyle(d,null)||{}).top,t.boxSizingReliable="4px"===(e.getComputedStyle(d,null)||{width:"4px"}).width,r=d.appendChild(o.createElement("div")),r.style.cssText=d.style.cssText=s,r.style.marginRight=r.style.width="0",d.style.width="1px",t.reliableMarginRight=!parseFloat((e.getComputedStyle(r,null)||{}).marginRight)),typeof d.style.zoom!==i&&(d.innerHTML="",d.style.cssText=s+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=3===d.offsetWidth,d.style.display="block",d.innerHTML="
    ",d.firstChild.style.width="5px",t.shrinkWrapBlocks=3!==d.offsetWidth,t.inlineBlockNeedsLayout&&(u.style.zoom=1)),u.removeChild(n),n=d=a=r=null)}),n=s=u=l=r=a=null,t}();var O=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,B=/([A-Z])/g;function P(e,n,r,i){if(b.acceptData(e)){var o,a,s=b.expando,u="string"==typeof n,l=e.nodeType,p=l?b.cache:e,f=l?e[s]:e[s]&&s;if(f&&p[f]&&(i||p[f].data)||!u||r!==t)return f||(l?e[s]=f=c.pop()||b.guid++:f=s),p[f]||(p[f]={},l||(p[f].toJSON=b.noop)),("object"==typeof n||"function"==typeof n)&&(i?p[f]=b.extend(p[f],n):p[f].data=b.extend(p[f].data,n)),o=p[f],i||(o.data||(o.data={}),o=o.data),r!==t&&(o[b.camelCase(n)]=r),u?(a=o[n],null==a&&(a=o[b.camelCase(n)])):a=o,a}}function R(e,t,n){if(b.acceptData(e)){var r,i,o,a=e.nodeType,s=a?b.cache:e,u=a?e[b.expando]:b.expando;if(s[u]){if(t&&(o=n?s[u]:s[u].data)){b.isArray(t)?t=t.concat(b.map(t,b.camelCase)):t in o?t=[t]:(t=b.camelCase(t),t=t in o?[t]:t.split(" "));for(r=0,i=t.length;i>r;r++)delete o[t[r]];if(!(n?$:b.isEmptyObject)(o))return}(n||(delete s[u].data,$(s[u])))&&(a?b.cleanData([e],!0):b.support.deleteExpando||s!=s.window?delete s[u]:s[u]=null)}}}b.extend({cache:{},expando:"jQuery"+(p+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(e){return e=e.nodeType?b.cache[e[b.expando]]:e[b.expando],!!e&&!$(e)},data:function(e,t,n){return P(e,t,n)},removeData:function(e,t){return R(e,t)},_data:function(e,t,n){return P(e,t,n,!0)},_removeData:function(e,t){return R(e,t,!0)},acceptData:function(e){if(e.nodeType&&1!==e.nodeType&&9!==e.nodeType)return!1;var t=e.nodeName&&b.noData[e.nodeName.toLowerCase()];return!t||t!==!0&&e.getAttribute("classid")===t}}),b.fn.extend({data:function(e,n){var r,i,o=this[0],a=0,s=null;if(e===t){if(this.length&&(s=b.data(o),1===o.nodeType&&!b._data(o,"parsedAttrs"))){for(r=o.attributes;r.length>a;a++)i=r[a].name,i.indexOf("data-")||(i=b.camelCase(i.slice(5)),W(o,i,s[i]));b._data(o,"parsedAttrs",!0)}return s}return"object"==typeof e?this.each(function(){b.data(this,e)}):b.access(this,function(n){return n===t?o?W(o,e,b.data(o,e)):null:(this.each(function(){b.data(this,e,n)}),t)},null,n,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){b.removeData(this,e)})}});function W(e,n,r){if(r===t&&1===e.nodeType){var i="data-"+n.replace(B,"-$1").toLowerCase();if(r=e.getAttribute(i),"string"==typeof r){try{r="true"===r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:O.test(r)?b.parseJSON(r):r}catch(o){}b.data(e,n,r)}else r=t}return r}function $(e){var t;for(t in e)if(("data"!==t||!b.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}b.extend({queue:function(e,n,r){var i;return e?(n=(n||"fx")+"queue",i=b._data(e,n),r&&(!i||b.isArray(r)?i=b._data(e,n,b.makeArray(r)):i.push(r)),i||[]):t},dequeue:function(e,t){t=t||"fx";var n=b.queue(e,t),r=n.length,i=n.shift(),o=b._queueHooks(e,t),a=function(){b.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),o.cur=i,i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return b._data(e,n)||b._data(e,n,{empty:b.Callbacks("once memory").add(function(){b._removeData(e,t+"queue"),b._removeData(e,n)})})}}),b.fn.extend({queue:function(e,n){var r=2;return"string"!=typeof e&&(n=e,e="fx",r--),r>arguments.length?b.queue(this[0],e):n===t?this:this.each(function(){var t=b.queue(this,e,n);b._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&b.dequeue(this,e)})},dequeue:function(e){return this.each(function(){b.dequeue(this,e)})},delay:function(e,t){return e=b.fx?b.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,n){var r,i=1,o=b.Deferred(),a=this,s=this.length,u=function(){--i||o.resolveWith(a,[a])};"string"!=typeof e&&(n=e,e=t),e=e||"fx";while(s--)r=b._data(a[s],e+"queueHooks"),r&&r.empty&&(i++,r.empty.add(u));return u(),o.promise(n)}});var I,z,X=/[\t\r\n]/g,U=/\r/g,V=/^(?:input|select|textarea|button|object)$/i,Y=/^(?:a|area)$/i,J=/^(?:checked|selected|autofocus|autoplay|async|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped)$/i,G=/^(?:checked|selected)$/i,Q=b.support.getSetAttribute,K=b.support.input;b.fn.extend({attr:function(e,t){return b.access(this,b.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){b.removeAttr(this,e)})},prop:function(e,t){return b.access(this,b.prop,e,t,arguments.length>1)},removeProp:function(e){return e=b.propFix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(n){}})},addClass:function(e){var t,n,r,i,o,a=0,s=this.length,u="string"==typeof e&&e;if(b.isFunction(e))return this.each(function(t){b(this).addClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(w)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(X," "):" ")){o=0;while(i=t[o++])0>r.indexOf(" "+i+" ")&&(r+=i+" ");n.className=b.trim(r)}return this},removeClass:function(e){var t,n,r,i,o,a=0,s=this.length,u=0===arguments.length||"string"==typeof e&&e;if(b.isFunction(e))return this.each(function(t){b(this).removeClass(e.call(this,t,this.className))});if(u)for(t=(e||"").match(w)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(X," "):"")){o=0;while(i=t[o++])while(r.indexOf(" "+i+" ")>=0)r=r.replace(" "+i+" "," ");n.className=e?b.trim(r):""}return this},toggleClass:function(e,t){var n=typeof e,r="boolean"==typeof t;return b.isFunction(e)?this.each(function(n){b(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n){var o,a=0,s=b(this),u=t,l=e.match(w)||[];while(o=l[a++])u=r?u:!s.hasClass(o),s[u?"addClass":"removeClass"](o)}else(n===i||"boolean"===n)&&(this.className&&b._data(this,"__className__",this.className),this.className=this.className||e===!1?"":b._data(this,"__className__")||"")})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(X," ").indexOf(t)>=0)return!0;return!1},val:function(e){var n,r,i,o=this[0];{if(arguments.length)return i=b.isFunction(e),this.each(function(n){var o,a=b(this);1===this.nodeType&&(o=i?e.call(this,n,a.val()):e,null==o?o="":"number"==typeof o?o+="":b.isArray(o)&&(o=b.map(o,function(e){return null==e?"":e+""})),r=b.valHooks[this.type]||b.valHooks[this.nodeName.toLowerCase()],r&&"set"in r&&r.set(this,o,"value")!==t||(this.value=o))});if(o)return r=b.valHooks[o.type]||b.valHooks[o.nodeName.toLowerCase()],r&&"get"in r&&(n=r.get(o,"value"))!==t?n:(n=o.value,"string"==typeof n?n.replace(U,""):null==n?"":n)}}}),b.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||0>i,a=o?null:[],s=o?i+1:r.length,u=0>i?s:o?i:0;for(;s>u;u++)if(n=r[u],!(!n.selected&&u!==i||(b.support.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&b.nodeName(n.parentNode,"optgroup"))){if(t=b(n).val(),o)return t;a.push(t)}return a},set:function(e,t){var n=b.makeArray(t);return b(e).find("option").each(function(){this.selected=b.inArray(b(this).val(),n)>=0}),n.length||(e.selectedIndex=-1),n}}},attr:function(e,n,r){var o,a,s,u=e.nodeType;if(e&&3!==u&&8!==u&&2!==u)return typeof e.getAttribute===i?b.prop(e,n,r):(a=1!==u||!b.isXMLDoc(e),a&&(n=n.toLowerCase(),o=b.attrHooks[n]||(J.test(n)?z:I)),r===t?o&&a&&"get"in o&&null!==(s=o.get(e,n))?s:(typeof e.getAttribute!==i&&(s=e.getAttribute(n)),null==s?t:s):null!==r?o&&a&&"set"in o&&(s=o.set(e,r,n))!==t?s:(e.setAttribute(n,r+""),r):(b.removeAttr(e,n),t))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(w);if(o&&1===e.nodeType)while(n=o[i++])r=b.propFix[n]||n,J.test(n)?!Q&&G.test(n)?e[b.camelCase("default-"+n)]=e[r]=!1:e[r]=!1:b.attr(e,n,""),e.removeAttribute(Q?n:r)},attrHooks:{type:{set:function(e,t){if(!b.support.radioValue&&"radio"===t&&b.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(e,n,r){var i,o,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return a=1!==s||!b.isXMLDoc(e),a&&(n=b.propFix[n]||n,o=b.propHooks[n]),r!==t?o&&"set"in o&&(i=o.set(e,r,n))!==t?i:e[n]=r:o&&"get"in o&&null!==(i=o.get(e,n))?i:e[n]},propHooks:{tabIndex:{get:function(e){var n=e.getAttributeNode("tabindex");return n&&n.specified?parseInt(n.value,10):V.test(e.nodeName)||Y.test(e.nodeName)&&e.href?0:t}}}}),z={get:function(e,n){var r=b.prop(e,n),i="boolean"==typeof r&&e.getAttribute(n),o="boolean"==typeof r?K&&Q?null!=i:G.test(n)?e[b.camelCase("default-"+n)]:!!i:e.getAttributeNode(n);return o&&o.value!==!1?n.toLowerCase():t},set:function(e,t,n){return t===!1?b.removeAttr(e,n):K&&Q||!G.test(n)?e.setAttribute(!Q&&b.propFix[n]||n,n):e[b.camelCase("default-"+n)]=e[n]=!0,n}},K&&Q||(b.attrHooks.value={get:function(e,n){var r=e.getAttributeNode(n);return b.nodeName(e,"input")?e.defaultValue:r&&r.specified?r.value:t},set:function(e,n,r){return b.nodeName(e,"input")?(e.defaultValue=n,t):I&&I.set(e,n,r)}}),Q||(I=b.valHooks.button={get:function(e,n){var r=e.getAttributeNode(n);return r&&("id"===n||"name"===n||"coords"===n?""!==r.value:r.specified)?r.value:t},set:function(e,n,r){var i=e.getAttributeNode(r);return i||e.setAttributeNode(i=e.ownerDocument.createAttribute(r)),i.value=n+="","value"===r||n===e.getAttribute(r)?n:t}},b.attrHooks.contenteditable={get:I.get,set:function(e,t,n){I.set(e,""===t?!1:t,n)}},b.each(["width","height"],function(e,n){b.attrHooks[n]=b.extend(b.attrHooks[n],{set:function(e,r){return""===r?(e.setAttribute(n,"auto"),r):t}})})),b.support.hrefNormalized||(b.each(["href","src","width","height"],function(e,n){b.attrHooks[n]=b.extend(b.attrHooks[n],{get:function(e){var r=e.getAttribute(n,2);return null==r?t:r}})}),b.each(["href","src"],function(e,t){b.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}})),b.support.style||(b.attrHooks.style={get:function(e){return e.style.cssText||t},set:function(e,t){return e.style.cssText=t+""}}),b.support.optSelected||(b.propHooks.selected=b.extend(b.propHooks.selected,{get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}})),b.support.enctype||(b.propFix.enctype="encoding"),b.support.checkOn||b.each(["radio","checkbox"],function(){b.valHooks[this]={get:function(e){return null===e.getAttribute("value")?"on":e.value}}}),b.each(["radio","checkbox"],function(){b.valHooks[this]=b.extend(b.valHooks[this],{set:function(e,n){return b.isArray(n)?e.checked=b.inArray(b(e).val(),n)>=0:t}})});var Z=/^(?:input|select|textarea)$/i,et=/^key/,tt=/^(?:mouse|contextmenu)|click/,nt=/^(?:focusinfocus|focusoutblur)$/,rt=/^([^.]*)(?:\.(.+)|)$/;function it(){return!0}function ot(){return!1}b.event={global:{},add:function(e,n,r,o,a){var s,u,l,c,p,f,d,h,g,m,y,v=b._data(e);if(v){r.handler&&(c=r,r=c.handler,a=c.selector),r.guid||(r.guid=b.guid++),(u=v.events)||(u=v.events={}),(f=v.handle)||(f=v.handle=function(e){return typeof b===i||e&&b.event.triggered===e.type?t:b.event.dispatch.apply(f.elem,arguments)},f.elem=e),n=(n||"").match(w)||[""],l=n.length;while(l--)s=rt.exec(n[l])||[],g=y=s[1],m=(s[2]||"").split(".").sort(),p=b.event.special[g]||{},g=(a?p.delegateType:p.bindType)||g,p=b.event.special[g]||{},d=b.extend({type:g,origType:y,data:o,handler:r,guid:r.guid,selector:a,needsContext:a&&b.expr.match.needsContext.test(a),namespace:m.join(".")},c),(h=u[g])||(h=u[g]=[],h.delegateCount=0,p.setup&&p.setup.call(e,o,m,f)!==!1||(e.addEventListener?e.addEventListener(g,f,!1):e.attachEvent&&e.attachEvent("on"+g,f))),p.add&&(p.add.call(e,d),d.handler.guid||(d.handler.guid=r.guid)),a?h.splice(h.delegateCount++,0,d):h.push(d),b.event.global[g]=!0;e=null}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,p,f,d,h,g,m=b.hasData(e)&&b._data(e);if(m&&(c=m.events)){t=(t||"").match(w)||[""],l=t.length;while(l--)if(s=rt.exec(t[l])||[],d=g=s[1],h=(s[2]||"").split(".").sort(),d){p=b.event.special[d]||{},d=(r?p.delegateType:p.bindType)||d,f=c[d]||[],s=s[2]&&RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),u=o=f.length;while(o--)a=f[o],!i&&g!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||r&&r!==a.selector&&("**"!==r||!a.selector)||(f.splice(o,1),a.selector&&f.delegateCount--,p.remove&&p.remove.call(e,a));u&&!f.length&&(p.teardown&&p.teardown.call(e,h,m.handle)!==!1||b.removeEvent(e,d,m.handle),delete c[d])}else for(d in c)b.event.remove(e,d+t[l],n,r,!0);b.isEmptyObject(c)&&(delete m.handle,b._removeData(e,"events"))}},trigger:function(n,r,i,a){var s,u,l,c,p,f,d,h=[i||o],g=y.call(n,"type")?n.type:n,m=y.call(n,"namespace")?n.namespace.split("."):[];if(l=f=i=i||o,3!==i.nodeType&&8!==i.nodeType&&!nt.test(g+b.event.triggered)&&(g.indexOf(".")>=0&&(m=g.split("."),g=m.shift(),m.sort()),u=0>g.indexOf(":")&&"on"+g,n=n[b.expando]?n:new b.Event(g,"object"==typeof n&&n),n.isTrigger=!0,n.namespace=m.join("."),n.namespace_re=n.namespace?RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=t,n.target||(n.target=i),r=null==r?[n]:b.makeArray(r,[n]),p=b.event.special[g]||{},a||!p.trigger||p.trigger.apply(i,r)!==!1)){if(!a&&!p.noBubble&&!b.isWindow(i)){for(c=p.delegateType||g,nt.test(c+g)||(l=l.parentNode);l;l=l.parentNode)h.push(l),f=l;f===(i.ownerDocument||o)&&h.push(f.defaultView||f.parentWindow||e)}d=0;while((l=h[d++])&&!n.isPropagationStopped())n.type=d>1?c:p.bindType||g,s=(b._data(l,"events")||{})[n.type]&&b._data(l,"handle"),s&&s.apply(l,r),s=u&&l[u],s&&b.acceptData(l)&&s.apply&&s.apply(l,r)===!1&&n.preventDefault();if(n.type=g,!(a||n.isDefaultPrevented()||p._default&&p._default.apply(i.ownerDocument,r)!==!1||"click"===g&&b.nodeName(i,"a")||!b.acceptData(i)||!u||!i[g]||b.isWindow(i))){f=i[u],f&&(i[u]=null),b.event.triggered=g;try{i[g]()}catch(v){}b.event.triggered=t,f&&(i[u]=f)}return n.result}},dispatch:function(e){e=b.event.fix(e);var n,r,i,o,a,s=[],u=h.call(arguments),l=(b._data(this,"events")||{})[e.type]||[],c=b.event.special[e.type]||{};if(u[0]=e,e.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,e)!==!1){s=b.event.handlers.call(this,e,l),n=0;while((o=s[n++])&&!e.isPropagationStopped()){e.currentTarget=o.elem,a=0;while((i=o.handlers[a++])&&!e.isImmediatePropagationStopped())(!e.namespace_re||e.namespace_re.test(i.namespace))&&(e.handleObj=i,e.data=i.data,r=((b.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,u),r!==t&&(e.result=r)===!1&&(e.preventDefault(),e.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,n){var r,i,o,a,s=[],u=n.delegateCount,l=e.target;if(u&&l.nodeType&&(!e.button||"click"!==e.type))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(l.disabled!==!0||"click"!==e.type)){for(o=[],a=0;u>a;a++)i=n[a],r=i.selector+" ",o[r]===t&&(o[r]=i.needsContext?b(r,this).index(l)>=0:b.find(r,this,null,[l]).length),o[r]&&o.push(i);o.length&&s.push({elem:l,handlers:o})}return n.length>u&&s.push({elem:this,handlers:n.slice(u)}),s},fix:function(e){if(e[b.expando])return e;var t,n,r,i=e.type,a=e,s=this.fixHooks[i];s||(this.fixHooks[i]=s=tt.test(i)?this.mouseHooks:et.test(i)?this.keyHooks:{}),r=s.props?this.props.concat(s.props):this.props,e=new b.Event(a),t=r.length;while(t--)n=r[t],e[n]=a[n];return e.target||(e.target=a.srcElement||o),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,s.filter?s.filter(e,a):e},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,n){var r,i,a,s=n.button,u=n.fromElement;return null==e.pageX&&null!=n.clientX&&(i=e.target.ownerDocument||o,a=i.documentElement,r=i.body,e.pageX=n.clientX+(a&&a.scrollLeft||r&&r.scrollLeft||0)-(a&&a.clientLeft||r&&r.clientLeft||0),e.pageY=n.clientY+(a&&a.scrollTop||r&&r.scrollTop||0)-(a&&a.clientTop||r&&r.clientTop||0)),!e.relatedTarget&&u&&(e.relatedTarget=u===e.target?n.toElement:u),e.which||s===t||(e.which=1&s?1:2&s?3:4&s?2:0),e}},special:{load:{noBubble:!0},click:{trigger:function(){return b.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):t}},focus:{trigger:function(){if(this!==o.activeElement&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){return this===o.activeElement&&this.blur?(this.blur(),!1):t},delegateType:"focusout"},beforeunload:{postDispatch:function(e){e.result!==t&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=b.extend(new b.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?b.event.trigger(i,null,t):b.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},b.removeEvent=o.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var r="on"+t;e.detachEvent&&(typeof e[r]===i&&(e[r]=null),e.detachEvent(r,n))},b.Event=function(e,n){return this instanceof b.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.returnValue===!1||e.getPreventDefault&&e.getPreventDefault()?it:ot):this.type=e,n&&b.extend(this,n),this.timeStamp=e&&e.timeStamp||b.now(),this[b.expando]=!0,t):new b.Event(e,n)},b.Event.prototype={isDefaultPrevented:ot,isPropagationStopped:ot,isImmediatePropagationStopped:ot,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=it,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=it,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=it,this.stopPropagation()}},b.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){b.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj; +return(!i||i!==r&&!b.contains(r,i))&&(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),b.support.submitBubbles||(b.event.special.submit={setup:function(){return b.nodeName(this,"form")?!1:(b.event.add(this,"click._submit keypress._submit",function(e){var n=e.target,r=b.nodeName(n,"input")||b.nodeName(n,"button")?n.form:t;r&&!b._data(r,"submitBubbles")&&(b.event.add(r,"submit._submit",function(e){e._submit_bubble=!0}),b._data(r,"submitBubbles",!0))}),t)},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&b.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){return b.nodeName(this,"form")?!1:(b.event.remove(this,"._submit"),t)}}),b.support.changeBubbles||(b.event.special.change={setup:function(){return Z.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(b.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),b.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),b.event.simulate("change",this,e,!0)})),!1):(b.event.add(this,"beforeactivate._change",function(e){var t=e.target;Z.test(t.nodeName)&&!b._data(t,"changeBubbles")&&(b.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||b.event.simulate("change",this.parentNode,e,!0)}),b._data(t,"changeBubbles",!0))}),t)},handle:function(e){var n=e.target;return this!==n||e.isSimulated||e.isTrigger||"radio"!==n.type&&"checkbox"!==n.type?e.handleObj.handler.apply(this,arguments):t},teardown:function(){return b.event.remove(this,"._change"),!Z.test(this.nodeName)}}),b.support.focusinBubbles||b.each({focus:"focusin",blur:"focusout"},function(e,t){var n=0,r=function(e){b.event.simulate(t,e.target,b.event.fix(e),!0)};b.event.special[t]={setup:function(){0===n++&&o.addEventListener(e,r,!0)},teardown:function(){0===--n&&o.removeEventListener(e,r,!0)}}}),b.fn.extend({on:function(e,n,r,i,o){var a,s;if("object"==typeof e){"string"!=typeof n&&(r=r||n,n=t);for(a in e)this.on(a,n,r,e[a],o);return this}if(null==r&&null==i?(i=n,r=n=t):null==i&&("string"==typeof n?(i=r,r=t):(i=r,r=n,n=t)),i===!1)i=ot;else if(!i)return this;return 1===o&&(s=i,i=function(e){return b().off(e),s.apply(this,arguments)},i.guid=s.guid||(s.guid=b.guid++)),this.each(function(){b.event.add(this,e,i,r,n)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,n,r){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,b(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(o in e)this.off(o,n,e[o]);return this}return(n===!1||"function"==typeof n)&&(r=n,n=t),r===!1&&(r=ot),this.each(function(){b.event.remove(this,e,r,n)})},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},trigger:function(e,t){return this.each(function(){b.event.trigger(e,t,this)})},triggerHandler:function(e,n){var r=this[0];return r?b.event.trigger(e,n,r,!0):t}}),function(e,t){var n,r,i,o,a,s,u,l,c,p,f,d,h,g,m,y,v,x="sizzle"+-new Date,w=e.document,T={},N=0,C=0,k=it(),E=it(),S=it(),A=typeof t,j=1<<31,D=[],L=D.pop,H=D.push,q=D.slice,M=D.indexOf||function(e){var t=0,n=this.length;for(;n>t;t++)if(this[t]===e)return t;return-1},_="[\\x20\\t\\r\\n\\f]",F="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",O=F.replace("w","w#"),B="([*^$|!~]?=)",P="\\["+_+"*("+F+")"+_+"*(?:"+B+_+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+O+")|)|)"+_+"*\\]",R=":("+F+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+P.replace(3,8)+")*)|.*)\\)|)",W=RegExp("^"+_+"+|((?:^|[^\\\\])(?:\\\\.)*)"+_+"+$","g"),$=RegExp("^"+_+"*,"+_+"*"),I=RegExp("^"+_+"*([\\x20\\t\\r\\n\\f>+~])"+_+"*"),z=RegExp(R),X=RegExp("^"+O+"$"),U={ID:RegExp("^#("+F+")"),CLASS:RegExp("^\\.("+F+")"),NAME:RegExp("^\\[name=['\"]?("+F+")['\"]?\\]"),TAG:RegExp("^("+F.replace("w","w*")+")"),ATTR:RegExp("^"+P),PSEUDO:RegExp("^"+R),CHILD:RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+_+"*(even|odd|(([+-]|)(\\d*)n|)"+_+"*(?:([+-]|)"+_+"*(\\d+)|))"+_+"*\\)|)","i"),needsContext:RegExp("^"+_+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+_+"*((?:-\\d)?\\d*)"+_+"*\\)|)(?=[^-]|$)","i")},V=/[\x20\t\r\n\f]*[+~]/,Y=/^[^{]+\{\s*\[native code/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,G=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,K=/'|\\/g,Z=/\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,et=/\\([\da-fA-F]{1,6}[\x20\t\r\n\f]?|.)/g,tt=function(e,t){var n="0x"+t-65536;return n!==n?t:0>n?String.fromCharCode(n+65536):String.fromCharCode(55296|n>>10,56320|1023&n)};try{q.call(w.documentElement.childNodes,0)[0].nodeType}catch(nt){q=function(e){var t,n=[];while(t=this[e++])n.push(t);return n}}function rt(e){return Y.test(e+"")}function it(){var e,t=[];return e=function(n,r){return t.push(n+=" ")>i.cacheLength&&delete e[t.shift()],e[n]=r}}function ot(e){return e[x]=!0,e}function at(e){var t=p.createElement("div");try{return e(t)}catch(n){return!1}finally{t=null}}function st(e,t,n,r){var i,o,a,s,u,l,f,g,m,v;if((t?t.ownerDocument||t:w)!==p&&c(t),t=t||p,n=n||[],!e||"string"!=typeof e)return n;if(1!==(s=t.nodeType)&&9!==s)return[];if(!d&&!r){if(i=J.exec(e))if(a=i[1]){if(9===s){if(o=t.getElementById(a),!o||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(a))&&y(t,o)&&o.id===a)return n.push(o),n}else{if(i[2])return H.apply(n,q.call(t.getElementsByTagName(e),0)),n;if((a=i[3])&&T.getByClassName&&t.getElementsByClassName)return H.apply(n,q.call(t.getElementsByClassName(a),0)),n}if(T.qsa&&!h.test(e)){if(f=!0,g=x,m=t,v=9===s&&e,1===s&&"object"!==t.nodeName.toLowerCase()){l=ft(e),(f=t.getAttribute("id"))?g=f.replace(K,"\\$&"):t.setAttribute("id",g),g="[id='"+g+"'] ",u=l.length;while(u--)l[u]=g+dt(l[u]);m=V.test(e)&&t.parentNode||t,v=l.join(",")}if(v)try{return H.apply(n,q.call(m.querySelectorAll(v),0)),n}catch(b){}finally{f||t.removeAttribute("id")}}}return wt(e.replace(W,"$1"),t,n,r)}a=st.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},c=st.setDocument=function(e){var n=e?e.ownerDocument||e:w;return n!==p&&9===n.nodeType&&n.documentElement?(p=n,f=n.documentElement,d=a(n),T.tagNameNoComments=at(function(e){return e.appendChild(n.createComment("")),!e.getElementsByTagName("*").length}),T.attributes=at(function(e){e.innerHTML="";var t=typeof e.lastChild.getAttribute("multiple");return"boolean"!==t&&"string"!==t}),T.getByClassName=at(function(e){return e.innerHTML="",e.getElementsByClassName&&e.getElementsByClassName("e").length?(e.lastChild.className="e",2===e.getElementsByClassName("e").length):!1}),T.getByName=at(function(e){e.id=x+0,e.innerHTML="
    ",f.insertBefore(e,f.firstChild);var t=n.getElementsByName&&n.getElementsByName(x).length===2+n.getElementsByName(x+0).length;return T.getIdNotName=!n.getElementById(x),f.removeChild(e),t}),i.attrHandle=at(function(e){return e.innerHTML="",e.firstChild&&typeof e.firstChild.getAttribute!==A&&"#"===e.firstChild.getAttribute("href")})?{}:{href:function(e){return e.getAttribute("href",2)},type:function(e){return e.getAttribute("type")}},T.getIdNotName?(i.find.ID=function(e,t){if(typeof t.getElementById!==A&&!d){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},i.filter.ID=function(e){var t=e.replace(et,tt);return function(e){return e.getAttribute("id")===t}}):(i.find.ID=function(e,n){if(typeof n.getElementById!==A&&!d){var r=n.getElementById(e);return r?r.id===e||typeof r.getAttributeNode!==A&&r.getAttributeNode("id").value===e?[r]:t:[]}},i.filter.ID=function(e){var t=e.replace(et,tt);return function(e){var n=typeof e.getAttributeNode!==A&&e.getAttributeNode("id");return n&&n.value===t}}),i.find.TAG=T.tagNameNoComments?function(e,n){return typeof n.getElementsByTagName!==A?n.getElementsByTagName(e):t}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},i.find.NAME=T.getByName&&function(e,n){return typeof n.getElementsByName!==A?n.getElementsByName(name):t},i.find.CLASS=T.getByClassName&&function(e,n){return typeof n.getElementsByClassName===A||d?t:n.getElementsByClassName(e)},g=[],h=[":focus"],(T.qsa=rt(n.querySelectorAll))&&(at(function(e){e.innerHTML="",e.querySelectorAll("[selected]").length||h.push("\\["+_+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),e.querySelectorAll(":checked").length||h.push(":checked")}),at(function(e){e.innerHTML="",e.querySelectorAll("[i^='']").length&&h.push("[*^$]="+_+"*(?:\"\"|'')"),e.querySelectorAll(":enabled").length||h.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),h.push(",.*:")})),(T.matchesSelector=rt(m=f.matchesSelector||f.mozMatchesSelector||f.webkitMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&at(function(e){T.disconnectedMatch=m.call(e,"div"),m.call(e,"[s!='']:x"),g.push("!=",R)}),h=RegExp(h.join("|")),g=RegExp(g.join("|")),y=rt(f.contains)||f.compareDocumentPosition?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},v=f.compareDocumentPosition?function(e,t){var r;return e===t?(u=!0,0):(r=t.compareDocumentPosition&&e.compareDocumentPosition&&e.compareDocumentPosition(t))?1&r||e.parentNode&&11===e.parentNode.nodeType?e===n||y(w,e)?-1:t===n||y(w,t)?1:0:4&r?-1:1:e.compareDocumentPosition?-1:1}:function(e,t){var r,i=0,o=e.parentNode,a=t.parentNode,s=[e],l=[t];if(e===t)return u=!0,0;if(!o||!a)return e===n?-1:t===n?1:o?-1:a?1:0;if(o===a)return ut(e,t);r=e;while(r=r.parentNode)s.unshift(r);r=t;while(r=r.parentNode)l.unshift(r);while(s[i]===l[i])i++;return i?ut(s[i],l[i]):s[i]===w?-1:l[i]===w?1:0},u=!1,[0,0].sort(v),T.detectDuplicates=u,p):p},st.matches=function(e,t){return st(e,null,null,t)},st.matchesSelector=function(e,t){if((e.ownerDocument||e)!==p&&c(e),t=t.replace(Z,"='$1']"),!(!T.matchesSelector||d||g&&g.test(t)||h.test(t)))try{var n=m.call(e,t);if(n||T.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(r){}return st(t,p,null,[e]).length>0},st.contains=function(e,t){return(e.ownerDocument||e)!==p&&c(e),y(e,t)},st.attr=function(e,t){var n;return(e.ownerDocument||e)!==p&&c(e),d||(t=t.toLowerCase()),(n=i.attrHandle[t])?n(e):d||T.attributes?e.getAttribute(t):((n=e.getAttributeNode(t))||e.getAttribute(t))&&e[t]===!0?t:n&&n.specified?n.value:null},st.error=function(e){throw Error("Syntax error, unrecognized expression: "+e)},st.uniqueSort=function(e){var t,n=[],r=1,i=0;if(u=!T.detectDuplicates,e.sort(v),u){for(;t=e[r];r++)t===e[r-1]&&(i=n.push(r));while(i--)e.splice(n[i],1)}return e};function ut(e,t){var n=t&&e,r=n&&(~t.sourceIndex||j)-(~e.sourceIndex||j);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function lt(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function ct(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function pt(e){return ot(function(t){return t=+t,ot(function(n,r){var i,o=e([],n.length,t),a=o.length;while(a--)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}o=st.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r];r++)n+=o(t);return n},i=st.selectors={cacheLength:50,createPseudo:ot,match:U,find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(et,tt),e[3]=(e[4]||e[5]||"").replace(et,tt),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||st.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&st.error(e[0]),e},PSEUDO:function(e){var t,n=!e[5]&&e[2];return U.CHILD.test(e[0])?null:(e[4]?e[2]=e[4]:n&&z.test(n)&&(t=ft(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){return"*"===e?function(){return!0}:(e=e.replace(et,tt).toLowerCase(),function(t){return t.nodeName&&t.nodeName.toLowerCase()===e})},CLASS:function(e){var t=k[e+" "];return t||(t=RegExp("(^|"+_+")"+e+"("+_+"|$)"))&&k(e,function(e){return t.test(e.className||typeof e.getAttribute!==A&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=st.attr(r,e);return null==i?"!="===t:t?(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i+" ").indexOf(n)>-1:"|="===t?i===n||i.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,p,f,d,h,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,y=s&&t.nodeName.toLowerCase(),v=!u&&!s;if(m){if(o){while(g){p=t;while(p=p[g])if(s?p.nodeName.toLowerCase()===y:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&v){c=m[x]||(m[x]={}),l=c[e]||[],d=l[0]===N&&l[1],f=l[0]===N&&l[2],p=d&&m.childNodes[d];while(p=++d&&p&&p[g]||(f=d=0)||h.pop())if(1===p.nodeType&&++f&&p===t){c[e]=[N,d,f];break}}else if(v&&(l=(t[x]||(t[x]={}))[e])&&l[0]===N)f=l[1];else while(p=++d&&p&&p[g]||(f=d=0)||h.pop())if((s?p.nodeName.toLowerCase()===y:1===p.nodeType)&&++f&&(v&&((p[x]||(p[x]={}))[e]=[N,f]),p===t))break;return f-=i,f===r||0===f%r&&f/r>=0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||st.error("unsupported pseudo: "+e);return r[x]?r(t):r.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?ot(function(e,n){var i,o=r(e,t),a=o.length;while(a--)i=M.call(e,o[a]),e[i]=!(n[i]=o[a])}):function(e){return r(e,0,n)}):r}},pseudos:{not:ot(function(e){var t=[],n=[],r=s(e.replace(W,"$1"));return r[x]?ot(function(e,t,n,i){var o,a=r(e,null,i,[]),s=e.length;while(s--)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),!n.pop()}}),has:ot(function(e){return function(t){return st(e,t).length>0}}),contains:ot(function(e){return function(t){return(t.textContent||t.innerText||o(t)).indexOf(e)>-1}}),lang:ot(function(e){return X.test(e||"")||st.error("unsupported lang: "+e),e=e.replace(et,tt).toLowerCase(),function(t){var n;do if(n=d?t.getAttribute("xml:lang")||t.getAttribute("lang"):t.lang)return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeName>"@"||3===e.nodeType||4===e.nodeType)return!1;return!0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return Q.test(e.nodeName)},input:function(e){return G.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||t.toLowerCase()===e.type)},first:pt(function(){return[0]}),last:pt(function(e,t){return[t-1]}),eq:pt(function(e,t,n){return[0>n?n+t:n]}),even:pt(function(e,t){var n=0;for(;t>n;n+=2)e.push(n);return e}),odd:pt(function(e,t){var n=1;for(;t>n;n+=2)e.push(n);return e}),lt:pt(function(e,t,n){var r=0>n?n+t:n;for(;--r>=0;)e.push(r);return e}),gt:pt(function(e,t,n){var r=0>n?n+t:n;for(;t>++r;)e.push(r);return e})}};for(n in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[n]=lt(n);for(n in{submit:!0,reset:!0})i.pseudos[n]=ct(n);function ft(e,t){var n,r,o,a,s,u,l,c=E[e+" "];if(c)return t?0:c.slice(0);s=e,u=[],l=i.preFilter;while(s){(!n||(r=$.exec(s)))&&(r&&(s=s.slice(r[0].length)||s),u.push(o=[])),n=!1,(r=I.exec(s))&&(n=r.shift(),o.push({value:n,type:r[0].replace(W," ")}),s=s.slice(n.length));for(a in i.filter)!(r=U[a].exec(s))||l[a]&&!(r=l[a](r))||(n=r.shift(),o.push({value:n,type:a,matches:r}),s=s.slice(n.length));if(!n)break}return t?s.length:s?st.error(e):E(e,u).slice(0)}function dt(e){var t=0,n=e.length,r="";for(;n>t;t++)r+=e[t].value;return r}function ht(e,t,n){var i=t.dir,o=n&&"parentNode"===i,a=C++;return t.first?function(t,n,r){while(t=t[i])if(1===t.nodeType||o)return e(t,n,r)}:function(t,n,s){var u,l,c,p=N+" "+a;if(s){while(t=t[i])if((1===t.nodeType||o)&&e(t,n,s))return!0}else while(t=t[i])if(1===t.nodeType||o)if(c=t[x]||(t[x]={}),(l=c[i])&&l[0]===p){if((u=l[1])===!0||u===r)return u===!0}else if(l=c[i]=[p],l[1]=e(t,n,s)||r,l[1]===!0)return!0}}function gt(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function mt(e,t,n,r,i){var o,a=[],s=0,u=e.length,l=null!=t;for(;u>s;s++)(o=e[s])&&(!n||n(o,r,i))&&(a.push(o),l&&t.push(s));return a}function yt(e,t,n,r,i,o){return r&&!r[x]&&(r=yt(r)),i&&!i[x]&&(i=yt(i,o)),ot(function(o,a,s,u){var l,c,p,f=[],d=[],h=a.length,g=o||xt(t||"*",s.nodeType?[s]:s,[]),m=!e||!o&&t?g:mt(g,f,e,s,u),y=n?i||(o?e:h||r)?[]:a:m;if(n&&n(m,y,s,u),r){l=mt(y,d),r(l,[],s,u),c=l.length;while(c--)(p=l[c])&&(y[d[c]]=!(m[d[c]]=p))}if(o){if(i||e){if(i){l=[],c=y.length;while(c--)(p=y[c])&&l.push(m[c]=p);i(null,y=[],l,u)}c=y.length;while(c--)(p=y[c])&&(l=i?M.call(o,p):f[c])>-1&&(o[l]=!(a[l]=p))}}else y=mt(y===a?y.splice(h,y.length):y),i?i(null,a,y,u):H.apply(a,y)})}function vt(e){var t,n,r,o=e.length,a=i.relative[e[0].type],s=a||i.relative[" "],u=a?1:0,c=ht(function(e){return e===t},s,!0),p=ht(function(e){return M.call(t,e)>-1},s,!0),f=[function(e,n,r){return!a&&(r||n!==l)||((t=n).nodeType?c(e,n,r):p(e,n,r))}];for(;o>u;u++)if(n=i.relative[e[u].type])f=[ht(gt(f),n)];else{if(n=i.filter[e[u].type].apply(null,e[u].matches),n[x]){for(r=++u;o>r;r++)if(i.relative[e[r].type])break;return yt(u>1&>(f),u>1&&dt(e.slice(0,u-1)).replace(W,"$1"),n,r>u&&vt(e.slice(u,r)),o>r&&vt(e=e.slice(r)),o>r&&dt(e))}f.push(n)}return gt(f)}function bt(e,t){var n=0,o=t.length>0,a=e.length>0,s=function(s,u,c,f,d){var h,g,m,y=[],v=0,b="0",x=s&&[],w=null!=d,T=l,C=s||a&&i.find.TAG("*",d&&u.parentNode||u),k=N+=null==T?1:Math.random()||.1;for(w&&(l=u!==p&&u,r=n);null!=(h=C[b]);b++){if(a&&h){g=0;while(m=e[g++])if(m(h,u,c)){f.push(h);break}w&&(N=k,r=++n)}o&&((h=!m&&h)&&v--,s&&x.push(h))}if(v+=b,o&&b!==v){g=0;while(m=t[g++])m(x,y,u,c);if(s){if(v>0)while(b--)x[b]||y[b]||(y[b]=L.call(f));y=mt(y)}H.apply(f,y),w&&!s&&y.length>0&&v+t.length>1&&st.uniqueSort(f)}return w&&(N=k,l=T),x};return o?ot(s):s}s=st.compile=function(e,t){var n,r=[],i=[],o=S[e+" "];if(!o){t||(t=ft(e)),n=t.length;while(n--)o=vt(t[n]),o[x]?r.push(o):i.push(o);o=S(e,bt(i,r))}return o};function xt(e,t,n){var r=0,i=t.length;for(;i>r;r++)st(e,t[r],n);return n}function wt(e,t,n,r){var o,a,u,l,c,p=ft(e);if(!r&&1===p.length){if(a=p[0]=p[0].slice(0),a.length>2&&"ID"===(u=a[0]).type&&9===t.nodeType&&!d&&i.relative[a[1].type]){if(t=i.find.ID(u.matches[0].replace(et,tt),t)[0],!t)return n;e=e.slice(a.shift().value.length)}o=U.needsContext.test(e)?0:a.length;while(o--){if(u=a[o],i.relative[l=u.type])break;if((c=i.find[l])&&(r=c(u.matches[0].replace(et,tt),V.test(a[0].type)&&t.parentNode||t))){if(a.splice(o,1),e=r.length&&dt(a),!e)return H.apply(n,q.call(r,0)),n;break}}}return s(e,p)(r,t,d,n,V.test(e)),n}i.pseudos.nth=i.pseudos.eq;function Tt(){}i.filters=Tt.prototype=i.pseudos,i.setFilters=new Tt,c(),st.attr=b.attr,b.find=st,b.expr=st.selectors,b.expr[":"]=b.expr.pseudos,b.unique=st.uniqueSort,b.text=st.getText,b.isXMLDoc=st.isXML,b.contains=st.contains}(e);var at=/Until$/,st=/^(?:parents|prev(?:Until|All))/,ut=/^.[^:#\[\.,]*$/,lt=b.expr.match.needsContext,ct={children:!0,contents:!0,next:!0,prev:!0};b.fn.extend({find:function(e){var t,n,r,i=this.length;if("string"!=typeof e)return r=this,this.pushStack(b(e).filter(function(){for(t=0;i>t;t++)if(b.contains(r[t],this))return!0}));for(n=[],t=0;i>t;t++)b.find(e,this[t],n);return n=this.pushStack(i>1?b.unique(n):n),n.selector=(this.selector?this.selector+" ":"")+e,n},has:function(e){var t,n=b(e,this),r=n.length;return this.filter(function(){for(t=0;r>t;t++)if(b.contains(this,n[t]))return!0})},not:function(e){return this.pushStack(ft(this,e,!1))},filter:function(e){return this.pushStack(ft(this,e,!0))},is:function(e){return!!e&&("string"==typeof e?lt.test(e)?b(e,this.context).index(this[0])>=0:b.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,t){var n,r=0,i=this.length,o=[],a=lt.test(e)||"string"!=typeof e?b(e,t||this.context):0;for(;i>r;r++){n=this[r];while(n&&n.ownerDocument&&n!==t&&11!==n.nodeType){if(a?a.index(n)>-1:b.find.matchesSelector(n,e)){o.push(n);break}n=n.parentNode}}return this.pushStack(o.length>1?b.unique(o):o)},index:function(e){return e?"string"==typeof e?b.inArray(this[0],b(e)):b.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){var n="string"==typeof e?b(e,t):b.makeArray(e&&e.nodeType?[e]:e),r=b.merge(this.get(),n);return this.pushStack(b.unique(r))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),b.fn.andSelf=b.fn.addBack;function pt(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}b.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return b.dir(e,"parentNode")},parentsUntil:function(e,t,n){return b.dir(e,"parentNode",n)},next:function(e){return pt(e,"nextSibling")},prev:function(e){return pt(e,"previousSibling")},nextAll:function(e){return b.dir(e,"nextSibling")},prevAll:function(e){return b.dir(e,"previousSibling")},nextUntil:function(e,t,n){return b.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return b.dir(e,"previousSibling",n)},siblings:function(e){return b.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return b.sibling(e.firstChild)},contents:function(e){return b.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:b.merge([],e.childNodes)}},function(e,t){b.fn[e]=function(n,r){var i=b.map(this,t,n);return at.test(e)||(r=n),r&&"string"==typeof r&&(i=b.filter(r,i)),i=this.length>1&&!ct[e]?b.unique(i):i,this.length>1&&st.test(e)&&(i=i.reverse()),this.pushStack(i)}}),b.extend({filter:function(e,t,n){return n&&(e=":not("+e+")"),1===t.length?b.find.matchesSelector(t[0],e)?[t[0]]:[]:b.find.matches(e,t)},dir:function(e,n,r){var i=[],o=e[n];while(o&&9!==o.nodeType&&(r===t||1!==o.nodeType||!b(o).is(r)))1===o.nodeType&&i.push(o),o=o[n];return i},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});function ft(e,t,n){if(t=t||0,b.isFunction(t))return b.grep(e,function(e,r){var i=!!t.call(e,r,e);return i===n});if(t.nodeType)return b.grep(e,function(e){return e===t===n});if("string"==typeof t){var r=b.grep(e,function(e){return 1===e.nodeType});if(ut.test(t))return b.filter(t,r,!n);t=b.filter(t,r)}return b.grep(e,function(e){return b.inArray(e,t)>=0===n})}function dt(e){var t=ht.split("|"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}var ht="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",gt=/ jQuery\d+="(?:null|\d+)"/g,mt=RegExp("<(?:"+ht+")[\\s/>]","i"),yt=/^\s+/,vt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,bt=/<([\w:]+)/,xt=/\s*$/g,At={option:[1,""],legend:[1,"
    ","
    "],area:[1,"",""],param:[1,"",""],thead:[1,"","
    "],tr:[2,"","
    "],col:[2,"","
    "],td:[3,"","
    "],_default:b.support.htmlSerialize?[0,"",""]:[1,"X
    ","
    "]},jt=dt(o),Dt=jt.appendChild(o.createElement("div"));At.optgroup=At.option,At.tbody=At.tfoot=At.colgroup=At.caption=At.thead,At.th=At.td,b.fn.extend({text:function(e){return b.access(this,function(e){return e===t?b.text(this):this.empty().append((this[0]&&this[0].ownerDocument||o).createTextNode(e))},null,e,arguments.length)},wrapAll:function(e){if(b.isFunction(e))return this.each(function(t){b(this).wrapAll(e.call(this,t))});if(this[0]){var t=b(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstChild&&1===e.firstChild.nodeType)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return b.isFunction(e)?this.each(function(t){b(this).wrapInner(e.call(this,t))}):this.each(function(){var t=b(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=b.isFunction(e);return this.each(function(n){b(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){b.nodeName(this,"body")||b(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(e){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&this.appendChild(e)})},prepend:function(){return this.domManip(arguments,!0,function(e){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&this.insertBefore(e,this.firstChild)})},before:function(){return this.domManip(arguments,!1,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,!1,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){var n,r=0;for(;null!=(n=this[r]);r++)(!e||b.filter(e,[n]).length>0)&&(t||1!==n.nodeType||b.cleanData(Ot(n)),n.parentNode&&(t&&b.contains(n.ownerDocument,n)&&Mt(Ot(n,"script")),n.parentNode.removeChild(n)));return this},empty:function(){var e,t=0;for(;null!=(e=this[t]);t++){1===e.nodeType&&b.cleanData(Ot(e,!1));while(e.firstChild)e.removeChild(e.firstChild);e.options&&b.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return b.clone(this,e,t)})},html:function(e){return b.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t)return 1===n.nodeType?n.innerHTML.replace(gt,""):t;if(!("string"!=typeof e||Tt.test(e)||!b.support.htmlSerialize&&mt.test(e)||!b.support.leadingWhitespace&&yt.test(e)||At[(bt.exec(e)||["",""])[1].toLowerCase()])){e=e.replace(vt,"<$1>");try{for(;i>r;r++)n=this[r]||{},1===n.nodeType&&(b.cleanData(Ot(n,!1)),n.innerHTML=e);n=0}catch(o){}}n&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(e){var t=b.isFunction(e);return t||"string"==typeof e||(e=b(e).not(this).detach()),this.domManip([e],!0,function(e){var t=this.nextSibling,n=this.parentNode;n&&(b(this).remove(),n.insertBefore(e,t))})},detach:function(e){return this.remove(e,!0)},domManip:function(e,n,r){e=f.apply([],e);var i,o,a,s,u,l,c=0,p=this.length,d=this,h=p-1,g=e[0],m=b.isFunction(g);if(m||!(1>=p||"string"!=typeof g||b.support.checkClone)&&Ct.test(g))return this.each(function(i){var o=d.eq(i);m&&(e[0]=g.call(this,i,n?o.html():t)),o.domManip(e,n,r)});if(p&&(l=b.buildFragment(e,this[0].ownerDocument,!1,this),i=l.firstChild,1===l.childNodes.length&&(l=i),i)){for(n=n&&b.nodeName(i,"tr"),s=b.map(Ot(l,"script"),Ht),a=s.length;p>c;c++)o=l,c!==h&&(o=b.clone(o,!0,!0),a&&b.merge(s,Ot(o,"script"))),r.call(n&&b.nodeName(this[c],"table")?Lt(this[c],"tbody"):this[c],o,c);if(a)for(u=s[s.length-1].ownerDocument,b.map(s,qt),c=0;a>c;c++)o=s[c],kt.test(o.type||"")&&!b._data(o,"globalEval")&&b.contains(u,o)&&(o.src?b.ajax({url:o.src,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0}):b.globalEval((o.text||o.textContent||o.innerHTML||"").replace(St,"")));l=i=null}return this}});function Lt(e,t){return e.getElementsByTagName(t)[0]||e.appendChild(e.ownerDocument.createElement(t))}function Ht(e){var t=e.getAttributeNode("type");return e.type=(t&&t.specified)+"/"+e.type,e}function qt(e){var t=Et.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function Mt(e,t){var n,r=0;for(;null!=(n=e[r]);r++)b._data(n,"globalEval",!t||b._data(t[r],"globalEval"))}function _t(e,t){if(1===t.nodeType&&b.hasData(e)){var n,r,i,o=b._data(e),a=b._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;i>r;r++)b.event.add(t,n,s[n][r])}a.data&&(a.data=b.extend({},a.data))}}function Ft(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!b.support.noCloneEvent&&t[b.expando]){i=b._data(t);for(r in i.events)b.removeEvent(t,r,i.handle);t.removeAttribute(b.expando)}"script"===n&&t.text!==e.text?(Ht(t).text=e.text,qt(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),b.support.html5Clone&&e.innerHTML&&!b.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&Nt.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}}b.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){b.fn[e]=function(e){var n,r=0,i=[],o=b(e),a=o.length-1;for(;a>=r;r++)n=r===a?this:this.clone(!0),b(o[r])[t](n),d.apply(i,n.get());return this.pushStack(i)}});function Ot(e,n){var r,o,a=0,s=typeof e.getElementsByTagName!==i?e.getElementsByTagName(n||"*"):typeof e.querySelectorAll!==i?e.querySelectorAll(n||"*"):t;if(!s)for(s=[],r=e.childNodes||e;null!=(o=r[a]);a++)!n||b.nodeName(o,n)?s.push(o):b.merge(s,Ot(o,n));return n===t||n&&b.nodeName(e,n)?b.merge([e],s):s}function Bt(e){Nt.test(e.type)&&(e.defaultChecked=e.checked)}b.extend({clone:function(e,t,n){var r,i,o,a,s,u=b.contains(e.ownerDocument,e);if(b.support.html5Clone||b.isXMLDoc(e)||!mt.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(Dt.innerHTML=e.outerHTML,Dt.removeChild(o=Dt.firstChild)),!(b.support.noCloneEvent&&b.support.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||b.isXMLDoc(e)))for(r=Ot(o),s=Ot(e),a=0;null!=(i=s[a]);++a)r[a]&&Ft(i,r[a]);if(t)if(n)for(s=s||Ot(e),r=r||Ot(o),a=0;null!=(i=s[a]);a++)_t(i,r[a]);else _t(e,o);return r=Ot(o,"script"),r.length>0&&Mt(r,!u&&Ot(e,"script")),r=s=i=null,o},buildFragment:function(e,t,n,r){var i,o,a,s,u,l,c,p=e.length,f=dt(t),d=[],h=0;for(;p>h;h++)if(o=e[h],o||0===o)if("object"===b.type(o))b.merge(d,o.nodeType?[o]:o);else if(wt.test(o)){s=s||f.appendChild(t.createElement("div")),u=(bt.exec(o)||["",""])[1].toLowerCase(),c=At[u]||At._default,s.innerHTML=c[1]+o.replace(vt,"<$1>")+c[2],i=c[0];while(i--)s=s.lastChild;if(!b.support.leadingWhitespace&&yt.test(o)&&d.push(t.createTextNode(yt.exec(o)[0])),!b.support.tbody){o="table"!==u||xt.test(o)?""!==c[1]||xt.test(o)?0:s:s.firstChild,i=o&&o.childNodes.length;while(i--)b.nodeName(l=o.childNodes[i],"tbody")&&!l.childNodes.length&&o.removeChild(l) +}b.merge(d,s.childNodes),s.textContent="";while(s.firstChild)s.removeChild(s.firstChild);s=f.lastChild}else d.push(t.createTextNode(o));s&&f.removeChild(s),b.support.appendChecked||b.grep(Ot(d,"input"),Bt),h=0;while(o=d[h++])if((!r||-1===b.inArray(o,r))&&(a=b.contains(o.ownerDocument,o),s=Ot(f.appendChild(o),"script"),a&&Mt(s),n)){i=0;while(o=s[i++])kt.test(o.type||"")&&n.push(o)}return s=null,f},cleanData:function(e,t){var n,r,o,a,s=0,u=b.expando,l=b.cache,p=b.support.deleteExpando,f=b.event.special;for(;null!=(n=e[s]);s++)if((t||b.acceptData(n))&&(o=n[u],a=o&&l[o])){if(a.events)for(r in a.events)f[r]?b.event.remove(n,r):b.removeEvent(n,r,a.handle);l[o]&&(delete l[o],p?delete n[u]:typeof n.removeAttribute!==i?n.removeAttribute(u):n[u]=null,c.push(o))}}});var Pt,Rt,Wt,$t=/alpha\([^)]*\)/i,It=/opacity\s*=\s*([^)]*)/,zt=/^(top|right|bottom|left)$/,Xt=/^(none|table(?!-c[ea]).+)/,Ut=/^margin/,Vt=RegExp("^("+x+")(.*)$","i"),Yt=RegExp("^("+x+")(?!px)[a-z%]+$","i"),Jt=RegExp("^([+-])=("+x+")","i"),Gt={BODY:"block"},Qt={position:"absolute",visibility:"hidden",display:"block"},Kt={letterSpacing:0,fontWeight:400},Zt=["Top","Right","Bottom","Left"],en=["Webkit","O","Moz","ms"];function tn(e,t){if(t in e)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=en.length;while(i--)if(t=en[i]+n,t in e)return t;return r}function nn(e,t){return e=t||e,"none"===b.css(e,"display")||!b.contains(e.ownerDocument,e)}function rn(e,t){var n,r,i,o=[],a=0,s=e.length;for(;s>a;a++)r=e[a],r.style&&(o[a]=b._data(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&nn(r)&&(o[a]=b._data(r,"olddisplay",un(r.nodeName)))):o[a]||(i=nn(r),(n&&"none"!==n||!i)&&b._data(r,"olddisplay",i?n:b.css(r,"display"))));for(a=0;s>a;a++)r=e[a],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none"));return e}b.fn.extend({css:function(e,n){return b.access(this,function(e,n,r){var i,o,a={},s=0;if(b.isArray(n)){for(o=Rt(e),i=n.length;i>s;s++)a[n[s]]=b.css(e,n[s],!1,o);return a}return r!==t?b.style(e,n,r):b.css(e,n)},e,n,arguments.length>1)},show:function(){return rn(this,!0)},hide:function(){return rn(this)},toggle:function(e){var t="boolean"==typeof e;return this.each(function(){(t?e:nn(this))?b(this).show():b(this).hide()})}}),b.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Wt(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":b.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,a,s,u=b.camelCase(n),l=e.style;if(n=b.cssProps[u]||(b.cssProps[u]=tn(l,u)),s=b.cssHooks[n]||b.cssHooks[u],r===t)return s&&"get"in s&&(o=s.get(e,!1,i))!==t?o:l[n];if(a=typeof r,"string"===a&&(o=Jt.exec(r))&&(r=(o[1]+1)*o[2]+parseFloat(b.css(e,n)),a="number"),!(null==r||"number"===a&&isNaN(r)||("number"!==a||b.cssNumber[u]||(r+="px"),b.support.clearCloneStyle||""!==r||0!==n.indexOf("background")||(l[n]="inherit"),s&&"set"in s&&(r=s.set(e,r,i))===t)))try{l[n]=r}catch(c){}}},css:function(e,n,r,i){var o,a,s,u=b.camelCase(n);return n=b.cssProps[u]||(b.cssProps[u]=tn(e.style,u)),s=b.cssHooks[n]||b.cssHooks[u],s&&"get"in s&&(a=s.get(e,!0,r)),a===t&&(a=Wt(e,n,i)),"normal"===a&&n in Kt&&(a=Kt[n]),""===r||r?(o=parseFloat(a),r===!0||b.isNumeric(o)?o||0:a):a},swap:function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=a[o];return i}}),e.getComputedStyle?(Rt=function(t){return e.getComputedStyle(t,null)},Wt=function(e,n,r){var i,o,a,s=r||Rt(e),u=s?s.getPropertyValue(n)||s[n]:t,l=e.style;return s&&(""!==u||b.contains(e.ownerDocument,e)||(u=b.style(e,n)),Yt.test(u)&&Ut.test(n)&&(i=l.width,o=l.minWidth,a=l.maxWidth,l.minWidth=l.maxWidth=l.width=u,u=s.width,l.width=i,l.minWidth=o,l.maxWidth=a)),u}):o.documentElement.currentStyle&&(Rt=function(e){return e.currentStyle},Wt=function(e,n,r){var i,o,a,s=r||Rt(e),u=s?s[n]:t,l=e.style;return null==u&&l&&l[n]&&(u=l[n]),Yt.test(u)&&!zt.test(n)&&(i=l.left,o=e.runtimeStyle,a=o&&o.left,a&&(o.left=e.currentStyle.left),l.left="fontSize"===n?"1em":u,u=l.pixelLeft+"px",l.left=i,a&&(o.left=a)),""===u?"auto":u});function on(e,t,n){var r=Vt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function an(e,t,n,r,i){var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;for(;4>o;o+=2)"margin"===n&&(a+=b.css(e,n+Zt[o],!0,i)),r?("content"===n&&(a-=b.css(e,"padding"+Zt[o],!0,i)),"margin"!==n&&(a-=b.css(e,"border"+Zt[o]+"Width",!0,i))):(a+=b.css(e,"padding"+Zt[o],!0,i),"padding"!==n&&(a+=b.css(e,"border"+Zt[o]+"Width",!0,i)));return a}function sn(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=Rt(e),a=b.support.boxSizing&&"border-box"===b.css(e,"boxSizing",!1,o);if(0>=i||null==i){if(i=Wt(e,t,o),(0>i||null==i)&&(i=e.style[t]),Yt.test(i))return i;r=a&&(b.support.boxSizingReliable||i===e.style[t]),i=parseFloat(i)||0}return i+an(e,t,n||(a?"border":"content"),r,o)+"px"}function un(e){var t=o,n=Gt[e];return n||(n=ln(e,t),"none"!==n&&n||(Pt=(Pt||b("