aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNorbert Schulz <norbert.schulz@intel.com>2018-04-23 18:17:53 +0200
committerNorbert Schulz <norbert.schulz@intel.com>2018-04-23 20:21:07 +0200
commit024e538bbb6916f1c3e6a8caf52be6fee7f7257c (patch)
tree53b9b48c888e539d8f1dc72aa6424f026b0a0e64
parentf84309511ff6557a3df608a4e061345c87b9e2dc (diff)
downloadmipisyst-024e538bbb6916f1c3e6a8caf52be6fee7f7257c.zip
mipisyst-024e538bbb6916f1c3e6a8caf52be6fee7f7257c.tar.gz
mipisyst-024e538bbb6916f1c3e6a8caf52be6fee7f7257c.tar.bz2
Adding MIPI System Software Trace Example Code
Populate the SyS-T GitHub repository with an example open source implementation of a SyS-T instrumentation library. This source code supports the public release edition 1.0 of the MIPI System Software Trace specification. https://www.mipi.org/specifications/sys-t
-rw-r--r--.gitmodules6
-rw-r--r--LICENSE42
-rw-r--r--README.md379
-rw-r--r--collateral/example_collateral.xml121
-rw-r--r--collateral/generator/readme.txt8
-rw-r--r--collateral/generator/syst_cgen.pl917
-rw-r--r--collateral/sys-t_1-0.xsd292
-rw-r--r--examples/CMakeLists.txt28
-rw-r--r--examples/client/CMakeLists.txt11
-rw-r--r--examples/client/collateral_config.xml37
-rw-r--r--examples/client/gencat.bat1
-rw-r--r--examples/client/gencat.sh1
-rw-r--r--examples/client/othersource.c368
-rw-r--r--examples/client/systclient.c96
-rw-r--r--examples/client/template.xml107
-rw-r--r--examples/cmake/FindSyST.cmake74
-rw-r--r--examples/hello/CMakeLists.txt11
-rw-r--r--examples/hello/hello.c73
-rw-r--r--examples/scripts/bldall.sh77
m---------external/googletest0
m---------external/pugixml0
-rw-r--r--library/CMakeLists.txt136
-rw-r--r--library/doxygen/Adapting.md71
-rw-r--r--library/doxygen/ApiOverview.md172
-rw-r--r--library/doxygen/Building.md122
-rw-r--r--library/doxygen/CMakeLists.txt27
-rw-r--r--library/doxygen/Catgen.md250
-rw-r--r--library/doxygen/Doxyfile.in1893
-rw-r--r--library/doxygen/DoxygenLayout.xml207
-rw-r--r--library/doxygen/Example.md68
-rw-r--r--library/doxygen/License.md34
-rw-r--r--library/doxygen/Printer.md103
-rw-r--r--library/doxygen/Protocol.md318
-rw-r--r--library/doxygen/Reference.md347
-rw-r--r--library/doxygen/mainpage.md57
-rw-r--r--library/doxygen/mipi_sys_t_event_header.pngbin0 -> 7210 bytes
-rw-r--r--library/doxygen/mipi_sys_t_library_flow.pngbin0 -> 45058 bytes
-rw-r--r--library/doxygen/mipi_sys_t_library_flow.vsdbin0 -> 135168 bytes
-rw-r--r--library/doxygen/mipi_sys_t_message_anatomy.pngbin0 -> 10801 bytes
-rw-r--r--library/doxygen/mipi_sys_t_overview.pngbin0 -> 58002 bytes
-rw-r--r--library/include/mipi_syst.h.in783
-rw-r--r--library/include/mipi_syst/api.h2989
-rw-r--r--library/include/mipi_syst/compiler.h193
-rw-r--r--library/include/mipi_syst/crc32.h138
-rw-r--r--library/include/mipi_syst/inline.h245
-rw-r--r--library/include/mipi_syst/message.h159
-rw-r--r--library/platform/example/include/mipi_syst/platform.h188
-rw-r--r--library/platform/example/src/mipi_syst_platform.c404
-rw-r--r--library/platform/mipi_stp_sim/include/mipi_syst/platform.h156
-rw-r--r--library/platform/mipi_stp_sim/src/mipi_syst_platform.c561
-rw-r--r--library/platform/nop/include/mipi_syst/platform.h153
-rw-r--r--library/platform/nop/src/mipi_syst_platform.c146
-rw-r--r--library/src/mipi_syst_api.c1314
-rw-r--r--library/src/mipi_syst_compiler.c78
-rw-r--r--library/src/mipi_syst_crc32.c313
-rw-r--r--library/src/mipi_syst_init.c204
-rw-r--r--library/src/mipi_syst_inline.c48
-rw-r--r--library/src/mipi_syst_writer.c219
-rw-r--r--library/test/CMakeLists.txt7
-rw-r--r--library/test/unit/CMakeLists.txt58
-rw-r--r--library/test/unit/mipi_syst_build_test.cpp193
-rw-r--r--library/test/unit/mipi_syst_catid32_test.cpp532
-rw-r--r--library/test/unit/mipi_syst_catid64_test.cpp530
-rw-r--r--library/test/unit/mipi_syst_clock_test.cpp92
-rw-r--r--library/test/unit/mipi_syst_crc32_test.cpp138
-rw-r--r--library/test/unit/mipi_syst_disable_test.cpp61
-rw-r--r--library/test/unit/mipi_syst_gtest.h249
-rw-r--r--library/test/unit/mipi_syst_gtest_main.cpp46
-rw-r--r--library/test/unit/mipi_syst_init_test.cpp432
-rw-r--r--library/test/unit/mipi_syst_printf_test.cpp709
-rw-r--r--library/test/unit/mipi_syst_raw_test.cpp162
-rw-r--r--library/test/unit/mipi_syst_string_test.cpp325
-rw-r--r--printer/CMakeLists.txt120
-rw-r--r--printer/include/mipi_syst_collateral.h204
-rw-r--r--printer/include/mipi_syst_decode.h187
-rw-r--r--printer/include/mipi_syst_guid.h116
-rw-r--r--printer/include/mipi_syst_message.h228
-rw-r--r--printer/include/mipi_syst_printer.h183
-rw-r--r--printer/include/mipi_syst_printf.h203
-rw-r--r--printer/src/mipi_syst_collateral.cpp331
-rw-r--r--printer/src/mipi_syst_decode.cpp874
-rw-r--r--printer/src/mipi_syst_main.cpp265
-rw-r--r--printer/src/mipi_syst_message.cpp371
-rw-r--r--printer/src/mipi_syst_printf.cpp435
-rw-r--r--printer/test/collateral.xml238
-rw-r--r--printer/test/diff.cmake21
-rw-r--r--printer/test/input_client32.txt5142
-rw-r--r--printer/test/input_client64.txt3588
-rw-r--r--printer/test/output_client32.txt284
-rw-r--r--printer/test/output_client64.txt284
-rw-r--r--trademarks.txt5
91 files changed, 31337 insertions, 21 deletions
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..f34d32b
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,6 @@
+[submodule "external/pugixml"]
+ path = external/pugixml
+ url = https://github.com/zeux/pugixml.git
+[submodule "external/googletest"]
+ path = external/googletest
+ url = https://github.com/google/googletest.git
diff --git a/LICENSE b/LICENSE
index e7de03e..21fdc0a 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,29 +1,31 @@
-BSD 3-Clause License
-
-Copyright (c) 2017, MIPI-Alliance
+Copyright (c) 2018, MIPI Alliance, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
+modification, are permitted provided that the following conditions
+are met:
-* Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
+* Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
+* Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
* Neither the name of the copyright holder nor the names of its
- contributors may be used to endorse or promote products derived from
- this software without specific prior written permission.
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
-FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
-OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
diff --git a/README.md b/README.md
index bbcdca4..3bf5313 100644
--- a/README.md
+++ b/README.md
@@ -1 +1,378 @@
-# public-mipi-sys-t \ No newline at end of file
+# MIPI System Software Trace (MIPI SyS-T) - Example Code #
+
+The **MIPI Alliance Specification for System Software-Trace (MIPI SyS-T&#8480;**)
+defines a platform-independent, low bandwidth trace data protocol and software
+API for generating trace debug information from mobile or mobile influenced
+devices.
+
+This project provides an example implementation of a MIPI SyS-T
+instrumentation library as its main component. The library exposes the
+MIPI SyS-T API which generates the MIPI SyS-T data protocol.
+
+The project includes the following additional components to provide a
+working trace cross debug solution:
+
+ * An example implementation for a MIPI SyS-T data protocol printer for
+ converting the binary protocol into comma separated value (CSV)
+ text format.
+ * A PERL based collateral generator that automates the creation and
+ updating of MIPI SyS-T decode collateral in XML format. The generator
+ parses the catalog instrumentation calls inside the client source.
+ It can be embedded into the software build process to keep builds
+ and decode collateral updated at the same time.
+ * Doxygen based documentation for the instrumentation library.
+ * A unit test suite for the instrumentation library
+
+## SyS-T Trace Debug Environment ##
+SyS-T is intended for, but not limited to, cross-development environments
+where two machines, named target system (TS) and debug test system (DTS),
+exchange data over a transport layer. The TS uses the SyS-T library to generate
+a trace data protocol that is sent via a transport to the DTS. The tool
+stack on the DTS reads the data and decodes it into a format suitable for human
+or automated analysis. The decode step utilizes collateral that
+contains static trace data information like string to numeric key mappings. The
+collateral is used to reduce both trace transport bandwidth and compiled
+software space needs.
+
+![MIPI SyS-T Overview](library/doxygen/mipi_sys_t_overview.png)
+
+The MIPI specification for SyS-T is available from the
+[MIPI Alliance Website](https://mipi.org/specifications/sys-t).
+
+
+## Supported Platforms ##
+
+ * Windows
+ * Mac OS X
+ * Linux
+
+## Requirements ##
+
+The instrumentation library is designed to have minimal dependencies for
+building. The library core is written using self-contained C-language code.
+Only the platform dependent adaptation software layer relies on C-runtime
+headers and libraries.
+
+The protocol printer is written in C++11 and requires a C++11 compliant
+compiler and runtime environment.
+
+The following third party components are used for building the project:
+
+ * [CMake](https://cmake.org/) for generating the platform dependent build system (required).
+ * [Doxygen](http://www.stack.nl/~dimitri/doxygen/) for building the library documentation (optional).
+ * [Google Test](https://github.com/google/googletest) for building the library unit tests (optional).
+ * [PugiXML](https://github.com/zeux/pugixml) for building the printer project (required).
+
+The Google Test and PugiXML components are configured as git modules
+in the external folder of this project. If the folders are not populated,
+run the following command to pull the required components from GitHub.
+```
+git submodule update --init --recursive
+```
+## Building ##
+The project is split into the following sub projects.
+
+| Project | Location |
+| ---------------------------------|-------------|
+| SyS-T instrumentation library | library |
+| Instrumented code examples | examples |
+| SyS-T protocol printer tool | printer |
+| Collateral generator tool | collateral |
+
+The following chapters describe how to build the individual projects.
+
+### Building the SyS-T Instrumentation Library ###
+The instrumentation library uses the CMake build system. Building
+the project follows the normal CMake flow. It requires an initial CMake run
+to generate the platform dependent build system, for example Makefiles on
+Linux or Visual Studio Projects on Windows. The native build tools are then
+used to do the actual build. Note that CMake follows the "out of source"
+build concept. That means that you create a build folder for CMake
+projects outside of the source sandbox. All build artifacts are
+created inside this build folder.
+
+The CMake script for the instrumentation library uses the following
+configuration switches:
+
+| Option | Description | Default Value |
+| ---------------------------------|-------------|-----------------|
+| CMAKE_INSTALL_PREFIX| Path prefix for the compiled library binaries and include files install location| (defined by CMake) |
+| SYST_BUILD_PLATFORM_NAME|Name of the platform adaption code folder| example |
+| SYST_BUILD_DOC|Enable build of Doxygen documentation| True if Doxygen installation was found, False otherwise |
+| SYST_BUILD_GTEST_DIR|Installation location of Google Test sources. Set this for building the unit tests| (unset) |
+
+The following transcript shows an example for configuring and building the
+library on a Linux console. Replace "../sys-t/library" with the location of
+your SyS-T project sandbox.
+
+```
+$ mkdir build
+$ cd build
+$ cmake ../sys-t/library -DCMAKE_INSTALL_PREFIX=../deploy -DSYST_BUILD_PLATFORM_NAME=example -DCMAKE_BUILD_TYPE=Release
+(...)
+-- Configuring done
+-- Generating done
+-- Build files have been written to: /users/mipi/prj/build
+
+ $ make install
+ (...)
+ -- Installing: /users/mipi/prj/deploy/lib/libmipi_syst.so
+ -- Installing: /users/mipi/prj/deploy/lib/libmipi_syst_static.a
+ -- Installing: /users/mipi/prj/deploy/include
+ $
+```
+The install target builds the projects and copies the libraries
+and SyS-T header files to the deploy location. This location was defined
+by the CMake variable ``CMAKE_INSTALL_PREFIX``. It forms a SyS-T SDK
+that applications compile and link against.
+
+If the unit tests are built as well, they can be run using one of the
+following commands:
+
+```bash
+$ ctest -verbose
+$ make RUN_TEST_VERBOSE
+$ ./test/unit/syst_unittest
+```
+
+### Building the Example Applications ###
+The project ships with example applications that show how to instrument
+source code with the SyS-T API. The examples use the CMake build
+system and require that the instrumentation library project was built and
+installed first. The building depends on the SyS-T libraries and header
+files in the install location. The location of the install folder needs
+to be specified by setting the CMake variable ``SYST_SDK`` when configuring
+the example project.
+
+The following transcript shows the configuring and building of the examples
+in a Linux console. Replace "../sys-t/examples" with the location of
+your SyS-T sandbox examples folder and replace the value for SYST_SDK
+with the location of the install location from a previously built
+instrumentation library.
+
+
+```
+$ mkdir build_examples
+$ cd build_examples
+$ cmake ../sys-t/examples -DSYST_SDK=../deploy -DCMAKE_BUILD_TYPE=Release
+
+-- Found SYST: /users/mipi/prj/deploy/include
+-- Configuring done
+-- Generating done
+-- Build files have been written to: /users/mipi/prj/build_examples
+
+$ make
+Scanning dependencies of target hello
+[ 20%] Building C object hello/CMakeFiles/hello.dir/hello.c.o
+[ 40%] Linking C executable hello
+[ 40%] Built target hello
+Scanning dependencies of target systclient
+[ 60%] Building C object client/CMakeFiles/systclient.dir/systclient.c.o
+[ 80%] Building C object client/CMakeFiles/systclient.dir/othersource.c.o
+[100%] Linking C executable systclient
+[100%] Built target systclient
+```
+
+The examples code builds into standalone applications that can be run
+directly from the console. To run the minimal hello example, enter the
+following command:
+
+```
+$ hello/hello
+ in SyS-T platform init hook: "mipi_syst_platform_state_init()"
+ systh = 0x6250c0, platform_data = (nil)
+ in SyS-T platform handle init hook: systh = 0x1edd420
+
+STP Protocol Output:
+ 0 <D32TS> 01801042
+ 1 <D64> 704caea243544e49
+ 2 <D64> 35ea9c9ea7d1b5ab
+ 3 <D64> 7953206f6c6c6548
+ 4 <D32> 21542d53
+ 5 <D8> 00
+ 6 <FLAG>
+SYS-T RAW DATA: 42108001494E5443A2AE4C70ABB5D1A79E9CEA3548656C6C6F205379532D542100
+
+ in SyS-T platform handle release hook:systh = 0x1edd420
+$
+```
+
+The transcript shows the output from the example platform code in
+the instrumentation library. The example platform code only prints
+output actions to the console. It does not interface to any real
+trace transport. The output shows the raw messages as hex dumps.
+This output can be fed into the protocol printer tool to convert
+it into human readable CSV textual data.
+
+### Building the Data Protocol Printer ###
+The project includes a SyS-T data protocol pretty printer tool
+in the printer subdirectory. The printer is a standalone application
+written in C++11. It supports reading the output from instrumented
+applications using the example platform from the SyS-T
+instrumentation library.
+It scans the output for lines starting with ``SYS-T RAW DATA:`` and
+converts the hex dumps into binary data for decoding. The printer can
+be easily adapted to real trace data transports by replacing the code
+in ``printer/src/mipi_syst_main.cpp`` with an appropriate data reader.
+
+The following transcript shows how to build the printer on a Linux console.
+The printer is a standalone application and independent from the
+instrumentation or example projects.
+
+```
+$ cmake ../../sys-t/printer
+-- The C compiler identification is GNU 5.4.0
+-- The CXX compiler identification is GNU 5.4.0
+-- Check for working C compiler: /usr/bin/cc
+-- Check for working C compiler: /usr/bin/cc -- works
+-- Detecting C compiler ABI info
+-- Detecting C compiler ABI info - done
+-- Detecting C compile features
+-- Detecting C compile features - done
+-- Check for working CXX compiler: /usr/bin/c++
+-- Check for working CXX compiler: /usr/bin/c++ -- works
+-- Detecting CXX compiler ABI info
+-- Detecting CXX compiler ABI info - done
+-- Detecting CXX compile features
+-- Detecting CXX compile features - done
+-- Configuring done
+-- Generating done
+-- Build files have been written to: /users/mipi/prj/syst_build/printer
+
+$ make
+Scanning dependencies of target systprint
+[ 14%] Building CXX object CMakeFiles/systprint.dir/src/mipi_syst_main.cpp.o
+[ 28%] Building CXX object CMakeFiles/systprint.dir/src/mipi_syst_collateral.cpp.o
+[ 42%] Building CXX object CMakeFiles/systprint.dir/src/mipi_syst_printf.cpp.o
+[ 57%] Building CXX object CMakeFiles/systprint.dir/src/mipi_syst_decode.cpp.o
+[ 71%] Building CXX object CMakeFiles/systprint.dir/src/mipi_syst_message.cpp.o
+[100%] Linking CXX executable systprint
+[100%] Built target systprint
+```
+
+The printer project comes with a self test feature. The ``printer/test``
+folder contains reference input and output files collected using the
+``example/client`` example application. To run the printer test use the
+following command (or the cmake test driver command ``ctest``) in the
+printer build folder:
+
+```
+$ make test
+Running tests...
+Test project /users/mipi/prj/syst_build/printer
+ Start 1: print_client_example
+1/3 Test #1: print_client_example ............... Passed 0.01 sec
+ Start 2: diff_output_with_32bit_reference
+2/3 Test #2: diff_output_with_32bit_reference ... Passed 0.04 sec
+ Start 3: diff_output_with_64bit_reference
+3/3 Test #3: diff_output_with_64bit_reference ... Passed 0.03 sec
+
+100% tests passed, 0 tests failed out of 3
+
+Total Test time (real) = 0.11 sec
+```
+
+To actually see the printer output, run the printer directly using command
+line arguments, or indirectly through the test driver in verbose mode
+(```ctest --verbose```). The following transcript shows how to call the
+printer directly:
+
+```
+$systprint --short_guid {494E5443-8A9C-4014-A65A-2F36A36D96E4} --collateral ../../sys-t/printer/test/collateral.xml ../../sys-t/printer/test/input_client64.txt
+
+Decode Status,Payload,Type,Severity,Origin,Unit,Message TimeStamp,Context TimeStamp,Location,Raw Length,Checksum,Collateral
+OK,"0x0000000000010000 version banner string",BUILD:LONG,MAX,example,1,0x00054A4B376A70E9,0x0000000000000000,,62,0x4DDEF5B9,../../sys-t/printer/test/collateral.xml
+OK,"SyS-T Library version 1.0.0",CATALOG:ID32P64,INFO,example,1,0x00054A4B376A70E9,0x0000000000000001,./systclient.c:64,48,0x7A34B527,../../sys-t/printer/test/collateral.xml
+OK,"+-------------------------------------------------------+",CATALOG:ID32P64,INFO,example,1,0x00054A4B376A70E9,0x0000000000000002,./othersource.c:40,36,0x7CBB44B6,../../sys-t/printer/test/collateral.xml
+OK,"| ____ _____ _______ |",CATALOG:ID32P64,INFO,example,1,0x00054A4B376A70E9,0x0000000000000003,./othersource.c:41,36,0x2761EBF4,../../sys-t/printer/test/collateral.xml
+OK,"| / ___| / ____| |__ __| |",CATALOG:ID32P64,INFO,example,1,0x00054A4B376A70E9,0x0000000000000004,./othersource.c:42,36,0x55C63EAB,../../sys-t/printer/test/collateral.xml
+OK,"| | |___ __ _| |___ _____| | |",CATALOG:ID32P64,INFO,example,1,0x00054A4B376A70E9,0x0000000000000005,./othersource.c:43,36,0xE3885FB4,../../sys-t/printer/test/collateral.xml
+OK,"| \___ \| | | |\___ \_____| | |",CATALOG:ID32P64,INFO,example,1,0x00054A4B376A70E9,0x0000000000000006,./othersource.c:44,36,0x4C13A7F5,../../sys-t/printer/test/collateral.xml
+OK,"| ____| | |_| |____| | | | |",CATALOG:ID32P64,INFO,example,1,0x00054A4B376A70E9,0x0000000000000007,./othersource.c:45,36,0xE2C8BDC2,../../sys-t/printer/test/collateral.xml
+OK,"| |_____/ \__| |_____/ |_| |",CATALOG:ID32P64,INFO,example,1,0x00054A4B376A70E9,0x0000000000000008,./othersource.c:46,36,0xD0734297,../../sys-t/printer/test/collateral.xml
+OK,"| _/ / |",CATALOG:ID32P64,INFO,example,1,0x00054A4B376A70E9,0x0000000000000009,./othersource.c:47,36,0x6D704426,../../sys-t/printer/test/collateral.xml
+OK,"| |__/ |",CATALOG:ID32P64,INFO,example,1,0x00054A4B376A70E9,0x000000000000000A,./othersource.c:48,36,0x0A8FD609,../../sys-t/printer/test/collateral.xml
+OK,"+-------------------------------------------------------+",CATALOG:ID32P64,INFO,example,1,0x00054A4B376A70E9,0x000000000000000B,./othersource.c:49,36,0x1E99CD8F,../../sys-t/printer/test/collateral.xml
+OK,"| catalog Format | Printed Result |",CATALOG:ID32P64,INFO,example,1,0x00054A4B376A70E9,0x000000000000000C,./othersource.c:231,36,0xA17B5C1C,../../sys-t/printer/test/collateral.xml
+OK,"|---------------------------------strings---------------|",CATALOG:ID32P64,INFO,example,1,0x00054A4B376A74D1,0x000000000000000D,./othersource.c:232,36,0x11A215E6,../../sys-t/printer/test
+(...)
+$
+```
+## Decode Collateral Creation Tool ##
+The project includes a PERL based collateral generator that automates the
+creation and updating of SyS-T decode collateral in XML format. This
+generator parses the catalog instrumentation points by scanning the
+client source code. The tool can be embedded into a software build process to
+keep software builds and decode collateral updated at the same time. The tool
+is stored in the ```collateral\generator``` folder of the project with the
+name ```syst_cgen.pl```.
+
+### Dependencies ###
+The generator is written in PERL and requires a PERL installation with the
+following optional modules installed.
+ * String::Escape
+ * Xml::Simple
+
+Refer to the documentation for your PERL installation on module installation.
+On Linux, the following commands can be used:
+
+```
+$ perl -MCPAN -e 'install XML::Simple'
+$ perl -MCPAN -e 'install String::Escape'
+```
+
+### Collateral Generation Process ###
+The collateral generator takes a SyS-T collateral template and
+a configuration file as input. The configuration file defines the locations
+and file extensions of the source files to be scanned and how the catalog
+message calls
+inside the source code are named. The tool can then detect the catalog
+calls, and extracts the format strings, source locations, and
+catalog IDs to update the collateral template file. The result is a
+new collateral file that matches the actual state of the source code.
+
+### Catalog Generation Example ###
+The client application in ```example/client``` uses various catalog calls.
+It therefore provides a configuration file for```syst_cgen.pl``` to detect
+the SyS-T catalog message calls, and a collateral template file that is
+updated by the generator. It is executed in the following way:
+
+```
+$ perl ../../collateral/generator/syst_cgen.pl -config collateral_config.xml
+syst_catgen.pl: Parsing: ./othersource.c
+syst_catgen.pl: Add ./othersource.c with file id 1 to file catalog
+syst_catgen.pl: Parsing finished: ./othersource.c, found 127 call(s)
+syst_catgen.pl: Parsing: ./systclient.c
+syst_catgen.pl: Add ./systclient.c with file id 2 to file catalog
+syst_catgen.pl: Parsing finished: ./systclient.c, found 4 call(s)
+syst_catgen.pl: Generating XML structure
+syst_catgen.pl: Loaded template collateral file template.xml
+syst_catgen.pl: Generating XML structure finished
+syst_catgen.pl: Writing XML file: generated_catalog.xml
+syst_catgen.pl: Writing XML file finished
+```
+
+This call creates the file ``generated_catalog.xml``. It is used by
+SyS-T data protocol processing tools to decode the catalog messages
+from this application. For an example of such an application, see the
+earlier section about the protocol printer. The printer tool uses the
+``--collateral <file>`` argument to load collateral files.
+
+## Integration Build Test ##
+The bash script in ``examples/scripts/bldall.sh`` can be used to run an
+integration test for the different projects. The script builds all projects
+sequentially using the example library platform. It then runs components
+tests and finally calls the printer tool to format the output of
+the ``hello`` example application. The following transcript shows how to
+run execute the script. The BLD_ROOT variable sets the location of the build
+folder. If unset, the script creates a local build folder in the scripts
+folder.
+
+```
+$ cd sys-t/examples/scripts
+$ BLD_ROOT=/tmp/sys_t_test_bld ./bldall.sh
+```
+
+## License
+
+See [LICENSE](LICENSE)
diff --git a/collateral/example_collateral.xml b/collateral/example_collateral.xml
new file mode 100644
index 0000000..0992bbb
--- /dev/null
+++ b/collateral/example_collateral.xml
@@ -0,0 +1,121 @@
+<?xml version="1.0" encoding="utf-8"?>
+<syst:Collateral xmlns:syst="http://www.mipi.org/1.0/sys-t"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.mipi.org/1.0/sys-t
+ https://www.mipi.org/schema/sys-t/sys-t_1-0.xsd">
+
+ <!--
+ A SyS-T collateral file starts with one syst:Collateral element
+ and contains at least one syst:Client child node.
+ -->
+ <syst:Client Name="example">
+
+ <!--
+ List of message GUIDs for this client:
+ A GUID is a 128bit numeric UUID following RFC 4122.
+ Clients that are identified by transport layer properties
+ can use pseudo GUID values to identify their messages. A
+ pseudo GUID is defined as a GUID with bit 71 set to zero.
+ The following encoding might be used for clients identified
+ by MIPI System Trace Protocol (STP) master/channel pairs:
+
+ {00000000-<MasterID>-<ChannelID>-<Origin>00-000000000000}
+
+ A Mask attribute can be added to define which bits of the GUID are
+ used for comparison. Without a mask, all bits need to match.
+ The example below makes the catalog valid for all channels from the
+ STP master value 0x644, or messages with the "494E..." GUID in their
+ payload.
+ -->
+ <syst:Guids>
+ <syst:Guid ID= "{00000000-0644-0000-0000-000000000000}"
+ Mask="{00000000-FFFF-0000-8000-000000000000}"><![CDATA[kernel]]></syst:Guid>
+ <syst:Guid ID="{494E5443-6F64-43D1-93F0-F3D49D92670C}"><![CDATA[user]]></syst:Guid>
+ </syst:Guids>
+
+ <!--
+ Define for which client build versions this collateral is valid.
+ Builds are expressed as values up to 64 bits in size, and can include a
+ mask that defines which bits need to match with a client build version
+ message.
+ -->
+ <syst:Builds>
+ <syst:Build ID="0x00010000" Mask="0xFFFF0000" ><![CDATA[SW Build 1.x]]></syst:Build>
+ <syst:Build ID="0x00020000" Mask="0xFFFF0000" ><![CDATA[SW Build 2.x]]></syst:Build>
+ </syst:Builds>
+
+ <!--
+ Settings to guide decoding tools what to do in cases
+ where several options are possible. The example below tells
+ a decoder to interprete SyS-T message timstamps only as an
+ informal field, but not the message creation time.
+ -->
+ <syst:Options>
+ <syst:Option Name="syst:timestamp">displayAsField</syst:Option>
+ </syst:Options>
+
+ <!--
+ Provide ID to name mapping for Origin header field values.
+ -->
+ <syst:Modules>
+ <syst:Module ID="0x1"><![CDATA[kernel]]></syst:Module>
+ <syst:Module ID="0x2"><![CDATA[user]]></syst:Module>
+ </syst:Modules>
+
+ <!--
+ Define the mapping of the numeric File-ID to source files.
+ This table is optional and only needed if source references are used
+ by the Catalog32 or Catalog64 elements.
+ -->
+ <syst:SourceFiles>
+ <syst:File ID="0x00000001"><![CDATA[example/src/main.c]]></syst:File>
+ <syst:File ID="0x00000002"><![CDATA[example/h/example.h]]></syst:File>
+ </syst:SourceFiles>
+
+ <!--
+ Define the mapping of catalog message ID to human-readable strings.
+ This table is optional and only needed if catalog messages are used.
+ A message can have optional "File" and "Line" attributes to specify the
+ source position of the instrumentation call. A decoder uses the
+ information from these attributes if the message payload doesn't provide
+ explicit location information.
+ -->
+ <syst:Catalog32>
+ <syst:Format ID="0x00000001" File="0x00000001" Line="23"><![CDATA[This is example %d.%d]]></syst:Format>
+ <syst:Format ID="0x00000002" File="0x00000002" Line="72"><![CDATA[task switch %x->%x]]></syst:Format>
+ </syst:Catalog32>
+
+ <syst:Catalog64>
+ <syst:Format ID="0x0000000000000001"><![CDATA[error %d]]></syst:Format>
+ </syst:Catalog64>
+
+ <!--
+ Define short message mapping from 28-Bit ID to user visible string.
+ -->
+ <syst:Short32>
+ <syst:Format ID="0x0000000" Mask="0xFFFFFF0"><![CDATA[Fatal Error code]]></syst:Format>
+ <syst:Format ID="0x0000013"><![CDATA[state ready]]></syst:Format>
+ <syst:Format ID="0x000001A"><![CDATA[state halt]]></syst:Format>
+ </syst:Short32>
+
+ <!--
+ Define short message mapping from 60-Bit ID to user visible string.
+ -->
+ <syst:Short64>
+ <syst:Format ID="0x123456700000000" Mask="0xFFFFFFF00000000"><![CDATA[warning state]]></syst:Format>
+
+ </syst:Short64>
+
+ <!--
+ Specify raw message protocol id assignment
+ -->
+ <syst:Write>
+ <syst:Protocol ID="0x01"><![CDATA[console]]></syst:Protocol>
+ <syst:Protocol ID="0x02"><![CDATA[console]]></syst:Protocol>
+ <syst:Protocol ID="0x03"><![CDATA[ftrace]]></syst:Protocol>
+ <syst:Protocol ID="0x20" Mask="0x30"><![CDATA[reserved]]></syst:Protocol>
+ </syst:Write>
+
+</syst:Client>
+
+</syst:Collateral> \ No newline at end of file
diff --git a/collateral/generator/readme.txt b/collateral/generator/readme.txt
new file mode 100644
index 0000000..8214994
--- /dev/null
+++ b/collateral/generator/readme.txt
@@ -0,0 +1,8 @@
+syst_cgen.pl - a SYS-T message collateral generator
+
+Usage:
+perl ./syst_cgen.pl --help
+
+Example:
+An example project using the collateral generator
+is located in <SDK-ROOT>/library/examples/client.
diff --git a/collateral/generator/syst_cgen.pl b/collateral/generator/syst_cgen.pl
new file mode 100644
index 0000000..c1cc4d4
--- /dev/null
+++ b/collateral/generator/syst_cgen.pl
@@ -0,0 +1,917 @@
+#!/usr/bin/perl
+
+# Copyright (c) 2018, MIPI Alliance, Inc.
+# All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+#
+# * Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# * Redistributions in binary form must reproduce the above copyright
+# notice, this list of conditions and the following disclaimer in
+# the documentation and/or other materials provided with the
+# distribution.
+#
+# * Neither the name of the copyright holder nor the names of its
+# contributors may be used to endorse or promote products derived
+# from this software without specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+# Contributors:
+# norbert.schulz@intel.com - initial API and implementation
+#
+use strict;
+use warnings;
+use File::Spec;
+use XML::Simple;
+use File::Find;
+use Getopt::Long;
+use Pod::Usage;
+use String::Escape;
+use bigint qw/hex/;
+
+use Data::Dumper;
+
+# =============================================================================
+# Globals
+# =============================================================================
+my ( undef, undef, $TOOL ) = File::Spec->splitpath( $0 );
+my $INDENTATION = 2;
+my $SRCLOCATION = 1;
+my $CONFIG = ();
+my $FILE_COUNTER = 0;
+my $MSG_STRUCT = ();
+my $FILE_STRUCT = ();
+my $USED_IDS = ();
+my %OPTIONS = ();
+
+
+# =============================================================================
+# Main functions.
+# =============================================================================
+
+sub main {
+ read_options ();
+
+ find({
+ wanted => \&file_handler,
+ preprocess => \&filter_file_list }, @{$OPTIONS{src}});
+
+ sub file_handler {
+ my $file = $File::Find::name;
+ if (-f $_ && !is_file_existing ($file)) {
+ _i ("Parsing: ".$file."\n");
+ add_file ($file);
+ my $count = parse_file ($_);
+ _i ("Parsing finished: ".$file.", found $count call(s)\n");
+ }
+ }
+
+ #
+ # Filters the file list before the file_handler functions will be
+ # called by File::find.
+ #
+ sub filter_file_list {
+ my @filtered_list = ();
+ # Filter files with wanted extensions.
+ foreach my $pattern (@{$CONFIG->{SrcFilePatterns}->{SrcFilePattern}}) {
+ push (@filtered_list, glob($pattern->{Pattern}));
+ }
+ # Add sub directories to scan whole trees.
+ foreach my $dir (grep { -d } @_) {
+ if ($dir ne '.' && $dir ne '..') {
+ push (@filtered_list, $dir);
+ }
+ }
+ return @filtered_list;
+ }
+
+ if (!defined ($FILE_STRUCT)) {
+ _e ("No files found, which match the provided patterns!\n");
+ }
+
+ if (!defined ($MSG_STRUCT)) {
+ _e ("No messages found!\n");
+ }
+
+ my $xml = generate_xml ($MSG_STRUCT, $FILE_STRUCT);
+
+ _i ("Writing XML file: ".$OPTIONS{catalog}."\n");
+ open (CATALOG, ">".$OPTIONS{catalog})
+ or _e ("Could not open file (w): $!\n");
+ print CATALOG $xml;
+ close (CATALOG);
+ _i ("Writing XML file finished\n");
+}
+
+#
+# generate_xml (<msg-data-structure>, <file-data-structure>)
+#
+# Description:
+# Generate SyS-T catalog XML structure based on read message
+# calls and scanned files.
+#
+sub generate_xml {
+ my $msg_struct = $_[0];
+ my $file_struct = $_[1];
+
+ _i ("Generating XML structure\n");
+
+ my $output = load_template($OPTIONS{template});
+
+ # build sources section
+ #
+ if (defined $file_struct) {
+ if ($SRCLOCATION) {
+ my $source_list = '<syst:SourceFiles>'."\n";
+ foreach my $file_id (sort {$a <=> $b} keys %{$file_struct}) {
+ $source_list.= ' ' x ($INDENTATION*2);
+ $source_list.= '<syst:File ID="'.$file_id.'">';
+ $source_list.= '<![CDATA['.$file_struct->{$file_id}.']]>';
+ $source_list.= '</syst:File>'."\n"
+ }
+ $source_list.= ' ' x $INDENTATION;
+ $source_list.= '</syst:SourceFiles>'."\n";
+
+ $output =~ s/<syst:SourceFiles\/>/$source_list/sm;
+ }
+
+ if (defined $msg_struct->{"32"}) {
+ if (index($output, '<syst:Catalog32/>') != -1) {
+ my $section = generate_catalog_section($msg_struct, 32);
+ $output =~ s/<syst:Catalog32\/>/$section/sm;
+ } else {
+ _w('32 bit catalog messages found, but template file '.
+ 'is missing the insertion pattern "<syst:Catalog32/>"'."\n");
+ }
+ }
+ if (defined $msg_struct->{"64"}) {
+ if (index($output, '<syst:Catalog64/>') != -1) {
+ my $section = generate_catalog_section($msg_struct, 64);
+ $output =~ s/<syst:Catalog64\/>/$section/sm;
+ } else {
+ _w('64 bit catalog messages found, but template file '.
+ 'is missing the insertion pattern "<Messages IdSize="64Bit"/>"'."\n");
+ }
+ }
+ } else {
+ _w( "no source files to parse found." );
+ }
+
+ _i ("Generating XML structure finished\n");
+
+ return $output;
+}
+
+#
+# generate_catalog_section (<found hits>, 32|64)
+#
+# Description
+sub generate_catalog_section {
+ my $hits = $_[0];
+ my $size = $_[1]+0;
+
+ my $data = $hits->{$size};
+ my $output ="";
+
+ $output.= '<syst:Catalog'.$size.'>'."\n";
+
+ foreach my $file_id (sort keys %{$data}) {
+ foreach my $line_id (sort {$a <=> $b} keys %{$data->{$file_id}}) {
+ foreach my $msg_id (sort {$a <=> $b} keys %{$data->{$file_id}->{$line_id}}) {
+ my $msg = $data->{$file_id}->{$line_id}->{$msg_id};
+ my $idval= "";
+
+ if ($size == 32) {
+ $idval = sprintf("0x%08x", $msg_id);
+ } else {
+ $idval = sprintf("0x%016x", $msg_id);
+ }
+ $output.= ' ' x ($INDENTATION*2);
+ $output.= '<syst:Format ID="'.$idval.'"';
+ if ($SRCLOCATION) {
+ $output.= ' File="'.$file_id.'" Line="'.$line_id .'"';
+ }
+ $output.= '><![CDATA['.String::Escape::unbackslash($msg).']]>';
+ $output.= '</syst:Format>'."\n";
+ }
+ }
+ }
+ $output.= ' ' x $INDENTATION;
+ $output.= '</syst:Catalog'.$size.'>'."\n";
+
+ return $output;
+}
+
+#
+# add_file (<file>)
+#
+# Description:
+# Add a file to the file data structure and increment global
+# file counter.
+#
+sub add_file {
+ my $file = $_[0];
+
+ $FILE_COUNTER++;
+
+ if ($SRCLOCATION) {
+ _i ("Add $file with file id $FILE_COUNTER to file catalog\n");
+ }
+
+ if (defined($FILE_STRUCT->{$FILE_COUNTER})) {
+ _e ("File with file id $FILE_COUNTER already exists!\n");
+ }
+ $FILE_STRUCT->{$FILE_COUNTER} = $file;
+}
+
+#
+# is_file_existing (<file>)
+#
+# Description:
+# Check if file is already existing in the file data structure
+#
+sub is_file_existing {
+ return (grep {$FILE_STRUCT->{$_} eq $_[0]} keys %{$FILE_STRUCT}) > 0;
+}
+
+#
+# load_template (<file>)
+#
+# Description:
+# Parse the given file as the catalog template file where the catalog
+# messages get added into.
+#
+sub load_template {
+ my $file = $_[0];
+ local $/ = undef;
+ open (FILE, $file) or _e ("Could not open input template file ".$file.": $!\n");
+ my $content = <FILE>;
+ close FILE;
+
+ _i("Loaded template collateral file ".$file."\n");
+
+ return $content;
+}
+
+#
+# parse_file (<file>)
+#
+# Description:
+# Parse the given file to extract SyS-T catalog trace calls. Results will be
+# stored into global catalog data structure.
+#
+sub parse_file {
+ my $file = $_[0];
+
+ open (FILE, $file) or _e ("Could not open file ".$file.": $!\n");
+ my @content = <FILE>;
+ close FILE;
+
+ my $add_count = 0;
+
+ # loop over the input lines
+ #
+ for (my $i = 0; $i < $#content+1; $i++) {
+ my $calltype= undef;
+
+ for my $idsize ( "32", "64" ) {
+
+ my $calltype ="Catalog".$idsize;
+ my $callset = $CONFIG->{CatalogCalls}->{$calltype}->{CatalogCall};
+
+ foreach my $function_name (keys %{$callset})
+ {
+ if (!defined ($callset->{$function_name}->{IdParamIdx})) {
+ _e ("Configuration: 'IdParamIdx' is not defined for function ".
+ "call: $function_name\n");
+ }
+ if (!defined ($callset->{$function_name}->{StringParamIdx})) {
+ _e ("Configuration: 'StringParamIdx' is not defined for ".
+ "function call: $function_name\n");
+ }
+
+ # find the current function call
+ if ($content[$i] =~ /\b${function_name}\b/) {
+ my $call = strip_comments ($content[$i]);
+ my $line_no_start = $i+1;
+ my $line_no_end = $i+1;
+
+ if (!strip_whitespaces ($call)) {
+ _i ("Catalog instrumentation call \@ ".
+ "$file:$line_no_start will be skipped.\n");
+ next;
+ }
+ _vi ("function call start: $function_name at line ".
+ $line_no_start."\n");
+
+ # try to find the end of the function call, which is might
+ # not be at the same line.
+ while ($content[$i] !~ /\)(\s*|\t*);/) {
+ my $tmp = strip_comments ($content[++$i]);
+ $call.=$tmp;
+ }
+ $line_no_end = $i+1;
+
+ _vi ("functon call end: $function_name at line ".
+ $line_no_end."\n");
+
+ # remove new line and extract arguments
+ $call =~ s/\n//g;
+ $call =~ m/${function_name}\b(\s*|\t*)\((.*)\)(\s*|\t*);/;
+
+ my $arguments = $2;
+
+ # now split the arguments by character
+ my @array = split(//, $arguments);
+ my $current_arg_no = 0;
+ my $inside_string = 0;
+ my $possible_end_of_call = 0;
+ my $bracket_count = 0;
+ my $found_quotes = 0;
+ my @function_args = ();
+ my $opening_quote = "";
+
+ # Iterate argument list character by character
+ for (my $i = 0; $i < $#array+1; $i++) {
+ # if a closing bracket will be found not inside the format
+ # string it may be the end of the call.
+ if ($array[$i] eq ")" && !$inside_string) {
+ $possible_end_of_call ^= 1;
+ if ($bracket_count == 0) {
+ last;
+ }
+ $bracket_count--;
+ }
+ # if opening bracket was found, reset possible end marker
+ if ($array[$i] eq "(" && !$inside_string) {
+ $bracket_count++;
+ $possible_end_of_call = 0;
+ }
+
+ # if a semicolon was found, not inside the format string
+ # and one of the previous characters was a closing bracket,
+ # it's the end of the call.
+ if ($array[$i] eq ";" && !$inside_string
+ && $possible_end_of_call) {
+ _d ("End of call detected at line $line_no_start\n");
+ last;
+ }
+
+ # Find the argument separators
+ if ($array[$i] eq "," && !$inside_string) {
+ $current_arg_no++;
+ next;
+ }
+
+ # If a format string was found, do not search
+ # for argument separators.
+ if ($array[$i] eq "\"" || $array[$i] eq "'") {
+ $found_quotes = 1;
+ # check if the previous character escaped the current
+ # one.
+ if ($i >= 0 && $array[$i-1] ne "\\") {
+ # Within a string, quotes match, so reset control variables.
+ if ($inside_string && $opening_quote eq $array[$i]) {
+ $opening_quote = "";
+ $inside_string ^= 1;
+ next;
+ # Not within a string, start quote empty. Begin of a string.
+ } elsif (!$inside_string && $opening_quote eq "") {
+ $opening_quote = $array[$i];
+ $inside_string ^= 1;
+ next;
+ }
+ }
+ }
+
+ # Skip spaces outside of a string
+ if (!$inside_string && $found_quotes && ($array[$i] eq " " || $array[$i] eq "\t")) {
+ next;
+ }
+
+ # Add argument to array.
+ $function_args[$current_arg_no].=$array[$i];
+ }
+
+ # remove leading and trailing whitespaces from the arguments
+ map {
+ $_ = strip_whitespaces ($_);
+ } @function_args;
+
+ my $str_idx = $callset->{$function_name}->{StringParamIdx};
+ my $file = (defined ($FILE_STRUCT->{$FILE_COUNTER}) ?
+ $FILE_STRUCT->{$FILE_COUNTER} : $FILE_COUNTER);
+
+ my $message_id = undef;
+ my $message_str = $function_args[$str_idx-1];
+
+ my $algorithm = 'fromIdParam';
+ if (defined( $callset->{$function_name}->{Algorithm})) {
+ $algorithm = $callset->{$function_name}->{Algorithm};
+ }
+ _d("Algorithm = $algorithm\n");
+
+ my $id_idx = $callset->{$function_name}->{IdParamIdx};
+ _d("IdParamIdx = $id_idx\n");
+ if ($algorithm eq 'hash65599') {
+ $message_id = hash_x65599 ($message_str, $function_args[$id_idx-1]);
+ } else {
+ $message_id = to_value($function_args[$id_idx-1]);
+ }
+
+ _d ("StringParamIdx = $str_idx\n");
+ _d ("IdSize = $idsize\n");
+ _d ("Found call: ".strip_whitespaces ($call)."\n");
+ _d ("Arguments: ".strip_whitespaces ($arguments)."\n");
+
+ if (!$found_quotes) {
+ _e ("Catalog instrumentation call \@ ".
+ "$file:$line_no_start ".
+ "could not be parsed. ".
+ "No valid format string found.\n");
+ }
+ if (!is_dec($message_id) && !is_hex($message_id)) {
+ _e ("Catalog instrumentation call \@ ".
+ "$file:$line_no_start '$message_id' ".
+ "is not decimal or hexadecimal.\n");
+ }
+
+ if (exists($USED_IDS->{$message_id})) {
+ if ($algorithm eq 'hash65599') {
+ _e ("Catalog instrumentation call \@ ".
+ "$file:$line_no_start hash based ID '$message_id' ".
+ "already exists. Change the offset value.\n");
+ } else {
+ _e ("Catalog instrumentation call \@ ".
+ "$file:$line_no_start with ID '$message_id' ".
+ "also exists \@ ".
+ $FILE_STRUCT->{$USED_IDS->{$message_id}->{file}}.
+ ":".
+ $USED_IDS->{$message_id}->{line}.".\n");
+ }
+ }
+ $MSG_STRUCT->{$idsize}->{$FILE_COUNTER}->{$line_no_start}->{$message_id} = $message_str;
+
+ $USED_IDS->{$message_id} ={
+ file => $FILE_COUNTER,
+ line => $line_no_start
+ };
+ $add_count++;
+
+ _d ("-" x 79 . "\n");
+ }
+ }
+ }
+ }
+ close (FILE);
+
+ return $add_count;
+}
+
+
+# =============================================================================
+# Helper functions.
+# =============================================================================
+
+
+#
+# read_options_from_config_file ()
+#
+# Description:
+# Read options from config file and store them into global data structure.
+# The function also checks if the resp. option was overruled by a command
+# line switch.
+#
+sub read_options_from_config_file {
+ $CONFIG = read_config ($OPTIONS{config});
+
+ if (!defined ($CONFIG->{CatalogConfigs})
+ || !defined ($CONFIG->{CatalogConfigs}->{CatalogConfig})) {
+ return;
+ }
+
+ my %new_options = ();
+ foreach my $config_record (@{$CONFIG->{CatalogConfigs}->{CatalogConfig}}) {
+ my $option = $config_record->{option};
+ my $value = $config_record->{value};
+ if (!defined($OPTIONS{$option})) {
+ if ($option eq "guid" || $option eq "src") {
+ if (!defined($new_options{$option})) {
+ @{$new_options{$option}} = ();
+ }
+ push (@{$new_options{$option}}, $value);
+ } else {
+ $new_options{$option} = $value;
+ }
+ } else {
+ _vi ("Config file option '$option' overruled by ".
+ "command line option\n");
+ }
+ }
+
+ # Merge the two hashes.
+ @OPTIONS{keys %new_options} = values %new_options;
+}
+
+#
+# read_options ()
+#
+# Description:
+# Read options from command line an store into global data structure.
+#
+sub read_options {
+ GetOptions (\%OPTIONS,
+ 'verbose|v',
+ 'debug|d',
+ 'src=s@',
+ 'catalog|cf=s',
+ 'config|c=s',
+ 'template|tpl=s',
+ 'nolocation|nl',
+ 'help|h'
+ ) or pod2usage(-exitval => 0, -verbose => 2, -noperldoc => 1);
+
+ if (defined($OPTIONS{help})) {
+ pod2usage(-exitval => 0, -verbose => 2, -noperldoc => 1);
+ }
+
+ if (!defined($OPTIONS{config})) {
+ _e ("-config option is missing\n");
+ } elsif (!-f $OPTIONS{config}) {
+ _e ("Specified config is not a file\n");
+ }
+
+ read_options_from_config_file ();
+
+ if (defined($OPTIONS{src})) {
+ map {
+ _e ("Not existing or not a directory: $_\n") if !-e $_ || !-d $_;
+ } @{$OPTIONS{src}};
+ } else {
+ _e ("-src option is missing\n");
+ }
+
+ if (!defined($OPTIONS{catalog})) {
+ _e ("-catalog option is missing\n");
+ }
+
+ if (!defined($OPTIONS{template})) {
+ _e ("-template option is missing\n");
+ }
+
+ if (defined($OPTIONS{indentation})) {
+ $INDENTATION = $OPTIONS{indentation};
+ }
+
+ if (defined($OPTIONS{nolocation}) and
+ (uc($OPTIONS{nolocation}) eq "TRUE") or ($OPTIONS{nolocation} == 1)
+ )
+ {
+ $SRCLOCATION = 0;
+ }
+}
+
+sub parse_guid {
+ my $guid_expr = $_[0];
+ my $ret = ();
+
+ if ($guid_expr =~ /^(.*);(.*)$/) {
+ $ret->{guid} = $1;
+ $ret->{mask} = $2;
+ } else {
+ $ret->{guid} = $guid_expr;
+ }
+
+ return $ret;
+}
+
+#
+# strip_comments (<string>)
+#
+# Description:
+# Strip C-style comments.
+#
+sub strip_comments {
+ my $str = $_[0];
+ $str =~ s/\/\/.*//;
+ $str =~ s/\/\*.*\*\///g;
+
+ return $str;
+}
+
+#
+# strip_whitespaces (<string>)
+#
+# Description:
+# Strip leading and trailing whitespaces/tabs.
+#
+sub strip_whitespaces {
+ my $str = $_[0];
+ $str =~ s/^\s+//;
+ $str =~ s/\s+$//;
+ $str =~ s/^\t+//;
+ $str =~ s/\t+$//;
+
+ return $str;
+}
+
+#
+# read_config (<configuration-file>)
+#
+# Description:
+# Read configuration and return data structure. An error
+# message will be printed for every missing required section.
+#
+sub read_config {
+ my $config_file = $_[0];
+
+ my $xml_ref = XMLin($config_file,
+ KeyAttr => {
+ 'CatalogCall' => 'Name'
+ },
+ ForceArray => [
+ 'CatalogCall',
+ 'SrcFilePattern',
+ 'CatalogConfig'
+ ]
+ );
+
+ if (!defined ($xml_ref->{SrcFilePatterns})
+ || !defined ($xml_ref->{SrcFilePatterns}->{SrcFilePattern})) {
+ _e ("The specified config file does not contain a correct ".
+ "SrcFilePatterns/SrcFilePattern structure\n");
+ }
+
+ if (!defined ($xml_ref->{CatalogCalls}) ||
+ (!defined ($xml_ref->{CatalogCalls}->{Catalog32}->{CatalogCall}) &&
+ !defined ($xml_ref->{CatalogCalls}->{Catalog64}->{CatalogCall}))
+ )
+ {
+ _e ("The specified config file does not contain a correct ".
+ "CatalogCalls/CatalogCall structure\n");
+ }
+
+ return $xml_ref;
+}
+
+#
+# hash_x65599 (<string>, <offset>)
+#
+# Description:
+# Calculates a x65599 hash for the provided string and offset value.
+#
+sub hash_x65599 {
+ my $string = String::Escape::unbackslash($_[0]);
+ my $offset = int($_[1]);
+
+ my $hash = 0;
+ my $tail256 = substr($string, -256);
+
+ foreach my $char (split(//, $tail256 )) {
+ $hash = uint ($hash * 65599 + ord($char));
+ }
+
+ return $hash + $offset;
+}
+
+#
+# uint (<number>)
+#
+# Description:
+# Mimics the unsigned int data type in Perl. Required for the x65599 hash
+# calculation.
+#
+sub uint {
+ return unpack('I', pack('I', $_[0]));
+}
+
+#
+# to_value (<hex or decimal number>)
+#
+# Description:
+# convert C-Language value to perl hex value
+#
+sub to_value {
+ my $input = $_[0];
+ my $val=0;
+
+ # Remove possible LL or ULL from the hex number in the C file.
+ $input =~ s/u?ll$//gi;
+ if (is_hex($input)) {
+ $val = hex($input);
+ } else {
+ $val = $input+0;
+ }
+
+ return $val;
+}
+
+
+#
+# is_hex (<number>)
+#
+# Description:
+# Checks if a number is a hex value.
+#
+sub is_hex {
+ return ($_[0] =~ /^0x[0-9a-f]+$/i);
+}
+
+#
+# is_dec (<number>)
+#
+# Description:
+# Checks if a number is a decimal value.
+#
+sub is_dec {
+ return ($_[0] =~ /^\d+$/);
+}
+
+#
+# _e (<msg>)
+#
+# Description:
+# Print error message on STDERR and exit with exist status 1.
+#
+sub _e {
+ _print (*STDERR, "[ERROR]", $_[0]);
+ exit (1);
+}
+
+#
+# _w (<msg>)
+#
+# Description:
+# Print warning message on STDOUT.
+#
+sub _w {
+ _print (*STDOUT, "[WARNING]", $_[0]);
+}
+
+#
+# _i (<msg>)
+#
+# Description:
+# Print general message on STDOUT.
+#
+sub _i {
+ _print (*STDOUT, "", $_[0]);
+}
+
+#
+# _vi (<msg>)
+#
+# Description:
+# Print verbose message on STDOUT.
+#
+sub _vi {
+ _i ($_[0]) if $OPTIONS{verbose};
+}
+
+#
+# _d (<msg>)
+#
+# Description:
+# Print debug message on STDOUT.
+#
+sub _d {
+ _print (*STDOUT, "[DEBUG]", $_[0]) if $OPTIONS{debug};
+}
+
+#
+# _print (<msg>)
+#
+# Description:
+# General print handler.
+#
+sub _print {
+ my $handle = $_[0];
+ my $prefix = $_[1];
+ my $msg = $_[2];
+
+ print $handle "$TOOL: ".($prefix ne "" ? $prefix.": " : ""). $msg;
+}
+
+main ();
+exit (0);
+
+__END__
+=head1 NAME
+
+B<syst_cgen.pl> -- A SyS-T collateral generation script.
+
+=head1 DESCRIPTION
+
+Generate a SyS-T colleteral file with catalog call information from source
+files. The script scans for pre-configured C-style macro calls and extracts
+the message, its ID and the line number and puts it into a SyS-T collateral
+XML structure.
+
+=head1 USAGE
+
+syst_cgen.pl
+
+ -config <config file>
+ [-template <catalog template file>]
+ [-src <src-dir-1>] [-src <src-dir-2> [...]] [-o <xml-file>]
+ [-verbose] [-debug]
+
+ -src <src-dir> Search path for the sources.
+ -catalog|-cf <dest-file> Destination catalog XML file.
+ -template|-tpl <catalog-file> Catalog template to be extended with messages.
+ -config|c <config-file> Catalog generation config file.
+ -nolocation|-nl Supress source location generation
+ -verbose|v Switch on verbose messages.
+ -debug|d Switch on debug messages.
+
+
+=head1 CONFIGURATION
+
+The catalog configuration file specifies the parameters of the script, e.g.
+the macro call names, the argument structure of the calls, and file extensions,
+which should be scanned.
+
+=head2 EXAMPLE CATALOG CONFIGURATION
+ <CatalogGenerator>
+ <CatalogConfigs>
+ <CatalogConfig option="catalog" value="generated_catalog.xml" />
+ <CatalogConfig option="template" value="template.xml" />
+ <CatalogConfig option="indentation" value="4" />
+ <CatalogConfig option="nolocation" value="true|false" />
+ <CatalogConfig option="src" value="." />
+ </CatalogConfigs>
+ <SrcFilePatterns>
+ <SrcFilePattern Pattern="*.{cpp,c,h}" />
+ </SrcFilePatterns>
+ <CatalogCalls>
+ <Catalog32>
+ <CatalogCall Name="MIPI_SYST_HASH" Algorithm="hash65599" IdParamIdx="2" StringParamIdx="1" />
+
+ <CatalogCall Name="MIPI_SYST_CATPRINTF32" IdParamIdx="3" StringParamIdx="4" />
+ <CatalogCall Name="MIPI_SYST_CATPRINTF32_0" IdParamIdx="3" StringParamIdx="4" />
+ <CatalogCall Name="MIPI_SYST_CATPRINTF32_1" IdParamIdx="3" StringParamIdx="4" />
+ <CatalogCall Name="MIPI_SYST_CATPRINTF32_2" IdParamIdx="3" StringParamIdx="4" />
+ <CatalogCall Name="MIPI_SYST_CATPRINTF32_3" IdParamIdx="3" StringParamIdx="4" />
+ <CatalogCall Name="MIPI_SYST_CATPRINTF32_4" IdParamIdx="3" StringParamIdx="4" />
+ <CatalogCall Name="MIPI_SYST_CATPRINTF32_5" IdParamIdx="3" StringParamIdx="4" />
+ <CatalogCall Name="MIPI_SYST_CATPRINTF32_6" IdParamIdx="3" StringParamIdx="4" />
+ </Catalog32>
+ <Catalog64>
+ <CatalogCall Name="MIPI_SYST_CATPRINTF64" IdParamIdx="3" StringParamIdx="4" />
+ <CatalogCall Name="MIPI_SYST_CATPRINTF64_0" IdParamIdx="3" StringParamIdx="4" />
+ <CatalogCall Name="MIPI_SYST_CATPRINTF64_1" IdParamIdx="3" StringParamIdx="4" />
+ <CatalogCall Name="MIPI_SYST_CATPRINTF64_2" IdParamIdx="3" StringParamIdx="4" />
+ <CatalogCall Name="MIPI_SYST_CATPRINTF64_3" IdParamIdx="3" StringParamIdx="4" />
+ <CatalogCall Name="MIPI_SYST_CATPRINTF64_4" IdParamIdx="3" StringParamIdx="4" />
+ <CatalogCall Name="MIPI_SYST_CATPRINTF64_5" IdParamIdx="3" StringParamIdx="4" />
+ <CatalogCall Name="MIPI_SYST_CATPRINTF64_6" IdParamIdx="3" StringParamIdx="4" />
+ </Catalog64>
+ </CatalogCalls>
+ </CatalogGenerator>
+
+=head2 SECTION SrcFileExtensions
+
+ <SrcFilePatterns>
+ <SrcFilePattern Pattern="<pattern>" />
+ </SrcFilePatterns>
+
+This sections defines the file extensions, which will be scanned by the script.
+
+=head2 SECTION CatalogCalls
+
+ <CatalogCalls>
+ <Catalog64 or Catalog32>
+ <CatalogCall Name="<macro-name>" IdParamIdx="<id-argument-index>"
+ StringParamIdx="<format-string-index>" IdSize="<id-size>" />
+ </Catalog64 or /Catalog32>
+ </CatalogCalls>
+
+This section describes the used macro calls. It describes how the macro is
+named and where the arguments of intereset can be found by the script. There
+are different sections for 32 bit and 64 bit wide catalog calls.
+
+=head2 SECTION CatalogConfigs
+
+ <CatalogConfigs>
+ <CatalogConfig option="<option-name>" value="<value>" />
+ </CatalogConfigs>
+
+This section specifies pre-defined options for the catalog generation script.
+The options will be overruled by the respective command line options.
+
+=cut
diff --git a/collateral/sys-t_1-0.xsd b/collateral/sys-t_1-0.xsd
new file mode 100644
index 0000000..248d3e6
--- /dev/null
+++ b/collateral/sys-t_1-0.xsd
@@ -0,0 +1,292 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright(c) 2018, MIPI Alliance, Inc.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+ * Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+ -->
+
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ targetNamespace="http://www.mipi.org/1.0/sys-t"
+ xmlns="http://www.mipi.org/1.0/sys-t"
+ xmlns:syst="http://www.mipi.org/1.0/sys-t"
+ elementFormDefault="qualified">
+
+ <xs:element name="Collateral">
+ <xs:complexType>
+ <xs:sequence minOccurs="1" maxOccurs="unbounded">
+ <xs:element name ="Client">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name ="Guids">
+ <xs:complexType>
+ <xs:sequence minOccurs="1" maxOccurs="unbounded">
+ <xs:element name ="Guid" type="typeGuid"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:unique name="uniqueGuidIds">
+ <xs:selector xpath="syst:Guid" />
+ <xs:field xpath="@ID" />
+ </xs:unique>
+ </xs:element>
+ <xs:element name ="Builds" minOccurs="0" maxOccurs="1" >
+ <xs:complexType>
+ <xs:sequence minOccurs="1" maxOccurs="unbounded">
+ <xs:element name ="Build" type="typeBuild"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:unique name="uniqueBuildIds">
+ <xs:selector xpath="syst:Build" />
+ <xs:field xpath="@ID" />
+ </xs:unique>
+ </xs:element>
+ <xs:element name ="Options" minOccurs="0" maxOccurs="1" >
+ <xs:complexType>
+ <xs:sequence minOccurs="1" maxOccurs="unbounded">
+ <xs:element name ="Option" type="typeOption"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name ="Modules" minOccurs="0" maxOccurs="1" >
+ <xs:complexType>
+ <xs:sequence minOccurs="1" maxOccurs="unbounded">
+ <xs:element name ="Module" type="typeModule"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:unique name="uniqueModuleIds">
+ <xs:selector xpath="syst:Module" />
+ <xs:field xpath="@ID" />
+ </xs:unique>
+ </xs:element>
+ <xs:element name="SourceFiles" minOccurs="0" maxOccurs="1">
+ <xs:complexType>
+ <xs:sequence minOccurs="1" maxOccurs="unbounded">
+ <xs:element name ="File" type="typeFile"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:unique name="uniqueSourceIds">
+ <xs:selector xpath="syst:File" />
+ <xs:field xpath="@ID" />
+ </xs:unique>
+ </xs:element>
+ <xs:element name="Catalog32" minOccurs="0" maxOccurs="1">
+ <xs:complexType>
+ <xs:sequence minOccurs="1" maxOccurs="unbounded">
+ <xs:element name ="Format" type="typeCatalog32"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:unique name="uniqueCatalog32Ids">
+ <xs:selector xpath="syst:Format" />
+ <xs:field xpath="@ID" />
+ </xs:unique>
+ </xs:element>
+ <xs:element name="Catalog64" minOccurs="0" maxOccurs="1">
+ <xs:complexType>
+ <xs:sequence minOccurs="1" maxOccurs="unbounded">
+ <xs:element name ="Format" type="typeCatalog64"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:unique name="uniqueCatalog64Ids">
+ <xs:selector xpath="syst:Format" />
+ <xs:field xpath="@ID" />
+ </xs:unique>
+ </xs:element>
+ <xs:element name="Short32" minOccurs="0" maxOccurs="1">
+ <xs:complexType>
+ <xs:sequence minOccurs="1" maxOccurs="unbounded">
+ <xs:element name ="Format" type="typeShort32"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:unique name="uniqueShort32Ids">
+ <xs:selector xpath="syst:Format" />
+ <xs:field xpath="@ID" />
+ </xs:unique>
+ </xs:element>
+ <xs:element name="Short64" minOccurs="0" maxOccurs="1">
+ <xs:complexType>
+ <xs:sequence minOccurs="1" maxOccurs="unbounded">
+ <xs:element name ="Format" type="typeShort64"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:unique name="uniqueShort64Ids">
+ <xs:selector xpath="syst:Format" />
+ <xs:field xpath="@ID" />
+ </xs:unique>
+ </xs:element>
+ <xs:element name="Write" minOccurs="0" maxOccurs="1">
+ <xs:complexType>
+ <xs:sequence minOccurs="1" maxOccurs="unbounded">
+ <xs:element name ="Protocol" type="Write"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:unique name="uniqueWriteIds">
+ <xs:selector xpath="syst:Protocol" />
+ <xs:field xpath="@ID" />
+ </xs:unique>
+ </xs:element>
+ </xs:sequence>
+ <xs:attribute name="Name" type="xs:string" use="required" />
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:complexType name="typeGuid">
+ <xs:simpleContent>
+ <xs:extension base="xs:string">
+ <xs:attribute name="ID" type="guidString" use="required" />
+ <xs:attribute name="Mask" type="guidString" use="optional" />
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+
+ <xs:complexType name="typeBuild">
+ <xs:simpleContent>
+ <xs:extension base="xs:string">
+ <xs:attribute name="ID" type="unsigned64" use="required" />
+ <xs:attribute name="Mask" type="unsigned64" use="optional" />
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+
+ <!-- Complex SyS-T XML type definitions -->
+
+ <xs:complexType name="typeModule">
+ <xs:simpleContent>
+ <xs:extension base="xs:string">
+ <xs:attribute name="ID" type="unsigned64" use="required" />
+ <xs:attribute name="Mask" type="unsigned64" use="optional" />
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+
+ <xs:complexType name="typeOption">
+ <xs:simpleContent>
+ <xs:extension base="xs:string">
+ <xs:attribute name="Name" type="xs:string" use="required" />
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+
+ <xs:complexType name="typeFile">
+ <xs:simpleContent>
+ <xs:extension base="nonEmptyString">
+ <xs:attribute name="ID" type="unsigned32" use="required" />
+ <xs:attribute name="Mask" type="unsigned32" use="optional" />
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+
+ <xs:complexType name="typeCatalog32">
+ <xs:simpleContent>
+ <xs:extension base="nonEmptyString">
+ <xs:attribute name="ID" type="unsigned32" use="required" />
+ <xs:attribute name="Mask" type="unsigned32" use="optional" />
+ <xs:attribute name="File" type="unsigned32" use="optional"/>
+ <xs:attribute name="Line" type="unsigned32" use="optional"/>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+
+ <xs:complexType name="typeCatalog64">
+ <xs:simpleContent>
+ <xs:extension base="nonEmptyString">
+ <xs:attribute name="ID" type="unsigned64" use="required" />
+ <xs:attribute name="Mask" type="unsigned64" use="optional" />
+ <xs:attribute name="File" type="unsigned32" use="optional"/>
+ <xs:attribute name="Line" type="unsigned32" use="optional"/>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+
+ <xs:complexType name="typeShort32">
+ <xs:simpleContent>
+ <xs:extension base="nonEmptyString">
+ <xs:attribute name="ID" type="unsigned32" use="required" />
+ <xs:attribute name="Mask" type="unsigned32" use="optional" />
+ <xs:attribute name="File" type="unsigned32" use="optional"/>
+ <xs:attribute name="Line" type="unsigned32" use="optional"/>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+
+ <xs:complexType name="typeShort64">
+ <xs:simpleContent>
+ <xs:extension base="nonEmptyString">
+ <xs:attribute name="ID" type="unsigned64" use="required" />
+ <xs:attribute name="Mask" type="unsigned64" use="optional" />
+ <xs:attribute name="File" type="unsigned32" use="optional"/>
+ <xs:attribute name="Line" type="unsigned32" use="optional"/>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+
+ <xs:complexType name="Write">
+ <xs:simpleContent>
+ <xs:extension base="nonEmptyString">
+ <xs:attribute name="ID" type="unsigned6" use="required" />
+ <xs:attribute name="Mask" type="unsigned6" use="optional" />
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+
+ <!-- Simple type definitions -->
+
+ <xs:simpleType name="nonEmptyString">
+ <xs:restriction base="xs:string">
+ <xs:minLength value="1"/>
+ </xs:restriction>
+ </xs:simpleType>
+
+ <xs:simpleType name="unsigned32">
+ <xs:restriction base="xs:string">
+ <xs:pattern value="0x[0-9a-fA-F]{1,8}|0|[1-9][0-9]{1,9}"/>
+ </xs:restriction>
+ </xs:simpleType>
+
+ <xs:simpleType name="unsigned64">
+ <xs:restriction base="xs:string">
+ <xs:pattern value="0x[0-9a-fA-F]{1,16}|0|[1-9][0-9]{1,20}"/>
+ </xs:restriction>
+ </xs:simpleType>
+
+ <xs:simpleType name="unsigned6">
+ <xs:restriction base="xs:string">
+ <xs:pattern value="0x[0-9a-fA-F]{0,2}|0|[1-9][0-9]{1,2}"/>
+ </xs:restriction>
+ </xs:simpleType>
+
+ <xs:simpleType name="guidString">
+ <xs:restriction base="xs:string">
+ <xs:pattern value="\{[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\}"/>
+ </xs:restriction>
+ </xs:simpleType>
+
+</xs:schema>
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
new file mode 100644
index 0000000..9c6874c
--- /dev/null
+++ b/examples/CMakeLists.txt
@@ -0,0 +1,28 @@
+project(SYST_Examples)
+cmake_minimum_required (VERSION 2.8)
+
+get_filename_component(
+ THIS_PATH "${CMAKE_CURRENT_SOURCE_DIR}"
+ ABSOLUTE
+)
+
+set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${THIS_PATH}/cmake")
+
+if (defined $ENV{SYST_SDK})
+ set(SYST_SDK "ENV{SYST_SDK}" CACHE PATH "SYS-T header and library root folder")
+else()
+ set(SYST_SDK "(not-set)" CACHE PATH "SYS-T header and library root folder")
+endif()
+
+find_package(SyST REQUIRED)
+
+# static linking flags
+#
+add_definitions(-DMIPI_SYST_STATIC)
+set(SYST_LIBRARIES ${SYST_LIBRARIES_STATIC})
+
+#dynamic linking, requires location of mipi_syst.dll to be in the PATH.
+#set(SYST_LIBRARIES ${SYST_LIBRARIES_DYNAMIC})
+
+add_subdirectory(hello)
+add_subdirectory(client) \ No newline at end of file
diff --git a/examples/client/CMakeLists.txt b/examples/client/CMakeLists.txt
new file mode 100644
index 0000000..6362dde
--- /dev/null
+++ b/examples/client/CMakeLists.txt
@@ -0,0 +1,11 @@
+include_directories(
+ ${SYST_INCLUDE_DIRS}
+)
+
+add_executable(systclient systclient.c othersource.c)
+target_link_libraries(systclient ${SYST_LIBRARIES})
+
+install(TARGETS systclient
+ RUNTIME DESTINATION bin
+ LIBRARY DESTINATION bin
+) \ No newline at end of file
diff --git a/examples/client/collateral_config.xml b/examples/client/collateral_config.xml
new file mode 100644
index 0000000..76cacde
--- /dev/null
+++ b/examples/client/collateral_config.xml
@@ -0,0 +1,37 @@
+<CatalogGenerator>
+ <CatalogConfigs>
+ <CatalogConfig option="catalog" value="generated_catalog.xml" />
+ <CatalogConfig option="template" value="template.xml" />
+ <CatalogConfig option="indentation" value="4" />
+ <CatalogConfig option="nolocation" value="false"/>
+ <CatalogConfig option="src" value="." />
+ </CatalogConfigs>
+ <SrcFilePatterns>
+ <SrcFilePattern Pattern="*.{cpp,c,h}" />
+ </SrcFilePatterns>
+ <CatalogCalls>
+ <Catalog32>
+ <CatalogCall Name="MIPI_SYST_HASH" Algorithm="hash65599" IdParamIdx="2" StringParamIdx="1" />
+
+ <CatalogCall Name="MIPI_SYST_CATPRINTF32" IdParamIdx="3" StringParamIdx="4" />
+ <CatalogCall Name="MIPI_SYST_CATPRINTF32_0" IdParamIdx="3" StringParamIdx="4" />
+ <CatalogCall Name="MIPI_SYST_CATPRINTF32_1" IdParamIdx="3" StringParamIdx="4" />
+ <CatalogCall Name="MIPI_SYST_CATPRINTF32_2" IdParamIdx="3" StringParamIdx="4" />
+ <CatalogCall Name="MIPI_SYST_CATPRINTF32_3" IdParamIdx="3" StringParamIdx="4" />
+ <CatalogCall Name="MIPI_SYST_CATPRINTF32_4" IdParamIdx="3" StringParamIdx="4" />
+ <CatalogCall Name="MIPI_SYST_CATPRINTF32_5" IdParamIdx="3" StringParamIdx="4" />
+ <CatalogCall Name="MIPI_SYST_CATPRINTF32_6" IdParamIdx="3" StringParamIdx="4" />
+ </Catalog32>
+
+ <Catalog64>
+ <CatalogCall Name="MIPI_SYST_CATPRINTF64" IdParamIdx="3" StringParamIdx="4" />
+ <CatalogCall Name="MIPI_SYST_CATPRINTF64_0" IdParamIdx="3" StringParamIdx="4" />
+ <CatalogCall Name="MIPI_SYST_CATPRINTF64_1" IdParamIdx="3" StringParamIdx="4" />
+ <CatalogCall Name="MIPI_SYST_CATPRINTF64_2" IdParamIdx="3" StringParamIdx="4" />
+ <CatalogCall Name="MIPI_SYST_CATPRINTF64_3" IdParamIdx="3" StringParamIdx="4" />
+ <CatalogCall Name="MIPI_SYST_CATPRINTF64_4" IdParamIdx="3" StringParamIdx="4" />
+ <CatalogCall Name="MIPI_SYST_CATPRINTF64_5" IdParamIdx="3" StringParamIdx="4" />
+ <CatalogCall Name="MIPI_SYST_CATPRINTF64_6" IdParamIdx="3" StringParamIdx="4" />
+ </Catalog64>
+ </CatalogCalls>
+</CatalogGenerator>
diff --git a/examples/client/gencat.bat b/examples/client/gencat.bat
new file mode 100644
index 0000000..7861c29
--- /dev/null
+++ b/examples/client/gencat.bat
@@ -0,0 +1 @@
+perl ..\..\collateral\generator\syst_cgen.pl -c collateral_config.xml \ No newline at end of file
diff --git a/examples/client/gencat.sh b/examples/client/gencat.sh
new file mode 100644
index 0000000..0fe3531
--- /dev/null
+++ b/examples/client/gencat.sh
@@ -0,0 +1 @@
+perl ../../collateral/generator/syst_cgen.pl -c collateral_config.xml
diff --git a/examples/client/othersource.c b/examples/client/othersource.c
new file mode 100644
index 0000000..e4ff5d5
--- /dev/null
+++ b/examples/client/othersource.c
@@ -0,0 +1,368 @@
+/*
+ Copyright (c) 2018, MIPI Alliance, Inc.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+ * Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+#include "mipi_syst.h"
+
+extern struct mipi_syst_handle * systh;
+
+void banner()
+{
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("+-------------------------------------------------------+", 0));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| ____ _____ _______ |", 0));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| / ___| / ____| |__ __| |", 0));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| | |___ __ _| |___ _____| | |", 0));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| \\___ \\| | | |\\___ \\_____| | |", 0));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| ____| | |_| |____| | | | |", 0));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| |_____/ \\__| |_____/ |_| |", 0));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| _/ / |", 0));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| |__/ |", 0));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("+-------------------------------------------------------+", 1));
+}
+
+/*
+* Use dynamic width settings with %*s formats to draw a sinus pattern
+*/
+static int sin_wave[30] = {
+ 0, 5,11,16,20,24,26,27,27,26,24,20,16,11, 5, 0,-5,-11,-16,-20,-24,-26,-27,-27,-26,-24,-20,-16,-11,-5
+};
+
+void sinewave()
+{
+ int i, ii, y;
+
+ /* Show printf formatting capabilties of catalog and printf messages
+ */
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_DEBUG, "|-------------------------------------------------------|");
+
+ for (i = 0; i < 1; ++i) {
+ for (ii = 0; ii < 30; ++ii) {
+ y = sin_wave[ii];
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_DEBUG,
+ MIPI_SYST_HASH("| '%%*so%%*s | '%*so%*s ' |", 0),
+ MIPI_SYST_PARAM_INT(14 - y / 2),
+ MIPI_SYST_PARAM_CSTR(""),
+ MIPI_SYST_PARAM_INT(14 + y / 2),
+ MIPI_SYST_PARAM_CSTR(""));
+ }
+ }
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_DEBUG, "|-------------------------------------------------------|");
+}
+
+/* each client can use the 6-bit subtype value for tagging the write content */
+#define WRITE_DATA_TAG 0x1
+
+/* raw data outputting
+ */
+void raw()
+{
+ unsigned char data[10];
+ int i;
+
+ for (i = 0; i < sizeof(data) / sizeof(data[0]); ++i) {
+ data[i] = i;
+ }
+ MIPI_SYST_WRITE(systh, MIPI_SYST_SEVERITY_MAX, WRITE_DATA_TAG, data, sizeof(data));
+}
+
+void short_messages()
+{
+ /* simple values
+ */
+ MIPI_SYST_SHORT32(systh, 0x1234567);
+ MIPI_SYST_SHORT64(systh, 0x112233445566778);
+
+ /* Example using a mask to classify values
+ * see collateral xml where mask is defined
+ */
+#define E_MASK 0x0E000000 /* 0xE in bits 24..28 means error, the lower bits error number */
+#define E_ONE E_MASK|1
+#define E_TWO E_MASK|2
+
+ MIPI_SYST_SHORT32(systh, E_ONE);
+ MIPI_SYST_SHORT32(systh, E_TWO);
+
+#define W_MASK 0x0F000000 /* 0xF in bits 24..28 means warning, the lower bits warning number */
+#define W_ONE W_MASK|1
+#define W_TWO W_MASK|2
+
+ MIPI_SYST_SHORT32(systh, W_ONE);
+ MIPI_SYST_SHORT32(systh, W_TWO);
+}
+
+void foo()
+{
+ MIPI_SYST_CATALOG32_0(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("in function foo",0));
+}
+
+void bar()
+{
+ MIPI_SYST_CATALOG32_0(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("in function bar",0));
+}
+
+void printf_format_test()
+{
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "|-------------------------------------------------------|");
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| printf Format | printf Result |");
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "|---------------------------------strings---------------|");
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%30s' | '%30s' |", "right-justified");
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%-30s' | '%-30s' |", "left-justified");
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "|---------------------------------ASCII-----------------|");
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%s' | '%s' |", "!\"#$%&'()*+-./0123456789:;<=>");
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%s' | '%s' |", "?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[");
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%s' | '%s' |", "\\]^_`qbcdefghijklmnopqrstuvwx");
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%s' | '%s' |", "yz{|}~ ");
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "|---------------------------------decimals--------------|");
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%30d' | '%30d' |", 1);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%30d' | '%30d' |", 10);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%30d' | '%30d' |", 100);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%30d' | '%30d' |", 1000);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%30d' | '%30d' |", 10000);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%30d' | '%30d' |", 100000);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%-30d' | '%-30d' |", 1);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%-30d' | '%-30d' |", 10);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%-30d' | '%-30d' |", 100);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%-30d' | '%-30d' |", 1000);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%-30d' | '%-30d' |", 10000);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%-30d' | '%-30d' |", 100000);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "|----------------------------------hexadecimals---------|");
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%30x' | '%30x' |", 0xa);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%30x' | '%30x' |", 0xab);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%30x' | '%30x' |", 0xabc);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%30x' | '%30x' |", 0xabcd);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%30x' | '%30x' |", 0xabcde);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%30x' | '%30x' |", 0xabcdef);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%-30x' | '%-30x' |", 0xa);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%-30x' | '%-30x' |", 0xab);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%-30x' | '%-30x' |", 0xabc);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%-30x' | '%-30x' |", 0xabcd);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%-30x' | '%-30x' |", 0xabcde);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%-30x' | '%-30x' |", 0xabcdef);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%30X' | '%30X' |", 0xa);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%30X' | '%30X' |", 0xab);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%30X' | '%30X' |", 0xabc);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%30X' | '%30X' |", 0xabcd);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%30X' | '%30X' |", 0xabcde);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%30X' | '%30X' |", 0xabcdef);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%-30X' | '%-30X' |", 0xa);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%-30X' | '%-30X' |", 0xab);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%-30X' | '%-30X' |", 0xabc);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%-30X' | '%-30X' |", 0xabcd);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%-30X' | '%-30X' |", 0xabcde);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%-30X' | '%-30X' |", 0xabcdef);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "|-----------------------------------double--------------|");
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%30.1f' | '%30.1f' |", 3.14159265359);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%30.2f' | '%30.2f' |", 3.14159265359);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%30.3f' | '%30.3f' |", 3.14159265359);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%30.4f' | '%30.4f' |", 3.14159265359);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%30.5f' | '%30.5f' |", 3.14159265359);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%30.6f' | '%30.6f' |", 3.14159265359);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%30.7f' | '%30.7f' |", 3.14159265359);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%30.8f' | '%30.8f' |", 3.14159265359);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%30.9f' | '%30.9f' |", 3.14159265359);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%30.10f' | '%30.10f' |", 3.14159265359);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%-30.1f' | '%-30.1f' |", 3.14159265359);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%-30.2f' | '%-30.2f' |", 3.14159265359);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%-30.3f' | '%-30.3f' |", 3.14159265359);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%-30.4f' | '%-30.4f' |", 3.14159265359);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%-30.5f' | '%-30.5f' |", 3.14159265359);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%-30.6f' | '%-30.6f' |", 3.14159265359);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%-30.7f' | '%-30.7f' |", 3.14159265359);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%-30.8f' | '%-30.8f' |", 3.14159265359);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%-30.9f' | '%-30.9f' |", 3.14159265359);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%-30.10f' | '%-30.10f' |", 3.14159265359);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "|-----------------------------------scientific----------|");
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%30.1e' | '%30.1e' |", 1.5);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%30.2e' | '%30.2e' |", 10.5);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%30.3e' | '%30.3e' |", 10.5);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%30.4e' | '%30.4e' |", 100.5);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%30.5e' | '%30.5e' |", 1000.5);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%30.6e' | '%30.6e' |", 10000.5);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%30.7e' | '%30.7e' |", 10000.5);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%30.8e' | '%30.8e' |", 10000.5);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%30.9e' | '%30.9e' |", 100000.5);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%30.10e' | '%30.10e' |", 1000000.5);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%-30.1e' | '%-30.1e' |", 1.5);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%-30.2e' | '%-30.2e' |", 10.5);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%-30.3e' | '%-30.3e' |", 10.5);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%-30.4e' | '%-30.4e' |", 100.5);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%-30.5e' | '%-30.5e' |", 1000.5);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%-30.6e' | '%-30.6e' |", 10000.5);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%-30.7e' | '%-30.7e' |", 10000.5);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%-30.8e' | '%-30.8e' |", 10000.5);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%-30.9e' | '%-30.9e' |", 100000.5);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%-30.10e' | '%-30.10e' |", 1000000.5);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "|-----------------------------------exotics-------------|");
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%030hhu' | '%030hhu' |", (unsigned char)-1);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%030hu' | '%030hu' |", (unsigned int)-1);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%030lu' | '%030lu' |", (unsigned long int) - 1);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%030llu' | '%030llu' |", (unsigned long long) - 1);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%030hho' | '%030hho' |", (unsigned char)-1);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%030ho' | '%030ho' |", (unsigned int)-1);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%030lo' | '%030lo' |", (unsigned long int) - 1);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%030llo' | '%030llo' |", (unsigned long long) - 1);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%030hhx' | '%030hhx' |", (unsigned char)-1);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%030hx' | '%030hx' |", (unsigned int)-1);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%030lx' | '%030lx' |", (unsigned long int) - 1);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%030llx' | '%030llx' |", (unsigned long long) - 1);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%-30hhu' | '%-30hhu' |", (unsigned char)-1);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%-30hu' | '%-30hu' |", (unsigned int)-1);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%#-30lu' | '%#-30lu' |", (unsigned long int) - 1);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%#-30llu' | '%#-30llu' |", (unsigned long long) - 1);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%#-30hho' | '%#-30hho' |", (unsigned char)-1);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%#-30ho' | '%#-30ho' |", (unsigned int)-1);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%#-30lo' | '%#-30lo' |", (unsigned long int) - 1);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%#-30llo' | '%#-30llo' |", (unsigned long long) - 1);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%#-30hhx' | '%#-30hhx' |", (unsigned char)-1);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%#-30hx' | '%#-30hx' |", (unsigned int)-1);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%#-30lx' | '%#-30lx' |", (unsigned long int) - 1);
+ MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO, "| '%%#-30llx' | '%#-30llx' |", (unsigned long long) - 1);
+}
+
+/* same as printf, but now using catalog messaging*/
+void catalog_format_test()
+{
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| catalog Format | Printed Result |",0));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("|---------------------------------strings---------------|",0));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%30s' | '%30s' |", 0), MIPI_SYST_PARAM_CSTR("right-justified"));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%-30s' | '%-30s' |", 0), MIPI_SYST_PARAM_CSTR("left-justified"));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("|---------------------------------ASCII-----------------|",0));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%s' | '%s' |",0), MIPI_SYST_PARAM_CSTR("!\"#$%&'()*+-./0123456789:;<=>"));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%s' | '%s' |",1), MIPI_SYST_PARAM_CSTR("?@ABCDEFGHIJKLMNOPQRSTUVWXYZ["));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%s' | '%s' |",2), MIPI_SYST_PARAM_CSTR("\\]^_`qbcdefghijklmnopqrstuvwx"));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%s' | '%s' |",3), MIPI_SYST_PARAM_CSTR("yz{|}~ "));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("|---------------------------------decimals--------------|",0));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%30d' | '%30d' |",0), MIPI_SYST_PARAM_INT(1));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%30d' | '%30d' |",1), MIPI_SYST_PARAM_INT(10));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%30d' | '%30d' |",2), MIPI_SYST_PARAM_INT(100));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%30d' | '%30d' |",3), MIPI_SYST_PARAM_INT(1000));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%30d' | '%30d' |",4), MIPI_SYST_PARAM_INT(10000));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%30d' | '%30d' |",5), MIPI_SYST_PARAM_INT(100000));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%-30d' | '%-30d' |",0), MIPI_SYST_PARAM_INT(1));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%-30d' | '%-30d' |",1), MIPI_SYST_PARAM_INT(10));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%-30d' | '%-30d' |",2), MIPI_SYST_PARAM_INT(100));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%-30d' | '%-30d' |",3), MIPI_SYST_PARAM_INT(1000));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%-30d' | '%-30d' |",4), MIPI_SYST_PARAM_INT(10000));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%-30d' | '%-30d' |",5), MIPI_SYST_PARAM_INT(100000));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("|----------------------------------hexadecimals---------|",0));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%30x' | '%30x' |",0), MIPI_SYST_PARAM_INT(0xa));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%30x' | '%30x' |",1), MIPI_SYST_PARAM_INT(0xab));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%30x' | '%30x' |",2), MIPI_SYST_PARAM_INT(0xabc));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%30x' | '%30x' |",3), MIPI_SYST_PARAM_INT(0xabcd));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%30x' | '%30x' |",4), MIPI_SYST_PARAM_INT(0xabcde));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%30x' | '%30x' |",5), MIPI_SYST_PARAM_INT(0xabcdef));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%-30x' | '%-30x' |",0), MIPI_SYST_PARAM_INT(0xa));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%-30x' | '%-30x' |",1), MIPI_SYST_PARAM_INT(0xab));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%-30x' | '%-30x' |",2), MIPI_SYST_PARAM_INT(0xabc));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%-30x' | '%-30x' |",3), MIPI_SYST_PARAM_INT(0xabcd));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%-30x' | '%-30x' |",4), MIPI_SYST_PARAM_INT(0xabcde));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%-30x' | '%-30x' |",5), MIPI_SYST_PARAM_INT(0xabcdef));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%30X' | '%30X' |",0), MIPI_SYST_PARAM_INT(0xa));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%30X' | '%30X' |",1), MIPI_SYST_PARAM_INT(0xab));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%30X' | '%30X' |",2), MIPI_SYST_PARAM_INT(0xabc));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%30X' | '%30X' |",3), MIPI_SYST_PARAM_INT(0xabcd));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%30X' | '%30X' |",4), MIPI_SYST_PARAM_INT(0xabcde));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%30X' | '%30X' |",5), MIPI_SYST_PARAM_INT(0xabcdef));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%-30X' | '%-30X' |",0), MIPI_SYST_PARAM_INT(0xa));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%-30X' | '%-30X' |",1), MIPI_SYST_PARAM_INT(0xab));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%-30X' | '%-30X' |",2), MIPI_SYST_PARAM_INT(0xabc));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%-30X' | '%-30X' |",3), MIPI_SYST_PARAM_INT(0xabcd));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%-30X' | '%-30X' |",4), MIPI_SYST_PARAM_INT(0xabcde));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%-30X' | '%-30X' |",5), MIPI_SYST_PARAM_INT(0xabcdef));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("|-----------------------------------double--------------|",0));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%30.1f' | '%30.1f' |",0), MIPI_SYST_PARAM_FLOAT(3.14159265359));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%30.2f' | '%30.2f' |",0), MIPI_SYST_PARAM_FLOAT(3.14159265359));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%30.3f' | '%30.3f' |",0), MIPI_SYST_PARAM_FLOAT(3.14159265359));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%30.4f' | '%30.4f' |",0), MIPI_SYST_PARAM_FLOAT(3.14159265359));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%30.5f' | '%30.5f' |",0), MIPI_SYST_PARAM_FLOAT(3.14159265359));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%30.6f' | '%30.6f' |",0), MIPI_SYST_PARAM_FLOAT(3.14159265359));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%30.7f' | '%30.7f' |",0), MIPI_SYST_PARAM_FLOAT(3.14159265359));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%30.8f' | '%30.8f' |",0), MIPI_SYST_PARAM_FLOAT(3.14159265359));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%30.9f' | '%30.9f' |",0), MIPI_SYST_PARAM_FLOAT(3.14159265359));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%30.10f' | '%30.10f' |",0), MIPI_SYST_PARAM_FLOAT(3.14159265359));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%-30.1f' | '%-30.1f' |",0), MIPI_SYST_PARAM_FLOAT(3.14159265359));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%-30.2f' | '%-30.2f' |",0), MIPI_SYST_PARAM_FLOAT(3.14159265359));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%-30.3f' | '%-30.3f' |",0), MIPI_SYST_PARAM_FLOAT(3.14159265359));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%-30.4f' | '%-30.4f' |",0), MIPI_SYST_PARAM_FLOAT(3.14159265359));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%-30.5f' | '%-30.5f' |",0), MIPI_SYST_PARAM_FLOAT(3.14159265359));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%-30.6f' | '%-30.6f' |",0), MIPI_SYST_PARAM_FLOAT(3.14159265359));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%-30.7f' | '%-30.7f' |",0), MIPI_SYST_PARAM_FLOAT(3.14159265359));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%-30.8f' | '%-30.8f' |",0), MIPI_SYST_PARAM_FLOAT(3.14159265359));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%-30.9f' | '%-30.9f' |",0), MIPI_SYST_PARAM_FLOAT(3.14159265359));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%-30.10f' | '%-30.10f' |",0), MIPI_SYST_PARAM_FLOAT(3.14159265359));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("|-----------------------------------scientific----------|",0));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%30.1e' | '%30.1e' |",0), MIPI_SYST_PARAM_DOUBLE(1.5));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%30.2e' | '%30.2e' |",0), MIPI_SYST_PARAM_DOUBLE(10.5));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%30.3e' | '%30.3e' |",0), MIPI_SYST_PARAM_DOUBLE(10.5));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%30.4e' | '%30.4e' |",0), MIPI_SYST_PARAM_DOUBLE(100.5));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%30.5e' | '%30.5e' |",0), MIPI_SYST_PARAM_DOUBLE(1000.5));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%30.6e' | '%30.6e' |",0), MIPI_SYST_PARAM_DOUBLE(10000.5));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%30.7e' | '%30.7e' |",0), MIPI_SYST_PARAM_DOUBLE(10000.5));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%30.8e' | '%30.8e' |",0), MIPI_SYST_PARAM_DOUBLE(10000.5));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%30.9e' | '%30.9e' |",0), MIPI_SYST_PARAM_DOUBLE(100000.5));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%30.10e' | '%30.10e' |",0), MIPI_SYST_PARAM_DOUBLE(1000000.5));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%-30.1e' | '%-30.1e' |",0), MIPI_SYST_PARAM_DOUBLE(1.5));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%-30.2e' | '%-30.2e' |",0), MIPI_SYST_PARAM_DOUBLE(10.5));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%-30.3e' | '%-30.3e' |",0), MIPI_SYST_PARAM_DOUBLE(10.5));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%-30.4e' | '%-30.4e' |",0), MIPI_SYST_PARAM_DOUBLE(100.5));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%-30.5e' | '%-30.5e' |",0), MIPI_SYST_PARAM_DOUBLE(1000.5));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%-30.6e' | '%-30.6e' |",0), MIPI_SYST_PARAM_DOUBLE(10000.5));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%-30.7e' | '%-30.7e' |",0), MIPI_SYST_PARAM_DOUBLE(10000.5));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%-30.8e' | '%-30.8e' |",0), MIPI_SYST_PARAM_DOUBLE(10000.5));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%-30.9e' | '%-30.9e' |",0), MIPI_SYST_PARAM_DOUBLE(100000.5));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%-30.10e' | '%-30.10e' |",0), MIPI_SYST_PARAM_DOUBLE(1000000.5));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("|-----------------------------------exotics-------------|",0));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%030hhu' | '%030hhu' |",0), MIPI_SYST_PARAM_CHAR((unsigned char)-1));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%030hu' | '%030hu' |",0), MIPI_SYST_PARAM_INT((unsigned int)-1));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%030lu' | '%030lu' |",0), MIPI_SYST_PARAM_LONG((unsigned long int) - 1));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%030llu' | '%030llu' |",0), MIPI_SYST_PARAM_LONGLONG((unsigned long long) - 1));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%030hho' | '%030hho' |",0), MIPI_SYST_PARAM_CHAR((unsigned char)-1));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%030ho' | '%030ho' |",0), MIPI_SYST_PARAM_INT((unsigned int)-1));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%030lo' | '%030lo' |",0), MIPI_SYST_PARAM_LONG((unsigned long int) - 1));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%030llo' | '%030llo' |",0), MIPI_SYST_PARAM_LONGLONG((unsigned long long) - 1));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%030hhx' | '%030hhx' |",0), MIPI_SYST_PARAM_CHAR((unsigned char)-1));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%030hx' | '%030hx' |",0), MIPI_SYST_PARAM_INT((unsigned int)-1));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%030lx' | '%030lx' |",0), MIPI_SYST_PARAM_LONG((unsigned long int) - 1));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%030llx' | '%030llx' |",0), MIPI_SYST_PARAM_LONGLONG((unsigned long long) - 1));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%-30hhu' | '%-30hhu' |",0), MIPI_SYST_PARAM_CHAR((unsigned char)-1));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%-30hu' | '%-30hu' |",0), MIPI_SYST_PARAM_INT((unsigned int)-1));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%#-30lu' | '%#-30hu' |",0), MIPI_SYST_PARAM_LONG((unsigned long int) - 1));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%#-30llu' | '%#-30llu' |",0), MIPI_SYST_PARAM_LONGLONG((unsigned long long) - 1));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%#-30hho' | '%#-30hho' |",0), MIPI_SYST_PARAM_CHAR((unsigned char)-1));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%#-30ho' | '%#-30ho' |",0), MIPI_SYST_PARAM_INT((unsigned int)-1));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%#-30lo' | '%#-30lo' |",0), MIPI_SYST_PARAM_LONG((unsigned long int) - 1));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%#-30llo' | '%#-30llo' |",0), MIPI_SYST_PARAM_LONGLONG((unsigned long long) - 1));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%#-30hhx' | '%#-30hhx' |",0), MIPI_SYST_PARAM_CHAR((unsigned char)-1));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%#-30hx' | '%#-30hx' |",0), MIPI_SYST_PARAM_INT((unsigned int)-1));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%#-30lx' | '%#-30lx' |",0), MIPI_SYST_PARAM_LONG((unsigned long int) - 1));
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("| '%%#-30llx' | '%#-30llx' |",0), MIPI_SYST_PARAM_LONGLONG((unsigned long long) - 1));
+} \ No newline at end of file
diff --git a/examples/client/systclient.c b/examples/client/systclient.c
new file mode 100644
index 0000000..d0ab0bb
--- /dev/null
+++ b/examples/client/systclient.c
@@ -0,0 +1,96 @@
+/*
+Copyright (c) 2018, MIPI Alliance, Inc.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+* Redistributions of source code must retain the above copyright
+notice, this list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright
+notice, this list of conditions and the following disclaimer in
+the documentation and/or other materials provided with the
+distribution.
+
+* Neither the name of the copyright holder nor the names of its
+contributors may be used to endorse or promote products derived
+from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+#include "mipi_syst.h"
+
+/* Example SyS-T client code using various instrumentation call types */
+
+const struct mipi_syst_origin origin =
+MIPI_SYST_GEN_ORIGIN_GUID(0x494E5443, 0x8A9C, 0x4014, 0xA65A, 0x2F36A36D96E4, 1);
+struct mipi_syst_handle * systh;
+
+void banner();
+void sinewave();
+void raw();
+void printf_format_test();
+void catalog_format_test();
+void short_messages();
+
+int main(int argc, char* argv[])
+{
+#if defined(MIPI_SYST_STATIC)
+ MIPI_SYST_INIT(mipi_syst_platform_init, 0);
+#endif
+
+ systh = MIPI_SYST_ALLOC_HANDLE(&origin);
+
+ /* add optional fields */
+ MIPI_SYST_ENABLE_HANDLE_CHECKSUM(systh, 1);
+ MIPI_SYST_ENABLE_HANDLE_TIMESTAMP(systh, 1);
+
+ MIPI_SYST_BUILD(systh, MIPI_SYST_SEVERITY_MAX, 0x00010000, "version banner string", sizeof("version banner string"));
+
+ MIPI_SYST_CATALOG32_3(systh, MIPI_SYST_SEVERITY_INFO,
+ MIPI_SYST_HASH("SyS-T Library version %d.%d.%d",0),
+ MIPI_SYST_VERSION_MAJOR,
+ MIPI_SYST_VERSION_MINOR,
+ MIPI_SYST_VERSION_PATCH);
+
+ banner();
+ catalog_format_test();
+ printf_format_test();
+ sinewave();
+ raw();
+ short_messages();
+
+ /* Different catalog calls */
+ MIPI_SYST_CATPRINTF64_0(systh, MIPI_SYST_SEVERITY_INFO, 0x1122334455667788, "Hello world\n");
+ MIPI_SYST_CATPRINTF32(systh, MIPI_SYST_SEVERITY_INFO, 2, "%s=%d\n",
+ MIPI_SYST_PARAM_CSTR("state"),
+ MIPI_SYST_PARAM_INT(10)
+ );
+ MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO, MIPI_SYST_HASH("%s=%d\n", 0),
+ MIPI_SYST_PARAM_CSTR("state"),
+ MIPI_SYST_PARAM_INT(10)
+ );
+
+ /* Release any resources associated with this SyS-T handle.
+ */
+ MIPI_SYST_DELETE_HANDLE(systh);
+
+#if defined(MIPI_SYST_STATIC)
+ MIPI_SYST_SHUTDOWN(mipi_syst_platform_destroy);
+#endif
+
+ return 0;
+} \ No newline at end of file
diff --git a/examples/client/template.xml b/examples/client/template.xml
new file mode 100644
index 0000000..1708730
--- /dev/null
+++ b/examples/client/template.xml
@@ -0,0 +1,107 @@
+<?xml version="1.0" encoding="utf-8"?>
+<syst:Collateral xmlns:syst="http://www.mipi.org/1.0/sys-t"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.mipi.org/1.0/sys-t
+ https://www.mipi.org/schema/sys-t/sys-t_1-0.xsd">
+
+ <!--
+ A SyS-T collateral file starts with one syst:Collateral element
+ and contains at least one syst:Client child node.
+ -->
+ <syst:Client Name="example">
+
+ <!--
+ List of message GUIDs for this client:
+ A GUID is a 128bit numeric UUID following RFC 4122.
+ Clients that are identified by transport layer properties
+ can use pseudo GUID values to identify their messages. A
+ pseudo GUID is defined as a GUID with bit 71 set to zero.
+ The following encoding might be used for clients identified
+ by MIPI System Trace Protocol (STP) master/channel pairs:
+
+ {00000000-<MasterID>-<ChannelID>-<Origin>00-000000000000}
+
+ A Mask attribute can be added to define which bits of the GUID are
+ used for comparison. Without a mask, all bits need to match.
+ The example below makes the catalog valid for all channels from the
+ STP master value 0x644, or messages with the "494E..." GUID in their
+ payload.
+ -->
+ <syst:Guids>
+ <syst:Guid ID= "{00000000-0644-0000-0000-000000000000}"
+ Mask="{00000000-FFFF-0000-8000-000000000000}"><![CDATA[kernel]]></syst:Guid>
+ <syst:Guid ID="{494E5443-8A9C-4014-A65A-2F36A36D96E4}"><![CDATA[user]]></syst:Guid>
+ </syst:Guids>
+
+ <!--
+ Define for which versions of the client this collateral is valid.
+ Versions are expressed as values up to 64-bit and can contain a mask
+ that define which bits need to match with a client version message.
+ -->
+ <syst:Builds>
+ <syst:Build ID="0x00010000" Mask="0xFFFF0000" ><![CDATA[SW Build 1.x]]></syst:Build>
+ <syst:Build ID="0x00020000" Mask="0xFFFF0000" ><![CDATA[SW Build 2.x]]></syst:Build>
+ </syst:Builds>
+
+ <!--
+ Settings to guide decoding tools what to do in cases
+ where several options are possible. The example below tells
+ a decoder to interprete SyS-T message timstamps only as an
+ informal field, but not the message creation time.
+ -->
+ <syst:Options>
+ <syst:Option Name="syst:timestamp">displayAsField</syst:Option>
+ </syst:Options>
+
+ <!--
+ Provide ID to name mapping for module header field values.
+ -->
+ <syst:Modules>
+ <syst:Module ID="0x1"><![CDATA[kernel]]></syst:Module>
+ <syst:Module ID="0x2"><![CDATA[user]]></syst:Module>
+ </syst:Modules>
+
+ <!--
+ Define the mapping of the numeric File-ID to source files.
+ This table is optional and only needed if source references are used
+ by the Catalog32 or Catalog64 elements.
+ -->
+ <syst:SourceFiles/>
+
+ <!--
+ Define the mapping of catalog message ID to human-readable strings.
+ This table is optional and only needed if catalog messages are used.
+ A message can have optional "File" and "Line" attributes to specify the
+ source position of the instrumentation call. A decoder uses the
+ information from these attributes if the message payload doesn't provide
+ explicit location information.
+ -->
+ <syst:Catalog32/>
+
+ <syst:Catalog64/>
+
+ <!--
+ Define short message mapping from 30-Bit ID to user visible string.
+ -->
+ <syst:Short32>
+ <syst:Format ID="0x01234567" ><![CDATA[Short 32-Bit value (0x01234567)]]></syst:Format>
+ <syst:Format ID="0x0E000000" Mask="0x0F000000"><![CDATA[error with code %d]]></syst:Format>
+ <syst:Format ID="0x0F000000" Mask="0x0F000000"><![CDATA[warning with code %d]]></syst:Format>
+ </syst:Short32>
+
+ <!--
+ Define short message mapping from 60-Bit ID to user visible string.
+ -->
+ <syst:Short64>
+ <syst:Format ID="0x0112233445566778"><![CDATA[Short 64-Bit value (0x0112233445566778)]]]></syst:Format>
+ </syst:Short64>
+
+ <!--
+ Specify raw message protocol id assignment
+ -->
+ <syst:Write>
+ <syst:Protocol ID="0x01" Mask="0x00"><![CDATA[Protocol%d]]></syst:Protocol>
+ </syst:Write>
+
+ </syst:Client>
+</syst:Collateral> \ No newline at end of file
diff --git a/examples/cmake/FindSyST.cmake b/examples/cmake/FindSyST.cmake
new file mode 100644
index 0000000..006238a
--- /dev/null
+++ b/examples/cmake/FindSyST.cmake
@@ -0,0 +1,74 @@
+# - Try to find the SyS-T headers and libraries
+#
+# This module defines
+# SYST_INCLUDE_DIRS, where to find header files
+# SYST_LIBRARIES, the libraries to link against
+# SYST_FOUND, true if SyS-T installation found
+
+
+if (NOT SYST_SDK AND NOT $ENV{SYST_SDK} STREQUAL "")
+ set(SYST_SDK $ENV{SYST_SDK})
+endif()
+
+set (SYST_INCLUDE_SEARCH_DIRS
+ ../include
+ /usr/include
+ /usr/local/include
+)
+
+set (SYST_LIBRARIES_SEARCH_DIRS
+ ../lib
+ /usr/lib
+ /usr/local/lib
+)
+
+if (SYST_SDK)
+ file(TO_CMAKE_PATH ${SYST_SDK} SYST_SDK)
+
+
+ set (SYST_INCLUDE_SEARCH_DIRS
+ ${SYST_SDK}/include
+ ${SYST_INCLUDE_SEARCH_DIRS}
+ )
+
+ set (SYST_LIBRARIES_SEARCH_DIRS
+ ${SYST_SDK}/bin
+ ${SYST_SDK}/lib
+ ${SYST_INCLUDE_SEARCH_DIRS}
+ )
+endif ()
+
+find_path (SYST_INCLUDE_DIRS
+ mipi_syst.h
+ HINTS
+ ${SYST_INCLUDE_SEARCH_DIRS}
+)
+
+find_library(SYST_LIBRARIES_STATIC
+ mipi_syst_static
+ HINTS
+ ${SYST_LIBRARIES_SEARCH_DIRS}
+)
+
+find_library(SYST_LIBRARIES_DYNAMIC
+ mipi_syst
+ HINTS
+ ${SYST_LIBRARIES_SEARCH_DIRS}
+)
+
+
+include(FindPackageHandleStandardArgs)
+
+set (SYST_notfound_msg
+ "Could not find MIPI SyS-T SDK. Try setting SYST environment variable."
+)
+
+FIND_PACKAGE_HANDLE_STANDARD_ARGS (
+ SYST DEFAULT_MSG SYST_INCLUDE_DIRS SYST_LIBRARIES_STATIC SYST_LIBRARIES_DYNAMIC
+)
+
+mark_as_advanced (
+ SYST_INCLUDE_DIRS
+ SYST_LIBRARIES_STATIC
+ SYST_LIBRARIES_DYNAMIC
+)
diff --git a/examples/hello/CMakeLists.txt b/examples/hello/CMakeLists.txt
new file mode 100644
index 0000000..e6657d1
--- /dev/null
+++ b/examples/hello/CMakeLists.txt
@@ -0,0 +1,11 @@
+include_directories(
+ ${SYST_INCLUDE_DIRS}
+)
+
+add_executable(hello hello.c)
+target_link_libraries(hello ${SYST_LIBRARIES})
+
+install(TARGETS hello
+ RUNTIME DESTINATION bin
+ LIBRARY DESTINATION bin
+) \ No newline at end of file
diff --git a/examples/hello/hello.c b/examples/hello/hello.c
new file mode 100644
index 0000000..b2924db
--- /dev/null
+++ b/examples/hello/hello.c
@@ -0,0 +1,73 @@
+/*
+ Copyright (c) 2018, MIPI Alliance, Inc.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+ * Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+#include "mipi_syst.h" /* SyS-T definitions */
+
+
+/* Define origin used by this example as the message client ID
+ */
+static const struct mipi_syst_origin origin =
+MIPI_SYST_GEN_ORIGIN_GUID(0x494E5443, 0xA2AE, 0x4C70, 0xABB5, 0xD1A79E9CEA35, 1);
+
+
+int main(int argc, char* argv[])
+{
+ struct mipi_syst_handle* systh;
+
+#if defined(MIPI_SYST_STATIC)
+ /* Initialize SyS-T subsystem when using static linking to SyS-T.
+ * Note: The call to MIPI_SYS_INIT() is done by the shared library
+ * loader initialization function when dyanmic linking is used.
+ */
+ MIPI_SYST_INIT(mipi_syst_platform_init, 0);
+#endif
+
+ /* Initialize a SyS-T output handle structure
+ */
+ systh = MIPI_SYST_ALLOC_HANDLE( &origin );
+
+ /* Send a string message with payload "Hello World!"
+ */
+ MIPI_SYST_DEBUG(systh, MIPI_SYST_SEVERITY_INFO, "Hello SyS-T!" ,sizeof("Hello SyS-T!"));
+
+ /* Release any resources associated with this SyS-T handle.
+ */
+ MIPI_SYST_DELETE_HANDLE(systh);
+
+#if defined(MIPI_SYST_STATIC)
+ /* Perform SyS-T subsystem cleanup when using static linking.
+ */
+ MIPI_SYST_SHUTDOWN(mipi_syst_platform_destroy);
+#endif
+ return 0;
+} \ No newline at end of file
diff --git a/examples/scripts/bldall.sh b/examples/scripts/bldall.sh
new file mode 100644
index 0000000..37a48d6
--- /dev/null
+++ b/examples/scripts/bldall.sh
@@ -0,0 +1,77 @@
+#!/bin/bash
+#
+# Integration build test script for all components
+#
+# * Build all components using example platform of the SyS-T library.
+# * Run the "hello" example and feed it's output into the printer.
+#
+# The script will end with printing "Hello SyS-T" on success.
+set -e
+SELF_DIR="$(cd `dirname "${BASH_SOURCE[0]}"` && pwd)"
+
+#BUILDMODE=Debug
+BUILDMODE=MinSizeRel
+BLD_ROOT=${BLD_ROOT:="$SELF_DIR/build"}
+DEPLOY_DIR="$BLD_ROOT/sdk"
+mkdir -p $DEPLOY_DIR
+
+echo
+echo ----- Building SyS-T library ... ----------------------------------------
+echo
+
+mkdir -p $BLD_ROOT/lib
+pushd $BLD_ROOT/lib
+cmake \
+ -DSYST_BUILD_TEST=ON \
+ -DSYST_BUILD_DOC=ON \
+ -DSYST_BUILD_PLATFORM_NAME=example \
+ -DCMAKE_INSTALL_PREFIX="$DEPLOY_DIR" \
+ -DCMAKE_BUILD_TYPE=$BUILDMODE \
+ "$SELF_DIR/../../library"
+
+cmake --build . --target install
+cmake --build . --target RUN_TEST_VERBOSE
+pushd
+
+echo
+echo ----- Building Examples ... ---------------------------------------------
+echo
+
+mkdir -p $BLD_ROOT/examples
+pushd $BLD_ROOT/examples
+
+cmake \
+ -DCMAKE_INSTALL_PREFIX="$DEPLOY_DIR" \
+ -DSYST_SDK="$DEPLOY_DIR" \
+ -DCMAKE_BUILD_TYPE=$BUILDMODE \
+ "$SELF_DIR/.."
+
+cmake --build . --target install
+pushd
+
+echo
+echo ----- Building printer ... ----------------------------------------------
+echo
+
+mkdir -p $BLD_ROOT/printer
+pushd $BLD_ROOT/printer
+
+cmake \
+ -DCMAKE_INSTALL_PREFIX="$DEPLOY_DIR" \
+ -DCMAKE_BUILD_TYPE=$BUILDMODE \
+ "$SELF_DIR/../../printer"
+
+cmake --build . --target install
+cmake --build . --target RUN_TEST_VERBOSE
+pushd
+
+
+echo
+echo ----- Running the SyS-T 'hello world' example --------------------------
+echo
+pushd "$DEPLOY_DIR/bin" > /dev/null
+echo "$PWD/hello | $PWD/systprint -p -"
+echo
+./hello | ./systprint -p -
+popd > /dev/null
+exit 0
diff --git a/external/googletest b/external/googletest
new file mode 160000
+Subproject a6f06bf2fd3b832822cd4e9e554b7d47f32ec08
diff --git a/external/pugixml b/external/pugixml
new file mode 160000
+Subproject c53fdab93af76106b963216d85897614b996f8b
diff --git a/library/CMakeLists.txt b/library/CMakeLists.txt
new file mode 100644
index 0000000..e641b3e
--- /dev/null
+++ b/library/CMakeLists.txt
@@ -0,0 +1,136 @@
+project (mipi_syst_library)
+cmake_minimum_required (VERSION 2.8)
+enable_testing()
+
+set_property(GLOBAL PROPERTY USE_FOLDERS ON)
+set_property(GLOBAL PROPERTY PREDEFINED_TARGETS_FOLDER "")
+
+find_package(Doxygen)
+
+if (NOT DEFINED SYST_CFG_CONFORMANCE_LEVEL)
+ message(WARNING "SYST_CFG_CONFORMANCE_LEVEL not set, defaulting to leval 30 (complete implementation)")
+else()
+ message(STATUS "Building for SyS-T conformance level ${SYST_CFG_CONFORMANCE_LEVEL}.")
+endif()
+# SYS-T API version settings
+#
+set(SYST_CFG_VERSION_MAJOR "1" CACHE STRING "Supported MIPI SyS-T major specification version.")
+set(SYST_CFG_VERSION_MINOR "0" CACHE STRING "Supported MIPI SyS-T minor specification version.")
+set(SYST_CFG_CONFORMANCE_LEVEL "30" CACHE STRING "Supported MIPI SyS-T API conformance level. (10=min, 20=low overhead, 30=complete)")
+
+# SYS-T Implementation patch level
+#
+set(SYST_CFG_VERSION_PATCH "0" CACHE PATH "SyS-T Library patch level.")
+
+
+
+# External build dependencies:
+# * Google Test https://github.com/google/googletest (for unit tests)
+#
+if (NOT DEFINED SYST_BUILD_GTEST_DIR)
+ get_filename_component(GTEST_DIR "${CMAKE_CURRENT_LIST_DIR}/../external/googletest/googletest" ABSOLUTE)
+endif()
+set(SYST_BUILD_GTEST_DIR "${GTEST_DIR}" CACHE PATH "Location of Google Test sources, which are needed for unit tests")
+if (NOT EXISTS "${SYST_BUILD_GTEST_DIR}/include/gtest/gtest.h")
+ message(WARNING
+ "SYST_BUILD_GTEST_DIR=${SYST_BUILD_GTEST_DIR} does not point to a Google Test source location. Unittests will not be build. Try running \n"
+ "git submodule update --init --recursive\n"
+ "to populate the external folder git submodules or change SYST_BUILD_GTEST_DIR to point to Google Test sources.")
+ set(BUILD_TEST "OFF")
+else()
+ set(BUILD_TEST "ON")
+endif()
+
+option(SYST_BUILD_DOC "Create documentation (requires Doxygen)" ${DOXYGEN_FOUND})
+option(SYST_BUILD_TEST "Build unit test (requires GoogleTest)" ${BUILD_TEST})
+option(SYST_BUILD_HW_CRC "Use CPU crc32 instruction support if supported by architecture." ON)
+
+if (NOT DEFINED SYST_BUILD_PLATFORM_NAME)
+ set (SYST_BUILD_PLATFORM_NAME "example" CACHE STRING "Directory name of platform specific source code")
+ message(WARNING "SYST_BUILD_PLATFORM_NAME directory name variable is not set, using 'example' as default.")
+endif()
+
+
+# HW CRC support enabling
+#
+if (SYST_BUILD_HW_CRC)
+ if (CMAKE_SYSTEM_PROCESSOR MATCHES "amd64.*|x86|x86_64.*|i?86.*|AMD64.*")
+ add_definitions(-D MIPI_SYST_CRC_INTRINSIC_ON)
+ message(STATUS "Enabling x86 crc32 CPU instruction support (SSE 4.2). Unset SYST_BUILD_HW_CRC to disable." )
+ if (NOT WIN32)
+ add_definitions(-msse4.2)
+ endif()
+ endif()
+endif()
+
+configure_file(include/mipi_syst.h.in ${CMAKE_CURRENT_BINARY_DIR}/include/mipi_syst.h)
+
+set (mipi_syst_Includes
+ include/mipi_syst.h.in
+ include/mipi_syst/api.h
+ include/mipi_syst/compiler.h
+ include/mipi_syst/crc32.h
+ include/mipi_syst/message.h
+ include/mipi_syst/inline.h
+)
+
+set (mipi_syst_Sources
+ src/mipi_syst_api.c
+ src/mipi_syst_compiler.c
+ src/mipi_syst_crc32.c
+ src/mipi_syst_init.c
+ src/mipi_syst_inline.c
+ src/mipi_syst_writer.c
+)
+
+set (mipi_syst_Platform_inc platform/${SYST_BUILD_PLATFORM_NAME}/include)
+set (mipi_syst_Platform_src platform/${SYST_BUILD_PLATFORM_NAME}/src/mipi_syst_platform.c)
+
+file(GLOB mipi_syst_Platform_includes "${mipi_syst_Platform_inc}/*.h")
+
+include_directories(
+ ${mipi_syst_Platform_inc}
+ ${CMAKE_CURRENT_BINARY_DIR}/include
+ include
+)
+
+add_library(mipi_syst
+ SHARED
+ ${mipi_syst_Platform_includes}
+ ${mipi_syst_Includes}
+ ${mipi_syst_Sources}
+ ${mipi_syst_Platform_src}
+)
+
+add_library(mipi_syst_static
+ STATIC
+ ${mipi_syst_Platform_includes}
+ ${mipi_syst_Includes}
+ ${mipi_syst_Sources}
+ ${mipi_syst_Platform_src}
+)
+
+set_target_properties(mipi_syst PROPERTIES
+ VERSION ${SYST_CFG_VERSION_MAJOR}.${SYST_CFG_VERSION_MINOR}.${SYST_CFG_VERSION_PATCH}
+ COMPILE_FLAGS "-DMIPI_SYST_EXPORTS"
+ FOLDER "Instrumentation Library"
+)
+
+set_target_properties(mipi_syst_static PROPERTIES
+ VERSION ${SYST_CFG_VERSION_MAJOR}.${SYST_CFG_VERSION_MINOR}.${SYST_CFG_VERSION_PATCH}
+ COMPILE_FLAGS "-DMIPI_SYST_STATIC"
+ FOLDER "Instrumentation Library"
+)
+
+install(TARGETS mipi_syst mipi_syst_static
+ RUNTIME DESTINATION bin
+ LIBRARY DESTINATION lib
+ ARCHIVE DESTINATION lib
+)
+
+install(DIRECTORY include/mipi_syst DESTINATION include)
+install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/include/ DESTINATION include)
+install(DIRECTORY ${mipi_syst_Platform_inc}/ DESTINATION include)
+
+add_subdirectory(doxygen)
+add_subdirectory(test)
diff --git a/library/doxygen/Adapting.md b/library/doxygen/Adapting.md
new file mode 100644
index 0000000..3a6e546
--- /dev/null
+++ b/library/doxygen/Adapting.md
@@ -0,0 +1,71 @@
+\page mipi_syst_adapting_page Adapting the SyS-T Library
+
+[TOC]
+
+SyS-T Platform Code {#mipi_syst_adapting_platform}
+==============================================================================
+The SyS-T library uses a platform concept for integrating it into a system.
+A platform is responsible for the following:
+
+ * Providing the low level trace output code that interfaces with the
+ underlying trace transport system. This is typically trace aggregating
+ hardware or a protocol driver. The ``example`` platform code
+ simply prints the SyS-T protocol output to stdout.
+
+ * Providing platform hook functions for SyS-T global and handle state
+ manipulations. This is platform specific code that allows efficient
+ processing of SyS-T.
+
+SyS-T ships with the following example platforms:
+
+Platform Directory| Description
+------------|--------------------------------------------
+example | Simple trace output driver that prints all IOs as hexadecimal data strings to ``stdout``. The [printer](@ref mipi_syst_printer_page) project can consume this output and decode it into human readable text using comma separated value format (CSV).
+mipi_stp_sim| [MIPI System Trace Protocol](https://mipi.org/specifications/stp) format file writer. It shows how to connect the library with an STP generator. In this example code, a software encoder is used to produce the STP data.
+nop | A minimal boilerplate platform implementation that allows the library to compile but doesn't produce any output.
+
+Adapting SyS-T means providing your own platform code. The recommended procedure
+is to clone an existing platform folder and adapt it as needed. The following
+chapter shows an example of how this can be done.
+
+Copy an Existing Platform {#mipi_syst_adapting_copy}
+==============================================================================
+
+Example:
+
+ $ cd platform
+ $ cp -rv example myplatform
+
+Adapting the Platform {#mipi_syst_adapting_adapt}
+==============================================================================
+
+Modify the copied platfrom code to interface with the system by performing
+the following changes
+
+ * Implement the hook functions for state and handle initialisation and
+ destruction.
+ * Interface the data output writer code with the trace transport.
+ The writer routine in the library assumes a MIPI STP protocol style
+ output processor and calls a set of STP tailored macros named
+ ```MIPI_SYST_OUTPUT_*``` for the actual write operations. These macros
+ are defined in ```platform.h```. See #MIPI_SYST_OUTPUT_D32TS for an example
+ macro definition to emit a SyS-T message header which will turn into a MIPI
+ STP D32TS packet when using STP output. Alternatively replace the entire
+ writer code in a case where the MIPI STP writer cannot be efficently
+ interfaced with the transport.
+
+Edit the Build Configuration {#mipi_syst_adapting_build}
+==============================================================================
+Define the CMake symbol ```SYST_BUILD_PLATFORM_NAME``` to point to the new
+platform directory name. See the page @ref mipi_syst_building_page
+for further information on building SyS-T.
+
+Specify the API conformance level by setting the CMAKE symbol
+```SYST_CFG_CONFORMANCE_LEVEL``` to one of the following:
+
+| Conformance level | Data Size |
+| ------------------|--------------------------------------------------------|
+| 10 | Minimal - only Short and Compact Messages |
+| 20 | Low overhead - excluding printf and crc32 |
+| 30 | complete - All messages and options |
+
diff --git a/library/doxygen/ApiOverview.md b/library/doxygen/ApiOverview.md
new file mode 100644
index 0000000..5ab5161
--- /dev/null
+++ b/library/doxygen/ApiOverview.md
@@ -0,0 +1,172 @@
+\page mipi_syst_api_overview Instrumentation API Overview
+
+[TOC]
+
+Overview {#mipi_syst_api}
+==============================================================================
+The SyS-T instrumentation API is exposed as a set of CPP Macros with the
+prefix `MIPI_SYST_`. The definitions for the instrumentation API are provided by
+the C-Language header file `mipi_syst.h`. This is the only header needed for
+adding instrumentation calls to your software.
+
+See the @ref mipi_syst_example_page for a `hello world` style example that uses
+the instrumentation API.
+
+SyS-T Library States {#mipi_syst_api_state}
+==============================================================================
+
+The SyS-T library has 2 levels of data states to store information. These are:
+
+1. global state (mipi_syst_header structure)
+2. per handle state (mipi_syst_handle structure)
+
+The global state contains data for the operation of the library itself and
+is shared between SyS-T handles. The global state is initialized and
+destroyed using the #MIPI_SYST_INIT and #MIPI_SYST_SHUTDOWN functions.
+
+SyS-T can operate with multiple global state structures. In this case the
+initialization functions with the "_STATE" suffix in their names must be used
+to specify the intended state (See #MIPI_SYST_INIT_STATE,
+#MIPI_SYST_SHUTDOWN_STATE, #MIPI_SYST_INIT_HANDLE_STATE and #MIPI_SYST_ALLOC_HANDLE_STATE).
+
+The handle state is unique for each SyS-T
+handle and allows sending trace data without causing data races with other
+SyS-T handles.
+
+SyS-T Handles {#mipi_syst_api_handles}
+==============================================================================
+Each message generating instrumentation API expects a pointer to a `SyS-T handle`
+as the first parameter. This handle builds the connection between the
+Software API and trace emitting hardware or driver code. It can best be seen
+as something similar to a FILE * in traditional C/C++ file IO.
+
+A SyS-T handle is obtained by using one of the #MIPI_SYST_ALLOC_HANDLE,
+#MIPI_SYST_ALLOC_HANDLE_STATE, #MIPI_SYST_INIT_HANDLE, or
+#MIPI_SYST_INIT_HANDLE_STATE macros. A handle is destroyed by calling
+#MIPI_SYST_DELETE_HANDLE on it.
+
+SyS-T and Multi-threading {#mipi_syst_api_threading}
+==============================================================================
+The SyS-T library provides a thread safe usage model that, for performance
+reasons, does not use any data locking techniques. It is important to
+understand this model to avoid incorrect usage that would result in hard to
+analyze data races or corrupted message data output. The threading model is
+defined by the following rules:
+
+- SyS-T operates thread safe, as long as __SyS-T handles are not shared
+ between simultaneously executing threads__.
+- Sharing a SyS-T handle between threads requires locking around each
+ instrumentation API call in the code using SyS-T.
+- Platform adaption code that modifies the global library mipi_syst_header
+ state may need locking inside its hook functions to protect state data
+ members. See the mipi_stp_sim platform code in
+ platform/mipi_stp_sim/src/mipi_syst_platform.c for an example where locking
+ is required.
+
+The recommended SyS-T usage is to create a SyS-T handle exclusively for each
+thread and to store it in thread local storage. This usage provides low
+software overhead, as no locking is required while utilizing trace arbiter
+hardware or trace creating drivers that are capable of supporting multiple
+data channels in parallel.
+
+API Name Conventions {#mipi_syst_api_conventions}
+==============================================================================
+All API functions are provided as CPP macros with the prefix `MIPI_SYST_`.
+
+The data transmitting instrumentation calls exist in up to 4 variants for
+generating additional location information. Location information describes
+the instrumentation position of the API as either an instruction pointer
+address, or a source "file:line" ID pair. This information is used during
+trace decoding to map message data back to source locations. The name
+conventions for the variants are:
+
+- **MIPI_SYST_<API-NAME>(...)**<BR>
+ API without location information generation
+
+- **MIPI_SYST_<API-NAME>_LOC16(..,f, ...)**<BR>
+ API variant that includes the instrumentation source position as a
+ "file:line" id pair of 16-bit width each. The file id is user defined
+ and passed as an additional parameter. This API requires the SyS-T platform
+ feature define #MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD.
+
+- **MIPI_SYST_<API-NAME>_LOC32(..,f, ...)**<BR>
+ API variant that includes the instrumentation source position as a
+ "file:line" id pair of 32-bit width each. The file id is user defined
+ and passed as an additional parameter. This API requires the SyS-T platform
+ feature define #MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD.
+
+- **MIPI_SYST_<API-NAME>_LOCADDR(...)**<BR>
+ API variant that includes the instrumentation instruction address as
+ location. This API requires the SyS-T platform feature defines
+ #MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD and #MIPI_SYST_PCFG_ENABLE_LOCATION_ADDRESS.
+
+See description of the #MIPI_SYST_DEBUG API call as an example showing all
+variants.
+
+SyS-T Message Attributes {#mipi_syst_api_attributes}
+==============================================================================
+The SyS-T message produced by an API call contains mandatory and optional
+data attributes. This chapter describes the attributes and how they are
+defined when adding instrumentation calls.The message attributes are:
+
+- A 32-bit header describing the message type and content
+- An optional 128-bit wide GUID identifying the message originating software
+ module.
+- An optional location record
+- An optional payload length
+- API specific payload data of up to 64 Kbytes
+- An optional CRC-32C checksum.
+
+![SyS-T Message Anatomy](mipi_sys_t_message_anatomy.png)
+
+SyS-T Message Header {#mipi_syst_api_header}
+------------------------------------------------------------------------------
+Each SyS-T message starts with a 32-bit header, which is defined by the data
+structure mipi_syst_msg_tag. The header contains the following information:
+
+- __Type and Subtype__ fields identifying the Message Type.<BR>
+ These fields are set internally by the API call.
+
+- Software __Module__ and __Unit__ IDs<BR>
+ These fields identify the software module that originated the message. They
+ are taken from the SyS-T handle used in the call. See the API calls
+ #MIPI_SYST_SET_HANDLE_GUID_UNIT and #MIPI_SYST_SET_HANDLE_MODULE_UNIT for an
+ example how the origin fields are used.
+
+- __Message Severity__<BR>
+ Each message contains a 3-bit severity level defined by the mipi_syst_severity
+ enumeration.
+
+- __Content__ Bits<BR>
+ These bits define what other optional attributes are present in the message.
+
+Message Origin GUID {#mipi_syst_api_guid}
+------------------------------------------------------------------------------
+A message can contain a 128-bit wide GUID to identify the instrumented SW
+module in a unique way. The GUID is emitted directly after the header if
+the handle was initialized using the #MIPI_SYST_SET_HANDLE_GUID_UNIT API. The
+GUID structure follows the RFC 4122 conventions and can be obtained
+using various tools. One example is the `uuidgen` command on Linux.
+
+Message Location Information {#mipi_syst_api_loc}
+------------------------------------------------------------------------------
+A message can contain location information describing the position of its
+instrumentation call either as an instruction pointer address or as a
+"file:line" ID pair. This location information is generated if one of the
+API variants with the `_LOCADDR`, `_LOC16` or `_LOC32` suffix in the name is
+used.
+
+Message Payload {#mipi_syst_api_payload}
+------------------------------------------------------------------------------
+A message contains type-specific payload of up to 64 Kbytes, which is
+generated internally by the API function from its parameters. These functions
+also insert a 16-bit payload length field when when enabled by
+the MIPI_SYST_ENABLE_HANDLE_LENGTH API.
+
+Message Checksum {#mipi_syst_api_chkssum}
+------------------------------------------------------------------------------
+A message can end with a 32-bit CRC32C checksum calculated over all of the
+message bytes, excluding the checksum value itself. The CRC generation is a
+per SyS-T handle choice. It is enabled or disabled by the
+#MIPI_SYST_ENABLE_HANDLE_CHECKSUM API. The default is disabled.
+
diff --git a/library/doxygen/Building.md b/library/doxygen/Building.md
new file mode 100644
index 0000000..5f8f459
--- /dev/null
+++ b/library/doxygen/Building.md
@@ -0,0 +1,122 @@
+\page mipi_syst_building_page Building SyS-T
+
+[TOC]
+
+Building the SyS-T Library {#mipi_syst_building}
+=========================================================================
+
+The SyS-T library includes CMake build support scripts. CMake is an
+open-source, cross-platform build environment that is available for all major
+platforms. The CMake tooling is available from https://cmake.org.
+
+Requirements for building SyS-T {#mipi_syst_build_req}
+=========================================================================
+The SyS-T Library requires the following tooling for building
+
+Component |Description
+-----------------------|--------------------------
+CMake (https://cmake.org)|Build and packaging system
+C-Compiler | Needed to build library from its C-Source code
+C++-Compiler | Needed for building the unit test suite
+Google Test (https://github.com/google/googletest)|Needed for building the unit test suite
+Doxygen(www.doxygen.org)| Needed for building the HTML documentaion
+
+Configuring the build {#mipi_syst_build_conf}
+=========================================================================
+CMake based projects require configuration for generating the platform native
+build support files from the CMake scripts. Configuring the SyS-T CMake scripts
+follows CMake standard methodologies. Use the CMake documentation to familiarize
+yourself with the CMake build environment.
+
+The SyS-T project uses the following configuration options:
+
+Configuration |Description
+--------------------------|--------------------------------
+SYST_CFG_CONFORMANCE_LEVEL| The library conformance level setting (10=minimal, 20=cpu low overhead, 30=complete).
+SYST_BUILD_PLATFORM_NAME | The name of the platform adaptation code directory (see also: @ref mipi_syst_adapting_platform).
+SYST_BUILD_GTEST_DIR | File system location of the Google Test framework source code. This code is needed for the library unit tests only.
+SYST_BUILD_TEST | Option to enable/disable generation of unit tests.
+SYST_BUILD_DOC | Option to enable/disable generation of the HTML documentation (requires Doxygen)
+CMAKE_INSTALL_PREFIX | File System location for installing the SyS-T build.
+
+Configuring using the CMake Gui
+------------------------------------------------------------------------------
+The CMake distribution includs a GUI front end for setting up a configuration.
+The GUI front end is started using the cmake-gui command.
+
+Perform the following steps inside the CMake Gui:
+
+- Point the "Where is the source code:" field to the library directory inside
+ the SyS-T distribution.
+- Point the "Where to build the binaries:" field to a temporary location. This
+ directory will hold build artifacts like object files. Note: This is not the
+ installation location for the build result.
+- Press "Configure".
+ A new dialog appears for selecting the desired native platform build tooling.
+ Select the desired tooling and press "Finish". CMake now parses the build
+ scripts and populates the variable table with build configuration options.
+- Update the path for the variable ``CMAKE_INSTALL_PREFIX`` to point to your
+ desired install location.
+- To build the unit tests, update the ``SYST_BUILD_GTEST_DIR`` variable to point
+ to the Google Test sources and check the ``SYST_BUILD_TEST`` field.
+- To build the HTML documentation, verify that doxygen was found by CMake and
+ check the ``SYST_BUILD_DOC`` option.
+- Press "Configure" again to activate the changed settings.
+- Press "Generate" to generate the native build configuration files.
+
+Configuring using the CMake command line
+------------------------------------------------------------------------------
+The SyS-T project can be configured with command line option, following
+CMake standard methodologies. Follow these steps to setup a project using the
+command line.
+
+- Create a new directory for holding the build artifact files and enter this
+ directory
+
+ $ mkdir syst_build
+ $ cd syst_build
+
+- Run the configuration using the cmake tool. The following call shows an
+ example with all options set:
+
+ ```
+ $ cmake \
+ -DSYST_BUILD_GTEST_DIR=/home/username/googletest \
+ -DSYST_BUILD_TEST=ON \
+ -DSYST_BUILD_DOC=ON \
+ -DSYST_BUILD_PLATFORM=example \
+ -DCMAKE_INSTALL_PREFIX=/opt/mipi_syst \
+ /home/jdoe/src/sys_t
+```
+
+Building and Installing {#mipi_syst_building_deploy}
+=========================================================================
+The build system provides various targets for building and installing the
+SyS-T library, header files and documentation. The following table shows which
+targets exist:
+
+Target Name |Description
+----------------|--------------------------------
+all | Build binaries and, if enabled, the unit tests
+doc | Build HTML documentation
+syst_unittest | Build unit tests
+install | Install to CMAKE_INSTALL_PREFIX location, implies 'all'
+clean | Remove build artifacts
+RUN_TEST | Run the tests (not showing test output)
+RUN_TEST_VERBOSE| Run the tests (showing test output)
+
+Integration Build and Test Script
+=========================================================================
+A bash script in ``examples/scripts/bldall.sh`` can be used to run an
+integration test using the different projects. The script builds all projects
+sequentially using the example library platform. It then runs their components
+tests and finally calls the printer tool to format the output of
+the ``hello`` example application. The following transcript shows how to
+run execute the script. The BLD_ROOT variable sets the location of the build
+folder. If unset, the script creates a local build folder inside the scripts
+folder.
+
+```
+$ cd sys-t/examples/scripts
+$ BLD_ROOT=/tmp/sys_t_test_bld ./bldall.sh
+```
diff --git a/library/doxygen/CMakeLists.txt b/library/doxygen/CMakeLists.txt
new file mode 100644
index 0000000..bad16b3
--- /dev/null
+++ b/library/doxygen/CMakeLists.txt
@@ -0,0 +1,27 @@
+
+if (SYST_BUILD_DOC)
+ if (NOT DOXYGEN_FOUND)
+ message(
+ WARNING
+ "SYST_BUILD_DOC variable set, but Doxygen was not found -skipping documentation"
+ )
+ else()
+ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/../include/mipi_syst.h.in
+ ${CMAKE_CURRENT_BINARY_DIR}/gensrc/mipi_syst.h @ONLY
+ )
+ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in
+ ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY
+ )
+
+ add_custom_target(doc
+ ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
+ WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
+ COMMENT "Generating Doxygen manual for ${CMAKE_PROJECT_NAME} in ${CMAKE_CURRENT_BINARY_DIR}"
+ SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${DOXYGEN_IDE_FILES}
+ )
+
+ set_target_properties(doc PROPERTIES
+ FOLDER "Instrumentation Library"
+ )
+ endif()
+endif(SYST_BUILD_DOC)
diff --git a/library/doxygen/Catgen.md b/library/doxygen/Catgen.md
new file mode 100644
index 0000000..c9fdfe5
--- /dev/null
+++ b/library/doxygen/Catgen.md
@@ -0,0 +1,250 @@
+\page mipi_syst_catgen_page Automated Catalog Generation
+
+[TOC]
+
+Catalog Example {#mipi_syst_catgen_sample}
+==============================================================================
+The distribution includes an example application that uses catalog
+messages generated by the [MIPI_SYST_CATPRINTF](@ref PrintfApi),
+[MIPI_SYST_CATALOG64](@ref CatAPI64) or [MIPI_SYST_CATALOG32](@ref CatAPI32)
+families of instrumentation API calls. The example also includes the necessary
+configuration to support the automated decode collateral generation tool. This
+tool scans the source code and extracts the catalog decode information into
+collateral needed by SyS-T decoders.
+
+The example is stored under `examples/client` in the source code distribution.
+
+Decode Collateral Creation Tool {#mipi_syst_catgen_tool}
+==============================================================================
+The project includes a PERL based collateral generator that automates the
+creation and updating of SyS-T decode collateral in XML format. This
+generator parses the catalog instrumentation points by scanning the
+client source code. The tool can be embedded into a software build process to
+keep software builds and decode collateral updated at the same time. The tool
+is stored in the ```collateral/generator``` directory of the project with the
+name ```syst_cgen.pl```.
+
+Dependencies {#mipi_syst_catgen_deps}
+------------------------------------------------------------------------------
+The generator is written in PERL and requires a PERL installation with the
+following optional modules installed.
+ * String::Escape
+ * Xml::Simple
+
+Refer to the documentation for your PERL installation on module installation.
+On Linux, the following commands can be used:
+
+```
+$ perl -MCPAN -e 'install XML::Simple'
+$ perl -MCPAN -e 'install String::Escape'
+```
+
+Collateral Generation Process {#mipi_syst_catgen_process}
+------------------------------------------------------------------------------
+The collateral generator takes a SyS-T collateral template and
+a configuration file as input. The configuration file defines the locations
+and file extensions of the source files to be scanned and how the catalog
+message calls
+inside the source code are named. The tool can then detect the catalog
+calls, and extract the format strings, source locations, and
+catalog IDs to update the collateral template file. The result is a
+new collateral file that matches the actual state of the source code.
+
+Catalog Generation Example {#mipi_syst_catgen_example_generation}
+------------------------------------------------------------------------------
+The client application in ```example/client``` uses various catalog calls.
+It provides a configuration file for ```syst_cgen.pl``` to detect
+the SyS-T catalog message calls, and a collateral template file that is
+updated by the generator. It is executed in the following way:
+
+```
+$ perl ../../collateral/generator/syst_cgen.pl -config collateral_config.xml
+syst_cgen.pl: Parsing: ./othersource.c
+syst_cgen.pl: Add ./othersource.c with file id 1 to file catalog
+syst_cgen.pl: Parsing finished: ./othersource.c, found 127 call(s)
+syst_cgen.pl: Parsing: ./systclient.c
+syst_cgen.pl: Add ./systclient.c with file id 2 to file catalog
+syst_cgen.pl: Parsing finished: ./systclient.c, found 4 call(s)
+syst_cgen.pl: Generating XML structure
+syst_cgen.pl: Loaded template collateral file template.xml
+syst_cgen.pl: Generating XML structure finished
+syst_cgen.pl: Writing XML file: generated_catalog.xml
+syst_cgen.pl: Writing XML file finished
+```
+Catalog Generator Configuration Example {#mipi_syst_catgen_example_config}
+------------------------------------------------------------------------------
+The following XML file shows the example configuration file from the client
+example. The file lists the SyS-T catalog instrumentation call patterns and
+can be reused for other clients. Only the options at the beginning may require
+adaptations.
+
+```{.xml}
+<CatalogGenerator>
+ <CatalogConfigs>
+ <CatalogConfig option="catalog" value="generated_catalog.xml" />
+ <CatalogConfig option="template" value="template.xml" />
+ <CatalogConfig option="indentation" value="4" />
+ <CatalogConfig option="nolocation" value="false"/>
+ <CatalogConfig option="src" value="." />
+ </CatalogConfigs>
+ <SrcFilePatterns>
+ <SrcFilePattern Pattern="*.{cpp,c,h}" />
+ </SrcFilePatterns>
+ <CatalogCalls>
+ <Catalog32>
+ <CatalogCall Name="MIPI_SYST_HASH" Algorithm="hash65599" IdParamIdx="2" StringParamIdx="1" />
+
+ <CatalogCall Name="MIPI_SYST_CATPRINTF32" IdParamIdx="3" StringParamIdx="4" />
+ <CatalogCall Name="MIPI_SYST_CATPRINTF32_0" IdParamIdx="3" StringParamIdx="4" />
+ <CatalogCall Name="MIPI_SYST_CATPRINTF32_1" IdParamIdx="3" StringParamIdx="4" />
+ <CatalogCall Name="MIPI_SYST_CATPRINTF32_2" IdParamIdx="3" StringParamIdx="4" />
+ <CatalogCall Name="MIPI_SYST_CATPRINTF32_3" IdParamIdx="3" StringParamIdx="4" />
+ <CatalogCall Name="MIPI_SYST_CATPRINTF32_4" IdParamIdx="3" StringParamIdx="4" />
+ <CatalogCall Name="MIPI_SYST_CATPRINTF32_5" IdParamIdx="3" StringParamIdx="4" />
+ <CatalogCall Name="MIPI_SYST_CATPRINTF32_6" IdParamIdx="3" StringParamIdx="4" />
+ </Catalog32>
+
+ <Catalog64>
+ <CatalogCall Name="MIPI_SYST_CATPRINTF64" IdParamIdx="3" StringParamIdx="4" />
+ <CatalogCall Name="MIPI_SYST_CATPRINTF64_0" IdParamIdx="3" StringParamIdx="4" />
+ <CatalogCall Name="MIPI_SYST_CATPRINTF64_1" IdParamIdx="3" StringParamIdx="4" />
+ <CatalogCall Name="MIPI_SYST_CATPRINTF64_2" IdParamIdx="3" StringParamIdx="4" />
+ <CatalogCall Name="MIPI_SYST_CATPRINTF64_3" IdParamIdx="3" StringParamIdx="4" />
+ <CatalogCall Name="MIPI_SYST_CATPRINTF64_4" IdParamIdx="3" StringParamIdx="4" />
+ <CatalogCall Name="MIPI_SYST_CATPRINTF64_5" IdParamIdx="3" StringParamIdx="4" />
+ <CatalogCall Name="MIPI_SYST_CATPRINTF64_6" IdParamIdx="3" StringParamIdx="4" />
+ </Catalog64>
+ </CatalogCalls>
+</CatalogGenerator>
+```
+
+Catalog Generator Template File {#mipi_syst_catgen_example_template}
+------------------------------------------------------------------------------
+The following XML file shows the template collateral file that is updated by
+the generator tool with the source code information. Note the empty XML
+elements called ``<syst:SourceFiles/>``, ``<syst:Catalog32/>``, and
+``<syst:Catalog64/>``. The generator replaces these empty elements with the
+collected information. The remaining contents are kept unchanged.
+```{.xml}
+<?xml version="1.0" encoding="utf-8"?>
+<syst:Collateral xmlns:syst="http://www.mipi.org/1.0/sys-t"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.mipi.org/1.0/sys-t
+ https://www.mipi.org/schema/sys-t/sys-t_1-0.xsd">
+
+ <!--
+ A SyS-T collateral file starts with one syst:Collateral element
+ and contains at least one syst:Client child node.
+ -->
+ <syst:Client Name="example">
+
+ <!--
+ List of message GUIDs for this client:
+ A GUID is a 128bit numeric UUID following RFC 4122.
+ Clients that are identified by transport layer properties
+ can use pseudo GUID values to identify their messages. A
+ pseudo GUID is defined as a GUID with bit 71 set to zero.
+ The following encoding might be used for clients identified
+ by MIPI System Trace Protocol (STP) master/channel pairs:
+
+ {00000000-<MasterID>-<ChannelID>-<Origin>00-000000000000}
+
+ A Mask attribute can be added to define which bits of the GUID are
+ used for comparison. Without a mask, all bits need to match.
+ The example below makes the catalog valid for all channels from the
+ STP master value 0x644, or messages with the "494E..." GUID in their
+ payload.
+ -->
+ <syst:Guids>
+ <syst:Guid ID= "{00000000-0644-0000-0000-000000000000}"
+ Mask="{00000000-FFFF-0000-8000-000000000000}"><![CDATA[kernel]]></syst:Guid>
+ <syst:Guid ID="{494E5443-6F64-43D1-93F0-F3D49D92670C}"><![CDATA[user]]></syst:Guid>
+ </syst:Guids>
+
+ <!--
+ Define for which client build versions this collateral is valid.
+ Builds are expressed as values up to 64 bits in size, and can include a
+ mask that defines which bits need to match with a client build version
+ message.
+ -->
+ <syst:Builds>
+ <syst:Build ID="0x00010000" Mask="0xFFFF0000" ><![CDATA[SW Build 1.x]]></syst:Build>
+ <syst:Build ID="0x00020000" Mask="0xFFFF0000" ><![CDATA[SW Build 2.x]]></syst:Build>
+ </syst:Builds>
+
+ <!--
+ Settings to guide decoding tools what to do in cases
+ where several options are possible. The example below tells
+ a decoder to interprete SyS-T message timstamps only as an
+ informal field, but not the message creation time.
+ -->
+ <syst:Options>
+ <syst:Option Name="syst:timestamp">displayAsField</syst:Option>
+ </syst:Options>
+
+ <!--
+ Provide ID to name mapping for Origin header field values.
+ -->
+ <syst:Modules>
+ <syst:Module ID="0x1"><![CDATA[kernel]]></syst:Module>
+ <syst:Module ID="0x2"><![CDATA[user]]></syst:Module>
+ </syst:Modules>
+
+ <!--
+ Define the mapping of the numeric File-ID to source files.
+ This table is optional and only needed if source references are used
+ by the Catalog32 or Catalog64 elements.
+ -->
+ <syst:SourceFiles>
+ <syst:File ID="0x00000001"><![CDATA[example/src/main.c]]></syst:File>
+ <syst:File ID="0x00000002"><![CDATA[example/h/example.h]]></syst:File>
+ </syst:SourceFiles>
+
+ <!--
+ Define the mapping of catalog message ID to human-readable strings.
+ This table is optional and only needed if catalog messages are used.
+ A message can have optional "File" and "Line" attributes to specify the
+ source position of the instrumentation call. A decoder uses the
+ information from these attributes if the message payload doesn't provide
+ explicit location information.
+ -->
+ <syst:Catalog32>
+ <syst:Format ID="0x00000001" File="0x00000001" Line="23"><![CDATA[This is example %d.%d]]></syst:Format>
+ <syst:Format ID="0x00000002" File="0x00000002" Line="72"><![CDATA[task switch %x->%x]]></syst:Format>
+ </syst:Catalog32>
+
+ <syst:Catalog64>
+ <syst:Format ID="0x0000000000000001"><![CDATA[error %d]]></syst:Format>
+ </syst:Catalog64>
+
+ <!--
+ Define short message mapping from 28-Bit ID to user visible string.
+ -->
+ <syst:Short32>
+ <syst:Format ID="0x0000000" Mask="0xFFFFFF0"><![CDATA[Fatal Error code]]></syst:Format>
+ <syst:Format ID="0x0000013"><![CDATA[state ready]]></syst:Format>
+ <syst:Format ID="0x000001A"><![CDATA[state halt]]></syst:Format>
+ </syst:Short32>
+
+ <!--
+ Define short message mapping from 60-Bit ID to user visible string.
+ -->
+ <syst:Short64>
+ <syst:Format ID="0x123456700000000" Mask="0xFFFFFFF00000000"><![CDATA[warning state]]></syst:Format>
+
+ </syst:Short64>
+
+ <!--
+ Specify raw message protocol id assignment
+ -->
+ <syst:Write>
+ <syst:Protocol ID="0x01"><![CDATA[console]]></syst:Protocol>
+ <syst:Protocol ID="0x02"><![CDATA[console]]></syst:Protocol>
+ <syst:Protocol ID="0x03"><![CDATA[ftrace]]></syst:Protocol>
+ <syst:Protocol ID="0x20" Mask="0x30"><![CDATA[reserved]]></syst:Protocol>
+ </syst:Write>
+
+</syst:Client>
+
+</syst:Collateral>
+``` \ No newline at end of file
diff --git a/library/doxygen/Doxyfile.in b/library/doxygen/Doxyfile.in
new file mode 100644
index 0000000..8998cd2
--- /dev/null
+++ b/library/doxygen/Doxyfile.in
@@ -0,0 +1,1893 @@
+# Doxyfile 1.8.3.1
+
+# This file describes the settings to be used by the documentation system
+# doxygen (www.doxygen.org) for a project
+#
+# All text after a hash (#) is considered a comment and will be ignored
+# The format is:
+# TAG = value [value, ...]
+# For lists items can also be appended using:
+# TAG += value [value, ...]
+# Values that contain spaces should be placed between quotes (" ")
+
+#---------------------------------------------------------------------------
+# Project related configuration options
+#---------------------------------------------------------------------------
+
+# This tag specifies the encoding used for all characters in the config file
+# that follow. The default is UTF-8 which is also the encoding used for all
+# text before the first occurrence of this tag. Doxygen uses libiconv (or the
+# iconv built into libc) for the transcoding. See
+# http://www.gnu.org/software/libiconv for the list of possible encodings.
+
+DOXYFILE_ENCODING = UTF-8
+
+# The PROJECT_NAME tag is a single word (or sequence of words) that should
+# identify the project. Note that if you do not use Doxywizard you need
+# to put quotes around the project name if it contains spaces.
+
+PROJECT_NAME = "MIPI System Software Trace Library"
+
+# The PROJECT_NUMBER tag can be used to enter a project or revision number.
+# This could be handy for archiving the generated documentation or
+# if some version control system is used.
+
+PROJECT_NUMBER = "1.0"
+
+# Using the PROJECT_BRIEF tag one can provide an optional one line description
+# for a project that appears at the top of each page and should give viewer
+# a quick idea about the purpose of the project. Keep the description short.
+
+PROJECT_BRIEF = "Instrumentation Library for MIPI SyS-T"
+
+# With the PROJECT_LOGO tag one can specify an logo or icon that is
+# included in the documentation. The maximum height of the logo should not
+# exceed 55 pixels and the maximum width should not exceed 200 pixels.
+# Doxygen will copy the logo to the output directory.
+
+PROJECT_LOGO =
+
+# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
+# base path where the generated documentation will be put.
+# If a relative path is entered, it will be relative to the location
+# where doxygen was started. If left blank the current directory will be used.
+
+OUTPUT_DIRECTORY = .
+
+# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create
+# 4096 sub-directories (in 2 levels) under the output directory of each output
+# format and will distribute the generated files over these directories.
+# Enabling this option can be useful when feeding doxygen a huge amount of
+# source files, where putting all generated files in the same directory would
+# otherwise cause performance problems for the file system.
+
+CREATE_SUBDIRS = NO
+
+# The OUTPUT_LANGUAGE tag is used to specify the language in which all
+# documentation generated by doxygen is written. Doxygen will use this
+# information to generate all constant output in the proper language.
+# The default language is English, other supported languages are:
+# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional,
+# Croatian, Czech, Danish, Dutch, Esperanto, Farsi, Finnish, French, German,
+# Greek, Hungarian, Italian, Japanese, Japanese-en (Japanese with English
+# messages), Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian,
+# Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrillic, Slovak,
+# Slovene, Spanish, Swedish, Ukrainian, and Vietnamese.
+
+OUTPUT_LANGUAGE = English
+
+# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will
+# include brief member descriptions after the members that are listed in
+# the file and class documentation (similar to JavaDoc).
+# Set to NO to disable this.
+
+BRIEF_MEMBER_DESC = YES
+
+# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend
+# the brief description of a member or function before the detailed description.
+# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the
+# brief descriptions will be completely suppressed.
+
+REPEAT_BRIEF = YES
+
+# This tag implements a quasi-intelligent brief description abbreviator
+# that is used to form the text in various listings. Each string
+# in this list, if found as the leading text of the brief description, will be
+# stripped from the text and the result after processing the whole list, is
+# used as the annotated text. Otherwise, the brief description is used as-is.
+# If left blank, the following values are used ("$name" is automatically
+# replaced with the name of the entity): "The $name class" "The $name widget"
+# "The $name file" "is" "provides" "specifies" "contains"
+# "represents" "a" "an" "the"
+
+ABBREVIATE_BRIEF =
+
+# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then
+# Doxygen will generate a detailed section even if there is only a brief
+# description.
+
+ALWAYS_DETAILED_SEC = NO
+
+# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all
+# inherited members of a class in the documentation of that class as if those
+# members were ordinary class members. Constructors, destructors and assignment
+# operators of the base classes will not be shown.
+
+INLINE_INHERITED_MEMB = NO
+
+# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full
+# path before files name in the file list and in the header files. If set
+# to NO the shortest path that makes the file name unique will be used.
+
+FULL_PATH_NAMES = NO
+
+# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag
+# can be used to strip a user-defined part of the path. Stripping is
+# only done if one of the specified strings matches the left-hand part of
+# the path. The tag can be used to show relative paths in the file list.
+# If left blank the directory from which doxygen is run is used as the
+# path to strip. Note that you specify absolute paths here, but also
+# relative paths, which will be relative from the directory where doxygen is
+# started.
+
+STRIP_FROM_PATH = @CMAKE_CURRENT_SOURCE_DIR@
+
+# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of
+# the path mentioned in the documentation of a class, which tells
+# the reader which header file to include in order to use a class.
+# If left blank only the name of the header file containing the class
+# definition is used. Otherwise one should specify the include paths that
+# are normally passed to the compiler using the -I flag.
+
+STRIP_FROM_INC_PATH =
+
+# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter
+# (but less readable) file names. This can be useful if your file system
+# doesn't support long names like on DOS, Mac, or CD-ROM.
+
+SHORT_NAMES = YES
+
+# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen
+# will interpret the first line (until the first dot) of a JavaDoc-style
+# comment as the brief description. If set to NO, the JavaDoc
+# comments will behave just like regular Qt-style comments
+# (thus requiring an explicit @brief command for a brief description.)
+
+JAVADOC_AUTOBRIEF = YES
+
+# If the QT_AUTOBRIEF tag is set to YES then Doxygen will
+# interpret the first line (until the first dot) of a Qt-style
+# comment as the brief description. If set to NO, the comments
+# will behave just like regular Qt-style comments (thus requiring
+# an explicit \brief command for a brief description.)
+
+QT_AUTOBRIEF = NO
+
+# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen
+# treat a multi-line C++ special comment block (i.e. a block of //! or ///
+# comments) as a brief description. This used to be the default behaviour.
+# The new default is to treat a multi-line C++ comment block as a detailed
+# description. Set this tag to YES if you prefer the old behaviour instead.
+
+MULTILINE_CPP_IS_BRIEF = NO
+
+# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented
+# member inherits the documentation from any documented member that it
+# re-implements.
+
+INHERIT_DOCS = YES
+
+# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce
+# a new page for each member. If set to NO, the documentation of a member will
+# be part of the file/class/namespace that contains it.
+
+SEPARATE_MEMBER_PAGES = NO
+
+# The TAB_SIZE tag can be used to set the number of spaces in a tab.
+# Doxygen uses this value to replace tabs by spaces in code fragments.
+
+TAB_SIZE = 8
+
+# This tag can be used to specify a number of aliases that acts
+# as commands in the documentation. An alias has the form "name=value".
+# For example adding "sideeffect=\par Side Effects:\n" will allow you to
+# put the command \sideeffect (or @sideeffect) in the documentation, which
+# will result in a user-defined paragraph with heading "Side Effects:".
+# You can put \n's in the value part of an alias to insert newlines.
+
+ALIASES =
+
+# This tag can be used to specify a number of word-keyword mappings (TCL only).
+# A mapping has the form "name=value". For example adding
+# "class=itcl::class" will allow you to use the command class in the
+# itcl::class meaning.
+
+TCL_SUBST =
+
+# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C
+# sources only. Doxygen will then generate output that is more tailored for C.
+# For instance, some of the names that are used will be different. The list
+# of all members will be omitted, etc.
+
+OPTIMIZE_OUTPUT_FOR_C = YES
+
+# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java
+# sources only. Doxygen will then generate output that is more tailored for
+# Java. For instance, namespaces will be presented as packages, qualified
+# scopes will look different, etc.
+
+OPTIMIZE_OUTPUT_JAVA = NO
+
+# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran
+# sources only. Doxygen will then generate output that is more tailored for
+# Fortran.
+
+OPTIMIZE_FOR_FORTRAN = NO
+
+# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL
+# sources. Doxygen will then generate output that is tailored for
+# VHDL.
+
+OPTIMIZE_OUTPUT_VHDL = NO
+
+# Doxygen selects the parser to use depending on the extension of the files it
+# parses. With this tag you can assign which parser to use for a given
+# extension. Doxygen has a built-in mapping, but you can override or extend it
+# using this tag. The format is ext=language, where ext is a file extension,
+# and language is one of the parsers supported by doxygen: IDL, Java,
+# Javascript, CSharp, C, C++, D, PHP, Objective-C, Python, Fortran, VHDL, C,
+# C++. For instance to make doxygen treat .inc files as Fortran files (default
+# is PHP), and .f files as C (default is Fortran), use: inc=Fortran f=C. Note
+# that for custom extensions you also need to set FILE_PATTERNS otherwise the
+# files are not read by doxygen.
+
+EXTENSION_MAPPING =
+
+# If MARKDOWN_SUPPORT is enabled (the default) then doxygen pre-processes all
+# comments according to the Markdown format, which allows for more readable
+# documentation. See http://daringfireball.net/projects/markdown/ for details.
+# The output of markdown processing is further processed by doxygen, so you
+# can mix doxygen, HTML, and XML commands with Markdown formatting.
+# Disable only in case of backward compatibilities issues.
+
+MARKDOWN_SUPPORT = YES
+
+# When enabled doxygen tries to link words that correspond to documented classes,
+# or namespaces to their corresponding documentation. Such a link can be
+# prevented in individual cases by by putting a % sign in front of the word or
+# globally by setting AUTOLINK_SUPPORT to NO.
+
+AUTOLINK_SUPPORT = YES
+
+# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want
+# to include (a tag file for) the STL sources as input, then you should
+# set this tag to YES in order to let doxygen match functions declarations and
+# definitions whose arguments contain STL classes (e.g. func(std::string); v.s.
+# func(std::string) {}). This also makes the inheritance and collaboration
+# diagrams that involve STL classes more complete and accurate.
+
+BUILTIN_STL_SUPPORT = NO
+
+# If you use Microsoft's C++/CLI language, you should set this option to YES to
+# enable parsing support.
+
+CPP_CLI_SUPPORT = NO
+
+# Set the SIP_SUPPORT tag to YES if your project consists of sip sources only.
+# Doxygen will parse them like normal C++ but will assume all classes use public
+# instead of private inheritance when no explicit protection keyword is present.
+
+SIP_SUPPORT = NO
+
+# For Microsoft's IDL there are propget and propput attributes to indicate
+# getter and setter methods for a property. Setting this option to YES (the
+# default) will make doxygen replace the get and set methods by a property in
+# the documentation. This will only work if the methods are indeed getting or
+# setting a simple type. If this is not the case, or you want to show the
+# methods anyway, you should set this option to NO.
+
+IDL_PROPERTY_SUPPORT = YES
+
+# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC
+# tag is set to YES, then doxygen will reuse the documentation of the first
+# member in the group (if any) for the other members of the group. By default
+# all members of a group must be documented explicitly.
+
+DISTRIBUTE_GROUP_DOC = NO
+
+# Set the SUBGROUPING tag to YES (the default) to allow class member groups of
+# the same type (for instance a group of public functions) to be put as a
+# subgroup of that type (e.g. under the Public Functions section). Set it to
+# NO to prevent subgrouping. Alternatively, this can be done per class using
+# the \nosubgrouping command.
+
+SUBGROUPING = YES
+
+# When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and
+# unions are shown inside the group in which they are included (e.g. using
+# @ingroup) instead of on a separate page (for HTML and Man pages) or
+# section (for LaTeX and RTF).
+
+INLINE_GROUPED_CLASSES = NO
+
+# When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and
+# unions with only public data fields will be shown inline in the documentation
+# of the scope in which they are defined (i.e. file, namespace, or group
+# documentation), provided this scope is documented. If set to NO (the default),
+# structs, classes, and unions are shown on a separate page (for HTML and Man
+# pages) or section (for LaTeX and RTF).
+
+INLINE_SIMPLE_STRUCTS = NO
+
+# When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum
+# is documented as struct, union, or enum with the name of the typedef. So
+# typedef struct TypeS {} TypeT, will appear in the documentation as a struct
+# with name TypeT. When disabled the typedef will appear as a member of a file,
+# namespace, or class. And the struct will be named TypeS. This can typically
+# be useful for C code in case the coding convention dictates that all compound
+# types are typedef'ed and only the typedef is referenced, never the tag name.
+
+TYPEDEF_HIDES_STRUCT = NO
+
+# Similar to the SYMBOL_CACHE_SIZE the size of the symbol lookup cache can be
+# set using LOOKUP_CACHE_SIZE. This cache is used to resolve symbols given
+# their name and scope. Since this can be an expensive process and often the
+# same symbol appear multiple times in the code, doxygen keeps a cache of
+# pre-resolved symbols. If the cache is too small doxygen will become slower.
+# If the cache is too large, memory is wasted. The cache size is given by this
+# formula: 2^(16+LOOKUP_CACHE_SIZE). The valid range is 0..9, the default is 0,
+# corresponding to a cache size of 2^16 = 65536 symbols.
+
+LOOKUP_CACHE_SIZE = 0
+
+#---------------------------------------------------------------------------
+# Build related configuration options
+#---------------------------------------------------------------------------
+
+# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in
+# documentation are documented, even if no documentation was available.
+# Private class members and static file members will be hidden unless
+# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES
+
+EXTRACT_ALL = YES
+
+# If the EXTRACT_PRIVATE tag is set to YES all private members of a class
+# will be included in the documentation.
+
+EXTRACT_PRIVATE = NO
+
+# If the EXTRACT_PACKAGE tag is set to YES all members with package or internal
+# scope will be included in the documentation.
+
+EXTRACT_PACKAGE = NO
+
+# If the EXTRACT_STATIC tag is set to YES all static members of a file
+# will be included in the documentation.
+
+EXTRACT_STATIC = YES
+
+# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs)
+# defined locally in source files will be included in the documentation.
+# If set to NO only classes defined in header files are included.
+
+EXTRACT_LOCAL_CLASSES = YES
+
+# This flag is only useful for Objective-C code. When set to YES local
+# methods, which are defined in the implementation section but not in
+# the interface are included in the documentation.
+# If set to NO (the default) only methods in the interface are included.
+
+EXTRACT_LOCAL_METHODS = NO
+
+# If this flag is set to YES, the members of anonymous namespaces will be
+# extracted and appear in the documentation as a namespace called
+# 'anonymous_namespace{file}', where file will be replaced with the base
+# name of the file that contains the anonymous namespace. By default
+# anonymous namespaces are hidden.
+
+EXTRACT_ANON_NSPACES = NO
+
+# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all
+# undocumented members of documented classes, files or namespaces.
+# If set to NO (the default) these members will be included in the
+# various overviews, but no documentation section is generated.
+# This option has no effect if EXTRACT_ALL is enabled.
+
+HIDE_UNDOC_MEMBERS = NO
+
+# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all
+# undocumented classes that are normally visible in the class hierarchy.
+# If set to NO (the default) these classes will be included in the various
+# overviews. This option has no effect if EXTRACT_ALL is enabled.
+
+HIDE_UNDOC_CLASSES = NO
+
+# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all
+# friend (class|struct|union) declarations.
+# If set to NO (the default) these declarations will be included in the
+# documentation.
+
+HIDE_FRIEND_COMPOUNDS = NO
+
+# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any
+# documentation blocks found inside the body of a function.
+# If set to NO (the default) these blocks will be appended to the
+# function's detailed documentation block.
+
+HIDE_IN_BODY_DOCS = NO
+
+# The INTERNAL_DOCS tag determines if documentation
+# that is typed after a \internal command is included. If the tag is set
+# to NO (the default) then the documentation will be excluded.
+# Set it to YES to include the internal documentation.
+
+INTERNAL_DOCS = NO
+
+# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate
+# file names in lower-case letters. If set to YES upper-case letters are also
+# allowed. This is useful if you have classes or files whose names only differ
+# in case and if your file system supports case sensitive file names. Windows
+# and Mac users are advised to set this option to NO.
+
+CASE_SENSE_NAMES = NO
+
+# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen
+# will show members with their full class and namespace scopes in the
+# documentation. If set to YES the scope will be hidden.
+
+HIDE_SCOPE_NAMES = YES
+
+# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen
+# will put a list of the files that are included by a file in the documentation
+# of that file.
+
+SHOW_INCLUDE_FILES = YES
+
+# If the FORCE_LOCAL_INCLUDES tag is set to YES then Doxygen
+# will list include files with double quotes in the documentation
+# rather than with sharp brackets.
+
+FORCE_LOCAL_INCLUDES = NO
+
+# If the INLINE_INFO tag is set to YES (the default) then a tag [inline]
+# is inserted in the documentation for inline members.
+
+INLINE_INFO = YES
+
+# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen
+# will sort the (detailed) documentation of file and class members
+# alphabetically by member name. If set to NO the members will appear in
+# declaration order.
+
+SORT_MEMBER_DOCS = YES
+
+# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the
+# brief documentation of file, namespace and class members alphabetically
+# by member name. If set to NO (the default) the members will appear in
+# declaration order.
+
+SORT_BRIEF_DOCS = NO
+
+# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen
+# will sort the (brief and detailed) documentation of class members so that
+# constructors and destructors are listed first. If set to NO (the default)
+# the constructors will appear in the respective orders defined by
+# SORT_MEMBER_DOCS and SORT_BRIEF_DOCS.
+# This tag will be ignored for brief docs if SORT_BRIEF_DOCS is set to NO
+# and ignored for detailed docs if SORT_MEMBER_DOCS is set to NO.
+
+SORT_MEMBERS_CTORS_1ST = NO
+
+# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the
+# hierarchy of group names into alphabetical order. If set to NO (the default)
+# the group names will appear in their defined order.
+
+SORT_GROUP_NAMES = NO
+
+# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be
+# sorted by fully-qualified names, including namespaces. If set to
+# NO (the default), the class list will be sorted only by class name,
+# not including the namespace part.
+# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES.
+# Note: This option applies only to the class list, not to the
+# alphabetical list.
+
+SORT_BY_SCOPE_NAME = NO
+
+# If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to
+# do proper type resolution of all parameters of a function it will reject a
+# match between the prototype and the implementation of a member function even
+# if there is only one candidate or it is obvious which candidate to choose
+# by doing a simple string match. By disabling STRICT_PROTO_MATCHING doxygen
+# will still accept a match between prototype and implementation in such cases.
+
+STRICT_PROTO_MATCHING = NO
+
+# The GENERATE_TODOLIST tag can be used to enable (YES) or
+# disable (NO) the todo list. This list is created by putting \todo
+# commands in the documentation.
+
+GENERATE_TODOLIST = YES
+
+# The GENERATE_TESTLIST tag can be used to enable (YES) or
+# disable (NO) the test list. This list is created by putting \test
+# commands in the documentation.
+
+GENERATE_TESTLIST = YES
+
+# The GENERATE_BUGLIST tag can be used to enable (YES) or
+# disable (NO) the bug list. This list is created by putting \bug
+# commands in the documentation.
+
+GENERATE_BUGLIST = YES
+
+# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or
+# disable (NO) the deprecated list. This list is created by putting
+# \deprecated commands in the documentation.
+
+GENERATE_DEPRECATEDLIST= YES
+
+# The ENABLED_SECTIONS tag can be used to enable conditional
+# documentation sections, marked by \if section-label ... \endif
+# and \cond section-label ... \endcond blocks.
+
+ENABLED_SECTIONS =
+
+# The MAX_INITIALIZER_LINES tag determines the maximum number of lines
+# the initial value of a variable or macro consists of for it to appear in
+# the documentation. If the initializer consists of more lines than specified
+# here it will be hidden. Use a value of 0 to hide initializers completely.
+# The appearance of the initializer of individual variables and macros in the
+# documentation can be controlled using \showinitializer or \hideinitializer
+# command in the documentation regardless of this setting.
+
+MAX_INITIALIZER_LINES = 30
+
+# Set the SHOW_USED_FILES tag to NO to disable the list of files generated
+# at the bottom of the documentation of classes and structs. If set to YES the
+# list will mention the files that were used to generate the documentation.
+
+SHOW_USED_FILES = YES
+
+# Set the SHOW_FILES tag to NO to disable the generation of the Files page.
+# This will remove the Files entry from the Quick Index and from the
+# Folder Tree View (if specified). The default is YES.
+
+SHOW_FILES = YES
+
+# Set the SHOW_NAMESPACES tag to NO to disable the generation of the
+# Namespaces page. This will remove the Namespaces entry from the Quick Index
+# and from the Folder Tree View (if specified). The default is YES.
+
+SHOW_NAMESPACES = YES
+
+# The FILE_VERSION_FILTER tag can be used to specify a program or script that
+# doxygen should invoke to get the current version for each file (typically from
+# the version control system). Doxygen will invoke the program by executing (via
+# popen()) the command <command> <input-file>, where <command> is the value of
+# the FILE_VERSION_FILTER tag, and <input-file> is the name of an input file
+# provided by doxygen. Whatever the program writes to standard output
+# is used as the file version. See the manual for examples.
+
+FILE_VERSION_FILTER =
+
+# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed
+# by doxygen. The layout file controls the global structure of the generated
+# output files in an output format independent way. To create the layout file
+# that represents doxygen's defaults, run doxygen with the -l option.
+# You can optionally specify a file name after the option, if omitted
+# DoxygenLayout.xml will be used as the name of the layout file.
+
+LAYOUT_FILE = @CMAKE_CURRENT_SOURCE_DIR@/DoxygenLayout.xml
+
+# The CITE_BIB_FILES tag can be used to specify one or more bib files
+# containing the references data. This must be a list of .bib files. The
+# .bib extension is automatically appended if omitted. Using this command
+# requires the bibtex tool to be installed. See also
+# http://en.wikipedia.org/wiki/BibTeX for more info. For LaTeX the style
+# of the bibliography can be controlled using LATEX_BIB_STYLE. To use this
+# feature you need bibtex and perl available in the search path. Do not use
+# file names with spaces, bibtex cannot handle them.
+
+CITE_BIB_FILES =
+
+#---------------------------------------------------------------------------
+# configuration options related to warning and progress messages
+#---------------------------------------------------------------------------
+
+# The QUIET tag can be used to turn on/off the messages that are generated
+# by doxygen. Possible values are YES and NO. If left blank NO is used.
+
+QUIET = NO
+
+# The WARNINGS tag can be used to turn on/off the warning messages that are
+# generated by doxygen. Possible values are YES and NO. If left blank
+# NO is used.
+
+WARNINGS = YES
+
+# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings
+# for undocumented members. If EXTRACT_ALL is set to YES then this flag will
+# automatically be disabled.
+
+WARN_IF_UNDOCUMENTED = YES
+
+# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for
+# potential errors in the documentation, such as not documenting some
+# parameters in a documented function, or documenting parameters that
+# don't exist or using markup commands wrongly.
+
+WARN_IF_DOC_ERROR = YES
+
+# The WARN_NO_PARAMDOC option can be enabled to get warnings for
+# functions that are documented, but have no documentation for their parameters
+# or return value. If set to NO (the default) doxygen will only warn about
+# wrong or incomplete parameter documentation, but not about the absence of
+# documentation.
+
+WARN_NO_PARAMDOC = NO
+
+# The WARN_FORMAT tag determines the format of the warning messages that
+# doxygen can produce. The string should contain the $file, $line, and $text
+# tags, which will be replaced by the file and line number from which the
+# warning originated and the warning text. Optionally the format may contain
+# $version, which will be replaced by the version of the file (if it could
+# be obtained via FILE_VERSION_FILTER)
+
+WARN_FORMAT = "$file:$line: $text"
+
+# The WARN_LOGFILE tag can be used to specify a file to which warning
+# and error messages should be written. If left blank the output is written
+# to stderr.
+
+WARN_LOGFILE =
+
+#---------------------------------------------------------------------------
+# configuration options related to the input files
+#---------------------------------------------------------------------------
+
+# The INPUT tag can be used to specify the files and/or directories that contain
+# documented source files. You may enter file names like "myfile.cpp" or
+# directories like "/usr/src/myproject". Separate the files or directories
+# with spaces.
+
+INPUT = @CMAKE_CURRENT_SOURCE_DIR@ \
+ @CMAKE_CURRENT_SOURCE_DIR@/../src \
+ @CMAKE_CURRENT_BINARY_DIR@/gensrc \
+ @CMAKE_CURRENT_SOURCE_DIR@/../include \
+ @CMAKE_CURRENT_SOURCE_DIR@/../platform/example
+
+
+# This tag can be used to specify the character encoding of the source files
+# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is
+# also the default input encoding. Doxygen uses libiconv (or the iconv built
+# into libc) for the transcoding. See http://www.gnu.org/software/libiconv for
+# the list of possible encodings.
+
+INPUT_ENCODING = UTF-8
+
+# If the value of the INPUT tag contains directories, you can use the
+# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
+# and *.h) to filter out the source-files in the directories. If left
+# blank the following patterns are tested:
+# *.c *.cc *.cxx *.cpp *.c++ *.d *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh
+# *.hxx *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.dox *.py
+# *.f90 *.f *.for *.vhd *.vhdl
+
+FILE_PATTERNS = *.c \
+ *.cc \
+ *.cxx \
+ *.cpp \
+ *.c++ \
+ *.d \
+ *.java \
+ *.ii \
+ *.ixx \
+ *.ipp \
+ *.i++ \
+ *.inl \
+ *.h \
+ *.hh \
+ *.hxx \
+ *.hpp \
+ *.h++ \
+ *.idl \
+ *.odl \
+ *.cs \
+ *.php \
+ *.php3 \
+ *.inc \
+ *.m \
+ *.markdown \
+ *.md \
+ *.mm \
+ *.dox \
+ *.py \
+ *.f90 \
+ *.f \
+ *.for \
+ *.vhd \
+ *.vhdl
+
+# The RECURSIVE tag can be used to turn specify whether or not subdirectories
+# should be searched for input files as well. Possible values are YES and NO.
+# If left blank NO is used.
+
+RECURSIVE = YES
+
+# The EXCLUDE tag can be used to specify files and/or directories that should be
+# excluded from the INPUT source files. This way you can easily exclude a
+# subdirectory from a directory tree whose root is specified with the INPUT tag.
+# Note that relative paths are relative to the directory from which doxygen is
+# run.
+
+EXCLUDE = @CMAKE_CURRENT_SOURCE_DIR@/test \
+ @CMAKE_CURRENT_SOURCE_DIR@/examples \
+ @CMAKE_CURRENT_SOURCE_DIR@/obj \
+ @CMAKE_CURRENT_SOURCE_DIR@/platform/mipi_stp_sim \
+ @CMAKE_CURRENT_SOURCE_DIR@/platform/linux \
+ @CMAKE_CURRENT_SOURCE_DIR@/sdk \
+ @CMAKE_CURRENT_SOURCE_DIR@/example.c
+
+# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or
+# directories that are symbolic links (a Unix file system feature) are excluded
+# from the input.
+
+EXCLUDE_SYMLINKS = NO
+
+# If the value of the INPUT tag contains directories, you can use the
+# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude
+# certain files from those directories. Note that the wildcards are matched
+# against the file with absolute path, so to exclude all test directories
+# for example use the pattern */test/*
+
+EXCLUDE_PATTERNS =
+
+# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names
+# (namespaces, classes, functions, etc.) that should be excluded from the
+# output. The symbol name can be a fully qualified name, a word, or if the
+# wildcard * is used, a substring. Examples: ANamespace, AClass,
+# AClass::ANamespace, ANamespace::*Test
+
+EXCLUDE_SYMBOLS =
+
+# The EXAMPLE_PATH tag can be used to specify one or more files or
+# directories that contain example code fragments that are included (see
+# the \include command).
+
+EXAMPLE_PATH =
+
+# If the value of the EXAMPLE_PATH tag contains directories, you can use the
+# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
+# and *.h) to filter out the source-files in the directories. If left
+# blank all files are included.
+
+EXAMPLE_PATTERNS =
+
+# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be
+# searched for input files to be used with the \include or \dontinclude
+# commands irrespective of the value of the RECURSIVE tag.
+# Possible values are YES and NO. If left blank NO is used.
+
+EXAMPLE_RECURSIVE = NO
+
+# The IMAGE_PATH tag can be used to specify one or more files or
+# directories that contain image that are included in the documentation (see
+# the \image command).
+
+IMAGE_PATH =
+
+# The INPUT_FILTER tag can be used to specify a program that doxygen should
+# invoke to filter for each input file. Doxygen will invoke the filter program
+# by executing (via popen()) the command <filter> <input-file>, where <filter>
+# is the value of the INPUT_FILTER tag, and <input-file> is the name of an
+# input file. Doxygen will then use the output that the filter program writes
+# to standard output. If FILTER_PATTERNS is specified, this tag will be
+# ignored.
+
+INPUT_FILTER =
+
+# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern
+# basis. Doxygen will compare the file name with each pattern and apply the
+# filter if there is a match. The filters are a list of the form:
+# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further
+# info on how filters are used. If FILTER_PATTERNS is empty or if
+# non of the patterns match the file name, INPUT_FILTER is applied.
+
+FILTER_PATTERNS =
+
+# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using
+# INPUT_FILTER) will be used to filter the input files when producing source
+# files to browse (i.e. when SOURCE_BROWSER is set to YES).
+
+FILTER_SOURCE_FILES = NO
+
+# The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file
+# pattern. A pattern will override the setting for FILTER_PATTERN (if any)
+# and it is also possible to disable source filtering for a specific pattern
+# using *.ext= (so without naming a filter). This option only has effect when
+# FILTER_SOURCE_FILES is enabled.
+
+FILTER_SOURCE_PATTERNS =
+
+# If the USE_MD_FILE_AS_MAINPAGE tag refers to the name of a markdown file that
+# is part of the input, its contents will be placed on the main page (index.html).
+# This can be useful if you have a project on for instance GitHub and want reuse
+# the introduction page also for the doxygen output.
+
+USE_MDFILE_AS_MAINPAGE = mainpage.md
+
+#---------------------------------------------------------------------------
+# configuration options related to source browsing
+#---------------------------------------------------------------------------
+
+# If the SOURCE_BROWSER tag is set to YES then a list of source files will
+# be generated. Documented entities will be cross-referenced with these sources.
+# Note: To get rid of all source code in the generated output, make sure also
+# VERBATIM_HEADERS is set to NO.
+
+SOURCE_BROWSER = YES
+
+# Setting the INLINE_SOURCES tag to YES will include the body
+# of functions and classes directly in the documentation.
+
+INLINE_SOURCES = YES
+
+# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct
+# doxygen to hide any special comment blocks from generated source code
+# fragments. Normal C, C++ and Fortran comments will always remain visible.
+
+STRIP_CODE_COMMENTS = NO
+
+# If the REFERENCED_BY_RELATION tag is set to YES
+# then for each documented function all documented
+# functions referencing it will be listed.
+
+REFERENCED_BY_RELATION = NO
+
+# If the REFERENCES_RELATION tag is set to YES
+# then for each documented function all documented entities
+# called/used by that function will be listed.
+
+REFERENCES_RELATION = NO
+
+# If the REFERENCES_LINK_SOURCE tag is set to YES (the default)
+# and SOURCE_BROWSER tag is set to YES, then the hyperlinks from
+# functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will
+# link to the source code. Otherwise they will link to the documentation.
+
+REFERENCES_LINK_SOURCE = YES
+
+# If the USE_HTAGS tag is set to YES then the references to source code
+# will point to the HTML generated by the htags(1) tool instead of doxygen
+# built-in source browser. The htags tool is part of GNU's global source
+# tagging system (see http://www.gnu.org/software/global/global.html). You
+# will need version 4.8.6 or higher.
+
+USE_HTAGS = NO
+
+# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen
+# will generate a verbatim copy of the header file for each class for
+# which an include is specified. Set to NO to disable this.
+
+VERBATIM_HEADERS = YES
+
+#---------------------------------------------------------------------------
+# configuration options related to the alphabetical class index
+#---------------------------------------------------------------------------
+
+# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index
+# of all compounds will be generated. Enable this if the project
+# contains a lot of classes, structs, unions or interfaces.
+
+ALPHABETICAL_INDEX = YES
+
+# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then
+# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns
+# in which this list will be split (can be a number in the range [1..20])
+
+COLS_IN_ALPHA_INDEX = 5
+
+# In case all classes in a project start with a common prefix, all
+# classes will be put under the same header in the alphabetical index.
+# The IGNORE_PREFIX tag can be used to specify one or more prefixes that
+# should be ignored while generating the index headers.
+
+IGNORE_PREFIX =
+
+#---------------------------------------------------------------------------
+# configuration options related to the HTML output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_HTML tag is set to YES (the default) Doxygen will
+# generate HTML output.
+
+GENERATE_HTML = YES
+
+# The HTML_OUTPUT tag is used to specify where the HTML docs will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# put in front of it. If left blank `html' will be used as the default path.
+
+HTML_OUTPUT = @CMAKE_CURRENT_BINARY_DIR@/html
+
+# The HTML_FILE_EXTENSION tag can be used to specify the file extension for
+# each generated HTML page (for example: .htm,.php,.asp). If it is left blank
+# doxygen will generate files with .html extension.
+
+HTML_FILE_EXTENSION = .html
+
+# The HTML_HEADER tag can be used to specify a personal HTML header for
+# each generated HTML page. If it is left blank doxygen will generate a
+# standard header. Note that when using a custom header you are responsible
+# for the proper inclusion of any scripts and style sheets that doxygen
+# needs, which is dependent on the configuration options used.
+# It is advised to generate a default header using "doxygen -w html
+# header.html footer.html stylesheet.css YourConfigFile" and then modify
+# that header. Note that the header is subject to change so you typically
+# have to redo this when upgrading to a newer version of doxygen or when
+# changing the value of configuration settings such as GENERATE_TREEVIEW!
+
+HTML_HEADER =
+
+# The HTML_FOOTER tag can be used to specify a personal HTML footer for
+# each generated HTML page. If it is left blank doxygen will generate a
+# standard footer.
+
+HTML_FOOTER =
+
+# The HTML_STYLESHEET tag can be used to specify a user-defined cascading
+# style sheet that is used by each HTML page. It can be used to
+# fine-tune the look of the HTML output. If left blank doxygen will
+# generate a default style sheet. Note that it is recommended to use
+# HTML_EXTRA_STYLESHEET instead of this one, as it is more robust and this
+# tag will in the future become obsolete.
+
+HTML_STYLESHEET =
+
+# The HTML_EXTRA_STYLESHEET tag can be used to specify an additional
+# user-defined cascading style sheet that is included after the standard
+# style sheets created by doxygen. Using this option one can overrule
+# certain style aspects. This is preferred over using HTML_STYLESHEET
+# since it does not replace the standard style sheet and is therefor more
+# robust against future updates. Doxygen will copy the style sheet file to
+# the output directory.
+
+HTML_EXTRA_STYLESHEET =
+
+# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or
+# other source files which should be copied to the HTML output directory. Note
+# that these files will be copied to the base HTML output directory. Use the
+# $relpath$ marker in the HTML_HEADER and/or HTML_FOOTER files to load these
+# files. In the HTML_STYLESHEET file, use the file name only. Also note that
+# the files will be copied as-is; there are no commands or markers available.
+
+HTML_EXTRA_FILES = @CMAKE_CURRENT_SOURCE_DIR@/mipi_sys_t_message_anatomy.png \
+ @CMAKE_CURRENT_SOURCE_DIR@/mipi_sys_t_library_flow.png \
+ @CMAKE_CURRENT_SOURCE_DIR@/mipi_sys_t_event_header.png
+
+# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output.
+# Doxygen will adjust the colors in the style sheet and background images
+# according to this color. Hue is specified as an angle on a colorwheel,
+# see http://en.wikipedia.org/wiki/Hue for more information.
+# For instance the value 0 represents red, 60 is yellow, 120 is green,
+# 180 is cyan, 240 is blue, 300 purple, and 360 is red again.
+# The allowed range is 0 to 359.
+
+HTML_COLORSTYLE_HUE = 220
+
+# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of
+# the colors in the HTML output. For a value of 0 the output will use
+# grayscales only. A value of 255 will produce the most vivid colors.
+
+HTML_COLORSTYLE_SAT = 100
+
+# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to
+# the luminance component of the colors in the HTML output. Values below
+# 100 gradually make the output lighter, whereas values above 100 make
+# the output darker. The value divided by 100 is the actual gamma applied,
+# so 80 represents a gamma of 0.8, The value 220 represents a gamma of 2.2,
+# and 100 does not change the gamma.
+
+HTML_COLORSTYLE_GAMMA = 80
+
+# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML
+# page will contain the date and time when the page was generated. Setting
+# this to NO can help when comparing the output of multiple runs.
+
+HTML_TIMESTAMP = YES
+
+# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML
+# documentation will contain sections that can be hidden and shown after the
+# page has loaded.
+
+HTML_DYNAMIC_SECTIONS = NO
+
+# With HTML_INDEX_NUM_ENTRIES one can control the preferred number of
+# entries shown in the various tree structured indices initially; the user
+# can expand and collapse entries dynamically later on. Doxygen will expand
+# the tree to such a level that at most the specified number of entries are
+# visible (unless a fully collapsed tree already exceeds this amount).
+# So setting the number of entries 1 will produce a full collapsed tree by
+# default. 0 is a special value representing an infinite number of entries
+# and will result in a full expanded tree by default.
+
+HTML_INDEX_NUM_ENTRIES = 100
+
+# If the GENERATE_DOCSET tag is set to YES, additional index files
+# will be generated that can be used as input for Apple's Xcode 3
+# integrated development environment, introduced with OSX 10.5 (Leopard).
+# To create a documentation set, doxygen will generate a Makefile in the
+# HTML output directory. Running make will produce the docset in that
+# directory and running "make install" will install the docset in
+# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find
+# it at startup.
+# See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html
+# for more information.
+
+GENERATE_DOCSET = NO
+
+# When GENERATE_DOCSET tag is set to YES, this tag determines the name of the
+# feed. A documentation feed provides an umbrella under which multiple
+# documentation sets from a single provider (such as a company or product suite)
+# can be grouped.
+
+DOCSET_FEEDNAME = "Doxygen generated docs"
+
+# When GENERATE_DOCSET tag is set to YES, this tag specifies a string that
+# should uniquely identify the documentation set bundle. This should be a
+# reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen
+# will append .docset to the name.
+
+DOCSET_BUNDLE_ID = org.doxygen.Project
+
+# When GENERATE_PUBLISHER_ID tag specifies a string that should uniquely
+# identify the documentation publisher. This should be a reverse domain-name
+# style string, e.g. com.mycompany.MyDocSet.documentation.
+
+DOCSET_PUBLISHER_ID = org.doxygen.Publisher
+
+# The GENERATE_PUBLISHER_NAME tag identifies the documentation publisher.
+
+DOCSET_PUBLISHER_NAME = Publisher
+
+# If the GENERATE_HTMLHELP tag is set to YES, additional index files
+# will be generated that can be used as input for tools like the
+# Microsoft HTML help workshop to generate a compiled HTML help file (.chm)
+# of the generated HTML documentation.
+
+GENERATE_HTMLHELP = NO
+
+# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can
+# be used to specify the file name of the resulting .chm file. You
+# can add a path in front of the file if the result should not be
+# written to the html output directory.
+
+CHM_FILE =
+
+# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can
+# be used to specify the location (absolute path including file name) of
+# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run
+# the HTML help compiler on the generated index.hhp.
+
+HHC_LOCATION = "C:\Program Files (x86)\HTML Help Workshop\hhc.exe"
+
+# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag
+# controls if a separate .chi index file is generated (YES) or that
+# it should be included in the master .chm file (NO).
+
+GENERATE_CHI = NO
+
+# If the GENERATE_HTMLHELP tag is set to YES, the CHM_INDEX_ENCODING
+# is used to encode HtmlHelp index (hhk), content (hhc) and project file
+# content.
+
+CHM_INDEX_ENCODING =
+
+# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag
+# controls whether a binary table of contents is generated (YES) or a
+# normal table of contents (NO) in the .chm file.
+
+BINARY_TOC = NO
+
+# The TOC_EXPAND flag can be set to YES to add extra items for group members
+# to the contents of the HTML help documentation and to the tree view.
+
+TOC_EXPAND = NO
+
+# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and
+# QHP_VIRTUAL_FOLDER are set, an additional index file will be generated
+# that can be used as input for Qt's qhelpgenerator to generate a
+# Qt Compressed Help (.qch) of the generated HTML documentation.
+
+GENERATE_QHP = NO
+
+# If the QHG_LOCATION tag is specified, the QCH_FILE tag can
+# be used to specify the file name of the resulting .qch file.
+# The path specified is relative to the HTML output folder.
+
+QCH_FILE =
+
+# The QHP_NAMESPACE tag specifies the namespace to use when generating
+# Qt Help Project output. For more information please see
+# http://doc.trolltech.com/qthelpproject.html#namespace
+
+QHP_NAMESPACE = org.doxygen.Project
+
+# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating
+# Qt Help Project output. For more information please see
+# http://doc.trolltech.com/qthelpproject.html#virtual-folders
+
+QHP_VIRTUAL_FOLDER = doc
+
+# If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to
+# add. For more information please see
+# http://doc.trolltech.com/qthelpproject.html#custom-filters
+
+QHP_CUST_FILTER_NAME =
+
+# The QHP_CUST_FILT_ATTRS tag specifies the list of the attributes of the
+# custom filter to add. For more information please see
+# <a href="http://doc.trolltech.com/qthelpproject.html#custom-filters">
+# Qt Help Project / Custom Filters</a>.
+
+QHP_CUST_FILTER_ATTRS =
+
+# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this
+# project's
+# filter section matches.
+# <a href="http://doc.trolltech.com/qthelpproject.html#filter-attributes">
+# Qt Help Project / Filter Attributes</a>.
+
+QHP_SECT_FILTER_ATTRS =
+
+# If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can
+# be used to specify the location of Qt's qhelpgenerator.
+# If non-empty doxygen will try to run qhelpgenerator on the generated
+# .qhp file.
+
+QHG_LOCATION =
+
+# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files
+# will be generated, which together with the HTML files, form an Eclipse help
+# plugin. To install this plugin and make it available under the help contents
+# menu in Eclipse, the contents of the directory containing the HTML and XML
+# files needs to be copied into the plugins directory of eclipse. The name of
+# the directory within the plugins directory should be the same as
+# the ECLIPSE_DOC_ID value. After copying Eclipse needs to be restarted before
+# the help appears.
+
+GENERATE_ECLIPSEHELP = NO
+
+# A unique identifier for the eclipse help plugin. When installing the plugin
+# the directory name containing the HTML and XML files should also have
+# this name.
+
+ECLIPSE_DOC_ID = org.doxygen.Project
+
+# The DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs)
+# at top of each HTML page. The value NO (the default) enables the index and
+# the value YES disables it. Since the tabs have the same information as the
+# navigation tree you can set this option to NO if you already set
+# GENERATE_TREEVIEW to YES.
+
+DISABLE_INDEX = NO
+
+# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index
+# structure should be generated to display hierarchical information.
+# If the tag value is set to YES, a side panel will be generated
+# containing a tree-like index structure (just like the one that
+# is generated for HTML Help). For this to work a browser that supports
+# JavaScript, DHTML, CSS and frames is required (i.e. any modern browser).
+# Windows users are probably better off using the HTML help feature.
+# Since the tree basically has the same information as the tab index you
+# could consider to set DISABLE_INDEX to NO when enabling this option.
+
+GENERATE_TREEVIEW = YES
+
+# The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values
+# (range [0,1..20]) that doxygen will group on one line in the generated HTML
+# documentation. Note that a value of 0 will completely suppress the enum
+# values from appearing in the overview section.
+
+ENUM_VALUES_PER_LINE = 4
+
+# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be
+# used to set the initial width (in pixels) of the frame in which the tree
+# is shown.
+
+TREEVIEW_WIDTH = 250
+
+# When the EXT_LINKS_IN_WINDOW option is set to YES doxygen will open
+# links to external symbols imported via tag files in a separate window.
+
+EXT_LINKS_IN_WINDOW = NO
+
+# Use this tag to change the font size of Latex formulas included
+# as images in the HTML documentation. The default is 10. Note that
+# when you change the font size after a successful doxygen run you need
+# to manually remove any form_*.png images from the HTML output directory
+# to force them to be regenerated.
+
+FORMULA_FONTSIZE = 10
+
+# Use the FORMULA_TRANPARENT tag to determine whether or not the images
+# generated for formulas are transparent PNGs. Transparent PNGs are
+# not supported properly for IE 6.0, but are supported on all modern browsers.
+# Note that when changing this option you need to delete any form_*.png files
+# in the HTML output before the changes have effect.
+
+FORMULA_TRANSPARENT = YES
+
+# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax
+# (see http://www.mathjax.org) which uses client side Javascript for the
+# rendering instead of using prerendered bitmaps. Use this if you do not
+# have LaTeX installed or if you want to formulas look prettier in the HTML
+# output. When enabled you may also need to install MathJax separately and
+# configure the path to it using the MATHJAX_RELPATH option.
+
+USE_MATHJAX = NO
+
+# When MathJax is enabled you can set the default output format to be used for
+# thA MathJax output. Supported types are HTML-CSS, NativeMML (i.e. MathML) and
+# SVG. The default value is HTML-CSS, which is slower, but has the best
+# compatibility.
+
+MATHJAX_FORMAT = HTML-CSS
+
+# When MathJax is enabled you need to specify the location relative to the
+# HTML output directory using the MATHJAX_RELPATH option. The destination
+# directory should contain the MathJax.js script. For instance, if the mathjax
+# directory is located at the same level as the HTML output directory, then
+# MATHJAX_RELPATH should be ../mathjax. The default value points to
+# the MathJax Content Delivery Network so you can quickly see the result without
+# installing MathJax. However, it is strongly recommended to install a local
+# copy of MathJax from http://www.mathjax.org before deployment.
+
+MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest
+
+# The MATHJAX_EXTENSIONS tag can be used to specify one or MathJax extension
+# names that should be enabled during MathJax rendering.
+
+MATHJAX_EXTENSIONS =
+
+# When the SEARCHENGINE tag is enabled doxygen will generate a search box
+# for the HTML output. The underlying search engine uses javascript
+# and DHTML and should work on any modern browser. Note that when using
+# HTML help (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets
+# (GENERATE_DOCSET) there is already a search function so this one should
+# typically be disabled. For large projects the javascript based search engine
+# can be slow, then enabling SERVER_BASED_SEARCH may provide a better solution.
+
+SEARCHENGINE = YES
+
+# When the SERVER_BASED_SEARCH tag is enabled the search engine will be
+# implemented using a web server instead of a web client using Javascript.
+# There are two flavours of web server based search depending on the
+# EXTERNAL_SEARCH setting. When disabled, doxygen will generate a PHP script for
+# searching and an index file used by the script. When EXTERNAL_SEARCH is
+# enabled the indexing and searching needs to be provided by external tools.
+# See the manual for details.
+
+SERVER_BASED_SEARCH = NO
+
+# When EXTERNAL_SEARCH is enabled doxygen will no longer generate the PHP
+# script for searching. Instead the search results are written to an XML file
+# which needs to be processed by an external indexer. Doxygen will invoke an
+# external search engine pointed to by the SEARCHENGINE_URL option to obtain
+# the search results. Doxygen ships with an example indexer (doxyindexer) and
+# search engine (doxysearch.cgi) which are based on the open source search engine
+# library Xapian. See the manual for configuration details.
+
+EXTERNAL_SEARCH = NO
+
+# The SEARCHENGINE_URL should point to a search engine hosted by a web server
+# which will returned the search results when EXTERNAL_SEARCH is enabled.
+# Doxygen ships with an example search engine (doxysearch) which is based on
+# the open source search engine library Xapian. See the manual for configuration
+# details.
+
+SEARCHENGINE_URL =
+
+# When SERVER_BASED_SEARCH and EXTERNAL_SEARCH are both enabled the unindexed
+# search data is written to a file for indexing by an external tool. With the
+# SEARCHDATA_FILE tag the name of this file can be specified.
+
+SEARCHDATA_FILE = searchdata.xml
+
+# When SERVER_BASED_SEARCH AND EXTERNAL_SEARCH are both enabled the
+# EXTERNAL_SEARCH_ID tag can be used as an identifier for the project. This is
+# useful in combination with EXTRA_SEARCH_MAPPINGS to search through multiple
+# projects and redirect the results back to the right project.
+
+EXTERNAL_SEARCH_ID =
+
+# The EXTRA_SEARCH_MAPPINGS tag can be used to enable searching through doxygen
+# projects other than the one defined by this configuration file, but that are
+# all added to the same external search index. Each project needs to have a
+# unique id set via EXTERNAL_SEARCH_ID. The search mapping then maps the id
+# of to a relative location where the documentation can be found.
+# The format is: EXTRA_SEARCH_MAPPINGS = id1=loc1 id2=loc2 ...
+
+EXTRA_SEARCH_MAPPINGS =
+
+#---------------------------------------------------------------------------
+# configuration options related to the LaTeX output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will
+# generate Latex output.
+
+GENERATE_LATEX = NO
+
+# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# put in front of it. If left blank `latex' will be used as the default path.
+
+LATEX_OUTPUT = latex
+
+# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be
+# invoked. If left blank `latex' will be used as the default command name.
+# Note that when enabling USE_PDFLATEX this option is only used for
+# generating bitmaps for formulas in the HTML output, but not in the
+# Makefile that is written to the output directory.
+
+LATEX_CMD_NAME = latex
+
+# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to
+# generate index for LaTeX. If left blank `makeindex' will be used as the
+# default command name.
+
+MAKEINDEX_CMD_NAME = makeindex
+
+# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact
+# LaTeX documents. This may be useful for small projects and may help to
+# save some trees in general.
+
+COMPACT_LATEX = NO
+
+# The PAPER_TYPE tag can be used to set the paper type that is used
+# by the printer. Possible values are: a4, letter, legal and
+# executive. If left blank a4wide will be used.
+
+PAPER_TYPE = a4
+
+# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX
+# packages that should be included in the LaTeX output.
+
+EXTRA_PACKAGES =
+
+# The LATEX_HEADER tag can be used to specify a personal LaTeX header for
+# the generated latex document. The header should contain everything until
+# the first chapter. If it is left blank doxygen will generate a
+# standard header. Notice: only use this tag if you know what you are doing!
+
+LATEX_HEADER =
+
+# The LATEX_FOOTER tag can be used to specify a personal LaTeX footer for
+# the generated latex document. The footer should contain everything after
+# the last chapter. If it is left blank doxygen will generate a
+# standard footer. Notice: only use this tag if you know what you are doing!
+
+LATEX_FOOTER =
+
+# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated
+# is prepared for conversion to pdf (using ps2pdf). The pdf file will
+# contain links (just like the HTML output) instead of page references
+# This makes the output suitable for online browsing using a pdf viewer.
+
+PDF_HYPERLINKS = YES
+
+# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of
+# plain latex in the generated Makefile. Set this option to YES to get a
+# higher quality PDF documentation.
+
+USE_PDFLATEX = YES
+
+# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode.
+# command to the generated LaTeX files. This will instruct LaTeX to keep
+# running if errors occur, instead of asking the user for help.
+# This option is also used when generating formulas in HTML.
+
+LATEX_BATCHMODE = NO
+
+# If LATEX_HIDE_INDICES is set to YES then doxygen will not
+# include the index chapters (such as File Index, Compound Index, etc.)
+# in the output.
+
+LATEX_HIDE_INDICES = NO
+
+# If LATEX_SOURCE_CODE is set to YES then doxygen will include
+# source code with syntax highlighting in the LaTeX output.
+# Note that which sources are shown also depends on other settings
+# such as SOURCE_BROWSER.
+
+LATEX_SOURCE_CODE = NO
+
+# The LATEX_BIB_STYLE tag can be used to specify the style to use for the
+# bibliography, e.g. plainnat, or ieeetr. The default style is "plain". See
+# http://en.wikipedia.org/wiki/BibTeX for more info.
+
+LATEX_BIB_STYLE = plain
+
+#---------------------------------------------------------------------------
+# configuration options related to the RTF output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output
+# The RTF output is optimized for Word 97 and may not look very pretty with
+# other RTF readers or editors.
+
+GENERATE_RTF = NO
+
+# The RTF_OUTPUT tag is used to specify where the RTF docs will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# put in front of it. If left blank `rtf' will be used as the default path.
+
+RTF_OUTPUT = rtf
+
+# If the COMPACT_RTF tag is set to YES Doxygen generates more compact
+# RTF documents. This may be useful for small projects and may help to
+# save some trees in general.
+
+COMPACT_RTF = NO
+
+# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated
+# will contain hyperlink fields. The RTF file will
+# contain links (just like the HTML output) instead of page references.
+# This makes the output suitable for online browsing using WORD or other
+# programs which support those fields.
+# Note: wordpad (write) and others do not support links.
+
+RTF_HYPERLINKS = NO
+
+# Load style sheet definitions from file. Syntax is similar to doxygen's
+# config file, i.e. a series of assignments. You only have to provide
+# replacements, missing definitions are set to their default value.
+
+RTF_STYLESHEET_FILE =
+
+# Set optional variables used in the generation of an rtf document.
+# Syntax is similar to doxygen's config file.
+
+RTF_EXTENSIONS_FILE =
+
+#---------------------------------------------------------------------------
+# configuration options related to the man page output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_MAN tag is set to YES (the default) Doxygen will
+# generate man pages
+
+GENERATE_MAN = NO
+
+# The MAN_OUTPUT tag is used to specify where the man pages will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# put in front of it. If left blank `man' will be used as the default path.
+
+MAN_OUTPUT = man
+
+# The MAN_EXTENSION tag determines the extension that is added to
+# the generated man pages (default is the subroutine's section .3)
+
+MAN_EXTENSION = .3
+
+# If the MAN_LINKS tag is set to YES and Doxygen generates man output,
+# then it will generate one additional man file for each entity
+# documented in the real man page(s). These additional files
+# only source the real man page, but without them the man command
+# would be unable to find the correct page. The default is NO.
+
+MAN_LINKS = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to the XML output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_XML tag is set to YES Doxygen will
+# generate an XML file that captures the structure of
+# the code including all documentation.
+
+GENERATE_XML = NO
+
+# The XML_OUTPUT tag is used to specify where the XML pages will be put.
+# If a relative path is entered the value of OUTPUT_DIRECTORY will be
+# put in front of it. If left blank `xml' will be used as the default path.
+
+XML_OUTPUT = xml
+
+
+# If the XML_PROGRAMLISTING tag is set to YES Doxygen will
+# dump the program listings (including syntax highlighting
+# and cross-referencing information) to the XML output. Note that
+# enabling this will significantly increase the size of the XML output.
+
+XML_PROGRAMLISTING = YES
+
+#---------------------------------------------------------------------------
+# configuration options for the AutoGen Definitions output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will
+# generate an AutoGen Definitions (see autogen.sf.net) file
+# that captures the structure of the code including all
+# documentation. Note that this feature is still experimental
+# and incomplete at the moment.
+
+GENERATE_AUTOGEN_DEF = NO
+
+#---------------------------------------------------------------------------
+# configuration options related to the Perl module output
+#---------------------------------------------------------------------------
+
+# If the GENERATE_PERLMOD tag is set to YES Doxygen will
+# generate a Perl module file that captures the structure of
+# the code including all documentation. Note that this
+# feature is still experimental and incomplete at the
+# moment.
+
+GENERATE_PERLMOD = NO
+
+# If the PERLMOD_LATEX tag is set to YES Doxygen will generate
+# the necessary Makefile rules, Perl scripts and LaTeX code to be able
+# to generate PDF and DVI output from the Perl module output.
+
+PERLMOD_LATEX = NO
+
+# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be
+# nicely formatted so it can be parsed by a human reader. This is useful
+# if you want to understand what is going on. On the other hand, if this
+# tag is set to NO the size of the Perl module output will be much smaller
+# and Perl will parse it just the same.
+
+PERLMOD_PRETTY = YES
+
+# The names of the make variables in the generated doxyrules.make file
+# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX.
+# This is useful so different doxyrules.make files included by the same
+# Makefile don't overwrite each other's variables.
+
+PERLMOD_MAKEVAR_PREFIX =
+
+#---------------------------------------------------------------------------
+# Configuration options related to the preprocessor
+#---------------------------------------------------------------------------
+
+# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will
+# evaluate all C-preprocessor directives found in the sources and include
+# files.
+
+ENABLE_PREPROCESSING = YES
+
+# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro
+# names in the source code. If set to NO (the default) only conditional
+# compilation will be performed. Macro expansion can be done in a controlled
+# way by setting EXPAND_ONLY_PREDEF to YES.
+
+MACRO_EXPANSION = NO
+
+# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES
+# then the macro expansion is limited to the macros specified with the
+# PREDEFINED and EXPAND_AS_DEFINED tags.
+
+EXPAND_ONLY_PREDEF = NO
+
+# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files
+# pointed to by INCLUDE_PATH will be searched when a #include is found.
+
+SEARCH_INCLUDES = YES
+
+# The INCLUDE_PATH tag can be used to specify one or more directories that
+# contain include files that are not input files but should be processed by
+# the preprocessor.
+
+INCLUDE_PATH = @CMAKE_CURRENT_SOURCE_DIR@/../include \
+ @CMAKE_CURRENT_BINARY_DIR@/gensrc \
+ @CMAKE_CURRENT_SOURCE_DIR@/../platform/example/include
+
+# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard
+# patterns (like *.h and *.hpp) to filter out the header-files in the
+# directories. If left blank, the patterns specified with FILE_PATTERNS will
+# be used.
+
+INCLUDE_FILE_PATTERNS = *.h
+
+# The PREDEFINED tag can be used to specify one or more macro names that
+# are defined before the preprocessor is started (similar to the -D option of
+# gcc). The argument of the tag is a list of macros of the form: name
+# or name=definition (no spaces). If the definition and the = are
+# omitted =1 is assumed. To prevent a macro definition from being
+# undefined via #undef or recursively expanded use the := operator
+# instead of the = operator.
+
+PREDEFINED = MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD \
+ MIPI_SYST_PCFG_ENABLE_LOCATION_ADDRESS \
+ MIPI_SYST_PCFG_ENABLE_PLATFORM_STATE_DATA \
+ MIPI_SYST_PCFG_ENABLE_CATID64_API \
+ MIPI_SYST_PCFG_ENABLE_CATID32_API \
+ MIPI_SYST_PCFG_ENABLE_WRITE_API \
+ MIPI_SYST_PCFG_ENABLE_BUILD_API \
+ MIPI_SYST_PCFG_ENABLE_STRING_API \
+ MIPI_SYST_PCFG_ENABLE_64BIT_IO \
+ MIPI_SYST_PCFG_ENABLE_HEAP_MEMORY \
+ MIPI_SYST_PCFG_ENABLE_TIMESTAMP \
+ __GNUC__ \
+ __x86_64__ \
+ _DOXYGEN_
+
+# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then
+# this tag can be used to specify a list of macro names that should be expanded.
+# The macro definition that is found in the sources will be used.
+# Use the PREDEFINED tag if you want to use a different macro definition that
+# overrules the definition found in the source code.
+
+EXPAND_AS_DEFINED =
+
+# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then
+# doxygen's preprocessor will remove all references to function-like macros
+# that are alone on a line, have an all uppercase name, and do not end with a
+# semicolon, because these will confuse the parser if not removed.
+
+SKIP_FUNCTION_MACROS = YES
+
+#---------------------------------------------------------------------------
+# Configuration::additions related to external references
+#---------------------------------------------------------------------------
+
+# The TAGFILES option can be used to specify one or more tagfiles. For each
+# tag file the location of the external documentation should be added. The
+# format of a tag file without this location is as follows:
+# TAGFILES = file1 file2 ...
+# Adding location for the tag files is done as follows:
+# TAGFILES = file1=loc1 "file2 = loc2" ...
+# where "loc1" and "loc2" can be relative or absolute paths
+# or URLs. Note that each tag file must have a unique name (where the name does
+# NOT include the path). If a tag file is not located in the directory in which
+# doxygen is run, you must also specify the path to the tagfile here.
+
+TAGFILES =
+
+# When a file name is specified after GENERATE_TAGFILE, doxygen will create
+# a tag file that is based on the input files it reads.
+
+GENERATE_TAGFILE =
+
+# If the ALLEXTERNALS tag is set to YES all external classes will be listed
+# in the class index. If set to NO only the inherited external classes
+# will be listed.
+
+ALLEXTERNALS = NO
+
+# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed
+# in the modules index. If set to NO, only the current project's groups will
+# be listed.
+
+EXTERNAL_GROUPS = YES
+
+# The PERL_PATH should be the absolute path and name of the perl script
+# interpreter (i.e. the result of `which perl').
+
+PERL_PATH = /usr/bin/perl
+
+#---------------------------------------------------------------------------
+# Configuration options related to the dot tool
+#---------------------------------------------------------------------------
+
+# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will
+# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base
+# or super classes. Setting the tag to NO turns the diagrams off. Note that
+# this option also works with HAVE_DOT disabled, but it is recommended to
+# install and use dot, since it yields more powerful graphs.
+
+CLASS_DIAGRAMS = YES
+
+# You can define message sequence charts within doxygen comments using the \msc
+# command. Doxygen will then run the mscgen tool (see
+# http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the
+# documentation. The MSCGEN_PATH tag allows you to specify the directory where
+# the mscgen tool resides. If left empty the tool is assumed to be found in the
+# default search path.
+
+MSCGEN_PATH =
+
+# If set to YES, the inheritance and collaboration graphs will hide
+# inheritance and usage relations if the target is undocumented
+# or is not a class.
+
+HIDE_UNDOC_RELATIONS = YES
+
+# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is
+# available from the path. This tool is part of Graphviz, a graph visualization
+# toolkit from AT&T and Lucent Bell Labs. The other options in this section
+# have no effect if this option is set to NO (the default)
+
+HAVE_DOT = NO
+
+# The DOT_NUM_THREADS specifies the number of dot invocations doxygen is
+# allowed to run in parallel. When set to 0 (the default) doxygen will
+# base this on the number of processors available in the system. You can set it
+# explicitly to a value larger than 0 to get control over the balance
+# between CPU load and processing speed.
+
+DOT_NUM_THREADS = 0
+
+# By default doxygen will use the Helvetica font for all dot files that
+# doxygen generates. When you want a differently looking font you can specify
+# the font name using DOT_FONTNAME. You need to make sure dot is able to find
+# the font, which can be done by putting it in a standard location or by setting
+# the DOTFONTPATH environment variable or by setting DOT_FONTPATH to the
+# directory containing the font.
+
+DOT_FONTNAME = Helvetica
+
+# The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs.
+# The default size is 10pt.
+
+DOT_FONTSIZE = 10
+
+# By default doxygen will tell dot to use the Helvetica font.
+# If you specify a different font using DOT_FONTNAME you can use DOT_FONTPATH to
+# set the path where dot can find it.
+
+DOT_FONTPATH =
+
+# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen
+# will generate a graph for each documented class showing the direct and
+# indirect inheritance relations. Setting this tag to YES will force the
+# CLASS_DIAGRAMS tag to NO.
+
+CLASS_GRAPH = YES
+
+# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen
+# will generate a graph for each documented class showing the direct and
+# indirect implementation dependencies (inheritance, containment, and
+# class references variables) of the class with other documented classes.
+
+COLLABORATION_GRAPH = YES
+
+# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen
+# will generate a graph for groups, showing the direct groups dependencies
+
+GROUP_GRAPHS = YES
+
+# If the UML_LOOK tag is set to YES doxygen will generate inheritance and
+# collaboration diagrams in a style similar to the OMG's Unified Modeling
+# Language.
+
+UML_LOOK = NO
+
+# If the UML_LOOK tag is enabled, the fields and methods are shown inside
+# the class node. If there are many fields or methods and many nodes the
+# graph may become too big to be useful. The UML_LIMIT_NUM_FIELDS
+# threshold limits the number of items for each type to make the size more
+# managable. Set this to 0 for no limit. Note that the threshold may be
+# exceeded by 50% before the limit is enforced.
+
+UML_LIMIT_NUM_FIELDS = 10
+
+# If set to YES, the inheritance and collaboration graphs will show the
+# relations between templates and their instances.
+
+TEMPLATE_RELATIONS = NO
+
+# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT
+# tags are set to YES then doxygen will generate a graph for each documented
+# file showing the direct and indirect include dependencies of the file with
+# other documented files.
+
+INCLUDE_GRAPH = YES
+
+# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and
+# HAVE_DOT tags are set to YES then doxygen will generate a graph for each
+# documented header file showing the documented files that directly or
+# indirectly include this file.
+
+INCLUDED_BY_GRAPH = YES
+
+# If the CALL_GRAPH and HAVE_DOT options are set to YES then
+# doxygen will generate a call dependency graph for every global function
+# or class method. Note that enabling this option will significantly increase
+# the time of a run. So in most cases it will be better to enable call graphs
+# for selected functions only using the \callgraph command.
+
+CALL_GRAPH = NO
+
+# If the CALLER_GRAPH and HAVE_DOT tags are set to YES then
+# doxygen will generate a caller dependency graph for every global function
+# or class method. Note that enabling this option will significantly increase
+# the time of a run. So in most cases it will be better to enable caller
+# graphs for selected functions only using the \callergraph command.
+
+CALLER_GRAPH = NO
+
+# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen
+# will generate a graphical hierarchy of all classes instead of a textual one.
+
+GRAPHICAL_HIERARCHY = YES
+
+# If the DIRECTORY_GRAPH and HAVE_DOT tags are set to YES
+# then doxygen will show the dependencies a directory has on other directories
+# in a graphical way. The dependency relations are determined by the #include
+# relations between the files in the directories.
+
+DIRECTORY_GRAPH = YES
+
+# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images
+# generated by dot. Possible values are svg, png, jpg, or gif.
+# If left blank png will be used. If you choose svg you need to set
+# HTML_FILE_EXTENSION to xhtml in order to make the SVG files
+# visible in IE 9+ (other browsers do not have this requirement).
+
+DOT_IMAGE_FORMAT = png
+
+# If DOT_IMAGE_FORMAT is set to svg, then this option can be set to YES to
+# enable generation of interactive SVG images that allow zooming and panning.
+# Note that this requires a modern browser other than Internet Explorer.
+# Tested and working are Firefox, Chrome, Safari, and Opera. For IE 9+ you
+# need to set HTML_FILE_EXTENSION to xhtml in order to make the SVG files
+# visible. Older versions of IE do not have SVG support.
+
+INTERACTIVE_SVG = NO
+
+# The tag DOT_PATH can be used to specify the path where the dot tool can be
+# found. If left blank, it is assumed the dot tool can be found in the path.
+
+DOT_PATH =
+
+# The DOTFILE_DIRS tag can be used to specify one or more directories that
+# contain dot files that are included in the documentation (see the
+# \dotfile command).
+
+DOTFILE_DIRS =
+
+# The MSCFILE_DIRS tag can be used to specify one or more directories that
+# contain msc files that are included in the documentation (see the
+# \mscfile command).
+
+MSCFILE_DIRS =
+
+# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of
+# nodes that will be shown in the graph. If the number of nodes in a graph
+# becomes larger than this value, doxygen will truncate the graph, which is
+# visualized by representing a node as a red box. Note that doxygen if the
+# number of direct children of the root node in a graph is already larger than
+# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note
+# that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH.
+
+DOT_GRAPH_MAX_NODES = 50
+
+# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the
+# graphs generated by dot. A depth value of 3 means that only nodes reachable
+# from the root by following a path via at most 3 edges will be shown. Nodes
+# that lay further from the root node will be omitted. Note that setting this
+# option to 1 or 2 may greatly reduce the computation time needed for large
+# code bases. Also note that the size of a graph can be further restricted by
+# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction.
+
+MAX_DOT_GRAPH_DEPTH = 0
+
+# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent
+# background. This is disabled by default, because dot on Windows does not
+# seem to support this out of the box. Warning: Depending on the platform used,
+# enabling this option may lead to badly anti-aliased labels on the edges of
+# a graph (i.e. they become hard to read).
+
+DOT_TRANSPARENT = NO
+
+# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output
+# files in one run (i.e. multiple -o and -T options on the command line). This
+# makes dot run faster, but since only newer versions of dot (>1.8.10)
+# support this, this feature is disabled by default.
+
+DOT_MULTI_TARGETS = NO
+
+# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will
+# generate a legend page explaining the meaning of the various boxes and
+# arrows in the dot generated graphs.
+
+GENERATE_LEGEND = YES
+
+# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will
+# remove the intermediate dot files that are used to generate
+# the various graphs.
+
+DOT_CLEANUP = YES
diff --git a/library/doxygen/DoxygenLayout.xml b/library/doxygen/DoxygenLayout.xml
new file mode 100644
index 0000000..b1040f1
--- /dev/null
+++ b/library/doxygen/DoxygenLayout.xml
@@ -0,0 +1,207 @@
+<doxygenlayout version="1.0">
+ <!-- Generated by doxygen 1.8.5 -->
+ <!-- Navigation index tabs for HTML output -->
+ <navindex>
+ <tab type="mainpage" visible="yes" title="Title Page"/>
+ <tab type="usergroup" title="Licensing">
+ <tab type="user" url="@ref mipi_syst_license_page" visible="yes" title="SyS-T Source Code License"/>
+ </tab>
+ <tab type="usergroup" title="User Manual">
+ <tab type="user" url="@ref mipi_syst_api_page" visible="yes" title="API Quick-Reference"/>
+ <tab type="user" url="@ref mipi_syst_api_overview" visible="yes" title="API Overview"/>
+ <tab type="user" url="@ref mipi_syst_building_page" visible="yes" title="Building SyS-T"/>
+ <tab type="user" url="@ref mipi_syst_adapting_page" visible="yes" title="Adapting SyS-T"/>
+ <tab type="user" url="@ref mipi_syst_decoder_protocol" visible="yes" title="Data Protocol"/>
+ <tab type="user" url="@ref mipi_syst_example_page" visible="yes" title="Instrumentation API Examples"/>
+ <tab type="user" url="@ref mipi_syst_catgen_page" visible="yes" title="Automated Catalog Generation"/>
+ <tab type="user" url="@ref mipi_syst_printer_page" visible="yes" title="Decoding and Printing the Data Protocol"/>
+ </tab>
+ <tab type="pages" visible="no" title="" intro=""/>
+ <tab type="modules" visible="yes" title="API Reference" intro="SyS-T API reference and configuration details:"/>
+ <tab type="namespaces" visible="yes" title="">
+ <tab type="namespacelist" visible="yes" title="" intro=""/>
+ <tab type="namespacemembers" visible="yes" title="" intro=""/>
+ </tab>
+ <tab type="classes" visible="yes" title="">
+ <tab type="classlist" visible="yes" title="" intro=""/>
+ <tab type="classindex" visible="$ALPHABETICAL_INDEX" title=""/>
+ <tab type="hierarchy" visible="yes" title="" intro=""/>
+ <tab type="classmembers" visible="yes" title="" intro=""/>
+ </tab>
+ <tab type="files" visible="yes" title="Source Cross Reference">
+ <tab type="filelist" visible="yes" title="" intro=""/>
+ <tab type="globals" visible="yes" title="" intro=""/>
+ </tab>
+ <tab type="examples" visible="yes" title="" intro=""/>
+ </navindex>
+
+ <!-- Layout definition for a class page -->
+ <class>
+ <briefdescription visible="yes"/>
+ <includes visible="$SHOW_INCLUDE_FILES"/>
+ <inheritancegraph visible="$CLASS_GRAPH"/>
+ <collaborationgraph visible="$COLLABORATION_GRAPH"/>
+ <memberdecl>
+ <nestedclasses visible="yes" title=""/>
+ <publictypes title=""/>
+ <services title=""/>
+ <interfaces title=""/>
+ <publicslots title=""/>
+ <signals title=""/>
+ <publicmethods title=""/>
+ <publicstaticmethods title=""/>
+ <publicattributes title=""/>
+ <publicstaticattributes title=""/>
+ <protectedtypes title=""/>
+ <protectedslots title=""/>
+ <protectedmethods title=""/>
+ <protectedstaticmethods title=""/>
+ <protectedattributes title=""/>
+ <protectedstaticattributes title=""/>
+ <packagetypes title=""/>
+ <packagemethods title=""/>
+ <packagestaticmethods title=""/>
+ <packageattributes title=""/>
+ <packagestaticattributes title=""/>
+ <properties title=""/>
+ <events title=""/>
+ <privatetypes title=""/>
+ <privateslots title=""/>
+ <privatemethods title=""/>
+ <privatestaticmethods title=""/>
+ <privateattributes title=""/>
+ <privatestaticattributes title=""/>
+ <friends title=""/>
+ <related title="" subtitle=""/>
+ <membergroups visible="yes"/>
+ </memberdecl>
+ <detaileddescription title=""/>
+ <memberdef>
+ <inlineclasses title=""/>
+ <typedefs title=""/>
+ <enums title=""/>
+ <services title=""/>
+ <interfaces title=""/>
+ <constructors title=""/>
+ <functions title=""/>
+ <related title=""/>
+ <variables title=""/>
+ <properties title=""/>
+ <events title=""/>
+ </memberdef>
+ <allmemberslink visible="yes"/>
+ <usedfiles visible="$SHOW_USED_FILES"/>
+ <authorsection visible="yes"/>
+ </class>
+
+ <!-- Layout definition for a namespace page -->
+ <namespace>
+ <briefdescription visible="yes"/>
+ <memberdecl>
+ <nestednamespaces visible="yes" title=""/>
+ <constantgroups visible="yes" title=""/>
+ <classes visible="yes" title=""/>
+ <typedefs title=""/>
+ <enums title=""/>
+ <functions title=""/>
+ <variables title=""/>
+ <membergroups visible="yes"/>
+ </memberdecl>
+ <detaileddescription title=""/>
+ <memberdef>
+ <inlineclasses title=""/>
+ <typedefs title=""/>
+ <enums title=""/>
+ <functions title=""/>
+ <variables title=""/>
+ </memberdef>
+ <authorsection visible="yes"/>
+ </namespace>
+
+ <!-- Layout definition for a file page -->
+ <file>
+ <briefdescription visible="yes"/>
+ <includes visible="$SHOW_INCLUDE_FILES"/>
+ <includegraph visible="$INCLUDE_GRAPH"/>
+ <includedbygraph visible="$INCLUDED_BY_GRAPH"/>
+ <sourcelink visible="yes"/>
+ <memberdecl>
+ <classes visible="yes" title=""/>
+ <namespaces visible="yes" title=""/>
+ <constantgroups visible="yes" title=""/>
+ <defines title=""/>
+ <typedefs title=""/>
+ <enums title=""/>
+ <functions title=""/>
+ <variables title=""/>
+ <membergroups visible="yes"/>
+ </memberdecl>
+ <detaileddescription title=""/>
+ <memberdef>
+ <inlineclasses title=""/>
+ <defines title=""/>
+ <typedefs title=""/>
+ <enums title=""/>
+ <functions title=""/>
+ <variables title=""/>
+ </memberdef>
+ <authorsection/>
+ </file>
+
+ <!-- Layout definition for a group page -->
+ <group>
+ <briefdescription visible="yes"/>
+ <groupgraph visible="$GROUP_GRAPHS"/>
+ <memberdecl>
+ <nestedgroups visible="yes" title=""/>
+ <dirs visible="yes" title=""/>
+ <files visible="yes" title=""/>
+ <namespaces visible="yes" title=""/>
+ <classes visible="yes" title=""/>
+ <defines title=""/>
+ <typedefs title=""/>
+ <enums title=""/>
+ <enumvalues title=""/>
+ <functions title=""/>
+ <variables title=""/>
+ <signals title=""/>
+ <publicslots title=""/>
+ <protectedslots title=""/>
+ <privateslots title=""/>
+ <events title=""/>
+ <properties title=""/>
+ <friends title=""/>
+ <membergroups visible="yes"/>
+ </memberdecl>
+ <detaileddescription title=""/>
+ <memberdef>
+ <pagedocs/>
+ <inlineclasses title=""/>
+ <defines title=""/>
+ <typedefs title=""/>
+ <enums title=""/>
+ <enumvalues title=""/>
+ <functions title=""/>
+ <variables title=""/>
+ <signals title=""/>
+ <publicslots title=""/>
+ <protectedslots title=""/>
+ <privateslots title=""/>
+ <events title=""/>
+ <properties title=""/>
+ <friends title=""/>
+ </memberdef>
+ <authorsection visible="yes"/>
+ </group>
+
+ <!-- Layout definition for a directory page -->
+ <directory>
+ <briefdescription visible="yes"/>
+ <directorygraph visible="yes"/>
+ <memberdecl>
+ <dirs visible="yes"/>
+ <files visible="yes"/>
+ </memberdecl>
+ <detaileddescription title=""/>
+ </directory>
+</doxygenlayout>
diff --git a/library/doxygen/Example.md b/library/doxygen/Example.md
new file mode 100644
index 0000000..ac32783
--- /dev/null
+++ b/library/doxygen/Example.md
@@ -0,0 +1,68 @@
+\page mipi_syst_example_page Instrumentation API Examples
+
+[TOC]
+
+SyS-T ships with various example applications that show how to use
+instrumentation calls. The examples are stored inside the examples
+directory of the distribution file set. A CMake script is provided for
+building the examples on CMake supported platforms. To build the
+examples without CMake, add the SyS-T include directory to the list of
+include directories for the compiler being used and tell the linker
+to link against the SyS-T library.
+
+Example for building a SyS-T example on Linux:
+
+ $ export MIPI_SYST_SDK=<enter path to SyS-T-SDK here>
+ $ gcc -o hello hello.c -I$MIPI_SYST_SDK/include -L$MIPI_SYST_SDK/lib -lmipi_syst
+
+
+SyS-T "hello world" Style Application
+===========================================================================
+This example is stored in the examples/hello directory of the SyS-T
+distribution.
+
+Example source code:
+
+\code{.c}
+#include "mipi_syst.h" /* SyS-T definitions */
+
+
+/* Define origin used by this example as the message client ID
+ */
+static const struct mipi_syst_origin origin =
+MIPI_SYST_GEN_ORIGIN_GUID(0x494E5443, 0xA2AE, 0x4C70, 0xABB5, 0xD1A79E9CEA35, 1);
+
+int main(int argc, char* argv[])
+{
+ struct mipi_syst_handle* systh;
+
+ /* Initialize a SyS-T output handle structure
+ */
+ systh = MIPI_SYST_ALLOC_HANDLE( &origin );
+
+ /* Send a string message with payload "Hello World!"
+ */
+ MIPI_SYST_DEBUG(systh, MIPI_SYST_SEVERITY_INFO, "Hello world!" , /*length*/ 12);
+
+ /* Release any resources associated with this SyS-T handle.
+ */
+ MIPI_SYST_DELETE_HANDLE(systh);
+
+ return 0;
+}
+\endcode
+
+The example will produce output like that below if the ``example`` platform is used.
+It shows which MIPI STP protocol packets are created to transport the
+SYS-T message data.
+
+```
+STP Protocol Output:
+ 0 <D32TS> 01800242 // SyS-T header
+ 1 <D64> 704caea243544e49 // GUID part #1
+ 2 <D64> 35ea9c9ea7d1b5ab // GUID part #2
+ 3 <D64> 6f77206f6c6c6548 // Payload part #1
+ 4 <D32> 21646c72 // Payload part #2
+ 5 <FLAG> // end of record
+SYS-T RAW DATA: 42108001494E5443A2AE4C70ABB5D1A79E9CEA3548656C6C6F20776F726C6421
+```
diff --git a/library/doxygen/License.md b/library/doxygen/License.md
new file mode 100644
index 0000000..4856f60
--- /dev/null
+++ b/library/doxygen/License.md
@@ -0,0 +1,34 @@
+SyS-T Source Code License {#mipi_syst_license_page}
+=========================================================================
+
+ Copyright (c) 2018, MIPI Alliance, Inc.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+ * Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
diff --git a/library/doxygen/Printer.md b/library/doxygen/Printer.md
new file mode 100644
index 0000000..647ca7f
--- /dev/null
+++ b/library/doxygen/Printer.md
@@ -0,0 +1,103 @@
+\page mipi_syst_printer_page Instrumentation API Examples
+
+[TOC]
+
+SyS-T Protocol Printer {#mipi_syst_printer}
+==============================================================================
+The project includes a SyS-T data protocol pretty printer tool
+in the printer subdirectory. The printer is a standalone application
+written in C++11. It supports reading the output from instrumented
+applications using the example platform from the SyS-T
+instrumentation library.
+The tool scans the output for lines starting with ``SYS-T RAW DATA:`` and
+converts the hex dumps into binary data for decoding. The printer can
+be easily adapted to real trace data transports by replacing the code
+in ``printer/src/mipi_syst_main.cpp`` with an appropriate data reader.
+
+Building the Printer
+------------------------------------------------------------------------------
+The following transcript shows how to build the printer on a Linux console.
+The printer is a standalone application and independent from the
+instrumentation library or example projects.
+
+```
+$ cmake ../../sys-t/printer
+-- The C compiler identification is GNU 5.4.0
+-- The CXX compiler identification is GNU 5.4.0
+-- Check for working C compiler: /usr/bin/cc
+-- Check for working C compiler: /usr/bin/cc -- works
+-- Detecting C compiler ABI info
+-- Detecting C compiler ABI info - done
+-- Detecting C compile features
+-- Detecting C compile features - done
+-- Check for working CXX compiler: /usr/bin/c++
+-- Check for working CXX compiler: /usr/bin/c++ -- works
+-- Detecting CXX compiler ABI info
+-- Detecting CXX compiler ABI info - done
+-- Detecting CXX compile features
+-- Detecting CXX compile features - done
+-- Configuring done
+-- Generating done
+-- Build files have been written to: /users/mipi/prj/syst_build/printer
+
+$ make
+Scanning dependencies of target systprint
+[ 14%] Building CXX object CMakeFiles/systprint.dir/src/mipi_syst_main.cpp.o
+[ 28%] Building CXX object CMakeFiles/systprint.dir/src/mipi_syst_collateral.cpp.o
+[ 42%] Building CXX object CMakeFiles/systprint.dir/src/mipi_syst_printf.cpp.o
+[ 57%] Building CXX object CMakeFiles/systprint.dir/src/mipi_syst_decode.cpp.o
+[ 71%] Building CXX object CMakeFiles/systprint.dir/src/mipi_syst_message.cpp.o
+[100%] Linking CXX executable systprint
+[100%] Built target systprint
+```
+
+Testing the Printer
+------------------------------------------------------------------------------
+The printer project comes with a self test feature. The ``printer/test``
+directory contains reference input and output files collected using the
+``example/client`` example application. To run the printer test use the
+following command (or the cmake test driver command ``ctest``) in the
+printer build directory:
+
+```
+$ make test
+Running tests...
+Test project /users/mipi/prj/syst_build/printer
+ Start 1: print_client_example
+1/3 Test #1: print_client_example ............... Passed 0.01 sec
+ Start 2: diff_output_with_32bit_reference
+2/3 Test #2: diff_output_with_32bit_reference ... Passed 0.04 sec
+ Start 3: diff_output_with_64bit_reference
+3/3 Test #3: diff_output_with_64bit_reference ... Passed 0.03 sec
+
+100% tests passed, 0 tests failed out of 3
+
+Total Test time (real) = 0.11 sec
+```
+
+To actually see the printer output, run the printer directly using command
+line arguments, or indirectly through the test driver in verbose mode
+(```ctest --verbose```). The following transcript shows how to call the
+printer directly:
+
+```
+$systprint --short_guid {494E5443-8A9C-4014-A65A-2F36A36D96E4} --collateral ../../sys-t/printer/test/collateral.xml ../../sys-t/printer/test/input_client64.txt
+
+Decode Status,Payload,Type,Severity,Origin,Unit,Message TimeStamp,Context TimeStamp,Location,Raw Length,Checksum,Collateral
+OK,"0x0000000000010000 version banner string",BUILD:LONG,MAX,example,1,0x00054A4B376A70E9,0x0000000000000000,,62,0x4DDEF5B9,../../sys-t/printer/test/collateral.xml
+OK,"SyS-T Library version 1.0.0",CATALOG:ID32P64,INFO,example,1,0x00054A4B376A70E9,0x0000000000000001,./systclient.c:64,48,0x7A34B527,../../sys-t/printer/test/collateral.xml
+OK,"+-------------------------------------------------------+",CATALOG:ID32P64,INFO,example,1,0x00054A4B376A70E9,0x0000000000000002,./othersource.c:40,36,0x7CBB44B6,../../sys-t/printer/test/collateral.xml
+OK,"| ____ _____ _______ |",CATALOG:ID32P64,INFO,example,1,0x00054A4B376A70E9,0x0000000000000003,./othersource.c:41,36,0x2761EBF4,../../sys-t/printer/test/collateral.xml
+OK,"| / ___| / ____| |__ __| |",CATALOG:ID32P64,INFO,example,1,0x00054A4B376A70E9,0x0000000000000004,./othersource.c:42,36,0x55C63EAB,../../sys-t/printer/test/collateral.xml
+OK,"| | |___ __ _| |___ _____| | |",CATALOG:ID32P64,INFO,example,1,0x00054A4B376A70E9,0x0000000000000005,./othersource.c:43,36,0xE3885FB4,../../sys-t/printer/test/collateral.xml
+OK,"| \___ \| | | |\___ \_____| | |",CATALOG:ID32P64,INFO,example,1,0x00054A4B376A70E9,0x0000000000000006,./othersource.c:44,36,0x4C13A7F5,../../sys-t/printer/test/collateral.xml
+OK,"| ____| | |_| |____| | | | |",CATALOG:ID32P64,INFO,example,1,0x00054A4B376A70E9,0x0000000000000007,./othersource.c:45,36,0xE2C8BDC2,../../sys-t/printer/test/collateral.xml
+OK,"| |_____/ \__| |_____/ |_| |",CATALOG:ID32P64,INFO,example,1,0x00054A4B376A70E9,0x0000000000000008,./othersource.c:46,36,0xD0734297,../../sys-t/printer/test/collateral.xml
+OK,"| _/ / |",CATALOG:ID32P64,INFO,example,1,0x00054A4B376A70E9,0x0000000000000009,./othersource.c:47,36,0x6D704426,../../sys-t/printer/test/collateral.xml
+OK,"| |__/ |",CATALOG:ID32P64,INFO,example,1,0x00054A4B376A70E9,0x000000000000000A,./othersource.c:48,36,0x0A8FD609,../../sys-t/printer/test/collateral.xml
+OK,"+-------------------------------------------------------+",CATALOG:ID32P64,INFO,example,1,0x00054A4B376A70E9,0x000000000000000B,./othersource.c:49,36,0x1E99CD8F,../../sys-t/printer/test/collateral.xml
+OK,"| catalog Format | Printed Result |",CATALOG:ID32P64,INFO,example,1,0x00054A4B376A70E9,0x000000000000000C,./othersource.c:231,36,0xA17B5C1C,../../sys-t/printer/test/collateral.xml
+OK,"|---------------------------------strings---------------|",CATALOG:ID32P64,INFO,example,1,0x00054A4B376A74D1,0x000000000000000D,./othersource.c:232,36,0x11A215E6,../../sys-t/printer/test
+(...)
+$
+``` \ No newline at end of file
diff --git a/library/doxygen/Protocol.md b/library/doxygen/Protocol.md
new file mode 100644
index 0000000..498e9e9
--- /dev/null
+++ b/library/doxygen/Protocol.md
@@ -0,0 +1,318 @@
+\page mipi_syst_decoder_protocol SyS-T Data Protocol
+
+[TOC]
+
+Overview {#syst_decoder_prot_overview}
+==============================================================================
+The SyS-T Data Protocol is a byte sequence that represents a list of variable
+length SyS-T Messages without additional padding bytes between them. The
+SyS-T Data Protocol is intended for transmission over a lower level transport
+protocol. The lower level protocol is expected to provide indicators that
+identify the start and end of a SyS-T Message. One example of a lower level
+transport protocol is the
+[MIPI System Trace Protocol](http://mipi.org/specifications/debug#STP) (STP).
+SyS-T includes message frame definitions that provides time stamping
+and framing of a SyS-T Message based on STP packet types. The usage of
+other lower level transports protocols is possible by adapting the message
+writer or low level trace output functions from the platform level code.
+
+The SyS-T Data Protocol includes various optional fields for ensuring data
+integrity or time stamping. Depending on the capabilities of the lower level
+protocol, these SyS-T Message fields may be redundant and so be omitted to
+save trace bandwidth.
+
+
+Data Field Byte Ordering {#syst_decoder_prot_byteorder}
+------------------------------------------------------------------------------
+All numeric data fields of the SyS-T Data Protocol follow little-endian byte
+ordering where less significant bytes precede more significant ones. Only the
+optional 128-bit Guid field is an exception to this rule. Its byte odering
+follows RFC 4122 which defines Guid fields following big-endian ordering.
+
+MIPI STPv2 Protocol Encoding {#syst_decoder_prot_format}
+------------------------------------------------------------------------------
+In order to timestamp packets and to give an indication of a valid SyS-T
+Message beginning and end, each SyS-T Message starts with a
+TIMESTAMPED STP data packet and ends with either a FLAG packet or a
+MARKED data packet.
+For environments that can only afford light weight value style traces, a
+short message encoding is also available. This encoding uses a single IO to
+generate an STP packet that is both MARKED and TIMESTAMPED. The following
+table shows the supported STP packet sequences for a SyS-T Message. Dn means
+either a D8, D16, D32 or D64 data packet.
+The Dn* stands for a sequence of 0-x repeated Dn packets (of any sizes). Dn
+packets with a smaller payload size can be combined into a Dn with a larger
+size to reduce the number of IO's. For example, two D16 IO's can be combined
+into a single D32 as long as the resulting binary payload data produces the
+same result when being copied into memory.
+
+ MIPI STPv2 Sequences | Description
+---------------------------|--------------------------------------------
+DnMTS |Single IO short message with Dn sized payload. This message is intended for numeric value only tracing.
+DnTS-Dn*-DnM |Arbitrary length sequence starting with a time stamped data value and followed by a sequence of zero or more payload data values. The last data value is MARKED to indicate the end of the sequence.
+DnTS-Dn*-FLAG |Arbitrary length sequence starting with time stamped data value and followed by a sequence of zero or more payload data values. The sequence is terminated with a FLAG packet.
+
+The reason for supporting sequences terminated with either a MARKED or a
+FLAG packet is to simplify the implementation for SW and HW trace generators.
+HW based generates may prefer the MARKED method to save additional logic for
+issuing a FLAG. SW trace generators may prefer the FLAG variant as it
+avoids special handling for the last Dn.
+
+
+
+Message Anatomy {#syst_decoder_prot_anatomy}
+------------------------------------------------------------------------------
+A SyS-T Message is a byte sequence that starts with a 32-bit header, followed by
+mandatory and optional data attributes. The following picture shows the layout
+of a SyS-T Message with all fields present.
+
+![SyS-T Message Anatomy](mipi_sys_t_message_anatomy.png)
+
+
+The message fields are:
+ - A 32-bit [header] (#syst_decoder_prot_header) describing the message type and content
+ - An optional 128-bit wide [GUID] (#syst_decoder_prot_guid) identifying the message originating software module.
+ - An optional [location record] (#syst_decoder_prot_location)
+ - An optional [payload length] (#syst_decoder_prot_length)
+ - An optional [SyS-T timestamp] (#syst_prot_timestamp)
+ - API specific [payload data] (#syst_decoder_prot_payload) from zero up to 64 Kbytes.
+ - An optional CRC-32C [checksum] (#syst_decoder_prot_checksum)
+
+Attributes are stored one after the other without any additional alignment bytes.
+
+SyS-T Protocol Overhead {#syst_decoder_prot_overhead}
+------------------------------------------------------------------------------
+The typical data overhead of the SyS-T Data Protocol is 4 bytes (32 bits) per
+message unless optional elements like CRC32 checksums are enabled.
+These 4 bytes come from the 32-bit message header at the beginning
+of each message.
+
+In addition to the typical usage as a message trace, SyS-T protocol offers also
+the following protocol types for small value or bulk data transfer support:
+
+ - Single value onle traces can utilize SHORT messages. These provide a
+ zero data overhead method on STP hardware using single DnMTS
+ packets to hold the data.
+ - SyS-T raw messages can be used to stream up to 64 Kbytes of payload data
+ in a single SyS-T Message to tunnel another Data Protocol through SyS-T.
+
+
+Data Protocol Details {#syst_decoder_prot_details}
+==============================================================================
+
+Header {#syst_decoder_prot_header}
+------------------------------------------------------------------------------
+A SyS-T header is 32-bit value using the following layout:
+
+![SyS-T Message header](mipi_sys_t_event_header.png)
+
+The meaning of the individual fields is explained in the table below.
+
+Field |Bits |Description
+--------|------|-----------------------------------------------------
+RES31 |31..31|Reserved, Must be set to zero.
+RES30 |30..30|Reserved, Must be set to zero.
+SUBTYPE |24..29|Additional message type information that depends on TYPE.
+GUID |23..23|Indicates whether the optional GUID is present
+ORIGIN |12..22|message origin and/or unit information
+TS |11..11|Indicates whether the optional message time stamp is present.
+CHK |10..10|Indicates whether the optional Checksum is present at the end.
+LEN |9..9 |Indicates whether the optional Payload length is present.
+LOC |8..8 |Indicates whether the optional Location Record field is present.
+RES7 |7..7 |Reserved, Must be set to zero.
+SEVERITY|4..6 |Severity level of the message.
+TYPE |0..3 |Message type
+
+C-Definition (struct mipi_syst_msg_tag):
+\code{.cpp}
+struct mipi_syst_msg_tag {
+ mipi_syst_u32 et_type:4; /**< SyS-T message type ID */
+ mipi_syst_u32 et_severity:3; /**< severity level of message */
+ mipi_syst_u32 et_res7:1; /**< reserved for future use */
+ mipi_syst_u32 et_location:1; /**< indicate location information */
+ mipi_syst_u32 et_length:1; /**< indicate variable length message */
+ mipi_syst_u32 et_chksum:1; /**< indicate 32bit CRC */
+ mipi_syst_u32 et_timestamp:1;/**< indicate 64 bit timestamp */
+ mipi_syst_u32 et_modunit:11; /**< unit for GUID or module:unit */
+ mipi_syst_u32 et_guid:1; /**< 128 bit GUID present */
+ mipi_syst_u32 et_subtype:6; /**< type dependent sub category */
+ mipi_syst_u32 et_res30:1; /**< reserved for future use */
+ mipi_syst_u32 et_res31:1; /**< reserved for future use */
+};
+\endcode
+
+Severity {#syst_decoder_prot_header_severity}
+------------------------------------------------------------------------------
+
+An optional severity level is assigned to a SyS-T Message to distinguish
+informational messages from warnings and errors. Severity levels are used
+for message classification and filtering. The severity levels are ordered
+by ascending numerical values.
+
+Severity |Value | Description
+---------------------------|:-----:|----------------------------------------------
+MIPI_SYST_SEVERITY_MAX | 0 |No assigned severity. This is used for messages that should bypass filtering. This is typically used with RAW message that tunnel other protocols over SyS-T Messages.
+MIPI_SYST_SEVERITY_FATAL | 1 |Indicates a fatal level message. Such messages provide information about a failure condition from which the system cannot recover or cannot continue to function properly.
+MIPI_SYST_SEVERITY_ERROR | 2 |Indicates an error level message. Such messages provide information about an operation failure or inappropriate action that the system is not designed to handle. Errors may or may not cause a feature or system to subsequently fail.
+MIPI_SYST_SEVERITY_WARNING | 3 |Indicates a warning level message. Such messages provide information about an undesirable, but recoverable situation that may result in problems if no actions are taken. Warning message information can be utilized to adaptively adjust system operations to avoid failures or to improve performance based on the use case.
+MIPI_SYST_SEVERITY_INFO | 4 |Indicates an information level message. Such messages provide component specific information about operational actions and progress. They are intended for component specialists to analyze system behavior.
+MIPI_SYST_SEVERITY_USER1 | 5 |Indicates a first user-defined message level for information with a higher verbosity than MIPI_SYST_SEVERITY_INFO. They are intended for component specialists to analyze system behavior in greater detail.
+MIPI_SYST_SEVERITY_USER2 | 6 |Indicates a second user-defined level for informational messages with a higher verbosity than MIPI_SYST_SEVERITY_USER1. They are intended for component specialists to analyze system behavior in even greater detail.
+MIPI_SYST_SEVERITY_DEBUG | 7 |Indicate a debug level message. Such messages provide information that is intended for system developers for detailed analysis and debug of system behavior. It provides the finest granularity of trace information and is typically used during verification and debug phases.
+
+
+Message Origin or GUID {#syst_decoder_prot_guid}
+------------------------------------------------------------------------------
+A SyS-T Message may contain a 128-bit wide GUID to identify the instrumented
+software module in a unique way. A GUID is used if the guid bit in the header
+is set. Otherwise the header origin field defines the message origin,
+saving the bandwidth and space that would be used for the additional GUID bits.
+
+Omitting the GUID is possible when the origin field or transport layer
+information sufficiently identifies the trace emitting source. An example
+for transport layer information are the Master and Channel pairs for transports
+using MIPI System Trace Protocol. If the message was sent from a dynamically
+assigned master and channel pool, then these values are not sufficient and a
+GUID must be used to describe the origin. If the handle got initialized using
+the #MIPI_SYST_SET_HANDLE_GUID_UNIT API then the GUID is emitted directly after
+the header in each message.
+Note:
+The GUID structure follows https://www.ietf.org/rfc/rfc4122.txt.
+
+Location {#syst_decoder_prot_location}
+------------------------------------------------------------------------------
+
+A SyS-T Message can contain location information describing the position of
+its instrumentation call either as an instruction pointer address or as a
+"file:line" ID pair. This location information is generated if one of the
+API variants with the `_LOCADDR`, `_LOC16` or `_LOC32` suffix in the name is
+used.
+
+### C Definition of Location ###
+
+\code{.cpp}
+/**
+ * Specify format of used message location information that is added to the
+ * message data if tag.et_location == 1
+ */
+struct mipi_syst_msglocation {
+ /** Message format
+ * 0 = 16-Bit file and 16-Bit line (total: 32-bit)
+ * 1 = 32-Bit file and 32-Bit line (total: 64-bit)
+ * 2 = 32-bit code address
+ * 3 = 64-bit code address
+ */
+ mipi_syst_u8 el_format;
+ union {
+ union mipi_syst_msglocation32 loc32; /**< data for 32-bit variant */
+ union mipi_syst_msglocation64 loc64; /**< data for 64-bit variant */
+ } el_u;
+};
+
+
+/**
+ * Location information inside a message (32-bit format)
+ * Location is either the source position of the instrumentation call, or
+ * the call instruction pointer value.
+ */
+union mipi_syst_msglocation32 {
+ struct {
+ mipi_syst_u16 etls_fileID; /**< ID of instrumented file */
+ mipi_syst_u16 etls_lineNo; /**< line number in file */
+ } etls_source_location;
+ mipi_syst_u32 etls_code_location:32;
+ /**< instruction pointer value */
+};
+
+/**
+ * Location information inside a message (64-bit format)
+ * Location is either the source position of the instrumentation call, or
+ * the call instruction pointer value.
+ */
+union mipi_syst_msglocation64 {
+ struct {
+ mipi_syst_u32 etls_fileID; /**< ID of instrumented file */
+ mipi_syst_u32 etls_lineNo; /**< line number in file */
+ } etls_source_location;
+ mipi_syst_u64 etls_code_location:64;
+ /**< instruction pointer value */
+};
+
+\endcode
+
+Length {#syst_decoder_prot_length}
+------------------------------------------------------------------------------
+
+The location information is followed by a 16-bit length field if the header bit
+et_length is set. This length indicates the number of message payload bytes that
+follow.
+
+### C Definition of Length ###
+
+\code{.cpp}
+ syst_u16_t ed_len;
+\endcode
+
+
+Message Payload {#syst_decoder_prot_payload}
+------------------------------------------------------------------------------
+A SyS-T Message can contain a type specific payload of up to 64 Kbytes. The payload
+appears after the optional message fields, but before the optional checksum.
+
+Checksum {#syst_decoder_prot_checksum}
+------------------------------------------------------------------------------
+A SyS-T Message can end with a 32-bit CRC-32C checksum calculated over all of
+the message bytes, excluding the checksum value itself. The CRC generation is
+a per SyS-T handle choice. It is enabled or disabled by the
+#MIPI_SYST_ENABLE_HANDLE_CHECKSUM API. The default is disabled.
+
+Protocol Timestamp Handling {#syst_prot_timestamp}
+==============================================================================
+The default usage for the SyS-T protocol is to rely on a transport timestamp
+generated by, for example, trace arbiter hardware or a trace creating driver.
+In this case, a SyS-T Message does not carry its own timestamp information. In
+scenarios where no hardware time stamp exists, or this timestamp is not
+accurate, SyS-T Messages can include their own time stamp. An example scenario
+for this is when messages are buffered by a trace source before they are sent.
+In this case, the hardware time stamp will reflect a later message submission
+time, not the message creation time, which is typically what is desired.
+
+Clock Synchronization {#syst_prot_timestamp_sync}
+------------------------------------------------------------------------------
+The SyS-T protocol facilitates correlating messages that use a time stamp of
+their own with the trace timestamp of the underlying transport protocol. This
+correlation is done using a synchronisation message, which contains both the
+transport protocol timestamp and the source clock value and frequency from
+the SyS-T message clock.
+
+These data values build a time correlation point between the transport
+clock and the SyS-T message clock. If MIPI STP is the transport protocol then
+the D32TS header time stamp will define the transport time stamp. The message
+is expected to be sent periodically from any source that requires time
+synchronisation with the transport protocol. Host side tooling needs at least
+one of these records in a trace stream to do the time correlation. Typically
+these synchronization messages are sent either periodically, such as once
+every second, or at the beginning of trace emitting phases.
+
+
+SyS-T Messages Types {#syst_decoder_prot_msg_types}
+==============================================================================
+This chapter shows the major SyS-T message types.
+The type can be one of the following (See [C Definition] (@ref mipi_syst_msgtype) ):
+
+
+
+Value |SyS-T Name |Description
+--------|-------------------------|-------------------------------------
+0 |MIPI_SYST_TYPE_BUILD |SyS-T client build version information
+1 |MIPI_SYST_TYPE_SHORT32 |32 Bit message with user defined payload value
+2 |MIPI_SYST_TYPE_STRING |Text message output for UTF-8 encoded strings
+3 |MIPI_SYST_TYPE_CATALOG |Catalog message output support formatting string with parameters
+4,5 |RESERVED-FOR-FUTURE-USE |Reserved
+6 |MIPI_SYST_TYPE_RAW |Raw binary payload
+7 |MIPI_SYST_TYPE_SHORT64 |64 Bit message with user defined payload value
+8 |MIPI_SYST_TYPE_CLOCK |Timing synchronization
+9..15 |RESERVED-FOR-FUTURE-USE |Reserved
+
+For further information on the different message type contents, read chapter 8
+in the MIPI Alliance Specification for System Software-Trace (SyS-T).
diff --git a/library/doxygen/Reference.md b/library/doxygen/Reference.md
new file mode 100644
index 0000000..f6d02e1
--- /dev/null
+++ b/library/doxygen/Reference.md
@@ -0,0 +1,347 @@
+API Quick-Reference {#mipi_syst_api_page}
+======================================
+This page provides a quick reference for the SyS-T API macros. A
+detailed description of these APIs and their their parameter
+definitions is available by clicking on the individual API names.
+
+## State lifetime handling macros ##
+<table border=1 cols="3" align="left" width="100%">
+ <tr>
+ <td width="30%"><b>API Define</b></td>
+ <td><b>Description</b></td>
+ </tr>
+ <tr>
+ <td style="white-space:nowrap">
+ MIPI_SYST_INIT(f,p)
+ </td>
+ <td>SyS-T global platform initialization using an internal shared state header
+ </td>
+ </tr>
+ <tr>
+ <td style="white-space:nowrap">
+ MIPI_SYST_INIT_STATE(s, f,p)
+ </td>
+ <td>SyS-T platform initialization using a provided state header structure
+ </td>
+ </tr>
+ <tr>
+ <td style="white-space:nowrap">
+ MIPI_SYST_SHUTDOWN()
+ </td>
+ <td>SyS-T global platform shutdown
+ </td>
+ </tr>
+ <tr>
+ <td style="white-space:nowrap">
+ MIPI_SYST_SHUTDOWN_STATE(s)
+ </td>
+ <td>SyS-T platform shutdown using a provided state header structure
+ </td>
+ </tr>
+ <tr>
+ <td style="white-space:nowrap">
+ MIPI_SYST_INIT_HANDLE(h,p)
+ </td>
+ <td>Initialize a static (not heap allocated) SyS-T handle.
+ </td>
+ </tr>
+ <tr>
+ <td style="white-space:nowrap">
+ MIPI_SYST_INIT_HANDLE_STATE(s, h,p)
+ </td>
+ <td>Initialize a static (not heap allocated) SyS-T handle using a provided state header structure.
+ </td>
+ </tr>
+ <tr>
+ <td style="white-space:nowrap">
+ MIPI_SYST_ALLOC_HANDLE(p)
+ </td>
+ <td>Initialize heap allocated SyS-T handle.
+ </td>
+ </tr>
+ <tr>
+ <td style="white-space:nowrap">
+ MIPI_SYST_ALLOC_HANDLE_STATE(s, p)
+ </td>
+ <td>Initialize heap allocated SyS-T handle using a provided state header structure.
+ </td>
+ </tr>
+ <tr>
+ <td style="white-space:nowrap">
+ MIPI_SYST_DELETE_HANDLE(p)
+ </td>
+ <td>Delete a SyS-T handle.
+ </td>
+ </tr>
+ <tr>
+ <td style="white-space:nowrap">
+ MIPI_SYST_SET_HANDLE_ORIGIN(h, o)
+ </td>
+ <td>Set the client origin for the given SyS-T handle based on a mipi_syst_origin structure.
+ </td>
+ </tr>
+ <tr>
+ <td style="white-space:nowrap">
+ MIPI_SYST_SET_HANDLE_MODULE_UNIT(h,m,u)
+ </td>
+ <td>Specify module and unit ID of the given SyS-T handle.
+ </td>
+ </tr>
+ <tr>
+ <td style="white-space:nowrap">
+ MIPI_SYST_SET_HANDLE_GUID_UNIT(h, g, u)
+ </td>
+ <td>Specify GUID and unit ID of the given SyS-T handle.
+ </td>
+ </tr>
+ <tr>
+ <td style="white-space:nowrap">
+ MIPI_SYST_ENABLE_HANDLE_LENGTH(h, v)
+ </td>
+ <td>Enable or disable length field generation over the given SyS-T handle.
+ </td>
+ </tr>
+
+ <tr>
+ <td style="white-space:nowrap">
+ MIPI_SYST_ENABLE_HANDLE_CHECKSUM(h,v)
+ </td>
+ <td>Enable or disable checksum generation over the given SyS-T handle.
+ </td>
+ </tr>
+ <tr>
+ <td style="white-space:nowrap">
+ MIPI_SYST_ENABLE_HANDLE_TIMESTAMP(h, v)
+ </td>
+ <td>Enable or disable additional protocol times tamps over the
+ given SyS-T handle.
+ </td>
+ </tr>
+</table>
+The availability of the macros #MIPI_SYST_ALLOC_HANDLE, #MIPI_SYST_SET_HANDLE_GUID_UNIT,
+and #MIPI_SYST_ENABLE_HANDLE_CHECKSUM depend on
+platform feature enable defines. Attempting to use an unsupported API will result
+in a compile error.
+<BR>
+
+## String emitting macros ##
+<table border=1 cols="3" align="left" width="100%">
+ <tr>
+ <td width="30%"><b>API Define</b></td>
+ <td><b>Description</b></td>
+ </tr>
+ <tr>
+ <td style="white-space:nowrap">
+ MIPI_SYST_DEBUG(svh,sev,str,len)<BR>
+ MIPI_SYST_DEBUG_LOC16(svh,sev,file,str,len)<BR>
+ MIPI_SYST_DEBUG_LOC32(svh,sev,file,str,len)<BR>
+ MIPI_SYST_DEBUG_LOCADDR(svh,sev,str,len)
+ </td>
+ <td>Send A UTF-8 character string with given severity and length<BR>
+ </td>
+ </tr>
+ <tr>
+ <td style="white-space:nowrap">
+ \link MIPI_SYST_PRINTF MIPI_SYST_PRINTF(svh,sev,str, ...)\endlink<BR>
+ \link MIPI_SYST_PRINTF_LOC16 MIPI_SYST_PRINTF_LOC16(svh,sev,file,str, ...)\endlink<BR>
+ \link MIPI_SYST_PRINTF_LOC32 MIPI_SYST_PRINTF_LOC32(svh,sev,file,str, ...)\endlink<BR>
+ \link MIPI_SYST_PRINTF_LOCADDR MIPI_SYST_PRINTF_LOCADDR(svh,sev,str, ...)\endlink
+ </td>
+ <td>Send a C-language style *printf()* API format string and its
+ arguments. This API follows the calling convention of
+ printf() as defined by the C99 C-Language standard.<BR>
+ <B>Notes:</B> This API is enabled by the SyS-T platform
+ define @ref MIPI_SYST_PCFG_ENABLE_PRINTF_API that must be set in
+ addition to @ref MIPI_SYST_PCFG_ENABLE_STRING_API.<BR>
+ Enabling this API implies the availability of the C-Language
+ standard header files stdarg.h and stddef.h. These are needed
+ due to the variable argument support of the *printf()* calling
+ convention.
+ </td>
+ </tr>
+ <tr>
+ <td style="white-space:nowrap">
+ MIPI_SYST_FUNC_ENTER(svh,sev)<BR>
+ MIPI_SYST_FUNC_ENTER_LOC16(svh,sev,file)<BR>
+ MIPI_SYST_FUNC_ENTER_LOC32(svh,sev,file)<BR>
+ MIPI_SYST_FUNC_ENTER_LOCADDR(svh,sev)
+ </td>
+ <td>Send function enter string message. The payload is the
+ UTF-8 name of the surrounding function.
+ </td>
+ </tr>
+ <tr>
+ <td style="white-space:nowrap">
+ MIPI_SYST_FUNC_EXIT(svh,sev)<BR>
+ MIPI_SYST_FUNC_EXIT_LOC16(svh,sev,file)<BR>
+ MIPI_SYST_FUNC_EXIT_LOC32(svh,sev,file)<BR>
+ MIPI_SYST_FUNC_EXIT_LOCADDR(svh,sev)
+ </td>
+ <td>Send function exit string message. The payload is the
+ UTF-8 name of the surrounding function.
+ </td>
+ </tr>
+ <tr>
+ <td style="white-space:nowrap">
+ MIPI_SYST_ASSERT(svh,sev,cond)<BR>
+ MIPI_SYST_ASSERT_LOC16(svh,sev,file,cond)<BR>
+ MIPI_SYST_ASSERT_LOC32(svh,sev,file,cond)<BR>
+ MIPI_SYST_ASSERT_LOCADDR(svh,sev,cond)
+ </td>
+ <td>Send [file]:[line] assertion notice string message if the passed
+ condition is false
+ </td>
+ </tr>
+</table>
+The string emitting macros must be enabled by the SyS-T platform
+define #MIPI_SYST_PCFG_ENABLE_STRING_API, otherwise they expand to nothing
+inside the code.
+<BR>
+## Catalog message macros ##
+<table border=1 cols="3" align="left" width="100%">
+ <tr>
+ <td width="30%"><b>API Define</b></td>
+ <td><b>Description</b></td>
+ </tr>
+ <tr>
+ <td style="white-space:nowrap">
+ \link MIPI_SYST_CATALOG64(svh,sev,id, ...)\endlink<BR>
+ </td>
+ <td> Send catalog message with variable number of parameters defined
+ by the format string that matches the 64-bit catalog ID.</td>
+ </tr>
+ <tr>
+ <td style="white-space:nowrap">
+ MIPI_SYST_CATALOG64_0(svh,sev,id)<BR>
+ ...<BR>
+ MIPI_SYST_CATALOG64_6(svh, sev, id,p1,p2,p3,p4,p5,p6)
+ </td>
+ <td> Send catalog message with 0-6 parameters.The MIPI_SYST_CATALOG64*
+ defines build a family of macros that are used to send 64-bit wide
+ user defined catalog message IDs with up to six 32-bit wide
+ parameters into the trace stream.</td>
+ </tr>
+ <tr>
+ <td style="white-space:nowrap">
+ MIPI_SYST_CATPRINTF64_0(svh, sev, id, fmt)<BR>
+ ...<BR>
+ MIPI_SYST_CATPRINTF64_6(svh, sev, id, fmt, p1,p2,p3,p4,p5,p6)
+ </td>
+ <td> Printf style wrapper for the catalog functions that support an
+ additional fmt string parameter. The functions directly map to
+ their matching catalog call by dropping the fmt parameter.
+ Their purpose is to use printf style instrumentation in source
+ code together with catalog messages. The format strings are not
+ part of the message but can be extracted from source code to
+ pretty print catalog messages during trace decode.</td>
+ </tr>
+ <tr>
+ <td style="white-space:nowrap">
+ \link MIPI_SYST_CATALOG32(svh,sev,id, ...)\endlink<BR>
+ </td>
+ <td> Send catalog message with variable number of parameters defined
+ by the format string that matches the 32-bit catalog ID.</td>
+ </tr>
+ <tr>
+ <td style="white-space:nowrap">
+ MIPI_SYST_CATALOG32_0(svh, sev, id)<BR>
+ ...<BR>
+ MIPI_SYST_CATALOG32_6(svh, sev, id,p1,p2,p3,p4,p5,p6)
+ </td>
+ <td> Send catalog message with 0-6 parameters. The MIPI_SYST_CATALOG32*
+ defines build a family of macros that are used to send 32-bit wide
+ user defined catalog message IDs with up to six 32-bit wide
+ parameters into the trace stream.</td>
+ </tr>
+ <tr>
+ <td style="white-space:nowrap">
+ MIPI_SYST_CATPRINTF32_0(svh, sev, id, fmt)<BR>
+ ...<BR>
+ MIPI_SYST_CATPRINTF32_6(svh, sev, id, fmt, p1,p2,p3,p4,p5,p6)
+ </td>
+ <td> Printf style wrapper for the catalog functions that support an
+ additional fmt string parameter. The functions directly map to
+ their matching catalog call by dropping the fmt parameter. Their purpose is
+ to use printf style instrumentation in source code together with
+ catalog messages. The format strings are not part of the message
+ but can be extracted from source code to pretty print catalog
+ messages during trace decode.</td>
+ </tr>
+ <tr>
+ <td style="white-space:nowrap">
+ MIPI_SYST_HASH(fmt, offset)<BR>
+ </td>
+ <td> The MIPI_SYST_HASH macro computes a 32-bit hash value for the fmt
+ string constant that is usable as a numeric CatalogID parameter.
+ The offset parameter is used to change the result in case of hash
+ value collisions with other strings. It is initially set to zero
+ and is only changed to a different value if a collision occurs.
+ It is used together with automated catalog ID generation
+ decribed here: \link mipi_syst_catgen_page\endlink.</td>
+ </tr>
+</table>
+The catalog message macros must be enabled by the SyS-T platform
+defines #MIPI_SYST_PCFG_ENABLE_CATID32_API or #MIPI_SYST_PCFG_ENABLE_CATID64_API,
+otherwise they expand to nothing inside the code.
+
+
+## Raw data message macros ##
+<table border=1 cols="3" align="left" width="100%">
+ <tr>
+ <td width="30%"><b>API Define</b></td>
+ <td><b>Description</b></td>
+ </tr>
+ <tr>
+ <td style="white-space:nowrap">
+ MIPI_SYST_SHORT32(h, v)
+ </td>
+ <td> Send short data message with 28-bit user defined payload.
+ This API is intended for space and cpu restricted environments
+ that cannot support more complex message types.</td>
+ </tr>
+ <tr>
+ <td style="white-space:nowrap">
+ MIPI_SYST_SHORT64(h, v)
+ </td>
+ <td> Send short data message with 60-bit user defined payload.
+ This API is intended for space and cpu restricted environments
+ that cannot support more complex message types.</td>
+ </tr>
+ <tr>
+ <td style="white-space:nowrap">
+ MIPI_SYST_WRITE(h, sev, id, p, len)
+ </td>
+ <td> Send raw data message with user defined payload.</td>
+ </tr>
+</table>
+The #MIPI_SYST_WRITE API message macro must be enabled by the SyS-T platform
+define #MIPI_SYST_PCFG_ENABLE_WRITE_API, otherwise it expands to nothing inside
+the code. The #MIPI_SYST_SHORT32 and MIPI_SYST_SHORT64 APIs are always available.
+
+## Client software build ID message macros ##
+<table border=1 cols="3" align="left" width="100%">
+ <tr>
+ <td width="30%"><b>API Define</b></td>
+ <td><b>Description</b></td>
+ </tr>
+ <tr>
+ <td style="white-space:nowrap">
+ MIPI_SYST_BUILD(h, sev, ver, text, len)
+ </td>
+ <td> Send 64-bit client software build ID number and optional version text.</td>
+ </tr>
+ <tr>
+ <td style="white-space:nowrap">
+ MIPI_SYST_BUILD_COMPACT32(h, v)
+ </td>
+ <td> Send a 32-bit compact client software build ID message with 22-bit wide build number.
+ </td>
+ </tr>
+ <tr>
+ <td style="white-space:nowrap">
+ MIPI_SYST_BUILD_COMPACT64(h, v)
+ </td>
+ <td> Send a 64-bit compact client software build ID message value with a 54-bit wide build number.
+ </td>
+ </tr>
+</table> \ No newline at end of file
diff --git a/library/doxygen/mainpage.md b/library/doxygen/mainpage.md
new file mode 100644
index 0000000..d2a3501
--- /dev/null
+++ b/library/doxygen/mainpage.md
@@ -0,0 +1,57 @@
+MIPI SyS-T Instrumentation Library {#mipi_syst_mainpage}
+==============================================================================
+
+About the SyS-T instrumentation library
+==============================================================================
+The MIPI System Software Trace (SyS-T) library is a customizable, low
+overhead example implementation of the SyS-T API and data protocol described
+here:
+https://www.mipi.org/specifications/sys-t
+
+The library is written as a self-contained C-language module and does not
+depend on other runtime library or system include files. The SyS-T library is
+usable in very different software environments, including OS user mode code, OS
+kernel mode code, or controller firmware.
+
+This library provides the SyS-T instrumentation API to other software
+components. The SyS-T API calls generate the @ref mipi_syst_decoder_protocol
+and typically write it to a trace aggregator for bundling the data with other
+trace sources. The SyS-T API offers advanced trace capabilities, such as:
+
+* String formatting in C-language printf style
+* Catalog messages to save data size and trace I/O bandwidth
+* Tunnelling of other data protocols
+* Hardware and Software provided message time stamping and synchronisation
+
+The following picture shows the library execution flow left to
+right. The SyS-T API is a set of preprocessor macros that are calling library
+functions for generating trace messages based on the API input parameters.
+These parameters are encoded into an internal format and written out by
+platform specific code to the systems trace transport layer.
+
+![SyS-T Library Environment](mipi_sys_t_library_flow.png)
+
+
+Documentation for using SyS-T to instrument software
+==============================================================================
+ - [Instrumentation API Overview](@ref mipi_syst_api_overview)
+ - [API Quick Reference](@ref mipi_syst_api_page)
+ - [API Sets](@ref ApiSets)
+
+Click here for a minimal "Hello World" style example of
+a SyS-T instrumented application: @ref mipi_syst_example_page
+
+
+Documentation for building and integrating SyS-T
+==============================================================================
+- [Building the SyS-T Library](@ref mipi_syst_building_page)
+- [Adapting the SyS-T Library](@ref mipi_syst_adapting_page)
+- [Automated Collateral Generation](@ref mipi_syst_catgen_page)
+- [Decoding and printing the SyS-T data protocol] (@ref mipi_syst_printer_page)
+
+
+SyS-T License
+==============================================================================
+The SyS-T library code is Copyright (c) MIPI Alliance, Inc. and distributed
+under a permissive open source license. The detailed license information can
+be found [here](@ref mipi_syst_license_page).
diff --git a/library/doxygen/mipi_sys_t_event_header.png b/library/doxygen/mipi_sys_t_event_header.png
new file mode 100644
index 0000000..18135af
--- /dev/null
+++ b/library/doxygen/mipi_sys_t_event_header.png
Binary files differ
diff --git a/library/doxygen/mipi_sys_t_library_flow.png b/library/doxygen/mipi_sys_t_library_flow.png
new file mode 100644
index 0000000..e279768
--- /dev/null
+++ b/library/doxygen/mipi_sys_t_library_flow.png
Binary files differ
diff --git a/library/doxygen/mipi_sys_t_library_flow.vsd b/library/doxygen/mipi_sys_t_library_flow.vsd
new file mode 100644
index 0000000..2241e80
--- /dev/null
+++ b/library/doxygen/mipi_sys_t_library_flow.vsd
Binary files differ
diff --git a/library/doxygen/mipi_sys_t_message_anatomy.png b/library/doxygen/mipi_sys_t_message_anatomy.png
new file mode 100644
index 0000000..e69736c
--- /dev/null
+++ b/library/doxygen/mipi_sys_t_message_anatomy.png
Binary files differ
diff --git a/library/doxygen/mipi_sys_t_overview.png b/library/doxygen/mipi_sys_t_overview.png
new file mode 100644
index 0000000..ec7a9bd
--- /dev/null
+++ b/library/doxygen/mipi_sys_t_overview.png
Binary files differ
diff --git a/library/include/mipi_syst.h.in b/library/include/mipi_syst.h.in
new file mode 100644
index 0000000..e0856d5
--- /dev/null
+++ b/library/include/mipi_syst.h.in
@@ -0,0 +1,783 @@
+/*
+Copyright (c) 2018, MIPI Alliance, Inc.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+* Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+* Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Contributors:
+ * Norbert Schulz (Intel Corporation) - Initial API and implementation
+ */
+
+#ifndef MIPI_SYST_H_INCLUDED
+#define MIPI_SYST_H_INCLUDED
+
+/* SyS-T API version information
+ */
+#define MIPI_SYST_VERSION_MAJOR @SYST_CFG_VERSION_MAJOR@ /**< Major version, incremented if API changes */
+#define MIPI_SYST_VERSION_MINOR @SYST_CFG_VERSION_MINOR@ /**< Minor version, incremented on compatible extensions */
+#define MIPI_SYST_VERSION_PATCH @SYST_CFG_VERSION_PATCH@ /**< Patch for existing major, minor, usually 0 */
+
+/** Define SyS-T API conformance level
+ *
+ * 10 = minimal (only short events)
+ * 20 = low overhead (exluding varag functions and CRC32)
+ * 30 = full implementation
+ */
+#define MIPI_SYST_CONFORMANCE_LEVEL @SYST_CFG_CONFORMANCE_LEVEL@
+
+/** Compute SYS-T version value
+ *
+ * Used to compare SYS-T Major.Minor.patch versions numerically at runtime.
+ *
+ * @param ma major version number
+ * @param mi minor version number
+ * @param p patch version number
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ *
+ * #if MIPI_SYST_VERSION_CODE >= MIPI_SYST_MAKE_VERSION_CODE(1,5,0)
+ * // do what only >= 1.5.x supports
+ * #endif
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_MAKE_VERSION_CODE(ma, mi, p) (((ma) << 16) | ((mi)<<8) | (p))
+
+/** Numeric SYS-T version code */
+#define MIPI_SYST_VERSION_CODE MIPI_SYST_MAKE_VERSION_CODE(\
+ MIPI_SYST_VERSION_MAJOR,\
+ MIPI_SYST_VERSION_MINOR,\
+ MIPI_SYST_VERSION_PATCH)
+
+/* Macros to trick numeric values like __LINE__ into a string
+ */
+#define _MIPI_SYST_STRINGIFY(x) #x
+#define _MIPI_SYST_CPP_TOSTR(x) _MIPI_SYST_STRINGIFY(x)
+
+#define _MIPI_SYST_VERSION_STRING(a, b, c)\
+ _MIPI_SYST_CPP_TOSTR(a)"."_MIPI_SYST_CPP_TOSTR(b)"."_MIPI_SYST_CPP_TOSTR(c)
+
+/** Textual version string */
+#define MIPI_SYST_VERSION_STRING \
+ _MIPI_SYST_VERSION_STRING(\
+ MIPI_SYST_VERSION_MAJOR,\
+ MIPI_SYST_VERSION_MINOR,\
+ MIPI_SYST_VERSION_PATCH)
+
+#ifndef MIPI_SYST_COMPILER_INCLUDED
+#include "mipi_syst/compiler.h"
+#endif
+
+/* String hash macros for compile time computation of catalog ID's.
+ * Notes:
+ * These macros will only be used with optimized builds, otherwise
+ * a lot of runtime code will be generated.
+ *
+ * Only the last 64 bytes of the string are considered for hashing
+ */
+#define _MIPI_SYST_HASH1(s,i,x,l) (x*65599u+(mipi_syst_u8)s[(i)<(l)?((l)-1-(i)):(l)])
+#define _MIPI_SYST_HASH4(s,i,x,l) _MIPI_SYST_HASH1(s,i,_MIPI_SYST_HASH1(s,i+1,_MIPI_SYST_HASH1(s,i+2,_MIPI_SYST_HASH1(s,i+3,x,l),l),l),l)
+#define _MIPI_SYST_HASH16(s,i,x,l) _MIPI_SYST_HASH4(s,i,_MIPI_SYST_HASH4(s,i+4,_MIPI_SYST_HASH4(s,i+8,_MIPI_SYST_HASH4(s,i+12,x,l),l),l),l)
+#define _MIPI_SYST_HASH64(s,i,x,l) _MIPI_SYST_HASH16(s,i,_MIPI_SYST_HASH16(s,i+16,_MIPI_SYST_HASH16(s,i+32,_MIPI_SYST_HASH16(s,i+48,x,l),l),l),l)
+
+#define _MIPI_SYST_HASH_x65599(s,l) ((mipi_syst_u32)_MIPI_SYST_HASH64(s,0,0,l))
+
+#define _MIPI_SYST_HASH_AT_CPP_TIME(str, offset) (_MIPI_SYST_HASH_x65599(str, sizeof(str)-1) + (offset))
+#define _MIPI_SYST_HASH_AT_RUN_TIME(str, offset) (mipi_syst_hash_x65599(str, sizeof(str)-1) + (offset))
+
+#if defined(_MIPI_SYST_OPTIMIZER_ON)
+#define MIPI_SYST_HASH(a, b) _MIPI_SYST_HASH_AT_CPP_TIME((a), (b))
+#else
+#define MIPI_SYST_HASH(a, b) _MIPI_SYST_HASH_AT_RUN_TIME((a),(b))
+#endif
+
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
+/** Major Message Types
+ */
+enum mipi_syst_msgtype {
+ MIPI_SYST_TYPE_BUILD = 0, /**< client build id message */
+ MIPI_SYST_TYPE_SHORT32 = 1, /**< value only message */
+ MIPI_SYST_TYPE_STRING = 2, /**< text message output */
+ MIPI_SYST_TYPE_CATALOG = 3, /**< catalog message output */
+ MIPI_SYST_TYPE_RAW = 6, /**< raw binary data */
+ MIPI_SYST_TYPE_SHORT64 = 7, /**< value only message */
+ MIPI_SYST_TYPE_CLOCK = 8, /**< clock sync message */
+
+ MIPI_SYST_TYPE_MAX
+};
+
+/** MIPI_SYST_TYPE_DEBUG_STRING Sub-Types
+ */
+enum mipi_syst_subtype_string {
+ MIPI_SYST_STRING_GENERIC = 1, /**< string generic debug */
+ MIPI_SYST_STRING_FUNCTIONENTER = 2, /**< string is function name */
+ MIPI_SYST_STRING_FUNCTIONEXIT = 3, /**< string is function name */
+ MIPI_SYST_STRING_INVALIDPARAM = 5, /**< invalid SyS-T APIcall */
+ MIPI_SYST_STRING_ASSERT = 7, /**< Software Assert: failure */
+ MIPI_SYST_STRING_PRINTF_32 = 11, /**< printf with 32-bit packing */
+ MIPI_SYST_STRING_PRINTF_64 = 12, /**< printf with 64-bit packing */
+
+ MIPI_SYST_STRING_MAX
+};
+
+/** MIPI_SYST_TYPE_CATALOG Sub-Types
+ */
+enum mipi_syst_subtype_catalog {
+ MIPI_SYST_CATALOG_ID32_P32 = 1, /**< 32-bit catalog ID, 32-bit packing */
+ MIPI_SYST_CATALOG_ID64_P32 = 2, /**< 64-bit catalog ID, 32-bit packing */
+ MIPI_SYST_CATALOG_ID32_P64 = 5, /**< 32-bit catalog ID, 64-bit packing */
+ MIPI_SYST_CATALOG_ID64_P64 = 6, /**< 64-bit catalog ID, 64-bit packing */
+
+ MIPI_SYST_CATALOG_MAX
+};
+
+/** MIPI_SYST_TYPE_CLOCK Sub-Types
+ */
+enum mipi_syst_subtype_clock{
+ MIPI_SYST_CLOCK_TRANSPORT_SYNC = 1, /**< SyS-T clock & frequency sync */
+ MIPI_SYST_CLOCK_MAX
+};
+
+enum mipi_syst_subtype_build {
+ MIPI_SYST_BUILD_ID_COMPACT32 = 0, /**< compact32 build id */
+ MIPI_SYST_BUILD_ID_COMPACT64 = 1, /**< compact64 build id */
+ MIPI_SYST_BUILD_ID_LONG = 2, /**< normal build message */
+ MIPI_SYST_BUILD_MAX
+};
+
+struct mipi_syst_header;
+struct mipi_syst_handle;
+struct mipi_syst_scatter_prog;
+
+/** 128-bit GUID style message origin ID */
+struct mipi_syst_guid {
+ union {
+ mipi_syst_u8 b[16];
+ mipi_syst_u64 ll[2];
+ } u;
+};
+
+/** GUID initializer code
+ *
+ * This macro simplifies converting a GUID from its string representation
+ * into the mipi_syst_guid data structure. The following example shows
+ * how the values from a GUID string are used with the macro. Each numeric
+ * component from the GUID string gets converted into a hex value parameter
+ * when invoking the macro.
+ *
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ *
+ * // Guid: f614b99d-99a1-4c04-8c30-90999ab5fe05
+ *
+ * struct mipi_syst_guid guid =
+ * MIPI_SYST_GEN_GUID(0xf614b99d, 0x99a1, 0x4c04, 0x8c30, 0x90999ab5fe05);
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_GEN_GUID(l1, w1, w2, w3, l2) \
+ {{\
+ (mipi_syst_u8)((mipi_syst_u32)(l1) >> 24), \
+ (mipi_syst_u8)((mipi_syst_u32)(l1) >> 16), \
+ (mipi_syst_u8)((mipi_syst_u32)(l1) >> 8), \
+ (mipi_syst_u8)((mipi_syst_u32)(l1) >> 0), \
+ (mipi_syst_u8)((mipi_syst_u16)(w1) >> 8), \
+ (mipi_syst_u8)((mipi_syst_u16)(w1) >> 0), \
+ (mipi_syst_u8)((mipi_syst_u16)(w2) >> 8), \
+ (mipi_syst_u8)((mipi_syst_u16)(w2) >> 0), \
+ (mipi_syst_u8)((mipi_syst_u16)(w3) >> 8), \
+ (mipi_syst_u8)((mipi_syst_u16)(w3) >> 0), \
+ (mipi_syst_u8)((mipi_syst_u64)(l2) >> 40), \
+ (mipi_syst_u8)((mipi_syst_u64)(l2) >> 32), \
+ (mipi_syst_u8)((mipi_syst_u64)(l2) >> 24), \
+ (mipi_syst_u8)((mipi_syst_u64)(l2) >> 16), \
+ (mipi_syst_u8)((mipi_syst_u64)(l2) >> 8), \
+ (mipi_syst_u8)((mipi_syst_u64)(l2) >> 0) \
+ }}
+
+ /** SyS-T client origin data
+ *
+ * This structure holds the GUID or header origin and unit data
+ * used by SyS-T handles. The structure gets passed into the handle
+ * creation functions to initialize the values that identify clients.
+ * @see MIPI_SYST_SET_HANDLE_GUID_UNIT
+ * @see MIPI_SYST_SET_HANDLE_MODULE_UNIT
+ * @see MIPI_SYST_SET_HANDLE_ORIGIN
+ */
+struct mipi_syst_origin {
+ struct mipi_syst_guid guid; /**< origin GUID or module value */
+ mipi_syst_u16 unit; /**< unit value */
+};
+
+/** Origin structure initializer code using GUID
+*
+* This macro simplifies initializing a mipi_syst_origin structure. The
+* first 5 parameters are GUID values as used by the MIPI_SYST_GEN_GUID
+* macro. The last parameter is the unit value (11-Bits).
+* @see MIPI_SYST_GEN_GUID
+*
+*
+* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+*
+* // Guid: {494E5443-B659-45AF-B786-9DB0786248AE}
+
+*
+* struct mipi_syst_origin = origin
+* MIPI_SYST_GEN_ORIGIN_GUID(
+* 0x494E5443, 0xB659, 0x45AF, 0xB786, 0x9DB0786248AE,
+* 0x1);
+* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+*/
+#define MIPI_SYST_GEN_ORIGIN_GUID(l1, w1, w2, w3, l2 , u) \
+ {\
+ MIPI_SYST_GEN_GUID(l1, w1, w2, w3, l2) ,\
+ u\
+ }
+
+/** Origin structure initializer code using header module value
+*
+* This macro simplifies initializing a mipi_syst_origin structure. The
+* first parameter is the header origin value (7-Bits). The second parameter
+* is the unit value (4-bits)
+* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+*
+* // Guid: {494E5443-B659-45AF-B786-9DB0786248AE}
+
+* #define MODULE_X 0x10
+* struct mipi_syst_origin =
+* MIPI_SYST_GEN_ORIGIN_MODULE(MODULE_X, 0x1);
+* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+*/
+#define MIPI_SYST_GEN_ORIGIN_MODULE(m , u) \
+ {\
+ MIPI_SYST_GEN_GUID(0,0,0, ((mipi_syst_u16)(m & 0x7F)) << 8, 0 ),\
+ u\
+ }
+/**
+ * Global state initialization hook definition
+ *
+ * This function gets called in the context of the mipi_syst_init() API
+ * function after the generic state members of the global state
+ * structure syst_hdr have been setup. It's purpose is to initialize the
+ * platform dependent portion of the state and other necessary
+ * platform specific initialization steps.
+ *
+ * @param systh Pointer to global state structure
+ * @param p user defined value or pointer to data
+ * @see mipi_syst_header
+ */
+typedef void (MIPI_SYST_CALLCONV *mipi_syst_inithook_t)(struct mipi_syst_header *systh,
+ const void *p);
+
+/**
+ * Global state destroy hook definition
+ *
+ * This function gets called in the context of the mipi_syst_destroy() API
+ * function before the generic state members of the global state
+ * structure syst_hdr have been destroyed. Its purpose is to free resources
+ * used by the platform dependent portion of the global state.
+ *
+ * @param systh Pointer to global state structure
+ */
+typedef void (MIPI_SYST_CALLCONV *mipi_syst_destroyhook_t)(struct mipi_syst_header *systh);
+
+/**
+ * SyS-T handle state initialization hook definition
+ *
+ * This function gets called in the context of IO handle generation.
+ * Its purpose is to initialize the platform dependent portion of
+* the handle and other necessary platform specific initialization steps.
+ *
+ * @param systh Pointer to new SyS-T handle
+ * @see syst_handle_t
+ */
+typedef void (*mipi_syst_inithandle_hook_t)(struct mipi_syst_handle *systh);
+
+/**
+ * SyS-T handle state release hook definition
+ *
+ * This function gets called when a handle is about to be destroyed..
+ * Its purpose is to free any resources allocated during the handle
+ * generation.
+ *
+ * @param systh Pointer to handle that is destroyed
+ * @see syst_handle_t
+ */
+typedef void (*mipi_syst_releasehandle_hook_t)(struct mipi_syst_handle *systh);
+
+/**
+ * Low level message write routine definition
+ *
+ * This function is called at the end of an instrumentation API to output
+ * the raw message data.
+ *
+ * @param systh pointer to a SyS-T handle structure used in the API call,
+ * @param scatterprog pointer to a list of scatter write instructions that
+ * encodes how to convert the descriptor pointer by
+ * pdesc into raw binary data. This list doesn't include
+ * the mandatory first 32 tag byte value pointed by pdesc.
+ * @param pdesc pointer to a message descriptor, which containing at least
+ * the 32-bit message tag data
+ */
+typedef void (*mipi_syst_msg_write_t)(
+ struct mipi_syst_handle *systh,
+ struct mipi_syst_scatter_prog *scatterprog,
+ const void *pdesc);
+
+#ifdef __cplusplus
+} /* extern C */
+#endif
+#ifndef MIPI_SYST_PLATFORM_INCLUDED
+
+/**
+ * @defgroup PCFG_Config Platform Feature Configuration Defines
+ *
+ * Defines to customize the SyS-T feature set to match the platform needs.
+ *
+ * Each optional library feature can be disabled by not defining the related
+ * MIPI_SYST_PCFG_ENABLE define. Removing unused features in this way reduces
+ * both memory footprint and runtime overhead of SyS-T.
+ */
+
+/**
+ * @defgroup PCFG_Global Platform Wide Configuration
+ * @ingroup PCFG_Config
+ *
+ * These defines enable global features in the SyS-T library.
+ * @{
+ */
+
+
+ /**
+ * Extend Platform global SyS-T data state
+ *
+ * This define extends the global SyS-T state data structure
+ * mipi_syst_header with platform private content. A platform typically
+ * stores data for SyS-T handle creation processing in this structure.
+ *
+ * Note: This data is not touched by the library code itself, but typically
+ * is used by platform hook functions for handle creation and destruction.
+ * **These hook function calls are not lock protected and may happen
+ * concurrently!** The hook functions need to implement locking if they
+ * modify the platform state data.
+ *
+ * The platform example uses #mipi_syst_platform_state as data state extension.
+ */
+#define MIPI_SYST_PCFG_ENABLE_PLATFORM_STATE_DATA
+
+/**
+ * Extend SyS-T handle data state
+ *
+ * This define extends the SyS-T handle state data structure
+ * mipi_syst_handle with platform private content. A platform typically
+ * stores data for fast trace hardware access in the handle data, for
+ * example a volatile pointer to an MMIO space.
+ *
+ * The platform example uses #mipi_syst_platform_handle as handle state
+ * extension.
+ */
+#define MIPI_SYST_PCFG_ENABLE_PLATFORM_HANDLE_DATA
+
+/**
+ * Enable HEAP usage for handle generation
+ *
+ * This macro tells the SyS-T library to enable the heap allocation handle
+ * creation API #MIPI_SYST_ALLOC_HANDLE.
+ * The platform must provide the macros #MIPI_SYST_HEAP_MALLOC and
+ * #MIPI_SYST_HEAP_FREE to point SyS-T to the platform malloc and free
+ * functions.
+ *
+ * Note: In OS kernel space environments, you must use unpaged memory
+ * allocation functions.
+ */
+#define MIPI_SYST_PCFG_ENABLE_HEAP_MEMORY
+
+/* MSVC and GNU compiler 64-bit mode */
+
+/**
+ * Enable 64-bit instruction addresses
+ *
+ * Set this define if running in 64-bit code address space.
+ */
+#if defined(_WIN64) || defined(__x86_64__) || defined (__LP64__)
+#define MIPI_SYST_PCFG_ENABLE_64BIT_ADDR
+#endif
+/**
+ * Enable atomic 64-bit write operations
+ *
+ * Set this define if your platform supports an atomic 64-bit data write
+ * operation. This results in fewer MMIO accesses.The SyS-T library
+ * defaults to 2 consecutive 32-Bit writes otherwise.
+ */
+#if defined(_WIN64) || defined(__x86_64__) || defined (__LP64__)
+#define MIPI_SYST_PCFG_ENABLE_64BIT_IO
+#endif
+
+/**
+ * Enable helper function code inlining
+ *
+ * Set this define if speed is more important than code size on your platform.
+ * It causes several helper function to get inlined, producing faster, but
+ * also larger, code.
+ */
+#define MIPI_SYST_PCFG_ENABLE_INLINE
+
+/** @} */
+
+/**
+ * @defgroup PCFG_ApiSet Supported API sets
+ * @ingroup PCFG_Config
+ *
+ * These defines enable API sets in the SyS-T library. They are set by default
+ * depending on the SyS-T API conformance level. The level is specified using
+ * the define #MIPI_SYST_CONFORMANCE_LEVEL.
+ * @{
+ */
+
+#if MIPI_SYST_CONFORMANCE_LEVEL > 10
+ /**
+ * Use SyS-T scatter write output function
+ *
+ * The library comes with an output routine that is intended to write data out
+ * to an MMIO space. It simplifies a SyS-T platform integration as
+ * only low-level access macros must be provided for outputting data. These
+ * macros follow MIPI System Trace Protocol (STP) naming convention, also
+ * non STP generators can use this interface.
+ *
+ * These low level output macros are:
+ *
+ * #MIPI_SYST_OUTPUT_D32MTS, #MIPI_SYST_OUTPUT_D64MTS,
+ * #MIPI_SYST_OUTPUT_D32TS, #MIPI_SYST_OUTPUT_D64,
+ * #MIPI_SYST_OUTPUT_D32, #MIPI_SYST_OUTPUT_D16, #MIPI_SYST_OUTPUT_D8 and
+ * #MIPI_SYST_OUTPUT_FLAG
+ *
+ * Note: This version of the write function always starts messages
+ * using a 32-bit timestamped record also other sized timestamped
+ * packets are allowed by the SyS-T specification.
+ */
+#define MIPI_SYST_PCFG_ENABLE_DEFAULT_SCATTER_WRITE
+
+/**
+ * Enable the Catalog API for 32-Bit Catalog IDs.
+ */
+#define MIPI_SYST_PCFG_ENABLE_CATID32_API
+
+/**
+ * Enable the Catalog API for 64-Bit Catalog IDs.
+ */
+#define MIPI_SYST_PCFG_ENABLE_CATID64_API
+
+/**
+ * Enable plain UTF-8 string output APIs.
+ */
+#define MIPI_SYST_PCFG_ENABLE_STRING_API
+
+/**
+ * Enable raw data output APIs
+ */
+#define MIPI_SYST_PCFG_ENABLE_WRITE_API
+
+/**
+ * Enable Build API
+ */
+#define MIPI_SYST_PCFG_ENABLE_BUILD_API
+#endif /* MIPI_SYST_CONFORMANCE_LEVEL > 10 */
+
+#if MIPI_SYST_CONFORMANCE_LEVEL > 20
+ /**
+ * Enable printf API support
+ *
+ * Note:
+ * Enabling printf requires compiler var_arg support as defined by the
+ * header files stdarg.h stddef.h.
+ */
+
+#define MIPI_SYST_PCFG_ENABLE_PRINTF_API
+
+/**
+ * Maximum size of printf payload in bytes.
+ * Adjust this value if larger strings shall be supported by the library.
+ * The buffer space is located in stack memory when calling one of the printf
+ * style APIs.
+ */
+#define MIPI_SYST_PCFG_PRINTF_ARGBUF_SIZE 1024
+
+#endif /* #if MIPI_SYST_CONFORMANCE_LEVEL > 20 */
+
+/* @} */
+
+/**
+ * @defgroup PCFG_Message Optional Message Attributes
+ * @ingroup PCFG_Config
+ *
+ * These defines enable optional message components. They are set by default
+ * depending on the SyS-T API conformance level. The level is specified using
+ * the define #MIPI_SYST_CONFORMANCE_LEVEL.
+ * @{
+ */
+
+#if MIPI_SYST_CONFORMANCE_LEVEL > 10
+/**
+ * Enable 128-bit origin GUID support.
+ */
+#define MIPI_SYST_PCFG_ENABLE_ORIGIN_GUID
+
+/**
+ * Enable the API variants that send file:line ID pair location records.
+ */
+#define MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD
+
+/**
+ * Enable the API variants that send the address of the instrumentation location.
+ *
+ * This API requires #MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD to be set as well.
+ * It uses its own define as it additionally requires the function
+ * @ref mipi_syst_return_addr() to be implemented for your platform.
+ */
+#define MIPI_SYST_PCFG_ENABLE_LOCATION_ADDRESS
+
+/**
+ * Enable protocol timestamp.
+ *
+ * This option adds a timestamp into the SyS-T protocol. This
+ * option is used if the SyS-T protocol is not embedded into a hardware
+ * timestamped trace protocol like MIPI STP or if the HW timestamp cannot
+ * be used for other reasons. Setting this option creates the need to define
+ * the macros #MIPI_SYST_PLATFORM_CLOCK and #MIPI_SYST_PLATFORM_FREQ to
+ * return a 64-bit clock tick value and its frequency.
+ */
+#define MIPI_SYST_PCFG_ENABLE_TIMESTAMP
+
+#if defined(_DOXYGEN_) /* only for doxygen, remove the #if to enable */
+ /**
+ * Enable generation of length field
+ *
+ * Set this define if the message data shall include the optional length
+ * field that indicates how many payload bytes follow.
+ */
+#define MIPI_SYST_PCFG_LENGTH_FIELD
+#endif
+
+#endif
+
+#if MIPI_SYST_CONFORMANCE_LEVEL > 20
+/**
+ * Enable message data CRC32 generation.
+ */
+#define MIPI_SYST_PCFG_ENABLE_CHECKSUM
+
+#endif /* #if MIPI_SYST_CONFORMANCE_LEVEL */
+
+/** @} */
+
+#include "mipi_syst/platform.h"
+#endif
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#if defined(MIPI_SYST_PCFG_ENABLE_INLINE)
+#define MIPI_SYST_INLINE static MIPI_SYST_CC_INLINE
+#else
+#define MIPI_SYST_INLINE MIPI_SYST_EXPORT
+#endif
+
+/** SyS-T global state structure.
+ * This structure is holding the global SyS-T library state
+ */
+struct mipi_syst_header {
+ mipi_syst_u32 systh_version; /**< SyS-T version ID */
+
+#if defined(MIPI_SYST_PCFG_ENABLE_PLATFORM_HANDLE_DATA)
+ mipi_syst_inithandle_hook_t systh_inith; /**< handle init hook function*/
+ mipi_syst_releasehandle_hook_t systh_releaseh; /**< handle release hook */
+#endif
+
+#if MIPI_SYST_CONFORMANCE_LEVEL > 10
+ mipi_syst_msg_write_t systh_writer; /**< message output routine */
+#endif
+#if defined(MIPI_SYST_PCFG_ENABLE_PLATFORM_STATE_DATA)
+ struct mipi_syst_platform_state systh_platform;
+ /**< platform specific state */
+#endif
+};
+
+/**
+ * Message data header tag definition
+ *
+ * Each SyS-T message starts with a 32-bit message tag. The tag defines the
+ * message originator and decoding information for the data following
+ * the tag.
+ */
+
+struct mipi_syst_msg_tag {
+#if defined(MIPI_SYST_BIG_ENDIAN)
+ mipi_syst_u32 et_res31 : 1; /**< reserved for future use */
+ mipi_syst_u32 et_res30 : 1; /**< reserved for future use */
+ mipi_syst_u32 et_subtype : 6; /**< type dependent sub category */
+ mipi_syst_u32 et_guid : 1; /**< 128-bit GUID present */
+ mipi_syst_u32 et_modunit : 11; /**< unit for GUID or module:unit */
+ mipi_syst_u32 et_timestamp : 1;/**< indicate 64-bit timestamp */
+ mipi_syst_u32 et_chksum : 1; /**< indicate 32-bit CRC */
+ mipi_syst_u32 et_length : 1; /**< indicate length field */
+ mipi_syst_u32 et_location : 1; /**< indicate location information */
+ mipi_syst_u32 et_res7 : 1; /**< reserved for future use */
+ mipi_syst_u32 et_severity : 3; /**< severity level of message */
+ mipi_syst_u32 et_type : 4; /**< SyS-T message type ID */
+#else
+ mipi_syst_u32 et_type : 4; /**< SyS-T message type ID */
+ mipi_syst_u32 et_severity : 3; /**< severity level of message */
+ mipi_syst_u32 et_res7 : 1; /**< reserved for future use */
+ mipi_syst_u32 et_location : 1; /**< indicate location information */
+ mipi_syst_u32 et_length : 1; /**< indicate length field */
+ mipi_syst_u32 et_chksum : 1; /**< indicate 32-bit CRC */
+ mipi_syst_u32 et_timestamp : 1;/**< indicate 64-bit timestamp */
+ mipi_syst_u32 et_modunit : 11; /**< unit for GUID or module:unit */
+ mipi_syst_u32 et_guid : 1; /**< 128-bit GUID present */
+ mipi_syst_u32 et_subtype : 6; /**< type dependent sub category */
+ mipi_syst_u32 et_res30 : 1; /**< reserved for future use */
+ mipi_syst_u32 et_res31 : 1; /**< reserved for future use */
+#endif
+};
+#define _MIPI_SYST_MK_MODUNIT_ORIGIN(m,u) (((u) & 0xF)|(m<<4))
+
+/**
+ * Message severity level enumeration
+ */
+enum mipi_syst_severity {
+ MIPI_SYST_SEVERITY_MAX = 0, /**< no assigned severity */
+ MIPI_SYST_SEVERITY_FATAL = 1, /**< critical error level */
+ MIPI_SYST_SEVERITY_ERROR = 2, /**< error message level */
+ MIPI_SYST_SEVERITY_WARNING = 3,/**< warning message level */
+ MIPI_SYST_SEVERITY_INFO = 4, /**< information message level */
+ MIPI_SYST_SEVERITY_USER1 = 5, /**< user defined level 5 */
+ MIPI_SYST_SEVERITY_USER2 = 6, /**< user defined level 6 */
+ MIPI_SYST_SEVERITY_DEBUG = 7 /**< debug information level */
+};
+
+/**
+ * Location information inside a message (64-bit format)
+ * Location is either the source position of the instrumentation call, or
+ * the call instruction pointer value.
+ */
+union mipi_syst_msglocation32 {
+ struct {
+#if defined(MIPI_SYST_BIG_ENDIAN)
+ mipi_syst_u16 etls_lineNo; /**< line number in file */
+ mipi_syst_u16 etls_fileID; /**< ID of instrumented file */
+#else
+ mipi_syst_u16 etls_fileID; /**< ID of instrumented file */
+ mipi_syst_u16 etls_lineNo; /**< line number in file */
+#endif
+ } etls_source_location;
+
+ mipi_syst_u32 etls_code_location:32; /**< instruction pointer value */
+};
+
+/**
+ * Location information inside a message (32-bit format)
+ * Location is either the source position of the instrumentation call, or
+ * the call instruction pointer value.
+ */
+union mipi_syst_msglocation64 {
+ struct {
+#if defined(MIPI_SYST_BIG_ENDIAN)
+ mipi_syst_u32 etls_lineNo; /**< line number in file */
+ mipi_syst_u32 etls_fileID; /**< ID of instrumented file */
+#else
+ mipi_syst_u32 etls_fileID; /**< ID of instrumented file */
+ mipi_syst_u32 etls_lineNo; /**< line number in file */
+#endif
+ } etls_source_location;
+ mipi_syst_u64 etls_code_location; /**< instruction pointer value */
+};
+
+/**
+ * Location information record descriptor
+ */
+struct mipi_syst_msglocation {
+ /** Message format
+ * 0 = 16-Bit file and 16-Bit line (total: 32-bit)
+ * 1 = 32-Bit file and 32-Bit line (total: 64-bit)
+ * 2 = 32-bit code address
+ * 3 = 64-bit code address
+ */
+ mipi_syst_u8 el_format;
+ union {
+ union mipi_syst_msglocation32 loc32; /**< data for 32-bit variant */
+ union mipi_syst_msglocation64 loc64; /**< data for 64-bit variant */
+ } el_u;
+};
+
+/** internal handle state flags
+ */
+struct mipi_syst_handle_flags {
+ mipi_syst_u32 shf_alloc:1; /**< set to 1 if heap allocated handle */
+};
+
+/** SyS-T connection handle state structure
+ *
+ * This structure connects the instrumentation API with the underlying SyS-T
+ * infrastructure. It plays a similar role to a FILE * in traditional
+ * C file IO.
+ */
+ struct mipi_syst_handle {
+ struct mipi_syst_header* systh_header; /**< global state */
+ struct mipi_syst_handle_flags systh_flags; /**< handle state */
+ struct mipi_syst_msg_tag systh_tag; /**< tag flags */
+
+#if defined(MIPI_SYST_PCFG_ENABLE_ORIGIN_GUID)
+ struct mipi_syst_guid systh_guid; /**< module GUID */
+#endif
+
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD)
+ struct mipi_syst_msglocation systh_location; /**< location record */
+#endif
+
+ mipi_syst_u32 systh_param_count; /**< number of parameters */
+ mipi_syst_u32 systh_param[6]; /**< catalog msg parameters */
+
+#if defined(MIPI_SYST_PCFG_ENABLE_PLATFORM_HANDLE_DATA)
+ struct mipi_syst_platform_handle systh_platform;
+ /**< platform specific state */
+#endif
+};
+
+
+#ifdef __cplusplus
+} /* extern C */
+#endif
+#ifndef MIPI_SYST_API_INCLUDED
+#include "mipi_syst/api.h"
+#endif
+
+#endif
diff --git a/library/include/mipi_syst/api.h b/library/include/mipi_syst/api.h
new file mode 100644
index 0000000..e07dd8b
--- /dev/null
+++ b/library/include/mipi_syst/api.h
@@ -0,0 +1,2989 @@
+/*
+Copyright (c) 2018, MIPI Alliance, Inc.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+* Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+* Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Contributors:
+ * Norbert Schulz (Intel Corporation) - Initial API and implementation
+ */
+
+/* SyS-T Instrumentation API defintions
+ */
+
+#ifndef MIPI_SYST_API_INCLUDED
+#define MIPI_SYST_API_INCLUDED
+
+#ifndef MIPI_SYST_H_INCLUDED
+#include "mipi_syst.h"
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* Define away all instrumentation calls if one if the following global
+ * disable switches is set
+ */
+#if !defined(MIPI_SYST_DISABLE_ALL)
+
+/**
+ * @defgroup ApiSets API Sets
+ *
+ * SyS-T provided Instrumentation API sets
+ *
+ * SyS-T provides different API sets. Most sets can be individually enabled
+ * or disabled using the @ref PCFG_ApiSet platform feature defines.
+ */
+
+/**
+ * @defgroup API_global State and Lifetime handling macros
+ * @ingroup ApiSets
+ *
+ * State and handle lifetime related macros
+ * @{
+ */
+
+/**
+ * SyS-T platform initialization with user provided state structure
+ *
+ * This function must be called during system startup to initialize the SyS-T
+ * execution environment. This function expects a user provided SyS-T state
+ * structure pointer. This call supports environments with different
+ * library states at the same time. To initialize SyS-T for using a global
+ * shared state, call #MIPI_SYST_INIT(f,p) instead.
+ *
+ * @param s Pointer to SyS-T state header variable
+ * @param f Pointer to platform initialization hook function
+ * @param p Pointer value that gets passed to the initialization hook function
+ */
+#define MIPI_SYST_INIT_STATE(s, f, p) \
+ mipi_syst_init((s), (f), (p))
+
+/**
+ * SyS-T platform shutdown with user provided state structure
+ *
+ * This function expects a user provided SyS-T state
+ * structure pointer. This call supports environments with different
+ * library states at the same time. To shutdown SyS-T using a global
+ * shared state, call #MIPI_SYST_SHUTDOWN(f) instead.
+ *
+ * @param s Pointer to SyS-T state header variable
+ * @param f pointer to platform resource destruction hook function
+ */
+#define MIPI_SYST_SHUTDOWN_STATE(s, f) \
+ mipi_syst_destroy((s), (f))
+
+/**
+ * SyS-T global platform initialization
+ *
+ * This function must be called during system startup to initialize the SyS-T
+ * execution environment.
+ *
+ * @param f pointer to platform initialization hook function
+ * @param p pointer value that gets passed to the initialization hook function
+ */
+#define MIPI_SYST_INIT(f, p) \
+ MIPI_SYST_INIT_STATE((struct mipi_syst_header*)0, (f), (p))
+
+/**
+ * SyS-T global platform shutdown
+ *
+ * @param f pointer to platform resource destruction hook function
+ */
+#define MIPI_SYST_SHUTDOWN(f) \
+ MIPI_SYST_SHUTDOWN_STATE((struct mipi_syst_header*)0, (f))
+
+/**
+ * Initialize non-heap SyS-T handle with custom global state
+ *
+ * This function is used in platforms that don't support heap allocations.
+ * The caller has to provide a pointer to a memory location that can hold
+ * a mipi_syst_handle data structure. This function expect a user provided
+ * SyS-T state structure pointer as its first parameter. To create a
+ * handle for the shared global state, call #MIPI_SYST_INIT_HANDLE(h,p) instead.
+ *
+ * @param s Pointer to SyS-T state header variable
+ * @param h Pointer to handle data structure on the stack or data segment.
+ * @param p Pointer to data that get passed to the platform handle init hook
+ * function.
+ *
+ * Example
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ * extern struct mipi_syst_header systh_header;
+ * static struct mipi_syst_handle systh_data;
+ *
+ * void foo()
+ * {
+ * struct mipi_syst_handle* svh;
+ *
+ * svh = MIPI_SYST_INIT_HANDLE_STATE(&systh_header, &systh_data, NULL);
+ *
+ * ...
+ * }
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_INIT_HANDLE_STATE(s, h, p) \
+ mipi_syst_init_handle((s), (h), (p), 0)
+
+/**
+ * Initialize non-heap SyS-T handle
+ *
+ * This function is used in platforms that don't support heap allocations.
+ * The caller has to provide a pointer to a memory location that can hold
+ * a mipi_syst_handle data structure.
+ *
+ * @param h Pointer to handle data structure on the stack or data segment.
+ * @param p Pointer to mipi_syst_origin structure with client
+ * identifying information, or NULL if not used
+ *
+ * Example
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ * static struct mipi_syst_handle systh_data;
+ *
+ * void foo()
+ * {
+ * struct mipi_syst_handle* svh = MIPI_SYST_INIT_HANDLE(&systh_data, NULL);
+ *
+ * ...
+ * }
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_INIT_HANDLE(h, p) \
+ MIPI_SYST_INIT_HANDLE_STATE((struct mipi_syst_header*)0, (h), (p))
+
+#if defined(MIPI_SYST_PCFG_ENABLE_HEAP_MEMORY)
+/**
+ * Heap allocate and initialize a new SyS-T handle for a custom global state
+ *
+ * This function is only supported if the platform supports the
+ * feature #MIPI_SYST_PCFG_ENABLE_HEAP_MEMORY. Use
+ * #MIPI_SYST_INIT_HANDLE if no heap support is enabled.
+ *
+ * @param s Pointer to SyS-T state header variable
+ * @param p Pointer to mipi_syst_origin structure with client
+ * identifying information, or NULL if not used
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ * extern struct mipi_syst_header systh_header;
+ *
+ * static const struct mipi_syst_origin origin =
+ * MIPI_SYST_GEN_ORIGIN_GUID(0x494E5443, 0xA2AE, 0x4C70, 0xABB5, 0xD1A79E9CEA35, 1);
+ *
+ * void foo()
+ * {
+ * struct mipi_syst_handle* svh;
+ *
+ * svh = MIPI_SYST_ALLOC_HANDLE_STATE(&systh_header, &origin);
+ *
+ * ...
+ * }
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_ALLOC_HANDLE_STATE(s, p) \
+ mipi_syst_init_handle(\
+ (s),\
+ (struct mipi_syst_handle*)MIPI_SYST_HEAP_MALLOC(sizeof(struct mipi_syst_handle)),\
+ (p), 1)
+
+/**
+ * Heap allocate and initialize a new SyS-T handle
+ * This function is only supported if the platform supports the
+ * feature #MIPI_SYST_PCFG_ENABLE_HEAP_MEMORY. Use
+ * #MIPI_SYST_INIT_HANDLE if no heap support is enabled.
+ *
+ * @param p Pointer to mipi_syst_origin structure with client
+ * identifying information, or NULL if not used
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ * * static const struct mipi_syst_origin origin =
+ * MIPI_SYST_GEN_ORIGIN_GUID(0x494E5443, 0xA2AE, 0x4C70, 0xABB5, 0xD1A79E9CEA35, 1);
+ *
+ *
+ * void foo()
+ * {
+ * struct mipi_syst_handle* svh = MIPI_SYST_ALLOC_HANDLE(&origin);
+ *
+ * ...
+ * }
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_ALLOC_HANDLE(p) \
+ MIPI_SYST_ALLOC_HANDLE_STATE((struct mipi_syst_header*)0, (p))
+
+#else
+#define MIPI_SYST_ALLOC_HANDLE(p) \
+CFG_ERROR_ALLOC_HANDLE_CALLED_WITHOUT_PCFG_ENABLE_HEAP_MEMORY
+#define MIPI_SYST_ALLOC_HANDLE_STATE(s, p) \
+CFG_ERROR_SYST_ALLOC_HANDLE_STATE_CALLED_WITHOUT_PCFG_ENABLE_HEAP_MEMORY
+#endif
+
+
+#if defined(MIPI_SYST_PCFG_LENGTH_FIELD) || defined (_DOXYGEN_)
+ /**
+ * Enable or disable length generation over the given SyS-T handle
+ *
+ * @param h SyS-T handle from #MIPI_SYST_INIT_HANDLE or #MIPI_SYST_ALLOC_HANDLE
+ * @param v 0 disable length field, otherwise enable length
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ * struct mipi_syst_handle* svh = MIPI_SYST_ALLOC_HANDLE(NULL);
+ *
+ * // enable checksums
+ * //
+ * MIPI_SYST_ENABLE_HANDLE_LENGTH(svh, 1);
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_ENABLE_HANDLE_LENGTH(h, v) \
+ ((h) && ((h)->systh_tag.et_length = (v) ? 1 : 0))
+#else
+#define MIPI_SYST_ENABLE_HANDLE_LENGTH(h, v)
+#endif
+
+ /**
+ * Get length field generation state from given SyS-T handle
+ *
+ * @param h SyS-T handle from #MIPI_SYST_INIT_HANDLE or #MIPI_SYST_ALLOC_HANDLE
+ * @return 0 if disabled, otherwise enabled
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ * struct mipi_syst_handle* svh = MIPI_SYST_ALLOC_HANDLE(NULL);
+ *
+ * if (MIPI_SYST_GET_HANDLE_LENGTH(svh)) {
+ * // length field enabled ...
+ * }
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_GET_HANDLE_LENGTH(h) \
+ (((h) &&(h)->systh_tag.et_length) ? 1 : 0)
+
+#if defined(MIPI_SYST_PCFG_ENABLE_CHECKSUM)
+/**
+ * Enable or disable checksum generation over the given SyS-T handle
+ *
+ * @param h SyS-T handle from #MIPI_SYST_INIT_HANDLE or #MIPI_SYST_ALLOC_HANDLE
+ * @param v 0 disable checksum, otherwise enable checksum
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ * struct mipi_syst_handle* svh = MIPI_SYST_ALLOC_HANDLE(NULL);
+ *
+ * // enable checksums
+ * //
+ * MIPI_SYST_ENABLE_HANDLE_CHECKSUM(svh, 1);
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_ENABLE_HANDLE_CHECKSUM(h, v) \
+ ((h) && ((h)->systh_tag.et_chksum = (v) ? 1 : 0))
+
+ /**
+ * Get checksum generation state from given SyS-T handle
+ *
+ * @param h SyS-T handle from #MIPI_SYST_INIT_HANDLE or #MIPI_SYST_ALLOC_HANDLE
+ * @return 0 if disabled, otherwise enabled
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ * struct mipi_syst_handle* svh = MIPI_SYST_ALLOC_HANDLE(NULL);
+ *
+ * if (MIPI_SYST_GET_HANDLE_CHECKSUM(svh)) {
+ * // checksums enabled ...
+ * }
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_GET_HANDLE_CHECKSUM(h) \
+ (((h) && (h)->systh_tag.et_chksum) ? 1 : 0)
+#endif
+
+/**
+ * Change module and unit ID of the given SyS-T handle.
+ *
+ * @param h SyS-T handle from #MIPI_SYST_INIT_HANDLE or #MIPI_SYST_ALLOC_HANDLE
+ * @param module module id (0..0x7F)
+ * @param unit unit id (0x0..0xF)
+ *
+ * @see #MIPI_SYST_SET_HANDLE_GUID_UNIT mipi_syst_msg_tag
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ * struct mipi_syst_handle* svh = MIPI_SYST_ALLOC_HANDLE(NULL);
+ *
+ * // tag message with 5:1 as module:unit id pair
+ * //
+ * MIPI_SYST_SET_MODULE_UNIT(svh, 5, 1);
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_SET_HANDLE_MODULE_UNIT(h, module, unit) \
+do { \
+ if (h) { \
+ (h)->systh_tag.et_guid = 0; \
+ (h)->systh_tag.et_modunit = \
+ _MIPI_SYST_MK_MODUNIT_ORIGIN((module), (unit)); \
+ } \
+} while (0)
+
+#if defined(MIPI_SYST_PCFG_ENABLE_ORIGIN_GUID)
+
+/**
+ * Change GUID and unit ID of the given SyS-T handle.
+ *
+ * @param h SyS-T handle from #MIPI_SYST_INIT_HANDLE or #MIPI_SYST_ALLOC_HANDLE
+ * @param guid mipi_syst_guid data structure
+ * @param unit unit id (0x0..0xF)
+ *
+ * @see mipi_syst_msg_tag
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ * //
+ * static const struct mipi_syst_guid guid =
+ * MIPI_SYST_GEN_GUID(0x494E5443, 0xA2AE, 0x4C70, 0xABB5, 0xD1A79E9CEA35);
+ *
+ * void foo()
+ * {
+ * struct mipi_syst_handle* svh = MIPI_SYST_ALLOC_HANDLE(NULL);
+ *
+ * // tag message with GUID and 1 as unit id
+ * //
+ * MIPI_SYST_SET_HANDLE_GUID_UNIT(svh, guid, 1);
+ * }
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_SET_HANDLE_GUID_UNIT(h, guid, unit) \
+do { \
+ if (h) { \
+ (h)->systh_guid.u.ll[0] = MIPI_SYST_HTOLE64((guid).u.ll[0]); \
+ (h)->systh_guid.u.ll[1] = MIPI_SYST_HTOLE64((guid).u.ll[1]); \
+ (h)->systh_tag.et_modunit = (unit); \
+ (h)->systh_tag.et_guid = 1;\
+ } \
+} while (0)
+
+ /**
+ * Change message origin using mipi_sys_t_origin structure
+ *
+ * @param h SyS-T handle from #MIPI_SYST_INIT_HANDLE or #MIPI_SYST_ALLOC_HANDLE
+ * @param o origin structure
+ *
+ * @see #MIPI_SYST_SET_HANDLE_GUID_UNIT mipi_syst_origin
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ * // Define origin used by this example as the message client ID
+ * //
+ * static const struct mipi_syst_origin origin =
+ * MIPI_SYST_GEN_ORIGIN_GUID(0x494E5443, 0xA2AE, 0x4C70, 0xABB5, 0xD1A79E9CEA35, 1);
+ *
+ * struct mipi_syst_handle* svh = MIPI_SYST_ALLOC_HANDLE(NULL);
+ *
+ * // tag message with GUID and 1 as unit id
+ * //
+ * MIPI_SYST_SET_HANDLE_ORIGIN(svh, origin);
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_SET_HANDLE_ORIGIN(h, o) \
+do { \
+ /* Guid byte 8 bit 7 indicates if full GUID or \
+ * short module header is used. This bit is never \
+ * 0 for RFC4122 compliant guids. \
+ */ \
+ if (0 != ((o).guid.u.b[8] & 0x80)) { \
+ MIPI_SYST_SET_HANDLE_GUID_UNIT( \
+ (h), \
+ (o).guid, \
+ (o).unit); \
+ } else { \
+ MIPI_SYST_SET_HANDLE_MODULE_UNIT( \
+ (h), \
+ (o).guid.u.b[8], \
+ (o).unit); \
+ } \
+} while(0)
+
+#else
+#define MIPI_SYST_SET_HANDLE_GUID_UNIT(p, g, u) \
+CFG_ERROR_SET_HANDLE_GUID_UNIT_WITHOUT_MIPI_SYST_PCFG_ENABLE_ORIGIN_GUID
+#endif
+
+#if defined(MIPI_SYST_PCFG_ENABLE_TIMESTAMP)
+/**
+ * Enable protocol specific time stamp support on this SyS-T handle.
+ *
+ * @param h SyS-T handle from #MIPI_SYST_INIT_HANDLE or #MIPI_SYST_ALLOC_HANDLE
+ * @param v 0 disable, 1 enable
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ * void foo()
+ * {
+ * struct mipi_syst_handle* svh = MIPI_SYST_ALLOC_HANDLE(NULL);
+
+ * MIPI_SYST_ENABLE_HANDLE_TIMESTAMP(svh, 1);
+ * }
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_ENABLE_HANDLE_TIMESTAMP(h, v) \
+ ((h) && ((h)->systh_tag.et_timestamp = (v) ? 1 : 0))
+
+/**
+ * Get timestamp generation state from given SyS-T handle
+ *
+ * @param h SyS-T handle from #MIPI_SYST_INIT_HANDLE or #MIPI_SYST_ALLOC_HANDLE
+ * @return 0 if disabled, otherwise enabled
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ * struct mipi_syst_handle* svh = MIPI_SYST_ALLOC_HANDLE(NULL);
+ *
+ * if (MIPI_SYST_GET_HANDLE_TIMESTAMP(svh)) {
+ * // timestamp enabled ...
+ * }
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_GET_HANDLE_TIMESTAMP(h) \
+ (((h) && (h)->systh_tag.et_timestamp) ? 1 : 0)
+
+#else
+#define MIPI_SYST_ENABLE_HANDLE_TIMESTAMP(h,v ) \
+CFG_ERROR_MIPI_SYST_ENABLE_HANDLE_TIMESTAMP_WITHOUT_MIPI_SYST_PCFG_ENABLE_TIMESTAMP
+#endif
+
+
+
+/**
+ * Delete a SyS-T handle
+ *
+ * @param h SyS-T handle from #MIPI_SYST_INIT_HANDLE or #MIPI_SYST_ALLOC_HANDLE
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ * void foo()
+ * {
+ * struct mipi_syst_handle* svh = MIPI_SYST_ALLOC_HANDLE(NULL);
+ *
+ * // ...
+ *
+ * MIPI_SYST_DELETE_HANDLE(svh);
+ * }
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_DELETE_HANDLE(h) \
+ mipi_syst_delete_handle(h)
+
+/** @} */
+
+/**
+ * Pass null to instrumentation API to skip location information generation.
+ */
+#define MIPI_SYST_NOLOCATION (struct mipi_syst_msglocation *)0
+
+/**
+ * @defgroup WriteAPI Raw Data Writing Macros
+ * @ingroup ApiSets
+ *
+ * Raw data writing macros:
+ * @{
+ */
+
+/**
+ * Send short data message with 28-bit payload.<BR>
+ *
+ * This API is indented for space and speed restricted environments that
+ * cannot support the more complex message types.
+ * @param h mipi_syst_handle* SyS-T handle
+ * @param v 28-bit output value. The upper 4 bits of the parameter value
+ * are discarded
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ * #define INIT_START 1
+ * #define INIT_DONE 2
+ *
+ * foo()
+ * {
+ * MIPI_SYST_SHORT32(svh, INIT_START);
+ * // processing ..
+ * //
+ *
+ * MIPI_SYST_SHORT32(svh, INIT_DONE);
+ * // ..
+ * }
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_SHORT32(h, v) \
+ MIPI_SYST_OUTPUT_D32MTS(h,\
+ (((v)<<4) | (mipi_syst_u32)MIPI_SYST_TYPE_SHORT32))
+
+/**
+ * Send short data message with 60-bit payload.<BR>
+ *
+ * This API is indented for space and speed restricted environments that
+ * cannot support the more complex message types.
+ * @param h mipi_syst_handle* SyS-T handle
+ * @param v 60-bit output value. The upper 4 bits of the parameter value
+ * are discarded.
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ * #define INIT_START 1
+ * #define INIT_DONE 2
+ *
+ * foo()
+ * {
+ * MIPI_SYST_SHORT64(svh, INIT_START);
+ * // processing ..
+ * //
+ *
+ * MIPI_SYST_SHORT64(svh, INIT_DONE);
+ * // ..
+ * }
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_SHORT64(h, v) \
+ MIPI_SYST_OUTPUT_D64MTS(h,\
+ (((v)<<4) | (mipi_syst_u64)MIPI_SYST_TYPE_SHORT64))
+
+
+#if defined(MIPI_SYST_PCFG_ENABLE_TIMESTAMP)
+
+/**
+ * Send a timesync Message that helps the decode Software to synchronize the
+ * transport protocol clock value (e.g., the MIPI STP timestamp) with trace
+ * hardware generated clocks. This API depends on the platform define
+ * #MIPI_SYST_PCFG_ENABLE_TIMESTAMP.
+ * @param h mipi_syst_handle* SyS-T handle
+ * @param c 64-bit clock value from message timestamp clock
+ * @param f 64-bit message timestamp clock frequency value in Herz
+ */
+#define MIPI_SYST_CLOCK_SYNC(h, c, f)\
+ mipi_syst_write_clock((h),\
+ MIPI_SYST_NOLOCATION,\
+ MIPI_SYST_CLOCK_TRANSPORT_SYNC,\
+ (c),\
+ (f))
+
+MIPI_SYST_EXPORT void MIPI_SYST_CALLCONV
+mipi_syst_write_clock(struct mipi_syst_handle* svh,
+ struct mipi_syst_msglocation* loc,
+ enum mipi_syst_subtype_clock fmt,
+ mipi_syst_u64 clock,
+ mipi_syst_u64 freq);
+#endif /* defined(MIPI_SYST_PCFG_ENABLE_TIMESTAMP) */
+
+#if defined(MIPI_SYST_PCFG_ENABLE_WRITE_API)
+
+/**
+ * Send raw data message with user defined payload.<BR>
+ *
+ * @param h mipi_syst_handle* SyS-T handle
+ * @param sev mipi_syst_severity severity level (0..7)
+ * @param id 8-bit message protocol ID. This ID is used to identify
+ * the data protocol in the payload of this message for pretty
+ * printing in trace decoders. The protocol ID must uniquely
+ * identify the contents within the SyS-T handle's
+ * #mipi_syst_msg_tag.et_modunit id or
+ * #mipi_syst_handle.systh_guid value. The protocol decoder
+ * uses this value to route data from `MIPI_SYST_WRITE()` calls
+ * to other cascaded decoders to actually
+ * process the contents.
+ * @param p pointer to raw data to send
+ * @param len 16-bit length of data to send
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ *
+ * // emit raw data under user defined decode ID 5
+ * //
+ * unsigned char data[] = { 0,1,2,3,4,5,6,7,8,9 };
+ *
+ * MIPI_SYST_WRITE(systh, MIPI_SYST_SEVERITY_INFO, 5, data, sizeof(data));
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_WRITE(h, sev, id, p, len) \
+ mipi_syst_write_raw_message((h), \
+ MIPI_SYST_NOLOCATION, (sev), (id), (p), (len))
+
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD)
+
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_ADDRESS)
+
+/** @copydoc MIPI_SYST_WRITE(h, sev, id, p, len) */
+#define MIPI_SYST_WRITE_LOCADDR(h, sev, id, p, len) \
+ mipi_syst_write_raw_message((h),\
+ mipi_syst_make_address_location((h), mipi_syst_return_addr()),\
+ (sev), (id), (p), (len))
+
+#endif /* defined(MIPI_SYST_PCFG_ENABLE_LOCATION_ADDRESS) */
+
+/**
+* Send raw data message with user defined payload.<BR>
+*
+* @param h mipi_syst_handle* SyS-T handle
+* @param sev mipi_syst_severity severity level (0..7)
+* @param file file ID as 16-bit value
+* @param id 8-bit message protocol ID. This ID is used to identify
+* the data protocol in the payload of this message for pretty
+* printing in trace decoders. The protocol ID must uniquely
+* identify the contents within the SyS-T handle's
+* #mipi_syst_msg_tag.et_modunit id or
+* #mipi_syst_handle.systh_guid value. The protocol decoder
+* uses this value to route data from `MIPI_SYST_WRITE()` calls
+* to other cascaded decoders to actually
+* process the contents.
+* @param p pointer to raw data to send
+* @param len 16-bit length of data to send
+*
+* Example:
+* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+*
+* #define THIS_FILE 100
+*
+* // emit raw data under user defined decode ID 5
+* //
+* unsigned char data[] = { 0,1,2,3,4,5,6,7,8,9 };
+*
+* MIPI_SYST_WRITE_LOC16(systh, MIPI_SYST_SEVERITY_INFO,
+ THIS_FILE, 5, data, sizeof(data));
+* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+*/
+#define MIPI_SYST_WRITE_LOC16(h, sev, file, id, p, len) \
+ mipi_syst_write_raw_message((h),\
+ mipi_syst_make_file_location32((h), \
+ (mipi_syst_u16)(file), \
+ (mipi_syst_u16)MIPI_SYST_LINE),\
+ (sev), (id), (p), (len))
+
+/**
+* Send raw data message with user defined payload.<BR>
+*
+* @param h mipi_syst_handle* SyS-T handle
+* @param sev mipi_syst_severity severity level (0..7)
+* @param file file ID as 32-bit value
+* @param id 8-bit message protocol ID. This ID is used to identify
+* the data protocol in the payload of this message for pretty
+* printing in trace decoders. The protocol ID must uniquely
+* identify the contents within the SyS-T handle's
+* #mipi_syst_msg_tag.et_modunit id or
+* #mipi_syst_handle.systh_guid value. The protocol decoder
+* uses this value to route data from `MIPI_SYST_WRITE()` calls
+* to other cascaded decoders to actually
+* process the contents.
+* @param p pointer to raw data to send
+* @param len 16-bit length of data to send
+*
+* Example:
+* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+*
+* #define THIS_FILE 100
+*
+* // emit raw data under user defined decode ID 5
+* //
+* unsigned char data[] = { 0,1,2,3,4,5,6,7,8,9 };
+*
+* MIPI_SYST_WRITE_LOC16(systh, MIPI_SYST_SEVERITY_INFO,
+THIS_FILE, 5, data, sizeof(data));
+* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+*/
+#define MIPI_SYST_WRITE_LOC32(h, sev, file, id, p, len) \
+ mipi_syst_write_raw_message((h),\
+ mipi_syst_make_file_location64((h), \
+ (mipi_syst_u32)(file), \
+ (mipi_syst_u32)MIPI_SYST_LINE),\
+ (sev), (id), (p), (len))
+
+#endif /* defined(MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD) */
+
+/** @} */
+
+MIPI_SYST_EXPORT void MIPI_SYST_CALLCONV
+mipi_syst_write_raw_message(struct mipi_syst_handle* svh,
+ struct mipi_syst_msglocation* loc,
+ enum mipi_syst_severity severity,
+ mipi_syst_u8 subtype,
+ const void *data, mipi_syst_u16 length);
+
+#endif /* #if defined(MIPI_SYST_PCFG_ENABLE_WRITE_API) */
+
+/**
+* @defgroup BuildAPI Build Number Message Macros
+* @ingroup ApiSets
+*
+* Build Number writing macros:
+* @{
+*/
+/**
+
+* Send compact client build number message with 22-bit payload.<BR>
+*
+* This API is indented for space and speed restricted environments that
+* cannot support the more complex message types.
+* @param h mipi_syst_handle* SyS-T handle
+* @param n 22-bit output value. The upper 10 bits of the parameter value
+* are discarded.
+*
+* Example:
+* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+* #define MY_BUILDID 0x3FFFFF
+*
+* foo()
+* {
+* MIPI_SYST_BUILD_COMPACT32(svh, MY_BUILDID);
+* }
+* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+*/
+#define MIPI_SYST_BUILD_COMPACT32(h, n) \
+ if (h) { MIPI_SYST_OUTPUT_D32MTS(h, (\
+ (((n) & 0x000FFFFF) << 4) | \
+ ((n) & 0xFFF00000) << 10));}
+
+/**
+* Send compact client build number message with 54-bit payload.<BR>
+*
+* This API is indented for space and speed restricted environments that
+* cannot support the more complex message types.
+* @param h mipi_syst_handle* SyS-T handle
+* @param n 54-bit output value. The upper 10 bits of the parameter value
+* are discarded.
+*
+* Example:
+* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+* #define MY_BUILDID 0x3FFFFFFFFFFFFFull
+*
+* foo()
+* {
+* MIPI_SYST_BUILD_COMPACT64(svh, MY_BUILDID);
+* }
+* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+*/
+#define MIPI_SYST_BUILD_COMPACT64(h, n) \
+ if (h) { MIPI_SYST_OUTPUT_D64MTS(h, (\
+ (0x00000000001000000ull | \
+ ((n) & 0x00000000000FFFFFull) << 4) | \
+ ((n) & 0xFFFFFFFFFFF00000ull) << 10));}
+
+
+#if defined(MIPI_SYST_PCFG_ENABLE_BUILD_API)
+
+/**
+ * Send client build number data message
+ *
+ * @param h mipi_syst_handle* SyS-T handle
+ * @param sev mipi_syst_severity severity level (0..7)
+ * @param bld 64-bit build ID.
+ * @param txt pointer to textual build description
+ * @param len 16-bit length of text data to send
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ *
+ * #define BUILD_NUMBER 0x1122334455667788ull
+ * #define BUILD_BANNER "MyApp-v1.2.3 (April 16 2018)"
+ *
+ * MIPI_SYST_BUILD(systh, MIPI_SYST_SEVERITY_INFO,
+ * BUILD_NUMBER,
+ * BUILD_BANNER, sizeof(BUILD_BANNER)
+ * );
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_BUILD(h, sev, bld, txt, len) \
+ mipi_syst_write_build_message((h), \
+ MIPI_SYST_NOLOCATION, (sev), (bld), (txt), (len))
+
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD)
+
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_ADDRESS)
+
+ /**
+ * Send client build number data message
+ *
+ * @param h mipi_syst_handle* SyS-T handle
+ * @param sev mipi_syst_severity severity level (0..7)
+ * @param bld 64-bit build ID.
+ * @param txt pointer to textual build description
+ * @param len 16-bit length of text data to send
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ *
+ * #define BUILD_NUMBER 0x1122334455667788ull
+ * #define BUILD_BANNER "MyApp-v1.2.3 (April 16 2018)"
+ *
+ * MIPI_SYST_BUILD_LOCADDR(systh, MIPI_SYST_SEVERITY_INFO,
+ * BUILD_NUMBER,
+ * BUILD_BANNER, sizeof(BUILD_BANNER)
+ * );
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_BUILD_LOCADDR(h, sev, bld, txt, len) \
+ mipi_syst_write_build_message((h),\
+ mipi_syst_make_address_location((h), mipi_syst_return_addr()),\
+ (sev), (bld), (txt), (len))
+
+#endif /* defined(MIPI_SYST_PCFG_ENABLE_LOCATION_ADDRESS) */
+
+ /**
+ * Send client build number data message
+ *
+ * @param h mipi_syst_handle* SyS-T handle
+ * @param sev mipi_syst_severity severity level (0..7)
+ * @param file file ID as 16-bit value
+ * @param bld 64-bit build ID.
+ * @param txt pointer to textual textual build description
+ * @param len 16-bit length of text data to send
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ *
+ * #define BUILD_NUMBER 0x1122334455667788ull
+ * #define BUILD_BANNER "MyApp-v1.2.3 (April 16 2018)"
+ *
+ * MIPI_SYST_BUILD_LOC16(systh, MIPI_SYST_SEVERITY_INFO, 10,
+ * BUILD_NUMBER,
+ * BUILD_BANNER, sizeof(BUILD_BANNER)
+ * );
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_BUILD_LOC16(h, sev, file, bld, txt, len) \
+ mipi_syst_write_build_message((h),\
+ mipi_syst_make_file_location32((h), \
+ (mipi_syst_u16)(file), \
+ (mipi_syst_u16)MIPI_SYST_LINE),\
+ (sev), (bld), (txt), (len))
+
+ /**
+ * Send client build number data message
+ *
+ * @param h mipi_syst_handle* SyS-T handle
+ * @param sev mipi_syst_severity severity level (0..7)
+ * @param file file ID as 32-bit value
+ * @param bld 64-bit build ID.
+ * @param txt pointer to textual build description
+ * @param len 16-bit length of text data to send
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ *
+ * #define BUILD_NUMBER 0x1122334455667788ull
+ * #define BUILD_BANNER "MyApp-v1.2.3 (April 16 2018)"
+ *
+ * MIPI_SYST_BUILD_LOC32(systh, MIPI_SYST_SEVERITY_INFO, 10,
+ * BUILD_NUMBER,
+ * BUILD_BANNER, sizeof(BUILD_BANNER)
+ * );
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_BUILD_LOC32(h, sev, file, bld, txt, len) \
+ mipi_syst_write_build_message((h),\
+ mipi_syst_make_file_location64((h), \
+ (mipi_syst_u32)(file), \
+ (mipi_syst_u32)MIPI_SYST_LINE),\
+ (sev), (bld), (txt), (len))
+
+#endif /* defined(MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD) */
+
+/** @} */
+
+MIPI_SYST_EXPORT void MIPI_SYST_CALLCONV
+mipi_syst_write_build_message(struct mipi_syst_handle* svh,
+ struct mipi_syst_msglocation* loc,
+ enum mipi_syst_severity severity,
+ mipi_syst_u64 id,
+ const char *text, mipi_syst_u16 length);
+#endif /* defined(MIPI_SYST_PCFG_ENABLE_BUILD_API) */
+
+/* public API prototypes */
+
+MIPI_SYST_EXPORT void MIPI_SYST_CALLCONV
+mipi_syst_init(struct mipi_syst_header* header, mipi_syst_inithook_t pfinit,
+ const void * init_data);
+MIPI_SYST_EXPORT void MIPI_SYST_CALLCONV mipi_syst_destroy(struct mipi_syst_header*
+ header,
+ mipi_syst_destroyhook_t
+ pfdestroy);
+MIPI_SYST_EXPORT struct mipi_syst_handle* MIPI_SYST_CALLCONV
+mipi_syst_init_handle(struct mipi_syst_header* header, struct mipi_syst_handle* svh,
+ const struct mipi_syst_origin *origin,
+ mipi_syst_u32 heap);
+MIPI_SYST_EXPORT void MIPI_SYST_CALLCONV mipi_syst_delete_handle(struct mipi_syst_handle*
+ svh);
+
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_ADDRESS)
+MIPI_SYST_EXPORT void *MIPI_SYST_CALLCONV mipi_syst_return_addr(void);
+#endif
+
+/* Inline helper functions
+ * These functions are only attempted to be inlined if the define
+ * MIPI_SYST_PCFG_ENABLE_INLINE is defined.
+ * Undefining it causes true functions calls to be used instead.
+ * This is useful if saving code space matters more then speed.
+ */
+#if defined(MIPI_SYST_PCFG_ENABLE_INLINE)
+#include "./inline.h"
+#else
+MIPI_SYST_INLINE struct mipi_syst_msglocation* MIPI_SYST_CALLCONV
+mipi_syst_make_file_location32(struct mipi_syst_handle* h, mipi_syst_u16 f,
+ mipi_syst_u16 l);
+MIPI_SYST_INLINE struct mipi_syst_msglocation* MIPI_SYST_CALLCONV
+mipi_syst_make_file_location64(struct mipi_syst_handle* h, mipi_syst_u32 f,
+ mipi_syst_u32 l);
+MIPI_SYST_INLINE struct mipi_syst_msglocation* MIPI_SYST_CALLCONV
+mipi_syst_make_address_location(struct mipi_syst_handle* h, void *p);
+
+MIPI_SYST_INLINE void MIPI_SYST_CALLCONV mipi_syst_make_param0(struct mipi_syst_handle* h);
+MIPI_SYST_INLINE void MIPI_SYST_CALLCONV
+mipi_syst_make_param1(struct mipi_syst_handle* h, mipi_syst_u32 p1);
+MIPI_SYST_INLINE void MIPI_SYST_CALLCONV
+mipi_syst_make_param2(struct mipi_syst_handle* h, mipi_syst_u32 p1,
+ mipi_syst_u32 p2);
+MIPI_SYST_INLINE void MIPI_SYST_CALLCONV mipi_syst_make_param3(struct mipi_syst_handle* h,
+ mipi_syst_u32 p1,
+ mipi_syst_u32 p2,
+ mipi_syst_u32 p3);
+MIPI_SYST_INLINE void MIPI_SYST_CALLCONV mipi_syst_make_param4(struct mipi_syst_handle* h,
+ mipi_syst_u32 p1,
+ mipi_syst_u32 p2,
+ mipi_syst_u32 p3,
+ mipi_syst_u32 p4);
+MIPI_SYST_INLINE void MIPI_SYST_CALLCONV mipi_syst_make_param5(struct mipi_syst_handle* h,
+ mipi_syst_u32 p1,
+ mipi_syst_u32 p2,
+ mipi_syst_u32 p3,
+ mipi_syst_u32 p4,
+ mipi_syst_u32 p5);
+MIPI_SYST_INLINE void MIPI_SYST_CALLCONV mipi_syst_make_param6(struct mipi_syst_handle* h,
+ mipi_syst_u32 p1,
+ mipi_syst_u32 p2,
+ mipi_syst_u32 p3,
+ mipi_syst_u32 p4,
+ mipi_syst_u32 p5,
+ mipi_syst_u32 p6);
+#endif
+
+
+#if defined(MIPI_SYST_PCFG_ENABLE_STRING_API)
+
+#define _MIPI_SYST_ASSERT_DEBUG_STRING(cond) \
+ MIPI_SYST_FILE ":" _MIPI_SYST_CPP_TOSTR(MIPI_SYST_LINE) " " #cond
+
+/**
+ * @defgroup StringAPI String Generating Macros
+ * @ingroup ApiSets
+ *
+ * String generating macros:
+ * @{
+ */
+
+/**
+ * Send UTF-8 character string with given severity and length.<BR>
+ *
+ * @param h mipi_syst_handle* SyS-T handle
+ * @param severity mipi_syst_severity severity level (0..7)
+ * @param str const mipi_syst_u8 * pointer to UTF-8 string bytes
+ * @param len mipi_syst_u16 number of bytes to emit
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ * #define FILE_ID 0xabdc // this file id
+ * char * str = "Hello World";
+ *
+ * MIPI_SYST_DEBUG(systh, MIPI_SYST_SEVERITY_INFO, str, strlen(str));
+ * MIPI_SYST_DEBUG_LOCADDR(systh, MIPI_SYST_SEVERITY_INFO, str, strlen(str));
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_DEBUG(h, severity, str, len) \
+ mipi_syst_write_debug_string((h), MIPI_SYST_NOLOCATION, \
+ MIPI_SYST_STRING_GENERIC, \
+ (severity), (len), (str))
+
+/**
+ * Send function enter string message.
+ *
+ * @param h mipi_syst_handle* SyS-T handle
+ * @param severity mipi_syst_severity severity level (0..7)
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ * void foo()
+ * {
+ * MIPI_SYST_FUNC_ENTER(systh, MIPI_SYST_SEVERITY_INFO);
+ * // body
+ * MIPI_SYST_FUNC_EXIT(systh, MIPI_SYST_SEVERITY_INFO);
+ * }
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_FUNC_ENTER(h, severity) \
+ mipi_syst_write_debug_string((h), MIPI_SYST_NOLOCATION, \
+ MIPI_SYST_STRING_FUNCTIONENTER, \
+ (severity), sizeof(MIPI_SYST_FUNCTION_NAME),\
+ MIPI_SYST_FUNCTION_NAME)
+
+/**
+ * Send function exit string message.
+ * The payload is the UTF-8 function name of the surrounding function
+ *
+ * @param h mipi_syst_handle* SyS-T handle
+ * @param severity mipi_syst_severity severity level (0..7)
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ * void foo()
+ * {
+ * MIPI_SYST_FUNC_ENTER(systh, MIPI_SYST_SEVERITY_INFO);
+ * // body
+ * MIPI_SYST_FUNC_EXIT(systh, MIPI_SYST_SEVERITY_INFO);
+ * }
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_FUNC_EXIT(h, severity) \
+ mipi_syst_write_debug_string((h), MIPI_SYST_NOLOCATION, \
+ MIPI_SYST_STRING_FUNCTIONEXIT, \
+ (severity), sizeof(MIPI_SYST_FUNCTION_NAME),\
+ MIPI_SYST_FUNCTION_NAME)
+
+/**
+ * Send assertion notice string message if the passed condition is false.
+ * The notice includes the failing expression string as its payload.
+ *
+ * @param h mipi_syst_handle* SyS-T handle
+ * @param severity mipi_syst_severity severity level (0..7)
+ * @param cond boolean condition to verify
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ * void foo(void * p)
+ * {
+ * MIPI_SYST_ASSERT(systh, MIPI_SYST_SEVERITY_ERROR, p != NULL);
+ * }
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_ASSERT(h, severity, cond) \
+ {\
+ if (!(cond)) {\
+ mipi_syst_write_debug_string((h),\
+ MIPI_SYST_NOLOCATION,\
+ MIPI_SYST_STRING_ASSERT, \
+ (severity), sizeof(_MIPI_SYST_ASSERT_DEBUG_STRING(cond)),\
+ _MIPI_SYST_ASSERT_DEBUG_STRING(cond));\
+ } \
+ }
+
+
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD)
+
+ /**
+ * Send UTF-8 character string with given severity and length.<BR>
+ *
+ * @param h mipi_syst_handle* SyS-T handle
+ * @param severity mipi_syst_severity severity level (0..7)
+ * @param file 16-bit user defined file ID
+ * @param str const mipi_syst_u8 * pointer to UTF-8 string bytes
+ * @param len mipi_syst_u16 number of bytes to emit
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ * #define FILE_ID 0xabdc // this file id
+ * char * str = "Hello World";
+ *
+ * MIPI_SYST_DEBUG_LOC16(systh, MIPI_SYST_SEVERITY_INFO, FILE_ID, str, strlen(str));
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_DEBUG_LOC16(h, severity, file, str, len) \
+ mipi_syst_write_debug_string((h), \
+ mipi_syst_make_file_location32((h), \
+ (mipi_syst_u16)(file), \
+ (mipi_syst_u16)MIPI_SYST_LINE),\
+ MIPI_SYST_STRING_GENERIC, \
+ (severity), (len), (str))
+ /**
+ * Send UTF-8 character string with given severity and length.<BR>
+ *
+ * @param h mipi_syst_handle* SyS-T handle
+ * @param severity mipi_syst_severity severity level (0..7)
+ * @param file 32-bit user defined file ID
+ * @param str const mipi_syst_u8 * pointer to UTF-8 string bytes
+ * @param len mipi_syst_u16 number of bytes to emit
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ * #define FILE_ID 0x0000abdc // this file id
+ * char * str = "Hello World";
+ *
+ * MIPI_SYST_DEBUG_LOC32(systh, MIPI_SYST_SEVERITY_INFO, FILE_ID, str, strlen(str));
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_DEBUG_LOC32(h, severity, file, str, len) \
+ mipi_syst_write_debug_string((h), \
+ mipi_syst_make_file_location64((h), \
+ (mipi_syst_u32)(file), \
+ (mipi_syst_u32)MIPI_SYST_LINE),\
+ MIPI_SYST_STRING_GENERIC, \
+ (severity), (len), (str))
+
+ /**
+ * Send function enter string message.
+ * The payload is the UTF-8 function name of the surrounding function.
+ *
+ * @param h mipi_syst_handle* SyS-T handle
+ * @param severity mipi_syst_severity severity level (0..7)
+ * @param file 16-bit user defined file ID
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ * void foo()
+ * {
+ * MIPI_SYST_FUNC_ENTER_LOC16(systh, 10, MIPI_SYST_SEVERITY_INFO);
+ * // body
+ * MIPI_SYST_FUNC_EXIT_LOC16(systh, 10, MIPI_SYST_SEVERITY_INFO);
+ * }
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_FUNC_ENTER_LOC16(h, severity, file) \
+ mipi_syst_write_debug_string((h),\
+ mipi_syst_make_file_location32((h), \
+ (mipi_syst_u16)(file), \
+ (mipi_syst_u16)MIPI_SYST_LINE),\
+ MIPI_SYST_STRING_FUNCTIONENTER, \
+ (severity), sizeof(MIPI_SYST_FUNCTION_NAME),\
+ MIPI_SYST_FUNCTION_NAME)
+
+ /**
+ * Send function exit string message.
+ * The payload is the UTF-8 function name of the surrounding function.
+ *
+ * @param h mipi_syst_handle* SyS-T handle
+ * @param severity mipi_syst_severity severity level (0..7)
+ * @param file 16-bit user defined file ID
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ * void foo()
+ * {
+ * MIPI_SYST_FUNC_ENTER_LOC16(systh, 10, MIPI_SYST_SEVERITY_INFO);
+ * // body
+ * MIPI_SYST_FUNC_EXIT_LOC16(systh, 10, MIPI_SYST_SEVERITY_INFO);
+ * }
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_FUNC_EXIT_LOC16(h, severity, file) \
+ mipi_syst_write_debug_string((h),\
+ mipi_syst_make_file_location32((h), \
+ (mipi_syst_u16)(file), \
+ (mipi_syst_u16)MIPI_SYST_LINE),\
+ MIPI_SYST_STRING_FUNCTIONEXIT, \
+ (severity), sizeof(MIPI_SYST_FUNCTION_NAME),\
+ MIPI_SYST_FUNCTION_NAME)
+
+/**
+* Send assertion notice string message if the passed condition is false.
+* The notice includes the failing expression string as its payload.
+*
+* @param h mipi_syst_handle* SyS-T handle
+* @param severity mipi_syst_severity severity level (0..7)
+* @param file 16-bit user defined file ID
+* @param cond boolean condition to verify
+*
+* Example:
+* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+* void foo(void * p)
+* {
+* MIPI_SYST_ASSERT(systh, 1, MIPI_SYST_SEVERITY_ERROR, p != NULL);
+* }
+* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+*/
+#define MIPI_SYST_ASSERT_LOC16(h, severity, file, cond) \
+ {\
+ if (!(cond)) {\
+ mipi_syst_write_debug_string((h),\
+ mipi_syst_make_file_location32((h), \
+ (mipi_syst_u16)(file), \
+ (mipi_syst_u16)MIPI_SYST_LINE),\
+ MIPI_SYST_STRING_ASSERT, \
+ (severity), sizeof(_MIPI_SYST_ASSERT_DEBUG_STRING(cond)),\
+ _MIPI_SYST_ASSERT_DEBUG_STRING(cond));\
+ } \
+ }
+/**
+* Send function enter string message.
+* The payload is the UTF-8 function name of the surrounding function.
+*
+* @param h mipi_syst_handle* SyS-T handle
+* @param severity mipi_syst_severity severity level (0..7)
+* @param file 32-bit user defined file ID
+*
+* Example:
+* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+* void foo()
+* {
+* MIPI_SYST_FUNC_ENTER_LOC32(systh, 10, MIPI_SYST_SEVERITY_INFO);
+* // body
+* MIPI_SYST_FUNC_EXIT_LOC32(systh, 10, MIPI_SYST_SEVERITY_INFO);
+* }
+* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+*/
+#define MIPI_SYST_FUNC_ENTER_LOC32(h, severity, file) \
+ mipi_syst_write_debug_string((h),\
+ mipi_syst_make_file_location64((h), \
+ (mipi_syst_u32)(file), \
+ (mipi_syst_u32)MIPI_SYST_LINE),\
+ MIPI_SYST_STRING_FUNCTIONENTER, \
+ (severity), sizeof(MIPI_SYST_FUNCTION_NAME),\
+ MIPI_SYST_FUNCTION_NAME)
+/**
+* Send function exit string message.
+* The payload is the UTF-8 function name of the surrounding function.
+*
+* @param h mipi_syst_handle* SyS-T handle
+* @param severity mipi_syst_severity severity level (0..7)
+* @param file 32-bit user defined file ID
+*
+* Example:
+* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+* void foo()
+* {
+* MIPI_SYST_FUNC_ENTER_LOC32(systh, 10, MIPI_SYST_SEVERITY_INFO);
+* // body
+* MIPI_SYST_FUNC_EXIT_LOC32(systh, 10, MIPI_SYST_SEVERITY_INFO);
+* }
+* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+*/
+#define MIPI_SYST_FUNC_EXIT_LOC32(h, severity, file) \
+ mipi_syst_write_debug_string((h),\
+ mipi_syst_make_file_location64((h), \
+ (mipi_syst_u32)(file), \
+ (mipi_syst_u32)MIPI_SYST_LINE),\
+ MIPI_SYST_STRING_FUNCTIONEXIT, \
+ (severity), sizeof(MIPI_SYST_FUNCTION_NAME),\
+ MIPI_SYST_FUNCTION_NAME)
+/**
+* Send assertion notice string message if the passed condition is false.
+* The notice includes the failing expression string as its payload.
+*
+* @param h mipi_syst_handle* SyS-T handle
+* @param severity mipi_syst_severity severity level (0..7)
+* @param file 32-bit user defined file ID
+* @param cond boolean condition to verify
+*
+* Example:
+* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+* void foo(void * p)
+* {
+* MIPI_SYST_ASSERT(systh, 1, MIPI_SYST_SEVERITY_ERROR, p != NULL);
+* }
+* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+*/
+#define MIPI_SYST_ASSERT_LOC32(h, severity, file, cond) \
+ { \
+ if (!(cond)) {\
+ mipi_syst_write_debug_string((h),\
+ mipi_syst_make_file_location64((h), \
+ (mipi_syst_u32)(file), \
+ (mipi_syst_u32)MIPI_SYST_LINE),\
+ MIPI_SYST_STRING_ASSERT, \
+ (severity), sizeof(_MIPI_SYST_ASSERT_DEBUG_STRING(cond)),\
+ _MIPI_SYST_ASSERT_DEBUG_STRING(cond));\
+ } \
+ }
+
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_ADDRESS)
+
+/** @copydoc MIPI_SYST_DEBUG */
+#define MIPI_SYST_DEBUG_LOCADDR(h, severity, str, len) \
+ mipi_syst_write_debug_string((h), \
+ mipi_syst_make_address_location((h),\
+ mipi_syst_return_addr()),\
+ MIPI_SYST_STRING_GENERIC, \
+ (severity), (len), (str))
+
+/**
+* Send function enter string message.
+* The payload is the UTF-8 function name of the surrounding function.
+
+*
+* @param h mipi_syst_handle* SyS-T handle
+* @param severity mipi_syst_severity severity level (0..7)
+*
+* Example:
+* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+* void foo()
+* {
+* MIPI_SYST_FUNC_ENTER_LOCADDR(systh, MIPI_SYST_SEVERITY_INFO);
+* // body
+* MIPI_SYST_FUNC_EXIT_LOCADDR(systh, MIPI_SYST_SEVERITY_INFO);
+* }
+* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+*/
+#define MIPI_SYST_FUNC_ENTER_LOCADDR(h, severity) \
+ mipi_syst_write_debug_string((h),\
+ mipi_syst_make_address_location((h),\
+ mipi_syst_return_addr()),\
+ MIPI_SYST_STRING_FUNCTIONENTER, \
+ (severity), sizeof(MIPI_SYST_FUNCTION_NAME),\
+ MIPI_SYST_FUNCTION_NAME)
+
+/**
+* Send function exit string message. The payload is the UTF-8 function name
+* of the surrounding function
+*
+* @param h mipi_syst_handle* SyS-T handle
+* @param severity mipi_syst_severity severity level (0..7)
+*
+* Example:
+* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+* void foo()
+* {
+* MIPI_SYST_FUNC_ENTER_LOCADDR(systh, MIPI_SYST_SEVERITY_INFO);
+* // body
+* MIPI_SYST_FUNC_EXIT_LOCADDR(systh, MIPI_SYST_SEVERITY_INFO);
+* }
+* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+*/
+#define MIPI_SYST_FUNC_EXIT_LOCADDR(h, severity) \
+ mipi_syst_write_debug_string((h),\
+ mipi_syst_make_address_location((h),\
+ mipi_syst_return_addr()),\
+ MIPI_SYST_STRING_FUNCTIONEXIT, \
+ (severity), sizeof(MIPI_SYST_FUNCTION_NAME),\
+ MIPI_SYST_FUNCTION_NAME)
+
+/** @copydoc MIPI_SYST_ASSERT(svh, severity) */
+#define MIPI_SYST_ASSERT_LOCADDR(h, severity, cond) \
+ { \
+ if (!(cond)) {\
+ mipi_syst_write_debug_string((h),\
+ mipi_syst_make_address_location((h),\
+ mipi_syst_return_addr()),\
+ MIPI_SYST_STRING_ASSERT, \
+ (severity), sizeof(_MIPI_SYST_ASSERT_DEBUG_STRING(cond)),\
+ _MIPI_SYST_ASSERT_DEBUG_STRING(cond));\
+ } \
+ }
+
+#endif /* defined(MIPI_SYST_PCFG_ENABLE_LOCATION_ADDRESS) */
+
+#endif /* defined(MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD) */
+
+MIPI_SYST_EXPORT void MIPI_SYST_CALLCONV
+mipi_syst_write_debug_string(struct mipi_syst_handle* svh,
+ struct mipi_syst_msglocation* loc,
+ enum mipi_syst_subtype_string type,
+ enum mipi_syst_severity severity,
+ mipi_syst_u16 len, const char *str);
+
+#endif /* defined (MIPI_SYST_PCFG_ENABLE_STRING_API) */
+
+#if defined(MIPI_SYST_PCFG_ENABLE_PRINTF_API)
+
+/**
+ * Send UTF-8 character string in C99 printf format together with
+ * the arguments to support printf() style output formatting.
+ *
+ * @param h mipi_syst_handle* SyS-T handle
+ * @param severity mipi_syst_severity severity level (0..7)
+ * @param str const mipi_syst_u8 * pointer to UTF-8 string bytes
+ * @param ... optional format arguments
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ *
+ * MIPI_SYST_PRINTF(systh, MIPI_SYST_SEVERITY_INFO,
+ * "The %s jumps over the %s %d times", "cow", "moon", 10);
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_PRINTF(h, severity, str, ...) \
+ mipi_syst_write_printf_string((h), MIPI_SYST_NOLOCATION, \
+ (severity),\
+ (str),\
+ ##__VA_ARGS__)
+
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD)
+
+ /**
+ * Send UTF-8 character string in C99 printf format together with
+ * the arguments to support printf() style output formatting.
+ *
+ * @param h mipi_syst_handle* SyS-T handle
+ * @param severity mipi_syst_severity severity level (0..7)
+ * @param file 16-bit user defined file ID
+ * @param str const mipi_syst_u8 * pointer to UTF-8 string bytes
+ * @param ... optional format arguments
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ *
+ * MIPI_SYST_PRINTF_LOC16(systh, MIPI_SYST_SEVERITY_INFO, 10,
+ * "The %s jumps over the %s %d times", "cow", "moon", 10);
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_PRINTF_LOC16(h, severity, file, str, ...) \
+ mipi_syst_write_printf_string((h), \
+ mipi_syst_make_file_location32((h), \
+ (mipi_syst_u16)(file), \
+ (mipi_syst_u16)MIPI_SYST_LINE),\
+ (severity),\
+ (str),\
+ ##__VA_ARGS__)
+
+ /**
+ * Send UTF-8 character string in C99 printf format together with
+ * the arguments to support printf() style output formatting.
+ *
+ * @param h mipi_syst_handle* SyS-T handle
+ * @param severity mipi_syst_severity severity level (0..7)
+ * @param file 32-bit user defined file ID
+ * @param str const mipi_syst_u8 * pointer to UTF-8 string bytes
+ * @param ... optional format arguments
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ *
+ * MIPI_SYST_PRINTF_LOC32(systh, MIPI_SYST_SEVERITY_INFO, 10,
+ * "The %s jumps over the %s %d times", "cow", "moon", 10);
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_PRINTF_LOC32(h, severity, file, str, ...) \
+ mipi_syst_write_printf_string((h), \
+ mipi_syst_make_file_location64((h), \
+ (mipi_syst_u32)(file), \
+ (mipi_syst_u32)MIPI_SYST_LINE),\
+ (severity),\
+ (str),\
+ ##__VA_ARGS__)
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_ADDRESS)
+
+ /**
+ * Send UTF-8 character string in C99 printf format together with
+ * the arguments to support printf() style output formatting.
+ *
+ * @param h mipi_syst_handle* SyS-T handle
+ * @param severity mipi_syst_severity severity level (0..7)
+ * @param str const mipi_syst_u8 * pointer to UTF-8 string bytes
+ * @param ... optional format arguments
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ *
+ * MIPI_SYST_PRINTF_LOCADDR(systh, MIPI_SYST_SEVERITY_INFO,
+ * "The %s jumps over the %s %d times", "cow", "moon", 10);
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_PRINTF_LOCADDR(h, severity, str, ...) \
+ mipi_syst_write_printf_string((h), \
+ mipi_syst_make_address_location((h),\
+ mipi_syst_return_addr()),\
+ (severity), \
+ (str),\
+ ##__VA_ARGS__)
+
+#endif /* defined(MIPI_SYST_PCFG_ENABLE_LOCATION_ADDRESS) */
+#endif /* defined(MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD) */
+
+MIPI_SYST_EXPORT void MIPI_SYST_CALLCONV
+mipi_syst_write_printf_string(struct mipi_syst_handle* svh,
+ struct mipi_syst_msglocation* loc,
+ enum mipi_syst_severity severity,
+ const char *fmt,
+ ...);
+#endif /* MIPI_SYST_PCFG_ENABLE_PRINTF_API */
+
+/** @} */
+
+/** Parameter encoding values for vararg style catalog APIs
+ */
+enum mipi_syst_catalog_parameter_types {
+ _MIPI_SYST_CATARG_END = 0, /**< end of parameter list */
+ _MIPI_SYST_CATARG_D = 1, /**< int like %d */
+ _MIPI_SYST_CATARG_LD = 2, /**< long like %ld */
+ _MIPI_SYST_CATARG_LLD = 3, /**< long long like %lld */
+ _MIPI_SYST_CATARG_ZD = 4, /**< size_t like %z */
+ _MIPI_SYST_CATARG_TD = 5, /**< ptrdiff_t like %t */
+ _MIPI_SYST_CATARG_F = 6, /**< double like %f */
+ _MIPI_SYST_CATARG_LF = 7, /**< long double like %lf */
+ _MIPI_SYST_CATARG_C = 8, /**< char like %c */
+ _MIPI_SYST_CATARG_HHD = 9, /**< short like %hhd */
+ _MIPI_SYST_CATARG_LC = 10, /**< long char like %lc */
+ _MIPI_SYST_CATARG_P = 11, /**< void * like %p or %n */
+ _MIPI_SYST_CATARG_CSTR = 12 /**< char * like %s */
+};
+#define _MIPI_SYST_MK_PARAM_LIST(tag, p) _MIPI_SYST_CATARG_##tag, p
+
+#define MIPI_SYST_PARAM_INT(p) _MIPI_SYST_MK_PARAM_LIST(D, (p)) /**< int like %d */
+#define MIPI_SYST_PARAM_LONG(p) _MIPI_SYST_MK_PARAM_LIST(LD, (p)) /**< long like %ld */
+#define MIPI_SYST_PARAM_LONGLONG(p) _MIPI_SYST_MK_PARAM_LIST(LLD, (p)) /**< long long like %lld */
+#define MIPI_SYST_PARAM_SIZE_T(p) _MIPI_SYST_MK_PARAM_LIST(ZD, (p)) /**< size_t like %z */
+#define MIPI_SYST_PARAM_PTRDIFF_T(p) _MIPI_SYST_MK_PARAM_LIST(TD, (p)) /**< ptrdiff_t like %t */
+#define MIPI_SYST_PARAM_FLOAT(p) _MIPI_SYST_MK_PARAM_LIST(F, (p)) /**< float like %f */
+#define MIPI_SYST_PARAM_DOUBLE(p) _MIPI_SYST_MK_PARAM_LIST(F, (p)) /**< double like %f */
+#define MIPI_SYST_PARAM_LONGDOUBLE(p) _MIPI_SYST_MK_PARAM_LIST(LF, (p)) /**< long double like %lf */
+#define MIPI_SYST_PARAM_CHAR(p) _MIPI_SYST_MK_PARAM_LIST(C, (p)) /**< char like %c */
+#define MIPI_SYST_PARAM_SHORT(p) _MIPI_SYST_MK_PARAM_LIST(HHD, (p)) /**< short like %hhd */
+#define MIPI_SYST_PARAM_WCHAR(p) _MIPI_SYST_MK_PARAM_LIST(LC, (p)) /**< long char like %lc */
+#define MIPI_SYST_PARAM_PTR(p) _MIPI_SYST_MK_PARAM_LIST(P, (p)) /**< void * like %p or %n */
+#define MIPI_SYST_PARAM_CSTR(p) _MIPI_SYST_MK_PARAM_LIST(CSTR, (p)) /**< char * like %s */
+
+/**
+ * @defgroup CatAPI64 64-Bit Catalog Message Macros
+ * @ingroup ApiSets
+ *
+ * Catalog message instrumentation API
+ *
+ * Note: This API set is enabled or disabled by the
+ * #MIPI_SYST_PCFG_ENABLE_CATID64_API and/or #MIPI_SYST_PCFG_ENABLE_CATID32_API
+ * platform feature defines.
+ * @{
+ */
+
+#if defined(MIPI_SYST_PCFG_ENABLE_CATID64_API)
+
+/**
+ * Send catalog message with 0-6 parameters.<BR>
+ * This family of Macros is used to send 32 or 64-bit wide catalog
+ * message IDs with up to six 32-bit wide parameters into the trace stream.
+ * The macro names are encoded in the following way:
+ * MIPI_SYST_CATALOG{ID-WIDTH}_{PARAMETER-COUNT}
+ *
+ * Example: A 32-bit ID using catalog function with 3 parameters whould be
+ * called MIPI_SYST_CATALOG32_3.
+ *
+ * @param svh mipi_syst_handle* SyS-T handle
+ * @param sev mipi_syst_severity severity level (0..7)
+ * @param id catalog ID
+ *
+ * Up to 6 32-Bit numeric parameter follow the catalog ID.
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ *
+ * // emit plain catalog id (no parameter)
+ * //
+ * MIPI_SYST_CATALOG32_0(svh, MIPI_SYST_SEVERITY_ERROR, MSGID_INIT_FAIL);
+ *
+ * // catalog id with one parameter
+ * //
+ * MIPI_SYST_CATALOG32_1(svh, MIPI_SYST_SEVERITY_INFO, MSGID_SETLEVEL, 0x3);
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_CATALOG64_0(svh, sev, id)\
+ (mipi_syst_make_param0(svh),\
+ mipi_syst_write_catalog64_message((svh), MIPI_SYST_NOLOCATION, (sev), (id)))
+#define MIPI_SYST_CATALOG64_1(svh, sev, id, p1)\
+ (mipi_syst_make_param1(svh, p1),\
+ mipi_syst_write_catalog64_message((svh), MIPI_SYST_NOLOCATION, (sev), (id)))
+#define MIPI_SYST_CATALOG64_2(svh, sev, id, p1, p2)\
+ (mipi_syst_make_param2(svh, p1, p2),\
+ mipi_syst_write_catalog64_message((svh), MIPI_SYST_NOLOCATION, (sev), (id)))
+#define MIPI_SYST_CATALOG64_3(svh, sev, id, p1, p2, p3)\
+ (mipi_syst_make_param3(svh, p1, p2, p3),\
+ mipi_syst_write_catalog64_message((svh), MIPI_SYST_NOLOCATION, (sev), (id)))
+#define MIPI_SYST_CATALOG64_4(svh, sev, id, p1, p2, p3, p4)\
+ (mipi_syst_make_param4(svh, p1, p2, p3, p4),\
+ mipi_syst_write_catalog64_message((svh), MIPI_SYST_NOLOCATION, (sev), (id)))
+#define MIPI_SYST_CATALOG64_5(svh, sev, id, p1, p2, p3, p4, p5)\
+ (mipi_syst_make_param5(svh, p1, p2, p3, p4, p5),\
+ mipi_syst_write_catalog64_message((svh), MIPI_SYST_NOLOCATION, (sev), (id)))
+#define MIPI_SYST_CATALOG64_6(svh, sev, id, p1, p2, p3, p4, p5, p6)\
+ (mipi_syst_make_param6(svh, p1, p2, p3, p4, p5, p6),\
+ mipi_syst_write_catalog64_message((svh), MIPI_SYST_NOLOCATION, (sev), (id)))
+
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD)
+
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_ADDRESS)
+
+#define MIPI_SYST_CATALOG64_0_LOCADDR(svh, sev, id)\
+ (mipi_syst_make_param0(svh),\
+ mipi_syst_write_catalog64_message((svh),\
+ mipi_syst_make_address_location((svh), mipi_syst_return_addr()),\
+ (sev), (id)))
+#define MIPI_SYST_CATALOG64_1_LOCADDR(svh, sev, id, p1)\
+ (mipi_syst_make_param1(svh, p1),\
+ mipi_syst_write_catalog64_message((svh),\
+ mipi_syst_make_address_location((svh), mipi_syst_return_addr()),\
+ (sev), (id)))
+#define MIPI_SYST_CATALOG64_2_LOCADDR(svh, sev, id, p1, p2)\
+ (mipi_syst_make_param2(svh, p1, p2),\
+ mipi_syst_write_catalog64_message((svh),\
+ mipi_syst_make_address_location((svh), mipi_syst_return_addr()),\
+ (sev), (id)))
+#define MIPI_SYST_CATALOG64_3_LOCADDR(svh, sev, id, p1, p2, p3)\
+ (mipi_syst_make_param3(svh, p1, p2, p3),\
+ mipi_syst_write_catalog64_message((svh),\
+ mipi_syst_make_address_location((svh), mipi_syst_return_addr()),\
+ (sev), (id)))
+#define MIPI_SYST_CATALOG64_4_LOCADDR(svh, sev, id, p1, p2, p3, p4)\
+ (mipi_syst_make_param4(svh, p1, p2, p3, p4),\
+ mipi_syst_write_catalog64_message((svh),\
+ mipi_syst_make_address_location((svh), mipi_syst_return_addr()),\
+ (sev), (id)))
+#define MIPI_SYST_CATALOG64_5_LOCADDR(svh, sev, id, p1, p2, p3, p4, p5)\
+ (mipi_syst_make_param5(svh, p1, p2, p3, p4, p5),\
+ mipi_syst_write_catalog64_message((svh),\
+ mipi_syst_make_address_location((svh), mipi_syst_return_addr()),\
+ (sev), (id)))
+#define MIPI_SYST_CATALOG64_6_LOCADDR(svh, sev, id, p1, p2, p3, p4, p5, p6)\
+ (mipi_syst_make_param6(svh, p1, p2, p3, p4, p5, p6),\
+ mipi_syst_write_catalog64_message((svh),\
+ mipi_syst_make_address_location((svh), mipi_syst_return_addr()),\
+ (sev), (id)))
+
+#endif /* defined(MIPI_SYST_PCFG_ENABLE_LOCATION_ADDRESS) */
+
+#define MIPI_SYST_CATALOG64_0_LOC16(svh, sev, file, id)\
+ (mipi_syst_make_param0(svh),\
+ mipi_syst_write_catalog64_message((svh),\
+ mipi_syst_make_file_location32((svh), \
+ (mipi_syst_u16)(file), (mipi_syst_u16)MIPI_SYST_LINE),\
+ (sev), (id)))
+#define MIPI_SYST_CATALOG64_1_LOC16(svh, sev, file, id, p1)\
+ (mipi_syst_make_param1(svh, p1),\
+ mipi_syst_write_catalog64_message((svh),\
+ mipi_syst_make_file_location32((svh), \
+ (mipi_syst_u16)(file), (mipi_syst_u16)MIPI_SYST_LINE),\
+ (sev), (id)))
+#define MIPI_SYST_CATALOG64_2_LOC16(svh, sev, file, id, p1, p2)\
+ (mipi_syst_make_param2(svh, p1, p2),\
+ mipi_syst_write_catalog64_message((svh),\
+ mipi_syst_make_file_location32((svh), \
+ (mipi_syst_u16)(file), (mipi_syst_u16)MIPI_SYST_LINE),\
+ (sev), (id)))
+#define MIPI_SYST_CATALOG64_3_LOC16(svh, sev, file, id, p1, p2, p3)\
+ (mipi_syst_make_param3(svh, p1, p2, p3),\
+ mipi_syst_write_catalog64_message((svh),\
+ mipi_syst_make_file_location32((svh), \
+ (mipi_syst_u16)(file), (mipi_syst_u16)MIPI_SYST_LINE),\
+ (sev), (id)))
+#define MIPI_SYST_CATALOG64_4_LOC16(svh, sev, file, id, p1, p2, p3, p4)\
+ (mipi_syst_make_param4(svh, p1, p2, p3, p4),\
+ mipi_syst_write_catalog64_message((svh),\
+ mipi_syst_make_file_location32((svh), \
+ (mipi_syst_u16)(file), (mipi_syst_u16)MIPI_SYST_LINE),\
+ (sev), (id)))
+#define MIPI_SYST_CATALOG64_5_LOC16(svh, sev, file, id, p1, p2, p3, p4, p5)\
+ (mipi_syst_make_param5(svh, p1, p2, p3, p4, p5),\
+ mipi_syst_write_catalog64_message((svh),\
+ mipi_syst_make_file_location32((svh), \
+ (mipi_syst_u16)(file), (mipi_syst_u16)MIPI_SYST_LINE),\
+ (sev), (id)))
+#define MIPI_SYST_CATALOG64_6_LOC16(svh, sev, file, id, p1, p2, p3, p4, p5, p6)\
+ (mipi_syst_make_param6(svh, p1, p2, p3, p4, p5, p6),\
+ mipi_syst_write_catalog64_message((svh),\
+ mipi_syst_make_file_location32((svh), \
+ (mipi_syst_u16)(file), (mipi_syst_u16)MIPI_SYST_LINE),\
+ (sev), (id)))
+
+#define MIPI_SYST_CATALOG64_0_LOC32(svh, sev, file, id)\
+ (mipi_syst_make_param0(svh),\
+ mipi_syst_write_catalog64_message((svh),\
+ mipi_syst_make_file_location64((svh), \
+ (mipi_syst_u32)(file), (mipi_syst_u32)MIPI_SYST_LINE),\
+ (sev), (id)))
+#define MIPI_SYST_CATALOG64_1_LOC32(svh, sev, file, id, p1)\
+ (mipi_syst_make_param1(svh, p1),\
+ mipi_syst_write_catalog64_message((svh),\
+ mipi_syst_make_file_location64((svh), \
+ (mipi_syst_u32)(file), (mipi_syst_u32)MIPI_SYST_LINE),\
+ (sev), (id)))
+#define MIPI_SYST_CATALOG64_2_LOC32(svh, sev, file, id, p1, p2)\
+ (mipi_syst_make_param2(svh, p1, p2),\
+ mipi_syst_write_catalog64_message((svh),\
+ mipi_syst_make_file_location64((svh), \
+ (mipi_syst_u32)(file), (mipi_syst_u32)MIPI_SYST_LINE),\
+ (sev), (id)))
+#define MIPI_SYST_CATALOG64_3_LOC32(svh, sev, file, id, p1, p2, p3)\
+ (mipi_syst_make_param3(svh, p1, p2, p3),\
+ mipi_syst_write_catalog64_message((svh),\
+ mipi_syst_make_file_location64((svh), \
+ (mipi_syst_u32)(file), (mipi_syst_u32)MIPI_SYST_LINE),\
+ (sev), (id)))
+#define MIPI_SYST_CATALOG64_4_LOC32(svh, sev, file, id, p1, p2, p3, p4)\
+ (mipi_syst_make_param4(svh, p1, p2, p3, p4),\
+ mipi_syst_write_catalog64_message((svh),\
+ mipi_syst_make_file_location64((svh), \
+ (mipi_syst_u32)(file), (mipi_syst_u32)MIPI_SYST_LINE),\
+ (sev), (id)))
+#define MIPI_SYST_CATALOG64_5_LOC32(svh, sev, file, id, p1, p2, p3, p4, p5)\
+ (mipi_syst_make_param5(svh, p1, p2, p3, p4, p5),\
+ mipi_syst_write_catalog64_message((svh),\
+ mipi_syst_make_file_location64((svh), \
+ (mipi_syst_u32)(file), (mipi_syst_u32)MIPI_SYST_LINE),\
+ (sev), (id)))
+#define MIPI_SYST_CATALOG64_6_LOC32(svh, sev, file, id, p1, p2, p3, p4, p5, p6)\
+ (mipi_syst_make_param6(svh, p1, p2, p3, p4, p5, p6),\
+ mipi_syst_write_catalog64_message((svh),\
+ mipi_syst_make_file_location64((svh), \
+ (mipi_syst_u32)(file), (mipi_syst_u32)MIPI_SYST_LINE),\
+ (sev), (id)))
+
+#endif /* defined(MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD) */
+
+#if defined(MIPI_SYST_PCFG_ENABLE_PRINTF_API)
+
+/**
+ * Send vararg catalog message
+ *
+ * @param svh mipi_syst_handle* SyS-T handle
+ * @param severity mipi_syst_severity severity level (0..7)
+ * @param id mipi_syst_u64 catalog ID
+ * @param ... optional format arguments.
+ *
+ * The optional parameters are passed to the function as a sequence of pairs,
+ * each containing a type tag with a value from the enumeration
+ * #mipi_syst_catalog_parameter_types, and then a value of the specified type.
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ *
+ * MIPI_SYST_CATALOG64(svh, MIPI_SYST_SEVERITY_INFO,
+ * MIPI_SYST_HASH("The %s jumps over the %s %d times",0),
+ * MIPI_SYST_PARAM_STRING("cow"),
+ * MIPI_SYST_PARAM_STRING("moon"),
+ * MIPI_SYST_PARAM_INT(10));
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_CATALOG64(svh, severity, id, ...) \
+ mipi_syst_write_printf_catalog64((svh), MIPI_SYST_NOLOCATION, \
+ (severity),\
+ (id),\
+ ##__VA_ARGS__,\
+ _MIPI_SYST_CATARG_END)
+
+ #if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD)
+
+ /**
+ * Send vararg catalog message
+ *
+ * @param svh mipi_syst_handle* SyS-T handle
+ * @param severity mipi_syst_severity severity level (0..7)
+ * @param file file ID as 16-bit value
+ * @param id mipi_syst_u64 catalog ID
+ * @param ... optional format arguments.
+ *
+ * The optional parameters are passed to the function as a sequence of pairs,
+ * each containing a type tag with a value from the enumeration
+ * #mipi_syst_catalog_parameter_types, and then a value of the specified type.
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ *
+ * MIPI_SYST_CATALOG64_LOC16(svh, MIPI_SYST_SEVERITY_INFO, 10,
+ * MIPI_SYST_HASH("The %s jumps over the %s %d times",0),
+ * MIPI_SYST_PARAM_STRING("cow"),
+ * MIPI_SYST_PARAM_STRING("moon"),
+ * MIPI_SYST_PARAM_INT(10));
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_CATALOG64_LOC16(svh, severity, file, id, ...) \
+ mipi_syst_write_printf_catalog64((svh), \
+ mipi_syst_make_file_location32((svh), \
+ (mipi_syst_u16)(file), \
+ (mipi_syst_u16)MIPI_SYST_LINE),\
+ (severity),\
+ (id),\
+ ##__VA_ARGS__,\
+ _MIPI_SYST_CATARG_END))
+ /**
+ * Send vararg catalog message
+ *
+ * @param h mipi_syst_handle* SyS-T handle
+ * @param severity mipi_syst_severity severity level (0..7)
+ * @param file file ID as 32-bit value
+ * @param id mipi_syst_u64 catalog ID
+ * @param ... optional format arguments.
+ *
+ * The optional parameters are passed to the function as a sequence of pairs,
+ * each containing a type tag with a value from the enumeration
+ * #mipi_syst_catalog_parameter_types, and then a value of the specified type.
+ *
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ *
+ * MIPI_SYST_CATALOG64_LOC32(systh, MIPI_SYST_SEVERITY_INFO, 10,
+ * MIPI_SYST_HASH("The %s jumps over the %s %d times",0),
+ * MIPI_SYST_PARAM_STRING("cow"),
+ * MIPI_SYST_PARAM_STRING("moon"),
+ * MIPI_SYST_PARAM_INT(10));
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_CATALOG64_LOC32(h, severity, file, id, ...) \
+ mipi_syst_write_printf_catalog64((h), \
+ mipi_syst_make_file_location64((h), \
+ (mipi_syst_u32)(file), \
+ (mipi_syst_u32)MIPI_SYST_LINE),\
+ (severity),\
+ (id),\
+ ##__VA_ARGS__,\
+ _MIPI_SYST_CATARG_END))
+
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_ADDRESS)
+ /**
+ * Send vararg catalog message
+ *
+ * @param h mipi_syst_handle* SyS-T handle
+ * @param severity mipi_syst_severity severity level (0..7)
+ * @param id mipi_syst_u64 catalog ID
+ * @param ... optional format arguments.
+ *
+ * The optional parameters are passed to the function as a sequence of pairs,
+ * each containing a type tag with a value from the enumeration
+ * #mipi_syst_catalog_parameter_types, and then a value of the specified type.
+ *
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ *
+ * MIPI_SYST_CATALOG64_LOCADDR(systh, MIPI_SYST_SEVERITY_INFO,
+ * MIPI_SYST_HASH("The %s jumps over the %s %d times",0),
+ * MIPI_SYST_PARAM_STRING("cow"),
+ * MIPI_SYST_PARAM_STRING("moon"),
+ * MIPI_SYST_PARAM_INT(10));
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_CATALOG64_LOCADDR(h, severity, id, ...) \
+ mipi_syst_write_printf_catalog64((h), \
+ mipi_syst_make_address_location((h),\
+ mipi_syst_return_addr()),\
+ (severity), \
+ (id),\
+ ##__VA_ARGS__,\
+ _MIPI_SYST_CATARG_END))
+
+#endif /* defined(MIPI_SYST_PCFG_ENABLE_LOCATION_ADDRESS) */
+#endif /* defined(MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD) */
+
+
+/**
+ * Vararg style catalog message the contains the
+ * fmt string in addition to the id. The fmt string is not
+ * used by this API and removed during compilation. It is only
+ * present to support source code scanning tools that compute
+ * the ID to fmt string mapping. The API only sends the ID and
+ * the arguments to support printf() style output formatting
+ * by decoding software.
+ *
+ * @param svh mipi_syst_handle* SyS-T handle
+ * @param severity mipi_syst_severity severity level (0..7)
+ * @param id mipi_syst_u64 catalog ID
+ * @param fmt UTF-8 printf style format string
+ * @param ... optional format arguments
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ *
+ * MIPI_SYST_CATPRINTF64(svh, MIPI_SYST_SEVERITY_INFO,
+ * 0x1122334455667788ull,
+ * "The %s jumps over the %s %d times",
+ * MIPI_SYST_PARAM_STRING("cow"),
+ * MIPI_SYST_PARAM_STRING("moon"),
+ * MIPI_SYST_PARAM_INT(10));
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_CATPRINTF64(svh, severity, id, fmt, ...) \
+ MIPI_SYST_CATALOG64((svh),\
+ (severity),\
+ (id),\
+ ##__VA_ARGS__)
+
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD)
+
+ /**
+ * Vararg style catalog message the contains the
+ * fmt string in addition to the id. The fmt string is not
+ * used by this API and removed during compilation. It is only
+ * present to support source code scanning tools that compute
+ * the ID to fmt string mapping. The API only sends the ID and
+ * the arguments to support printf() style output formatting
+ * by decoding software.
+ *
+ * @param h mipi_syst_handle* SyS-T handle
+ * @param severity mipi_syst_severity severity level (0..7)
+ * @param file file ID as 16-bit value
+ * @param id mipi_syst_u64 catalog ID
+ * @param fmt UTF-8 printf style format string
+ * @param ... optional format arguments
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ *
+ * MIPI_SYST_CATPRINTF64_LOC16(systh, MIPI_SYST_SEVERITY_INFO, 10
+ * 0x1122334455667788ull,
+ * "The %s jumps over the %s %d times",
+ * MIPI_SYST_PARAM_STRING("cow"),
+ * MIPI_SYST_PARAM_STRING("moon"),
+ * MIPI_SYST_PARAM_INT(10));
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_CATPRINTF64_LOC16(h, severity, file, id, fmt, ...) \
+ MIPI_SYST_CATALOG64_LOC16((h),\
+ (severity),\
+ (file),\
+ (id),\
+ ##__VA_ARGS__)
+ /**
+ * Vararg style catalog message the contains the
+ * fmt string in addition to the id. The fmt string is not
+ * used by this API and removed during compilation. It is only
+ * present to support source code scanning tools that compute
+ * the ID to fmt string mapping. The API only sends the ID and
+ * the arguments to support printf() style output formatting
+ * by decoding software.
+ *
+ * @param h mipi_syst_handle* SyS-T handle
+ * @param severity mipi_syst_severity severity level (0..7)
+ * @param file file ID as 32-bit value
+ * @param id mipi_syst_u64 catalog ID
+ * @param fmt UTF-8 printf style format string
+ * @param ... optional format arguments
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ *
+ * MIPI_SYST_CATPRINTF64_LOC32(systh, MIPI_SYST_SEVERITY_INFO, 10,
+ * 0x1122334455667788ull,
+ * "The %s jumps over the %s %d times",
+ * MIPI_SYST_PARAM_STRING("cow"),
+ * MIPI_SYST_PARAM_STRING("moon"),
+ * MIPI_SYST_PARAM_INT(10));
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_CATPRINTF64_LOC32(h, severity, file, id, fmt, ...) \
+ MIPI_SYST_CATALOG64_LOC32((h),\
+ (severity),\
+ (file),\
+ (id),\
+ ##__VA_ARGS__)
+
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_ADDRESS)
+
+ /**
+ * Vararg style catalog message the contains the
+ * fmt string in addition to the id. The fmt string is not
+ * used by this API and removed during compilation. It is only
+ * present to support source code scanning tools that compute
+ * the ID to fmt string mapping. The API only sends the ID and
+ * the arguments to support printf() style output formatting
+ * by decoding software.
+ *
+ * @param h mipi_syst_handle* SyS-T handle
+ * @param severity mipi_syst_severity severity level (0..7)
+ * @param id mipi_syst_u64 catalog ID
+ * @param fmt UTF-8 printf style format string
+ * @param ... optional format arguments
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ *
+ * MIPI_SYST_CATPRINTF64_LOCADDR(systh, MIPI_SYST_SEVERITY_INFO,
+ * 0x1122334455667788ull,
+ * "The %s jumps over the %s %d times",
+ * MIPI_SYST_PARAM_STRING("cow"),
+ * MIPI_SYST_PARAM_STRING("moon"),
+ * MIPI_SYST_PARAM_INT(10));
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_CATPRINTF64_LOCADDR(h, severity, id, fmt, ...) \
+ MIPI_SYST_CATALOG64_LOCADDR((h),\
+ (severity),\
+ (id),\
+ ##__VA_ARGS__)
+
+#endif /* defined(MIPI_SYST_PCFG_ENABLE_LOCATION_ADDRESS) */
+#endif /* defined(MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD) */
+
+MIPI_SYST_EXPORT void MIPI_SYST_CALLCONV
+mipi_syst_write_printf_catalog64(struct mipi_syst_handle* svh,
+ struct mipi_syst_msglocation* loc,
+ enum mipi_syst_severity severity,
+ mipi_syst_u64 id,
+ ...);
+#endif /* #if defined(MIPI_SYST_PCFG_ENABLE_PRINTF_API) */
+
+/** @} */
+
+/* API function prototypes */
+
+MIPI_SYST_EXPORT void MIPI_SYST_CALLCONV
+mipi_syst_write_catalog64_message(struct mipi_syst_handle* svh,
+ struct mipi_syst_msglocation* loc,
+ enum mipi_syst_severity severity,
+ mipi_syst_u64 catid);
+
+#endif /* defined(MIPI_SYST_PCFG_ENABLE_CATID64_API) */
+
+#if defined(MIPI_SYST_PCFG_ENABLE_CATID32_API)
+/**
+ * @defgroup CatAPI32 32-Bit Catalog Message Macros
+ * @ingroup ApiSets
+ *
+ * Catalog message instrumentation API
+ * @{
+ */
+
+#if defined(MIPI_SYST_PCFG_ENABLE_PRINTF_API)
+/**
+ * Send vararg catalog message
+ *
+ * @param h mipi_syst_handle* SyS-T handle
+ * @param severity mipi_syst_severity severity level (0..7)
+ * @param id mipi_syst_u32 catalog ID
+ * @param ... optional format arguments
+ *
+ * The optional parameters are passed to the function as a sequence of pairs,
+ * each containing a type tag with a value from the enumeration
+ * #mipi_syst_catalog_parameter_types, and then a value of the specified type.
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ *
+ * MIPI_SYST_CATALOG32(systh, MIPI_SYST_SEVERITY_INFO,
+ * MIPI_SYST_HASH("The %s jumps over the %s %d times",0),
+ * MIPI_SYST_PARAM_CSTR("cow"),
+ * MIPI_SYST_PARAM_CSTR("moon"),
+ * MIPI_SYST_PARAM_INT(10));
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_CATALOG32(h, severity, id, ...) \
+ mipi_syst_write_printf_catalog32((h), MIPI_SYST_NOLOCATION, \
+ (severity),\
+ (id),\
+ ##__VA_ARGS__,\
+ _MIPI_SYST_CATARG_END)
+
+ #if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD)
+
+ /**
+ * Send vararg catalog message
+ *
+ * @param h mipi_syst_handle* SyS-T handle
+ * @param severity mipi_syst_severity severity level (0..7)
+ * @param file file ID as 16-bit value
+ * @param id mipi_syst_u32 catalog ID
+ * @param ... optional format arguments
+ *
+ * The optional parameters are passed to the function as a sequence of pairs,
+ * each containing a type tag with a value from the enumeration
+ * #mipi_syst_catalog_parameter_types, and then a value of the specified type.
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ *
+ * MIPI_SYST_CATALOG32_LOC16(systh, MIPI_SYST_SEVERITY_INFO, 10,
+ * MIPI_SYST_HASH("The %s jumps over the %s %d times",0),
+ * MIPI_SYST_PARAM_CSTR("cow"),
+ * MIPI_SYST_PARAM_CSTR("moon"),
+ * MIPI_SYST_PARAM_INT(10));
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_CATALOG32_LOC16(h, severity, file, id, ...) \
+ mipi_syst_write_printf_catalog32((h), \
+ mipi_syst_make_file_location32((h), \
+ (mipi_syst_u16)(file), \
+ (mipi_syst_u16)MIPI_SYST_LINE),\
+ (severity),\
+ (id),\
+ ##__VA_ARGS__,\
+ _MIPI_SYST_CATARG_END))
+
+ /**
+ * Send vararg catalog message
+ *
+ * @param h mipi_syst_handle* SyS-T handle
+ * @param severity mipi_syst_severity severity level (0..7)
+ * @param file file ID as 32-bit value
+ * @param id mipi_syst_u32 catalog ID
+ * @param ... optional format arguments
+ *
+ * The optional parameters are passed to the function as a sequence of pairs,
+ * each containing a type tag with a value from the enumeration
+ * #mipi_syst_catalog_parameter_types, and then a value of the specified type.
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ *
+ * MIPI_SYST_CATALOG32_LOC32(systh, MIPI_SYST_SEVERITY_INFO, 10,
+ * MIPI_SYST_HASH("The %s jumps over the %s %d times",0),
+ * MIPI_SYST_PARAM_CSTR("cow"),
+ * MIPI_SYST_PARAM_CSTR("moon"),
+ * MIPI_SYST_PARAM_INT(10));
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_CATALOG32_LOC32(h, severity, file, id, ...) \
+ mipi_syst_write_printf_catalog32((h), \
+ mipi_syst_make_file_location64((h), \
+ (mipi_syst_u32)(file), \
+ (mipi_syst_u32)MIPI_SYST_LINE),\
+ (severity),\
+ (id),\
+ ##__VA_ARGS__,\
+ _MIPI_SYST_CATARG_END))
+
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_ADDRESS)
+
+ /**
+ * Send vararg catalog message
+ *
+ * @param h mipi_syst_handle* SyS-T handle
+ * @param severity mipi_syst_severity severity level (0..7)
+ * @param id mipi_syst_u32 catalog ID
+ * @param ... optional format arguments
+ *
+ * The optional parameters are passed to the function as a sequence of pairs,
+ * each containing a type tag with a value from the enumeration
+ * #mipi_syst_catalog_parameter_types, and then a value of the specified type.
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ *
+ * MIPI_SYST_CATALOG32_LOCADDR(systh, MIPI_SYST_SEVERITY_INFO,
+ * MIPI_SYST_HASH("The %s jumps over the %s %d times",0),
+ * MIPI_SYST_PARAM_CSTR("cow"),
+ * MIPI_SYST_PARAM_CSTR("moon"),
+ * MIPI_SYST_PARAM_INT(10));
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_CATALOG32_LOCADDR(h, severity, id, ...) \
+ mipi_syst_write_printf_catalog32((h), \
+ mipi_syst_make_address_location((h),\
+ mipi_syst_return_addr()),\
+ (severity), \
+ (id),\
+ ##__VA_ARGS__,\
+ _MIPI_SYST_CATARG_END))
+
+#endif /* defined(MIPI_SYST_PCFG_ENABLE_LOCATION_ADDRESS) */
+#endif /* defined(MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD) */
+
+/**
+ * Send catalog message together with
+ * the arguments to support printf() style output formatting.
+ *
+ * @param h mipi_syst_handle* SyS-T handle
+ * @param sev mipi_syst_severity severity level (0..7)
+ * @param id mipi_syst_u32 catalog ID
+ * @param fmt const mipi_syst_u8 * pointer to UTF-8 string bytes
+ * @param ... optional format arguments
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ *
+ * MIPI_SYST_CATALOG_PRINTF32(systh, MIPI_SYST_SEVERITY_INFO,
+ * 0x1122334455667788ull,
+ * "The %s jumps over the %s %d times",
+ * MIPI_SYST_PARAM_CSTR("cow"),
+ * MIPI_SYST_PARAM_CSTR("moon"),
+ * MIPI_SYST_PARAM_INT(10));
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_CATPRINTF32(h, sev, id, fmt, ...) \
+ MIPI_SYST_CATALOG32((h),\
+ (sev),\
+ (id),\
+ ##__VA_ARGS__)
+
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD)
+
+ /**
+ * Send catalog message together with
+ * the arguments to support printf() style output formatting.
+ *
+ * @param h mipi_syst_handle* SyS-T handle
+ * @param sev mipi_syst_severity severity level (0..7)
+ * @param file file ID as 16-bit value
+ * @param id mipi_syst_u32 catalog ID
+ * @param fmt const mipi_syst_u8 * pointer to UTF-8 string bytes
+ * @param ... optional format arguments
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ *
+ * MIPI_SYST_CATALOG_PRINTF32_LOC16(systh, MIPI_SYST_SEVERITY_INFO, 10,
+ * 0x1122334455667788ull,
+ * "The %s jumps over the %s %d times",
+ * MIPI_SYST_PARAM_CSTR("cow"),
+ * MIPI_SYST_PARAM_CSTR("moon"),
+ * MIPI_SYST_PARAM_INT(10));
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_CATPRINTF32_LOC16(h, sev, file, id, fmt, ...) \
+ MIPI_SYST_CATALOG32_LOC16((h),\
+ (sev),\
+ (file),\
+ (id),\
+ ##__VA_ARGS__)
+
+ /**
+ * Send catalog message together with
+ * the arguments to support printf() style output formatting.
+ *
+ * @param h mipi_syst_handle* SyS-T handle
+ * @param sev mipi_syst_severity severity level (0..7)
+ * @param file file ID as 32-bit value
+ * @param id mipi_syst_u32 catalog ID
+ * @param fmt const mipi_syst_u8 * pointer to UTF-8 string bytes
+ * @param ... optional format arguments
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ *
+ * MIPI_SYST_CATALOG_PRINTF32_LOC32(systh, MIPI_SYST_SEVERITY_INFO, 10,
+ * 0x1122334455667788ull,
+ * "The %s jumps over the %s %d times",
+ * MIPI_SYST_PARAM_CSTR("cow"),
+ * MIPI_SYST_PARAM_CSTR("moon"),
+ * MIPI_SYST_PARAM_INT(10));
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_CATPRINTF32_LOC32(h, sev, file, id, fmt, ...) \
+ MIPI_SYST_CATALOG32_LOC32((h),\
+ (sev),\
+ (id),\
+ (file),\
+ ##__VA_ARGS__)
+
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_ADDRESS)
+
+ /**
+ * Send catalog message together with
+ * the arguments to support printf() style output formatting.
+ *
+ * @param h mipi_syst_handle* SyS-T handle
+ * @param sev mipi_syst_severity severity level (0..7)
+ * @param id mipi_syst_u32 catalog ID
+ * @param fmt const mipi_syst_u8 * pointer to UTF-8 string bytes
+ * @param ... optional format arguments
+ *
+ * Example:
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.c}
+ *
+ * MIPI_SYST_CATALOG_PRINTF32_LOCADDR(systh, MIPI_SYST_SEVERITY_INFO,
+ * 0x1122334455667788ull,
+ * "The %s jumps over the %s %d times",
+ * MIPI_SYST_PARAM_CSTR("cow"),
+ * MIPI_SYST_PARAM_CSTR("moon"),
+ * MIPI_SYST_PARAM_INT(10));
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+#define MIPI_SYST_CATPRINTF32_LOCADDR(h, sev, id, fmt, ...) \
+ MIPI_SYST_CATALOG32_LOCADDR((h),\
+ (sev),\
+ (id),\
+ ##__VA_ARGS__)
+
+#endif /* defined(MIPI_SYST_PCFG_ENABLE_LOCATION_ADDRESS) */
+#endif /* defined(MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD) */
+
+MIPI_SYST_EXPORT void MIPI_SYST_CALLCONV
+mipi_syst_write_printf_catalog32(struct mipi_syst_handle* svh,
+ struct mipi_syst_msglocation* loc,
+ enum mipi_syst_severity severity,
+ mipi_syst_u32 id,
+ ...);
+
+#endif /* defined(MIPI_SYST_PCFG_ENABLE_PRINTF_API) */
+
+/** @copydoc MIPI_SYST_CATALOG64_0 */
+#define MIPI_SYST_CATALOG32_0(svh, sev, id)\
+ (mipi_syst_make_param0(svh),\
+ mipi_syst_write_catalog32_message((svh), MIPI_SYST_NOLOCATION, (sev), (id)))
+#define MIPI_SYST_CATALOG32_1(svh, sev, id, p1)\
+ (mipi_syst_make_param1(svh, p1),\
+ mipi_syst_write_catalog32_message((svh), MIPI_SYST_NOLOCATION, (sev), (id)))
+#define MIPI_SYST_CATALOG32_2(svh, sev, id, p1, p2)\
+ (mipi_syst_make_param2(svh, p1, p2),\
+ mipi_syst_write_catalog32_message((svh), MIPI_SYST_NOLOCATION, (sev), (id)))
+#define MIPI_SYST_CATALOG32_3(svh, sev, id, p1, p2, p3)\
+ (mipi_syst_make_param3(svh, p1, p2, p3),\
+ mipi_syst_write_catalog32_message((svh), MIPI_SYST_NOLOCATION, (sev), (id)))
+#define MIPI_SYST_CATALOG32_4(svh, sev, id, p1, p2, p3, p4)\
+ (mipi_syst_make_param4(svh, p1, p2, p3, p4),\
+ mipi_syst_write_catalog32_message((svh), MIPI_SYST_NOLOCATION, (sev), (id)))
+#define MIPI_SYST_CATALOG32_5(svh, sev, id, p1, p2, p3, p4, p5)\
+ (mipi_syst_make_param5(svh, p1, p2, p3, p4, p5),\
+ mipi_syst_write_catalog32_message((svh), MIPI_SYST_NOLOCATION, (sev), (id)))
+#define MIPI_SYST_CATALOG32_6(svh, sev, id, p1, p2, p3, p4, p5, p6)\
+ (mipi_syst_make_param6(svh, p1, p2, p3, p4, p5, p6),\
+ mipi_syst_write_catalog32_message((svh), MIPI_SYST_NOLOCATION, (sev), (id)))
+
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD)
+
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_ADDRESS)
+
+#define MIPI_SYST_CATALOG32_0_LOCADDR(svh, sev, id)\
+ (mipi_syst_make_param0(svh),\
+ mipi_syst_write_catalog32_message((svh),\
+ mipi_syst_make_address_location((svh), mipi_syst_return_addr()),\
+ (sev), (id)))
+#define MIPI_SYST_CATALOG32_1_LOCADDR(svh, sev, id, p1)\
+ (mipi_syst_make_param1(svh, p1),\
+ mipi_syst_write_catalog32_message((svh),\
+ mipi_syst_make_address_location((svh), mipi_syst_return_addr()),\
+ (sev), (id)))
+#define MIPI_SYST_CATALOG32_2_LOCADDR(svh, sev, id, p1, p2)\
+ (mipi_syst_make_param2(svh, p1, p2),\
+ mipi_syst_write_catalog32_message((svh),\
+ mipi_syst_make_address_location((svh), mipi_syst_return_addr()),\
+ (sev), (id)))
+#define MIPI_SYST_CATALOG32_3_LOCADDR(svh, sev, id, p1, p2, p3)\
+ (mipi_syst_make_param3(svh, p1, p2, p3),\
+ mipi_syst_write_catalog32_message((svh),\
+ mipi_syst_make_address_location((svh), mipi_syst_return_addr()),\
+ (sev), (id)))
+#define MIPI_SYST_CATALOG32_4_LOCADDR(svh, sev, id, p1, p2, p3, p4)\
+ (mipi_syst_make_param4(svh, p1, p2, p3, p4),\
+ mipi_syst_write_catalog32_message((svh),\
+ mipi_syst_make_address_location((svh), mipi_syst_return_addr()),\
+ (sev), (id)))
+#define MIPI_SYST_CATALOG32_5_LOCADDR(svh, sev, id, p1, p2, p3, p4, p5)\
+ (mipi_syst_make_param5(svh, p1, p2, p3, p4, p5),\
+ mipi_syst_write_catalog32_message((svh),\
+ mipi_syst_make_address_location((svh), mipi_syst_return_addr()),\
+ (sev), (id)))
+#define MIPI_SYST_CATALOG32_6_LOCADDR(svh, sev, id, p1, p2, p3, p4, p5, p6)\
+ (mipi_syst_make_param6(svh, p1, p2, p3, p4, p5, p6),\
+ mipi_syst_write_catalog32_message((svh),\
+ mipi_syst_make_address_location((svh), mipi_syst_return_addr()),\
+ (sev), (id)))
+
+#endif /* defined(MIPI_SYST_PCFG_ENABLE_LOCATION_ADDRESS) */
+
+#define MIPI_SYST_CATALOG32_0_LOC16(svh, sev, file, id)\
+ (mipi_syst_make_param0(svh),\
+ mipi_syst_write_catalog32_message((svh),\
+ mipi_syst_make_file_location32((svh), \
+ (mipi_syst_u16)(file), (mipi_syst_u16)MIPI_SYST_LINE),\
+ (sev), (id)))
+#define MIPI_SYST_CATALOG32_1_LOC16(svh, sev, file, id, p1)\
+ (mipi_syst_make_param1(svh, p1),\
+ mipi_syst_write_catalog32_message((svh),\
+ mipi_syst_make_file_location32((svh), \
+ (mipi_syst_u16)(file), (mipi_syst_u16)MIPI_SYST_LINE),\
+ (sev), (id)))
+#define MIPI_SYST_CATALOG32_2_LOC16(svh, sev, file, id, p1, p2)\
+ (mipi_syst_make_param2(svh, p1, p2),\
+ mipi_syst_write_catalog32_message((svh),\
+ mipi_syst_make_file_location32((svh), \
+ (mipi_syst_u16)(file), (mipi_syst_u16)MIPI_SYST_LINE),\
+ (sev), (id)))
+#define MIPI_SYST_CATALOG32_3_LOC16(svh, sev, file, id, p1, p2, p3)\
+ (mipi_syst_make_param3(svh, p1, p2, p3),\
+ mipi_syst_write_catalog32_message((svh),\
+ mipi_syst_make_file_location32((svh), \
+ (mipi_syst_u16)(file), (mipi_syst_u16)MIPI_SYST_LINE),\
+ (sev), (id)))
+#define MIPI_SYST_CATALOG32_4_LOC16(svh, sev, file, id, p1, p2, p3, p4)\
+ (mipi_syst_make_param4(svh, p1, p2, p3, p4),\
+ mipi_syst_write_catalog32_message((svh),\
+ mipi_syst_make_file_location32((svh), \
+ (mipi_syst_u16)(file), (mipi_syst_u16)MIPI_SYST_LINE),\
+ (sev), (id)))
+#define MIPI_SYST_CATALOG32_5_LOC16(svh, sev, file, id, p1, p2, p3, p4, p5)\
+ (mipi_syst_make_param5(svh, p1, p2, p3, p4, p5),\
+ mipi_syst_write_catalog32_message((svh),\
+ mipi_syst_make_file_location32((svh), \
+ (mipi_syst_u16)(file), (mipi_syst_u16)MIPI_SYST_LINE),\
+ (sev), (id)))
+#define MIPI_SYST_CATALOG32_6_LOC16(svh, sev, file, id, p1, p2, p3, p4, p5, p6)\
+ (mipi_syst_make_param6(svh, p1, p2, p3, p4, p5, p6),\
+ mipi_syst_write_catalog32_message((svh),\
+ mipi_syst_make_file_location32((svh), \
+ (mipi_syst_u16)(file), (mipi_syst_u16)MIPI_SYST_LINE),\
+ (sev), (id)))
+
+#define MIPI_SYST_CATALOG32_0_LOC32(svh, sev, file, id)\
+ (mipi_syst_make_param0(svh),\
+ mipi_syst_write_catalog32_message((svh),\
+ mipi_syst_make_file_location64((svh), \
+ (mipi_syst_u32)(file), (mipi_syst_u32)MIPI_SYST_LINE),\
+ (sev), (id)))
+#define MIPI_SYST_CATALOG32_1_LOC32(svh, sev, file, id, p1)\
+ (mipi_syst_make_param1(svh, p1),\
+ mipi_syst_write_catalog32_message((svh),\
+ mipi_syst_make_file_location64((svh), \
+ (mipi_syst_u32)(file), (mipi_syst_u32)MIPI_SYST_LINE),\
+ (sev), (id)))
+#define MIPI_SYST_CATALOG32_2_LOC32(svh, sev, file, id, p1, p2)\
+ (mipi_syst_make_param2(svh, p1, p2),\
+ mipi_syst_write_catalog32_message((svh),\
+ mipi_syst_make_file_location64((svh), \
+ (mipi_syst_u32)(file), (mipi_syst_u32)MIPI_SYST_LINE),\
+ (sev), (id)))
+#define MIPI_SYST_CATALOG32_3_LOC32(svh, sev, file, id, p1, p2, p3)\
+ (mipi_syst_make_param3(svh, p1, p2, p3),\
+ mipi_syst_write_catalog32_message((svh),\
+ mipi_syst_make_file_location64((svh), \
+ (mipi_syst_u32)(file), (mipi_syst_u32)MIPI_SYST_LINE),\
+ (sev), (id)))
+#define MIPI_SYST_CATALOG32_4_LOC32(svh, sev, file, id, p1, p2, p3, p4)\
+ (mipi_syst_make_param4(svh, p1, p2, p3, p4),\
+ mipi_syst_write_catalog32_message((svh),\
+ mipi_syst_make_file_location64((svh), \
+ (mipi_syst_u32)(file), (mipi_syst_u32)MIPI_SYST_LINE),\
+ (sev), (id)))
+#define MIPI_SYST_CATALOG32_5_LOC32(svh, sev, file, id, p1, p2, p3, p4, p5)\
+ (mipi_syst_make_param5(svh, p1, p2, p3, p4, p5),\
+ mipi_syst_write_catalog32_message((svh),\
+ mipi_syst_make_file_location64((svh), \
+ (mipi_syst_u32)(file), (mipi_syst_u32)MIPI_SYST_LINE),\
+ (sev), (id)))
+#define MIPI_SYST_CATALOG32_6_LOC32(svh, sev, file, id, p1, p2, p3, p4, p5, p6)\
+ (mipi_syst_make_param6(svh, p1, p2, p3, p4, p5, p6),\
+ mipi_syst_write_catalog32_message((svh),\
+ mipi_syst_make_file_location64((svh), \
+ (mipi_syst_u32)(file), (mipi_syst_u32)MIPI_SYST_LINE),\
+ (sev), (id)))
+
+#endif /* defined(MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD) */
+/** @} */
+
+MIPI_SYST_EXPORT void MIPI_SYST_CALLCONV
+mipi_syst_write_catalog32_message(struct mipi_syst_handle* svh,
+ struct mipi_syst_msglocation* loc,
+ enum mipi_syst_severity severity,
+ mipi_syst_u32 catid);
+
+#endif /* defined(MIPI_SYST_PCFG_ENABLE_CATID32_API) */
+
+
+
+#endif /* !MIPI_SYST_DISABLE_ALL */
+
+/* Define undefined API's to nothing. This ensures source compatibility
+ * independent of the SyS-T feature configuration.
+ */
+#ifndef MIPI_SYST_INIT
+#define MIPI_SYST_INIT(f, p)
+#endif
+
+#ifndef MIPI_SYST_SHUTDOWN
+#define MIPI_SYST_SHUTDOWN(x)
+#endif
+
+#ifndef MIPI_SYST_INIT_HANDLE
+#define MIPI_SYST_INIT_HANDLE(h, p) (struct mipi_syst_handle*)0
+#endif
+
+#ifndef MIPI_SYST_ENABLE_HANDLE_CHECKSUM
+#define MIPI_SYST_ENABLE_HANDLE_CHECKSUM(h, v)
+#endif
+#ifndef MIPI_SYST_GET_HANDLE_CHECKSUM
+#define MIPI_SYST_GET_HANDLE_CHECKSUM(h) 0
+#endif
+#ifndef MIPI_SYST_ENABLE_HANDLE_COUNTER
+#define MIPI_SYST_ENABLE_HANDLE_COUNTER(h, v)
+#endif
+#ifndef MIPI_SYST_GET_HANDLE_COUNTER
+#define MIPI_SYST_GET_HANDLE_COUNTER(h) 0
+#endif
+#ifndef MIPI_SYST_SET_HANDLE_MODULE_UNIT
+#define MIPI_SYST_SET_HANDLE_MODULE_UNIT(p, m, u)
+#endif
+
+#ifndef MIPI_SYST_SET_HANDLE_GUID_UNIT
+#define MIPI_SYST_SET_HANDLE_GUID_UNIT(p, g, u)
+#endif
+
+#ifndef MIPI_SYST_ENABLE_HANDLE_TIMESTAMP
+#define MIPI_SYST_ENABLE_HANDLE_TIMESTAMP(h, v)
+#endif
+#ifndef MIPI_SYST_GET_HANDLE_TIMESTAMP
+#define MIPI_SYST_GET_HANDLE_TIMESTAMP(h) 0
+#endif
+
+#ifndef MIPI_SYST_INIT
+#define MIPI_SYST_INIT(f, p)
+#endif
+
+#ifndef MIPI_SYST_SHUTDOWN
+#define MIPI_SYST_SHUTDOWN()
+#endif
+
+#ifndef MIPI_SYST_INIT_HANDLE
+#define MIPI_SYST_INIT_HANDLE(h, p)
+#endif
+
+#ifndef MIPI_SYST_ALLOC_HANDLE
+#define MIPI_SYST_ALLOC_HANDLE(p) (struct mipi_syst_handle*)0
+#endif
+
+#ifndef MIPI_SYST_ENABLE_HANDLE_CHECKSUM
+#define MIPI_SYST_ENABLE_HANDLE_CHECKSUM(h,v)
+#endif
+
+#ifndef MIPI_SYST_ENABLE_HANDLE_COUNTER
+#define MIPI_SYST_ENABLE_HANDLE_COUNTER(h,v)
+#endif
+
+#ifndef MIPI_SYST_ENABLE_HANDLE_LENGTH
+#define MIPI_SYST_ENABLE_HANDLE_LENGTH(h,v)
+#endif
+
+#ifndef MIPI_SYST_SET_HANDLE_MODULE_UNIT
+#define MIPI_SYST_SET_HANDLE_MODULE_UNIT(p, m, u)
+#endif
+
+#ifndef MIPI_SYST_SET_HANDLE_GUID_UNIT
+#define MIPI_SYST_SET_HANDLE_GUID_UNIT(p, o, u)
+#endif
+
+#ifndef MIPI_SYST_SHORT32
+#define MIPI_SYST_SHORT32(h, v)
+#endif
+
+#ifndef MIPI_SYST_WRITE
+#define MIPI_SYST_WRITE(h, sev, id, p, len)
+#endif
+#ifndef MIPI_SYST_WRITE_LOCADDR
+#define MIPI_SYST_WRITE_LOCADDR(h, sev, id, p, len)
+#endif
+#ifndef MIPI_SYST_WRITE_LOC16
+#define MIPI_SYST_WRITE_LOC16(h, sev, f, id, p, len)
+#endif
+#ifndef MIPI_SYST_WRITE_LOC32
+#define MIPI_SYST_WRITE_LOC32(h, sev, f, id, p, len)
+#endif
+
+#ifndef MIPI_SYST_DELETE_HANDLE
+#define MIPI_SYST_DELETE_HANDLE(h)
+#endif
+
+#ifndef MIPI_SYST_DEBUG
+#define MIPI_SYST_DEBUG(svh, sev, str, len)
+#endif
+#ifndef MIPI_SYST_DEBUG_LOCADDR
+#define MIPI_SYST_DEBUG_LOCADDR(svh, sev, str, len)
+#endif
+#ifndef MIPI_SYST_DEBUG_LOC16
+#define MIPI_SYST_DEBUG_LOC16(svh, sev, file, str, len)
+#endif
+#ifndef MIPI_SYST_DEBUG_LOC32
+#define MIPI_SYST_DEBUG_LOC32(svh, sev, file, str, len)
+#endif
+#ifndef MIPI_SYST_FUNC_ENTER
+#define MIPI_SYST_FUNC_ENTER(svh, sev)
+#endif
+#ifndef MIPI_SYST_FUNC_ENTER_LOCADDR
+#define MIPI_SYST_FUNC_ENTER_LOCADDR(svh, sev)
+#endif
+#ifndef MIPI_SYST_FUNC_ENTER_LOC16
+#define MIPI_SYST_FUNC_ENTER_LOC16(svh, sev, file)
+#endif
+#ifndef MIPI_SYST_FUNC_ENTER_LOC32
+#define MIPI_SYST_FUNC_ENTER_LOC32(svh, sev, file)
+#endif
+#ifndef MIPI_SYST_FUNC_EXIT
+#define MIPI_SYST_FUNC_EXIT(svh, sev)
+#endif
+#ifndef MIPI_SYST_FUNC_EXIT_LOCADDR
+#endif
+#ifndef MIPI_SYST_FUNC_EXIT_LOCADDR
+#define MIPI_SYST_FUNC_EXIT_LOCADDR(svh, sev)
+#endif
+#ifndef MIPI_SYST_FUNC_EXIT_LOC16
+#define MIPI_SYST_FUNC_EXIT_LOC16(svh, sev, file)
+#endif
+#ifndef MIPI_SYST_FUNC_EXIT_LOC32
+#define MIPI_SYST_FUNC_EXIT_LOC32(svh, sev, file)
+#endif
+#ifndef MIPI_SYST_ASSERT
+#define MIPI_SYST_ASSERT(svh, sev, cond)
+#endif
+#ifndef MIPI_SYST_ASSERT_LOC16
+#define MIPI_SYST_ASSERT_LOC16(svh, sev, file, cond)
+#endif
+#ifndef MIPI_SYST_ASSERT_LOC32
+#define MIPI_SYST_ASSERT_LOC32(svh, sev, file, cond)
+#endif
+#ifndef MIPI_SYST_ASSERT_LOCADDR
+#define MIPI_SYST_ASSERT_LOCADDR(svh, sev, cond)
+#endif
+
+#ifndef MIPI_SYST_CATALOG32_0
+#define MIPI_SYST_CATALOG32_0(svh, sev, id)
+#endif
+#ifndef MIPI_SYST_CATALOG32_1
+#define MIPI_SYST_CATALOG32_1(svh, sev, id, p1)
+#endif
+#ifndef MIPI_SYST_CATALOG32_2
+#define MIPI_SYST_CATALOG32_2(svh, sev, id, p1, p2)
+#endif
+#ifndef MIPI_SYST_CATALOG32_3
+#define MIPI_SYST_CATALOG32_3(svh, sev, id, p1, p2, p3)
+#endif
+#ifndef MIPI_SYST_CATALOG32_4
+#define MIPI_SYST_CATALOG32_4(svh, sev, id, p1, p2, p3, p4)
+#endif
+#ifndef MIPI_SYST_CATALOG32_5
+#define MIPI_SYST_CATALOG32_5(svh, sev, id, p1, p2, p3, p4, p5)
+#endif
+#ifndef MIPI_SYST_CATALOG32_6
+#define MIPI_SYST_CATALOG32_6(svh, sev, id, p1, p2, p3, p4, p5, p6)
+#endif
+
+#ifndef MIPI_SYST_CATALOG32_0_LOCADDR
+#define MIPI_SYST_CATALOG32_0_LOCADDR(svh, sev, id)
+#endif
+#ifndef MIPI_SYST_CATALOG32_1_LOCADDR
+#define MIPI_SYST_CATALOG32_1_LOCADDR(svh, sev, id, p1)
+#endif
+#ifndef MIPI_SYST_CATALOG32_2_LOCADDR
+#define MIPI_SYST_CATALOG32_2_LOCADDR(svh, sev, id, p1, p2)
+#endif
+#ifndef MIPI_SYST_CATALOG32_3_LOCADDR
+#define MIPI_SYST_CATALOG32_3_LOCADDR(svh, sev, id, p1, p2, p3)
+#endif
+#ifndef MIPI_SYST_CATALOG32_4_LOCADDR
+#define MIPI_SYST_CATALOG32_4_LOCADDR(svh, sev, id, p1, p2, p3, p4)
+#endif
+#ifndef MIPI_SYST_CATALOG32_5_LOCADDR
+#define MIPI_SYST_CATALOG32_5_LOCADDR(svh, sev, id, p1, p2, p3, p4, p5)
+#endif
+#ifndef MIPI_SYST_CATALOG32_6_LOCADDR
+#define MIPI_SYST_CATALOG32_6_LOCADDR(svh, sev, id, p1, p2, p3, p4, p5, p6)
+#endif
+
+#ifndef MIPI_SYST_CATALOG32_0_LOC16
+#define MIPI_SYST_CATALOG32_0_LOC16(svh, sev, f, id)
+#endif
+#ifndef MIPI_SYST_CATALOG32_1_LOC16
+#define MIPI_SYST_CATALOG32_1_LOC16(svh, sev, f, id, p1)
+#endif
+#ifndef MIPI_SYST_CATALOG32_2_LOC16
+#define MIPI_SYST_CATALOG32_2_LOC16(svh, sev, f, id, p1, p2)
+#endif
+#ifndef MIPI_SYST_CATALOG32_3_LOC16
+#define MIPI_SYST_CATALOG32_3_LOC16(svh, sev, f, id, p1, p2, p3)
+#endif
+#ifndef MIPI_SYST_CATALOG32_4_LOC16
+#define MIPI_SYST_CATALOG32_4_LOC16(svh, sev, f, id, p1, p2, p3, p4)
+#endif
+#ifndef MIPI_SYST_CATALOG32_5_LOC16
+#define MIPI_SYST_CATALOG32_5_LOC16(svh, sev, f, id, p1, p2, p3, p4, p5)
+#endif
+#ifndef MIPI_SYST_CATALOG32_6_LOC16
+#define MIPI_SYST_CATALOG32_6_LOC16(svh, sev, f, id, p1, p2, p3, p4, p5, p6)
+#endif
+
+#ifndef MIPI_SYST_CATALOG32_0_LOC32
+#define MIPI_SYST_CATALOG32_0_LOC32(svh, sev, f, id)
+#endif
+#ifndef MIPI_SYST_CATALOG32_1_LOC32
+#define MIPI_SYST_CATALOG32_1_LOC32(svh, sev, f, id, p1)
+#endif
+#ifndef MIPI_SYST_CATALOG32_2_LOC32
+#define MIPI_SYST_CATALOG32_2_LOC32(svh, sev, f, id, p1, p2)
+#endif
+#ifndef MIPI_SYST_CATALOG32_3_LOC32
+#define MIPI_SYST_CATALOG32_3_LOC32(svh, sev, f, id, p1, p2, p3)
+#endif
+#ifndef MIPI_SYST_CATALOG32_4_LOC32
+#define MIPI_SYST_CATALOG32_4_LOC32(svh, sev, f, id, p1, p2, p3, p4)
+#endif
+#ifndef MIPI_SYST_CATALOG32_5_LOC32
+#define MIPI_SYST_CATALOG32_5_LOC32(svh, sev, f, id, p1, p2, p3, p4, p5)
+#endif
+#ifndef MIPI_SYST_CATALOG32_6_LOC32
+#define MIPI_SYST_CATALOG32_6_LOC32(svh, sev, f, id, p1, p2, p3, p4, p5, p6)
+#endif
+
+#ifndef MIPI_SYST_CATALOG64_0
+#define MIPI_SYST_CATALOG64_0(svh, sev, id)
+#endif
+#ifndef MIPI_SYST_CATALOG64_1
+#define MIPI_SYST_CATALOG64_1(svh, sev, id, p1)
+#endif
+#ifndef MIPI_SYST_CATALOG64_2
+#define MIPI_SYST_CATALOG64_2(svh, sev, id, p1, p2)
+#endif
+#ifndef MIPI_SYST_CATALOG64_3
+#define MIPI_SYST_CATALOG64_3(svh, sev, id, p1, p2, p3)
+#endif
+#ifndef MIPI_SYST_CATALOG64_4
+#define MIPI_SYST_CATALOG64_4(svh, sev, id, p1, p2, p3, p4)
+#endif
+#ifndef MIPI_SYST_CATALOG64_5
+#define MIPI_SYST_CATALOG64_5(svh, sev, id, p1, p2, p3, p4, p5)
+#endif
+#ifndef MIPI_SYST_CATALOG64_6
+#define MIPI_SYST_CATALOG64_6(svh, sev, id, p1, p2, p3, p4, p5, p6)
+#endif
+
+#ifndef MIPI_SYST_CATALOG64_0_LOCADDR
+#define MIPI_SYST_CATALOG64_0_LOCADDR(svh, sev, id)
+#endif
+#ifndef MIPI_SYST_CATALOG64_1_LOCADDR
+#define MIPI_SYST_CATALOG64_1_LOCADDR(svh, sev, id, p1)
+#endif
+#ifndef MIPI_SYST_CATALOG64_2_LOCADDR
+#define MIPI_SYST_CATALOG64_2_LOCADDR(svh, sev, id, p1, p2)
+#endif
+#ifndef MIPI_SYST_CATALOG64_3_LOCADDR
+#define MIPI_SYST_CATALOG64_3_LOCADDR(svh, sev, id, p1, p2, p3)
+#endif
+#ifndef MIPI_SYST_CATALOG64_4_LOCADDR
+#define MIPI_SYST_CATALOG64_4_LOCADDR(svh, sev, id, p1, p2, p3, p4)
+#endif
+#ifndef MIPI_SYST_CATALOG64_5_LOCADDR
+#define MIPI_SYST_CATALOG64_5_LOCADDR(svh, sev, id, p1, p2, p3, p4, p5)
+#endif
+#ifndef MIPI_SYST_CATALOG64_6_LOCADDR
+#define MIPI_SYST_CATALOG64_6_LOCADDR(svh, sev, id, p1, p2, p3, p4, p5, p6)
+#endif
+
+#ifndef MIPI_SYST_CATALOG64_0_LOC16
+#define MIPI_SYST_CATALOG64_0_LOC16(svh, sev, f, id)
+#endif
+#ifndef MIPI_SYST_CATALOG64_1_LOC16
+#define MIPI_SYST_CATALOG64_1_LOC16(svh, sev, f, id, p1)
+#endif
+#ifndef MIPI_SYST_CATALOG64_2_LOC16
+#define MIPI_SYST_CATALOG64_2_LOC16(svh, sev, f, id, p1, p2)
+#endif
+#ifndef MIPI_SYST_CATALOG64_3_LOC16
+#define MIPI_SYST_CATALOG64_3_LOC16(svh, sev, f, id, p1, p2, p3)
+#endif
+#ifndef MIPI_SYST_CATALOG64_4_LOC16
+#define MIPI_SYST_CATALOG64_4_LOC16(svh, sev, f, id, p1, p2, p3, p4)
+#endif
+#ifndef MIPI_SYST_CATALOG64_5_LOC16
+#define MIPI_SYST_CATALOG64_5_LOC16(svh, sev, f, id, p1, p2, p3, p4, p5)
+#endif
+#ifndef MIPI_SYST_CATALOG64_6_LOC16
+#define MIPI_SYST_CATALOG64_6_LOC16(svh, sev, f, id, p1, p2, p3, p4, p5, p6)
+#endif
+
+#ifndef MIPI_SYST_CATALOG64_0_LOC32
+#define MIPI_SYST_CATALOG64_0_LOC32(svh, sev, f, id)
+#endif
+#ifndef MIPI_SYST_CATALOG64_1_LOC32
+#define MIPI_SYST_CATALOG64_1_LOC32(svh, sev, f, id, p1)
+#endif
+#ifndef MIPI_SYST_CATALOG64_2_LOC32
+#define MIPI_SYST_CATALOG64_2_LOC32(svh, sev, f, id, p1, p2)
+#endif
+#ifndef MIPI_SYST_CATALOG64_3_LOC32
+#define MIPI_SYST_CATALOG64_3_LOC32(svh, sev, f, id, p1, p2, p3)
+#endif
+#ifndef MIPI_SYST_CATALOG64_4_LOC32
+#define MIPI_SYST_CATALOG64_4_LOC32(svh, sev, f, id, p1, p2, p3, p4)
+#endif
+#ifndef MIPI_SYST_CATALOG64_5_LOC32
+#define MIPI_SYST_CATALOG64_5_LOC32(svh, sev, f, id, p1, p2, p3, p4, p5)
+#endif
+#ifndef MIPI_SYST_CATALOG64_6_LOC32
+#define MIPI_SYST_CATALOG64_6_LOC32(svh, sev, f, id, p1, p2, p3, p4, p5, p6)
+#endif
+
+#ifndef MIPI_SYST_CLOCK_SYNC
+#define MIPI_SYST_CLOCK_SYNC(h,c,f)
+#endif
+
+#ifndef MIPI_SYST_PRINTF
+#define MIPI_SYST_PRINTF(...)
+#endif
+#ifndef MIPI_SYST_PRINTF_LOC16
+#define MIPI_SYST_PRINTF_LOC16(...)
+#endif
+#ifndef MIPI_SYST_PRINTF_LOC32
+#define MIPI_SYST_PRINTF_LOC32(...)
+#endif
+#ifndef MIPI_SYST_PRINTF_LOCADDR
+#define MIPI_SYST_PRINTF_LOCADDR(...)
+#endif
+
+#ifndef MIPI_SYST_CATPRINTF64
+#define MIPI_SYST_CATPRINTF64(...)
+#endif
+#ifndef MIPI_SYST_CATPRINTF64_LOC16
+#define MIPI_SYST_CATPRINTF64_LOC16(...)
+#endif
+#ifndef MIPI_SYST_CATPRINTF64_LOC32
+#define MMIPI_SYST_CATPRINTF64_LOC32(...)
+#endif
+#ifndef MIPI_SYST_CATPRINTF64_LOCADDR
+#define MIPI_SYST_CATPRINTF64_LOCADDR(...)
+#endif
+#ifndef MIPI_SYST_CATPRINTF32
+#define MIPI_SYST_CATPRINTF32(...)
+#endif
+#ifndef MIPI_SYST_CATPRINTF32_LOC16
+#define MIPI_SYST_CATPRINTF32_LOC16(...)
+#endif
+#ifndef MIPI_SYST_CATPRINTF32_LOC32
+#define MMIPI_SYST_CATPRINTF32_LOC32(...)
+#endif
+#ifndef MIPI_SYST_CATPRINTF32_LOCADDR
+#define MIPI_SYST_CATPRINTF32_LOCADDR(...)
+#endif
+
+/* Map CATPRINTF calls to their corresponding catalog APIs
+ * by dropping the format string parameter.
+ */
+ /**
+ * @defgroup PrintfApi Printf style catalog Message Macros
+ * @ingroup ApiSets
+ *
+ * Printf style catalog message instrumentation API wrappers.
+ * The `MIPI_SYST_CATPRINTF{ID-WIDTH}_{PARAMETER-COUNT}`
+ * macros call their corresponding catalog API macro by dropping
+ * the format parameter. The API is intended to have
+ * printf style instrumentation inside the sources, but drop the format
+ * string during compilation and replace it with a catalog API call
+ * instead. Source scanning tools are used to extract the format strings
+ * from sources into catalog dictionary files. The dictionary files can
+ * then be used to reconstruct the printf formatting during trace decode
+ * time. This saves both space and execution time in the resulting
+ * application, and bandwidth over a trace link.
+ *
+ * This API set is enabled or disabled by the
+ * #MIPI_SYST_PCFG_ENABLE_CATID64_API and/or #MIPI_SYST_PCFG_ENABLE_CATID32_API
+ * platform feature defines.
+ * @{
+ */
+#define MIPI_SYST_CATPRINTF32_0(svh, sev, id, fmt)\
+ MIPI_SYST_CATALOG32_0(svh, sev, id)
+#define MIPI_SYST_CATPRINTF32_1(svh, sev, id, fmt, p1)\
+ MIPI_SYST_CATALOG32_1(svh, sev, id, p1)
+#define MIPI_SYST_CATPRINTF32_2(svh, sev, id, fmt, p1, p2)\
+ MIPI_SYST_CATALOG32_2(svh, sev, id, p1, p2)
+#define MIPI_SYST_CATPRINTF32_3(svh, sev, id, fmt, p1, p2, p3)\
+ MIPI_SYST_CATALOG32_3(svh, sev, id, p1, p2, p3)
+#define MIPI_SYST_CATPRINTF32_4(svh, sev, id, fmt, p1, p2, p3, p4)\
+ MIPI_SYST_CATALOG32_4(svh, sev, id, p1, p2, p3, p4)
+#define MIPI_SYST_CATPRINTF32_5(svh, sev, id, fmt, p1, p2, p3, p4, p5)\
+ MIPI_SYST_CATALOG32_5(svh, sev, id, p1, p2, p3, p4, p5)
+#define MIPI_SYST_CATPRINTF32_6(svh, sev, id, fmt, p1, p2, p3, p4, p5, p6)\
+ MIPI_SYST_CATALOG32_6(svh, sev, id, p1, p2, p3, p4, p5, p6)
+#define MIPI_SYST_CATPRINTF32_0_LOCADDR(svh, sev, id, fmt)\
+ MIPI_SYST_CATALOG32_0_LOCADDR(svh, sev, id)
+#define MIPI_SYST_CATPRINTF32_1_LOCADDR(svh, sev, id, fmt, p1)\
+ MIPI_SYST_CATALOG32_1_LOCADDR(svh, sev, id, p1)
+#define MIPI_SYST_CATPRINTF32_2_LOCADDR(svh, sev, id, fmt, p1, p2)\
+ MIPI_SYST_CATALOG32_2_LOCADDR(svh, sev, id, p1, p2)
+#define MIPI_SYST_CATPRINTF32_3_LOCADDR(svh, sev, id, fmt, p1, p2, p3)\
+ MIPI_SYST_CATALOG32_3_LOCADDR(svh, sev, id, p1, p2, p3)
+#define MIPI_SYST_CATPRINTF32_4_LOCADDR(svh, sev, id, fmt, p1, p2, p3, p4)\
+ MIPI_SYST_CATALOG32_4_LOCADDR(svh, sev, id, p1, p2, p3, p4)
+#define MIPI_SYST_CATPRINTF32_5_LOCADDR(svh, sev, id, fmt, p1, p2, p3, p4, p5)\
+ MIPI_SYST_CATALOG32_5_LOCADDR(svh, sev, id, p1, p2, p3, p4, p5)
+#define MIPI_SYST_CATPRINTF32_6_LOCADDR(svh, sev, id, fmt, p1, p2, p3, p4, p5, p6)\
+ MIPI_SYST_CATALOG32_6_LOCADDR(svh, sev, id, p1, p2, p3, p4, p5, p6)
+#define MIPI_SYST_CATPRINTF32_0_LOC16(svh, sev, f, id, fmt)\
+ MIPI_SYST_CATALOG32_0_LOC16(svh, sev, f, id)
+#define MIPI_SYST_CATPRINTF32_1_LOC16(svh, sev, f, id, fmt, p1)\
+ MIPI_SYST_CATALOG32_1_LOC16(svh, sev, f, id, p1)
+#define MIPI_SYST_CATPRINTF32_2_LOC16(svh, sev, f, id, fmt, p1, p2)\
+ MIPI_SYST_CATALOG32_2_LOC16(svh, sev, f, id, p1, p2)
+#define MIPI_SYST_CATPRINTF32_3_LOC16(svh, sev, f, id, fmt, p1, p2, p3)\
+ MIPI_SYST_CATALOG32_3_LOC16(svh, sev, f, id, p1, p2, p3)
+#define MIPI_SYST_CATPRINTF32_4_LOC16(svh, sev, f, id, fmt, p1, p2, p3, p4)\
+ MIPI_SYST_CATALOG32_4_LOC16(svh, sev, f, id, p1, p2, p3, p4)
+#define MIPI_SYST_CATPRINTF32_5_LOC16(svh, sev, f, id, fmt, p1, p2, p3, p4, p5)\
+ MIPI_SYST_CATALOG32_5_LOC16(svh, sev, f, id, p1, p2, p3, p4, p5)
+#define MIPI_SYST_CATPRINTF32_6_LOC16(svh, sev, f, id, fmt, p1, p2, p3, p4, p5, p6)\
+ MIPI_SYST_CATALOG32_6_LOC16(svh, sev, f, id, p1, p2, p3, p4, p5, p6)
+#define MIPI_SYST_CATPRINTF32_0_LOC32(svh, sev, f, id, fmt)\
+ MIPI_SYST_CATALOG32_0_LOC32(svh, sev, f, id)
+#define MIPI_SYST_CATPRINTF32_1_LOC32(svh, sev, f, id, fmt, p1)\
+ MIPI_SYST_CATALOG32_1_LOC32(svh, sev, f, id, p1)
+#define MIPI_SYST_CATPRINTF32_2_LOC32(svh, sev, f, id, fmt, p1, p2)\
+ MIPI_SYST_CATALOG32_2_LOC32(svh, sev, f, id, p1, p2)
+#define MIPI_SYST_CATPRINTF32_3_LOC32(svh, sev, f, id, fmt, p1, p2, p3)\
+ MIPI_SYST_CATALOG32_3_LOC32(svh, sev, f, id, p1, p2, p3)
+#define MIPI_SYST_CATPRINTF32_4_LOC32(svh, sev, f, id, fmt, p1, p2, p3, p4)\
+ MIPI_SYST_CATALOG32_4_LOC32(svh, sev, f, id, p1, p2, p3, p4)
+#define MIPI_SYST_CATPRINTF32_5_LOC32(svh, sev, f, id, fmt, p1, p2, p3, p4, p5)\
+ MIPI_SYST_CATALOG32_5_LOC32(svh, sev, f, id, p1, p2, p3, p4, p5)
+#define MIPI_SYST_CATPRINTF32_6_LOC32(svh, sev, f, id, fmt, p1, p2, p3, p4, p5, p6)\
+ MIPI_SYST_CATALOG32_6_LOC32(svh, sev, f, id, p1, p2, p3, p4, p5, p6)
+#define MIPI_SYST_CATPRINTF64_0(svh, sev, id, fmt)\
+ MIPI_SYST_CATALOG64_0(svh, sev, id)
+#define MIPI_SYST_CATPRINTF64_1(svh, sev, id, fmt, p1)\
+ MIPI_SYST_CATALOG64_1(svh, sev, id, p1)
+#define MIPI_SYST_CATPRINTF64_2(svh, sev, id, fmt, p1, p2)\
+ MIPI_SYST_CATALOG64_2(svh, sev, id, p1, p2)
+#define MIPI_SYST_CATPRINTF64_3(svh, sev, id, fmt, p1, p2, p3)\
+ MIPI_SYST_CATALOG64_3(svh, sev, id, p1, p2, p3)
+#define MIPI_SYST_CATPRINTF64_4(svh, sev, id, fmt, p1, p2, p3, p4)\
+ MIPI_SYST_CATALOG64_4(svh, sev, id, p1, p2, p3, p4)
+#define MIPI_SYST_CATPRINTF64_5(svh, sev, id, fmt, p1, p2, p3, p4, p5)\
+ MIPI_SYST_CATALOG64_5(svh, sev, id, p1, p2, p3, p4, p5)
+#define MIPI_SYST_CATPRINTF64_6(svh, sev, id, fmt, p1, p2, p3, p4, p5, p6)\
+ MIPI_SYST_CATALOG64_6(svh, sev, id, p1, p2, p3, p4, p5, p6)
+#define MIPI_SYST_CATPRINTF64_0_LOCADDR(svh, sev, id, fmt)\
+ MIPI_SYST_CATALOG64_0_LOCADDR(svh, sev, id)
+#define MIPI_SYST_CATPRINTF64_1_LOCADDR(svh, sev, id, fmt, p1)\
+ MIPI_SYST_CATALOG64_1_LOCADDR(svh, sev, id, p1)
+#define MIPI_SYST_CATPRINTF64_2_LOCADDR(svh, sev, id, fmt, p1, p2)\
+ MIPI_SYST_CATALOG64_2_LOCADDR(svh, sev, id, p1, p2)
+#define MIPI_SYST_CATPRINTF64_3_LOCADDR(svh, sev, id, fmt, p1, p2, p3)\
+ MIPI_SYST_CATALOG64_3_LOCADDR(svh, sev, id, p1, p2, p3)
+#define MIPI_SYST_CATPRINTF64_4_LOCADDR(svh, sev, id, fmt, p1, p2, p3, p4)\
+ MIPI_SYST_CATALOG64_4_LOCADDR(svh, sev, id, p1, p2, p3, p4)
+#define MIPI_SYST_CATPRINTF64_5_LOCADDR(svh, sev, id, fmt, p1, p2, p3, p4, p5)\
+ MIPI_SYST_CATALOG64_5_LOCADDR(svh, sev, id, p1, p2, p3, p4, p5)
+#define MIPI_SYST_CATPRINTF64_6_LOCADDR(svh, sev, id, fmt, p1, p2, p3, p4, p5, p6)\
+ MIPI_SYST_CATALOG64_6_LOCADDR(svh, sev, id, p1, p2, p3, p4, p5, p6)
+#define MIPI_SYST_CATPRINTF64_0_LOC16(svh, sev, f, id, fmt)\
+ MIPI_SYST_CATALOG64_0_LOC16(svh, sev, f, id)
+#define MIPI_SYST_CATPRINTF64_1_LOC16(svh, sev, f, id, fmt, p1)\
+ MIPI_SYST_CATALOG64_1_LOC16(svh, sev, f, id, p1)
+#define MIPI_SYST_CATPRINTF64_2_LOC16(svh, sev, f, id, fmt, p1, p2)\
+ MIPI_SYST_CATALOG64_2_LOC16(svh, sev, f, id, p1, p2)
+#define MIPI_SYST_CATPRINTF64_3_LOC16(svh, sev, f, id, fmt, p1, p2, p3)\
+ MIPI_SYST_CATALOG64_3_LOC16(svh, sev, f, id, p1, p2, p3)
+#define MIPI_SYST_CATPRINTF64_4_LOC16(svh, sev, f, id, fmt, p1, p2, p3, p4)\
+ MIPI_SYST_CATALOG64_4_LOC16(svh, sev, f, id, p1, p2, p3, p4)
+#define MIPI_SYST_CATPRINTF64_5_LOC16(svh, sev, f, id, fmt, p1, p2, p3, p4, p5)\
+ MIPI_SYST_CATALOG64_5_LOC16(svh, sev, f, id, p1, p2, p3, p4, p5)
+#define MIPI_SYST_CATPRINTF64_6_LOC16(svh, sev, f, id, fmt, p1, p2, p3, p4, p5, p6)\
+ MIPI_SYST_CATALOG64_6_LOC16(svh, sev, f, id, p1, p2, p3, p4, p5, p6)
+#define MIPI_SYST_CATPRINTF64_0_LOC32(svh, sev, f, id, fmt)\
+ MIPI_SYST_CATALOG64_0_LOC32(svh, sev, f, id)
+#define MIPI_SYST_CATPRINTF64_1_LOC32(svh, sev, f, id, fmt, p1)\
+ MIPI_SYST_CATALOG64_1_LOC32(svh, sev, f, id, p1)
+#define MIPI_SYST_CATPRINTF64_2_LOC32(svh, sev, f, id, fmt, p1, p2)\
+ MIPI_SYST_CATALOG64_2_LOC32(svh, sev, f, id, p1, p2)
+#define MIPI_SYST_CATPRINTF64_3_LOC32(svh, sev, f, id, fmt, p1, p2, p3)\
+ MIPI_SYST_CATALOG64_3_LOC32(svh, sev, f, id, p1, p2, p3)
+#define MIPI_SYST_CATPRINTF64_4_LOC32(svh, sev, f, id, fmt, p1, p2, p3, p4)\
+ MIPI_SYST_CATALOG64_4_LOC32(svh, sev, f, id, p1, p2, p3, p4)
+#define MIPI_SYST_CATPRINTF64_5_LOC32(svh, sev, f, id, fmt, p1, p2, p3, p4, p5)\
+ MIPI_SYST_CATALOG64_5_LOC32(svh, sev, f, id, p1, p2, p3, p4, p5)
+#define MIPI_SYST_CATPRINTF64_6_LOC32(svh, sev, f, id, fmt, p1, p2, p3, p4, p5, p6)\
+ MIPI_SYST_CATALOG64_6_LOC32(svh, sev, f, id, p1, p2, p3, p4, p5, p6)
+/** @} */
+
+#ifdef __cplusplus
+} /* extern C */
+#endif
+#endif
diff --git a/library/include/mipi_syst/compiler.h b/library/include/mipi_syst/compiler.h
new file mode 100644
index 0000000..822642e
--- /dev/null
+++ b/library/include/mipi_syst/compiler.h
@@ -0,0 +1,193 @@
+/*
+Copyright (c) 2018, MIPI Alliance, Inc.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+* Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+* Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Contributors:
+ * Norbert Schulz (Intel Corporation) - Initial API and implementation
+ */
+
+/* Compiler specific defines */
+
+#ifndef MIPI_SYST_COMPILER_INCLUDED
+#define MIPI_SYST_COMPILER_INCLUDED
+
+#if defined(__cplusplus)
+extern "C" {
+#endif
+
+#if defined(_WIN32) /* MSVC Compiler section */
+
+/* basic integer types
+ */
+typedef __int8 mipi_syst_s8;
+typedef __int16 mipi_syst_s16;
+typedef __int32 mipi_syst_s32;
+typedef __int64 mipi_syst_s64;
+
+typedef unsigned __int8 mipi_syst_u8;
+typedef unsigned __int16 mipi_syst_u16;
+typedef unsigned __int32 mipi_syst_u32;
+typedef unsigned __int64 mipi_syst_u64;
+
+/* shared library import/export
+ */
+#if defined(MIPI_SYST_STATIC)
+#define MIPI_SYST_EXPORT
+#define MIPI_SYST_EXPORT
+#else
+#if defined(MIPI_SYST_EXPORTS)
+#define MIPI_SYST_EXPORT __declspec(dllexport)
+#else
+#define MIPI_SYST_EXPORT __declspec(dllimport)
+#endif
+#endif
+
+#define MIPI_SYST_CALLCONV __stdcall
+
+/* Caution: Windows doesn't support attribute based shared library
+ * life time functions. Add these calls into a dllmain routine
+ * instead.
+ */
+#define MIPI_SYST_SHAREDLIB_CONSTRUCTOR
+#define MIPI_SYST_SHAREDLIB_DESTRUCTOR
+
+#define MIPI_SYST_FUNCTION_NAME __FUNCTION__
+#define MIPI_SYST_LINE __LINE__
+#define MIPI_SYST_FILE __FILE__
+
+#if defined(NDEBUG)
+#define _MIPI_SYST_OPTIMIZER_ON
+#endif
+
+#define MIPI_SYST_CC_INLINE __inline
+
+/* Macros for byte swapping to little endian
+ *
+ * Assume this compiler is always little endian
+ */
+#define MIPI_SYST_HTOLE16(v) (v)
+#define MIPI_SYST_HTOLE32(v) (v)
+#define MIPI_SYST_HTOLE64(v) (v)
+
+/* HW CRC32C support ? */
+#if defined(MIPI_SYST_CRC_INTRINSIC_ON)
+#define MIPI_SYST_CRC_INTRINSIC
+
+#include <intrin.h>
+#define _MIPI_SYST_CPU_CRC8(crc, v) _mm_crc32_u8((crc), (v))
+#define _MIPI_SYST_CPU_CRC16(crc, v) _mm_crc32_u16((crc), (v))
+#define _MIPI_SYST_CPU_CRC32(crc, v) _mm_crc32_u32((crc), (v))
+#if defined(_WIN64)
+#define _MIPI_SYST_CPU_CRC64(crc, v) (mipi_syst_u32)_mm_crc32_u64((crc), (v))
+#else
+#define _MIPI_SYST_CPU_CRC64(crc, v) \
+ _mm_crc32_u32(\
+ _mm_crc32_u32((crc), (mipi_syst_u32)(v)), \
+ ((mipi_syst_u32)((v)>> 32))\
+ )
+#endif
+#endif
+
+#elif defined(__GNUC__) /* GNU-C Compiler section */
+
+/* basic integer types
+ */
+typedef char mipi_syst_s8;
+typedef short mipi_syst_s16;
+typedef int mipi_syst_s32;
+typedef long long mipi_syst_s64;
+
+typedef unsigned char mipi_syst_u8;
+typedef unsigned short mipi_syst_u16;
+typedef unsigned int mipi_syst_u32;
+typedef unsigned long long mipi_syst_u64;
+
+/* shared library related settings
+ */
+#define MIPI_SYST_EXPORT
+#define MIPI_SYST_CALLCONV
+
+#define MIPI_SYST_SHAREDLIB_CONSTRUCTOR __attribute__((constructor))
+#define MIPI_SYST_SHAREDLIB_DESTRUCTOR __attribute__((destructor))
+
+#define MIPI_SYST_FUNCTION_NAME __PRETTY_FUNCTION__
+#define MIPI_SYST_LINE __LINE__
+#define MIPI_SYST_FILE __FILE__
+#define MIPI_SYST_CC_INLINE inline
+
+/* Macros for byte swapping to little endian
+ */
+#if defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
+#define MIPI_SYST_BIG_ENDIAN
+
+#define MIPI_SYST_HTOLE16(v) \
+ ((((mipi_syst_u16)(v))>>8)|((((mipi_syst_u16)(v))&0xFF)<<8))
+#define MIPI_SYST_HTOLE32(v) \
+ ((mipi_syst_u32)__builtin_bswap32((mipi_syst_u32)(v)))
+#define MIPI_SYST_HTOLE64(v) \
+ ((mipi_syst_u64)__builtin_bswap64((mipi_syst_u64)(v)))
+#else
+#define MIPI_SYST_HTOLE16(v) (v)
+#define MIPI_SYST_HTOLE32(v) (v)
+#define MIPI_SYST_HTOLE64(v) (v)
+#endif
+
+#if defined(__OPTIMIZE__)
+#define _MIPI_SYST_OPTIMIZER_ON
+#endif
+
+/* HW CRC32C support ? */
+#if defined(MIPI_SYST_CRC_INTRINSIC_ON)
+#define MIPI_SYST_CRC_INTRINSIC
+
+#define _MIPI_SYST_CPU_CRC8(crc, v) __builtin_ia32_crc32qi((crc), (v))
+#define _MIPI_SYST_CPU_CRC16(crc, v) __builtin_ia32_crc32hi((crc), (v))
+#define _MIPI_SYST_CPU_CRC32(crc, v) __builtin_ia32_crc32si((crc), (v))
+#if defined(_WIN64) || defined(__x86_64__) || defined (__LP64__)
+#define _MIPI_SYST_CPU_CRC64(crc, v) (mipi_syst_u32)__builtin_ia32_crc32di((crc), (v))
+#else
+#define _MIPI_SYST_CPU_CRC64(crc, v) \
+ __builtin_ia32_crc32si (\
+ __builtin_ia32_crc32si((crc), (mipi_syst_u32)(v)), \
+ ((mipi_syst_u32)((v)>> 32))\
+ )
+#endif
+#endif
+#else
+#error unknown compiler, copy and adapt one of the sections above
+#endif
+
+#ifdef __cplusplus
+} /* extern C */
+#endif
+#endif
diff --git a/library/include/mipi_syst/crc32.h b/library/include/mipi_syst/crc32.h
new file mode 100644
index 0000000..108de54
--- /dev/null
+++ b/library/include/mipi_syst/crc32.h
@@ -0,0 +1,138 @@
+/*
+Copyright (c) 2018, MIPI Alliance, Inc.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+* Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+* Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Contributors:
+ * Norbert Schulz (Intel Corporation) - Initial API and implementation
+ */
+
+/* Defines for CRC32C computation */
+
+#ifndef MIPI_SYST_CRC32_INCLUDED
+#define MIPI_SYST_CRC32_INCLUDED
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
+#if !defined(MIPI_SYST_PCFG_ENABLE_CHECKSUM)
+
+#define MIPI_SYST_CRC32_INIT(v)
+#define MIPI_SYST_CRC32_GET(v)
+
+#define MIPI_SYST_CRC32_U8(crc, v)
+#define MIPI_SYST_CRC32_U16(crc, v)
+#define MIPI_SYST_CRC32_U32(crc, v)
+#define MIPI_SYST_CRC32_U64(crc, v)
+
+#else
+
+extern const mipi_syst_u32 mipi_syst_crc_table[256];
+
+#define MIPI_SYST_CRC32_INIT(v) ((v) ^ 0xFFFFFFFF)
+#define MIPI_SYST_CRC32_GET(v) ((v) ^ 0xFFFFFFFF)
+
+#define MIPI_SYST_CRC32_U8(crc, v) { crc = mipi_syst_crc32_8((crc), (v)); }
+#define MIPI_SYST_CRC32_U16(crc, v) { crc = mipi_syst_crc32_16((crc), (v)); }
+#define MIPI_SYST_CRC32_U32(crc, v) { crc = mipi_syst_crc32_32((crc), (v)); }
+#define MIPI_SYST_CRC32_U64(crc, v) { crc = mipi_syst_crc32_64((crc), (v)); }
+
+#if !defined(MIPI_SYST_PCFG_ENABLE_INLINE)
+
+MIPI_SYST_INLINE mipi_syst_u32 mipi_syst_crc32_8(mipi_syst_u32 crc, mipi_syst_u8 b);
+MIPI_SYST_INLINE mipi_syst_u32 mipi_syst_crc32_16(mipi_syst_u32 crc, mipi_syst_u16 hw);
+MIPI_SYST_INLINE mipi_syst_u32 mipi_syst_crc32_32(mipi_syst_u32 crc, mipi_syst_u32 hw);
+MIPI_SYST_INLINE mipi_syst_u32 mipi_syst_crc32_64(mipi_syst_u32 crc, mipi_syst_u64 hw);
+
+#else
+
+MIPI_SYST_INLINE mipi_syst_u32 mipi_syst_crc32_8(mipi_syst_u32 crc, mipi_syst_u8 b)
+{
+#if (defined(MIPI_SYST_CRC_INTRINSIC))
+ return _MIPI_SYST_CPU_CRC8(crc, b);
+#else
+ return mipi_syst_crc_table[((int) crc ^ b) & 0xff] ^ (crc >> 8);
+#endif
+}
+
+MIPI_SYST_INLINE mipi_syst_u32 mipi_syst_crc32_16(mipi_syst_u32 crc, mipi_syst_u16 s)
+{
+#if (defined(MIPI_SYST_CRC_INTRINSIC))
+ return _MIPI_SYST_CPU_CRC16(crc, s);
+#else
+ crc = mipi_syst_crc32_8(crc, (mipi_syst_u8) s);
+ crc = mipi_syst_crc32_8(crc, (mipi_syst_u8) (s >> 8));
+ return crc;
+#endif
+}
+
+
+MIPI_SYST_INLINE mipi_syst_u32 mipi_syst_crc32_32(mipi_syst_u32 crc, mipi_syst_u32 w)
+{
+#if (defined(MIPI_SYST_CRC_INTRINSIC))
+ return _MIPI_SYST_CPU_CRC32(crc, w);
+#else
+
+ crc = mipi_syst_crc32_8(crc, (mipi_syst_u8) w);
+ crc = mipi_syst_crc32_8(crc, (mipi_syst_u8) (w >> 8));
+ crc = mipi_syst_crc32_8(crc, (mipi_syst_u8) (w >> 16));
+ crc = mipi_syst_crc32_8(crc, (mipi_syst_u8) (w >> 24));
+ return crc;
+#endif
+}
+
+MIPI_SYST_INLINE mipi_syst_u32 mipi_syst_crc32_64(mipi_syst_u32 crc, mipi_syst_u64 l)
+{
+#if (defined(MIPI_SYST_CRC_INTRINSIC))
+ return _MIPI_SYST_CPU_CRC64(crc, l);
+#else
+ crc = mipi_syst_crc32_8(crc, (mipi_syst_u8) l);
+ crc = mipi_syst_crc32_8(crc, (mipi_syst_u8) (l >> 8));
+ crc = mipi_syst_crc32_8(crc, (mipi_syst_u8) (l >> 16));
+ crc = mipi_syst_crc32_8(crc, (mipi_syst_u8) (l >> 24));
+ crc = mipi_syst_crc32_8(crc, (mipi_syst_u8) (l >> 32));
+ crc = mipi_syst_crc32_8(crc, (mipi_syst_u8) (l >> 40));
+ crc = mipi_syst_crc32_8(crc, (mipi_syst_u8) (l >> 48));
+ crc = mipi_syst_crc32_8(crc, (mipi_syst_u8) (l >> 56));
+ return crc;
+#endif
+}
+#endif
+#endif /* defined(MIPI_SYST_PCFG_ENABLE_CHECKSUM) */
+
+#ifdef __cplusplus
+} /* extern C */
+#endif
+
+#endif
diff --git a/library/include/mipi_syst/inline.h b/library/include/mipi_syst/inline.h
new file mode 100644
index 0000000..65996e7
--- /dev/null
+++ b/library/include/mipi_syst/inline.h
@@ -0,0 +1,245 @@
+/*
+Copyright (c) 2018, MIPI Alliance, Inc.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+* Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+* Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Contributors:
+ * Norbert Schulz (Intel Corporation) - Initial API and implementation
+ */
+
+/* Instrumentation API inline code definitions */
+
+#ifndef MIPI_SYST_INLINE_INCLUDED
+#define MIPI_SYST_INLINE_INCLUDED
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD)
+
+/**
+ * Update File Location in syst handle
+ * @param h syst handle pointer
+ * @param f file id (16 bit)
+ * @param l line number in file (16 bit)
+ */
+MIPI_SYST_INLINE struct mipi_syst_msglocation* MIPI_SYST_CALLCONV
+mipi_syst_make_file_location32(struct mipi_syst_handle* h, mipi_syst_u16 f, mipi_syst_u16 l)
+{
+ if (h) {
+ h->systh_location.el_format = 0;
+ h->systh_location.el_u.loc32.etls_source_location.etls_fileID = f;
+ h->systh_location.el_u.loc32.etls_source_location.etls_lineNo = l;
+ }
+
+ return &h->systh_location;
+}
+/**
+ * Update File Location in syst handle
+ * @param h syst handle pointer
+ * @param f file id (32 bit)
+ * @param l line number in file (32 bit)
+ */
+MIPI_SYST_INLINE struct mipi_syst_msglocation* MIPI_SYST_CALLCONV
+mipi_syst_make_file_location64(struct mipi_syst_handle* h, mipi_syst_u32 f, mipi_syst_u32 l)
+{
+ if (h) {
+ h->systh_location.el_format = 1;
+ h->systh_location.el_u.loc64.etls_source_location.etls_fileID = f;
+ h->systh_location.el_u.loc64.etls_source_location.etls_lineNo = l;
+ }
+
+ return &h->systh_location;
+}
+
+/**
+ * Update address Location in syst handle
+ * @param h syst handle pointer
+ * @param p address at instrumentation point
+ */
+MIPI_SYST_INLINE struct mipi_syst_msglocation* MIPI_SYST_CALLCONV
+mipi_syst_make_address_location(struct mipi_syst_handle* h, void *p)
+{
+ if (h) {
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+
+ h->systh_location.el_format = 3;
+ h->systh_location.el_u.loc64.etls_code_location = (mipi_syst_u64) p;
+#else
+ h->systh_location.el_format = 2;
+ h->systh_location.el_u.loc32.etls_code_location = (mipi_syst_u32) p;
+#endif
+ }
+ return &h->systh_location;
+}
+
+#endif /* defined(MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD) */
+
+/**
+ * Setup handle for 0 parameters passed to catid message.
+ */
+MIPI_SYST_INLINE void MIPI_SYST_CALLCONV mipi_syst_make_param0(struct mipi_syst_handle* h)
+{
+ if (h)
+ h->systh_param_count = 0;
+}
+/**
+ * Setup handle for 1 parameter passed to catid message.
+ */
+MIPI_SYST_INLINE void MIPI_SYST_CALLCONV mipi_syst_make_param1(struct mipi_syst_handle* h,
+ mipi_syst_u32 p1)
+{
+ if (h) {
+ h->systh_param_count = 1;
+ h->systh_param[0] = p1;
+ }
+}
+
+/**
+ * Setup handle for 2 parameters passed to catid message.
+ */
+MIPI_SYST_INLINE void MIPI_SYST_CALLCONV mipi_syst_make_param2(struct mipi_syst_handle* h,
+ mipi_syst_u32 p1,
+ mipi_syst_u32 p2)
+{
+ if (h) {
+ h->systh_param_count = 2;
+ h->systh_param[0] = p1;
+ h->systh_param[1] = p2;
+ }
+}
+
+/**
+ * Setup handle for 3 parameters passed to catid message.
+ */
+MIPI_SYST_INLINE void MIPI_SYST_CALLCONV mipi_syst_make_param3(struct mipi_syst_handle* h,
+ mipi_syst_u32 p1,
+ mipi_syst_u32 p2,
+ mipi_syst_u32 p3)
+{
+ if (h) {
+ h->systh_param_count = 3;
+ h->systh_param[0] = p1;
+ h->systh_param[1] = p2;
+ h->systh_param[2] = p3;
+ }
+}
+
+/**
+ * Setup handle for 4 parameters passed to catid message.
+ */
+MIPI_SYST_INLINE void MIPI_SYST_CALLCONV mipi_syst_make_param4(struct mipi_syst_handle* h,
+ mipi_syst_u32 p1,
+ mipi_syst_u32 p2,
+ mipi_syst_u32 p3,
+ mipi_syst_u32 p4)
+{
+ if (h) {
+ h->systh_param_count = 4;
+ h->systh_param[0] = p1;
+ h->systh_param[1] = p2;
+ h->systh_param[2] = p3;
+ h->systh_param[3] = p4;
+ }
+}
+
+/**
+ * Setup handle for 5 parameters passed to catid message.
+ */
+MIPI_SYST_INLINE void MIPI_SYST_CALLCONV mipi_syst_make_param5(struct mipi_syst_handle* h,
+ mipi_syst_u32 p1,
+ mipi_syst_u32 p2,
+ mipi_syst_u32 p3,
+ mipi_syst_u32 p4,
+ mipi_syst_u32 p5)
+{
+ if (h) {
+ h->systh_param_count = 5;
+ h->systh_param[0] = p1;
+ h->systh_param[1] = p2;
+ h->systh_param[2] = p3;
+ h->systh_param[3] = p4;
+ h->systh_param[4] = p5;
+ }
+}
+
+/**
+ * Setup handle for 6 parameters passed to catid message.
+ */
+MIPI_SYST_INLINE void MIPI_SYST_CALLCONV mipi_syst_make_param6(struct mipi_syst_handle* h,
+ mipi_syst_u32 p1,
+ mipi_syst_u32 p2,
+ mipi_syst_u32 p3,
+ mipi_syst_u32 p4,
+ mipi_syst_u32 p5,
+ mipi_syst_u32 p6)
+{
+ if (h) {
+ h->systh_param_count = 6;
+ h->systh_param[0] = p1;
+ h->systh_param[1] = p2;
+ h->systh_param[2] = p3;
+ h->systh_param[3] = p4;
+ h->systh_param[4] = p5;
+ h->systh_param[5] = p6;
+ }
+}
+
+/**
+ * Runtime computation of hash values for catalog message IDs.
+ * This function is used in debug builds to avoid a code explosion
+ * by the preprocessor method ( @see mipi_syst_hash_x65599 ). The
+ * preprocesssor methods does compute this value at compile time only
+ * if const expression optimisations are enabled.
+ */
+MIPI_SYST_INLINE mipi_syst_u32 mipi_syst_hash_x65599(
+ const char * p, mipi_syst_u32 length)
+{
+ mipi_syst_u32 hash;
+ mipi_syst_u8 c;
+ hash = 0;
+
+ p += (length > 0x3F) ? (length-0x40): 0;
+
+ while (0 != (c = *p++))
+ {
+ hash = hash * 65599U + c;
+ }
+
+ return hash;
+}
+#ifdef __cplusplus
+} /* extern C */
+#endif
+
+#endif
diff --git a/library/include/mipi_syst/message.h b/library/include/mipi_syst/message.h
new file mode 100644
index 0000000..285512b
--- /dev/null
+++ b/library/include/mipi_syst/message.h
@@ -0,0 +1,159 @@
+/*
+Copyright (c) 2018, MIPI Alliance, Inc.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+* Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+* Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Contributors:
+ * Norbert Schulz (Intel Corporation) - Initial API and implementation
+ */
+
+/* Internal message storage buffering */
+
+#ifndef MIPI_syst_msg_INCLUDED
+#define MIPI_syst_msg_INCLUDED
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * Catalog ID container
+ */
+union mipi_syst_catid {
+ mipi_syst_u32 sci_32;
+ mipi_syst_u64 sci_64;
+} ;
+
+/**
+ * SyS-T message descriptor
+ *
+ * This structure stores a SyS-T message in "logical" memory format.
+ * Logical means that all optional fields are present but not necessarily
+ * used. Variable length payloads are addressed through a pointer and
+ * are not copied into the structure.
+ */
+ struct mipi_syst_msgdsc {
+ struct mipi_syst_msg_tag ed_tag;
+ /**< 32-bit message tag (mandatory) */
+#if defined(MIPI_SYST_PCFG_ENABLE_ORIGIN_GUID)
+ struct mipi_syst_guid ed_guid; /**< origin GUID (optional) */
+#endif
+
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD)
+ struct mipi_syst_msglocation ed_loc;
+ /**< message source location (optional) */
+#endif
+#if defined(MIPI_SYST_PCFG_ENABLE_TIMESTAMP)
+ mipi_syst_u64 ed_ts; /**< protocol embedded time stamp */
+#endif
+
+#if defined(MIPI_SYST_PCFG_LENGTH_FIELD)
+ mipi_syst_u16 ed_len; /**< variable payload length (optional) */
+#endif
+
+ union {
+ struct {
+ mipi_syst_u64 id;
+ const void *text;
+ } data_version;
+
+ struct {
+ union mipi_syst_catid id;
+ mipi_syst_u32 *param;
+ } data_catid;
+
+#if defined(MIPI_SYST_PCFG_ENABLE_TIMESTAMP)
+ mipi_syst_u64 data_clock[2];
+#endif
+ const void *data_var; /**< variable length payload */
+ } ed_pld;
+
+#if defined(MIPI_SYST_PCFG_ENABLE_CHECKSUM)
+ mipi_syst_u32 ed_chk; /**< message checksum (optional) */
+#endif
+};
+
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+#define MIPI_SYST_EVDSC_MEMBER_OFF(m)\
+ ((mipi_syst_u16)(mipi_syst_u64)&(((struct mipi_syst_msgdsc*)0)->m))
+#else
+#define MIPI_SYST_EVDSC_MEMBER_OFF(m)\
+ ((mipi_syst_u16)(mipi_syst_u32)&(((struct mipi_syst_msgdsc*)0)->m))
+#endif
+
+/**
+ * message scatter write operations
+ */
+enum u_syst_scatter_op {
+ MIPI_SYST_SCATTER_OP_SKIP = 0x00,
+ /**< skip sso_length bytes */
+
+ MIPI_SYST_SCATTER_OP_8BIT = 0x01,
+ /**< write sso_length times 8 bit */
+ MIPI_SYST_SCATTER_OP_16BIT = 0x02,
+ /**< write sso_length times 16 bit */
+ MIPI_SYST_SCATTER_OP_32BIT = 0x04,
+ /**< write sso_length times 32 bit */
+ MIPI_SYST_SCATTER_OP_64BIT = 0x08,
+ /**< write sso_length times 64 bit */
+
+ MIPI_SYST_SCATTER_OP_BLOB = 0x10,
+ /**< write sso_length bytes that are
+ * accessed through a pointer */
+ MIPI_SYST_SCATTER_OP_END = 0xFF
+ /**< end of scatter writer program */
+};
+
+/**
+ * message scatter write instruction definition
+ */
+struct mipi_syst_scatter_prog {
+ mipi_syst_u8 sso_opcode; /**< scatter write operation
+ * @see u_syst_scatter_op */
+ mipi_syst_u8 sso_offset; /**< data offset in message descriptor */
+ mipi_syst_u16 sso_length;
+ /**< repeat count for sso_opcode */
+};
+
+#define MIPI_SYST_SCATTER_PROG_LEN 10 /**< maximum needed scatter prog size */
+
+#if defined(MIPI_SYST_PCFG_ENABLE_DEFAULT_SCATTER_WRITE)
+/* default scatter write routine */
+extern void mipi_syst_scatter_write(struct mipi_syst_handle* systh,
+ struct mipi_syst_scatter_prog* scatterprog,
+ const void *pdesc);
+#endif
+
+#ifdef __cplusplus
+} /* extern C */
+#endif
+#endif
diff --git a/library/platform/example/include/mipi_syst/platform.h b/library/platform/example/include/mipi_syst/platform.h
new file mode 100644
index 0000000..701f3a2
--- /dev/null
+++ b/library/platform/example/include/mipi_syst/platform.h
@@ -0,0 +1,188 @@
+/*
+Copyright (c) 2018, MIPI Alliance, Inc.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+* Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+* Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Contributors:
+ * Norbert Schulz (Intel Corporation) - Initial API and implementation
+ */
+
+/* Example platform specific extensions
+ * This "platform" shows how to implement a SyS-T platform modules.
+ * This platform simple prints its IO actions to stdout.
+ */
+
+#ifndef MIPI_SYST_PLATFORM_INCLUDED
+#define MIPI_SYST_PLATFORM_INCLUDED
+
+/* Uncomment to turn code in-lining off.
+ *
+ * #undef MIPI_SYST_PCFG_ENABLE_INLINE
+ */
+
+#if defined(MIPI_SYST_PCFG_ENABLE_HEAP_MEMORY)
+#include <stdlib.h>
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+* Platform specific SyS-T global state extension
+*
+* The contents of this structure can be freely defined to
+* match platform specific data needs. It can later be
+* accessed through the mipi_syst_header systh_platform member.
+*
+* This platform example puts low-level output function pointers
+* here. Real implementations may have them "inlined" for performance
+* reasons.
+*/
+struct mipi_syst_platform_state {
+ void (*write_d32ts)(struct mipi_syst_handle * systh, mipi_syst_u32 v);
+ void (*write_d32mts)(struct mipi_syst_handle * systh, mipi_syst_u32 v);
+ void (*write_d64mts)(struct mipi_syst_handle * systh, mipi_syst_u64 v);
+ void (*write_d8)(struct mipi_syst_handle * systh, mipi_syst_u8 v);
+ void (*write_d16)(struct mipi_syst_handle * systh, mipi_syst_u16 v);
+ void (*write_d32)(struct mipi_syst_handle * systh, mipi_syst_u32 v);
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_IO)
+ void (*write_d64)(struct mipi_syst_handle * systh, mipi_syst_u64 v);
+#endif
+ void (*write_flag)(struct mipi_syst_handle * systh);
+
+ void * sph_init_data;
+};
+
+extern MIPI_SYST_EXPORT void MIPI_SYST_CALLCONV
+ mipi_syst_platform_init(struct mipi_syst_header *, const void *);
+extern MIPI_SYST_EXPORT void MIPI_SYST_CALLCONV
+ mipi_syst_platform_destroy(struct mipi_syst_header * systh);
+
+#if defined(MIPI_SYST_PCFG_ENABLE_TIMESTAMP)
+/* This example uses UNIX epoch time in micro second resolution
+* as own clock.
+*/
+#define MIPI_SYST_PLATFORM_CLOCK() mipi_syst_get_epoch_us()
+#define MIPI_SYST_PLATFORM_FREQ() 1000000
+
+MIPI_SYST_EXPORT mipi_syst_u64 MIPI_SYST_CALLCONV mipi_syst_get_epoch_us(void);
+
+#endif /* defined(MIPI_SYST_PCFG_ENABLE_TIMESTAMP) */
+
+/**
+* Platform specific SyS-T handle state extension
+*
+* The contents of this structure can be freely defined to
+* match platform specific data needs. It can later be
+* accessed through the syst_handles systh_platform member.
+*
+* @see MIPI_SYST_PCFG_ENABLE_PLATFORM_HANDLE_DATA struct mipi_syst_handle
+*/
+struct mipi_syst_platform_handle {
+ mipi_syst_u32 sph_io_count; /**< cnt io's, used for pretty printing */
+ mipi_syst_u32 sph_raw_count; /**< number of raw bytes in sph_raw */
+ mipi_syst_u8 sph_raw[2 * 64 * 1024]; /**< buffer for printing */
+};
+
+
+#if defined(MIPI_SYST_PCFG_ENABLE_HEAP_MEMORY)
+/**
+* Map heap memory allocation to platform malloc() implementation.
+*
+* This function is used for handle allocations if heap usage
+* is supported by the platform.
+*
+* @param s number of bytes to allocate
+* @see MIPI_SYST_HEAP_FREE
+*/
+#define MIPI_SYST_HEAP_MALLOC(s) mipi_syst_platform_alloc(s)
+
+/**
+* Map heap memory free function to platform free() implementation.
+*
+* This function is used for handle release if heap usage
+* is supported by the platform.
+*
+* @param p pointer previously returned from MIPI_SYST_HEAP_MALLOC or NULL.
+* @see MIPI_SYST_HEAP_MALLOC
+*/
+#define MIPI_SYST_HEAP_FREE(p) mipi_syst_platform_free(p)
+
+extern MIPI_SYST_EXPORT void * MIPI_SYST_CALLCONV mipi_syst_platform_alloc(size_t s);
+extern MIPI_SYST_EXPORT void MIPI_SYST_CALLCONV mipi_syst_platform_free(void *);
+#endif
+
+/* IO output routine mapping
+* Call the function pointers in the global state
+*/
+#if defined(MIPI_SYST_PCFG_ENABLE_PLATFORM_STATE_DATA)
+#define MIPI_SYST_OUTPUT_D32TS(syst_handle, data) \
+ (syst_handle)->systh_header->systh_platform.write_d32ts((syst_handle), (data))
+#define MIPI_SYST_OUTPUT_D32MTS(syst_handle, data) \
+ (syst_handle)->systh_header->systh_platform.write_d32mts((syst_handle), (data))
+#define MIPI_SYST_OUTPUT_D64MTS(syst_handle, data) \
+ (syst_handle)->systh_header->systh_platform.write_d64mts((syst_handle), (data))
+#define MIPI_SYST_OUTPUT_D8(syst_handle, data) \
+ (syst_handle)->systh_header->systh_platform.write_d8((syst_handle), (data))
+#define MIPI_SYST_OUTPUT_D16(syst_handle, data) \
+ (syst_handle)->systh_header->systh_platform.write_d16((syst_handle), (data))
+#define MIPI_SYST_OUTPUT_D32(syst_handle, data) \
+ (syst_handle)->systh_header->systh_platform.write_d32((syst_handle), (data))
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_IO)
+#define MIPI_SYST_OUTPUT_D64(syst_handle, data) \
+ (syst_handle)->systh_header->systh_platform.write_d64((syst_handle), (data))
+#endif
+#define MIPI_SYST_OUTPUT_FLAG(syst_handle) \
+ (syst_handle)->systh_header->systh_platform.write_flag((syst_handle))
+#else
+#define MIPI_SYST_OUTPUT_D32TS(syst_handle, data)
+#define MIPI_SYST_OUTPUT_D32MTS(syst_handle, data)
+#define MIPI_SYST_OUTPUT_D64MTS(syst_handle, data)
+#define MIPI_SYST_OUTPUT_D8(syst_handle, data)
+#define MIPI_SYST_OUTPUT_D16(syst_handle, data)
+#define MIPI_SYST_OUTPUT_D32(syst_handle, data)
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_IO)
+#define MIPI_SYST_OUTPUT_D64(syst_handle, data)
+#endif
+#define MIPI_SYST_OUTPUT_FLAG(syst_handle)
+#endif // MIPI_SYST_PCFG_ENABLE_PLATFORM_STATE_DATA
+
+#endif
+
+#if defined(MIPI_SYST_UNIT_TEST)
+#define MIPI_SYST_UNIT_TEST_EXAMPLE
+#endif
+
+#ifdef __cplusplus
+} /* extern C */
+#endif
diff --git a/library/platform/example/src/mipi_syst_platform.c b/library/platform/example/src/mipi_syst_platform.c
new file mode 100644
index 0000000..223dbdd
--- /dev/null
+++ b/library/platform/example/src/mipi_syst_platform.c
@@ -0,0 +1,404 @@
+/*
+Copyright (c) 2018, MIPI Alliance, Inc.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+* Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+* Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Contributors:
+ * Norbert Schulz (Intel Corporation) - Initial API and implementation
+ */
+
+#include <stdio.h>
+#if defined(_WIN32)
+#include <windows.h>
+#else
+#include <sys/time.h>
+#endif
+
+#include "mipi_syst.h"
+
+/* "driver" data output routines */
+static void write_d32mts(struct mipi_syst_handle* systh, mipi_syst_u32 v);
+static void write_d64mts(struct mipi_syst_handle* systh, mipi_syst_u64 v);
+static void write_d32ts(struct mipi_syst_handle* systh, mipi_syst_u32 v);
+static void write_d8(struct mipi_syst_handle* systh, mipi_syst_u8 v);
+static void write_d16(struct mipi_syst_handle* systh, mipi_syst_u16 v);
+static void write_d32(struct mipi_syst_handle* systh, mipi_syst_u32 v);
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_IO)
+static void write_d64(struct mipi_syst_handle* systh, mipi_syst_u64 vp);
+#endif
+static void write_flag(struct mipi_syst_handle* systh);
+
+/**
+ * Platform specific SyS-T handle initialization hook function
+ *
+ * @param systh pointer to the new SyS-T handle structure
+ */
+static void platform_handle_init(struct mipi_syst_handle* systh)
+{
+#if !defined(MIPI_SYST_UNIT_TEST)
+ printf(
+ " in SyS-T platform handle init hook: systh = %p\n\n",
+ systh
+ );
+#endif
+
+ /* Initialize platform specific data in global state
+ * This example just stores the platform_data, a real implementation
+ * would put data into the handle structure that enables the output
+ * routines to execute efficiently (pointer for MMIO for example).
+ */
+#if defined(MIPI_SYST_PCFG_ENABLE_PLATFORM_HANDLE_DATA)
+
+#endif
+}
+
+/**
+ * Platform specific SyS-T handle initialization hook function
+ *
+ * @param systh pointer to the new SyS-T handle structure
+ */
+static void platform_handle_release(struct mipi_syst_handle* systh)
+{
+#if !defined(MIPI_SYST_UNIT_TEST) && defined(MIPI_SYST_PCFG_ENABLE_PLATFORM_HANDLE_DATA)
+ printf(
+ " in SyS-T platform handle release hook:systh = %p\n",
+ systh
+ );
+#endif
+
+ /* Release any handle specific data or resources here.*/
+}
+
+/**
+ * Platform specific global state initialization hook function
+ *
+ * @param systh pointer to the new SyS-T handle structure
+ * @param platform_data user defined data for the init function.
+ */
+MIPI_SYST_EXPORT void MIPI_SYST_CALLCONV
+mipi_syst_platform_init(struct mipi_syst_header* systh, const void * platform_data)
+{
+#if !defined(MIPI_SYST_UNIT_TEST)
+ printf(
+ " in SyS-T platform init hook: \"mipi_syst_platform_state_init()\"\n"
+ " systh = %p, platform_data = %p\n",
+ systh,
+ platform_data
+ );
+#endif
+
+ /* Set handle init hook that performs per SyS-T handle initialization
+ * and destruction
+ */
+#if defined(MIPI_SYST_PCFG_ENABLE_PLATFORM_HANDLE_DATA)
+ systh->systh_inith = platform_handle_init;
+ systh->systh_releaseh = platform_handle_release;
+#endif
+
+ /* Initialize platform specific data in global state
+ * This platform example puts its low level output function
+ * pointers here. A real implementation may have these "inlined"
+ * for performance reasons.
+ */
+#if defined(MIPI_SYST_PCFG_ENABLE_PLATFORM_STATE_DATA)
+ systh->systh_platform.write_d32ts = write_d32ts;
+ systh->systh_platform.write_d32mts = write_d32mts;
+ systh->systh_platform.write_d64mts = write_d64mts;
+ systh->systh_platform.write_d8 = write_d8;
+ systh->systh_platform.write_d16 = write_d16;
+ systh->systh_platform.write_d32 = write_d32;
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_IO)
+ systh->systh_platform.write_d64 = write_d64;
+#endif
+ systh->systh_platform.write_flag = write_flag;
+#endif
+}
+
+MIPI_SYST_EXPORT void MIPI_SYST_CALLCONV
+mipi_syst_platform_destroy(struct mipi_syst_header* systh)
+{
+ (void)systh;
+}
+
+#if !defined(MIPI_SYST_STATIC)
+/**
+ * This example platform uses SyS-T as a shared library inside an
+ * application. The platform init hook is called during a shared library
+ * constructor call.
+ */
+static MIPI_SYST_SHAREDLIB_CONSTRUCTOR void shared_library_init()
+{
+ /* Initialize SyS-T infrastructure
+ * This must be done once at platform startup.
+ * The parameters are the platform specific initialization function and
+ * the data that gets passed to it.
+ */
+ printf("calling MIPI_SYST_INIT() from platform code \n");
+ MIPI_SYST_INIT(mipi_syst_platform_init, (void*)42);
+}
+
+/**
+ * This example platform uses SyS-T as a shared library inside an
+ * application. The platform destroy hook is called during a shared library
+ * destructor call.
+ */
+static MIPI_SYST_SHAREDLIB_DESTRUCTOR void shared_library_exit()
+{
+ /* run platform shutdown code */
+ MIPI_SYST_SHUTDOWN(mipi_syst_platform_destroy);
+ printf("\nexecuted MIPI_SYST_SHUTDOWN() from platform code \n");
+}
+
+#if defined(_WIN32)
+/**
+ * Windows DLL main routine, needed to run the global initialization and
+ * destruction handlers.
+ */
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved)
+{
+ (void)lpReserved;
+ (void)hinstDLL;
+
+ switch (fdwReason) {
+ case DLL_PROCESS_ATTACH:
+ shared_library_init();
+ break;
+ case DLL_PROCESS_DETACH:
+ shared_library_exit();
+ break;
+ }
+ return TRUE;
+}
+#endif
+#endif /* !defined(MIPI_SYST_STATIC) */
+
+#if defined(MIPI_SYST_PCFG_ENABLE_PLATFORM_HANDLE_DATA)
+
+/* Save a message bytes for printing the raw message when completed.
+ */
+static void append_raw(
+ struct mipi_syst_handle* systh,
+ const void * p,
+ int n)
+{
+ int i;
+
+#if defined(MIPI_SYST_BIG_ENDIAN)
+ for (i = n-1; i >= 0; --i) {
+#else
+ for (i = 0; i < n; ++i) {
+#endif
+ mipi_syst_u32 index = systh->systh_platform.sph_raw_count++;
+ if (index < sizeof(systh->systh_platform.sph_raw)) {
+ systh->systh_platform.sph_raw[index] =
+ ((const mipi_syst_u8*)p)[i];
+ }
+ else {
+ fprintf(stderr, "Internal Error: Record buffer overflow\n");
+ break;
+ }
+ }
+}
+#endif
+
+/* dump contents for raw message bytes
+ */
+static void write_rawdata(struct mipi_syst_handle* systh)
+{
+#if defined(MIPI_SYST_PCFG_ENABLE_PLATFORM_HANDLE_DATA)
+ static char valToHex[] = "0123456789ABCDEF";
+ const mipi_syst_u8 *p;
+
+ printf("SYS-T RAW DATA: ");
+ for (p = systh->systh_platform.sph_raw;
+ systh->systh_platform.sph_raw_count;
+ ++p, --systh->systh_platform.sph_raw_count)
+ {
+ putc(valToHex[(*p) >> 0x4], stdout);
+ putc(valToHex[(*p) & 0xF], stdout);
+ }
+#endif
+}
+
+/* Dummy driver output routines that just print their operation.
+ */
+static void write_d32mts(struct mipi_syst_handle* systh, mipi_syst_u32 v)
+{
+ /* d32mts == Short SyS-T header, reset io count
+ */
+#if defined(MIPI_SYST_PCFG_ENABLE_PLATFORM_HANDLE_DATA)
+ systh->systh_platform.sph_io_count = 0;
+ systh->systh_platform.sph_raw_count = 0;
+
+
+ printf("STP Protocol Output:\n");
+
+ printf(" %2d <D32MTS> %08x\n",
+ systh->systh_platform.sph_io_count++, v);
+
+ append_raw(systh, &v, sizeof(v));
+ write_rawdata(systh);
+ printf("\n\n");
+#endif
+}
+static void write_d64mts(struct mipi_syst_handle* systh, mipi_syst_u64 v)
+{
+ /* d64mts == 64-Bit Short SyS-T header, reset io count
+ */
+#if defined(MIPI_SYST_PCFG_ENABLE_PLATFORM_HANDLE_DATA)
+ systh->systh_platform.sph_io_count = 0;
+
+ printf("STP Protocol Output:\n");
+
+ printf(" %2d <D64MTS> %08llx\n",
+ systh->systh_platform.sph_io_count++, v);
+
+ append_raw(systh, &v, sizeof(v));
+ write_rawdata(systh);
+ printf("\n\n");
+
+#endif
+}
+
+static void write_d32ts(struct mipi_syst_handle* systh, mipi_syst_u32 v)
+{
+ /* d32ts == SyS-T header, reset io count
+ */
+#if defined(MIPI_SYST_PCFG_ENABLE_PLATFORM_HANDLE_DATA)
+ systh->systh_platform.sph_io_count = 0;
+
+ printf("STP Protocol Output:\n");
+
+ printf(" %2d <D32TS> %08x\n",
+ systh->systh_platform.sph_io_count++, v);
+
+ append_raw(systh, &v, sizeof(v));
+#endif
+}
+static void write_d8(struct mipi_syst_handle* systh, mipi_syst_u8 v)
+{
+#if defined(MIPI_SYST_PCFG_ENABLE_PLATFORM_HANDLE_DATA)
+ printf(" %2d <D8> %02x\n",
+ systh->systh_platform.sph_io_count++, v);
+
+ append_raw(systh, &v, sizeof(v));
+#endif
+}
+
+static void write_d16(struct mipi_syst_handle* systh, mipi_syst_u16 v)
+{
+#if defined(MIPI_SYST_PCFG_ENABLE_PLATFORM_HANDLE_DATA)
+ printf(" %2d <D16> %04x\n",
+ systh->systh_platform.sph_io_count++, v);
+
+ append_raw(systh, &v, sizeof(v));
+#endif
+}
+
+static void write_d32(struct mipi_syst_handle* systh, mipi_syst_u32 v)
+{
+#if defined(MIPI_SYST_PCFG_ENABLE_PLATFORM_HANDLE_DATA)
+ printf(" %2d <D32> %08x\n",
+ systh->systh_platform.sph_io_count++, v);
+
+ append_raw(systh, &v, sizeof(v));
+#endif
+}
+
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_IO)
+static void write_d64(struct mipi_syst_handle* systh, mipi_syst_u64 v)
+{
+#if defined(MIPI_SYST_PCFG_ENABLE_PLATFORM_HANDLE_DATA)
+ printf(" %2d <D64> %08x%08x\n",
+ systh->systh_platform.sph_io_count++,
+#if defined(MIPI_SYST_BIG_ENDIAN)
+ (mipi_syst_u32)v, (mipi_syst_u32)(v >> 32);
+#else
+ (mipi_syst_u32)(v >> 32), (mipi_syst_u32)v);
+#endif
+#endif
+ append_raw(systh, &v, sizeof(v));
+}
+#endif
+
+static void write_flag(struct mipi_syst_handle* systh)
+{
+#if defined(MIPI_SYST_PCFG_ENABLE_PLATFORM_HANDLE_DATA)
+ printf(" %2d <FLAG>\n", systh->systh_platform.sph_io_count++);
+
+ write_rawdata(systh);
+ printf("\n\n");
+
+#endif
+}
+
+MIPI_SYST_EXPORT
+mipi_syst_u64 MIPI_SYST_CALLCONV mipi_syst_get_epoch_us()
+{
+ mipi_syst_u64 epoch;
+#if defined(MIPI_SYST_UNIT_TEST)
+ epoch = 0x12345678aabbccddull;
+#elif defined(_WIN32)
+ // Windows does not offer epoch time API directly.
+ // Search for the 116444... constant below on
+ // MSDN for an explanation of the computation:
+ //
+ FILETIME ft;
+ GetSystemTimeAsFileTime(&ft);
+ epoch = ft.dwHighDateTime;
+ epoch = ((epoch << 32) | ft.dwLowDateTime) / 10 - 11644473600000000ULL;
+
+#else
+ struct timeval tv;
+
+ gettimeofday(&tv, NULL);
+ epoch = tv.tv_sec;
+ epoch *= 1000000;
+ epoch += tv.tv_usec;
+#endif
+ return epoch;
+}
+
+#if defined(MIPI_SYST_PCFG_ENABLE_HEAP_MEMORY)
+MIPI_SYST_EXPORT
+void * MIPI_SYST_CALLCONV mipi_syst_platform_alloc(size_t s)
+{
+ return malloc(s);
+}
+
+MIPI_SYST_EXPORT
+void MIPI_SYST_CALLCONV mipi_syst_platform_free(void * p)
+{
+ free(p);
+}
+
+#endif /* defined(MIPI_SYST_PCFG_ENABLE_HEAP_MEMORY) */ \ No newline at end of file
diff --git a/library/platform/mipi_stp_sim/include/mipi_syst/platform.h b/library/platform/mipi_stp_sim/include/mipi_syst/platform.h
new file mode 100644
index 0000000..aab1c72
--- /dev/null
+++ b/library/platform/mipi_stp_sim/include/mipi_syst/platform.h
@@ -0,0 +1,156 @@
+/*
+Copyright (c) 2018, MIPI Alliance, Inc.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+* Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+* Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Contributors:
+ * Norbert Schulz (Intel Corporation) - Initial API and implementation
+ */
+
+/* Example platform adaptation
+ * This "platform" shows how to implement a SyS-T library platform module
+ * to simulate MIPI STP data protocol generation for SyS-T messages.
+ */
+#ifndef MIPI_SYST_PLATFORM_INCLUDED
+#define MIPI_SYST_PLATFORM_INCLUDED
+
+
+/* Uncomment to turn code inlining off.
+ *
+ * #undef MIPI_SYST_PCFG_ENABLE_INLINE
+ */
+
+#if defined(MIPI_SYST_PCFG_ENABLE_HEAP_MEMORY)
+#include <stdlib.h>
+#endif
+
+#include <stdio.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+ struct MipiStpWriter;
+
+ struct mipi_syst_platform_state {
+ void (*write_d32ts)(struct mipi_syst_handle * systh, mipi_syst_u32 v);
+ void (*write_d32mts)(struct mipi_syst_handle * systh, mipi_syst_u32 v);
+ void (*write_d64mts)(struct mipi_syst_handle * systh, mipi_syst_u64 v);
+
+ void (*write_d8)(struct mipi_syst_handle * systh, mipi_syst_u8 v);
+ void (*write_d16)(struct mipi_syst_handle * systh, mipi_syst_u16 v);
+ void (*write_d32)(struct mipi_syst_handle * systh, mipi_syst_u32 v);
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_IO)
+ void (*write_d64)(struct mipi_syst_handle * systh, mipi_syst_u64 v);
+#endif
+ void (*write_flag)(struct mipi_syst_handle * systh);
+
+ struct stp_writer_data * stpWriter;
+ };
+
+ extern MIPI_SYST_EXPORT void MIPI_SYST_CALLCONV
+ mipi_syst_platform_init(struct mipi_syst_header* , const void *);
+ extern MIPI_SYST_EXPORT void MIPI_SYST_CALLCONV
+ mipi_syst_platform_destroy(struct mipi_syst_header* systh);
+
+ struct mipi_syst_platform_handle {
+ mipi_syst_u32 master;
+ mipi_syst_u32 channel;
+ };
+
+
+
+#if defined(MIPI_SYST_PCFG_ENABLE_HEAP_MEMORY)
+
+/**
+* Map heap memory allocation to platform malloc() implementation.
+*
+* This function is used for handle allocations if heap usage
+* is supported by the platform.
+*
+* @param s number of bytes to allocate
+* @see MIPI_SYST_HEAP_FREE
+*/
+#define MIPI_SYST_HEAP_MALLOC(s) mipi_syst_platform_alloc(s)
+
+/**
+* Map heap memory free function to platform free() implementation.
+*
+* This function is used for handle release if heap usage
+* is supported by the platform.
+*
+* @param p pointer previously returned from MIPI_SYST_HEAP_MALLOC or NULL.
+* @see MIPI_SYST_HEAP_MALLOC
+*/
+#define MIPI_SYST_HEAP_FREE(p) mipi_syst_platform_free(p)
+
+extern MIPI_SYST_EXPORT void * MIPI_SYST_CALLCONV mipi_syst_platform_alloc(size_t s);
+extern MIPI_SYST_EXPORT void MIPI_SYST_CALLCONV mipi_syst_platform_free(void *);
+#endif
+
+#if defined(MIPI_SYST_PCFG_ENABLE_TIMESTAMP)
+/* This example uses UNIX epoch time in micro second resolution
+ * as own clock.
+ */
+#define MIPI_SYST_PLATFORM_CLOCK() mipi_syst_get_epoch_us()
+#define MIPI_SYST_PLATFORM_FREQ() 1000000
+
+MIPI_SYST_EXPORT mipi_syst_u64 MIPI_SYST_CALLCONV mipi_syst_get_epoch_us();
+#endif /* defined(MIPI_SYST_PCFG_ENABLE_TIMESTAMP) */
+
+/* IO output routine mapping
+ * Call the function pointers in the global SyS-T state
+ */
+#define MIPI_SYST_OUTPUT_D32TS(syst_handle, data) \
+ (syst_handle)->systh_header->systh_platform.write_d32ts((syst_handle), (data))
+#define MIPI_SYST_OUTPUT_D32MTS(syst_handle, data) \
+ (syst_handle)->systh_header->systh_platform.write_d32mts((syst_handle), (data))
+#define MIPI_SYST_OUTPUT_D64MTS(syst_handle, data) \
+ (syst_handle)->systh_header->systh_platform.write_d64mts((syst_handle), (data))
+#define MIPI_SYST_OUTPUT_D8(syst_handle, data) \
+ (syst_handle)->systh_header->systh_platform.write_d8((syst_handle), (data))
+#define MIPI_SYST_OUTPUT_D16(syst_handle, data) \
+ (syst_handle)->systh_header->systh_platform.write_d16((syst_handle), (data))
+#define MIPI_SYST_OUTPUT_D32(syst_handle, data) \
+ (syst_handle)->systh_header->systh_platform.write_d32((syst_handle), (data))
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_IO)
+#define MIPI_SYST_OUTPUT_D64(syst_handle, data) \
+ (syst_handle)->systh_header->systh_platform.write_d64((syst_handle), (data))
+#endif
+#define MIPI_SYST_OUTPUT_FLAG(syst_handle) \
+ (syst_handle)->systh_header->systh_platform.write_flag((syst_handle))
+
+#ifdef __cplusplus
+} /* extern C */
+#endif
+
+#endif
diff --git a/library/platform/mipi_stp_sim/src/mipi_syst_platform.c b/library/platform/mipi_stp_sim/src/mipi_syst_platform.c
new file mode 100644
index 0000000..187205b
--- /dev/null
+++ b/library/platform/mipi_stp_sim/src/mipi_syst_platform.c
@@ -0,0 +1,561 @@
+/*
+Copyright (c) 2018, MIPI Alliance, Inc.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+* Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+* Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Contributors:
+ * Norbert Schulz (Intel Corporation) - Initial API and implementation
+ */
+
+
+/* Example platform adaptation
+ * This "platform" shows how to implement a SyS-T library platform module
+ * to simulate MIPI STP data protocol generation for SyS-T messages.
+ */
+#if defined(_WIN32)
+#include <windows.h>
+#else
+#include <sys/time.h>
+#endif
+#include <stdio.h>
+#include <string.h>
+
+#include "mipi_syst.h"
+
+#if defined(_WIN32)
+static CRITICAL_SECTION lockPlat;
+#define LOCKING_INIT() InitializeCriticalSection(&lockPlat)
+#define LOCKING_DESTROY() DeleteCriticalSection(&lockPlat)
+#define LOCK() EnterCriticalSection(&lockPlat)
+#define UNLOCK() LeaveCriticalSection(&lockPlat)
+
+#else
+
+#include <pthread.h>
+static pthread_mutex_t lockPlat;
+
+#define LOCKING_INIT() pthread_mutex_init(&lockPlat, NULL)
+#define LOCKING_DESTROY() pthread_mutex_destroy(&lockPlat)
+#define LOCK() pthread_mutex_lock(&lockPlat)
+#define UNLOCK() pthread_mutex_unlock(&lockPlat)
+
+#endif
+
+MIPI_SYST_EXPORT mipi_syst_u64 MIPI_SYST_CALLCONV mipi_syst_get_epoch_us()
+{
+ mipi_syst_u64 epoch;
+#if defined(MIPI_SYST_UNIT_TEST)
+ epoch = 0x12345678aabbccddull;
+#elif defined(_WIN32)
+ // windows does not offer epoch time API directly.
+ // Search for the 116444... constant below on
+ // msdn for an explanation of this computation:
+ //
+ FILETIME ft;
+ GetSystemTimeAsFileTime(&ft);
+ epoch = ft.dwHighDateTime;
+ epoch = ((epoch<<32) | ft.dwLowDateTime) / 10 - 11644473600000000ULL;
+#else
+ struct timeval tv;
+ gettimeofday(&tv, NULL);
+ epoch = tv.tv_sec;
+ epoch *= 1000000;
+ epoch += tv.tv_usec;
+#endif
+ return epoch;
+}
+
+#if defined(MIPI_SYST_PCFG_ENABLE_HEAP_MEMORY)
+MIPI_SYST_EXPORT
+void * MIPI_SYST_CALLCONV mipi_syst_platform_alloc(size_t s)
+{
+ return malloc(s);
+}
+
+MIPI_SYST_EXPORT
+void MIPI_SYST_CALLCONV mipi_syst_platform_free(void * p)
+{
+ free(p);
+}
+
+#endif /* defined(MIPI_SYST_PCFG_ENABLE_HEAP_MEMORY) */
+
+/* helper class for generating STP protocol data
+*/
+struct stp_writer_data {
+ FILE * fp; /* output */
+ mipi_syst_u8 byteDone; /* true = byte complete */
+ mipi_syst_u8 current; /* current byte value */
+ mipi_syst_u16 master; /* current master */
+ mipi_syst_u16 channel; /* current channel */
+ mipi_syst_u64 recordCount; /* count stp packets */
+
+ mipi_syst_u64 timestamp; /* first timestamp */
+};
+
+
+static struct stp_writer_data writer_state;
+
+void stp_write_putNibble(struct stp_writer_data* p, mipi_syst_u8 n)
+{
+ p->current |= (n<<4);
+ p->byteDone = ! p->byteDone;
+
+ if (p->byteDone) { /* push it out .. */
+ fputc(p->current, p->fp);
+ p->current = 0;
+ } else { /* first nibble, shift it down to b0..3 */
+ p->current >>= 4;
+ }
+}
+
+void stp_write_flush(struct stp_writer_data* p) {
+ if (!p->byteDone) {
+ stp_write_putNibble(p, 0);
+ }
+
+ fflush(p->fp);
+}
+void stp_write_d4(struct stp_writer_data* p, mipi_syst_u8 v) {
+ stp_write_putNibble(p, v);
+}
+
+void stp_write_payload8(struct stp_writer_data* p, mipi_syst_u8 v) {
+ stp_write_d4(p, v);
+ stp_write_d4(p, v>>4);
+}
+
+void stp_write_payload16(struct stp_writer_data* p, mipi_syst_u16 v) {
+ stp_write_payload8(p, (mipi_syst_u8)v);
+ stp_write_payload8(p, (mipi_syst_u8)(v>>8));
+}
+
+void stp_write_payload32(struct stp_writer_data* p, mipi_syst_u32 v) {
+ stp_write_payload16(p, (mipi_syst_u16)v);
+ stp_write_payload16(p, (mipi_syst_u16)(v>>16));
+}
+
+void stp_write_payload64(struct stp_writer_data* p, mipi_syst_u64 v) {
+ stp_write_payload32(p, (mipi_syst_u32)v);
+ stp_write_payload32(p, (mipi_syst_u32)(v>>32));
+}
+
+mipi_syst_u64 deltaTime(struct stp_writer_data* p)
+{
+ mipi_syst_u64 delta;
+
+ delta = mipi_syst_get_epoch_us() - p->timestamp;
+ return delta * 60; /* simluate 60Mhz clock */
+}
+void stp_write_d32mts(struct stp_writer_data* p, mipi_syst_u32 v) {
+ stp_write_d4(p, 0xA);
+ stp_write_payload32(p, v);
+
+ stp_write_d4(p, 0xE);
+ stp_write_payload64(p, deltaTime(p));
+}
+
+void stp_write_d64mts(struct stp_writer_data* p, mipi_syst_u64 v) {
+ stp_write_d4(p, 0xB);
+ stp_write_payload64(p, v);
+
+ stp_write_d4(p, 0xE);
+ stp_write_payload64(p, deltaTime(p));
+}
+void stp_write_d32ts(struct stp_writer_data* p, mipi_syst_u32 v) {
+ stp_write_d4(p, 0xF);
+ stp_write_d4(p, 0x6);
+
+ stp_write_payload32(p, v);
+
+ stp_write_d4(p, 0xE);
+ stp_write_payload64(p, deltaTime(p));
+}
+
+void stp_write_d8(struct stp_writer_data* p, mipi_syst_u8 v) {
+ stp_write_d4(p, 0x4);
+ stp_write_payload8(p, v);
+}
+
+void stp_write_d16(struct stp_writer_data* p, mipi_syst_u16 v) {
+ stp_write_d4(p, 0x5);
+ stp_write_payload16(p, v);
+}
+
+
+void stp_write_d32(struct stp_writer_data* p, mipi_syst_u32 v) {
+ stp_write_d4(p, 0x6);
+ stp_write_payload32(p, v);
+}
+
+
+void stp_write_d64(struct stp_writer_data* p, mipi_syst_u64 v)
+{
+ stp_write_d4(p, 0x7);
+ stp_write_payload64(p, v);
+}
+
+void stp_write_flag(struct stp_writer_data* p)
+{
+ stp_write_d4(p, 0xF);
+ stp_write_d4(p, 0xE);
+}
+
+void stp_write_async(struct stp_writer_data* p)
+{
+ int i;
+ for(i=0; i < 21; ++i) {
+ stp_write_d4(p, 0xF);
+ }
+ stp_write_d4(p, 0x0);
+}
+
+void stp_write_version(struct stp_writer_data* p)
+{
+ stp_write_d4(p, 0xF);
+ stp_write_d4(p, 0x0);
+ stp_write_d4(p, 0x0);
+
+ stp_write_d4(p, 0x3); /* STPv2NAT */
+
+ p->master = p->channel = 0;
+}
+
+void stp_write_freq(struct stp_writer_data* p)
+{
+ stp_write_d4(p, 0xF);
+ stp_write_d4(p, 0x0);
+ stp_write_d4(p, 0x8);
+ stp_write_payload32(p, 60 * 1000 * 1000 ); // 60 Mhz
+}
+
+void stp_write_setMC(struct stp_writer_data* p,
+ mipi_syst_u16 master,
+ mipi_syst_u16 channel)
+{
+ /* re-send async after 20 packets */
+ if (!(p->recordCount++ % 20) ) {
+ stp_write_async(p);
+ stp_write_version(p);
+ stp_write_freq(p);
+ }
+
+ if (p->master != master ) {
+ stp_write_d4(p, 0xF);
+ stp_write_d4(p, 0x1);
+ stp_write_payload16(p, master);
+
+ p->master = master;
+ p->channel = 0;
+ }
+
+ if (p->channel != channel) {
+ stp_write_d4(p, 0xF);
+ stp_write_d4(p, 0x3);
+ stp_write_payload16(p, channel);
+
+ p->channel = channel;
+ }
+}
+
+
+
+/* output stream for STP data
+*/
+static FILE * fp;
+static mipi_syst_u16 master = 128; /* Default MIPI STP master:channel */
+static mipi_syst_u16 channel = 1;
+
+
+/* low level "driver" output routines */
+static void sth_write_d32ts(struct mipi_syst_handle* systh, mipi_syst_u32 v);
+static void sth_write_d32mts(struct mipi_syst_handle* systh, mipi_syst_u32 v);
+static void sth_write_d64mts(struct mipi_syst_handle* systh, mipi_syst_u64 v);
+static void sth_write_d8(struct mipi_syst_handle* systh, mipi_syst_u8 v);
+static void sth_write_d16(struct mipi_syst_handle* systh, mipi_syst_u16 v);
+static void sth_write_d32(struct mipi_syst_handle* systh, mipi_syst_u32 v);
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_IO)
+static void sth_write_d64(struct mipi_syst_handle* systh, mipi_syst_u64 vp);
+#endif
+static void sth_write_user8ts(struct mipi_syst_handle* systh, mipi_syst_u8 v);
+static void sth_write_flag(struct mipi_syst_handle* systh);
+
+/*
+* Platform specific SyS-T handle initialization hook function
+*
+* @param systh pointer to the new SyS-T handle structure
+*/
+static void platform_handle_init(struct mipi_syst_handle* systh)
+{
+ LOCK();
+
+ /* Simply increment channels on each handle request and advance
+ * to next master if all consumed.
+ */
+ if (channel > 127) {
+ ++master;
+ channel = 1;
+ }
+
+ systh->systh_platform.channel = channel++;
+ systh->systh_platform.master = master;
+
+ UNLOCK();
+}
+
+/**
+* Platform specific SyS-T handle initialization hook function
+*
+* @param systh pointer to the new SyS-T handle structure
+*/
+static void platform_handle_release(struct mipi_syst_handle* systh)
+{
+ LOCK();
+
+ /* add any race protected cleanup code here
+ */
+
+ UNLOCK();
+}
+
+MIPI_SYST_EXPORT void MIPI_SYST_CALLCONV
+ mipi_syst_platform_init(struct mipi_syst_header* systh, const void * platform_data)
+{
+ const char * filename;
+
+ LOCKING_INIT();
+
+ /* Platform data is expected to be UTF-8 string with the STP output
+ * file name.
+ */
+ filename = (const char *)platform_data;
+
+ if (filename == NULL ||!strcmp(filename, "-"))
+ {
+ fp = stdout;
+ } else {
+ fp = fopen((char*)platform_data, "wb");
+
+ if (fp == NULL) {
+ fprintf(stderr, "Unable to open file '%s'.\n", (char*)platform_data);
+ exit(-1);
+ }
+ }
+
+ /* create the STP output writer
+ */
+ writer_state.byteDone = 0;
+ writer_state.fp = fp;
+ writer_state.current = 0;
+ writer_state.master = 0;
+ writer_state.channel = 0;
+ writer_state.recordCount=0;
+ writer_state.timestamp = mipi_syst_get_epoch_us();
+
+ systh->systh_platform.stpWriter = & writer_state;
+
+ /* Set handle init hook that performs per SyS-T handle initialization
+ * and destruction
+ */
+ systh->systh_inith = platform_handle_init;
+ systh->systh_releaseh = platform_handle_release;
+
+ /* Initialize platform specific data in global SyS-T state
+ * This platform example puts its low level output function
+ * pointers here. A real implementation may have these "inlined"
+ * for performance reasons.
+ */
+ systh->systh_platform.write_d32ts = sth_write_d32ts;
+ systh->systh_platform.write_d32mts = sth_write_d32mts;
+ systh->systh_platform.write_d64mts = sth_write_d64mts;
+ systh->systh_platform.write_d8 = sth_write_d8;
+ systh->systh_platform.write_d16 = sth_write_d16;
+ systh->systh_platform.write_d32 = sth_write_d32;
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_IO)
+ systh->systh_platform.write_d64 = sth_write_d64;
+#endif
+ systh->systh_platform.write_flag = sth_write_flag;
+}
+
+MIPI_SYST_EXPORT void MIPI_SYST_CALLCONV
+ mipi_syst_platform_destroy(struct mipi_syst_header* systh)
+{
+ if (systh->systh_platform.stpWriter != NULL &&
+ systh->systh_platform.stpWriter->fp != NULL)
+ {
+ fflush(systh->systh_platform.stpWriter->fp);
+
+ if (systh->systh_platform.stpWriter->fp != stdout)
+ {
+ fclose(systh->systh_platform.stpWriter->fp);
+ systh->systh_platform.stpWriter->fp = NULL;
+ }
+ }
+
+ LOCKING_DESTROY();
+}
+
+#if !defined(MIPI_SYST_STATIC)
+
+/*
+* This example platform uses SyS-T as a shared library inside an
+* application. The platform init hook is called during a shared library
+* constructor call.
+*/
+static MIPI_SYST_SHAREDLIB_CONSTRUCTOR
+ void shared_library_init()
+{
+ const char * filename;
+
+ filename = getenv("SYSTCAT_OUTPUT");
+ if (filename == NULL) {
+ filename = "syst_stp_data.bin";
+ }
+
+ MIPI_SYST_INIT(mipi_syst_platform_init, filename);
+
+ if (filename[0] != '-' && filename[1] != 0 ) {
+ printf("writing STP data into '%s' ...\n", filename);
+ }
+}
+
+/*
+* This example platform uses SyS-T as a shared library inside an
+* application. The platform destroy hook is called during a shared library
+* destructor call.
+*/
+static MIPI_SYST_SHAREDLIB_DESTRUCTOR void shared_library_exit()
+{
+ MIPI_SYST_SHUTDOWN(mipi_syst_platform_destroy);
+}
+
+#if defined(_WIN32)
+/*
+* Windows DLL main routine, needed to run the global initialization and
+* destruction handlers.
+*/
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved )
+{
+ switch(fdwReason) {
+ case DLL_PROCESS_ATTACH:
+ shared_library_init();
+ break;
+ case DLL_PROCESS_DETACH:
+ shared_library_exit();
+ break;
+ }
+ return TRUE;
+}
+#endif
+
+#endif /* #if !defined(MIPI_SYST_STATIC) */
+
+
+/* C code low level driver output routine wrappers for SyS-T
+*/
+static void sth_write_d32ts(struct mipi_syst_handle* systh, mipi_syst_u32 v)
+{
+ struct stp_writer_data * writer = systh->systh_header->systh_platform.stpWriter;
+
+ /* Each message starts with d32ts. We use this as an */
+ /* indicator to lock the output writer until we wrote the */
+ /* end of record flag pattern. */
+ LOCK();
+
+
+ stp_write_setMC(writer,
+ systh->systh_platform.master, systh->systh_platform.channel );
+ stp_write_d32ts(writer, v);
+}
+
+/* short single 32 bit payload message */
+static void sth_write_d32mts(struct mipi_syst_handle* systh, mipi_syst_u32 v)
+{
+ struct stp_writer_data * writer = systh->systh_header->systh_platform.stpWriter;
+
+ LOCK();
+
+ stp_write_setMC(writer,
+ systh->systh_platform.master,systh->systh_platform.channel );
+ stp_write_d32mts(writer, v);
+
+ UNLOCK();
+}
+/* short single 64 bit payload message */
+static void sth_write_d64mts(struct mipi_syst_handle* systh, mipi_syst_u64 v)
+{
+ struct stp_writer_data * writer = systh->systh_header->systh_platform.stpWriter;
+
+ LOCK();
+
+ stp_write_setMC(writer,
+ systh->systh_platform.master,systh->systh_platform.channel );
+ stp_write_d64mts(writer, v);
+
+ UNLOCK();
+}
+static void sth_write_d8(struct mipi_syst_handle* systh, mipi_syst_u8 v)
+{
+ struct stp_writer_data * writer = systh->systh_header->systh_platform.stpWriter;
+ stp_write_d8(writer, v);
+}
+
+static void sth_write_d16(struct mipi_syst_handle* systh, mipi_syst_u16 v)
+{
+ struct stp_writer_data * writer = systh->systh_header->systh_platform.stpWriter;
+ stp_write_d16(writer, v);
+}
+
+static void sth_write_d32(struct mipi_syst_handle* systh, mipi_syst_u32 v)
+{
+ struct stp_writer_data * writer = systh->systh_header->systh_platform.stpWriter;
+ stp_write_d32(writer, v);
+}
+
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_IO)
+static void sth_write_d64(struct mipi_syst_handle* systh, mipi_syst_u64 v)
+{
+ struct stp_writer_data * writer = systh->systh_header->systh_platform.stpWriter;
+ stp_write_d64(writer, v);
+}
+#endif
+
+static void sth_write_flag(struct mipi_syst_handle* systh)
+{
+ struct stp_writer_data * writer = systh->systh_header->systh_platform.stpWriter;
+
+ stp_write_flag(writer);
+ stp_write_flush(writer);
+
+ /* atomic record write done - matching lock was in sth_write_d32ts() */
+ UNLOCK();
+} \ No newline at end of file
diff --git a/library/platform/nop/include/mipi_syst/platform.h b/library/platform/nop/include/mipi_syst/platform.h
new file mode 100644
index 0000000..d8c2eb7
--- /dev/null
+++ b/library/platform/nop/include/mipi_syst/platform.h
@@ -0,0 +1,153 @@
+/*
+Copyright (c) 2018, MIPI Alliance, Inc.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+* Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+* Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Contributors:
+ * Norbert Schulz (Intel Corporation) - Initial API and implementation
+ */
+
+/* Minimal platform example (which is acutally is a NOP)
+* This "platform" shows how to use the SyS-T platform modules
+* to implement platform specific customizations.
+*/
+
+#ifndef MIPI_SYST_PLATFORM_INCLUDED
+#define MIPI_SYST_PLATFORM_INCLUDED
+
+/* Uncomment to turn code inlining off.
+ *
+ * #undef MIPI_SYST_PCFG_ENABLE_INLINE
+ */
+
+#if defined(MIPI_SYST_PCFG_ENABLE_HEAP_MEMORY)
+#include <stdlib.h>
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+* Platform specific SyS-T global state extension
+*
+* The contents of this structure can be freely defined to
+* match platform specific data needs. It can later be
+* accessed through the mipi_syst_header systh_platform member.
+*
+* This platform example puts low-level output function pointers
+* here. Real implementations may have them "inlined" for performance
+* reasons.
+*/
+struct mipi_syst_platform_state {
+ volatile void * mmio;
+};
+
+extern MIPI_SYST_EXPORT void MIPI_SYST_CALLCONV
+ mipi_syst_platform_init(struct mipi_syst_header *, const void *);
+extern MIPI_SYST_EXPORT void MIPI_SYST_CALLCONV
+ mipi_syst_platform_destroy(struct mipi_syst_header * systh);
+
+#if defined(MIPI_SYST_PCFG_ENABLE_TIMESTAMP)
+/* this example uses UNIX epoch time in micro-second resolution
+* as own clock.
+*/
+#if defined(MIPI_SYST_UNIT_TEST)
+#define MIPI_SYST_PLATFORM_CLOCK() 0x12345678aabbccdd
+#else
+#define MIPI_SYST_PLATFORM_CLOCK() 0 /* replace with real clock provider */
+#endif
+#define MIPI_SYST_PLATFORM_FREQ() 1000*1000
+
+#endif /* defined(MIPI_SYST_PCFG_ENABLE_TIMESTAMP) */
+
+/**
+* Platform specific SyS-T handle state extension
+*
+* The contents of this structure can be freely defined to
+* match platform specific data needs. It can later be
+* accessed through the syst_handles's systh_platform member.
+*
+* @see MIPI_SYST_PCFG_ENABLE_PLATFORM_HANDLE_DATA struct mipi_syst_handle
+*/
+struct mipi_syst_platform_handle {
+ volatile void * mmio_addr;
+};
+
+
+#if defined(MIPI_SYST_PCFG_ENABLE_HEAP_MEMORY)
+/**
+* Map heap memory allocation to platfrom malloc() implementation.
+*
+* This function is used for handle allocations if heap usage
+* is supported by the platform.
+*
+* @param s number of bytes to allocate
+* @see MIPI_SYST_HEAP_FREE
+*/
+#define MIPI_SYST_HEAP_MALLOC(s) mipi_syst_platform_alloc(s)
+
+/**
+* Map heap memory free function to platfrom free() implementation.
+*
+* This function is used for handle release if heap usage
+* is supported by the platform.
+*
+* @param p pointer previously returned from MIPI_SYST_HEAP_MALLOC or NULL.
+* @see MIPI_SYST_HEAP_MALLOC
+*/
+#define MIPI_SYST_HEAP_FREE(p) mipi_syst_platform_free(p)
+
+extern MIPI_SYST_EXPORT void * MIPI_SYST_CALLCONV mipi_syst_platform_alloc(size_t s);
+extern MIPI_SYST_EXPORT void MIPI_SYST_CALLCONV mipi_syst_platform_free(void *);
+#endif
+
+/* IO output routine mapping
+ * Define these to generate SyS-T data protocol output
+ */
+#define MIPI_SYST_OUTPUT_D32TS(syst_handle, data)
+#define MIPI_SYST_OUTPUT_D32MTS(syst_handle, data)
+#define MIPI_SYST_OUTPUT_D64MTS(syst_handle, data)
+#define MIPI_SYST_OUTPUT_D8(syst_handle, data)
+#define MIPI_SYST_OUTPUT_D16(syst_handle, data)
+#define MIPI_SYST_OUTPUT_D32(syst_handle, data)
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_IO)
+#define MIPI_SYST_OUTPUT_D64(syst_handle, data)
+#endif
+#define MIPI_SYST_OUTPUT_FLAG(syst_handle)
+
+#endif
+
+
+#ifdef __cplusplus
+} /* extern C */
+#endif
diff --git a/library/platform/nop/src/mipi_syst_platform.c b/library/platform/nop/src/mipi_syst_platform.c
new file mode 100644
index 0000000..3175f33
--- /dev/null
+++ b/library/platform/nop/src/mipi_syst_platform.c
@@ -0,0 +1,146 @@
+/*
+Copyright (c) 2018, MIPI Alliance, Inc.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+* Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+* Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Contributors:
+ * Norbert Schulz (Intel Corporation) - Initial API and implementation
+ */
+
+#include <stdio.h>
+#if defined(_WIN32)
+#include <windows.h>
+#endif
+#include "mipi_syst.h"
+
+
+/**
+ * Platform specific SyS-T handle initialization hook function
+ *
+ * @param systh pointer to the new SyS-T handle structure
+ */
+static void platform_handle_init(struct mipi_syst_handle* systh)
+{
+}
+
+/**
+ * Platform specific SyS-T handle initialization hook function
+ *
+ * @param systh pointer to the new SyS-T handle structure
+ */
+static void platform_handle_release(struct mipi_syst_handle* systh)
+{
+}
+
+/**
+ * Platform specific global state initialization hook function
+ *
+ * @param systh pointer to the new SyS-T handle structure
+ * @param platform_data user defined data for the init function.
+ */
+MIPI_SYST_EXPORT void MIPI_SYST_CALLCONV
+mipi_syst_platform_init(struct mipi_syst_header* systh, const void * platform_data)
+{
+ /* Set handle init hook that performs per SyS-T handle initialization
+ * and destruction
+ */
+#if defined(MIPI_SYST_PCFG_ENABLE_PLATFORM_HANDLE_DATA)
+ systh->systh_inith = platform_handle_init;
+ systh->systh_releaseh = platform_handle_release;
+#endif
+}
+
+MIPI_SYST_EXPORT void MIPI_SYST_CALLCONV
+mipi_syst_platform_destroy(struct mipi_syst_header* systh)
+{
+}
+
+
+#if defined(MIPI_SYST_PCFG_ENABLE_HEAP_MEMORY)
+MIPI_SYST_EXPORT
+void * MIPI_SYST_CALLCONV mipi_syst_platform_alloc(size_t s)
+{
+ return malloc(s);
+}
+
+MIPI_SYST_EXPORT
+void MIPI_SYST_CALLCONV mipi_syst_platform_free(void * p)
+{
+ free(p);
+}
+
+
+#if !defined(MIPI_SYST_STATIC)
+/**
+* This example platform uses SyS-T as a shared library inside an
+* application. The platform init hook is called during a shared library
+* constructor call.
+*/
+static MIPI_SYST_SHAREDLIB_CONSTRUCTOR void shared_library_init()
+{
+ MIPI_SYST_INIT(mipi_syst_platform_init, (void*)42);
+}
+
+/**
+* This example platform uses SyS-T as a shared library inside an
+* application. The platform destroy hook is called during a shared library
+* destructor call.
+*/
+static MIPI_SYST_SHAREDLIB_DESTRUCTOR void shared_library_exit()
+{
+ /* run platform shutdown code */
+ MIPI_SYST_SHUTDOWN(mipi_syst_platform_destroy);
+}
+
+#if defined(_WIN32)
+/**
+* Windows DLL main routine, needed to run the global initialization and
+* destruction handlers.
+*/
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved)
+{
+ (void)lpReserved;
+ (void)hinstDLL;
+
+ switch (fdwReason) {
+ case DLL_PROCESS_ATTACH:
+ shared_library_init();
+ break;
+ case DLL_PROCESS_DETACH:
+ shared_library_exit();
+ break;
+ }
+ return TRUE;
+}
+#endif
+#endif /* !defined(MIPI_SYST_STATIC) */
+#endif /* defined(MIPI_SYST_PCFG_ENABLE_HEAP_MEMORY) */ \ No newline at end of file
diff --git a/library/src/mipi_syst_api.c b/library/src/mipi_syst_api.c
new file mode 100644
index 0000000..6504d81
--- /dev/null
+++ b/library/src/mipi_syst_api.c
@@ -0,0 +1,1314 @@
+/*
+Copyright (c) 2018, MIPI Alliance, Inc.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+* Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+* Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Contributors:
+ * Norbert Schulz (Intel Corporation) - Initial API and implementation
+ */
+
+ /* Internal C-language API implementation */
+
+#include "mipi_syst.h"
+#include "mipi_syst/message.h"
+
+#if defined(MIPI_SYST_UNIT_TEST)
+#define ASSERT_CHECK(x) ASSERT_EQ(x, true)
+#else
+#define ASSERT_CHECK(x)
+#endif
+
+#if MIPI_SYST_CONFORMANCE_LEVEL > 10
+
+#if !defined(MIPI_SYST_SCATTER_WRITE)
+/**
+ * Default writer access is to call global state systh_writer pointer.
+ * Redefine this if you can avoid the function pointer overhead.
+ */
+#define MIPI_SYST_SCATTER_WRITE(syst_handle, scatter_prog, data_ptr) \
+ { \
+ (syst_handle)->systh_header->systh_writer( \
+ (syst_handle), (scatter_prog), (data_ptr));\
+ }
+#endif
+
+/**
+ * predefined write scatter instructions defined in scatter_op table
+ */
+enum syst_scatter_ops {
+#if defined(MIPI_SYST_PCFG_ENABLE_ORIGIN_GUID)
+ SCATTER_OP_GUID,
+#endif
+
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD)
+ SCATTER_OP_LOC_FMT,
+ SCATTER_OP_LOC_32,
+ SCATTER_OP_LOC_64,
+#endif
+#if defined(MIPI_SYST_PCFG_LENGTH_FIELD)
+ SCATTER_OP_LENGTH,
+#endif
+ SCATTER_OP_PAYLD_VAR,
+ SCATTER_OP_CHECKSUM,
+ SCATTER_OP_CATID_32,
+ SCATTER_OP_CATID_64,
+ SCATTER_OP_CATID_ARGS,
+ SCATTER_OP_CLOCK,
+#if defined(MIPI_SYST_PCFG_ENABLE_TIMESTAMP)
+ SCATTER_OP_TS,
+#endif
+#if defined(MIPI_SYST_PCFG_ENABLE_BUILD_API)
+ SCATTER_OP_VER_ID,
+ SCATTER_OP_VER_TXT,
+#endif
+ SCATTER_OP_END
+};
+
+/**
+ * Scatter instruction that describe the writing of SyS-T message descriptor
+ * members by the scatter write algorithm.
+ */
+static const struct mipi_syst_scatter_prog scatter_ops[] = {
+#if defined(MIPI_SYST_PCFG_ENABLE_ORIGIN_GUID)
+
+ { /* SCATTER_OP_GUID */
+ MIPI_SYST_SCATTER_OP_64BIT,
+ MIPI_SYST_EVDSC_MEMBER_OFF(ed_guid),
+ 2},
+#endif
+
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD)
+ { /* SCATTER_OP_LOC_FMT */
+ MIPI_SYST_SCATTER_OP_8BIT,
+ MIPI_SYST_EVDSC_MEMBER_OFF(ed_loc.el_format),
+ 1},
+ { /* SCATTER_OP_LOC_32 */
+ MIPI_SYST_SCATTER_OP_32BIT,
+ MIPI_SYST_EVDSC_MEMBER_OFF(ed_loc.el_u),
+ 1},
+ { /* SCATTER_OP_LOC_64 */
+ MIPI_SYST_SCATTER_OP_64BIT,
+ MIPI_SYST_EVDSC_MEMBER_OFF(ed_loc.el_u),
+ 1},
+#endif
+#if defined(MIPI_SYST_PCFG_LENGTH_FIELD)
+ { /* SCATTER_OP_LENGTH */
+ MIPI_SYST_SCATTER_OP_16BIT,
+ MIPI_SYST_EVDSC_MEMBER_OFF(ed_len),
+ 1},
+#endif
+ { /* SCATTER_OP_PAYLD_VAR */
+ MIPI_SYST_SCATTER_OP_BLOB,
+ MIPI_SYST_EVDSC_MEMBER_OFF(ed_pld.data_var),
+ 0}
+ ,
+ { /* SCATTER_OP_PAYLD_CHECKSUM */
+ MIPI_SYST_SCATTER_OP_32BIT,
+ MIPI_SYST_EVDSC_MEMBER_OFF(ed_chk),
+ 1}
+ ,
+ { /* SCATTER_OP_CATID_32 */
+ MIPI_SYST_SCATTER_OP_32BIT,
+ MIPI_SYST_EVDSC_MEMBER_OFF(ed_pld.data_catid.id.sci_32),
+ 1}
+ ,
+ { /* SCATTER_OP_CATID_64 */
+ MIPI_SYST_SCATTER_OP_64BIT,
+ MIPI_SYST_EVDSC_MEMBER_OFF(ed_pld.data_catid.id.sci_64),
+ 1}
+ ,
+ { /* SCATTER_OP_CATID_ARGS */
+ MIPI_SYST_SCATTER_OP_BLOB,
+ MIPI_SYST_EVDSC_MEMBER_OFF(ed_pld.data_catid.param),
+ 0}
+ ,
+ { /* SCATTER_OP_CLOCK */
+ MIPI_SYST_SCATTER_OP_64BIT,
+ MIPI_SYST_EVDSC_MEMBER_OFF(ed_pld.data_clock),
+ 2}
+ ,
+#if defined(MIPI_SYST_PCFG_ENABLE_TIMESTAMP) /* SCATTER_OP_TS */
+ {
+ MIPI_SYST_SCATTER_OP_64BIT,
+ MIPI_SYST_EVDSC_MEMBER_OFF(ed_ts),
+ 1}
+ ,
+#endif /* defined(MIPI_SYST_PCFG_ENABLE_TIMESTAMP) */
+#if defined(MIPI_SYST_PCFG_ENABLE_BUILD_API)
+ { /* SCATTER_OP_VER_ID */
+ MIPI_SYST_SCATTER_OP_64BIT,
+ MIPI_SYST_EVDSC_MEMBER_OFF(ed_pld.data_version.id),
+ 1}
+ ,
+ { /* SCATTER_OP_VER_TXT */
+ MIPI_SYST_SCATTER_OP_BLOB,
+ MIPI_SYST_EVDSC_MEMBER_OFF(ed_pld.data_version.text),
+ 0}
+ ,
+#endif /* defined(MIPI_SYST_PCFG_ENABLE_BUILD_API) */
+
+ { /* SCATTER_OP_END */
+ MIPI_SYST_SCATTER_OP_END,
+ 0,
+ 0}
+};
+
+
+/**
+ * Add optional message components to the message descriptor
+ */
+static
+#if defined(MIPI_SYST_PCFG_ENABLE_INLINE)
+MIPI_SYST_CC_INLINE
+#endif
+void
+insert_optional_msg_components(struct mipi_syst_handle* svh,
+ struct mipi_syst_msglocation* loc,
+ mipi_syst_u16 len,
+ struct mipi_syst_msgdsc *desc,
+ struct mipi_syst_scatter_prog **prog_ptr)
+{
+ struct mipi_syst_scatter_prog *prog = *prog_ptr;
+
+#if defined(MIPI_SYST_PCFG_ENABLE_ORIGIN_GUID)
+ /* origin GUID ? */
+ if (0 != desc->ed_tag.et_guid) {
+ desc->ed_guid = svh->systh_guid;
+ *prog++ = scatter_ops[SCATTER_OP_GUID];
+ }
+#endif
+
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD)
+ /* location information ? */
+ if ((struct mipi_syst_msglocation*) 0 != loc) {
+ desc->ed_loc = *loc;
+ desc->ed_tag.et_location = 1;
+
+ *prog++ = scatter_ops[SCATTER_OP_LOC_FMT];
+ if (desc->ed_loc.el_format & 0x1)
+ *prog++ = scatter_ops[SCATTER_OP_LOC_64];
+ else
+ *prog++ = scatter_ops[SCATTER_OP_LOC_32];
+ }
+#endif
+
+#if defined(MIPI_SYST_PCFG_LENGTH_FIELD)
+ /* pay load length */
+ if(0 != desc->ed_tag.et_length) {
+ desc->ed_len = len;
+ *prog++ = scatter_ops[SCATTER_OP_LENGTH];
+ }
+#endif
+
+#if defined(MIPI_SYST_PCFG_ENABLE_TIMESTAMP)
+ if (desc->ed_tag.et_timestamp) {
+ /* timestamp present */
+ desc->ed_ts = MIPI_SYST_PLATFORM_CLOCK();
+ *prog++ = scatter_ops[SCATTER_OP_TS];
+ }
+#endif /* defined(MIPI_SYST_PCFG_ENABLE_TIMESTAMP) */
+
+ *prog_ptr = prog;
+}
+#endif
+
+#if defined(MIPI_SYST_PCFG_ENABLE_STRING_API)
+
+/**
+ * Write a string output message
+ *
+ * @param svh SyS-T handle
+ * @param loc Pointer to instrumentation location or null if no location
+ * @param type string message subtype
+ * @param severity severity level (0..7)
+ * @param len number of bytes to emit or 0 to send fixed size 32bytes
+ * @param str pointer to UTF-8 string bytes
+ */
+MIPI_SYST_EXPORT void MIPI_SYST_CALLCONV
+mipi_syst_write_debug_string(struct mipi_syst_handle* svh,
+ struct mipi_syst_msglocation* loc,
+ enum mipi_syst_subtype_string type,
+ enum mipi_syst_severity severity,
+ mipi_syst_u16 len, const char *str)
+{
+ struct mipi_syst_msgdsc desc;
+ struct mipi_syst_scatter_prog prog[MIPI_SYST_SCATTER_PROG_LEN];
+ struct mipi_syst_scatter_prog *prog_ptr = prog;
+ mipi_syst_u64 errmsg;
+
+ if ((struct mipi_syst_handle*)0 == svh)
+ return;
+
+ /* assign tag */
+ desc.ed_tag = svh->systh_tag;
+ desc.ed_tag.et_type = MIPI_SYST_TYPE_STRING;
+ desc.ed_tag.et_subtype = type;
+ desc.ed_tag.et_severity = severity;
+
+ if ((const char *)0 == str) {
+ desc.ed_tag.et_subtype = MIPI_SYST_STRING_INVALIDPARAM;
+ errmsg =
+#if defined(MIPI_SYST_BIG_ENDIAN)
+ 0x286e756c6c290000ull; /* == "(null)\0\0" */
+#else
+ 0x0000296c6c756e28ull; /* == "(null)\0\0" */
+#endif
+ str = (char*)&errmsg;
+ len = 7;
+ }
+ insert_optional_msg_components(svh, loc, len, &desc, &prog_ptr);
+
+ desc.ed_pld.data_var = (const mipi_syst_u8 *) str;
+ *prog_ptr = scatter_ops[SCATTER_OP_PAYLD_VAR];
+ prog_ptr->sso_length = len;
+ ++prog_ptr;
+
+ *prog_ptr = scatter_ops[SCATTER_OP_END];
+
+ ASSERT_CHECK(prog_ptr < &prog[MIPI_SYST_SCATTER_PROG_LEN]);
+
+ /* call IO routine to dump out the message */
+ MIPI_SYST_SCATTER_WRITE(svh, prog, &desc);
+}
+#endif /* #if defined(MIPI_SYST_PCFG_ENABLE_STRING_API) */
+
+#if defined(MIPI_SYST_PCFG_ENABLE_CATID64_API)
+
+/**
+ * Write 64-bit catalog message
+ *
+ * @param svh SyS-T handle
+ * @param loc Pointer to instrumentation location or null
+ * @param severity message severity level (0..7)
+ * @param catid catalog ID
+ */
+MIPI_SYST_EXPORT void MIPI_SYST_CALLCONV
+mipi_syst_write_catalog64_message(struct mipi_syst_handle* svh,
+ struct mipi_syst_msglocation* loc,
+ enum mipi_syst_severity severity, mipi_syst_u64 catid)
+{
+ struct mipi_syst_msgdsc desc;
+ struct mipi_syst_scatter_prog prog[MIPI_SYST_SCATTER_PROG_LEN];
+ struct mipi_syst_scatter_prog *prog_ptr = prog;
+ mipi_syst_u16 paramlen;
+
+ if ((struct mipi_syst_handle*)0 == svh)
+ return;
+
+ /* assign tag */
+ desc.ed_tag = svh->systh_tag;
+ desc.ed_tag.et_type = MIPI_SYST_TYPE_CATALOG;
+ desc.ed_tag.et_severity = severity;
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ desc.ed_tag.et_subtype = MIPI_SYST_CATALOG_ID64_P64;
+#else
+ desc.ed_tag.et_subtype = MIPI_SYST_CATALOG_ID64_P32;
+#endif
+
+ paramlen = (mipi_syst_u16)
+ (svh->systh_param_count * sizeof(mipi_syst_u32));
+
+ insert_optional_msg_components(
+ svh, loc,
+ sizeof(catid) + paramlen,
+ &desc, &prog_ptr);
+
+ /* cat ID */
+ desc.ed_pld.data_catid.id.sci_64 = catid;
+ *prog_ptr++ = scatter_ops[SCATTER_OP_CATID_64];
+
+ /* parameters (if any) */
+
+ if (0 != paramlen) {
+ mipi_syst_u32 *param;
+ param = svh->systh_param;
+ desc.ed_pld.data_catid.param = param;
+ *prog_ptr = scatter_ops[SCATTER_OP_CATID_ARGS];
+ prog_ptr->sso_length = paramlen;
+ ++prog_ptr;
+#if defined(MIPI_SYST_BIG_ENDIAN)
+ while(paramlen) {
+ *param = MIPI_SYST_HTOLE32(*param);
+ param++;
+ paramlen-=sizeof(mipi_syst_u32);
+ }
+#endif
+ }
+
+ *prog_ptr = scatter_ops[SCATTER_OP_END];
+
+ ASSERT_CHECK(prog_ptr < &prog[MIPI_SYST_SCATTER_PROG_LEN]);
+
+ /* call IO routine to dump out the message */
+ MIPI_SYST_SCATTER_WRITE(svh, prog, &desc);
+}
+
+#endif /* #if defined(MIPI_SYST_PCFG_ENABLE_CATID64_API) */
+
+#if defined(MIPI_SYST_PCFG_ENABLE_CATID32_API)
+
+/**
+ * Write 32-Bit catalog message
+ *
+ * @param svh SyS-T handle
+ * @param loc Pointer to instrumentation location or null
+ * @param severity message severity level (0..7)
+ * @param catid catalog ID
+ */
+MIPI_SYST_EXPORT void MIPI_SYST_CALLCONV
+mipi_syst_write_catalog32_message(struct mipi_syst_handle* svh,
+ struct mipi_syst_msglocation* loc,
+ enum mipi_syst_severity severity, mipi_syst_u32 catid)
+{
+ struct mipi_syst_msgdsc desc;
+ struct mipi_syst_scatter_prog prog[MIPI_SYST_SCATTER_PROG_LEN];
+ struct mipi_syst_scatter_prog *prog_ptr = prog;
+ mipi_syst_u16 paramlen;
+
+ if ((struct mipi_syst_handle*)0 == svh)
+ return;
+
+ /* assign tag */
+ desc.ed_tag = svh->systh_tag;
+ desc.ed_tag.et_type = MIPI_SYST_TYPE_CATALOG;
+ desc.ed_tag.et_severity = severity;
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ desc.ed_tag.et_subtype = MIPI_SYST_CATALOG_ID32_P64;
+#else
+ desc.ed_tag.et_subtype = MIPI_SYST_CATALOG_ID32_P32;
+#endif
+
+ paramlen = (mipi_syst_u16)
+ (svh->systh_param_count * sizeof(mipi_syst_u32));
+
+ insert_optional_msg_components(
+ svh, loc,
+ sizeof(catid) + paramlen,
+ &desc, &prog_ptr);
+
+ /* cat ID */
+ desc.ed_pld.data_catid.id.sci_32 = catid;
+ *prog_ptr++ = scatter_ops[SCATTER_OP_CATID_32];
+
+ /* parameters (if any) */
+
+ if (0 != paramlen) {
+ mipi_syst_u32 * param;
+ param = svh->systh_param;
+ desc.ed_pld.data_catid.param = param;
+ *prog_ptr = scatter_ops[SCATTER_OP_CATID_ARGS];
+ prog_ptr->sso_length = paramlen;
+ ++prog_ptr;
+#if defined(MIPI_SYST_BIG_ENDIAN)
+ while(paramlen) {
+ *param = MIPI_SYST_HTOLE32(*param);
+ param++;
+ paramlen-=sizeof(mipi_syst_u32);
+ }
+#endif
+ }
+
+ *prog_ptr = scatter_ops[SCATTER_OP_END];
+
+ ASSERT_CHECK(prog_ptr < &prog[MIPI_SYST_SCATTER_PROG_LEN]);
+
+ /* call IO routine to dump out the message */
+ MIPI_SYST_SCATTER_WRITE(svh, prog, &desc);
+}
+
+#endif /* #if defined(MIPI_SYST_PCFG_ENABLE_CATID32_API) */
+
+#if defined(MIPI_SYST_PCFG_ENABLE_WRITE_API)
+
+/**
+ * Write raw data message
+ *
+ * @param svh SyS-T handle
+ * @param loc pointer to instrumentation location or null
+ * @param severity message severity level (0..7)
+ * @param protocol content protocol ID
+ * @param data pointer to raw data
+ * @param length number of bytes to send
+ */
+MIPI_SYST_EXPORT void MIPI_SYST_CALLCONV
+mipi_syst_write_raw_message(struct mipi_syst_handle* svh,
+ struct mipi_syst_msglocation* loc,
+ enum mipi_syst_severity severity,
+ mipi_syst_u8 protocol,
+ const void *data, mipi_syst_u16 length)
+{
+ struct mipi_syst_msgdsc desc;
+ struct mipi_syst_scatter_prog prog[MIPI_SYST_SCATTER_PROG_LEN];
+ struct mipi_syst_scatter_prog *prog_ptr = prog;
+
+ if ((struct mipi_syst_handle*)0 == svh)
+ return;
+
+ /* assign tag */
+ desc.ed_tag = svh->systh_tag;
+ desc.ed_tag.et_type = MIPI_SYST_TYPE_RAW;
+ desc.ed_tag.et_severity = severity;
+ desc.ed_tag.et_subtype = protocol;
+
+ insert_optional_msg_components(svh, loc, length, &desc, &prog_ptr);
+
+ desc.ed_pld.data_var = data;
+ *prog_ptr = scatter_ops[SCATTER_OP_PAYLD_VAR];
+ prog_ptr->sso_length = length;
+ ++prog_ptr;
+
+ *prog_ptr = scatter_ops[SCATTER_OP_END];
+
+ ASSERT_CHECK(prog_ptr < &prog[MIPI_SYST_SCATTER_PROG_LEN]);
+
+ /* call IO routine to dump out the message */
+ MIPI_SYST_SCATTER_WRITE(svh, prog, &desc);
+}
+#endif /* defined(MIPI_SYST_PCFG_ENABLE_WRITE_API) */
+
+#if defined(MIPI_SYST_PCFG_ENABLE_BUILD_API)
+
+/**
+ * Write client build version message
+ *
+ * @param svh SyS-T handle
+ * @param loc pointer to instrumentation location or null
+ * @param severity message severity level (0..7)
+ * @param id 64-Bit version ID
+ * @param text pointer to UTF-8 version text
+ * @param length number of bytes to send
+ */
+MIPI_SYST_EXPORT void MIPI_SYST_CALLCONV
+mipi_syst_write_build_message(struct mipi_syst_handle* svh,
+ struct mipi_syst_msglocation* loc,
+ enum mipi_syst_severity severity,
+ mipi_syst_u64 id,
+ const char *text, mipi_syst_u16 length)
+{
+ struct mipi_syst_msgdsc desc;
+ struct mipi_syst_scatter_prog prog[MIPI_SYST_SCATTER_PROG_LEN];
+ struct mipi_syst_scatter_prog *prog_ptr = prog;
+
+ if ((struct mipi_syst_handle*)0 == svh)
+ return;
+
+ /* assign tag */
+ desc.ed_tag = svh->systh_tag;
+ desc.ed_tag.et_type = MIPI_SYST_TYPE_BUILD;
+ desc.ed_tag.et_severity = severity;
+ desc.ed_tag.et_subtype = MIPI_SYST_BUILD_ID_LONG;
+
+ insert_optional_msg_components(
+ svh, loc, length + sizeof(id), &desc, &prog_ptr);
+
+ desc.ed_pld.data_version.id = id;
+ *prog_ptr = scatter_ops[SCATTER_OP_VER_ID];
+ ++prog_ptr;
+ if (0 != length) {
+ desc.ed_pld.data_version.text = text;
+ *prog_ptr = scatter_ops[SCATTER_OP_VER_TXT];
+ prog_ptr->sso_length = length;
+ ++prog_ptr;
+ }
+ *prog_ptr = scatter_ops[SCATTER_OP_END];
+
+ ASSERT_CHECK(prog_ptr < &prog[MIPI_SYST_SCATTER_PROG_LEN]);
+
+ /* call IO routine to dump out the message */
+ MIPI_SYST_SCATTER_WRITE(svh, prog, &desc);
+}
+#endif /* defined(MIPI_SYST_PCFG_ENABLE_BUILD_API) */
+
+#if defined(MIPI_SYST_PCFG_ENABLE_TIMESTAMP)
+/**
+* Write clock sync message
+*
+* @param svh SyS-T handle
+* @param loc pointer to instrumentation location or null
+* @param fmt clock sync message subtype
+* @param clock_value 64-Bit clock value
+* @param clock_freq 64-Bit clock frequency in herz
+*/
+MIPI_SYST_EXPORT void MIPI_SYST_CALLCONV
+mipi_syst_write_clock(struct mipi_syst_handle* svh,
+ struct mipi_syst_msglocation* loc,
+ enum mipi_syst_subtype_clock fmt,
+ mipi_syst_u64 clock_value,
+ mipi_syst_u64 clock_freq)
+{
+ struct mipi_syst_msgdsc desc;
+ struct mipi_syst_scatter_prog prog[MIPI_SYST_SCATTER_PROG_LEN];
+ struct mipi_syst_scatter_prog *prog_ptr;
+
+ if ((struct mipi_syst_handle*)0 == svh)
+ return;
+
+ prog_ptr = prog;
+
+ /* assign tag */
+ desc.ed_tag = svh->systh_tag;
+ desc.ed_tag.et_subtype = fmt;
+ desc.ed_tag.et_type = MIPI_SYST_TYPE_CLOCK;
+ desc.ed_tag.et_severity = MIPI_SYST_SEVERITY_MAX;
+
+ insert_optional_msg_components(
+ svh, loc,
+ 2*sizeof(mipi_syst_u64),
+ &desc, &prog_ptr);
+
+ desc.ed_pld.data_clock[0] = clock_value;
+ desc.ed_pld.data_clock[1] = clock_freq;
+ *prog_ptr++ = scatter_ops[SCATTER_OP_CLOCK];
+
+ *prog_ptr = scatter_ops[SCATTER_OP_END];
+ ASSERT_CHECK(prog_ptr < &prog[MIPI_SYST_SCATTER_PROG_LEN]);
+
+ MIPI_SYST_SCATTER_WRITE(svh, prog, &desc);
+}
+
+#endif /* defined(MIPI_SYST_PCFG_ENABLE_TIMESTAMP) */
+
+#if defined(MIPI_SYST_PCFG_ENABLE_PRINTF_API)
+
+/* printf requires stdarg from the compiler in use. It is a varargs function*/
+
+#include <stdarg.h>
+#include <stddef.h>
+#include <wchar.h>
+
+#if !defined(MIPI_SYST_PCFG_PRINTF_ARGBUF_SIZE)
+#define MIPI_SYST_PCFG_PRINTF_ARGBUF_SIZE 1024 /* Default 1Kb arg buffer */
+#endif
+
+/** state IDs of the printf format string parser's finite state machine
+ */
+enum FmtScanState {
+ START,
+ PLAINTEXT,
+ PERCENT,
+ FLAGS,
+ WIDTH, WIDTH_NUMBER,
+ PRECISION_DOT, PRECISION_VAL, PRECISION_NUMBER,
+ MODIFIER,
+ MODIFIER_HALF,
+ MODIFIER_LONG,
+ SPECIFIER
+};
+
+/** format modifier types
+ */
+enum Modifier {
+ MOD_NONE, MOD_HH, MOD_H, MOD_L, MOD_LL, MOD_J, MOD_Z, MOD_T, MOD_LD
+};
+
+/** parser result codes
+ *
+ */
+enum ReturnCodes {
+ FMT_PARSE_OK = 1,
+ FMT_PARSE_ARG_BUFFER_TOO_SMALL = -1,
+ FMT_PARSE_UNSUPPORTED_FORMAT = -2
+};
+
+/* Helper macro to copy an argument from the arguments into the
+ * payload buffer.
+ *
+ * TOTYPE is the data type that gets stored in the messages's arg buffer
+ * FROMTYPE is the data type taken from the printf stack via varags
+ */
+#define COPY_ARG_DOUBLE(TOTYPE, FROMTYPE) \
+ do { \
+ union {mipi_syst_u64 v; TOTYPE d;} val; \
+ val.d = (TOTYPE)va_arg(args, FROMTYPE); \
+ if (argp + sizeof(TOTYPE) < argEob) { \
+ val.v = MIPI_SYST_HTOLE64(val.v); \
+ *((TOTYPE *)argp) = val.d; \
+ argp += sizeof(TOTYPE); \
+ } else { \
+ return FMT_PARSE_ARG_BUFFER_TOO_SMALL; \
+ } \
+ } while(0)
+
+#define COPY_ARG32(TOTYPE, FROMTYPE) \
+ do { \
+ if (argp + sizeof(TOTYPE) < argEob) { \
+ *((TOTYPE *)argp) = (TOTYPE)MIPI_SYST_HTOLE32(va_arg(args, FROMTYPE)); \
+ argp += sizeof(TOTYPE); \
+ } else { \
+ return FMT_PARSE_ARG_BUFFER_TOO_SMALL; \
+ } \
+ } while(0)
+
+#define COPY_ARG64(TOTYPE, FROMTYPE) \
+ do { \
+ if (argp + sizeof(TOTYPE) < argEob) { \
+ *((TOTYPE *)argp) = (TOTYPE)MIPI_SYST_HTOLE64(va_arg(args, FROMTYPE));\
+ argp += sizeof(TOTYPE); \
+ } else { \
+ return FMT_PARSE_ARG_BUFFER_TOO_SMALL; \
+ } \
+ } while(0)
+
+/** Create the payload buffer for a printf format
+ *
+ * The payload of a printf message, starts with an UTF-8 string,
+ * which becomes the printf format. Depending on the format string, further
+ * parameters follow the format string using the following rules:
+ *
+ * All printf arguments follow the format string without alignment bytes added.
+ * Strings for the '%s' format specifier are embedded as UTF-8 strings with
+ * 0-byte termination into the payload.
+ * printf arguments use the binary data layout as defined in the table below.
+ *
+ * Data Type | 32 Bit Platform | 64 Bit Platform
+ * --------------------------|--------------------|---------------------------
+ * int, unsigned int | 32 Bits | 32 Bits
+ * long, unsigned long | 32 Bits | 64 Bits
+ * long long, unsinged long long|64 Bits | 64 Bits
+ * size_t | 32 Bits | 64 Bits
+ * ptrdiff_t | 32 Bits | 64 Bits
+ * float double, long double | 64 Bits | 64 Bits
+ * char, unsigned char | 32 Bits | 32 Bits
+ * wchar_t | 32 Bits | 32 Bits
+ * Addresses(pointers) | 32 Bits | 64 Bits
+ * Strings (char *) |UTF-8, 0-terminated | UTF-8, 0-terminated
+ *
+ * The format string follows the C99 definition which can contain format
+ * specifier following this pattern:
+ *
+ * %[flags][width][.precision][length]specifier
+ *
+ * This function 'only' converts the fmt and arguments into a message payload.
+ * The actual formatting of the data into a string is done by the receiving
+ * trace decoder.
+ *
+ * @param buffer memory buffer filled with argument data
+ * @param size # of bytes in buffer
+ * @param fmt printf format string
+ * @param args printf varags
+
+ */
+static int buildPrintfPayload(
+ char * buffer,
+ mipi_syst_u32 size,
+ const char * fmt,
+ va_list args)
+{
+ char * argEob;
+ char * argp;
+ const char * fmtp;
+ enum FmtScanState state;
+ enum Modifier modifier;
+
+ if (0 == fmt) return FMT_PARSE_UNSUPPORTED_FORMAT;
+
+ argp = buffer;
+ argEob = buffer + size; /* end of buffer address */
+ fmtp = fmt;
+
+ /* copy argument string to start of payload buffer
+ */
+ while (argp < argEob) {
+ if( 0 == (*argp++ = *fmtp++)) break;
+ }
+ if (argp == argEob) return FMT_PARSE_ARG_BUFFER_TOO_SMALL;
+
+ fmtp = fmt;
+ state = START;
+ modifier = MOD_NONE;
+
+ /* loop over the arguments in the format and full the arg buffer
+ */
+ while( *fmtp != 0 )
+ {
+ switch(state) {
+ case START:
+ modifier = MOD_NONE;
+
+ state = PLAINTEXT;
+ ; /* deliberate fall through */
+
+ case PLAINTEXT:
+ if (*fmtp == '%') {
+ state = PERCENT;
+ }
+ break;
+
+ case PERCENT:
+ if (*fmtp == '%') { /* '%%' is not a format, but the % char */
+ state = PLAINTEXT;
+ } else {
+ /* arg fmt definition is starting */
+ state = FLAGS;
+ continue;
+ }
+ break;
+
+ case FLAGS:
+ switch(*fmtp) {
+ case '-':
+ case '+':
+ case ' ':
+ case '#':
+ case '0':
+ break;
+ default:
+ state = WIDTH;
+ continue;
+ }
+ break;
+
+ case WIDTH:
+ if (*fmtp == '*') {
+ COPY_ARG32(mipi_syst_s32, int);
+ state = PRECISION_DOT;
+ } else {
+ state = WIDTH_NUMBER;
+ continue;
+ }
+ break;
+
+ case WIDTH_NUMBER:
+ if (*fmtp < '0' || *fmtp > '9') { /* !isdigit */
+ state = PRECISION_DOT;
+ continue;
+ }
+ break;
+
+ case PRECISION_DOT:
+ if (*fmtp == '.') {
+ state = PRECISION_VAL;
+ } else {
+ state = MODIFIER;
+ continue;
+ }
+ break;
+
+ case PRECISION_VAL:
+ if (*fmtp == '*') {
+ COPY_ARG32(mipi_syst_s32, int);
+ state = MODIFIER;
+ } else {
+ state = PRECISION_NUMBER;
+ continue;
+ }
+ break;
+
+ case PRECISION_NUMBER:
+ if (*fmtp < '0' || *fmtp > '9') { /* !isdigit */
+ state = MODIFIER;
+ continue;
+ }
+ break;
+
+ case MODIFIER:
+ state = SPECIFIER;
+
+ switch(*fmtp){
+ case 'h':
+ modifier = MOD_H;
+ state = MODIFIER_HALF;
+ break;
+ case 'l':
+ modifier = MOD_L;
+ state = MODIFIER_LONG;
+ break;
+ case 'j':
+ modifier = MOD_J;
+ break;
+ case 'z':
+ modifier = MOD_Z;
+ break;
+ case 't':
+ modifier = MOD_T;
+ break;
+ case 'L':
+ modifier = MOD_LD;
+ break;
+ default:
+ continue;
+ }
+ break;
+
+ case MODIFIER_HALF:
+ state = SPECIFIER;
+ if (*fmtp == 'h') {
+ modifier = MOD_HH;
+ break;
+ } else {
+ continue;
+ }
+ break;
+
+
+ case MODIFIER_LONG:
+ state = SPECIFIER;
+ if (*fmtp == 'l') {
+ modifier = MOD_LL;
+ break;
+ } else {
+ continue;
+ }
+
+ case SPECIFIER:
+ {
+ switch(*fmtp) {
+ case 'd':
+ case 'i':
+ case 'u':
+ case 'o':
+ case 'x':
+ case 'X':
+ switch(modifier) {
+ case MOD_L:
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ COPY_ARG64(mipi_syst_u64, long);
+#else
+ COPY_ARG32(mipi_syst_u32, unsigned long);
+#endif
+ break;
+ case MOD_LL:
+ case MOD_J:
+ COPY_ARG64(mipi_syst_u64, unsigned long long);
+ break;
+ case MOD_Z:
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ COPY_ARG64(mipi_syst_u64, size_t);
+#else
+ COPY_ARG32(mipi_syst_u32, size_t);
+#endif
+ break;
+ case MOD_T:
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ COPY_ARG64(mipi_syst_s64, ptrdiff_t);
+#else
+ COPY_ARG32(mipi_syst_s32, ptrdiff_t);
+#endif
+ break;
+ default:
+ COPY_ARG32(mipi_syst_u32, unsigned int);
+ break;
+ }
+ state = START;
+ break;
+ case 'f':
+ case 'F':
+ case 'e':
+ case 'E':
+ case 'g':
+ case 'G':
+ case 'a':
+ case 'A':
+ if (modifier == MOD_LD) {
+ COPY_ARG_DOUBLE(double, long double); /* only double*/
+ } else {
+ COPY_ARG_DOUBLE(double, double);
+ }
+ break;
+ case 'c':
+ if (modifier == MOD_L) {
+ COPY_ARG32(mipi_syst_u32, wchar_t);
+ } else {
+ COPY_ARG32(mipi_syst_u32, int);
+ }
+ break;
+ case 'p':
+ case 'n':
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ COPY_ARG64(mipi_syst_u64, void *);
+#else
+ COPY_ARG32(mipi_syst_u32, void *);
+#endif
+ break;
+ case 's':
+ {
+ /* Embed string with 0-byte into arg buffer */
+ const char * p;
+ p = va_arg(args, char *);
+ while (argp < argEob) {
+ if (0 == (*argp++ = *p++)) {
+ break;
+ }
+ if (argp == argEob) {
+ return FMT_PARSE_ARG_BUFFER_TOO_SMALL;
+ }
+ }
+ }
+ break;
+
+ default:
+ return FMT_PARSE_UNSUPPORTED_FORMAT;
+ break;
+ }
+ state = START;
+ }
+ break;
+ }
+ ++fmtp;
+ }
+
+ if (state == START || state == PLAINTEXT) {
+ return (int)(argp - buffer);
+ } else {
+ return FMT_PARSE_UNSUPPORTED_FORMAT;
+ }
+}
+#if defined(MIPI_SYST_PCFG_ENABLE_CATID64_API) || defined(MIPI_SYST_PCFG_ENABLE_CATID32_API)
+static int buildCatalogPayload(
+ mipi_syst_u8 * buffer,
+ mipi_syst_u32 size,
+ va_list args)
+{
+ mipi_syst_u8 * argEob;
+ mipi_syst_u8 * argp;
+ int argType;
+
+ argp = buffer;
+ argEob = buffer + size; /* end of buffer address */
+
+
+ /* loop over the argument types
+ */
+ for(argType = va_arg(args, int);
+ argType != 0;
+ argType = va_arg(args, int))
+ {
+ switch(argType) {
+ case _MIPI_SYST_CATARG_D:
+ COPY_ARG32(mipi_syst_u32, unsigned int);
+ break;
+ case _MIPI_SYST_CATARG_LD:
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ COPY_ARG64(mipi_syst_u64, long);
+#else
+ COPY_ARG32(mipi_syst_u32, unsigned long);
+#endif
+ break;
+
+ case _MIPI_SYST_CATARG_LLD:
+ COPY_ARG64(mipi_syst_u64, unsigned long long);
+ break;
+
+ case _MIPI_SYST_CATARG_ZD:
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ COPY_ARG64(mipi_syst_u64, size_t);
+#else
+ COPY_ARG32(mipi_syst_u32, size_t);
+#endif
+ break;
+
+ case _MIPI_SYST_CATARG_TD:
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ COPY_ARG64(mipi_syst_s64, ptrdiff_t);
+#else
+ COPY_ARG32(mipi_syst_s32, ptrdiff_t);
+#endif
+ break;
+
+ case _MIPI_SYST_CATARG_F:
+ COPY_ARG_DOUBLE(double, double);
+ break;
+ case _MIPI_SYST_CATARG_LF:
+ COPY_ARG_DOUBLE(double, long double);
+ break;
+ case _MIPI_SYST_CATARG_C:
+ COPY_ARG32(mipi_syst_u32, int);
+ break;
+ case _MIPI_SYST_CATARG_HHD:
+ COPY_ARG32(mipi_syst_u32, int);
+ break;
+ case _MIPI_SYST_CATARG_LC:
+ COPY_ARG32(mipi_syst_u32, wint_t);
+ break;
+
+ case _MIPI_SYST_CATARG_P:
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ COPY_ARG64(mipi_syst_u64, void *);
+#else
+ COPY_ARG32(mipi_syst_u32, void *);
+#endif
+ break;
+
+ case _MIPI_SYST_CATARG_CSTR:
+ {
+ const char * p;
+ p = va_arg(args, char *);
+ while (argp < argEob) {
+ if (0 == (*argp++ = *p++)) {
+ break;
+ }
+ if (argp == argEob) {
+ return FMT_PARSE_ARG_BUFFER_TOO_SMALL;
+ }
+ }
+ }
+ break;
+
+ default:
+ return FMT_PARSE_UNSUPPORTED_FORMAT;
+ break;
+ }
+ }
+
+ return (int)(argp - buffer);
+}
+
+#endif // #if defined(MIPI_SYST_PCFG_ENABLE_CATIDxx_API)
+
+/**
+ * Write a printf message
+ *
+ * @param svh SyS-T handle
+ * @param loc Pointer to instrumentation location or null if no location
+ * @param severity severity level (0..7)
+ * @param fmt pointer to UTF-8 string bytes
+ * @param ... optional format arguments
+ */
+MIPI_SYST_EXPORT void MIPI_SYST_CALLCONV
+ mipi_syst_write_printf_string(struct mipi_syst_handle* svh,
+ struct mipi_syst_msglocation* loc,
+ enum mipi_syst_severity severity,
+ const char *fmt,
+ ...)
+{
+ char argBuf[MIPI_SYST_PCFG_PRINTF_ARGBUF_SIZE];
+ int len;
+ va_list args;
+ struct mipi_syst_msgdsc desc;
+ struct mipi_syst_scatter_prog prog[MIPI_SYST_SCATTER_PROG_LEN];
+ struct mipi_syst_scatter_prog *prog_ptr = prog;
+ mipi_syst_u64 errmsg;
+
+ if ((struct mipi_syst_handle*)0 == svh)
+ return;
+
+ /* assign tag */
+ desc.ed_tag = svh->systh_tag;
+ desc.ed_tag.et_type = MIPI_SYST_TYPE_STRING;
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ desc.ed_tag.et_subtype = MIPI_SYST_STRING_PRINTF_64;
+#else
+ desc.ed_tag.et_subtype = MIPI_SYST_STRING_PRINTF_32;
+#endif
+ desc.ed_tag.et_severity = severity;
+
+ va_start(args, fmt);
+ len = buildPrintfPayload(argBuf, sizeof(argBuf), fmt, args);
+ va_end(args);
+
+ if (len <= 0 ) {
+ /* Invalid format, send up to 32 bytes from the offending format string
+ * as string message with tag "invalid parameter" instead
+ */
+ desc.ed_tag.et_subtype = MIPI_SYST_STRING_INVALIDPARAM;
+ errmsg =
+#if defined(MIPI_SYST_BIG_ENDIAN)
+ 0x286e756c6c290000ull; /* == "(null)\0\0" */
+#else
+ 0x0000296c6c756e28ull; /* == "(null)\0\0" */
+#endif
+ fmt = fmt ? fmt : (char*)&errmsg;
+
+ for (len = 0; len < 32;)
+ if (0 == fmt[len++]) break;
+ } else {
+ fmt = argBuf;
+ }
+ insert_optional_msg_components(svh, loc, (mipi_syst_u16)len, &desc, &prog_ptr);
+
+ *prog_ptr = scatter_ops[SCATTER_OP_PAYLD_VAR];
+ desc.ed_pld.data_var = (const mipi_syst_u8 *) fmt;
+ prog_ptr->sso_length = (mipi_syst_u16)len;
+ ++prog_ptr;
+ *prog_ptr = scatter_ops[SCATTER_OP_END];
+
+ ASSERT_CHECK(prog_ptr < &prog[MIPI_SYST_SCATTER_PROG_LEN]);
+
+ /* call IO routine to dump out the message */
+ MIPI_SYST_SCATTER_WRITE(svh, prog, &desc);
+}
+
+#if defined(MIPI_SYST_PCFG_ENABLE_CATID64_API)
+
+/**
+ * Write a printf catalog message with 64bit ID
+ *
+ * @param svh SyS-T handle
+ * @param loc Pointer to instrumentation location or null if no location
+ * @param severity severity level (0..7)
+ * @param id catalog id
+ */
+MIPI_SYST_EXPORT void MIPI_SYST_CALLCONV
+ mipi_syst_write_printf_catalog64(struct mipi_syst_handle* svh,
+ struct mipi_syst_msglocation* loc,
+ enum mipi_syst_severity severity,
+ mipi_syst_u64 id,
+ ...)
+{
+ mipi_syst_u8 argBuf[MIPI_SYST_PCFG_PRINTF_ARGBUF_SIZE+sizeof(id)];
+ int len;
+ va_list args;
+ struct mipi_syst_msgdsc desc;
+ struct mipi_syst_scatter_prog prog[MIPI_SYST_SCATTER_PROG_LEN];
+ struct mipi_syst_scatter_prog *prog_ptr = prog;
+ mipi_syst_u64 errmsg;
+
+ if ((struct mipi_syst_handle*)0 == svh)
+ return;
+
+ /* assign tag */
+ desc.ed_tag = svh->systh_tag;
+ desc.ed_tag.et_type = MIPI_SYST_TYPE_CATALOG;
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ desc.ed_tag.et_subtype = MIPI_SYST_CATALOG_ID64_P64;
+#else
+ desc.ed_tag.et_subtype = MIPI_SYST_CATALOG_ID64_P32;
+#endif
+ desc.ed_tag.et_severity = severity;
+
+ va_start(args, id);
+ len = buildCatalogPayload(argBuf+sizeof(id),
+ MIPI_SYST_PCFG_PRINTF_ARGBUF_SIZE,
+ args);
+ va_end(args);
+
+ if (len < 0 ) {
+ char * msg;
+ errmsg =
+#if defined(MIPI_SYST_BIG_ENDIAN)
+ 0x6361746172670000ull; /* = "catarg\0\0" */
+#else
+ 0x0000677261746163ull; /* = "catarg\0\0" */
+#endif
+ /* Invalid parameter list */
+ desc.ed_tag.et_type = MIPI_SYST_TYPE_STRING;
+ desc.ed_tag.et_subtype = MIPI_SYST_STRING_INVALIDPARAM;
+ len = 0;
+ msg = (char*)&errmsg;
+ while (0 != (argBuf[len++] = *msg++));
+ } else {
+ *(mipi_syst_u64*)argBuf = MIPI_SYST_HTOLE64(id);
+ len += sizeof(id);
+ }
+
+ insert_optional_msg_components(svh, loc, (mipi_syst_u16)len, &desc, &prog_ptr);
+
+ *prog_ptr = scatter_ops[SCATTER_OP_PAYLD_VAR];
+ desc.ed_pld.data_var = (const mipi_syst_u8 *) argBuf;
+ prog_ptr->sso_length = (mipi_syst_u16)len;
+ ++prog_ptr;
+ *prog_ptr = scatter_ops[SCATTER_OP_END];
+
+ ASSERT_CHECK(prog_ptr < &prog[MIPI_SYST_SCATTER_PROG_LEN]);
+
+ /* call IO routine to dump out the message */
+ MIPI_SYST_SCATTER_WRITE(svh, prog, &desc);
+}
+#endif // #if defined(MIPI_SYST_PCFG_ENABLE_CATID64_API)
+#if defined(MIPI_SYST_PCFG_ENABLE_CATID32_API)
+
+/**
+ * Write a printf catalog message with 32bit ID
+ *
+ * @param svh SyS-T handle
+ * @param loc Pointer to instrumentation location or null if no location
+ * @param severity severity level (0..7)
+ * @param id catalog id
+ */
+MIPI_SYST_EXPORT void MIPI_SYST_CALLCONV
+ mipi_syst_write_printf_catalog32(struct mipi_syst_handle* svh,
+ struct mipi_syst_msglocation* loc,
+ enum mipi_syst_severity severity,
+ mipi_syst_u32 id,
+ ...)
+{
+ mipi_syst_u8 argBuf[MIPI_SYST_PCFG_PRINTF_ARGBUF_SIZE+sizeof(id)];
+ int len;
+ va_list args;
+ struct mipi_syst_msgdsc desc;
+ struct mipi_syst_scatter_prog prog[MIPI_SYST_SCATTER_PROG_LEN];
+ struct mipi_syst_scatter_prog *prog_ptr = prog;
+ mipi_syst_u64 errmsg;
+
+ if ((struct mipi_syst_handle*)0 == svh)
+ return;
+
+ /* assign tag */
+ desc.ed_tag = svh->systh_tag;
+ desc.ed_tag.et_type = MIPI_SYST_TYPE_CATALOG;
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ desc.ed_tag.et_subtype = MIPI_SYST_CATALOG_ID32_P64;
+#else
+ desc.ed_tag.et_subtype = MIPI_SYST_CATALOG_ID32_P32;
+#endif
+ desc.ed_tag.et_severity = severity;
+
+ va_start(args, id);
+ len = buildCatalogPayload(argBuf+sizeof(id),
+ MIPI_SYST_PCFG_PRINTF_ARGBUF_SIZE,
+ args);
+ va_end(args);
+
+ if (len < 0 ) {
+ char * msg;
+ errmsg =
+#if defined(MIPI_SYST_BIG_ENDIAN)
+ 0x6361746172670000ull; /* = "catarg\0\0" */
+#else
+ 0x0000677261746163ull; /* = "catarg\0\0" */
+#endif
+ /* Invalid parameter list */
+ desc.ed_tag.et_type = MIPI_SYST_TYPE_STRING;
+ desc.ed_tag.et_subtype = MIPI_SYST_STRING_INVALIDPARAM;
+ len = 0;
+ msg = (char*)&errmsg;
+ while (0 != (argBuf[len++] = *msg++));
+ } else {
+ *(mipi_syst_u32*)argBuf = MIPI_SYST_HTOLE32(id);
+ len += sizeof(id);
+ }
+
+ insert_optional_msg_components(svh, loc, (mipi_syst_u16)len, &desc, &prog_ptr);
+
+ *prog_ptr = scatter_ops[SCATTER_OP_PAYLD_VAR];
+ desc.ed_pld.data_var = (const mipi_syst_u8 *) argBuf;
+ prog_ptr->sso_length = (mipi_syst_u16)len;
+ ++prog_ptr;
+ *prog_ptr = scatter_ops[SCATTER_OP_END];
+
+ ASSERT_CHECK(prog_ptr < &prog[MIPI_SYST_SCATTER_PROG_LEN]);
+
+ /* call IO routine to dump out the message */
+ MIPI_SYST_SCATTER_WRITE(svh, prog, &desc);
+}
+#endif // #if defined(MIPI_SYST_PCFG_ENABLE_CATID32_API)
+#endif /* #if defined(MIPI_SYST_PCFG_ENABLE_PRINTF_API) */ \ No newline at end of file
diff --git a/library/src/mipi_syst_compiler.c b/library/src/mipi_syst_compiler.c
new file mode 100644
index 0000000..a03c1a2
--- /dev/null
+++ b/library/src/mipi_syst_compiler.c
@@ -0,0 +1,78 @@
+/*
+Copyright (c) 2018, MIPI Alliance, Inc.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+* Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+* Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Contributors:
+ * Norbert Schulz (Intel Corporation) - Initial API and implementation
+ */
+
+ /* Compiler dependent code */
+
+#include "mipi_syst.h"
+
+#if defined(_WIN32) /* MSVC Compiler section */
+
+#include <intrin.h>
+#pragma intrinsic(_ReturnAddress)
+
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_ADDRESS)
+/**
+ * Return the instruction pointer address of the instruction
+ * that follows this function. It is used to compute
+ * location information for SyS-T instrumentation calls.
+ * These are the calls that end with the _LOCADDR suffix.
+ */
+MIPI_SYST_EXPORT void *MIPI_SYST_CALLCONV mipi_syst_return_addr()
+{
+ return _ReturnAddress();
+}
+#endif /* defined(MIPI_SYST_PCFG_ENABLE_LOCATION_ADDRESS) */
+
+#elif defined(__GNUC__) /* GNU-C Compiler section */
+
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_ADDRESS)
+/**
+ * Return the instruction pointer address of the instruction
+ * that follows this function. It is used to compute
+ * location information for SyS-T instrumentation calls.
+ * These are the calls that end with the _LOCADDR suffix.
+ */
+MIPI_SYST_EXPORT void *MIPI_SYST_CALLCONV mipi_syst_return_addr()
+{
+ return __builtin_return_address(0);
+}
+#endif
+
+#else
+#error unknown compiler, copy and adapt one of the sections above
+#endif \ No newline at end of file
diff --git a/library/src/mipi_syst_crc32.c b/library/src/mipi_syst_crc32.c
new file mode 100644
index 0000000..65e3451
--- /dev/null
+++ b/library/src/mipi_syst_crc32.c
@@ -0,0 +1,313 @@
+/*
+Copyright (c) 2018, MIPI Alliance, Inc.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+* Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+* Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Contributors:
+ * Norbert Schulz (Intel Corporation) - Initial API and implementation
+ */
+
+#include "mipi_syst.h"
+
+#if defined(MIPI_SYST_PCFG_ENABLE_CHECKSUM) && !defined(MIPI_SYST_CRC_INTRINSIC)
+
+/*
+ * Pre-computed CRC-C values for all 8-bit values using
+ * polynomial 0x1EDC6F41 (Castagnoli).
+ */
+
+const mipi_syst_u32 mipi_syst_crc_table[256] = {
+ 0x00000000,
+ 0xF26B8303,
+ 0xE13B70F7,
+ 0x1350F3F4,
+ 0xC79A971F,
+ 0x35F1141C,
+ 0x26A1E7E8,
+ 0xD4CA64EB,
+ 0x8AD958CF,
+ 0x78B2DBCC,
+ 0x6BE22838,
+ 0x9989AB3B,
+ 0x4D43CFD0,
+ 0xBF284CD3,
+ 0xAC78BF27,
+ 0x5E133C24,
+ 0x105EC76F,
+ 0xE235446C,
+ 0xF165B798,
+ 0x030E349B,
+ 0xD7C45070,
+ 0x25AFD373,
+ 0x36FF2087,
+ 0xC494A384,
+ 0x9A879FA0,
+ 0x68EC1CA3,
+ 0x7BBCEF57,
+ 0x89D76C54,
+ 0x5D1D08BF,
+ 0xAF768BBC,
+ 0xBC267848,
+ 0x4E4DFB4B,
+ 0x20BD8EDE,
+ 0xD2D60DDD,
+ 0xC186FE29,
+ 0x33ED7D2A,
+ 0xE72719C1,
+ 0x154C9AC2,
+ 0x061C6936,
+ 0xF477EA35,
+ 0xAA64D611,
+ 0x580F5512,
+ 0x4B5FA6E6,
+ 0xB93425E5,
+ 0x6DFE410E,
+ 0x9F95C20D,
+ 0x8CC531F9,
+ 0x7EAEB2FA,
+ 0x30E349B1,
+ 0xC288CAB2,
+ 0xD1D83946,
+ 0x23B3BA45,
+ 0xF779DEAE,
+ 0x05125DAD,
+ 0x1642AE59,
+ 0xE4292D5A,
+ 0xBA3A117E,
+ 0x4851927D,
+ 0x5B016189,
+ 0xA96AE28A,
+ 0x7DA08661,
+ 0x8FCB0562,
+ 0x9C9BF696,
+ 0x6EF07595,
+ 0x417B1DBC,
+ 0xB3109EBF,
+ 0xA0406D4B,
+ 0x522BEE48,
+ 0x86E18AA3,
+ 0x748A09A0,
+ 0x67DAFA54,
+ 0x95B17957,
+ 0xCBA24573,
+ 0x39C9C670,
+ 0x2A993584,
+ 0xD8F2B687,
+ 0x0C38D26C,
+ 0xFE53516F,
+ 0xED03A29B,
+ 0x1F682198,
+ 0x5125DAD3,
+ 0xA34E59D0,
+ 0xB01EAA24,
+ 0x42752927,
+ 0x96BF4DCC,
+ 0x64D4CECF,
+ 0x77843D3B,
+ 0x85EFBE38,
+ 0xDBFC821C,
+ 0x2997011F,
+ 0x3AC7F2EB,
+ 0xC8AC71E8,
+ 0x1C661503,
+ 0xEE0D9600,
+ 0xFD5D65F4,
+ 0x0F36E6F7,
+ 0x61C69362,
+ 0x93AD1061,
+ 0x80FDE395,
+ 0x72966096,
+ 0xA65C047D,
+ 0x5437877E,
+ 0x4767748A,
+ 0xB50CF789,
+ 0xEB1FCBAD,
+ 0x197448AE,
+ 0x0A24BB5A,
+ 0xF84F3859,
+ 0x2C855CB2,
+ 0xDEEEDFB1,
+ 0xCDBE2C45,
+ 0x3FD5AF46,
+ 0x7198540D,
+ 0x83F3D70E,
+ 0x90A324FA,
+ 0x62C8A7F9,
+ 0xB602C312,
+ 0x44694011,
+ 0x5739B3E5,
+ 0xA55230E6,
+ 0xFB410CC2,
+ 0x092A8FC1,
+ 0x1A7A7C35,
+ 0xE811FF36,
+ 0x3CDB9BDD,
+ 0xCEB018DE,
+ 0xDDE0EB2A,
+ 0x2F8B6829,
+ 0x82F63B78,
+ 0x709DB87B,
+ 0x63CD4B8F,
+ 0x91A6C88C,
+ 0x456CAC67,
+ 0xB7072F64,
+ 0xA457DC90,
+ 0x563C5F93,
+ 0x082F63B7,
+ 0xFA44E0B4,
+ 0xE9141340,
+ 0x1B7F9043,
+ 0xCFB5F4A8,
+ 0x3DDE77AB,
+ 0x2E8E845F,
+ 0xDCE5075C,
+ 0x92A8FC17,
+ 0x60C37F14,
+ 0x73938CE0,
+ 0x81F80FE3,
+ 0x55326B08,
+ 0xA759E80B,
+ 0xB4091BFF,
+ 0x466298FC,
+ 0x1871A4D8,
+ 0xEA1A27DB,
+ 0xF94AD42F,
+ 0x0B21572C,
+ 0xDFEB33C7,
+ 0x2D80B0C4,
+ 0x3ED04330,
+ 0xCCBBC033,
+ 0xA24BB5A6,
+ 0x502036A5,
+ 0x4370C551,
+ 0xB11B4652,
+ 0x65D122B9,
+ 0x97BAA1BA,
+ 0x84EA524E,
+ 0x7681D14D,
+ 0x2892ED69,
+ 0xDAF96E6A,
+ 0xC9A99D9E,
+ 0x3BC21E9D,
+ 0xEF087A76,
+ 0x1D63F975,
+ 0x0E330A81,
+ 0xFC588982,
+ 0xB21572C9,
+ 0x407EF1CA,
+ 0x532E023E,
+ 0xA145813D,
+ 0x758FE5D6,
+ 0x87E466D5,
+ 0x94B49521,
+ 0x66DF1622,
+ 0x38CC2A06,
+ 0xCAA7A905,
+ 0xD9F75AF1,
+ 0x2B9CD9F2,
+ 0xFF56BD19,
+ 0x0D3D3E1A,
+ 0x1E6DCDEE,
+ 0xEC064EED,
+ 0xC38D26C4,
+ 0x31E6A5C7,
+ 0x22B65633,
+ 0xD0DDD530,
+ 0x0417B1DB,
+ 0xF67C32D8,
+ 0xE52CC12C,
+ 0x1747422F,
+ 0x49547E0B,
+ 0xBB3FFD08,
+ 0xA86F0EFC,
+ 0x5A048DFF,
+ 0x8ECEE914,
+ 0x7CA56A17,
+ 0x6FF599E3,
+ 0x9D9E1AE0,
+ 0xD3D3E1AB,
+ 0x21B862A8,
+ 0x32E8915C,
+ 0xC083125F,
+ 0x144976B4,
+ 0xE622F5B7,
+ 0xF5720643,
+ 0x07198540,
+ 0x590AB964,
+ 0xAB613A67,
+ 0xB831C993,
+ 0x4A5A4A90,
+ 0x9E902E7B,
+ 0x6CFBAD78,
+ 0x7FAB5E8C,
+ 0x8DC0DD8F,
+ 0xE330A81A,
+ 0x115B2B19,
+ 0x020BD8ED,
+ 0xF0605BEE,
+ 0x24AA3F05,
+ 0xD6C1BC06,
+ 0xC5914FF2,
+ 0x37FACCF1,
+ 0x69E9F0D5,
+ 0x9B8273D6,
+ 0x88D28022,
+ 0x7AB90321,
+ 0xAE7367CA,
+ 0x5C18E4C9,
+ 0x4F48173D,
+ 0xBD23943E,
+ 0xF36E6F75,
+ 0x0105EC76,
+ 0x12551F82,
+ 0xE03E9C81,
+ 0x34F4F86A,
+ 0xC69F7B69,
+ 0xD5CF889D,
+ 0x27A40B9E,
+ 0x79B737BA,
+ 0x8BDCB4B9,
+ 0x988C474D,
+ 0x6AE7C44E,
+ 0xBE2DA0A5,
+ 0x4C4623A6,
+ 0x5F16D052,
+ 0xAD7D5351
+};
+
+
+#if !defined(MIPI_SYST_PCFG_ENABLE_INLINE)
+#define MIPI_SYST_PCFG_ENABLE_INLINE
+#include "mipi_syst/crc32.h"
+#endif
+
+#endif /* defined(MIPI_SYST_PCFG_ENABLE_CHECKSUM) && !defined(MIPI_SYST_CRC_INTRINSIC)) */ \ No newline at end of file
diff --git a/library/src/mipi_syst_init.c b/library/src/mipi_syst_init.c
new file mode 100644
index 0000000..90ba5a5
--- /dev/null
+++ b/library/src/mipi_syst_init.c
@@ -0,0 +1,204 @@
+/*
+Copyright (c) 2018, MIPI Alliance, Inc.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+* Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+* Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Contributors:
+ * Norbert Schulz (Intel Corporation) - Initial API and implementation
+ */
+
+#include "mipi_syst.h"
+#include "mipi_syst/message.h"
+
+/**
+ * SyS-T global state
+ */
+static struct mipi_syst_header syst_hdr = { 0 };
+
+static union mipi_syst_null_init {
+ struct mipi_syst_handle handle;
+ struct mipi_syst_header header;
+} zero = { {0} }; /* for initializations */
+
+#if !defined(MIPI_SYST_PCFG_ENABLE_DEFAULT_SCATTER_WRITE)
+/**
+ * null-device style default output function
+ */
+static void nullWriter(struct mipi_syst_handle* systh,
+ struct mipi_syst_scatter_prog scatterprog, const void *pdesc)
+{
+}
+#endif
+
+/**
+ * Initialize the SyS-T library.
+ *
+ * This function must be called during the start of the platform before any
+ * other instrumentation library call. The function initializes the global
+ * state data necessary for the library to execute. Passing NULL as state
+ * means using the shared global state singleton. Passing a valid pointer
+ * allows using multiple SyS-T state context structures in parallel.
+ *
+ * @param header Pointer to SyS-T global state structure or NULL for default.
+ * @param pfinit Pointer to platform initialization function or 0 if not used.
+ * @param init_param Value passed to the the platform init hook function.
+ */
+MIPI_SYST_EXPORT void MIPI_SYST_CALLCONV
+mipi_syst_init(
+ struct mipi_syst_header* header,
+ mipi_syst_inithook_t pfinit,
+ const void *init_param)
+{
+ if (0 == header) {
+ /* No user supplied global state storage,
+ * use internal default state
+ */
+ header = &syst_hdr;
+ }
+
+ *header = zero.header;
+ header->systh_version = MIPI_SYST_VERSION_CODE;
+
+#if MIPI_SYST_CONFORMANCE_LEVEL > 10
+#if defined(MIPI_SYST_PCFG_ENABLE_DEFAULT_SCATTER_WRITE)
+ header->systh_writer = mipi_syst_scatter_write;
+#else
+ header->systh_writer = nullWriter;
+#endif
+#endif
+
+ /* call platform state initialization hook if defined
+ */
+ if ((mipi_syst_inithook_t) 0 != pfinit)
+ (*pfinit) (header, init_param);
+}
+
+/**
+ * Destroy the SyS-T library state.
+ *
+ * This function must be called during shutdown of the platform to release
+ * any SyS-T resources.
+ *
+ * @param header Pointer to library state or NULL to use shared default.
+ * @param pfdestroy Pointer to platform state destroy function or 0
+ * if not used.
+ */
+MIPI_SYST_EXPORT void MIPI_SYST_CALLCONV
+mipi_syst_destroy(struct mipi_syst_header* header, mipi_syst_destroyhook_t pfdestroy)
+{
+ if (0 == header) {
+ /* No user supplied global state storage,
+ * use internal default state
+ */
+ header = &syst_hdr;
+ }
+
+ /* call platform state destroy hook first, if defined
+ */
+ if ((mipi_syst_destroyhook_t) 0 != pfdestroy)
+ (*pfdestroy) (header);
+}
+
+/**
+ * Initialize a SyS-T handle.
+ *
+ * @param header Pointer to library state or NULL to use shared default.
+ * @param svh Pointer to new/uninitialized SyS-T handle
+ * @param origin Value passed to the the platform handle init function
+ * @param fromHeap 1 of heap allocated handle, 0 otherwise
+ */
+MIPI_SYST_EXPORT struct mipi_syst_handle* MIPI_SYST_CALLCONV
+mipi_syst_init_handle(
+ struct mipi_syst_header* header,
+ struct mipi_syst_handle* svh,
+ const struct mipi_syst_origin *origin,
+ mipi_syst_u32 fromHeap)
+{
+ if ((struct mipi_syst_handle*) 0 == svh)
+ return svh;
+
+
+ if (0 == header) {
+ /* No user supplied global state storage,
+ * use internal default state
+ */
+ header = &syst_hdr;
+ }
+
+ *svh = zero.handle;
+
+ svh->systh_header = header;
+ svh->systh_flags.shf_alloc = fromHeap ? 1 : 0;
+
+#if defined(MIPI_SYST_PCFG_ENABLE_ORIGIN_GUID)
+
+ if (0 != origin)
+ {
+ MIPI_SYST_SET_HANDLE_ORIGIN(svh, *origin);
+ }
+#endif
+
+ /* call platform handle initialization hook if defined
+ */
+#if defined(MIPI_SYST_PCFG_ENABLE_PLATFORM_HANDLE_DATA)
+ if ((mipi_syst_inithandle_hook_t) 0 != svh->systh_header->systh_inith)
+ svh->systh_header->systh_inith(svh);
+#endif
+ return svh;
+}
+
+/**
+ * Release a SyS-T handle.
+ *
+ * @param svh Pointer to initialized SyS-T handle
+ */
+MIPI_SYST_EXPORT void MIPI_SYST_CALLCONV mipi_syst_delete_handle(struct mipi_syst_handle* svh)
+{
+ if ((struct mipi_syst_handle*) 0 != svh) {
+#if defined(MIPI_SYST_PCFG_ENABLE_PLATFORM_HANDLE_DATA)
+ /* call platform handle release hook if defined
+ */
+ if ((mipi_syst_releasehandle_hook_t) 0 !=
+ svh->systh_header->systh_releaseh)
+ svh->systh_header->systh_releaseh(svh);
+#endif
+
+#if defined(MIPI_SYST_PCFG_ENABLE_HEAP_MEMORY)
+ if (0 != svh->systh_flags.shf_alloc) {
+ MIPI_SYST_HEAP_FREE(svh);
+ } else
+#endif
+ {
+ *svh = zero.handle;
+ }
+ }
+} \ No newline at end of file
diff --git a/library/src/mipi_syst_inline.c b/library/src/mipi_syst_inline.c
new file mode 100644
index 0000000..ca22ef0
--- /dev/null
+++ b/library/src/mipi_syst_inline.c
@@ -0,0 +1,48 @@
+/*
+Copyright (c) 2018, MIPI Alliance, Inc.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+* Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+* Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Contributors:
+ * Norbert Schulz (Intel Corporation) - Initial API and implementation
+ */
+
+#include "mipi_syst.h"
+
+/* Include inline function in this cpp file if functions inline
+ * support is disabled by the platform define
+ * MIPI_SYST_PCFG_ENABLE_INLINE.
+ * Implementation will then use true functions to save code space.
+ */
+#if !defined(MIPI_SYST_PCFG_ENABLE_INLINE)
+#include "mipi_syst/inline.h"
+#endif \ No newline at end of file
diff --git a/library/src/mipi_syst_writer.c b/library/src/mipi_syst_writer.c
new file mode 100644
index 0000000..3120ff3
--- /dev/null
+++ b/library/src/mipi_syst_writer.c
@@ -0,0 +1,219 @@
+/*
+Copyright (c) 2018, MIPI Alliance, Inc.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+* Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+* Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Contributors:
+ * Norbert Schulz (Intel Corporation) - Initial API and implementation
+ */
+#include "mipi_syst.h"
+#include "mipi_syst/message.h"
+#include "mipi_syst/crc32.h"
+
+#if defined(MIPI_SYST_PCFG_ENABLE_DEFAULT_SCATTER_WRITE)
+
+ /** scatter write routine
+ *
+ * This function implements the scatter write algorithm that translates
+ * the logical SyS-T memory descriptor representation into output
+ * requests. The actual output routines are defined through
+ * the MIPI_SYST_OUTPUT_* definitions from the platform header file.
+ *
+ * @param systh used syst handle
+ * @param scatterprog message content write instructions
+ * @param pdesc pointer to memory area with message data
+ */
+void mipi_syst_scatter_write(struct mipi_syst_handle* systh,
+ struct mipi_syst_scatter_prog *scatterprog, const void *pdesc)
+{
+ unsigned int repeat;
+
+ /* Define an "any" size integer pointer to avoid casts and to simplify
+ * type based incrementing
+ */
+ union {
+ const void *vp;
+ const mipi_syst_u8 *bp;
+ const mipi_syst_u16 *hp;
+ const mipi_syst_u32 *wp;
+ const mipi_syst_u64 *dp;
+ } data;
+
+#if defined(MIPI_SYST_PCFG_ENABLE_CHECKSUM)
+#define IFDO(a, b) { if (a) do { b; } while (0); }
+
+ mipi_syst_u32 crc;
+ int use_crc;
+
+ use_crc = systh->systh_tag.et_chksum;
+ crc = MIPI_SYST_CRC32_INIT(0);
+#else
+
+#define IFDO(a, b)
+ /* no checksump computation support */
+#endif
+
+ /* Write the "always" present tag field as a time-stamped D32 */
+ MIPI_SYST_OUTPUT_D32TS(systh, *(mipi_syst_u32 *)pdesc);
+
+ IFDO(use_crc, MIPI_SYST_CRC32_U32(crc, *(mipi_syst_u32 *)pdesc));
+
+ /* Run the message scatter write program to dump the message contents
+ */
+ while (scatterprog->sso_opcode != MIPI_SYST_SCATTER_OP_END) {
+ repeat = scatterprog->sso_length;
+ data.vp = pdesc;
+ data.bp += scatterprog->sso_offset;
+
+ switch (scatterprog->sso_opcode) {
+ case MIPI_SYST_SCATTER_OP_8BIT:
+ do {
+ MIPI_SYST_OUTPUT_D8(systh, *data.bp);
+ IFDO(use_crc,
+ MIPI_SYST_CRC32_U8(crc, *data.bp));
+ ++data.bp;
+ } while (--repeat);
+ break;
+
+ case MIPI_SYST_SCATTER_OP_16BIT:
+ do {
+ MIPI_SYST_OUTPUT_D16(systh, *data.hp);
+ IFDO(use_crc,
+ MIPI_SYST_CRC32_U16(crc, *data.hp));
+ ++data.hp;
+ } while (--repeat);
+ break;
+
+ case MIPI_SYST_SCATTER_OP_32BIT:
+ do {
+ MIPI_SYST_OUTPUT_D32(systh, *data.wp);
+ IFDO(use_crc,
+ MIPI_SYST_CRC32_U32(crc, *data.wp));
+ ++data.wp;
+ } while (--repeat);
+ break;
+
+
+ case MIPI_SYST_SCATTER_OP_64BIT:
+ do {
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_IO)
+ MIPI_SYST_OUTPUT_D64(systh, *data.dp);
+#else
+#if defined(MIPI_SYST_BIG_ENDIAN)
+ MIPI_SYST_OUTPUT_D32(systh, data.wp[1]);
+ MIPI_SYST_OUTPUT_D32(systh, data.wp[0]);
+#else
+ MIPI_SYST_OUTPUT_D32(systh, data.wp[0]);
+ MIPI_SYST_OUTPUT_D32(systh, data.wp[1]);
+#endif
+
+#endif /* ! defined(MIPI_SYST_PCFG_ENABLE_64BIT_IO) */
+ IFDO(use_crc,
+ MIPI_SYST_CRC32_U64(crc, *data.dp));
+ ++data.dp;
+ } while (--repeat);
+ break;
+
+ case MIPI_SYST_SCATTER_OP_BLOB:
+ /* data location is pointer to real data,
+ * not data itself
+ */
+ data.vp = *(void **)data.vp;
+
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_IO)
+
+ while (repeat >= sizeof(mipi_syst_u64)) {
+ mipi_syst_u64 v;
+ v = MIPI_SYST_HTOLE64(*data.dp);
+ MIPI_SYST_OUTPUT_D64(systh, v);
+ IFDO(use_crc,
+ MIPI_SYST_CRC32_U64(crc, v));
+ ++data.dp;
+ repeat -= sizeof(mipi_syst_u64);
+ }
+
+ if (repeat >= sizeof(mipi_syst_u32)) {
+ mipi_syst_u32 v;
+ v = MIPI_SYST_HTOLE32(*data.wp);
+ MIPI_SYST_OUTPUT_D32(systh, v);
+ IFDO(use_crc,
+ MIPI_SYST_CRC32_U32(crc,
+ *data.wp));
+ ++data.wp;
+ repeat -= sizeof(mipi_syst_u32);
+ }
+#else
+ while (repeat >= sizeof(mipi_syst_u32)) {
+ mipi_syst_u32 v;
+ v = MIPI_SYST_HTOLE32(*data.wp);
+ MIPI_SYST_OUTPUT_D32(systh, v);
+
+ IFDO(use_crc,
+ MIPI_SYST_CRC32_U32(crc, v));
+ ++data.wp;
+ repeat -= sizeof(mipi_syst_u32);
+ }
+#endif
+ if (repeat >= sizeof(mipi_syst_u16)) {
+ mipi_syst_u16 v;
+ v = MIPI_SYST_HTOLE16(*data.hp);
+ MIPI_SYST_OUTPUT_D16(systh, v);
+
+ IFDO(use_crc,
+ MIPI_SYST_CRC32_U16(crc, v));
+ ++data.hp;
+ repeat -= sizeof(mipi_syst_u16);
+ }
+
+ if (repeat) {
+ MIPI_SYST_OUTPUT_D8(systh,
+ *data.bp);
+ IFDO(use_crc,
+ MIPI_SYST_CRC32_U8(crc, *data.bp));
+ }
+ break;
+ }
+ ++scatterprog;
+ }
+
+#if defined(MIPI_SYST_PCFG_ENABLE_CHECKSUM)
+ if (use_crc) {
+ crc = MIPI_SYST_CRC32_GET(crc);
+ MIPI_SYST_OUTPUT_D32(systh, crc);
+ }
+#endif
+
+ /* EVENT end of record mark */
+ MIPI_SYST_OUTPUT_FLAG(systh);
+}
+
+#endif /* defined(MIPI_SYST_PCFG_ENABLE_DEFAULT_SCATTER_WRITE) */ \ No newline at end of file
diff --git a/library/test/CMakeLists.txt b/library/test/CMakeLists.txt
new file mode 100644
index 0000000..b1d8aa2
--- /dev/null
+++ b/library/test/CMakeLists.txt
@@ -0,0 +1,7 @@
+# Google Test unit test framework must be present for tests
+#
+if (EXISTS "${SYST_BUILD_GTEST_DIR}/include/gtest/gtest.h")
+ add_subdirectory(unit)
+else()
+ message("WARNING: SYST_BUILD_GTEST_DIR is not set or not pointing to Google Test sources, skipping unit tests ...")
+endif ()
diff --git a/library/test/unit/CMakeLists.txt b/library/test/unit/CMakeLists.txt
new file mode 100644
index 0000000..2ac801c
--- /dev/null
+++ b/library/test/unit/CMakeLists.txt
@@ -0,0 +1,58 @@
+#make install of googletest a nop
+#
+function(install)
+endfunction()
+
+enable_testing()
+
+add_definitions(-D_VARIADIC_MAX=10)
+if (WIN32)
+ set (gtest_force_shared_crt ON CACHE BOOL "Force GTest to use shared CRT")
+endif (WIN32)
+add_subdirectory(${SYST_BUILD_GTEST_DIR} ${CMAKE_CURRENT_BINARY_DIR}/gtest)
+mark_as_advanced(BUILD_SHARED_LIBS)
+
+include_directories(
+ ${SYST_BUILD_GTEST_DIR}/include
+ ${mipi_syst_Platform_include}
+ ${mipi_syst_Includes}
+ ../../platform/src
+ ../../platform/${SYST_BUILD_PLATFORM_NAME}/src
+)
+
+add_executable(syst_unittest
+ mipi_syst_gtest_main.cpp
+ mipi_syst_init_test.cpp
+ mipi_syst_disable_test.cpp
+ mipi_syst_clock_test.cpp
+ mipi_syst_crc32_test.cpp
+ mipi_syst_catid32_test.cpp
+ mipi_syst_catid64_test.cpp
+ mipi_syst_printf_test.cpp
+ mipi_syst_raw_test.cpp
+ mipi_syst_string_test.cpp
+ mipi_syst_build_test.cpp
+)
+
+target_link_libraries(syst_unittest gtest mipi_syst_static)
+set_target_properties(syst_unittest PROPERTIES COMPILE_FLAGS "-DMIPI_SYST_EXPORTS")
+
+foreach (target gtest gtest_main syst_unittest)
+ set_property(TARGET ${target} PROPERTY FOLDER "Unittests")
+endforeach (target)
+
+add_test(
+ NAME syst_unittest
+ COMMAND syst_unittest
+ WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
+)
+
+
+if (CMAKE_CONFIGURATION_TYPES)
+ add_custom_target(RUN_TEST_VERBOSE COMMAND ${CMAKE_CTEST_COMMAND}
+ --force-new-ctest-process --verbose
+ --build-config "$<CONFIGURATION>")
+else()
+ add_custom_target(RUN_TEST_VERBOSE COMMAND ${CMAKE_CTEST_COMMAND}
+ --force-new-ctest-process --verbose)
+endif() \ No newline at end of file
diff --git a/library/test/unit/mipi_syst_build_test.cpp b/library/test/unit/mipi_syst_build_test.cpp
new file mode 100644
index 0000000..1acaf62
--- /dev/null
+++ b/library/test/unit/mipi_syst_build_test.cpp
@@ -0,0 +1,193 @@
+/*
+Copyright (c) 2018, MIPI Alliance, Inc.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+* Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+* Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Contributors:
+ * Norbert Schulz (Intel Corporation) - Initial API and implementation
+ */
+
+#include "mipi_syst_gtest.h"
+
+#if defined(MIPI_SYST_PCFG_ENABLE_PLATFORM_STATE_DATA) &&\
+ defined(MIPI_SYST_PCFG_ENABLE_DEFAULT_SCATTER_WRITE) &&\
+ defined(MIPI_SYST_PCFG_ENABLE_TIMESTAMP) &&\
+ defined(MIPI_SYST_PCFG_ENABLE_BUILD_API)
+
+class MipiSysTFixtureBuild : public MipiSysTFixtureOutput
+{
+public:
+ void SetUp() {
+ MipiSysTFixtureOutput::SetUp();
+ }
+
+ void TearDown(){
+ MipiSysTFixtureOutput::TearDown();
+ }
+
+ const char * mipi_syst_write_build_message(
+ struct mipi_syst_handle* svh,
+ struct mipi_syst_msglocation* loc,
+ enum mipi_syst_severity severity,
+ mipi_syst_u64 subtype,
+ const char * data,
+ mipi_syst_u16 length)
+ {
+ sstr.str("");
+
+ ::mipi_syst_write_build_message(svh, loc, severity, subtype, data, length);
+ result = sstr.str();
+
+ return result.c_str();
+ }
+
+ static std::string result;
+};
+
+std::string MipiSysTFixtureBuild::result;
+
+
+#if defined(MIPI_SYST_PCFG_ENABLE_BUILD_API)
+TEST_F(MipiSysTFixtureBuild, syst_build_long)
+{
+ EXPECT_STREQ(
+ xform(""),
+ MIPI_SYST_BUILD(NULL, MIPI_SYST_SEVERITY_MAX, 0x1122334455667788ull, "some text", 10)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>02012200[typ=0:2 mu=1:2 sev=0 len]<D16>0012<D64>1122334455667788<D64>78657420656d6f73<D16>0074<FLAG>"),
+ MIPI_SYST_BUILD(ph, MIPI_SYST_SEVERITY_MAX, 0x1122334455667788ull, "some text", 10)
+ );
+ EXPECT_STREQ(
+ xform("<D32TS>02012200[typ=0:2 mu=1:2 sev=0 len]<D16>0008<D64>1122334455667788<FLAG>"),
+ MIPI_SYST_BUILD(ph, MIPI_SYST_SEVERITY_MAX, 0x1122334455667788ull, NULL, 0)
+ );
+
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD)
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_ADDRESS)
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ EXPECT_STREQ(
+ xform("<D32TS>02012300[typ=0:2 mu=1:2 sev=0 loc len]<D8>03<D64>12345678aabbccdd<D16>0012<D64>1122334455667788<D64>78657420656d6f73<D16>0074<FLAG>"),
+ MIPI_SYST_BUILD_LOCADDR(ph, MIPI_SYST_SEVERITY_MAX, 0x1122334455667788ull, "some text", 10)
+ );
+#else
+ EXPECT_STREQ(
+ xform("<D32TS>02012300[typ=0:2 mu=1:2 sev=0 loc len]<D8>02<D32>12345678<D16>0012<D64>1122334455667788<D64>78657420656d6f73<D16>0074<FLAG>"),
+ MIPI_SYST_BUILD_LOCADDR(ph, MIPI_SYST_SEVERITY_MAX, 0x1122334455667788ull, "some text", 10)
+ );
+
+#endif
+#endif
+
+ EXPECT_STREQ(
+ xform("<D32TS>02012300[typ=0:2 mu=1:2 sev=0 loc len]<D8>00<D32>5678abcd<D16>0012<D64>1122334455667788<D64>78657420656d6f73<D16>0074<FLAG>"),
+ MIPI_SYST_BUILD_LOC16(ph, MIPI_SYST_SEVERITY_MAX, 0xabcd, 0x1122334455667788ull, "some text", 10)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>02012300[typ=0:2 mu=1:2 sev=0 loc len]<D8>01<D64>12345678aabbccdd<D16>0012<D64>1122334455667788<D64>78657420656d6f73<D16>0074<FLAG>"),
+ MIPI_SYST_BUILD_LOC32(ph, MIPI_SYST_SEVERITY_MAX, 0xaabbccdd, 0x1122334455667788ull, "some text", 10)
+ );
+#endif
+}
+
+#endif /* defined(MIPI_SYST_PCFG_ENABLE_BUILD_API)*/
+
+#endif
+
+TEST_F(MipiSysTFixtureOutput, syst_build_compact_null)
+{
+ std::string str;
+
+ MIPI_SYST_BUILD_COMPACT64(0, 0x0000000000000000ull);
+ str = sstr.str();
+
+ EXPECT_STREQ(
+ xform(""),
+ str.c_str()
+ );
+
+ MIPI_SYST_BUILD_COMPACT32(0, 0);
+ str = sstr.str();
+
+ EXPECT_STREQ(
+ xform(""),
+ str.c_str()
+ );
+}
+
+TEST_F(MipiSysTFixtureOutput, syst_build_compact64)
+{
+ std::string str;
+
+ MIPI_SYST_BUILD_COMPACT64(ph, 0x0000000000000000ull);
+ str = sstr.str();
+
+ EXPECT_STREQ(
+ xform("<D64MTS>0000000001000000"),
+ str.c_str()
+ );
+ sstr.str("");
+
+ MIPI_SYST_BUILD_COMPACT64(ph, 0x3FFFFFFFFFFFFFull);
+ str = sstr.str();
+
+ EXPECT_STREQ(
+ xform("<D64MTS>ffffffffc1fffff0"),
+ str.c_str()
+ );
+ sstr.str("");
+}
+
+TEST_F(MipiSysTFixtureOutput, syst_build_compact32)
+{
+ std::string str;
+
+ MIPI_SYST_BUILD_COMPACT32(ph, 0x00000000ull);
+ str = sstr.str();
+
+ EXPECT_STREQ(
+ xform("<D32MTS>00000000"),
+ str.c_str()
+ );
+ sstr.str("");
+
+ MIPI_SYST_BUILD_COMPACT32(ph, 0x3FFFFF);
+ str = sstr.str();
+
+ EXPECT_STREQ(
+ xform("<D32MTS>c0fffff0"),
+ str.c_str()
+ );
+ sstr.str("");
+} \ No newline at end of file
diff --git a/library/test/unit/mipi_syst_catid32_test.cpp b/library/test/unit/mipi_syst_catid32_test.cpp
new file mode 100644
index 0000000..a2e0a27
--- /dev/null
+++ b/library/test/unit/mipi_syst_catid32_test.cpp
@@ -0,0 +1,532 @@
+/*
+Copyright (c) 2018, MIPI Alliance, Inc.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+* Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+* Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Contributors:
+ * Norbert Schulz (Intel Corporation) - Initial API and implementation
+ */
+
+#include "mipi_syst_gtest.h"
+
+#if defined(MIPI_SYST_PCFG_ENABLE_PLATFORM_STATE_DATA) &&\
+ defined(MIPI_SYST_PCFG_ENABLE_DEFAULT_SCATTER_WRITE) &&\
+ defined(MIPI_SYST_PCFG_ENABLE_CATID32_API)
+
+class MipiSysTFixtureCatId32 : public MipiSysTFixtureOutput
+{
+public:
+ void SetUp() {
+ MipiSysTFixtureOutput::SetUp();
+ }
+
+ void TearDown(){
+ MipiSysTFixtureOutput::TearDown();
+ }
+
+ const char * mipi_syst_write_catalog32_message(struct mipi_syst_handle* svh,
+ struct mipi_syst_msglocation* loc,
+ enum mipi_syst_severity severity,
+ mipi_syst_u32 catid)
+ {
+ static std::string result;
+
+ ::mipi_syst_write_catalog32_message(svh, loc, severity, catid);
+ result = sstr.str();
+ sstr.str("");
+
+ return result.c_str();
+ }
+};
+
+TEST_F(MipiSysTFixtureCatId32, syst_catid32_basic)
+{
+ EXPECT_STREQ(
+ xform(""),
+ MIPI_SYST_CATALOG32_0(0,MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE)
+ );
+ EXPECT_STREQ(
+ xform(""),
+ MIPI_SYST_CATALOG32_1(0,MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE,1 )
+ );
+ EXPECT_STREQ(
+ xform(""),
+ MIPI_SYST_CATALOG32_2(0,MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, 1, 2 )
+ );
+ EXPECT_STREQ(
+ xform(""),
+ MIPI_SYST_CATALOG32_3(0,MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, 1, 2, 3 )
+ );
+ EXPECT_STREQ(
+ xform(""),
+ MIPI_SYST_CATALOG32_4(0,MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, 1, 2, 3, 4 )
+ );
+ EXPECT_STREQ(
+ xform(""),
+ MIPI_SYST_CATALOG32_5(0,MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, 1, 2,3,4,5 )
+ );
+ EXPECT_STREQ(
+ xform(""),
+ MIPI_SYST_CATALOG32_6(0,MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, 1, 2,3,4,5,6 )
+ );
+
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD)
+
+ EXPECT_STREQ(
+ xform(""),
+ MIPI_SYST_CATALOG32_0_LOC16(0,MIPI_SYST_SEVERITY_WARNING, 1, 0xCAFEBABE )
+ );
+ EXPECT_STREQ(
+ xform(""),
+ MIPI_SYST_CATALOG32_0_LOC32(0,MIPI_SYST_SEVERITY_WARNING, 1, 0xCAFEBABE )
+ );
+
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_ADDRESS)
+ EXPECT_STREQ(
+ xform(""),
+ MIPI_SYST_CATALOG32_0_LOCADDR(0,MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE)
+ );
+#endif
+#endif
+}
+
+TEST_F(MipiSysTFixtureCatId32, syst_catid32_noloc_output)
+{
+ EXPECT_STREQ(
+ xform("<D32TS>01012233[typ=3:1 mu=1:2 sev=3 len]<D16>0004<D32>cafebabe<FLAG>"),
+ MIPI_SYST_CATALOG32_0(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>01012233[typ=3:1 mu=1:2 sev=3 len]<D16>0008<D32>cafebabe<D32>00000001<FLAG>"),
+ MIPI_SYST_CATALOG32_1(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, 1)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>01012233[typ=3:1 mu=1:2 sev=3 len]<D16>000c<D32>cafebabe<D64>0000000200000001<FLAG>"),
+ MIPI_SYST_CATALOG32_2(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, 1, 2)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>01012233[typ=3:1 mu=1:2 sev=3 len]<D16>0010<D32>cafebabe<D64>0000000200000001<D32>00000003<FLAG>"),
+ MIPI_SYST_CATALOG32_3(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, 1, 2, 3)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>01012233[typ=3:1 mu=1:2 sev=3 len]<D16>0014<D32>cafebabe<D64>0000000200000001<D64>0000000400000003<FLAG>"),
+ MIPI_SYST_CATALOG32_4(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, 1, 2, 3, 4)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>01012233[typ=3:1 mu=1:2 sev=3 len]<D16>0018<D32>cafebabe<D64>0000000200000001<D64>0000000400000003<D32>00000005<FLAG>"),
+ MIPI_SYST_CATALOG32_5(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, 1, 2, 3, 4, 5)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>01012233[typ=3:1 mu=1:2 sev=3 len]<D16>001c<D32>cafebabe<D64>0000000200000001<D64>0000000400000003<D64>0000000600000005<FLAG>"),
+ MIPI_SYST_CATALOG32_6(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, 1, 2, 3, 4, 5, 6)
+ );
+}
+
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD)
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_ADDRESS)
+TEST_F(MipiSysTFixtureCatId32, syst_catid32_locaddr_output)
+{
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>03<D64>12345678aabbccdd<D16>0004<D32>cafebabe<FLAG>"),
+ MIPI_SYST_CATALOG32_0_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE)
+ );
+#else
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>02<D32>12345678<D16>0004<D32>cafebabe<FLAG>"),
+ MIPI_SYST_CATALOG32_0_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE)
+ );
+#endif
+
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>03<D64>12345678aabbccdd<D16>0008<D32>cafebabe<D32>00000001<FLAG>"),
+ MIPI_SYST_CATALOG32_1_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, 1)
+ );
+#else
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>02<D32>12345678<D16>0008<D32>cafebabe<D32>00000001<FLAG>"),
+ MIPI_SYST_CATALOG32_1_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, 1)
+ );
+#endif
+
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>03<D64>12345678aabbccdd<D16>000c<D32>cafebabe<D64>0000000200000001<FLAG>"),
+ MIPI_SYST_CATALOG32_2_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, 1, 2)
+ );
+#else
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>02<D32>12345678<D16>000c<D32>cafebabe<D64>0000000200000001<FLAG>"),
+ MIPI_SYST_CATALOG32_2_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, 1, 2)
+ );
+#endif
+
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>03<D64>12345678aabbccdd<D16>0010<D32>cafebabe<D64>0000000200000001<D32>00000003<FLAG>"),
+ MIPI_SYST_CATALOG32_3_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, 1, 2, 3)
+ );
+#else
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>02<D32>12345678<D16>0010<D32>cafebabe<D64>0000000200000001<D32>00000003<FLAG>"),
+ MIPI_SYST_CATALOG32_3_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, 1, 2, 3)
+ );
+#endif
+
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>03<D64>12345678aabbccdd<D16>0014<D32>cafebabe<D64>0000000200000001<D64>0000000400000003<FLAG>"),
+ MIPI_SYST_CATALOG32_4_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, 1, 2, 3, 4)
+ );
+#else
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>02<D32>12345678<D16>0014<D32>cafebabe<D64>0000000200000001<D64>0000000400000003<FLAG>"),
+ MIPI_SYST_CATALOG32_4_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, 1, 2, 3, 4)
+ );
+#endif
+
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>03<D64>12345678aabbccdd<D16>0018<D32>cafebabe<D64>0000000200000001<D64>0000000400000003<D32>00000005<FLAG>"),
+ MIPI_SYST_CATALOG32_5_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, 1, 2, 3, 4, 5)
+ );
+#else
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>02<D32>12345678<D16>0018<D32>cafebabe<D64>0000000200000001<D64>0000000400000003<D32>00000005<FLAG>"),
+ MIPI_SYST_CATALOG32_5_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, 1, 2, 3, 4, 5)
+ );
+#endif
+
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>03<D64>12345678aabbccdd<D16>001c<D32>cafebabe<D64>0000000200000001<D64>0000000400000003<D64>0000000600000005<FLAG>"),
+ MIPI_SYST_CATALOG32_6_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, 1, 2, 3, 4, 5, 6)
+ );
+#else
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>02<D32>12345678<D16>001c<D32>cafebabe<D64>0000000200000001<D64>0000000400000003<D64>0000000600000005<FLAG>"),
+ MIPI_SYST_CATALOG32_6_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, 1, 2, 3, 4, 5, 6)
+ );
+#endif
+}
+#endif //MIPI_SYST_PCFG_ENABLE_LOCATION_ADDRESS
+
+TEST_F(MipiSysTFixtureCatId32, syst_catid32_loc16_output)
+{
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>00<D32>5678abcd<D16>0004<D32>cafebabe<FLAG>"),
+ MIPI_SYST_CATALOG32_0_LOC16(ph, MIPI_SYST_SEVERITY_WARNING, 0xabcd, 0xCAFEBABE)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>00<D32>5678abcd<D16>0008<D32>cafebabe<D32>00000001<FLAG>"),
+ MIPI_SYST_CATALOG32_1_LOC16(ph, MIPI_SYST_SEVERITY_WARNING, 0xabcd, 0xCAFEBABE, 1)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>00<D32>5678abcd<D16>000c<D32>cafebabe<D64>0000000200000001<FLAG>"),
+ MIPI_SYST_CATALOG32_2_LOC16(ph, MIPI_SYST_SEVERITY_WARNING, 0xabcd, 0xCAFEBABE, 1, 2)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>00<D32>5678abcd<D16>0010<D32>cafebabe<D64>0000000200000001<D32>00000003<FLAG>"),
+ MIPI_SYST_CATALOG32_3_LOC16(ph, MIPI_SYST_SEVERITY_WARNING, 0xabcd, 0xCAFEBABE, 1, 2, 3)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>00<D32>5678abcd<D16>0014<D32>cafebabe<D64>0000000200000001<D64>0000000400000003<FLAG>"),
+ MIPI_SYST_CATALOG32_4_LOC16(ph, MIPI_SYST_SEVERITY_WARNING, 0xabcd, 0xCAFEBABE, 1, 2, 3, 4)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>00<D32>5678abcd<D16>0018<D32>cafebabe<D64>0000000200000001<D64>0000000400000003<D32>00000005<FLAG>"),
+ MIPI_SYST_CATALOG32_5_LOC16(ph, MIPI_SYST_SEVERITY_WARNING, 0xabcd, 0xCAFEBABE, 1, 2, 3, 4, 5)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>00<D32>5678abcd<D16>001c<D32>cafebabe<D64>0000000200000001<D64>0000000400000003<D64>0000000600000005<FLAG>"),
+ MIPI_SYST_CATALOG32_6_LOC16(ph, MIPI_SYST_SEVERITY_WARNING, 0xabcd, 0xCAFEBABE, 1, 2, 3, 4, 5, 6)
+ );
+}
+
+TEST_F(MipiSysTFixtureCatId32, syst_catid32_loc32_output)
+{
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>01<D64>12345678aabbccdd<D16>0004<D32>cafebabe<FLAG>"),
+ MIPI_SYST_CATALOG32_0_LOC32(ph, MIPI_SYST_SEVERITY_WARNING, 0xaabbccdd, 0xCAFEBABE)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>01<D64>12345678aabbccdd<D16>0008<D32>cafebabe<D32>00000001<FLAG>"),
+ MIPI_SYST_CATALOG32_1_LOC32(ph, MIPI_SYST_SEVERITY_WARNING, 0xaabbccdd, 0xCAFEBABE, 1)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>01<D64>12345678aabbccdd<D16>000c<D32>cafebabe<D64>0000000200000001<FLAG>"),
+ MIPI_SYST_CATALOG32_2_LOC32(ph, MIPI_SYST_SEVERITY_WARNING, 0xaabbccdd, 0xCAFEBABE, 1, 2)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>01<D64>12345678aabbccdd<D16>0010<D32>cafebabe<D64>0000000200000001<D32>00000003<FLAG>"),
+ MIPI_SYST_CATALOG32_3_LOC32(ph, MIPI_SYST_SEVERITY_WARNING, 0xaabbccdd, 0xCAFEBABE, 1, 2, 3)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>01<D64>12345678aabbccdd<D16>0014<D32>cafebabe<D64>0000000200000001<D64>0000000400000003<FLAG>"),
+ MIPI_SYST_CATALOG32_4_LOC32(ph, MIPI_SYST_SEVERITY_WARNING, 0xaabbccdd, 0xCAFEBABE, 1, 2, 3, 4)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>01<D64>12345678aabbccdd<D16>0018<D32>cafebabe<D64>0000000200000001<D64>0000000400000003<D32>00000005<FLAG>"),
+ MIPI_SYST_CATALOG32_5_LOC32(ph, MIPI_SYST_SEVERITY_WARNING, 0xaabbccdd, 0xCAFEBABE, 1, 2, 3, 4, 5)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>01<D64>12345678aabbccdd<D16>001c<D32>cafebabe<D64>0000000200000001<D64>0000000400000003<D64>0000000600000005<FLAG>"),
+ MIPI_SYST_CATALOG32_6_LOC32(ph, MIPI_SYST_SEVERITY_WARNING, 0xaabbccdd, 0xCAFEBABE, 1, 2, 3, 4, 5, 6)
+ );
+}
+#endif //MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD
+
+
+TEST_F(MipiSysTFixtureCatId32, syst_catprintf32_noloc_output)
+{
+ EXPECT_STREQ(
+ xform("<D32TS>01012233[typ=3:1 mu=1:2 sev=3 len]<D16>0004<D32>cafebabe<FLAG>"),
+ MIPI_SYST_CATPRINTF32_0(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, "dummy" )
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>01012233[typ=3:1 mu=1:2 sev=3 len]<D16>0008<D32>cafebabe<D32>00000001<FLAG>"),
+ MIPI_SYST_CATPRINTF32_1(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, "dummy", 1)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>01012233[typ=3:1 mu=1:2 sev=3 len]<D16>000c<D32>cafebabe<D64>0000000200000001<FLAG>"),
+ MIPI_SYST_CATPRINTF32_2(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, "dummy", 1, 2)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>01012233[typ=3:1 mu=1:2 sev=3 len]<D16>0010<D32>cafebabe<D64>0000000200000001<D32>00000003<FLAG>"),
+ MIPI_SYST_CATPRINTF32_3(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, "dummy", 1, 2, 3)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>01012233[typ=3:1 mu=1:2 sev=3 len]<D16>0014<D32>cafebabe<D64>0000000200000001<D64>0000000400000003<FLAG>"),
+ MIPI_SYST_CATPRINTF32_4(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, "dummy", 1, 2, 3, 4)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>01012233[typ=3:1 mu=1:2 sev=3 len]<D16>0018<D32>cafebabe<D64>0000000200000001<D64>0000000400000003<D32>00000005<FLAG>"),
+ MIPI_SYST_CATPRINTF32_5(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, "dummy", 1, 2, 3, 4, 5)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>01012233[typ=3:1 mu=1:2 sev=3 len]<D16>001c<D32>cafebabe<D64>0000000200000001<D64>0000000400000003<D64>0000000600000005<FLAG>"),
+ MIPI_SYST_CATPRINTF32_6(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, "dummy", 1, 2, 3, 4, 5, 6)
+ );
+}
+
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD)
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_ADDRESS)
+TEST_F(MipiSysTFixtureCatId32, syst_catprintf32_locaddr_output)
+{
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>03<D64>12345678aabbccdd<D16>0004<D32>cafebabe<FLAG>"),
+ MIPI_SYST_CATPRINTF32_0_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, "dummy")
+ );
+#else
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>02<D32>12345678<D16>0004<D32>cafebabe<FLAG>"),
+ MIPI_SYST_CATPRINTF32_0_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, "dummy")
+ );
+#endif
+
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>03<D64>12345678aabbccdd<D16>0008<D32>cafebabe<D32>00000001<FLAG>"),
+ MIPI_SYST_CATPRINTF32_1_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, "dummy", 1)
+ );
+#else
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>02<D32>12345678<D16>0008<D32>cafebabe<D32>00000001<FLAG>"),
+ MIPI_SYST_CATPRINTF32_1_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, "dummy", 1)
+ );
+#endif
+
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>03<D64>12345678aabbccdd<D16>000c<D32>cafebabe<D64>0000000200000001<FLAG>"),
+ MIPI_SYST_CATPRINTF32_2_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, "dummy", 1, 2)
+ );
+#else
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>02<D32>12345678<D16>000c<D32>cafebabe<D64>0000000200000001<FLAG>"),
+ MIPI_SYST_CATPRINTF32_2_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, "dummy", 1, 2)
+ );
+#endif
+
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>03<D64>12345678aabbccdd<D16>0010<D32>cafebabe<D64>0000000200000001<D32>00000003<FLAG>"),
+ MIPI_SYST_CATPRINTF32_3_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, "dummy", 1, 2, 3)
+ );
+#else
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>02<D32>12345678<D16>0010<D32>cafebabe<D64>0000000200000001<D32>00000003<FLAG>"),
+ MIPI_SYST_CATPRINTF32_3_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, "dummy", 1, 2, 3)
+ );
+#endif
+
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>03<D64>12345678aabbccdd<D16>0014<D32>cafebabe<D64>0000000200000001<D64>0000000400000003<FLAG>"),
+ MIPI_SYST_CATPRINTF32_4_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, "dummy", 1, 2, 3, 4)
+ );
+#else
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>02<D32>12345678<D16>0014<D32>cafebabe<D64>0000000200000001<D64>0000000400000003<FLAG>"),
+ MIPI_SYST_CATPRINTF32_4_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, "dummy", 1, 2, 3, 4)
+ );
+#endif
+
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>03<D64>12345678aabbccdd<D16>0018<D32>cafebabe<D64>0000000200000001<D64>0000000400000003<D32>00000005<FLAG>"),
+ MIPI_SYST_CATPRINTF32_5_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, "dummy", 1, 2, 3, 4, 5)
+ );
+#else
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>02<D32>12345678<D16>0018<D32>cafebabe<D64>0000000200000001<D64>0000000400000003<D32>00000005<FLAG>"),
+ MIPI_SYST_CATPRINTF32_5_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, "dummy", 1, 2, 3, 4, 5)
+ );
+#endif
+
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>03<D64>12345678aabbccdd<D16>001c<D32>cafebabe<D64>0000000200000001<D64>0000000400000003<D64>0000000600000005<FLAG>"),
+ MIPI_SYST_CATPRINTF32_6_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, "dummy", 1, 2, 3, 4, 5, 6)
+ );
+#else
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>02<D32>12345678<D16>001c<D32>cafebabe<D64>0000000200000001<D64>0000000400000003<D64>0000000600000005<FLAG>"),
+ MIPI_SYST_CATPRINTF32_6_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, "dummy", 1, 2, 3, 4, 5, 6)
+ );
+#endif
+}
+#endif //MIPI_SYST_PCFG_ENABLE_LOCATION_ADDRESS
+
+TEST_F(MipiSysTFixtureCatId32, syst_catprintf2_loc16_output)
+{
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>00<D32>5678abcd<D16>0004<D32>cafebabe<FLAG>"),
+ MIPI_SYST_CATPRINTF32_0_LOC16(ph, MIPI_SYST_SEVERITY_WARNING, 0xabcd, 0xCAFEBABE, "dummy")
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>00<D32>5678abcd<D16>0008<D32>cafebabe<D32>00000001<FLAG>"),
+ MIPI_SYST_CATPRINTF32_1_LOC16(ph, MIPI_SYST_SEVERITY_WARNING, 0xabcd, 0xCAFEBABE, "dummy", 1)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>00<D32>5678abcd<D16>000c<D32>cafebabe<D64>0000000200000001<FLAG>"),
+ MIPI_SYST_CATPRINTF32_2_LOC16(ph, MIPI_SYST_SEVERITY_WARNING, 0xabcd, 0xCAFEBABE, "dummy", 1, 2)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>00<D32>5678abcd<D16>0010<D32>cafebabe<D64>0000000200000001<D32>00000003<FLAG>"),
+ MIPI_SYST_CATPRINTF32_3_LOC16(ph, MIPI_SYST_SEVERITY_WARNING, 0xabcd, 0xCAFEBABE, "dummy", 1, 2, 3)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>00<D32>5678abcd<D16>0014<D32>cafebabe<D64>0000000200000001<D64>0000000400000003<FLAG>"),
+ MIPI_SYST_CATPRINTF32_4_LOC16(ph, MIPI_SYST_SEVERITY_WARNING, 0xabcd, 0xCAFEBABE, "dummy", 1, 2, 3, 4)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>00<D32>5678abcd<D16>0018<D32>cafebabe<D64>0000000200000001<D64>0000000400000003<D32>00000005<FLAG>"),
+ MIPI_SYST_CATPRINTF32_5_LOC16(ph, MIPI_SYST_SEVERITY_WARNING, 0xabcd, 0xCAFEBABE, "dummy", 1, 2, 3, 4, 5)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>00<D32>5678abcd<D16>001c<D32>cafebabe<D64>0000000200000001<D64>0000000400000003<D64>0000000600000005<FLAG>"),
+ MIPI_SYST_CATPRINTF32_6_LOC16(ph, MIPI_SYST_SEVERITY_WARNING, 0xabcd, 0xCAFEBABE, "dummy", 1, 2, 3, 4, 5, 6)
+ );
+}
+
+TEST_F(MipiSysTFixtureCatId32, syst_catprintf32_loc32_output)
+{
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>01<D64>12345678aabbccdd<D16>0004<D32>cafebabe<FLAG>"),
+ MIPI_SYST_CATPRINTF32_0_LOC32(ph, MIPI_SYST_SEVERITY_WARNING, 0xaabbccdd, 0xCAFEBABE, "dummy")
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>01<D64>12345678aabbccdd<D16>0008<D32>cafebabe<D32>00000001<FLAG>"),
+ MIPI_SYST_CATPRINTF32_1_LOC32(ph, MIPI_SYST_SEVERITY_WARNING, 0xaabbccdd, 0xCAFEBABE, "dummy", 1)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>01<D64>12345678aabbccdd<D16>000c<D32>cafebabe<D64>0000000200000001<FLAG>"),
+ MIPI_SYST_CATPRINTF32_2_LOC32(ph, MIPI_SYST_SEVERITY_WARNING, 0xaabbccdd, 0xCAFEBABE, "dummy", 1, 2)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>01<D64>12345678aabbccdd<D16>0010<D32>cafebabe<D64>0000000200000001<D32>00000003<FLAG>"),
+ MIPI_SYST_CATPRINTF32_3_LOC32(ph, MIPI_SYST_SEVERITY_WARNING, 0xaabbccdd, 0xCAFEBABE, "dummy", 1, 2, 3)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>01<D64>12345678aabbccdd<D16>0014<D32>cafebabe<D64>0000000200000001<D64>0000000400000003<FLAG>"),
+ MIPI_SYST_CATPRINTF32_4_LOC32(ph, MIPI_SYST_SEVERITY_WARNING, 0xaabbccdd, 0xCAFEBABE, "dummy", 1, 2, 3, 4)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>01<D64>12345678aabbccdd<D16>0018<D32>cafebabe<D64>0000000200000001<D64>0000000400000003<D32>00000005<FLAG>"),
+ MIPI_SYST_CATPRINTF32_5_LOC32(ph, MIPI_SYST_SEVERITY_WARNING, 0xaabbccdd, 0xCAFEBABE, "dummy", 1, 2, 3, 4, 5)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>01012333[typ=3:1 mu=1:2 sev=3 loc len]<D8>01<D64>12345678aabbccdd<D16>001c<D32>cafebabe<D64>0000000200000001<D64>0000000400000003<D64>0000000600000005<FLAG>"),
+ MIPI_SYST_CATPRINTF32_6_LOC32(ph, MIPI_SYST_SEVERITY_WARNING, 0xaabbccdd, 0xCAFEBABE, "dummy", 1, 2, 3, 4, 5, 6)
+ );
+}
+#endif //MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD
+#endif //MIPI_SYST_PCFG_ENABLE_PLATFORM_STATE_DATA && MIPI_SYST_PCFG_ENABLE_DEFAULT_SCATTER_WRITE && MIPI_SYST_PCFG_ENABLE_CATID32_API \ No newline at end of file
diff --git a/library/test/unit/mipi_syst_catid64_test.cpp b/library/test/unit/mipi_syst_catid64_test.cpp
new file mode 100644
index 0000000..8842632
--- /dev/null
+++ b/library/test/unit/mipi_syst_catid64_test.cpp
@@ -0,0 +1,530 @@
+/*
+Copyright (c) 2018, MIPI Alliance, Inc.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+* Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+* Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Contributors:
+ * Norbert Schulz (Intel Corporation) - Initial API and implementation
+ */
+
+#include "mipi_syst_gtest.h"
+
+#if defined(MIPI_SYST_PCFG_ENABLE_PLATFORM_STATE_DATA) && defined(MIPI_SYST_PCFG_ENABLE_DEFAULT_SCATTER_WRITE) && defined(MIPI_SYST_PCFG_ENABLE_CATID64_API)
+
+class MipiSysTFixtureCatId64 : public MipiSysTFixtureOutput
+{
+public:
+ void SetUp() {
+ MipiSysTFixtureOutput::SetUp();
+ }
+
+ void TearDown(){
+ MipiSysTFixtureOutput::TearDown();
+ }
+
+ const char * mipi_syst_write_catalog64_message(struct mipi_syst_handle* svh,
+ struct mipi_syst_msglocation* loc,
+ enum mipi_syst_severity severity,
+ mipi_syst_u64 catid)
+ {
+ static std::string result;
+
+ ::mipi_syst_write_catalog64_message(svh, loc, severity, catid);
+ result = sstr.str();
+ sstr.str("");
+
+ return result.c_str();
+ }
+};
+
+TEST_F(MipiSysTFixtureCatId64, syst_catid64_basic)
+{
+ EXPECT_STREQ(
+ xform(""),
+ MIPI_SYST_CATALOG64_0(0,MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE)
+ );
+ EXPECT_STREQ(
+ xform(""),
+ MIPI_SYST_CATALOG64_1(0,MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE,1 )
+ );
+ EXPECT_STREQ(
+ xform(""),
+ MIPI_SYST_CATALOG64_2(0,MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, 1, 2 )
+ );
+ EXPECT_STREQ(
+ xform(""),
+ MIPI_SYST_CATALOG64_3(0,MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, 1, 2, 3 )
+ );
+ EXPECT_STREQ(
+ xform(""),
+ MIPI_SYST_CATALOG64_4(0,MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, 1, 2, 3, 4 )
+ );
+ EXPECT_STREQ(
+ xform(""),
+ MIPI_SYST_CATALOG64_5(0,MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, 1, 2,3,4,5 )
+ );
+ EXPECT_STREQ(
+ xform(""),
+ MIPI_SYST_CATALOG64_6(0,MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, 1, 2,3,4,5,6 )
+ );
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD)
+
+ EXPECT_STREQ(
+ xform(""),
+ MIPI_SYST_CATALOG64_0_LOC16(0,MIPI_SYST_SEVERITY_WARNING, 1, 0xCAFEBABE )
+ );
+ EXPECT_STREQ(
+ xform(""),
+ MIPI_SYST_CATALOG64_0_LOC32(0,MIPI_SYST_SEVERITY_WARNING, 1, 0xCAFEBABE )
+ );
+
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_ADDRESS)
+ EXPECT_STREQ(
+ xform(""),
+ MIPI_SYST_CATALOG64_0_LOCADDR(0,MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE)
+ );
+#endif
+#endif
+}
+
+TEST_F(MipiSysTFixtureCatId64, syst_catid64_noloc_output)
+{
+ EXPECT_STREQ(
+ xform("<D32TS>02012233[typ=3:2 mu=1:2 sev=3 len]<D16>0008<D64>000decafcafebabe<FLAG>"),
+ MIPI_SYST_CATALOG64_0(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>02012233[typ=3:2 mu=1:2 sev=3 len]<D16>000c<D64>000decafcafebabe<D32>00000001<FLAG>"),
+ MIPI_SYST_CATALOG64_1(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull, 1)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>02012233[typ=3:2 mu=1:2 sev=3 len]<D16>0010<D64>000decafcafebabe<D64>0000000200000001<FLAG>"),
+ MIPI_SYST_CATALOG64_2(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull, 1, 2)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>02012233[typ=3:2 mu=1:2 sev=3 len]<D16>0014<D64>000decafcafebabe<D64>0000000200000001<D32>00000003<FLAG>"),
+ MIPI_SYST_CATALOG64_3(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull, 1, 2, 3)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>02012233[typ=3:2 mu=1:2 sev=3 len]<D16>0018<D64>000decafcafebabe<D64>0000000200000001<D64>0000000400000003<FLAG>"),
+ MIPI_SYST_CATALOG64_4(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull, 1, 2, 3, 4)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>02012233[typ=3:2 mu=1:2 sev=3 len]<D16>001c<D64>000decafcafebabe<D64>0000000200000001<D64>0000000400000003<D32>00000005<FLAG>"),
+ MIPI_SYST_CATALOG64_5(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull, 1, 2, 3, 4, 5)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>02012233[typ=3:2 mu=1:2 sev=3 len]<D16>0020<D64>000decafcafebabe<D64>0000000200000001<D64>0000000400000003<D64>0000000600000005<FLAG>"),
+ MIPI_SYST_CATALOG64_6(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull, 1, 2, 3, 4, 5, 6)
+ );
+}
+
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD)
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_ADDRESS)
+TEST_F(MipiSysTFixtureCatId64, syst_catid64_locaddr_output)
+{
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>03<D64>12345678aabbccdd<D16>0008<D64>000decafcafebabe<FLAG>"),
+ MIPI_SYST_CATALOG64_0_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull)
+ );
+#else
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>02<D32>12345678<D16>0008<D64>000decafcafebabe<FLAG>"),
+ MIPI_SYST_CATALOG64_0_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull)
+ );
+#endif
+
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>03<D64>12345678aabbccdd<D16>000c<D64>000decafcafebabe<D32>00000001<FLAG>"),
+ MIPI_SYST_CATALOG64_1_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull, 1)
+ );
+#else
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>02<D32>12345678<D16>000c<D64>000decafcafebabe<D32>00000001<FLAG>"),
+ MIPI_SYST_CATALOG64_1_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull, 1)
+ );
+#endif
+
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>03<D64>12345678aabbccdd<D16>0010<D64>000decafcafebabe<D64>0000000200000001<FLAG>"),
+ MIPI_SYST_CATALOG64_2_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull, 1, 2)
+ );
+#else
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>02<D32>12345678<D16>0010<D64>000decafcafebabe<D64>0000000200000001<FLAG>"),
+ MIPI_SYST_CATALOG64_2_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull, 1, 2)
+ );
+#endif
+
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>03<D64>12345678aabbccdd<D16>0014<D64>000decafcafebabe<D64>0000000200000001<D32>00000003<FLAG>"),
+ MIPI_SYST_CATALOG64_3_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull, 1, 2, 3)
+ );
+#else
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>02<D32>12345678<D16>0014<D64>000decafcafebabe<D64>0000000200000001<D32>00000003<FLAG>"),
+ MIPI_SYST_CATALOG64_3_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull, 1, 2, 3)
+ );
+#endif
+
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>03<D64>12345678aabbccdd<D16>0018<D64>000decafcafebabe<D64>0000000200000001<D64>0000000400000003<FLAG>"),
+ MIPI_SYST_CATALOG64_4_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull, 1, 2, 3, 4)
+ );
+#else
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>02<D32>12345678<D16>0018<D64>000decafcafebabe<D64>0000000200000001<D64>0000000400000003<FLAG>"),
+ MIPI_SYST_CATALOG64_4_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull, 1, 2, 3, 4)
+ );
+#endif
+
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>03<D64>12345678aabbccdd<D16>001c<D64>000decafcafebabe<D64>0000000200000001<D64>0000000400000003<D32>00000005<FLAG>"),
+ MIPI_SYST_CATALOG64_5_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull, 1, 2, 3, 4, 5)
+ );
+#else
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>02<D32>12345678<D16>001c<D64>000decafcafebabe<D64>0000000200000001<D64>0000000400000003<D32>00000005<FLAG>"),
+ MIPI_SYST_CATALOG64_5_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull, 1, 2, 3, 4, 5)
+ );
+#endif
+
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>03<D64>12345678aabbccdd<D16>0020<D64>000decafcafebabe<D64>0000000200000001<D64>0000000400000003<D64>0000000600000005<FLAG>"),
+ MIPI_SYST_CATALOG64_6_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull, 1, 2, 3, 4, 5, 6)
+ );
+#else
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>02<D32>12345678<D16>0020<D64>000decafcafebabe<D64>0000000200000001<D64>0000000400000003<D64>0000000600000005<FLAG>"),
+ MIPI_SYST_CATALOG64_6_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull, 1, 2, 3, 4, 5, 6)
+ );
+#endif
+}
+#endif //MIPI_SYST_PCFG_ENABLE_LOCATION_ADDRESS
+
+TEST_F(MipiSysTFixtureCatId64, syst_catid64_loc16_output)
+{
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>00<D32>5678abcd<D16>0008<D64>000decafcafebabe<FLAG>"),
+ MIPI_SYST_CATALOG64_0_LOC16(ph, MIPI_SYST_SEVERITY_WARNING, 0xabcd, 0xDECAFCAFEBABEull)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>00<D32>5678abcd<D16>000c<D64>000decafcafebabe<D32>00000001<FLAG>"),
+ MIPI_SYST_CATALOG64_1_LOC16(ph, MIPI_SYST_SEVERITY_WARNING, 0xabcd, 0xDECAFCAFEBABEull, 1)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>00<D32>5678abcd<D16>0010<D64>000decafcafebabe<D64>0000000200000001<FLAG>"),
+ MIPI_SYST_CATALOG64_2_LOC16(ph, MIPI_SYST_SEVERITY_WARNING, 0xabcd, 0xDECAFCAFEBABEull, 1, 2)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>00<D32>5678abcd<D16>0014<D64>000decafcafebabe<D64>0000000200000001<D32>00000003<FLAG>"),
+ MIPI_SYST_CATALOG64_3_LOC16(ph, MIPI_SYST_SEVERITY_WARNING, 0xabcd, 0xDECAFCAFEBABEull, 1, 2, 3)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>00<D32>5678abcd<D16>0018<D64>000decafcafebabe<D64>0000000200000001<D64>0000000400000003<FLAG>"),
+ MIPI_SYST_CATALOG64_4_LOC16(ph, MIPI_SYST_SEVERITY_WARNING, 0xabcd, 0xDECAFCAFEBABEull, 1, 2, 3, 4)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>00<D32>5678abcd<D16>001c<D64>000decafcafebabe<D64>0000000200000001<D64>0000000400000003<D32>00000005<FLAG>"),
+ MIPI_SYST_CATALOG64_5_LOC16(ph, MIPI_SYST_SEVERITY_WARNING, 0xabcd, 0xDECAFCAFEBABEull, 1, 2, 3, 4, 5)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>00<D32>5678abcd<D16>0020<D64>000decafcafebabe<D64>0000000200000001<D64>0000000400000003<D64>0000000600000005<FLAG>"),
+ MIPI_SYST_CATALOG64_6_LOC16(ph, MIPI_SYST_SEVERITY_WARNING, 0xabcd, 0xDECAFCAFEBABEull, 1, 2, 3, 4, 5, 6)
+ );
+}
+
+TEST_F(MipiSysTFixtureCatId64, syst_catid64_loc32_output)
+{
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>01<D64>12345678aabbccdd<D16>0008<D64>000decafcafebabe<FLAG>"),
+ MIPI_SYST_CATALOG64_0_LOC32(ph, MIPI_SYST_SEVERITY_WARNING, 0xaabbccdd, 0xDECAFCAFEBABEull)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>01<D64>12345678aabbccdd<D16>000c<D64>000decafcafebabe<D32>00000001<FLAG>"),
+ MIPI_SYST_CATALOG64_1_LOC32(ph, MIPI_SYST_SEVERITY_WARNING, 0xaabbccdd, 0xDECAFCAFEBABEull, 1)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>01<D64>12345678aabbccdd<D16>0010<D64>000decafcafebabe<D64>0000000200000001<FLAG>"),
+ MIPI_SYST_CATALOG64_2_LOC32(ph, MIPI_SYST_SEVERITY_WARNING, 0xaabbccdd, 0xDECAFCAFEBABEull, 1, 2)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>01<D64>12345678aabbccdd<D16>0014<D64>000decafcafebabe<D64>0000000200000001<D32>00000003<FLAG>"),
+ MIPI_SYST_CATALOG64_3_LOC32(ph, MIPI_SYST_SEVERITY_WARNING, 0xaabbccdd, 0xDECAFCAFEBABEull, 1, 2, 3)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>01<D64>12345678aabbccdd<D16>0018<D64>000decafcafebabe<D64>0000000200000001<D64>0000000400000003<FLAG>"),
+ MIPI_SYST_CATALOG64_4_LOC32(ph, MIPI_SYST_SEVERITY_WARNING, 0xaabbccdd, 0xDECAFCAFEBABEull, 1, 2, 3, 4)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>01<D64>12345678aabbccdd<D16>001c<D64>000decafcafebabe<D64>0000000200000001<D64>0000000400000003<D32>00000005<FLAG>"),
+ MIPI_SYST_CATALOG64_5_LOC32(ph, MIPI_SYST_SEVERITY_WARNING, 0xaabbccdd, 0xDECAFCAFEBABEull, 1, 2, 3, 4, 5)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>01<D64>12345678aabbccdd<D16>0020<D64>000decafcafebabe<D64>0000000200000001<D64>0000000400000003<D64>0000000600000005<FLAG>"),
+ MIPI_SYST_CATALOG64_6_LOC32(ph, MIPI_SYST_SEVERITY_WARNING, 0xaabbccdd, 0xDECAFCAFEBABEull, 1, 2, 3, 4, 5, 6)
+ );
+}
+#endif //MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD
+
+
+TEST_F(MipiSysTFixtureCatId64, syst_printf64_noloc_output)
+{
+ EXPECT_STREQ(
+ xform("<D32TS>02012233[typ=3:2 mu=1:2 sev=3 len]<D16>0008<D64>000decafcafebabe<FLAG>"),
+ MIPI_SYST_CATPRINTF64_0(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull, "dummy")
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>02012233[typ=3:2 mu=1:2 sev=3 len]<D16>000c<D64>000decafcafebabe<D32>00000001<FLAG>"),
+ MIPI_SYST_CATPRINTF64_1(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull, "dummy", 1)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>02012233[typ=3:2 mu=1:2 sev=3 len]<D16>0010<D64>000decafcafebabe<D64>0000000200000001<FLAG>"),
+ MIPI_SYST_CATPRINTF64_2(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull, "dummy", 1, 2)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>02012233[typ=3:2 mu=1:2 sev=3 len]<D16>0014<D64>000decafcafebabe<D64>0000000200000001<D32>00000003<FLAG>"),
+ MIPI_SYST_CATPRINTF64_3(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull, "dummy", 1, 2, 3)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>02012233[typ=3:2 mu=1:2 sev=3 len]<D16>0018<D64>000decafcafebabe<D64>0000000200000001<D64>0000000400000003<FLAG>"),
+ MIPI_SYST_CATPRINTF64_4(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull, "dummy", 1, 2, 3, 4)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>02012233[typ=3:2 mu=1:2 sev=3 len]<D16>001c<D64>000decafcafebabe<D64>0000000200000001<D64>0000000400000003<D32>00000005<FLAG>"),
+ MIPI_SYST_CATPRINTF64_5(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull, "dummy", 1, 2, 3, 4, 5)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>02012233[typ=3:2 mu=1:2 sev=3 len]<D16>0020<D64>000decafcafebabe<D64>0000000200000001<D64>0000000400000003<D64>0000000600000005<FLAG>"),
+ MIPI_SYST_CATPRINTF64_6(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull, "dummy", 1, 2, 3, 4, 5, 6)
+ );
+}
+
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD)
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_ADDRESS)
+TEST_F(MipiSysTFixtureCatId64, syst_printf64_locaddr_output)
+{
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>03<D64>12345678aabbccdd<D16>0008<D64>000decafcafebabe<FLAG>"),
+ MIPI_SYST_CATPRINTF64_0_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull, "dummy")
+ );
+#else
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>02<D32>12345678<D16>0008<D64>000decafcafebabe<FLAG>"),
+ MIPI_SYST_CATPRINTF64_0_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull, "dummy")
+ );
+#endif
+
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>03<D64>12345678aabbccdd<D16>000c<D64>000decafcafebabe<D32>00000001<FLAG>"),
+ MIPI_SYST_CATPRINTF64_1_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull, "dummy", 1)
+ );
+#else
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>02<D32>12345678<D16>000c<D64>000decafcafebabe<D32>00000001<FLAG>"),
+ MIPI_SYST_CATPRINTF64_1_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull, "dummy", 1)
+ );
+#endif
+
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>03<D64>12345678aabbccdd<D16>0010<D64>000decafcafebabe<D64>0000000200000001<FLAG>"),
+ MIPI_SYST_CATPRINTF64_2_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull, "dummy", 1, 2)
+ );
+#else
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>02<D32>12345678<D16>0010<D64>000decafcafebabe<D64>0000000200000001<FLAG>"),
+ MIPI_SYST_CATPRINTF64_2_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull, "dummy", 1, 2)
+ );
+#endif
+
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>03<D64>12345678aabbccdd<D16>0014<D64>000decafcafebabe<D64>0000000200000001<D32>00000003<FLAG>"),
+ MIPI_SYST_CATPRINTF64_3_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull, "dummy", 1, 2, 3)
+ );
+#else
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>02<D32>12345678<D16>0014<D64>000decafcafebabe<D64>0000000200000001<D32>00000003<FLAG>"),
+ MIPI_SYST_CATPRINTF64_3_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull, "dummy", 1, 2, 3)
+ );
+#endif
+
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>03<D64>12345678aabbccdd<D16>0018<D64>000decafcafebabe<D64>0000000200000001<D64>0000000400000003<FLAG>"),
+ MIPI_SYST_CATPRINTF64_4_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull, "dummy", 1, 2, 3, 4)
+ );
+#else
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>02<D32>12345678<D16>0018<D64>000decafcafebabe<D64>0000000200000001<D64>0000000400000003<FLAG>"),
+ MIPI_SYST_CATPRINTF64_4_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull, "dummy", 1, 2, 3, 4)
+ );
+#endif
+
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>03<D64>12345678aabbccdd<D16>001c<D64>000decafcafebabe<D64>0000000200000001<D64>0000000400000003<D32>00000005<FLAG>"),
+ MIPI_SYST_CATPRINTF64_5_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull, "dummy", 1, 2, 3, 4, 5)
+ );
+#else
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>02<D32>12345678<D16>001c<D64>000decafcafebabe<D64>0000000200000001<D64>0000000400000003<D32>00000005<FLAG>"),
+ MIPI_SYST_CATPRINTF64_5_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull, "dummy", 1, 2, 3, 4, 5)
+ );
+#endif
+
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>03<D64>12345678aabbccdd<D16>0020<D64>000decafcafebabe<D64>0000000200000001<D64>0000000400000003<D64>0000000600000005<FLAG>"),
+ MIPI_SYST_CATPRINTF64_6_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull, "dummy", 1, 2, 3, 4, 5, 6)
+ );
+#else
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>02<D32>12345678<D16>0020<D64>000decafcafebabe<D64>0000000200000001<D64>0000000400000003<D64>0000000600000005<FLAG>"),
+ MIPI_SYST_CATPRINTF64_6_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull, "dummy", 1, 2, 3, 4, 5, 6)
+ );
+#endif
+}
+#endif //MIPI_SYST_PCFG_ENABLE_LOCATION_ADDRESS
+
+TEST_F(MipiSysTFixtureCatId64, syst_printf64_loc16_output)
+{
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>00<D32>5678abcd<D16>0008<D64>000decafcafebabe<FLAG>"),
+ MIPI_SYST_CATPRINTF64_0_LOC16(ph, MIPI_SYST_SEVERITY_WARNING, 0xabcd, 0xDECAFCAFEBABEull, "dummy")
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>00<D32>5678abcd<D16>000c<D64>000decafcafebabe<D32>00000001<FLAG>"),
+ MIPI_SYST_CATPRINTF64_1_LOC16(ph, MIPI_SYST_SEVERITY_WARNING, 0xabcd, 0xDECAFCAFEBABEull, "dummy", 1)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>00<D32>5678abcd<D16>0010<D64>000decafcafebabe<D64>0000000200000001<FLAG>"),
+ MIPI_SYST_CATPRINTF64_2_LOC16(ph, MIPI_SYST_SEVERITY_WARNING, 0xabcd, 0xDECAFCAFEBABEull, "dummy", 1, 2)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>00<D32>5678abcd<D16>0014<D64>000decafcafebabe<D64>0000000200000001<D32>00000003<FLAG>"),
+ MIPI_SYST_CATPRINTF64_3_LOC16(ph, MIPI_SYST_SEVERITY_WARNING, 0xabcd, 0xDECAFCAFEBABEull, "dummy", 1, 2, 3)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>00<D32>5678abcd<D16>0018<D64>000decafcafebabe<D64>0000000200000001<D64>0000000400000003<FLAG>"),
+ MIPI_SYST_CATPRINTF64_4_LOC16(ph, MIPI_SYST_SEVERITY_WARNING, 0xabcd, 0xDECAFCAFEBABEull, "dummy", 1, 2, 3, 4)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>00<D32>5678abcd<D16>001c<D64>000decafcafebabe<D64>0000000200000001<D64>0000000400000003<D32>00000005<FLAG>"),
+ MIPI_SYST_CATPRINTF64_5_LOC16(ph, MIPI_SYST_SEVERITY_WARNING, 0xabcd, 0xDECAFCAFEBABEull, "dummy", 1, 2, 3, 4, 5)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>00<D32>5678abcd<D16>0020<D64>000decafcafebabe<D64>0000000200000001<D64>0000000400000003<D64>0000000600000005<FLAG>"),
+ MIPI_SYST_CATPRINTF64_6_LOC16(ph, MIPI_SYST_SEVERITY_WARNING, 0xabcd, 0xDECAFCAFEBABEull, "dummy", 1, 2, 3, 4, 5, 6)
+ );
+}
+
+TEST_F(MipiSysTFixtureCatId64, syst_printf64_loc32_output)
+{
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>01<D64>12345678aabbccdd<D16>0008<D64>000decafcafebabe<FLAG>"),
+ MIPI_SYST_CATPRINTF64_0_LOC32(ph, MIPI_SYST_SEVERITY_WARNING, 0xaabbccdd, 0xDECAFCAFEBABEull, "dummy")
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>01<D64>12345678aabbccdd<D16>000c<D64>000decafcafebabe<D32>00000001<FLAG>"),
+ MIPI_SYST_CATPRINTF64_1_LOC32(ph, MIPI_SYST_SEVERITY_WARNING, 0xaabbccdd, 0xDECAFCAFEBABEull, "dummy", 1)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>01<D64>12345678aabbccdd<D16>0010<D64>000decafcafebabe<D64>0000000200000001<FLAG>"),
+ MIPI_SYST_CATPRINTF64_2_LOC32(ph, MIPI_SYST_SEVERITY_WARNING, 0xaabbccdd, 0xDECAFCAFEBABEull, "dummy", 1, 2)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>01<D64>12345678aabbccdd<D16>0014<D64>000decafcafebabe<D64>0000000200000001<D32>00000003<FLAG>"),
+ MIPI_SYST_CATPRINTF64_3_LOC32(ph, MIPI_SYST_SEVERITY_WARNING, 0xaabbccdd, 0xDECAFCAFEBABEull, "dummy", 1, 2, 3)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>01<D64>12345678aabbccdd<D16>0018<D64>000decafcafebabe<D64>0000000200000001<D64>0000000400000003<FLAG>"),
+ MIPI_SYST_CATPRINTF64_4_LOC32(ph, MIPI_SYST_SEVERITY_WARNING, 0xaabbccdd, 0xDECAFCAFEBABEull, "dummy", 1, 2, 3, 4)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>01<D64>12345678aabbccdd<D16>001c<D64>000decafcafebabe<D64>0000000200000001<D64>0000000400000003<D32>00000005<FLAG>"),
+ MIPI_SYST_CATPRINTF64_5_LOC32(ph, MIPI_SYST_SEVERITY_WARNING, 0xaabbccdd, 0xDECAFCAFEBABEull, "dummy", 1, 2, 3, 4, 5)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>02012333[typ=3:2 mu=1:2 sev=3 loc len]<D8>01<D64>12345678aabbccdd<D16>0020<D64>000decafcafebabe<D64>0000000200000001<D64>0000000400000003<D64>0000000600000005<FLAG>"),
+ MIPI_SYST_CATPRINTF64_6_LOC32(ph, MIPI_SYST_SEVERITY_WARNING, 0xaabbccdd, 0xDECAFCAFEBABEull, "dummy", 1, 2, 3, 4, 5, 6)
+ );
+}
+#endif //MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD
+
+#endif //MIPI_SYST_PCFG_ENABLE_PLATFORM_STATE_DATA && MIPI_SYST_PCFG_ENABLE_DEFAULT_SCATTER_WRITE && MIPI_SYST_PCFG_ENABLE_CATID64_API \ No newline at end of file
diff --git a/library/test/unit/mipi_syst_clock_test.cpp b/library/test/unit/mipi_syst_clock_test.cpp
new file mode 100644
index 0000000..384a289
--- /dev/null
+++ b/library/test/unit/mipi_syst_clock_test.cpp
@@ -0,0 +1,92 @@
+/*
+Copyright (c) 2018, MIPI Alliance, Inc.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+* Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+* Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Contributors:
+ * Norbert Schulz (Intel Corporation) - Initial API and implementation
+ */
+
+#include "mipi_syst_gtest.h"
+
+#if defined(MIPI_SYST_PCFG_ENABLE_PLATFORM_STATE_DATA) &&\
+ defined(MIPI_SYST_PCFG_ENABLE_DEFAULT_SCATTER_WRITE) &&\
+ defined(MIPI_SYST_PCFG_ENABLE_TIMESTAMP)
+
+class MipiSysTFixtureClock : public MipiSysTFixtureOutput
+{
+public:
+ void SetUp() {
+ MipiSysTFixtureOutput::SetUp();
+ }
+
+ void TearDown(){
+ MipiSysTFixtureOutput::TearDown();
+ }
+
+ const char * mipi_syst_write_clock(struct mipi_syst_handle* svh,
+ struct mipi_syst_msglocation* loc,
+ enum mipi_syst_subtype_clock fmt,
+ mipi_syst_u64 clock,
+ mipi_syst_u64 freq)
+ {
+ static std::string result;
+
+ ::mipi_syst_write_clock(svh, loc,fmt, clock, freq);
+ result = sstr.str();
+ sstr.str("");
+
+ return result.c_str();
+ }
+};
+
+#if defined(MIPI_SYST_PCFG_ENABLE_TIMESTAMP)
+TEST_F(MipiSysTFixtureClock, syst_clock_sync_null)
+{
+ EXPECT_STREQ(
+ xform(""),
+ MIPI_SYST_CLOCK_SYNC(NULL, MIPI_SYST_PLATFORM_CLOCK(), MIPI_SYST_PLATFORM_FREQ())
+ );
+}
+TEST_F(MipiSysTFixtureClock, syst_clock_sync_output)
+{
+ MIPI_SYST_ENABLE_HANDLE_TIMESTAMP(ph, 0);
+
+ EXPECT_STREQ(
+ xform("<D32TS>01012208[typ=8:1 mu=1:2 sev=0 len]<D16>0010<D64>12345678aabbccdd<D64>00000000000f4240<FLAG>"),
+ MIPI_SYST_CLOCK_SYNC(ph, MIPI_SYST_PLATFORM_CLOCK(), MIPI_SYST_PLATFORM_FREQ())
+ );
+}
+
+#endif /* defined(MIPI_SYST_PCFG_ENABLE_TIMESTAMP)*/
+
+#endif \ No newline at end of file
diff --git a/library/test/unit/mipi_syst_crc32_test.cpp b/library/test/unit/mipi_syst_crc32_test.cpp
new file mode 100644
index 0000000..780903e
--- /dev/null
+++ b/library/test/unit/mipi_syst_crc32_test.cpp
@@ -0,0 +1,138 @@
+/*
+Copyright (c) 2018, MIPI Alliance, Inc.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+* Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+* Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Contributors:
+ * Norbert Schulz (Intel Corporation) - Initial API and implementation
+ */
+#include "mipi_syst_gtest.h"
+
+#ifdef MIPI_SYST_PCFG_ENABLE_CHECKSUM
+
+#include "../../include/mipi_syst/crc32.h"
+#include "../../src/mipi_syst_crc32.c"
+
+/* Test input data for crc calculation tests. The last value shown
+* in the array name is the reference crc32C.
+*/
+static mipi_syst_u8 crc_input_u8_0xB5D83007[] = {
+ '0', '1', '2', '3', '4', '5', '6', '7',
+ '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'
+};
+
+static mipi_syst_u16 crc_input_u16_0xAA2741E5[] = {
+ 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9, 0x10,
+ 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x20
+};
+
+static mipi_syst_u32 crc_input_u32_0xCDBDE657[] = {
+ 0x00000000, 0xABCDEF12, 0x12345678, 0xFADEDBAD, 0xAA55AA55
+};
+
+static mipi_syst_u64 crc_input_u64_0x61A6DF0B[] = {
+ 0x1122334455667788ull, 0x1122334455667788ull, 0xABCDEFAABBCCDDEEull,
+ 0x0000000000000000ull, 0xFFFFFFFFFFFFFFFFull, 0x0101010101010101ull
+};
+
+class MipiSysTFixtureCrc32 : public testing::Test
+{
+public:
+ void SetUp() {
+ crc = MIPI_SYST_CRC32_INIT(0);
+ }
+
+ void TearDown(){
+ }
+
+ mipi_syst_u32 crc32_byte_array( mipi_syst_u8 *pData, mipi_syst_u32 bytes)
+ {
+ while (bytes--) {
+ MIPI_SYST_CRC32_U8(crc, *pData++);
+ }
+ return MIPI_SYST_CRC32_GET(crc);
+ }
+
+ mipi_syst_u32 crc32_word_array( mipi_syst_u16 *pData, mipi_syst_u32 words)
+ {
+ while (words--) {
+ MIPI_SYST_CRC32_U16(crc, *pData++);
+ }
+ return MIPI_SYST_CRC32_GET(crc);
+ }
+
+ mipi_syst_u32 crc32_dword_array( mipi_syst_u32 *pData, mipi_syst_u32 dwords)
+ {
+ while (dwords--) {
+ MIPI_SYST_CRC32_U32(crc, *pData++);
+ }
+ return MIPI_SYST_CRC32_GET(crc);
+ }
+
+ mipi_syst_u32 crc32_qword_array( mipi_syst_u64 *pData, mipi_syst_u32 qwords)
+ {
+ while (qwords--) {
+ MIPI_SYST_CRC32_U64(crc, *pData++);
+ }
+ return MIPI_SYST_CRC32_GET(crc);
+ }
+protected:
+ mipi_syst_u32 crc;
+};
+
+/* Test structure sizes used in binary output processing
+*/
+TEST_F(MipiSysTFixtureCrc32, syst_crc32_bytes)
+{
+ EXPECT_EQ(0xB5D83007 ,crc32_byte_array(crc_input_u8_0xB5D83007 ,
+ sizeof(crc_input_u8_0xB5D83007))) << "MIPI_SYST_CRC32_U8() test";
+}
+
+TEST_F(MipiSysTFixtureCrc32, syst_crc32_halfwords)
+{
+ EXPECT_EQ(0xAA2741E5,crc32_word_array((mipi_syst_u16*)crc_input_u16_0xAA2741E5,
+ sizeof(crc_input_u16_0xAA2741E5) / sizeof(mipi_syst_u16))) << "MIPI_SYST_CRC32_U16() test";
+}
+
+TEST_F(MipiSysTFixtureCrc32, syst_crc32_dwords)
+{
+ EXPECT_EQ(0xCDBDE657,crc32_dword_array((mipi_syst_u32*)crc_input_u32_0xCDBDE657,
+ sizeof(crc_input_u32_0xCDBDE657) / sizeof(mipi_syst_u32))) << "MIPI_SYST_CRC32_U32() test";
+}
+
+TEST_F(MipiSysTFixtureCrc32, syst_crc32_quadwords)
+{
+ EXPECT_EQ(0x61A6DF0B,crc32_qword_array((mipi_syst_u64*)crc_input_u64_0x61A6DF0B,
+ sizeof(crc_input_u64_0x61A6DF0B) / sizeof(mipi_syst_u64))) << "MIPI_SYST_CRC32_U64() test";
+}
+
+#endif \ No newline at end of file
diff --git a/library/test/unit/mipi_syst_disable_test.cpp b/library/test/unit/mipi_syst_disable_test.cpp
new file mode 100644
index 0000000..b33afdc
--- /dev/null
+++ b/library/test/unit/mipi_syst_disable_test.cpp
@@ -0,0 +1,61 @@
+/*
+Copyright (c) 2018, MIPI Alliance, Inc.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+* Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+* Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Contributors:
+ * Norbert Schulz (Intel Corporation) - Initial API and implementation
+ */
+
+#define MIPI_SYST_DISABLE_ALL
+
+// Need to rename MipiSysTFixtureBase here as we otherwise link in versions
+// of this class with different SYS-T defines. It then becomes unpredictable
+// which one is used during linking.
+//
+#define MipiSysTFixtureBase MipiSysTFixtureBaseDisabled
+
+#include "mipi_syst_gtest.h"
+
+TEST_F(MipiSysTFixtureBase, syst_disabled_test)
+{
+ struct mipi_syst_handle* ph;
+
+ ph = MIPI_SYST_ALLOC_HANDLE((void*)0xC0FFEBABE );
+ EXPECT_EQ((struct mipi_syst_handle*)0, MIPI_SYST_ALLOC_HANDLE(xx));
+
+ MIPI_SYST_SET_HANDLE_MODULE_UNIT(ph, 1,2);
+
+ MIPI_SYST_DEBUG(a, xx, yy , zz);
+
+ MIPI_SYST_DELETE_HANDLE(ph);
+} \ No newline at end of file
diff --git a/library/test/unit/mipi_syst_gtest.h b/library/test/unit/mipi_syst_gtest.h
new file mode 100644
index 0000000..0268711
--- /dev/null
+++ b/library/test/unit/mipi_syst_gtest.h
@@ -0,0 +1,249 @@
+/*
+Copyright (c) 2018, MIPI Alliance, Inc.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+* Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+* Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Contributors:
+ * Norbert Schulz (Intel Corporation) - Initial API and implementation
+ */
+
+#include <gtest/gtest.h>
+#include <string>
+
+#define MIPI_SYST_UNIT_TEST
+
+#include "mipi_syst.h"
+
+/* hard code compiler dependend standard defines to fixed values for
+* unit test support. Regression tests expect to see these values.
+*/
+#undef MIPI_SYST_FUNCTION_NAME
+#define MIPI_SYST_FUNCTION_NAME "0123456789"
+
+#undef MIPI_SYST_LINE
+#define MIPI_SYST_LINE 0x12345678
+
+#undef MIPI_SYST_FILE
+#define MIPI_SYST_FILE "unittest.c"
+
+
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+#define mipi_syst_return_addr() (void*)0x12345678aabbccdd
+#else
+#define mipi_syst_return_addr() (void*)0x12345678
+#endif
+
+
+/* replace output handlers with unit test versions
+*/
+#undef MIPI_SYST_OUTPUT_D32MTS
+#undef MIPI_SYST_OUTPUT_D64MTS
+#undef MIPI_SYST_OUTPUT_D32TS
+#undef MIPI_SYST_OUTPUT_D8
+#undef MIPI_SYST_OUTPUT_D16
+#undef MIPI_SYST_OUTPUT_D32
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_IO)
+#undef MIPI_SYST_OUTPUT_D64
+#endif
+#undef MIPI_SYST_OUTPUT_FLAG
+
+#if defined(MIPI_SYST_PCFG_ENABLE_PLATFORM_STATE_DATA)
+#define MIPI_SYST_OUTPUT_D32MTS(syst_handle, data) \
+ MipiSysTFixtureOutput::d32mts((syst_handle), (data))
+#define MIPI_SYST_OUTPUT_D64MTS(syst_handle, data) \
+ MipiSysTFixtureOutput::d64mts((syst_handle), (data))
+#define MIPI_SYST_OUTPUT_D32TS(syst_handle, data) \
+ MipiSysTFixtureOutput::d32ts((syst_handle), (data))
+#define MIPI_SYST_OUTPUT_D8(syst_handle, data) \
+ MipiSysTFixtureOutput::d8((syst_handle), (data))
+#define MIPI_SYST_OUTPUT_D16(syst_handle, data) \
+ MipiSysTFixtureOutput::d16((syst_handle), (data))
+#define MIPI_SYST_OUTPUT_D32(syst_handle, data) \
+ MipiSysTFixtureOutput::d32((syst_handle), (data))
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_IO)
+#define MIPI_SYST_OUTPUT_D64(syst_handle, data) \
+ MipiSysTFixtureOutput::d64((syst_handle), (data))
+#endif
+#define MIPI_SYST_OUTPUT_FLAG(syst_handle) \
+ MipiSysTFixtureOutput::flag((syst_handle))
+#else
+#define MIPI_SYST_OUTPUT_D32MTS(syst_handle, data)
+#define MIPI_SYST_OUTPUT_D32TS(syst_handle, data)
+#define MIPI_SYST_OUTPUT_D8(syst_handle, data)
+#define MIPI_SYST_OUTPUT_D16(syst_handle, data)
+#define MIPI_SYST_OUTPUT_D32(syst_handle, data)
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_IO)
+#define MIPI_SYST_OUTPUT_D64(syst_handle, data)
+#endif
+#define MIPI_SYST_OUTPUT_FLAG(syst_handle)
+#endif // MIPI_SYST_PCFG_ENABLE_PLATFORM_STATE_DATA
+
+class MipiSysTFixtureBase : public testing::Test
+{
+public:
+ void SetUp() {
+ MIPI_SYST_INIT(mipi_syst_platform_init, (void*)0);}
+
+ void TearDown(){
+ MIPI_SYST_SHUTDOWN(mipi_syst_platform_destroy);
+ }
+
+ static struct mipi_syst_origin origin;
+};
+
+class MipiSysTFixtureOutput : public MipiSysTFixtureBase
+{
+public:
+ void SetUp() {
+ MipiSysTFixtureBase::SetUp();
+
+ ph = MIPI_SYST_INIT_HANDLE(&sh, &origin);
+ MIPI_SYST_SET_HANDLE_MODULE_UNIT(ph, 1,2);
+ MIPI_SYST_ENABLE_HANDLE_LENGTH(ph, 1);
+
+ sstr.str("");
+ }
+
+ void TearDown(){
+ MIPI_SYST_DELETE_HANDLE(ph);
+
+ MipiSysTFixtureBase::TearDown();
+ }
+
+public:
+ struct mipi_syst_handle sh;
+ struct mipi_syst_handle* ph;
+
+ static std::stringstream sstr;
+ std::string x4m;
+
+ /* unit test IO driver function to print the access output into local string */
+ static void d64(struct mipi_syst_handle* systh, mipi_syst_u64 v)
+ { sstr << "<D64>"<< std::hex << std::setfill('0') << std::setw(16) << v; }
+ static void d32(struct mipi_syst_handle* systh, mipi_syst_u32 v)
+ { sstr << "<D32>"<< std::hex << std::setfill('0') << std::setw(8) << v; }
+ static void d16(struct mipi_syst_handle* systh, mipi_syst_u16 v)
+ { sstr << "<D16>"<< std::hex << std::setfill('0') << std::setw(4) << v; }
+ static void d8(struct mipi_syst_handle* systh, mipi_syst_u8 v)
+ { sstr << "<D8>"<< std::hex << std::setfill('0') << std::setw(2) << (mipi_syst_u16)v; }
+ static void d32ts(struct mipi_syst_handle* systh, mipi_syst_u32 v)
+ {
+ sstr << "<D32TS>"<< std::hex << std::setfill('0') << std::setw(8) << v;
+ union {
+ mipi_syst_u32 val;
+ struct mipi_syst_msg_tag tag;
+ }u = { v };
+
+ sstr << "[typ=" << u.tag.et_type << ":" << u.tag.et_subtype
+ << " mu=" << (u.tag.et_modunit >> 4) << ":" << (u.tag.et_modunit & 0xF)
+ << " sev=" << u.tag.et_severity;
+
+ if (u.tag.et_res7) sstr << " res7";
+ if (u.tag.et_location) sstr << " loc";
+ if (u.tag.et_res30) sstr << " res30";
+ if (u.tag.et_length) sstr << " len";
+ if (u.tag.et_chksum) sstr << " chk";
+ sstr << "]";
+ }
+ static void d32mts(struct mipi_syst_handle* systh, mipi_syst_u32 v)
+ { sstr << "<D32MTS>"<< std::hex << std::setfill('0') << std::setw(8) << v; }
+ static void d64mts(struct mipi_syst_handle* systh, mipi_syst_u64 v)
+ { sstr << "<D64MTS>"<< std::hex << std::setfill('0') << std::setw(16) << v; }
+ static void flag(struct mipi_syst_handle* systh)
+ { sstr << "<FLAG>"; }
+
+ /* output string transformation to match platform properties */
+ const char* xform(const char* input)
+ {
+ size_t pos(0);
+ x4m=input;
+#if !defined(MIPI_SYST_PCFG_ENABLE_64BIT_IO)
+ pos = std::string::npos;
+ while((pos=x4m.find("<D64>")) != std::string::npos){
+ std::string val = x4m.substr(pos+5,16);
+ std::string upperVal = val.substr(8,8);
+ std::string lowerVal = val.substr(0,8);
+ std::string replacement = "<D32>";
+ replacement += upperVal;
+ replacement += "<D32>";
+ replacement += lowerVal;
+ x4m.erase(pos,21);
+ x4m.insert(pos,replacement);
+ }
+#endif
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ /* need to adapt 32bit catalog type for 64bit packing settings */
+ pos = x4m.find("[typ=3:1 ");
+ if (pos != std::string::npos) {
+ x4m.replace(pos, 9, std::string("[typ=3:5 "));
+ x4m.replace(0, 9, std::string("<D32TS>05"));
+ }
+
+ /* need to adapt 64bit catalog type for 64bit packing settings */
+ pos = x4m.find("[typ=3:2 ");
+ if (pos != std::string::npos) {
+ x4m.replace(pos, 9, std::string("[typ=3:6 "));
+ x4m.replace(0, 9, std::string("<D32TS>06"));
+ }
+
+ pos = x4m.find("[typ=2:b ");
+ if (pos != std::string::npos) {
+ x4m.replace(pos, 9, std::string("[typ=2:c "));
+ x4m.replace(0, 9, std::string("<D32TS>0c"));
+ }
+#endif
+#if !defined(MIPI_SYST_PCFG_LENGTH_FIELD)
+ /* take out len parts from comparsion string */
+ pos = x4m.find(" len");
+ if (pos != std::string::npos) {
+ x4m.replace(pos, 4, "");
+
+ std::stringstream sstr(x4m.substr(7, 8));
+ mipi_syst_u32 tag;
+ sstr >> std::hex >> tag;
+ tag &= ~(1 << 9);
+ sstr.str(std::string());
+ sstr.clear();
+ sstr << std::hex << std::setfill('0') << std::setw(8)
+ << std::noshowbase << tag;
+ x4m.replace(7, 8, sstr.str());
+
+ pos = x4m.find("<D16>");
+ if (pos != std::string::npos) {
+ x4m.replace(pos, 9, "");
+ }
+ }
+#endif
+
+ return x4m.c_str();
+ }
+};
diff --git a/library/test/unit/mipi_syst_gtest_main.cpp b/library/test/unit/mipi_syst_gtest_main.cpp
new file mode 100644
index 0000000..f709a91
--- /dev/null
+++ b/library/test/unit/mipi_syst_gtest_main.cpp
@@ -0,0 +1,46 @@
+/*
+Copyright (c) 2018, MIPI Alliance, Inc.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+* Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+* Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Contributors:
+ * Norbert Schulz (Intel Corporation) - Initial API and implementation
+ */
+
+#include "gtest/gtest.h"
+
+int main(int argc, char * argv[])
+{
+ ::testing::InitGoogleTest(&argc, argv);
+
+ return RUN_ALL_TESTS();
+} \ No newline at end of file
diff --git a/library/test/unit/mipi_syst_init_test.cpp b/library/test/unit/mipi_syst_init_test.cpp
new file mode 100644
index 0000000..16abc5e
--- /dev/null
+++ b/library/test/unit/mipi_syst_init_test.cpp
@@ -0,0 +1,432 @@
+/*
+Copyright (c) 2018, MIPI Alliance, Inc.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+* Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+* Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Contributors:
+ * Norbert Schulz (Intel Corporation) - Initial API and implementation
+ */
+
+#include "mipi_syst_gtest.h"
+
+#include "../../src/mipi_syst_init.c"
+#include "mipi_syst_platform.c"
+#include "../../src/mipi_syst_writer.c"
+
+std::stringstream MipiSysTFixtureOutput::sstr;
+
+struct mipi_syst_origin MipiSysTFixtureBase::origin = MIPI_SYST_GEN_ORIGIN_MODULE(1, 2);
+
+/* Test structure sizes used in binary output processing
+*/
+TEST_F(MipiSysTFixtureBase, syst_structure_sizes)
+{
+ EXPECT_EQ(1, sizeof(mipi_syst_u8)) << "mipi_syst_u8 not 1 byte long";
+ EXPECT_EQ(2, sizeof(mipi_syst_u16)) << "mipi_syst_u16 not 2 byte long";
+ EXPECT_EQ(4, sizeof(mipi_syst_u32)) << "mipi_syst_u32 not 4 byte long";
+ EXPECT_EQ(8, sizeof(mipi_syst_u64)) << "mipi_syst_u64 not 8 byte long";
+
+ EXPECT_EQ(1, sizeof(mipi_syst_s8)) << "mipi_syst_s8 not 1 byte long";
+ EXPECT_EQ(2, sizeof(mipi_syst_s16)) << "mipi_syst_s16 not 2 byte long";
+ EXPECT_EQ(4, sizeof(mipi_syst_s32)) << "mipi_syst_s32 not 4 byte long";
+ EXPECT_EQ(8, sizeof(mipi_syst_s64)) << "mipi_syst_s64 not 8 byte long";
+
+ EXPECT_EQ(16, sizeof(struct mipi_syst_guid)) << "struct mipi_syst_guid not 16 byte long";
+
+ EXPECT_EQ(4, sizeof(struct mipi_syst_msg_tag)) << "struct mipi_syst_msg_tag must be 32bit";
+ EXPECT_EQ(4, sizeof(struct mipi_syst_scatter_prog )) << "syst_scatter_prog_t must be 32bit";
+ EXPECT_EQ(4, sizeof(union mipi_syst_msglocation32)) << "mipi_syst_msglocation32 must be 32bit";
+ EXPECT_EQ(8, sizeof(union mipi_syst_msglocation64)) << "mipi_syst_msglocation64 must be 64bit";
+}
+
+TEST_F(MipiSysTFixtureBase, syst_little_endian_swap)
+{
+ union { mipi_syst_u16 v; mipi_syst_u8 b[2]; } v16 = { MIPI_SYST_HTOLE16(0x1234) };
+ EXPECT_EQ(v16.b[0], 0x34);
+ EXPECT_EQ(v16.b[1], 0x12);
+
+ union { mipi_syst_u32 v; mipi_syst_u8 b[4]; } v32 = { MIPI_SYST_HTOLE32(0x12345678) };
+ EXPECT_EQ(v32.b[0], 0x78);
+ EXPECT_EQ(v32.b[1], 0x56);
+ EXPECT_EQ(v32.b[2], 0x34);
+ EXPECT_EQ(v32.b[3], 0x12);
+
+ union { mipi_syst_u64 v; mipi_syst_u8 b[8]; } v64 = { MIPI_SYST_HTOLE64(0x12345678AABBCCDDull) };
+ EXPECT_EQ(v64.b[0], 0xDD);
+ EXPECT_EQ(v64.b[1], 0xCC);
+ EXPECT_EQ(v64.b[2], 0xBB);
+ EXPECT_EQ(v64.b[3], 0xAA);
+ EXPECT_EQ(v64.b[4], 0x78);
+ EXPECT_EQ(v64.b[5], 0x56);
+ EXPECT_EQ(v64.b[6], 0x34);
+ EXPECT_EQ(v64.b[7], 0x12);
+}
+
+
+/* test header bitfield alignment*/
+TEST_F(MipiSysTFixtureBase, syst_header_bit_alignment)
+{
+ union {
+ mipi_syst_msg_tag tag;
+ mipi_syst_u32 val;
+ mipi_syst_u8 b[4];
+ } native, little;
+
+ little.val = native.val = 0;
+ native.tag.et_type = 0xF;
+ little.b[0] = 0xF;
+ EXPECT_EQ(little.val, MIPI_SYST_HTOLE32(native.val)) << "mipi_syst_msg_tag bit alignment wrong (type)";
+
+ little.val = native.val = 0;
+ native.tag.et_severity = 0x7;
+ little.b[0] = 0x7<< 4;
+ EXPECT_EQ(little.val, MIPI_SYST_HTOLE32(native.val)) << "mipi_syst_msg_tag bit alignment wrong (severity)";
+
+ little.val = native.val = 0;
+ native.tag.et_res7 = 1;
+ little.b[0] = 0x80;
+ EXPECT_EQ(little.val, MIPI_SYST_HTOLE32(native.val)) << "mipi_syst_msg_tag bit alignment wrong (res7)";
+
+ little.val = native.val = 0;
+ native.tag.et_location = 1;
+ little.b[1] = 1;
+ EXPECT_EQ(little.val, MIPI_SYST_HTOLE32(native.val)) << "mipi_syst_msg_tag bit alignment wrong (location)";
+
+ little.val = native.val = 0;
+ native.tag.et_length = 1;
+ little.b[1] = 1<<1;
+ EXPECT_EQ(little.val, MIPI_SYST_HTOLE32(native.val)) << "mipi_syst_msg_tag bit alignment wrong (length)";
+
+ little.val = native.val = 0;
+ native.tag.et_chksum = 1;
+ little.b[1] = 1<<2;
+ EXPECT_EQ(little.val, MIPI_SYST_HTOLE32(native.val)) << "mipi_syst_msg_tag bit alignment wrong (chksum)";
+
+ little.val = native.val = 0;
+ native.tag.et_timestamp = 1;
+ little.b[1] = 1<<3;
+ EXPECT_EQ(little.val, MIPI_SYST_HTOLE32(native.val)) << "mipi_syst_msg_tag bit alignment wrong (timestamp)";
+
+ little.val = native.val = 0;
+ native.tag.et_modunit = 0x7FF;
+ little.b[1] = 0xF << 4;
+ little.b[2] = 0x7F;
+ EXPECT_EQ(little.val, MIPI_SYST_HTOLE32(native.val)) << "mipi_syst_msg_tag bit alignment wrong (origin)";
+
+ little.val = native.val = 0;
+ native.tag.et_guid = 1;
+ little.b[2] = 0x80;
+ EXPECT_EQ(little.val, MIPI_SYST_HTOLE32(native.val)) << "mipi_syst_msg_tag bit alignment wrong (guid)";
+
+ little.val = native.val = 0;
+ native.tag.et_subtype = 0x3F;
+ little.b[3] = 0x3F;
+ EXPECT_EQ(little.val, MIPI_SYST_HTOLE32(native.val)) << "mipi_syst_msg_tag bit alignment wrong (subtype)";
+
+ little.val = native.val = 0;
+ native.tag.et_res30 = 1;
+ little.b[3] = 0x40;
+ EXPECT_EQ(little.val, MIPI_SYST_HTOLE32(native.val)) << "mipi_syst_msg_tag bit alignment wrong (res30)";
+
+ little.val = native.val = 0;
+ native.tag.et_res31 = 1;
+ little.b[3] = 0x80;
+ EXPECT_EQ(little.val, MIPI_SYST_HTOLE32(native.val)) << "mipi_syst_msg_tag bit alignment wrong (res31)";
+}
+
+/* Check initialization of global state
+*/
+TEST_F(MipiSysTFixtureBase, syst_global_state_creation)
+{
+ struct mipi_syst_header* ph = &syst_hdr;
+
+ EXPECT_EQ(ph->systh_version, MIPI_SYST_VERSION_CODE) << "syst header has unexpected version";
+#if defined(MIPI_SYST_PCFG_ENABLE_PLATFORM_HANDLE_DATA)
+ EXPECT_EQ(ph->systh_inith, &platform_handle_init) << "syst header handle init hook wrong";
+ EXPECT_EQ(ph->systh_releaseh, &platform_handle_release) << "syst header handle release hook wrong";
+#endif
+#if defined(MIPI_SYST_PCFG_ENABLE_DEFAULT_SCATTER_WRITE)
+ EXPECT_EQ(ph->systh_writer, &mipi_syst_scatter_write) << "syst header writer function wrong ";
+#endif
+}
+
+TEST_F(MipiSysTFixtureBase, syst_custom_state_creation)
+{
+ struct mipi_syst_header custom_hdr;
+
+ MIPI_SYST_INIT_STATE(&custom_hdr, mipi_syst_platform_init, (void*)0);
+
+ EXPECT_EQ(custom_hdr.systh_version, MIPI_SYST_VERSION_CODE) << "syst header has unexpected version";
+#if defined(MIPI_SYST_PCFG_ENABLE_PLATFORM_HANDLE_DATA)
+ EXPECT_EQ(custom_hdr.systh_inith, &platform_handle_init) << "syst header handle init hook wrong";
+ EXPECT_EQ(custom_hdr.systh_releaseh, &platform_handle_release) << "syst header handle release hook wrong";
+#endif
+#if defined(MIPI_SYST_PCFG_ENABLE_DEFAULT_SCATTER_WRITE)
+ EXPECT_EQ(custom_hdr.systh_writer, &mipi_syst_scatter_write) << "syst header writer function wrong ";
+#endif
+
+ MIPI_SYST_SHUTDOWN_STATE(&custom_hdr, mipi_syst_platform_destroy);
+}
+
+/* Check initialization of handle state
+*/
+TEST_F(MipiSysTFixtureBase, syst_handle_static_creation)
+{
+ struct mipi_syst_handle sh;
+ struct mipi_syst_handle* ph;
+
+ ph = MIPI_SYST_INIT_HANDLE(&sh, NULL);
+ MIPI_SYST_SET_HANDLE_MODULE_UNIT(ph, 1,2);
+
+ ASSERT_EQ(ph, &sh) << "static allocation did not return passed pointer";
+
+ EXPECT_EQ(&syst_hdr, ph->systh_header) << "header not set in handle";
+ EXPECT_EQ(0, ph->systh_flags.shf_alloc) << "handle indicates allocation, but is static";
+ EXPECT_EQ(0x012, ph->systh_tag.et_modunit) << "module id not set in handle";
+
+ MIPI_SYST_DELETE_HANDLE(ph);
+}
+
+TEST_F(MipiSysTFixtureBase, syst_custom_handle_static_creation)
+{
+ struct mipi_syst_handle sh;
+ struct mipi_syst_handle* ph;
+
+ struct mipi_syst_header custom_hdr;
+ MIPI_SYST_INIT_STATE(&custom_hdr, mipi_syst_platform_init, (void*)0);
+
+ ph = MIPI_SYST_INIT_HANDLE_STATE(&custom_hdr, &sh, &origin);
+
+ ASSERT_EQ(ph, &sh) << "static allocation did not return passed pointer";
+
+ EXPECT_EQ(&custom_hdr, ph->systh_header) << "custom header not set in handle";
+ EXPECT_EQ(0, ph->systh_flags.shf_alloc) << "handle indicates allocation, but is static";
+#if defined(MIPI_SYST_PCFG_ENABLE_ORIGIN_GUID)
+ EXPECT_EQ(0x012, ph->systh_tag.et_modunit) << "origin id not set in handle";
+#endif
+ MIPI_SYST_DELETE_HANDLE(ph);
+ MIPI_SYST_SHUTDOWN_STATE(&custom_hdr, mipi_syst_platform_destroy);
+}
+
+#if defined(MIPI_SYST_PCFG_ENABLE_ORIGIN_GUID)
+TEST_F(MipiSysTFixtureBase, syst_test_guid_origin_handle_creation)
+{
+ struct mipi_syst_handle sh;
+ struct mipi_syst_handle* ph;
+ struct mipi_syst_origin guid_origin =
+ MIPI_SYST_GEN_ORIGIN_GUID(
+ 0x494E5443, 0xA2AE, 0x4C70, 0xABB5, 0xD1A79E9CEA35,
+ 0x7FF);
+
+ ph = MIPI_SYST_INIT_HANDLE(&sh, &guid_origin);
+
+ ASSERT_EQ(ph, &sh) << "static allocation did not return passed pointer";
+
+ EXPECT_EQ(&syst_hdr, ph->systh_header) << "header not set in handle";
+ EXPECT_EQ(0, ph->systh_flags.shf_alloc) << "handle indicates allocation, but is static";
+ EXPECT_EQ(0x7FF, ph->systh_tag.et_modunit) << "module id not set in handle";
+ EXPECT_EQ(ph->systh_guid.u.ll[0], MIPI_SYST_HTOLE64(guid_origin.guid.u.ll[0]));
+ EXPECT_EQ(ph->systh_guid.u.ll[1], MIPI_SYST_HTOLE64(guid_origin.guid.u.ll[1]));
+ MIPI_SYST_DELETE_HANDLE(ph);
+}
+#endif
+
+#if defined(MIPI_SYST_PCFG_ENABLE_HEAP_MEMORY)
+TEST_F(MipiSysTFixtureBase, syst_handle_dynamic_creation)
+{
+ struct mipi_syst_handle* ph;
+
+ ph = MIPI_SYST_ALLOC_HANDLE(NULL);
+ MIPI_SYST_SET_HANDLE_MODULE_UNIT(ph, 1,2);
+
+ ASSERT_NE(ph, (struct mipi_syst_handle*)0) << "allocation failed";
+
+ EXPECT_EQ(&syst_hdr, ph->systh_header) << "header not set in handle";
+ EXPECT_EQ(1, ph->systh_flags.shf_alloc) << "handle indicates static, but is allocated";
+ EXPECT_EQ(0x012, ph->systh_tag.et_modunit) << "origin id not set in handle";
+
+ MIPI_SYST_DELETE_HANDLE(ph);
+}
+
+TEST_F(MipiSysTFixtureBase, syst_custom_handle_dynamic_creation)
+{
+ struct mipi_syst_handle* ph;
+ struct mipi_syst_header custom_hdr;
+ MIPI_SYST_INIT_STATE(&custom_hdr, mipi_syst_platform_init, (void*)0);
+
+ ph = MIPI_SYST_ALLOC_HANDLE_STATE(&custom_hdr, NULL);
+ MIPI_SYST_SET_HANDLE_MODULE_UNIT(ph, 1,2);
+
+ ASSERT_NE(ph, (struct mipi_syst_handle*)0) << "allocation failed";
+
+ EXPECT_EQ(&custom_hdr, ph->systh_header) << "custom header not set in handle";
+ EXPECT_EQ(1, ph->systh_flags.shf_alloc) << "handle indicates static, but is allocated";
+ EXPECT_EQ(0x012, ph->systh_tag.et_modunit) << "origin id not set in handle";
+
+ MIPI_SYST_DELETE_HANDLE(ph);
+}
+#endif
+
+TEST_F(MipiSysTFixtureBase, syst_message_flags)
+{
+ struct mipi_syst_handle* ph;
+ struct mipi_syst_header custom_hdr;
+ MIPI_SYST_INIT_STATE(&custom_hdr, mipi_syst_platform_init, (void*)0);
+
+ ph = MIPI_SYST_ALLOC_HANDLE_STATE(&custom_hdr, &origin);
+
+ ASSERT_NE(ph, (struct mipi_syst_handle*)0) << "allocation failed";
+
+
+#if defined(MIPI_SYST_PCFG_ENABLE_CHECKSUM)
+ EXPECT_EQ(0,MIPI_SYST_GET_HANDLE_CHECKSUM(ph));
+
+ MIPI_SYST_ENABLE_HANDLE_CHECKSUM(ph, 1);
+ EXPECT_NE(0, MIPI_SYST_GET_HANDLE_CHECKSUM(ph));
+
+ MIPI_SYST_ENABLE_HANDLE_CHECKSUM(ph, 0);
+ EXPECT_EQ(0, MIPI_SYST_GET_HANDLE_CHECKSUM(ph));
+#endif
+#if defined(MIPI_SYST_PCFG_ENABLE_TIMESTAMP)
+ EXPECT_EQ(0,MIPI_SYST_GET_HANDLE_TIMESTAMP(ph));
+
+ MIPI_SYST_ENABLE_HANDLE_TIMESTAMP(ph, 1);
+ EXPECT_NE(0, MIPI_SYST_GET_HANDLE_TIMESTAMP(ph));
+
+ MIPI_SYST_ENABLE_HANDLE_TIMESTAMP(ph, 0);
+ EXPECT_EQ(0, MIPI_SYST_GET_HANDLE_TIMESTAMP(ph));
+#endif
+ MIPI_SYST_DELETE_HANDLE(ph);
+}
+
+
+TEST_F(MipiSysTFixtureBase, syst_version_macro)
+{
+ mipi_syst_u32 version = (MIPI_SYST_VERSION_MAJOR<<16) |(MIPI_SYST_VERSION_MINOR<<8)|MIPI_SYST_VERSION_PATCH;
+ std::stringstream sstr;
+ sstr << MIPI_SYST_VERSION_MAJOR << "." << MIPI_SYST_VERSION_MINOR << "." << MIPI_SYST_VERSION_PATCH;
+ std::string verstr(sstr.str());
+
+ EXPECT_STREQ(verstr.c_str(), MIPI_SYST_VERSION_STRING);
+
+ EXPECT_EQ(MIPI_SYST_VERSION_CODE, version) << "unexpected version code";
+
+
+ ASSERT_LT(MIPI_SYST_MAKE_VERSION_CODE(1,2,3),
+ MIPI_SYST_MAKE_VERSION_CODE(2,0,0));
+ ASSERT_LT(MIPI_SYST_MAKE_VERSION_CODE(1,2,3),
+ MIPI_SYST_MAKE_VERSION_CODE(1,3,3));
+ ASSERT_LT(MIPI_SYST_MAKE_VERSION_CODE(1,2,3),
+ MIPI_SYST_MAKE_VERSION_CODE(1,2,4));
+
+ ASSERT_GT(MIPI_SYST_MAKE_VERSION_CODE(1,2,3),
+ MIPI_SYST_MAKE_VERSION_CODE(0,2,3));
+ ASSERT_GT(MIPI_SYST_MAKE_VERSION_CODE(1,2,3),
+ MIPI_SYST_MAKE_VERSION_CODE(1,1,3));
+ ASSERT_GT(MIPI_SYST_MAKE_VERSION_CODE(1,2,3),
+ MIPI_SYST_MAKE_VERSION_CODE(1,2,2));
+}
+
+TEST_F(MipiSysTFixtureBase, syst_handle_nullptr)
+{
+ MIPI_SYST_INIT_HANDLE(0,NULL);
+ MIPI_SYST_DELETE_HANDLE(0);
+
+ EXPECT_EQ(0,0); // only reached if above calls don't crash
+}
+
+// {1DBBA102-DFFD-4A05-8CED-F744046715ED}
+
+struct mipi_syst_guid guid1=
+{{0x1d, 0xbb, 0xa1, 0x02, 0xdf, 0xfd, 0x4a, 0x05, 0x8c, 0xed, 0xf7, 0x44, 0x4, 0x67, 0x15, 0xed} };
+
+struct mipi_syst_guid guid2 = MIPI_SYST_GEN_GUID(0x1DBBA102, 0xDFFD, 0x4A05, 0x8CED, 0xF744046715ED);
+
+TEST_F(MipiSysTFixtureBase, syst_guid)
+{
+ union {
+ struct mipi_syst_guid g; mipi_syst_u64 ll[2];
+ } v;
+
+ v.ll[0] = MIPI_SYST_HTOLE64(guid2.u.ll[0]);
+ v.ll[1] = MIPI_SYST_HTOLE64(guid2.u.ll[1]);
+
+ EXPECT_EQ(guid1.u.b[0], guid2.u.b[0]);
+ EXPECT_EQ(guid1.u.b[1], guid2.u.b[1]);
+ EXPECT_EQ(guid1.u.b[2], guid2.u.b[2]);
+ EXPECT_EQ(guid1.u.b[3], guid2.u.b[3]);
+ EXPECT_EQ(guid1.u.b[4], guid2.u.b[4]);
+ EXPECT_EQ(guid1.u.b[5], guid2.u.b[5]);
+ EXPECT_EQ(guid1.u.b[6], guid2.u.b[6]);
+ EXPECT_EQ(guid1.u.b[7], guid2.u.b[7]);
+ EXPECT_EQ(guid1.u.b[8], guid2.u.b[8]);
+ EXPECT_EQ(guid1.u.b[9], guid2.u.b[9]);
+ EXPECT_EQ(guid1.u.b[10], guid2.u.b[10]);
+ EXPECT_EQ(guid1.u.b[11], guid2.u.b[11]);
+ EXPECT_EQ(guid1.u.b[12], guid2.u.b[12]);
+ EXPECT_EQ(guid1.u.b[13], guid2.u.b[13]);
+ EXPECT_EQ(guid1.u.b[14], guid2.u.b[14]);
+ EXPECT_EQ(guid1.u.b[15], guid2.u.b[15]);
+}
+
+#define LONG_STR \
+"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" \
+"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" \
+"ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc" \
+"ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd"
+
+TEST_F(MipiSysTFixtureBase, syst_hash)
+{
+ mipi_syst_u32 val1, val2, val3;
+
+ val1 = _MIPI_SYST_HASH_AT_CPP_TIME("", 0);
+ val2 = _MIPI_SYST_HASH_AT_RUN_TIME("", 0);
+ EXPECT_EQ(val1, val2);
+
+ EXPECT_EQ(0x0, _MIPI_SYST_HASH_AT_RUN_TIME("", 0));
+ EXPECT_EQ(0x19ae84c4, _MIPI_SYST_HASH_AT_RUN_TIME("hello world", 0));
+
+ val1 = _MIPI_SYST_HASH_AT_CPP_TIME("hello world", 0);
+ val2 = _MIPI_SYST_HASH_AT_RUN_TIME("hello world", 0);
+ EXPECT_EQ(val1, val2);
+
+ val1 = _MIPI_SYST_HASH_AT_CPP_TIME(LONG_STR, 0);
+ val2 = _MIPI_SYST_HASH_AT_RUN_TIME(LONG_STR, 0);
+ EXPECT_EQ(val1, val2);
+
+ val1 = _MIPI_SYST_HASH_AT_CPP_TIME(LONG_STR, 0);
+ val2 = _MIPI_SYST_HASH_AT_CPP_TIME(LONG_STR, 1);
+ val3 = _MIPI_SYST_HASH_AT_CPP_TIME(LONG_STR, 3);
+ EXPECT_NE(val1, val2);
+ EXPECT_NE(val1, val3);
+ EXPECT_NE(val2, val3);
+} \ No newline at end of file
diff --git a/library/test/unit/mipi_syst_printf_test.cpp b/library/test/unit/mipi_syst_printf_test.cpp
new file mode 100644
index 0000000..d9c19bd
--- /dev/null
+++ b/library/test/unit/mipi_syst_printf_test.cpp
@@ -0,0 +1,709 @@
+/*
+Copyright (c) 2018, MIPI Alliance, Inc.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+* Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+* Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Contributors:
+ * Norbert Schulz (Intel Corporation) - Initial API and implementation
+ */
+
+#include <string>
+#include <stdint.h>
+#include "mipi_syst_gtest.h"
+
+#if defined(MIPI_SYST_PCFG_ENABLE_PLATFORM_STATE_DATA) &&\
+ defined(MIPI_SYST_PCFG_ENABLE_DEFAULT_SCATTER_WRITE) &&\
+ defined(MIPI_SYST_PCFG_ENABLE_PRINTF_API)
+
+#define mipi_syst_write_printf_string(a,b,c, ...) \
+ (sstr.str(""),\
+ ::mipi_syst_write_printf_string(a,b,c, __VA_ARGS__ ),\
+ result = sstr.str(),\
+ result.c_str())
+
+#define mipi_syst_write_printf_catalog64(a,b,c, ...) \
+ (sstr.str(""),\
+ ::mipi_syst_write_printf_catalog64(a,b,c, __VA_ARGS__ ),\
+ result = sstr.str(),\
+ result.c_str())
+
+#define mipi_syst_write_printf_catalog32(a,b,c, ...) \
+ (sstr.str(""),\
+ ::mipi_syst_write_printf_catalog32(a,b,c, __VA_ARGS__ ),\
+ result = sstr.str(),\
+ result.c_str())
+
+class MipiSysTFixturePrintf : public MipiSysTFixtureOutput
+{
+public:
+ void SetUp() {
+ MipiSysTFixtureOutput::SetUp();
+ }
+
+ void TearDown() {
+ MipiSysTFixtureOutput::TearDown();
+ }
+
+ static std::string result;
+};
+
+std::string MipiSysTFixturePrintf::result;
+
+TEST_F(MipiSysTFixturePrintf, syst_printf_null)
+{
+ EXPECT_STREQ(
+ xform(""),
+ MIPI_SYST_PRINTF(0, MIPI_SYST_SEVERITY_INFO, (char*) 0)
+ );
+ EXPECT_STREQ(
+ xform("<D32TS>05012242[typ=2:5 mu=1:2 sev=4 len]<D16>0007<D32>6c756e28<D16>296c<D8>00<FLAG>"),
+ MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, (char*) 0)
+ );
+}
+
+TEST_F(MipiSysTFixturePrintf, syst_printf_basic)
+{
+ EXPECT_STREQ(
+ xform("<D32TS>0b012242[typ=2:b mu=1:2 sev=4 len]<D16>0001<D8>00<FLAG>"),
+ MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, "")
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>0b012242[typ=2:b mu=1:2 sev=4 len]<D16>0003<D16>2525<D8>00<FLAG>"),
+ MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, "%%")
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>0b012242[typ=2:b mu=1:2 sev=4 len]<D16>000e<D64>6f77206f6c6c6568<D32>20646c72<D16>0021<FLAG>"),
+ MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, "hello world !")
+ );
+}
+
+TEST_F(MipiSysTFixturePrintf, syst_printf_invalid)
+{
+ EXPECT_STREQ(
+ xform("<D32TS>05012242[typ=2:5 mu=1:2 sev=4 len]<D16>0007<D32>6c756e28<D16>296c<D8>00<FLAG>"),
+ MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, 0)
+ );
+ EXPECT_STREQ(
+ xform("<D32TS>05012242[typ=2:5 mu=1:2 sev=4 len]<D16>0003<D16>6225<D8>00<FLAG>"),
+ MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, "%b", 1)
+ );
+ std::string tooLong(MIPI_SYST_PCFG_PRINTF_ARGBUF_SIZE, 'X');
+
+ EXPECT_STREQ(
+ xform("<D32TS>05012242[typ=2:5 mu=1:2 sev=4 len]<D16>0020<D64>5858585858585858<D64>5858585858585858<D64>5858585858585858<D64>5858585858585858<FLAG>"),
+ MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, tooLong.c_str(), 1)
+ );
+
+ tooLong.resize(MIPI_SYST_PCFG_PRINTF_ARGBUF_SIZE /2);
+ EXPECT_STREQ(
+ xform("<D32TS>05012242[typ=2:5 mu=1:2 sev=4 len]<D16>0006<D32>25207325<D16>0073<FLAG>"),
+ MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, "%s %s", tooLong.c_str(), tooLong.c_str())
+ );
+}
+TEST_F(MipiSysTFixturePrintf, syst_printf_flags)
+{
+ EXPECT_STREQ(
+ xform("<D32TS>0b012242[typ=2:b mu=1:2 sev=4 len]<D16>0008<D64>1122334400642b25<FLAG>"),
+ MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, "%+d", 0x11223344)
+ );
+ EXPECT_STREQ(
+ xform("<D32TS>0b012242[typ=2:b mu=1:2 sev=4 len]<D16>0008<D64>1122334400642d25<FLAG>"),
+ MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, "%-d", 0x11223344)
+ );
+ EXPECT_STREQ(
+ xform("<D32TS>0b012242[typ=2:b mu=1:2 sev=4 len]<D16>0008<D64>1122334400642025<FLAG>"),
+ MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, "% d", 0x11223344)
+ );
+ EXPECT_STREQ(
+ xform("<D32TS>0b012242[typ=2:b mu=1:2 sev=4 len]<D16>0008<D64>1122334400642325<FLAG>"),
+ MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, "%#d", 0x11223344)
+ );
+ EXPECT_STREQ(
+ xform("<D32TS>0b012242[typ=2:b mu=1:2 sev=4 len]<D16>0008<D64>1122334400643025<FLAG>"),
+ MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, "%0d", 0x11223344)
+ );
+}
+
+TEST_F(MipiSysTFixturePrintf, syst_printf_width)
+{
+ EXPECT_STREQ(
+ xform("<D32TS>0b012242[typ=2:b mu=1:2 sev=4 len]<D16>0008<D64>1122334400643325<FLAG>"),
+ MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, "%3d", 0x11223344)
+ );
+ EXPECT_STREQ(
+ xform("<D32TS>0b012242[typ=2:b mu=1:2 sev=4 len]<D16>000c<D64>000000ab00642a25<D32>11223344<FLAG>"),
+ MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, "%*d", 0xab, 0x11223344)
+ );
+ EXPECT_STREQ(
+ xform("<D32TS>0b012242[typ=2:b mu=1:2 sev=4 len]<D16>0012<D64>ccdd00642a2e2a25<D64>334412345678aabb<D16>1122<FLAG>"),
+ MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, "%*.*d", 0xaabbccdd, 0x12345678, 0x11223344)
+ );
+}
+
+TEST_F(MipiSysTFixturePrintf, syst_printf_floatingpoint)
+{
+ EXPECT_STREQ(
+ xform("<D32TS>0b012242[typ=2:b mu=1:2 sev=4 len]<D16>000b<D64>fb54442eea006625<D16>0921<D8>40<FLAG>"),
+ MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, "%f", 3.14159265359)
+ );
+ EXPECT_STREQ(
+ xform("<D32TS>0b012242[typ=2:b mu=1:2 sev=4 len]<D16>000b<D64>fb54442eea004625<D16>0921<D8>40<FLAG>"),
+ MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, "%F", 3.14159265359)
+ );
+ EXPECT_STREQ(
+ xform("<D32TS>0b012242[typ=2:b mu=1:2 sev=4 len]<D16>000b<D64>fb54442eea006525<D16>0921<D8>40<FLAG>"),
+ MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, "%e", 3.14159265359)
+ );
+ EXPECT_STREQ(
+ xform("<D32TS>0b012242[typ=2:b mu=1:2 sev=4 len]<D16>000b<D64>fb54442eea004525<D16>0921<D8>40<FLAG>"),
+ MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, "%E", 3.14159265359)
+ );
+ EXPECT_STREQ(
+ xform("<D32TS>0b012242[typ=2:b mu=1:2 sev=4 len]<D16>000b<D64>fb54442eea006725<D16>0921<D8>40<FLAG>"),
+ MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, "%g", 3.14159265359)
+ );
+ EXPECT_STREQ(
+ xform("<D32TS>0b012242[typ=2:b mu=1:2 sev=4 len]<D16>000b<D64>fb54442eea006125<D16>0921<D8>40<FLAG>"),
+ MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, "%a", 3.14159265359)
+ );
+ EXPECT_STREQ(
+ xform("<D32TS>0b012242[typ=2:b mu=1:2 sev=4 len]<D16>000b<D64>fb54442eea004125<D16>0921<D8>40<FLAG>"),
+ MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, "%A", 3.14159265359)
+ );
+ EXPECT_STREQ(
+ xform("<D32TS>0b012242[typ=2:b mu=1:2 sev=4 len]<D16>000b<D64>fb54442eea004725<D16>0921<D8>40<FLAG>"),
+ MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, "%G", 3.14159265359)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>0b012242[typ=2:b mu=1:2 sev=4 len]<D16>000c<D64>54442eea00664c25<D32>400921fb<FLAG>"),
+ MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, "%Lf", (long double)3.14159265359)
+ );
+}
+
+TEST_F(MipiSysTFixturePrintf, syst_printf_floatingpoint_precison)
+{
+ EXPECT_STREQ(
+ xform("<D32TS>0b012242[typ=2:b mu=1:2 sev=4 len]<D16>000b<D64>fb54442eea006625<D16>0921<D8>40<FLAG>"),
+ MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, "%f", 3.14159265359)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>0b012242[typ=2:b mu=1:2 sev=4 len]<D16>000c<D64>54442eea00663325<D32>400921fb<FLAG>"),
+ MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, "%3f", 3.14159265359)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>0b012242[typ=2:b mu=1:2 sev=4 len]<D16>0010<D64>006630312e313125<D64>400921fb54442eea<FLAG>"),
+ MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, "%11.10f", 3.14159265359)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>0b012242[typ=2:b mu=1:2 sev=4 len]<D16>0016<D64>000a00662a2e2a25<D64>2eea0000000b0000<D32>21fb5444<D16>4009<FLAG>"),
+ MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, "%*.*f", 10, 11, 3.14159265359)
+ );
+}
+
+TEST_F(MipiSysTFixturePrintf, syst_printf_modifier)
+{
+ unsigned int hh = 0x12;
+ unsigned short int h = 0x1234;
+ long int l = (long int)-1;
+ unsigned long long int ll = 0x1122334455667788ull;
+ uintmax_t j = 0x1122334455667788ull;
+ size_t z = (size_t)-1;
+ ptrdiff_t t = (ptrdiff_t)-1;
+
+ EXPECT_STREQ(
+ xform("<D32TS>0b012242[typ=2:b mu=1:2 sev=4 len]<D16>0009<D64>0000120064686825<D8>00<FLAG>"),
+ MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, "%hhd", hh)
+ );
+ EXPECT_STREQ(
+ xform("<D32TS>0b012242[typ=2:b mu=1:2 sev=4 len]<D16>0008<D64>0000123400646825<FLAG>"),
+ MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, "%hd", h)
+ );
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ EXPECT_STREQ(
+ xform("<D32TS>0b012242[typ=2:b mu=1:2 sev=4 len]<D16>000c<D64>ffffffff00646c25<D32>ffffffff<FLAG>"),
+ MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, "%ld", l)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>0b012242[typ=2:b mu=1:2 sev=4 len]<D16>000c<D64>ffffffff00647a25<D32>ffffffff<FLAG>"),
+ MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, "%zd", z)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>0b012242[typ=2:b mu=1:2 sev=4 len]<D16>000c<D64>ffffffff00647425<D32>ffffffff<FLAG>"),
+ MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, "%td", t)
+ );
+#else
+ EXPECT_STREQ(
+ xform("<D32TS>0b012242[typ=2:b mu=1:2 sev=4 len]<D16>0008<D64>ffffffff00646c25<FLAG>"),
+ MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, "%ld", l)
+ );
+ EXPECT_STREQ(
+ xform("<D32TS>0b012242[typ=2:b mu=1:2 sev=4 len]<D16>0008<D64>ffffffff00647a25<FLAG>"),
+ MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, "%zd", z)
+ );
+ EXPECT_STREQ(
+ xform("<D32TS>0b012242[typ=2:b mu=1:2 sev=4 len]<D16>0008<D64>ffffffff00647425<FLAG>"),
+ MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, "%td", t)
+ );
+#endif
+
+ EXPECT_STREQ(
+ xform("<D32TS>0b012242[typ=2:b mu=1:2 sev=4 len]<D16>000d<D64>66778800646c6c25<D32>22334455<D8>11<FLAG>"),
+ MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, "%lld", ll)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>0b012242[typ=2:b mu=1:2 sev=4 len]<D16>000c<D64>5566778800646a25<D32>11223344<FLAG>"),
+ MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, "%jd", j)
+ );
+}
+
+TEST_F(MipiSysTFixturePrintf, syst_printf_pointer)
+{
+ void * p = (void*)-1;
+
+ if (sizeof(p) == 8) {
+ EXPECT_STREQ(
+ xform("<D32TS>0b012242[typ=2:b mu=1:2 sev=4 len]<D16>000b<D64>ffffffffff007025<D16>ffff<D8>ff<FLAG>"),
+ MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, "%p", p)
+ );
+ } else {
+ EXPECT_STREQ(
+ xform("<D32TS>0b012242[typ=2:b mu=1:2 sev=4 len]<D16>0007<D32>ff007025<D16>ffff<D8>ff<FLAG>"),
+ MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, "%p", p)
+ );
+ }
+}
+
+TEST_F(MipiSysTFixturePrintf, syst_printf_char)
+{
+ char c = 'C';
+ wint_t w = 'W';
+
+ EXPECT_STREQ(
+ xform("<D32TS>0b012242[typ=2:b mu=1:2 sev=4 len]<D16>0007<D32>43006325<D16>0000<D8>00<FLAG>"),
+ MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, "%c", c)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>0b012242[typ=2:b mu=1:2 sev=4 len]<D16>0008<D64>0000005700636c25<FLAG>"),
+ MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, "%lc", w)
+ );
+}
+
+TEST_F(MipiSysTFixturePrintf, syst_printf_combinations)
+{
+ EXPECT_STREQ(
+ xform("<D32TS>0b012242[typ=2:b mu=1:2 sev=4 len]<D16>0031<D64>6a20732520656854<D64>766f206465706d75<D64>2520656874207265<D64>6d69742064252073<D64>00776f63002e7365<D64>000005006e6f6f6d<D8>00<FLAG>"),
+ MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, "The %s jumped over the %s %d times.", "cow", "moon", 5)
+ );
+}
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD)
+TEST_F(MipiSysTFixturePrintf, syst_printf_loc)
+{
+ EXPECT_STREQ(
+ xform("<D32TS>0b012342[typ=2:b mu=1:2 sev=4 loc len]<D8>00<D32>5678abcd<D16>0031<D64>6a20732520656854<D64>766f206465706d75<D64>2520656874207265<D64>6d69742064252073<D64>00776f63002e7365<D64>000005006e6f6f6d<D8>00<FLAG>"),
+ MIPI_SYST_PRINTF_LOC16(ph, MIPI_SYST_SEVERITY_INFO, 0xabcd, "The %s jumped over the %s %d times.", "cow", "moon", 5)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>0b012342[typ=2:b mu=1:2 sev=4 loc len]<D8>01<D64>12345678aabbccdd<D16>0031<D64>6a20732520656854<D64>766f206465706d75<D64>2520656874207265<D64>6d69742064252073<D64>00776f63002e7365<D64>000005006e6f6f6d<D8>00<FLAG>"),
+ MIPI_SYST_PRINTF_LOC32(ph, MIPI_SYST_SEVERITY_INFO, 0xaabbccdd, "The %s jumped over the %s %d times.", "cow", "moon", 5)
+ );
+
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ EXPECT_STREQ(
+ xform("<D32TS>0b012342[typ=2:b mu=1:2 sev=4 loc len]<D8>03<D64>12345678aabbccdd<D16>0031<D64>6a20732520656854<D64>766f206465706d75<D64>2520656874207265<D64>6d69742064252073<D64>00776f63002e7365<D64>000005006e6f6f6d<D8>00<FLAG>"),
+ MIPI_SYST_PRINTF_LOCADDR(ph, MIPI_SYST_SEVERITY_INFO, "The %s jumped over the %s %d times.", "cow", "moon", 5)
+ );
+#else
+ EXPECT_STREQ(
+ xform("<D32TS>0b012342[typ=2:b mu=1:2 sev=4 loc len]<D8>02<D32>12345678<D16>0031<D64>6a20732520656854<D64>766f206465706d75<D64>2520656874207265<D64>6d69742064252073<D64>00776f63002e7365<D64>000005006e6f6f6d<D8>00<FLAG>"),
+ MIPI_SYST_PRINTF_LOCADDR(ph, MIPI_SYST_SEVERITY_INFO, "The %s jumped over the %s %d times.", "cow", "moon", 5)
+ );
+#endif
+}
+#endif // MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD
+
+#if defined(MIPI_SYST_PCFG_ENABLE_CATID64_API)
+
+TEST_F(MipiSysTFixturePrintf, syst_catalog64_printf_null)
+{
+ EXPECT_STREQ(
+ xform(""),
+ MIPI_SYST_CATPRINTF64(NULL, MIPI_SYST_SEVERITY_INFO, 0x1122334455667788, "")
+ );
+}
+
+TEST_F(MipiSysTFixturePrintf, syst_catalog64_printf_invalid)
+{
+ EXPECT_STREQ(
+ xform("<D32TS>05012242[typ=2:5 mu=1:2 sev=4 len]<D16>0007<D32>61746163<D16>6772<D8>00<FLAG>"),
+ MIPI_SYST_CATPRINTF64(ph, MIPI_SYST_SEVERITY_INFO, 0x11223344, -1, -1)
+ );
+}
+
+TEST_F(MipiSysTFixturePrintf, syst_catalog64_printf_basic)
+{
+ EXPECT_STREQ(
+ xform("<D32TS>02012243[typ=3:2 mu=1:2 sev=4 len]<D16>0008<D64>1122334455667788<FLAG>"),
+ MIPI_SYST_CATPRINTF64(ph, MIPI_SYST_SEVERITY_INFO, 0x1122334455667788, "")
+ );
+
+ // check that formt string is not added into payload
+ EXPECT_STREQ(
+ xform("<D32TS>02012243[typ=3:2 mu=1:2 sev=4 len]<D16>0008<D64>1122334455667788<FLAG>"),
+ MIPI_SYST_CATPRINTF64(ph, MIPI_SYST_SEVERITY_INFO, 0x1122334455667788ull, "Hello world")
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>02012243[typ=3:2 mu=1:2 sev=4 len]<D16>000c<D64>1122334455667788<D32>00000058<FLAG>"),
+ MIPI_SYST_CATPRINTF64(ph, MIPI_SYST_SEVERITY_INFO, 0x1122334455667788ull,
+ "%c", MIPI_SYST_PARAM_CHAR('X'))
+ );
+ EXPECT_STREQ(
+ xform("<D32TS>02012243[typ=3:2 mu=1:2 sev=4 len]<D16>000c<D64>1122334455667788<D32>00000058<FLAG>"),
+ MIPI_SYST_CATPRINTF64(ph, MIPI_SYST_SEVERITY_INFO, 0x1122334455667788ull,
+ "%c", MIPI_SYST_PARAM_WCHAR(L'X'))
+ );
+ EXPECT_STREQ(
+ xform("<D32TS>02012243[typ=3:2 mu=1:2 sev=4 len]<D16>000c<D64>1122334455667788<D32>abcd1234<FLAG>"),
+ MIPI_SYST_CATPRINTF64(ph, MIPI_SYST_SEVERITY_INFO, 0x1122334455667788ull,
+ "%c", MIPI_SYST_PARAM_INT(0xabcd1234))
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>02012243[typ=3:2 mu=1:2 sev=4 len]<D16>0010<D64>1122334455667788<D64>1234567887654321<FLAG>"),
+ MIPI_SYST_CATPRINTF64(ph, MIPI_SYST_SEVERITY_INFO, 0x1122334455667788ull,
+ "%lld", MIPI_SYST_PARAM_LONGLONG(0x1234567887654321ull))
+ );
+
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ EXPECT_STREQ(
+ xform("<D32TS>02012243[typ=3:2 mu=1:2 sev=4 len]<D16>0010<D64>1122334455667788<D64>0000000012345678<FLAG>"),
+ MIPI_SYST_CATPRINTF64(ph, MIPI_SYST_SEVERITY_INFO, 0x1122334455667788ull,
+ "%ld", MIPI_SYST_PARAM_LONG(0x12345678))
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>02012243[typ=3:2 mu=1:2 sev=4 len]<D16>0010<D64>1122334455667788<D64>1234567887654321<FLAG>"),
+ MIPI_SYST_CATPRINTF64(ph, MIPI_SYST_SEVERITY_INFO, 0x1122334455667788ull,
+ "%z", MIPI_SYST_PARAM_SIZE_T(0x1234567887654321ull))
+ );
+ EXPECT_STREQ(
+ xform("<D32TS>02012243[typ=3:2 mu=1:2 sev=4 len]<D16>0010<D64>1122334455667788<D64>1234567887654321<FLAG>"),
+ MIPI_SYST_CATPRINTF64(ph, MIPI_SYST_SEVERITY_INFO, 0x1122334455667788ull,
+ "%t", MIPI_SYST_PARAM_PTRDIFF_T(0x1234567887654321ull))
+ );
+ EXPECT_STREQ(
+ xform("<D32TS>02012243[typ=3:2 mu=1:2 sev=4 len]<D16>0010<D64>1122334455667788<D64>1234567887654321<FLAG>"),
+ MIPI_SYST_CATPRINTF64(ph, MIPI_SYST_SEVERITY_INFO, 0x1122334455667788ull,
+ "%p", MIPI_SYST_PARAM_PTR(0x1234567887654321ull))
+ );
+#else
+ EXPECT_STREQ(
+ xform("<D32TS>02012243[typ=3:2 mu=1:2 sev=4 len]<D16>000c<D64>1122334455667788<D32>12345678<FLAG>"),
+ MIPI_SYST_CATPRINTF64(ph, MIPI_SYST_SEVERITY_INFO, 0x1122334455667788ull,
+ "%ld", MIPI_SYST_PARAM_LONG(0x12345678))
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>02012243[typ=3:2 mu=1:2 sev=4 len]<D16>000c<D64>1122334455667788<D32>12345678<FLAG>"),
+ MIPI_SYST_CATPRINTF64(ph, MIPI_SYST_SEVERITY_INFO, 0x1122334455667788ull,
+ "%z", MIPI_SYST_PARAM_SIZE_T(0x12345678))
+ );
+ EXPECT_STREQ(
+ xform("<D32TS>02012243[typ=3:2 mu=1:2 sev=4 len]<D16>000c<D64>1122334455667788<D32>12345678<FLAG>"),
+ MIPI_SYST_CATPRINTF64(ph, MIPI_SYST_SEVERITY_INFO, 0x1122334455667788ull,
+ "%t", MIPI_SYST_PARAM_PTRDIFF_T(0x12345678))
+ );
+ EXPECT_STREQ(
+ xform("<D32TS>02012243[typ=3:2 mu=1:2 sev=4 len]<D16>000c<D64>1122334455667788<D32>12345678<FLAG>"),
+ MIPI_SYST_CATPRINTF64(ph, MIPI_SYST_SEVERITY_INFO, 0x1122334455667788ull,
+ "%p", MIPI_SYST_PARAM_PTR(0x12345678))
+ );
+#endif //defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+
+ EXPECT_STREQ(
+ xform("<D32TS>02012243[typ=3:2 mu=1:2 sev=4 len]<D16>0010<D64>1122334455667788<D64>4000000000000000<FLAG>"),
+ MIPI_SYST_CATPRINTF64(ph, MIPI_SYST_SEVERITY_INFO, 0x1122334455667788ull,
+ "%f", MIPI_SYST_PARAM_FLOAT((float)2.0))
+ );
+ EXPECT_STREQ(
+ xform("<D32TS>02012243[typ=3:2 mu=1:2 sev=4 len]<D16>0010<D64>1122334455667788<D64>4000000000000000<FLAG>"),
+ MIPI_SYST_CATPRINTF64(ph, MIPI_SYST_SEVERITY_INFO, 0x1122334455667788ull,
+ "%f", MIPI_SYST_PARAM_DOUBLE((double)2.0))
+ );
+ EXPECT_STREQ(
+ xform("<D32TS>02012243[typ=3:2 mu=1:2 sev=4 len]<D16>0010<D64>1122334455667788<D64>4000000000000000<FLAG>"),
+ MIPI_SYST_CATPRINTF64(ph, MIPI_SYST_SEVERITY_INFO, 0x1122334455667788ull,
+ "%lf", MIPI_SYST_PARAM_LONGDOUBLE((long double)2.0))
+ );
+}
+
+TEST_F(MipiSysTFixturePrintf, syst_catalog64_printf_string)
+{
+ EXPECT_STREQ(
+ xform("<D32TS>02012243[typ=3:2 mu=1:2 sev=4 len]<D16>0009<D64>1122334455667788<D8>00<FLAG>"),
+ MIPI_SYST_CATPRINTF64(ph, MIPI_SYST_SEVERITY_INFO, 0x1122334455667788,
+ "%s", MIPI_SYST_PARAM_CSTR(""))
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>02012243[typ=3:2 mu=1:2 sev=4 len]<D16>0016<D64>1122334455667788<D64>6f77206f6c6c6568<D32>20646c72<D16>0021<FLAG>"),
+ MIPI_SYST_CATPRINTF64(ph, MIPI_SYST_SEVERITY_INFO, 0x1122334455667788,
+ "%s", MIPI_SYST_PARAM_CSTR("hello world !"))
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>02012243[typ=3:2 mu=1:2 sev=4 len]<D16>0035<D64>1122334455667788<D64>3333003232003100<D64>3500343434340033<D64>3636360035353535<D64>3737373700363636<D64>3838383800373737<D32>38383838<D8>00<FLAG>"),
+ MIPI_SYST_CATPRINTF64(ph, MIPI_SYST_SEVERITY_INFO, 0x1122334455667788,
+ "%s",
+ MIPI_SYST_PARAM_CSTR(""),
+ MIPI_SYST_PARAM_CSTR("1"),
+ MIPI_SYST_PARAM_CSTR("22"),
+ MIPI_SYST_PARAM_CSTR("333"),
+ MIPI_SYST_PARAM_CSTR("4444"),
+ MIPI_SYST_PARAM_CSTR("55555"),
+ MIPI_SYST_PARAM_CSTR("666666"),
+ MIPI_SYST_PARAM_CSTR("7777777"),
+ MIPI_SYST_PARAM_CSTR("88888888")
+ )
+ );
+ EXPECT_STREQ(
+ xform("<D32TS>02012243[typ=3:2 mu=1:2 sev=4 len]<D16>001e<D64>1122334455667788<D64>6f77206f6c6c6568<D64>3231002120646c72<D32>12340033<D16>abcd<FLAG>"),
+ MIPI_SYST_CATPRINTF64(ph, MIPI_SYST_SEVERITY_INFO, 0x1122334455667788,
+ "%s %s %d",
+ MIPI_SYST_PARAM_CSTR("hello world !"),
+ MIPI_SYST_PARAM_CSTR("123"),
+ MIPI_SYST_PARAM_INT(0xabcd1234)
+ )
+ );
+}
+
+TEST_F(MipiSysTFixturePrintf, syst_catalog64_printf_mixed)
+{
+ EXPECT_STREQ(
+ xform("<D32TS>02012243[typ=3:2 mu=1:2 sev=4 len]<D16>001e<D64>1122334455667788<D64>6f77206f6c6c6568<D64>3231002120646c72<D32>12340033<D16>abcd<FLAG>"),
+ MIPI_SYST_CATPRINTF64(ph, MIPI_SYST_SEVERITY_INFO, 0x1122334455667788,
+ "%s %s %d",
+ MIPI_SYST_PARAM_CSTR("hello world !"),
+ MIPI_SYST_PARAM_CSTR("123"),
+ MIPI_SYST_PARAM_INT(0xabcd1234)
+ )
+ );
+}
+#endif // #if defined(MIPI_SYST_PCFG_ENABLE_CATID64_API)
+
+#if defined(MIPI_SYST_PCFG_ENABLE_CATID32_API)
+
+TEST_F(MipiSysTFixturePrintf, syst_catalog32_printf_null)
+{
+ EXPECT_STREQ(
+ xform(""),
+ MIPI_SYST_CATPRINTF32(NULL, MIPI_SYST_SEVERITY_INFO, 0x11223344, "")
+ );
+}
+
+TEST_F(MipiSysTFixturePrintf, syst_catalog32_printf_invalid)
+{
+ EXPECT_STREQ(
+ xform("<D32TS>05012242[typ=2:5 mu=1:2 sev=4 len]<D16>0007<D32>61746163<D16>6772<D8>00<FLAG>"),
+ MIPI_SYST_CATPRINTF32(ph, MIPI_SYST_SEVERITY_INFO, 0x11223344, -1, -1)
+ );
+}
+
+TEST_F(MipiSysTFixturePrintf, syst_catalog32_printf_basic)
+{
+ EXPECT_STREQ(
+ xform("<D32TS>01012243[typ=3:1 mu=1:2 sev=4 len]<D16>0004<D32>11223344<FLAG>"),
+ MIPI_SYST_CATPRINTF32(ph, MIPI_SYST_SEVERITY_INFO, 0x11223344, "")
+ );
+
+ // check that format string is not added into payload
+ EXPECT_STREQ(
+ xform("<D32TS>01012243[typ=3:1 mu=1:2 sev=4 len]<D16>0004<D32>11223344<FLAG>"),
+ MIPI_SYST_CATPRINTF32(ph, MIPI_SYST_SEVERITY_INFO, 0x11223344ull, "Hello world")
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>01012243[typ=3:1 mu=1:2 sev=4 len]<D16>0008<D64>0000005811223344<FLAG>"),
+ MIPI_SYST_CATPRINTF32(ph, MIPI_SYST_SEVERITY_INFO, 0x11223344ull,
+ "%c", MIPI_SYST_PARAM_CHAR('X'))
+ );
+ EXPECT_STREQ(
+ xform("<D32TS>01012243[typ=3:1 mu=1:2 sev=4 len]<D16>0008<D64>0000123411223344<FLAG>"),
+ MIPI_SYST_CATPRINTF32(ph, MIPI_SYST_SEVERITY_INFO, 0x11223344ull,
+ "%hhd", MIPI_SYST_PARAM_SHORT(0x1234))
+ );
+ EXPECT_STREQ(
+ xform("<D32TS>01012243[typ=3:1 mu=1:2 sev=4 len]<D16>0008<D64>0000005811223344<FLAG>"),
+ MIPI_SYST_CATPRINTF32(ph, MIPI_SYST_SEVERITY_INFO, 0x11223344ull,
+ "%lc", MIPI_SYST_PARAM_WCHAR(L'X'))
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>01012243[typ=3:1 mu=1:2 sev=4 len]<D16>0008<D64>abcd123411223344<FLAG>"),
+ MIPI_SYST_CATPRINTF32(ph, MIPI_SYST_SEVERITY_INFO, 0x11223344ull,
+ "%d", MIPI_SYST_PARAM_INT(0xabcd1234))
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>01012243[typ=3:1 mu=1:2 sev=4 len]<D16>000c<D64>8765432111223344<D32>12345678<FLAG>"),
+ MIPI_SYST_CATPRINTF32(ph, MIPI_SYST_SEVERITY_INFO, 0x11223344ull,
+ "%lld", MIPI_SYST_PARAM_LONGLONG(0x1234567887654321ull))
+ );
+
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ EXPECT_STREQ(
+ xform("<D32TS>01012243[typ=3:1 mu=1:2 sev=4 len]<D16>000c<D64>1234567811223344<D32>00000000<FLAG>"),
+ MIPI_SYST_CATPRINTF32(ph, MIPI_SYST_SEVERITY_INFO, 0x11223344ull,
+ "%ld", MIPI_SYST_PARAM_LONG(0x12345678))
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>01012243[typ=3:1 mu=1:2 sev=4 len]<D16>000c<D64>8765432111223344<D32>12345678<FLAG>"),
+ MIPI_SYST_CATPRINTF32(ph, MIPI_SYST_SEVERITY_INFO, 0x11223344ull,
+ "%z", MIPI_SYST_PARAM_SIZE_T(0x1234567887654321ull))
+ );
+ EXPECT_STREQ(
+ xform("<D32TS>01012243[typ=3:1 mu=1:2 sev=4 len]<D16>000c<D64>8765432111223344<D32>12345678<FLAG>"),
+ MIPI_SYST_CATPRINTF32(ph, MIPI_SYST_SEVERITY_INFO, 0x11223344ull,
+ "%t", MIPI_SYST_PARAM_PTRDIFF_T(0x1234567887654321ull))
+ );
+ EXPECT_STREQ(
+ xform("<D32TS>01012243[typ=3:1 mu=1:2 sev=4 len]<D16>000c<D64>8765432111223344<D32>12345678<FLAG>"),
+ MIPI_SYST_CATPRINTF32(ph, MIPI_SYST_SEVERITY_INFO, 0x11223344ull,
+ "%p", MIPI_SYST_PARAM_PTR(0x1234567887654321ull))
+ );
+#else
+ EXPECT_STREQ(
+ xform("<D32TS>01012243[typ=3:1 mu=1:2 sev=4 len]<D16>0008<D64>1234567811223344<FLAG>"),
+ MIPI_SYST_CATPRINTF32(ph, MIPI_SYST_SEVERITY_INFO, 0x11223344ull,
+ "%ld", MIPI_SYST_PARAM_LONG(0x12345678))
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>01012243[typ=3:1 mu=1:2 sev=4 len]<D16>0008<D64>1234567811223344<FLAG>"),
+ MIPI_SYST_CATPRINTF32(ph, MIPI_SYST_SEVERITY_INFO, 0x11223344ull,
+ "%z", MIPI_SYST_PARAM_SIZE_T(0x12345678))
+ );
+ EXPECT_STREQ(
+ xform("<D32TS>01012243[typ=3:1 mu=1:2 sev=4 len]<D16>0008<D64>1234567811223344<FLAG>"),
+ MIPI_SYST_CATPRINTF32(ph, MIPI_SYST_SEVERITY_INFO, 0x11223344ull,
+ "%t", MIPI_SYST_PARAM_PTRDIFF_T(0x12345678))
+ );
+ EXPECT_STREQ(
+ xform("<D32TS>01012243[typ=3:1 mu=1:2 sev=4 len]<D16>0008<D64>1234567811223344<FLAG>"),
+ MIPI_SYST_CATPRINTF32(ph, MIPI_SYST_SEVERITY_INFO, 0x11223344ull,
+ "%p", MIPI_SYST_PARAM_PTR(0x12345678))
+ );
+#endif //defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+
+ EXPECT_STREQ(
+ xform("<D32TS>01012243[typ=3:1 mu=1:2 sev=4 len]<D16>000c<D64>0000000011223344<D32>40000000<FLAG>"),
+ MIPI_SYST_CATPRINTF32(ph, MIPI_SYST_SEVERITY_INFO, 0x11223344ull,
+ "%f", MIPI_SYST_PARAM_FLOAT((float)2.0))
+ );
+ EXPECT_STREQ(
+ xform("<D32TS>01012243[typ=3:1 mu=1:2 sev=4 len]<D16>000c<D64>0000000011223344<D32>40000000<FLAG>"),
+ MIPI_SYST_CATPRINTF32(ph, MIPI_SYST_SEVERITY_INFO, 0x11223344ull,
+ "%f", MIPI_SYST_PARAM_DOUBLE((double)2.0))
+ );
+ EXPECT_STREQ(
+ xform("<D32TS>01012243[typ=3:1 mu=1:2 sev=4 len]<D16>000c<D64>0000000011223344<D32>40000000<FLAG>"),
+ MIPI_SYST_CATPRINTF32(ph, MIPI_SYST_SEVERITY_INFO, 0x11223344ull,
+ "%lf", MIPI_SYST_PARAM_LONGDOUBLE((long double)2.0))
+ );
+}
+
+TEST_F(MipiSysTFixturePrintf, syst_catalog32_printf_string)
+{
+ EXPECT_STREQ(
+ xform("<D32TS>01012243[typ=3:1 mu=1:2 sev=4 len]<D16>0005<D32>11223344<D8>00<FLAG>"),
+ MIPI_SYST_CATPRINTF32(ph, MIPI_SYST_SEVERITY_INFO, 0x11223344,
+ "%s", MIPI_SYST_PARAM_CSTR(""))
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>01012243[typ=3:1 mu=1:2 sev=4 len]<D16>0012<D64>6c6c656811223344<D64>20646c726f77206f<D16>0021<FLAG>"),
+ MIPI_SYST_CATPRINTF32(ph, MIPI_SYST_SEVERITY_INFO, 0x11223344,
+ "%s", MIPI_SYST_PARAM_CSTR("hello world !"))
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>01012243[typ=3:1 mu=1:2 sev=4 len]<D16>0031<D64>3200310011223344<D64>3434003333330032<D64>3535353535003434<D64>0036363636363600<D64>0037373737373737<D64>3838383838383838<D8>00<FLAG>"),
+ MIPI_SYST_CATPRINTF32(ph, MIPI_SYST_SEVERITY_INFO, 0x11223344,
+ "%s",
+ MIPI_SYST_PARAM_CSTR(""),
+ MIPI_SYST_PARAM_CSTR("1"),
+ MIPI_SYST_PARAM_CSTR("22"),
+ MIPI_SYST_PARAM_CSTR("333"),
+ MIPI_SYST_PARAM_CSTR("4444"),
+ MIPI_SYST_PARAM_CSTR("55555"),
+ MIPI_SYST_PARAM_CSTR("666666"),
+ MIPI_SYST_PARAM_CSTR("7777777"),
+ MIPI_SYST_PARAM_CSTR("88888888")
+ )
+ );
+ EXPECT_STREQ(
+ xform("<D32TS>01012243[typ=3:1 mu=1:2 sev=4 len]<D16>001a<D64>6c6c656811223344<D64>20646c726f77206f<D64>1234003332310021<D16>abcd<FLAG>"),
+ MIPI_SYST_CATPRINTF32(ph, MIPI_SYST_SEVERITY_INFO, 0x11223344,
+ "%s %s %d",
+ MIPI_SYST_PARAM_CSTR("hello world !"),
+ MIPI_SYST_PARAM_CSTR("123"),
+ MIPI_SYST_PARAM_INT(0xabcd1234)
+ )
+ );
+}
+
+TEST_F(MipiSysTFixturePrintf, syst_catalog32_printf_mixed)
+{
+ EXPECT_STREQ(
+ xform("<D32TS>01012243[typ=3:1 mu=1:2 sev=4 len]<D16>001a<D64>6c6c656811223344<D64>20646c726f77206f<D64>1234003332310021<D16>abcd<FLAG>"),
+ MIPI_SYST_CATPRINTF32(ph, MIPI_SYST_SEVERITY_INFO, 0x11223344,
+ "%s %s %d",
+ MIPI_SYST_PARAM_CSTR("hello world !"),
+ MIPI_SYST_PARAM_CSTR("123"),
+ MIPI_SYST_PARAM_INT(0xabcd1234)
+ )
+ );
+}
+#endif // #if defined(MIPI_SYST_PCFG_ENABLE_CATID32_API)
+#endif //MIPI_SYST_PCFG_ENABLE_PLATFORM_STATE_DATA && MIPI_SYST_PCFG_ENABLE_DEFAULT_SCATTER_WRITE && MIPI_SYST_PCFG_ENABLE_PRINTF_API \ No newline at end of file
diff --git a/library/test/unit/mipi_syst_raw_test.cpp b/library/test/unit/mipi_syst_raw_test.cpp
new file mode 100644
index 0000000..bcb1b4a
--- /dev/null
+++ b/library/test/unit/mipi_syst_raw_test.cpp
@@ -0,0 +1,162 @@
+/*
+Copyright (c) 2018, MIPI Alliance, Inc.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+* Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+* Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Contributors:
+ * Norbert Schulz (Intel Corporation) - Initial API and implementation
+ */
+
+#include "mipi_syst_gtest.h"
+
+#if defined(MIPI_SYST_PCFG_ENABLE_PLATFORM_STATE_DATA) &&\
+ defined(MIPI_SYST_PCFG_ENABLE_DEFAULT_SCATTER_WRITE) &&\
+ defined(MIPI_SYST_PCFG_ENABLE_WRITE_API)
+
+class MipiSysTFixtureRaw : public MipiSysTFixtureOutput
+{
+public:
+ void SetUp() {
+ MipiSysTFixtureOutput::SetUp();
+ }
+
+ void TearDown(){
+ MipiSysTFixtureOutput::TearDown();
+ }
+
+ const char * mipi_syst_write_raw_message(
+ struct mipi_syst_handle* svh,
+ struct mipi_syst_msglocation* loc,
+ enum mipi_syst_severity severity,
+ mipi_syst_u8 subtype,
+ const void * data,
+ mipi_syst_u16 length)
+ {
+ sstr.str("");
+
+ ::mipi_syst_write_raw_message(svh, loc, severity, subtype, data, length);
+ result = sstr.str();
+
+ return result.c_str();
+ }
+
+ static std::string result;
+};
+
+std::string MipiSysTFixtureRaw::result;
+
+TEST_F(MipiSysTFixtureRaw, syst_raw_nullptr)
+{
+ EXPECT_STREQ(
+ "",
+ MIPI_SYST_WRITE(NULL, MIPI_SYST_SEVERITY_INFO, 0x3f, NULL, 0)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>3f012246[typ=6:3f mu=1:2 sev=4 len]<D16>0000<FLAG>"),
+ MIPI_SYST_WRITE(ph, MIPI_SYST_SEVERITY_INFO, 0x3f, NULL, 0)
+ );
+}
+
+TEST_F(MipiSysTFixtureRaw, syst_raw_output)
+{
+ mipi_syst_u8 byte = 0xab;
+ mipi_syst_u16 word =MIPI_SYST_HTOLE16(0xabcd);
+ mipi_syst_u32 dword =MIPI_SYST_HTOLE32(0xaabbccdd);
+ mipi_syst_u64 qword =MIPI_SYST_HTOLE64(0x1122aabbccddeeffull);
+
+ EXPECT_STREQ(
+ xform("<D32TS>3f012246[typ=6:3f mu=1:2 sev=4 len]<D16>0001<D8>ab<FLAG>"),
+ MIPI_SYST_WRITE(ph, MIPI_SYST_SEVERITY_INFO, 0x3f, &byte, 1)
+ );
+ EXPECT_STREQ(
+ xform("<D32TS>3f012246[typ=6:3f mu=1:2 sev=4 len]<D16>0002<D16>abcd<FLAG>"),
+ MIPI_SYST_WRITE(ph, MIPI_SYST_SEVERITY_INFO, 0x3f, &word, 2)
+ );
+ EXPECT_STREQ(
+ xform("<D32TS>3f012246[typ=6:3f mu=1:2 sev=4 len]<D16>0004<D32>aabbccdd<FLAG>"),
+ MIPI_SYST_WRITE(ph, MIPI_SYST_SEVERITY_INFO, 0x3f, &dword, 4)
+ );
+ EXPECT_STREQ(
+ xform("<D32TS>3f012246[typ=6:3f mu=1:2 sev=4 len]<D16>0008<D64>1122aabbccddeeff<FLAG>"),
+ MIPI_SYST_WRITE(ph, MIPI_SYST_SEVERITY_INFO, 0x3f, &qword, 8)
+ );
+
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD)
+ EXPECT_STREQ(
+ xform("<D32TS>3f012346[typ=6:3f mu=1:2 sev=4 loc len]<D8>00<D32>5678abcd<D16>0001<D8>ab<FLAG>"),
+ MIPI_SYST_WRITE_LOC16(ph, MIPI_SYST_SEVERITY_INFO, 0xabcd, 0x3f, &byte, 1)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>3f012346[typ=6:3f mu=1:2 sev=4 loc len]<D8>01<D64>12345678aabbccdd<D16>0001<D8>ab<FLAG>"),
+ MIPI_SYST_WRITE_LOC32(ph, MIPI_SYST_SEVERITY_INFO, 0x12345678aabbccddull, 0x3f, &byte, 1)
+ );
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_ADDRESS)
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ EXPECT_STREQ(
+ xform("<D32TS>3f012346[typ=6:3f mu=1:2 sev=4 loc len]<D8>03<D64>12345678aabbccdd<D16>0001<D8>ab<FLAG>"),
+ MIPI_SYST_WRITE_LOCADDR(ph, MIPI_SYST_SEVERITY_INFO, 0x3f, &byte, 1)
+ );
+#else
+ EXPECT_STREQ(
+ xform("<D32TS>3f012346[typ=6:3f mu=1:2 sev=4 loc len]<D8>02<D32>12345678<D16>0001<D8>ab<FLAG>"),
+ MIPI_SYST_WRITE_LOCADDR(ph, MIPI_SYST_SEVERITY_INFO, 0x3f, &byte, 1)
+ );
+#endif //MIPI_SYST_PCFG_ENABLE_64BIT_ADDR
+#endif //MIPI_SYST_PCFG_ENABLE_LOCATION_ADDRESS
+#endif //MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD
+}
+
+#endif //MIPI_SYST_PCFG_ENABLE_PLATFORM_STATE_DATA && MIPI_SYST_PCFG_ENABLE_DEFAULT_SCATTER_WRITE && MIPI_SYST_PCFG_ENABLE_WRITE_API
+
+TEST_F(MipiSysTFixtureOutput, syst_short)
+{
+ std::string str;
+
+ MIPI_SYST_SHORT32(ph, 0x02345678);
+ str = sstr.str();
+
+ EXPECT_STREQ(
+ xform("<D32MTS>23456781"),
+ str.c_str()
+ );
+
+ sstr.str("");
+ MIPI_SYST_SHORT64(ph, 0x0122334455667788);
+ str = sstr.str();
+
+ EXPECT_STREQ(
+ xform("<D64MTS>1223344556677887"),
+ str.c_str()
+ );
+} \ No newline at end of file
diff --git a/library/test/unit/mipi_syst_string_test.cpp b/library/test/unit/mipi_syst_string_test.cpp
new file mode 100644
index 0000000..c2fdbcf
--- /dev/null
+++ b/library/test/unit/mipi_syst_string_test.cpp
@@ -0,0 +1,325 @@
+/*
+Copyright (c) 2018, MIPI Alliance, Inc.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+* Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+* Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Contributors:
+ * Norbert Schulz (Intel Corporation) - Initial API and implementation
+ */
+
+#include "mipi_syst_gtest.h"
+
+#if defined(MIPI_SYST_PCFG_ENABLE_PLATFORM_STATE_DATA) &&\
+ defined(MIPI_SYST_PCFG_ENABLE_DEFAULT_SCATTER_WRITE) &&\
+ defined(MIPI_SYST_PCFG_ENABLE_STRING_API)
+
+
+class MipiSysTFixtureDebugString : public MipiSysTFixtureOutput
+{
+public:
+ void SetUp() {
+ MipiSysTFixtureOutput::SetUp();
+ }
+
+ void TearDown(){
+ MipiSysTFixtureOutput::TearDown();
+ }
+
+ const char * mipi_syst_write_debug_string(struct mipi_syst_handle* svh,
+ struct mipi_syst_msglocation* loc,
+ enum mipi_syst_subtype_string type,
+ enum mipi_syst_severity severity,
+ mipi_syst_u16 len,
+ const char * str)
+ {
+ sstr.str("");
+
+ ::mipi_syst_write_debug_string(svh, loc, type, severity, len, str);
+ result = sstr.str();
+
+ return result.c_str();
+ }
+
+ static std::string result;
+};
+
+std::string MipiSysTFixtureDebugString::result;
+
+TEST_F(MipiSysTFixtureDebugString, syst_string_null)
+{
+ EXPECT_STREQ(
+ xform(""),
+ MIPI_SYST_DEBUG(NULL, MIPI_SYST_SEVERITY_WARNING, "", 1)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>05012232[typ=2:5 mu=1:2 sev=3 len]<D16>0007<D32>6c756e28<D16>296c<D8>00<FLAG>"),
+ MIPI_SYST_DEBUG(ph, MIPI_SYST_SEVERITY_WARNING, NULL, 1)
+ );
+}
+
+TEST_F(MipiSysTFixtureDebugString, syst_func_enter_output)
+{
+ EXPECT_STREQ(
+ xform("<D32TS>02012232[typ=2:2 mu=1:2 sev=3 len]<D16>000b<D64>3736353433323130<D16>3938<D8>00<FLAG>"),
+ MIPI_SYST_FUNC_ENTER(ph, MIPI_SYST_SEVERITY_WARNING)
+ );
+}
+
+TEST_F(MipiSysTFixtureDebugString, syst_func_exit_output)
+{
+ EXPECT_STREQ(
+ xform("<D32TS>03012232[typ=2:3 mu=1:2 sev=3 len]<D16>000b<D64>3736353433323130<D16>3938<D8>00<FLAG>"),
+ MIPI_SYST_FUNC_EXIT(ph, MIPI_SYST_SEVERITY_WARNING)
+ );
+}
+
+
+TEST_F(MipiSysTFixtureDebugString, syst_debugstring_output)
+{
+ EXPECT_STREQ(
+ xform("<D32TS>01012232[typ=2:1 mu=1:2 sev=3 len]<D16>000c<D64>6f77206f6c6c6548<D32>21646c72<FLAG>"),
+ MIPI_SYST_DEBUG(ph, MIPI_SYST_SEVERITY_WARNING, "Hello world!" , 12)
+ );
+
+#if defined(MIPI_SYST_PCFG_ENABLE_CHECKSUM)
+ MIPI_SYST_ENABLE_HANDLE_CHECKSUM(ph,1);
+#if defined(MIPI_SYST_PCFG_LENGTH_FIELD)
+ EXPECT_STREQ(
+ xform("<D32TS>01012632[typ=2:1 mu=1:2 sev=3 len chk]<D16>000c<D64>6f77206f6c6c6548<D32>21646c72<D32>eab806d3<FLAG>"),
+ MIPI_SYST_DEBUG(ph, MIPI_SYST_SEVERITY_WARNING, "Hello world!" , 12)
+ );
+#else
+ EXPECT_STREQ(
+ xform("<D32TS>01012432[typ=2:1 mu=1:2 sev=3 chk]<D64>6f77206f6c6c6548<D32>21646c72<D32>ff19ff90<FLAG>"),
+ MIPI_SYST_DEBUG(ph, MIPI_SYST_SEVERITY_WARNING, "Hello world!", 12)
+ );
+#endif
+ MIPI_SYST_ENABLE_HANDLE_CHECKSUM(ph,0);
+#endif
+
+
+#if defined(MIPI_SYST_PCFG_ENABLE_ORIGIN_GUID)
+ // {8887160A-C965-463b-9F43-1EFE9FDFE3F9}
+ const struct mipi_syst_guid aguid = MIPI_SYST_GEN_GUID(0x8887160A, 0xC965, 0x463b, 0x9F43, 0x1EFE9FDFE3F9);
+
+ MIPI_SYST_SET_HANDLE_GUID_UNIT(ph, aguid, 7);
+ EXPECT_STREQ(
+ xform("<D32TS>01807252[typ=2:1 mu=0:7 sev=5 len]<D64>3b4665c90a168788<D64>f9e3df9ffe1e439f<D16>000c<D64>6f77206f6c6c6548<D32>21646c72<FLAG>"),
+ MIPI_SYST_DEBUG(ph, MIPI_SYST_SEVERITY_USER1, "Hello world!" , 12)
+ );
+#endif
+}
+
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD)
+TEST_F(MipiSysTFixtureDebugString, syst_debugstring_loc)
+{
+ EXPECT_STREQ(
+ xform("<D32TS>01012332[typ=2:1 mu=1:2 sev=3 loc len]<D8>00<D32>5678abcd<D16>000c<D64>6f77206f6c6c6548<D32>21646c72<FLAG>"),
+ MIPI_SYST_DEBUG_LOC16(ph, MIPI_SYST_SEVERITY_WARNING, 0xabcd, "Hello world!" , 12)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>01012332[typ=2:1 mu=1:2 sev=3 loc len]<D8>01<D64>123456780000abcd<D16>000c<D64>6f77206f6c6c6548<D32>21646c72<FLAG>"),
+ MIPI_SYST_DEBUG_LOC32(ph, MIPI_SYST_SEVERITY_WARNING,0xabcd, "Hello world!" , 12)
+ );
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_ADDRESS)
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ EXPECT_STREQ(
+ xform("<D32TS>01012332[typ=2:1 mu=1:2 sev=3 loc len]<D8>03<D64>12345678aabbccdd<D16>000c<D64>6f77206f6c6c6548<D32>21646c72<FLAG>"),
+ MIPI_SYST_DEBUG_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, "Hello world!" , 12)
+ );
+#else
+ EXPECT_STREQ(
+ xform("<D32TS>01012332[typ=2:1 mu=1:2 sev=3 loc len]<D8>02<D32>12345678<D16>000c<D64>6f77206f6c6c6548<D32>21646c72<FLAG>"),
+ MIPI_SYST_DEBUG_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, "Hello world!" , 12)
+ );
+#endif
+#endif //MIPI_SYST_PCFG_ENABLE_LOCATION_ADDRESS
+}
+#endif //MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD
+
+TEST_F(MipiSysTFixtureDebugString, syst_debugstring_nolength)
+{
+ MIPI_SYST_ENABLE_HANDLE_LENGTH(ph,0);
+ EXPECT_STREQ(
+ xform("<D32TS>01012032[typ=2:1 mu=1:2 sev=3]<D64>6f77206f6c6c6548<D32>21646c72<FLAG>"),
+ MIPI_SYST_DEBUG(ph, MIPI_SYST_SEVERITY_WARNING, "Hello world!" , 12)
+ );
+
+ MIPI_SYST_ENABLE_HANDLE_LENGTH(ph,1);
+
+ EXPECT_STREQ(
+ xform("<D32TS>01012232[typ=2:1 mu=1:2 sev=3 len]<D16>000c<D64>6f77206f6c6c6548<D32>21646c72<FLAG>"),
+ MIPI_SYST_DEBUG(ph, MIPI_SYST_SEVERITY_WARNING, "Hello world!" , 12)
+ );
+}
+
+TEST_F(MipiSysTFixtureDebugString, syst_func_enter)
+{
+ EXPECT_STREQ(
+ xform("<D32TS>02012242[typ=2:2 mu=1:2 sev=4 len]<D16>000b<D64>3736353433323130<D16>3938<D8>00<FLAG>"),
+ MIPI_SYST_FUNC_ENTER(ph, MIPI_SYST_SEVERITY_INFO)
+ );
+
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD)
+ EXPECT_STREQ(
+ xform("<D32TS>02012342[typ=2:2 mu=1:2 sev=4 loc len]<D8>00<D32>5678abcd<D16>000b<D64>3736353433323130<D16>3938<D8>00<FLAG>"),
+ MIPI_SYST_FUNC_ENTER_LOC16(ph, MIPI_SYST_SEVERITY_INFO,0xabcd)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>02012342[typ=2:2 mu=1:2 sev=4 loc len]<D8>01<D64>123456780000abcd<D16>000b<D64>3736353433323130<D16>3938<D8>00<FLAG>"),
+ MIPI_SYST_FUNC_ENTER_LOC32(ph, MIPI_SYST_SEVERITY_INFO,0xabcd)
+ );
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_ADDRESS)
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ EXPECT_STREQ(
+ xform("<D32TS>02012342[typ=2:2 mu=1:2 sev=4 loc len]<D8>03<D64>12345678aabbccdd<D16>000b<D64>3736353433323130<D16>3938<D8>00<FLAG>"),
+ MIPI_SYST_FUNC_ENTER_LOCADDR(ph, MIPI_SYST_SEVERITY_INFO)
+ );
+#else
+ EXPECT_STREQ(
+ xform("<D32TS>02012342[typ=2:2 mu=1:2 sev=4 loc len]<D8>02<D32>12345678<D16>000b<D64>3736353433323130<D16>3938<D8>00<FLAG>"),
+ MIPI_SYST_FUNC_ENTER_LOCADDR(ph, MIPI_SYST_SEVERITY_INFO)
+ );
+#endif //MIPI_SYST_PCFG_ENABLE_64BIT_ADDR
+#endif //MIPI_SYST_PCFG_ENABLE_LOCATION_ADDRESS
+#endif //MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD
+}
+
+TEST_F(MipiSysTFixtureDebugString, syst_func_exit)
+{
+ EXPECT_STREQ(
+ xform("<D32TS>03012242[typ=2:3 mu=1:2 sev=4 len]<D16>000b<D64>3736353433323130<D16>3938<D8>00<FLAG>"),
+ MIPI_SYST_FUNC_EXIT(ph, MIPI_SYST_SEVERITY_INFO)
+ );
+
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD)
+ EXPECT_STREQ(
+ xform("<D32TS>03012342[typ=2:3 mu=1:2 sev=4 loc len]<D8>00<D32>5678abcd<D16>000b<D64>3736353433323130<D16>3938<D8>00<FLAG>"),
+ MIPI_SYST_FUNC_EXIT_LOC16(ph, MIPI_SYST_SEVERITY_INFO,0xabcd)
+ );
+
+ EXPECT_STREQ(
+ xform("<D32TS>03012342[typ=2:3 mu=1:2 sev=4 loc len]<D8>01<D64>123456780000abcd<D16>000b<D64>3736353433323130<D16>3938<D8>00<FLAG>"),
+ MIPI_SYST_FUNC_EXIT_LOC32(ph, MIPI_SYST_SEVERITY_INFO,0xabcd)
+ );
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_ADDRESS)
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ EXPECT_STREQ(
+ xform("<D32TS>03012342[typ=2:3 mu=1:2 sev=4 loc len]<D8>03<D64>12345678aabbccdd<D16>000b<D64>3736353433323130<D16>3938<D8>00<FLAG>"),
+ MIPI_SYST_FUNC_EXIT_LOCADDR(ph, MIPI_SYST_SEVERITY_INFO)
+ );
+#else
+ EXPECT_STREQ(
+ xform("<D32TS>03012342[typ=2:3 mu=1:2 sev=4 loc len]<D8>02<D32>12345678<D16>000b<D64>3736353433323130<D16>3938<D8>00<FLAG>"),
+ MIPI_SYST_FUNC_EXIT_LOCADDR(ph, MIPI_SYST_SEVERITY_INFO)
+ );
+#endif //MIPI_SYST_PCFG_ENABLE_64BIT_ADDR
+#endif //MIPI_SYST_PCFG_ENABLE_LOCATION_ADDRESS
+#endif //MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD
+}
+
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD)
+TEST_F(MipiSysTFixtureDebugString, syst_debug_assert)
+{
+ MIPI_SYST_ASSERT(ph, MIPI_SYST_SEVERITY_ERROR, 0);
+
+ EXPECT_STREQ(
+ xform("<D32TS>07012222[typ=2:7 mu=1:2 sev=2 len]<D16>0018<D64>7473657474696e75<D64>33323178303a632e<D64>0030203837363534<FLAG>"),
+ result.c_str()
+ );
+
+ result = "";
+ MIPI_SYST_ASSERT(ph, MIPI_SYST_SEVERITY_ERROR, 1);
+
+ EXPECT_STREQ(
+ "",
+ result.c_str()
+ );
+
+#if defined(MIPI_SYST_PCFG_ENABLE_LOCATION_ADDRESS)
+ MIPI_SYST_ASSERT_LOCADDR(ph, MIPI_SYST_SEVERITY_ERROR, 0);
+#if defined(MIPI_SYST_PCFG_ENABLE_64BIT_ADDR)
+ EXPECT_STREQ(
+ xform("<D32TS>07012322[typ=2:7 mu=1:2 sev=2 loc len]<D8>03<D64>12345678aabbccdd<D16>0018<D64>7473657474696e75<D64>33323178303a632e<D64>0030203837363534<FLAG>"),
+ result.c_str()
+ );
+#else
+ EXPECT_STREQ(
+ xform("<D32TS>07012322[typ=2:7 mu=1:2 sev=2 loc len]<D8>02<D32>12345678<D16>0018<D64>7473657474696e75<D64>33323178303a632e<D64>0030203837363534<FLAG>"),
+ result.c_str()
+ );
+#endif
+ result = "";
+ MIPI_SYST_ASSERT_LOCADDR(ph, MIPI_SYST_SEVERITY_ERROR, 1);
+
+ EXPECT_STREQ(
+ "",
+ result.c_str()
+ );
+#endif //MIPI_SYST_PCFG_ENABLE_LOCATION_ADDRESS
+
+ MIPI_SYST_ASSERT_LOC16(ph, MIPI_SYST_SEVERITY_ERROR, 0xabcd, 0);
+
+ EXPECT_STREQ(
+ xform("<D32TS>07012322[typ=2:7 mu=1:2 sev=2 loc len]<D8>00<D32>5678abcd<D16>0018<D64>7473657474696e75<D64>33323178303a632e<D64>0030203837363534<FLAG>"),
+ result.c_str()
+ );
+
+ result = "";
+ MIPI_SYST_ASSERT_LOC16(ph, MIPI_SYST_SEVERITY_ERROR,0xabcd, 1);
+
+ EXPECT_STREQ(
+ "",
+ result.c_str()
+ );
+
+ MIPI_SYST_ASSERT_LOC32(ph, MIPI_SYST_SEVERITY_ERROR, 0xabcd, 0);
+
+ EXPECT_STREQ(
+ xform("<D32TS>07012322[typ=2:7 mu=1:2 sev=2 loc len]<D8>01<D64>123456780000abcd<D16>0018<D64>7473657474696e75<D64>33323178303a632e<D64>0030203837363534<FLAG>"),
+ result.c_str()
+ );
+
+ result = "";
+ MIPI_SYST_ASSERT_LOC32(ph, MIPI_SYST_SEVERITY_ERROR, 0xabcd, 1);
+
+ EXPECT_STREQ(
+ "",
+ result.c_str()
+ );
+}
+#endif //MIPI_SYST_PCFG_ENABLE_LOCATION_RECORD
+
+#endif //MIPI_SYST_PCFG_ENABLE_PLATFORM_STATE_DATA && MIPI_SYST_PCFG_ENABLE_DEFAULT_SCATTER_WRITE && MIPI_SYST_PCFG_ENABLE_STRING_API \ No newline at end of file
diff --git a/printer/CMakeLists.txt b/printer/CMakeLists.txt
new file mode 100644
index 0000000..4b7aac5
--- /dev/null
+++ b/printer/CMakeLists.txt
@@ -0,0 +1,120 @@
+project (mipi_syst_printer)
+cmake_minimum_required (VERSION 2.8)
+enable_testing()
+
+# External third party build dependencies:
+# * PugiXML https://github.com/zeux/pugixml
+#
+if (NOT DEFINED PUGIXML_SRC_DIR)
+ get_filename_component(PUGIXML "${CMAKE_CURRENT_LIST_DIR}/../external/pugixml/src" ABSOLUTE)
+ set(PUGIXML_SRC_DIR "${PUGIXML}" CACHE PATH "Location of pugixml XML parser code")
+endif()
+if (NOT EXISTS "${PUGIXML_SRC_DIR}/pugixml.cpp")
+ message(FATAL_ERROR
+ "PUGIXML_SRC_DIR=${PUGIXML_SRC_DIR} does not point to pugixml sources. Try running\n"
+ "git submodule update --init --recursive\n"
+ "to populate the external folder git submodules or change PUGIXML_SRC_DIR to point to pugixml sources."
+ )
+endif()
+
+if (WIN32)
+ add_definitions(-D_CRT_SECURE_NO_WARNINGS)
+endif()
+
+set (printer_Includes
+ include/mipi_syst_collateral.h
+ include/mipi_syst_printer.h
+ include/mipi_syst_decode.h
+ include/mipi_syst_message.h
+ include/mipi_syst_guid.h
+ include/mipi_syst_printf.h
+
+ ${PUGIXML_SRC_DIR}/pugixml.hpp
+)
+
+set (printer_Sources
+ src/mipi_syst_main.cpp
+ src/mipi_syst_collateral.cpp
+ src/mipi_syst_printf.cpp
+ src/mipi_syst_decode.cpp
+ src/mipi_syst_message.cpp
+ ${PUGIXML_SRC_DIR}/pugixml.cpp
+)
+
+include_directories(
+ include
+ ${PUGIXML_SRC_DIR}
+)
+
+add_executable(systprint
+ ${printer_Includes}
+ ${printer_Sources}
+)
+
+# Request C++11 support
+#
+if (CMAKE_VERSION VERSION_LESS "3.1")
+ if (CMAKE_CXX_COMPILER_ID STREQUAL "CLANG")
+ set (CMAKE_CXX_FLAGS "-std=c++11" ${CMAKE_CXX_FLAGS})
+ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
+ message( STATUS ${CMAKE_CXX_COMPILER_ID})
+ set (CMAKE_CXX_FLAGS "-std=gnu++11" ${CMAKE_CXX_FLAGS})
+ endif()
+else()
+ set_property(TARGET systprint PROPERTY CXX_STANDARD 11)
+endif()
+
+install(TARGETS systprint
+ RUNTIME DESTINATION bin
+ LIBRARY DESTINATION lib
+ ARCHIVE DESTINATION lib
+)
+
+# Simple test that print an input file
+add_test(
+ NAME print_client_example
+ COMMAND systprint --short_guid {494E5443-8A9C-4014-A65A-2F36A36D96E4} --collateral collateral.xml input_client64.txt
+ WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/test
+)
+
+# pass option as single "^" separated option to test script to avoid CMAKE string list modifications on blanks
+#
+set(TEST_OPTIONS --short_guid {494E5443-8A9C-4014-A65A-2F36A36D96E4} --collateral collateral.xml)
+string(REPLACE ";" "^" TEST_OPTIONS "${TEST_OPTIONS}")
+
+# Compare output from 32bit client
+#
+add_test(
+ NAME diff_output_with_32bit_reference
+ COMMAND ${CMAKE_COMMAND}
+ -DEXECUTABLE=$<TARGET_FILE:systprint>
+ -DOPTIONS=${TEST_OPTIONS}^input_client32.txt
+ -DTEST_REFERENCE=output_client32.txt
+ -DTEST_OUTPUT=${CMAKE_CURRENT_BINARY_DIR}/output32.txt
+ -P ${CMAKE_CURRENT_SOURCE_DIR}/test/diff.cmake
+ WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/test
+)
+
+# Compare output from 64bit client
+#
+add_test(
+ NAME diff_output_with_64bit_reference
+ COMMAND ${CMAKE_COMMAND}
+ -DEXECUTABLE=$<TARGET_FILE:systprint>
+ -DOPTIONS=${TEST_OPTIONS}^input_client64.txt
+ -DTEST_REFERENCE=output_client64.txt
+ -DTEST_OUTPUT=${CMAKE_CURRENT_BINARY_DIR}/output64.txt
+ -P ${CMAKE_CURRENT_SOURCE_DIR}/test/diff.cmake
+ WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/test
+)
+# Add verbose test target to show the output of the tools run by tests
+#
+if (CMAKE_CONFIGURATION_TYPES)
+ add_custom_target(RUN_TEST_VERBOSE COMMAND ${CMAKE_CTEST_COMMAND}
+ --force-new-ctest-process --verbose
+ --build-config "$<CONFIGURATION>")
+else()
+ add_custom_target(RUN_TEST_VERBOSE COMMAND ${CMAKE_CTEST_COMMAND}
+ --force-new-ctest-process --verbose)
+endif()
+
diff --git a/printer/include/mipi_syst_collateral.h b/printer/include/mipi_syst_collateral.h
new file mode 100644
index 0000000..86b95e6
--- /dev/null
+++ b/printer/include/mipi_syst_collateral.h
@@ -0,0 +1,204 @@
+/*
+ Copyright (c) 2018, MIPI Alliance, Inc.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+ * Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Contributors:
+ * Norbert Schulz (Intel Corporation) - Initial API and implementation
+ */
+#ifndef MIPI_SYST_COLLATERL_H_included
+#define MIPI_SYST_COLLATERL_H_included
+
+#include <string>
+#include <map>
+#include <vector>
+#include <cstdint>
+#include <algorithm>
+
+#include "pugixml.hpp"
+#include "mipi_syst_printer.h"
+#include "mipi_syst_guid.h"
+
+MIPI_SYST_NAMESPACE_BEGIN
+class guid;
+
+class collateral {
+public:
+ const std::string& getName() const { return m_name;}
+ const std::string& getFileName() const { return m_file; }
+
+ /// Check if the given guid matches one of the catalog guid/mask pairs
+ ///
+ /// @param guid to check catalog for
+ /// @param build client build number
+ /// @return true if catalog matches, false otherwise
+ ///
+ bool match(const guid & g, const uint64_t build) const;
+
+ static std::vector<collateral*> parseXml(const std::string& filename);
+
+ struct sourcepos {
+ sourcepos(uint32_t file, uint32_t line) :
+ m_file(file), m_line(line) {};
+
+ uint32_t m_file = 0;
+ uint32_t m_line = 0;
+ };
+
+ /// Message entry for ID->MSG catalogs
+ ///
+ template<typename T> struct catalogentry : public sourcepos {
+ std::string msg;
+ T mask;
+
+ catalogentry(std::string s ="", T mask = (T)-1, uint32_t file = 0, uint32_t line=0)
+ : sourcepos(file, line), msg(s)
+ {}
+
+ bool operator!=(const catalogentry& other) {
+ return msg != other.msg;
+ }
+ };
+
+ /// Container for (key:mask:value tuples
+ ///
+ template<typename K, typename V> struct masked_item
+ {
+ masked_item() {}
+ masked_item(const K& k, const K& m, const V& v) :
+ m_key(k), m_mask(m), m_value(v) {}
+
+ K& key() { return m_key; }
+ K& mask() {return m_mask;}
+ V& value() {return m_value;}
+
+ const K& key() const { return m_key; }
+ const K& mask() const { return m_mask; }
+ const V& value() const { return m_value; }
+
+ private:
+ K m_key;
+ K m_mask;
+ V m_value;
+ };
+
+ template<typename K, typename V>
+ class masked_vector : public std::vector<masked_item<K, V>>
+ {
+ public:
+ typedef std::vector<masked_item<K, V>> base_type;
+
+ /// Find key in item vector using item mask when comparing (const)
+ ///
+ /// @param k key to look for
+ /// @return iterator to matching element or end() if not found
+ ///
+ typename base_type::const_iterator
+ find(const K& k) const
+ {
+ return std::find_if(base_type::begin(), base_type::end(),
+ [& k](const masked_item<K, V>& v)
+ {
+ return (v.key() & v.mask()) == (k & v.mask());
+ }
+ );
+ }
+
+
+ /// Find key in item vector using item mask when comparing
+ ///
+ /// @param k key to look for
+ /// @return iterator to matching element or end() if not found
+ ///
+ typename base_type::iterator
+ find(const K& k)
+ {
+ return std::find_if(base_type::begin(), base_type::end(),
+ [&k]( masked_item<K, V>& v)
+ {
+ return (v.key() & v.mask()) == (k & v.mask());
+ }
+ );
+ }
+ };
+
+ /// container for ID <-> value mapping sections in collateral
+ ///
+ using guids = masked_vector<guid, std::string>;
+ using builds = masked_vector<uint64_t, std::string>;
+ using srcfiles = masked_vector<uint32_t, std::string>;
+ using origins = masked_vector<uint32_t, std::string>;
+ using writetypes = masked_vector<uint8_t, std::string>;
+ using catalog32 = masked_vector<uint32_t, catalogentry<uint32_t>>;
+ using catalog64 = masked_vector<uint64_t, catalogentry<uint64_t>>;
+
+ template<typename T> const catalogentry<T> * getShortEntry(T id) const;
+ template<typename T> const catalogentry<T> * getCatalogEntry(T id) const;
+
+ const std::string * getSourceFile(uint32_t id) const;
+ const std::string * getWriteType(uint8_t id) const;
+
+
+ /// Parse collateral from XML
+ ///
+ collateral(pugi::xml_node& node, const std::string& file);
+
+ template<typename K, typename V>
+ void parseMaskedItems(
+ pugi::xml_node root,
+ const char * tag,
+ masked_vector<K, V>& dest);
+private:
+ std::string m_file; /**< originating file name */
+
+ std::string m_name; /**< catalog name */
+ guids m_guids; /**< Guids where the collateral is valid */
+ builds m_builds; /**< builds where the collateral is valid */
+ catalog32 m_msgs32; /**< message catalog with 32bit ID's */
+ catalog64 m_msgs64; /**< message catalog with 64bit ID's */
+ catalog32 m_shorts32; /**< short event id to message mapping */
+ catalog64 m_shorts64; /**< short event id to message mapping */
+ writetypes m_writeTypes; /**< write definitions */
+ srcfiles m_files; /**< file catalog */
+ origins m_modules; /**< module id to name mappings */
+
+
+private:
+ /* no copy, assign */
+ collateral() = delete;
+ collateral(const collateral&) = delete;
+ collateral& operator=(const collateral&) = delete;
+};
+
+MIPI_SYST_NAMESPACE_END
+
+#endif // MIPI_SYST_COLLATERL_H_included
diff --git a/printer/include/mipi_syst_decode.h b/printer/include/mipi_syst_decode.h
new file mode 100644
index 0000000..50dd84b
--- /dev/null
+++ b/printer/include/mipi_syst_decode.h
@@ -0,0 +1,187 @@
+/*
+ Copyright (c) 2018, MIPI Alliance, Inc.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+ * Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Contributors:
+ * Norbert Schulz (Intel Corporation) - Initial API and implementation
+ */
+
+#ifndef MIPI_SYST_DECODE_H_included
+#define MIPI_SYST_DECODE_H_included
+
+#include <vector>
+#include "mipi_syst_printer.h"
+#include "mipi_syst_collateral.h"
+#include "mipi_syst_message.h"
+
+MIPI_SYST_NAMESPACE_BEGIN
+
+class message;
+class collateral;
+
+/// Base class for decoding exceptions
+//
+class decode_exception {
+public:
+ decode_exception(message::decode_state s,
+ const std::string& what = std::string())
+ : state(s), msg(what)
+ {}
+ virtual ~decode_exception() {};
+
+ virtual const std::string& what() const { return msg; }
+ message::decode_state get_state() const { return state; }
+
+protected:
+ message::decode_state state;
+ std::string msg;
+};
+
+
+class tooshort_exception : public decode_exception
+{
+public:
+ tooshort_exception() :
+ decode_exception(message::decode_state::TOO_SHORT) {}
+};
+class toolong_exception : public decode_exception
+{
+public:
+ toolong_exception() :
+ decode_exception(message::decode_state::TOO_LONG) {}
+};
+class unknown_type_exception : public decode_exception
+{
+public:
+ unknown_type_exception() :
+ decode_exception(message::decode_state::UNKNOWN_TYPE) {}
+};
+
+class crc_error_exception : public decode_exception
+{
+public:
+ crc_error_exception() :
+ decode_exception(message::decode_state::CHECKSUM_ERROR) {}
+};
+
+class missing_collateral_exception : public decode_exception
+{
+public:
+ missing_collateral_exception() :
+ decode_exception(message::decode_state::MISSING_COLLATERAL) {}
+};
+
+/// Decode context information.
+//
+// This class is delivering timstamp and identifcation information as
+// side-band data.
+// Context based message identification is needed for client identification
+// if messages don't carry GUID information as part of the message data.
+// Short messages are one example for such messages. In this case
+// collateral matching relies on side-band information. In systems using
+// MIPI System Trace Protocol (STP), the master and channel 16-bit values
+// are typically used for this purpose.
+// A timestamp is often also provided through a transport protocol and not
+// embedded into SyS-T messages.
+//
+class decode_context {
+public:
+ virtual const guid& getGuid() const = 0; ///< get context based guid
+ virtual uint64_t getTS() const = 0; ///< get context timestamp
+ virtual ~decode_context() {}
+};
+
+/// MIPI SyS-T data protocol decoder
+//
+// This class is decoding a sequence of bytes that represent one SyS-T message into
+// a message data structure for post processing.
+//
+class decoder {
+public:
+ /// Parse given file as a SyS-T collateral XML file
+ //
+ // Parse and add provided file as SyS-T collateral data. The function
+ // throws an exception if the XML is malformed.
+ //
+ // @param file filename to load
+ //
+ void loadCollateral(const std::string& file);
+
+ /// Store Build ID for given GUID
+ //
+ // Cache build ID for given GUID to make collateral matching "build number"
+ // aware. If a build ID was seen, the decode looks for collateral matching this
+ // one.
+ //
+ // @param id 64-Bit build number to remember
+ // @param g client guid associated with this build number
+ //
+ void setBuildNumber(uint64_t id, const guid& g) const;
+
+ /// Decode single SyS-T raw binary message
+ //
+ // @param dest message data structed holding decode result
+ // @param data raw data bytes representing one SyS-T message
+ //
+ // @return true on success
+ //
+ bool decode(message& dest, const std::vector<uint8_t>& data, const decode_context * ctx) const;
+
+private:
+ bool decodeShortMessage(message& dest, const uint8_t *data, uint32_t length, const decode_context * ctx) const;
+ bool decodeNormalMessage(message& dest, const uint8_t *data, uint32_t length, const decode_context * ctx) const;
+
+ void decodeBuildPayload(message& dest, const uint8_t * data, uint32_t len) const;
+ void decodeStringPayload(message& dest, const uint8_t * data, uint32_t len) const;
+ void decodeCatalogPayload(message& dest, const uint8_t * data, uint32_t len) const;
+ void decodeRawPayload(message& dest, const uint8_t * data, uint32_t len) const;
+ void decodeInvalidType(message& dest, const uint8_t * data, uint32_t len) const;
+
+
+ collateral * findCollateral(const guid& m) const;
+
+ static guid generatePseudoGuid(uint8_t origin);
+ static uint32_t getCrc32(const uint8_t * data, size_t len);
+
+ std::vector<collateral*> collaterals;
+ mutable std::map<guid, collateral*> collateral_by_guid;
+ mutable std::map<guid, uint64_t> build_by_guid;
+ typedef void (decoder::*decode_payload_f)(message&, const uint8_t *, uint32_t len) const;
+
+ static decode_payload_f payloadDecode[16];
+ static const uint32_t crc32c_table[256];
+};
+
+MIPI_SYST_NAMESPACE_END
+
+#endif // MIPI_SYST_PRINTER_H_included
diff --git a/printer/include/mipi_syst_guid.h b/printer/include/mipi_syst_guid.h
new file mode 100644
index 0000000..4ce5e53
--- /dev/null
+++ b/printer/include/mipi_syst_guid.h
@@ -0,0 +1,116 @@
+/*
+ Copyright (c) 2018, MIPI Alliance, Inc.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+ * Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Contributors:
+ * Norbert Schulz (Intel Corporation) - Initial API and implementation
+ */
+
+#ifndef MIPI_SYST_GUID_H_included
+#define MIPI_SYST_GUID_H_included
+
+#include <string>
+#include <stdexcept>
+#include "mipi_syst_printer.h"
+
+
+MIPI_SYST_NAMESPACE_BEGIN
+
+/// Container for 128 bit wide GUID (see https://www.ietf.org/rfc/rfc4122.txt)
+//
+class guid {
+public:
+ union {
+ uint8_t b[16];
+ uint64_t ll[2];
+ } u;
+
+ guid()
+ {
+ u.ll[0] = u.ll[1] = 0;
+ }
+
+ guid(const uint8_t * p)
+ {
+ u.ll[0] = *(uint64_t*)p;
+ u.ll[1] = *(uint64_t*)(p+sizeof(uint64_t));
+ }
+
+ guid(const std::string& f)
+ {
+ if (!parse(f)) {
+ throw std::invalid_argument(
+ "invalid guid format " +
+ f +
+ " expected {xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} notation."
+ );
+ }
+ }
+
+ /** Helper to parse a GUID "{...}" string into the binrary representation.
+ * @param str GUID ascii string
+ * @param guid resulting guid
+ * @return true if guid could be parserd
+ */
+ bool parse(const std::string& fmt);
+
+ bool operator<(const guid& other) const
+ {
+ if (u.ll[0] == other.u.ll[0]) {
+ return u.ll[1] < other.u.ll[1];
+ } else {
+ return u.ll[0] < other.u.ll[0];
+ }
+ }
+
+ guid operator&(const guid& mask) const
+ {
+ guid result(*this);
+
+ result.u.ll[0] &= mask.u.ll[0];
+ result.u.ll[1] &= mask.u.ll[1];
+
+ return result;
+ }
+
+ bool operator==(const guid& other) const
+ {
+ return u.ll[0] == other.u.ll[0] && u.ll[1] == other.u.ll[1];
+ }
+};
+
+std::ostream& operator<<(std::ostream& os, const guid& guid);
+
+MIPI_SYST_NAMESPACE_END
+
+#endif // MIPI_SYST_COLLATERL_H_included
diff --git a/printer/include/mipi_syst_message.h b/printer/include/mipi_syst_message.h
new file mode 100644
index 0000000..b43c5b1
--- /dev/null
+++ b/printer/include/mipi_syst_message.h
@@ -0,0 +1,228 @@
+/*
+ Copyright (c) 2018, MIPI Alliance, Inc.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+ * Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Contributors:
+ * Norbert Schulz (Intel Corporation) - Initial API and implementation
+ */
+
+#ifndef MIPI_SYST_MESSAGE_H_included
+#define MIPI_SYST_MESSAGE_H_included
+
+#include <cstdint>
+#include <string>
+#include <vector>
+#include <ostream>
+
+#include "mipi_syst_printer.h"
+#include "mipi_syst_guid.h"
+
+MIPI_SYST_NAMESPACE_BEGIN
+
+class collateral;
+
+/// Internal representation of a decoded SyS-T message
+///
+class message {
+public:
+ enum decode_state {
+ OK = 0,
+ UNKNOWN_TYPE = 1,
+ TOO_SHORT = 2,
+ TOO_LONG = 3,
+ CHECKSUM_ERROR = 4,
+ MISSING_COLLATERAL = 5
+ };
+
+ union header {
+ public:
+ struct fields {
+#if defined(MIPI_SYST_BIG_ENDIAN)
+ uint32_t res31 : 1; ///< reserved, must be 0
+ uint32_t res30 : 1; ///< reserved, must be 0
+ uint32_t subtype : 6; ///< type dependent sub category
+ uint32_t guid : 1; ///< 128 bit GUID present
+ uint32_t originUnit : 11; ///< unit for GUID or module:unit pair
+ uint32_t timestamp : 1; ///< indicate 64 bit timestamp
+ uint32_t chksum : 1; ///< indicate 32bit CRC
+ uint32_t length : 1; ///< indicate variable length message
+ uint32_t location : 1; ///< indicate location information
+ uint32_t res7 : 1; ///<reserved, must be 0
+ uint32_t severity : 3; ///< severity level of message
+ uint32_t type : 4; ///< SyS-T message type ID
+#else
+ uint32_t type : 4; ///< SyS-T message type ID
+ uint32_t severity : 3; ///< severity level of message
+ uint32_t res7 : 1; /// <reserved, must be 0
+ uint32_t location : 1; ///< indicate location information
+ uint32_t length : 1; ///< indicate variable length message
+ uint32_t chksum : 1; ///< indicate 32bit CRC
+ uint32_t timestamp : 1; ///< indicate 64 bit timestamp
+ uint32_t originUnit : 11; ///< unit for GUID or module:unit pair
+ uint32_t guid : 1; ///< 128 bit GUID present
+ uint32_t subtype : 6; ///< type dependent sub category
+ uint32_t res30 : 1; ///< reserved, must be 0
+ uint32_t res31 : 1; ///< reserved, must be 0
+#endif
+ } field;
+ uint32_t val;
+
+ header(uint32_t v = 0) : val(v) {};
+ };
+
+ enum location_type {
+ NONE = 0,
+ ADDRESS32 = (1<<1),
+ ADDRESS64 = (1<<2),
+ IDANDLINE = (1<<3)
+ };
+
+ struct location {
+ uint32_t tag;
+ uint64_t address;
+ uint32_t file;
+ uint32_t line;
+
+ location() : tag(0), address(0), file(0), line(0) {}
+ };
+
+ enum type {
+ BUILD = 0, ///< client build version messages
+ SHORT32 = 1, ///< tag only message
+ STRING = 2, ///< text message output
+ CATALOG = 3, ///< catalog message output
+ RAW = 6, ///< raw binary data
+ SHORT64 = 7, ///*< raw binary data
+ CLOCK = 8, ///< clock sync records
+ };
+ enum subtype_build {
+ BUILD_COMPACT32 = 0, ///< 32 bit compressed version record
+ BUILD_COMPACT64 = 1, ///< 64 bit compressed version record
+ BUILD_LONG = 2 ///< complete version record
+ };
+
+ enum subtype_string {
+ STRING_GENERIC = 1, ///< string generic debug
+ STRING_FUNCTIONENTER = 2, ///< string is function name
+ STRING_FUNCTIONEXIT = 3, ///< string is function name
+ STRING_INVALIDPARAM = 5, ///< invalid SyS-T APIcall
+ STRING_ASSERT = 7, ///< Software Assert: failure
+ STRING_PRINTF_32 = 11, ///< printf support 32bit packing
+ STRING_PRINTF_64 = 12 ///< printf support 64bit packing
+ };
+
+ enum subtype_catalog {
+ CATALOG_ID32_P32 = 1, ///< 32 bit catalog ID, 32 bit packing
+ CATALOG_ID64_P32 = 2, ///< 64 bit catalog ID, 32 bit packing
+ CATALOG_ID32_P64 = 5, ///< 32 bit catalog ID, 64 bit packing
+ CATALOG_ID64_P64 = 6 ///< 64 bit catalog ID, 64 bit packing
+ };
+ enum subtype_clock {
+ CLOCK_SYNC = 1 ///< HW clock &frequency sync
+ };
+
+ enum severity {
+ SEVERITY_MAX = 0, ///< no assigined severity
+ SEVERITY_FATAL = 1, ///< critical error level
+ SEVERITY_ERROR = 2, ///< error message level
+ SEVERITY_WARNING = 3, ///< warning message level
+ SEVERITY_INFO = 4, ///< information message level
+ SEVERITY_USER1 = 5, ///< user defined level 5
+ SEVERITY_USER2 = 6, ///< user defined level 6
+ SEVERITY_DEBUG = 7 ///< debug information level
+ };
+
+
+public:
+
+ message() : m_state(UNKNOWN_TYPE), m_build(0) {}
+
+ void setHeader(uint32_t val) { m_hdr.val = val; }
+ void setStatus(const decode_state& s) { m_state = s; }
+ void setPayload(const std::string& s) { m_payload = s; }
+ void setType(uint32_t val) { m_hdr.field.type = val; }
+ void setSubType(uint32_t val) { m_hdr.field.subtype = val; }
+ void setGuid(const guid& g) { m_guid = g; }
+ void setBuild(uint64_t b) { m_build = b; }
+ void setCrc(const uint32_t c) { m_crc = c; }
+ void setLength(const uint32_t l) { m_length = l; }
+ void setClientName(const std::string& s) { m_clientname = s; }
+ void setCollateral(const collateral *c ) { m_coll = c; }
+
+ void setLocAddr32(uint32_t addr);
+ void setLocAddr64(uint64_t addr);
+ void setLocFileLine(uint32_t file, uint32_t line);
+
+ void setMessageTS(uint64_t ts) { m_msgTS = ts; }
+ void setContextTS(uint64_t ts) { m_ctxTS = ts; }
+
+ const header& getHeader() const { return m_hdr; }
+ const std::string& getPayload() const { return m_payload; }
+ const decode_state& getState() const { return m_state; }
+ const guid& getGuid() const { return m_guid; }
+ const location& getLocation() const { return m_loc; }
+ const uint32_t getCrc() const { return m_crc; }
+ const uint32_t getLength() const { return m_length; }
+ const std::string& getClientName() const { return m_clientname; }
+ const collateral * getCollateral() const { return m_coll; }
+ uint8_t getHeaderOrigin() const { return (uint8_t)(m_hdr.field.originUnit >> 4); }
+ uint32_t getUnit() const {
+ return m_hdr.field.guid ? m_hdr.field.originUnit : (m_hdr.field.originUnit & 0xF);
+ }
+ uint64_t getMessageTS() const{ return m_msgTS; }
+ uint64_t getContextTS()const { return m_ctxTS; }
+ uint64_t getBuild() const { return m_build; }
+ bool isShort() const { return isShort(getHeader()); };
+
+ static bool isShort(header hdr);
+ static const char csvHeaderString[];
+private:
+ decode_state m_state;
+
+ header m_hdr;
+ uint64_t m_msgTS;
+ uint64_t m_ctxTS;
+ uint64_t m_build;
+ guid m_guid;
+ location m_loc;
+ std::string m_payload;
+ std::string m_clientname;
+ uint32_t m_length;
+ uint32_t m_crc;
+ const collateral * m_coll;
+};
+
+std::ostream& operator<<(std::ostream& os, const message& msg);
+MIPI_SYST_NAMESPACE_END
+
+#endif // MIPI_SYST_MESSAGE_H_included
diff --git a/printer/include/mipi_syst_printer.h b/printer/include/mipi_syst_printer.h
new file mode 100644
index 0000000..5ad838f
--- /dev/null
+++ b/printer/include/mipi_syst_printer.h
@@ -0,0 +1,183 @@
+/*
+ Copyright (c) 2018, MIPI Alliance, Inc.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+ * Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Contributors:
+ * Norbert Schulz (Intel Corporation) - Initial API and implementation
+ */
+
+#ifndef MIPI_SYST_PRINTER_H_included
+#define MIPI_SYST_PRINTER_H_included
+
+#include <cstdint>
+#include <string>
+#include <sstream>
+#include <iomanip>
+
+
+// Is Host Big Endian ?
+//
+#if defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
+#define MIPI_SYST_BIG_ENDIAN
+#endif
+
+#define MIPI_SYST_NAMESPACE ::mipi::syst
+#define MIPI_SYST_NAMESPACE_BEGIN namespace mipi { namespace syst {
+#define MIPI_SYST_NAMESPACE_END }}
+
+#define MIPI_SYST_NAMESPACE_USE using namespace MIPI_SYST_NAMESPACE
+
+MIPI_SYST_NAMESPACE_BEGIN
+
+/// This function template attempts to convert a string into a numeric value.
+///
+/// Hexadecimal and decimal numbers are supported.
+/// Hexadecimal values are expected to be prefixed with "0x"; without
+/// this prefix the string is interpreted as a decimal value.
+/// @param num_str the string to convert to a number
+/// @param num the converted number will be stored in here
+/// @return true if the conversion was successful, false otherwise
+///
+template<class Type>
+bool stringToNum(const std::string& num_str, Type& num)
+{
+ const std::string terminator("@");
+ std::string tail;
+ std::stringstream sstr;
+
+ sstr << num_str << terminator;
+ auto base(num_str.find("0x") ? std::dec : std::hex);
+
+ if (sizeof(Type) == 1) {
+ // workaround for byte type assignment to use numbers not characters
+ //
+ uint32_t temp;
+ sstr >> base >> temp >> tail;
+ num = (Type)temp;
+ } else {
+ sstr >> base >> num >> tail;
+ }
+ if (tail != terminator)
+ {
+ return false;
+ }
+ return !sstr.fail();
+}
+
+template<class T> std::string toHexValue(T val)
+{
+ std::stringstream sstr;
+
+ sstr << "0x"
+ << std::hex << std::uppercase
+ << std::setfill('0') << std::setw(sizeof(T) * 2)
+ << val;
+
+ return sstr.str();
+}
+
+/// Helper to extract little endian values of sizeof(T) from a byte array
+///
+template<class T> T bytes2ValLE(const void * p)
+{
+ const uint8_t* data((const uint8_t*)p);
+ T result(0);
+
+ for (size_t i(0); i < sizeof(T); ++i) {
+ result |= (T)(*data++) << (i * 8);
+ }
+ return result;
+}
+
+/// Call the host libc printf for the formatting of one argument
+/// to ensure compliance with C99 printf format rules.
+/// The function needs to support 3 different call types.
+/// One argument may use up to 2 star '*' format options
+/// to dynamically change width and precisions.
+///
+template<class T> bool hostPrintf(
+ std::stringstream& dest,
+ const std::string& format, T value, const std::vector<int>& starArgs)
+{
+ int result(0);
+ char buf[64 * 1024];
+
+ // Map to native printf API on host system.
+ // The "_set_printf_count_output() is a Windows special. Without it
+ // a call the msvcrt runtime throws a SEH exception on %n usage as
+ // part of security enhancements. We can safely allow %n
+ // as the message printf treats it as a nop.
+ //
+#if defined(_WIN32)
+ int(*nativeSprintf)(char * data, size_t buffer, const char * format, ...) = _snprintf;
+ int saved_flag(_set_printf_count_output(1));
+#else
+ int(*nativeSprintf)(char * data, size_t buffer, const char * format, ...) = snprintf;
+#endif
+
+ switch (starArgs.size()) {
+ case 0:
+ result = nativeSprintf(buf, sizeof(buf), format.c_str(), value);
+ break;
+ case 1:
+ result = nativeSprintf(buf, sizeof(buf), format.c_str(), starArgs[0], value);
+ break;
+ case 2:
+ result = nativeSprintf(buf, sizeof(buf), format.c_str(), starArgs[0], starArgs[1], value);
+ break;
+ default:
+ result = -1; // format error, too many stars seen in argument format
+ break;
+ }
+
+#if defined(_WIN32)
+ _set_printf_count_output(saved_flag);
+#endif
+
+ if (result < 0) {
+ dest << " - invalid format '" << format << "' in printf";
+ }
+ else if (result >= sizeof(buf)) {
+ dest << " - printf result using format '" << format << "' is too large";
+ }
+ else {
+ dest << buf;
+ return true;
+ }
+
+ return false;
+}
+
+MIPI_SYST_NAMESPACE_END
+
+#endif // MIPI_SYST_PRINTER_H_included
diff --git a/printer/include/mipi_syst_printf.h b/printer/include/mipi_syst_printf.h
new file mode 100644
index 0000000..cbe0bbf
--- /dev/null
+++ b/printer/include/mipi_syst_printf.h
@@ -0,0 +1,203 @@
+/*
+ Copyright (c) 2018, MIPI Alliance, Inc.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+ * Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Contributors:
+ * Norbert Schulz (Intel Corporation) - Initial API and implementation
+ */
+
+#ifndef MIPI_SYST_PRINTF_H_included
+#define MIPI_SYST_PRINTF_H_included
+
+#include <string>
+#include <stdint.h>
+#include <vector>
+
+#include "mipi_syst_printer.h"
+
+MIPI_SYST_NAMESPACE_BEGIN
+
+/// Finite state machine parser to parse printf format strings used in catalog
+/// and printf messages. It detects if we got a string embedded with formats like
+/// this:
+/// %[flags][width][.precision][length]specifier
+///
+/// flags: - + (space) # 0
+/// width: (number) *
+/// precision: .(number) .*
+/// length: hh h l ll j z t L
+/// specifier: d i u o x X f F e E g G a A c s p n
+///
+/// details: http://www.cplusplus.com/reference/cstdio/printf/
+///
+class fmtscanner
+{
+public:
+ fmtscanner(bool is32Bit) :
+ SIZEOF_PTR(is32Bit ? 4 : 8),
+ SIZEOF_INT(4),
+ SIZEOF_LONG(is32Bit ? 4 : 8),
+ SIZEOF_SIZEOF(is32Bit ? 4 : 8),
+ SIZEOF_LONGLONG(8)
+ {}
+
+ ~fmtscanner() {}
+
+ /// argument variants
+ //
+ enum ArgType {
+ INTEGER, ///< 32/64 bit integer
+ POINTER, ///< 32/64 bit pointer
+ DOUBLE, ///< floating point number
+ TEXT, ///< text portion in format
+ STRING, ///< pointer to string %s
+ PERCENT_N, ///< the odd %n format
+ STAR, ///< an int from a %* arg
+ UNKNOWN ///< invalid format
+ };
+
+ enum Result {
+ OK = 0,
+ UNKNOWN_FORMAT = (1 << 1),
+ INCOMPLETE_FORMAT = (1 << 2)
+ };
+
+ /// Helper class to store information for one printf format fragment
+ ///
+ class ArgFragment {
+ public:
+ ArgFragment(ArgType type, size_t size, const std::string& text);
+
+ ArgType type() const { return _type; }
+ size_t size() const { return _size; }
+ const std::string& text() const { return _text; }
+
+ private:
+ ArgType _type; ///< arg type
+ size_t _size; ///< arg buffer space usage
+ std::string _text; ///< argument string fragment
+ };
+
+ typedef std::vector<ArgFragment> Args;
+
+protected:
+
+ /// Finite state machine states of the argument parser
+ ///
+ enum FmtScanState {
+ START,
+ PLAINTEXT,
+ PERCENT,
+ FLAGS,
+ WIDTH, WIDTH_NUMBER,
+ PRECISION_DOT, PRECISION_VAL, PRECISION_NUMBER,
+ MODIFIER,
+ MODIFIER_HALF,
+ MODIFIER_LONG,
+ SPECIFIER
+ };
+
+ /// Format modifier types
+ ///
+ enum Modifier {
+ MOD_NONE, MOD_HH, MOD_H, MOD_L, MOD_LL, MOD_J, MOD_Z, MOD_T, MOD_LD
+ };
+
+public:
+ /// Parse a printf argument string into a vector of argument fragments
+ /// @eturn OK if no error, or bitmask of errors from Result enumeration.
+ ///
+ uint32_t parse(const std::string& fmt, Args& args);
+
+ const uint32_t SIZEOF_PTR;
+ const uint32_t SIZEOF_INT;
+ const uint32_t SIZEOF_LONG;
+ const uint32_t SIZEOF_SIZEOF;
+ const uint32_t SIZEOF_LONGLONG;
+};
+
+
+/// Printf style formatter for events
+///
+/// This class does printf style formatting using a format string
+/// and memory buffer for the printf arguments. The code assumes
+/// that all arguments are stored in the buffer without any padding
+/// bytes. Strings are embedded as byte sequences into the buffer,
+/// including their terminating null byte.
+///
+/// Here is an example of how the buffer is expected
+/// to be setup for the given printf call:
+///
+/// printf("the %s jumped over the %s, %d times", "cow", "moon", 2);
+///
+/// Argument buffer layout, following the format string:
+///
+/// +-----------------------------------------------------------------+
+/// | 'c' | 'o' | 'w' | 0 | 'm' | 'o' | 'o' | 'n' | 0 | 2 | 0 | 0 | 0 |
+/// +-----------------------------------------------------------------+
+/// |<--- P1 --->| |<--- P2 -->| |<--- P3 -->|
+///
+/// It will print "the cow jumped over the moon, 2 times".
+///
+class msgprintf
+{
+public:
+ msgprintf(bool is32bit) :
+ _scanner(is32bit)
+ {}
+
+ /// Initialize a printf formatter based on fmt and argument buffer
+ ///
+ /// @param fmt a C99 language compliant printf format string
+ /// @param args the argument buffer
+ /// @param size number of bytes in argument buffer
+ /// @param result ougoing string result or error message
+ ///
+ /// @ return true if formatting succeeded, false if not.
+ ///
+ bool format(const std::string& fmt,
+ const void * args, uint32_t size,
+ std::string& result);
+
+private:
+
+ fmtscanner _scanner;
+ fmtscanner::Args _args;
+
+ msgprintf(const msgprintf&) = delete;
+ msgprintf operator=(const msgprintf&) = delete;
+};
+
+MIPI_SYST_NAMESPACE_END
+
+#endif // MIPI_SYST_PRINTER_H_included
diff --git a/printer/src/mipi_syst_collateral.cpp b/printer/src/mipi_syst_collateral.cpp
new file mode 100644
index 0000000..a421808
--- /dev/null
+++ b/printer/src/mipi_syst_collateral.cpp
@@ -0,0 +1,331 @@
+/*
+ Copyright (c) 2018, MIPI Alliance, Inc.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+ * Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Contributors:
+ * Norbert Schulz (Intel Corporation) - Initial API and implementation
+ */
+
+#include <iomanip>
+#include <sstream>
+#include <iostream>
+#include <type_traits>
+
+#include "mipi_syst_collateral.h"
+#include "mipi_syst_guid.h"
+
+MIPI_SYST_NAMESPACE_BEGIN
+
+const char tagCollateral[] = "syst:Collateral";
+const char tagClient[] = "syst:Client";
+const char tagGuids[] = "syst:Guids";
+const char tagGuid[] = "syst:Guid";
+const char tagBuilds[] = "syst:Builds";
+const char tagBuild[] = "syst:Build";
+const char tagCatalog32[] = "syst:Catalog32";
+const char tagCatalog64[] = "syst:Catalog64";
+const char tagSourceFiles[] = "syst:SourceFiles";
+const char tagFile[] = "syst:File";
+const char tagShort32[] = "syst:Short32";
+const char tagShort64[] = "syst:Short64";
+const char tagWrite[] = "syst:Write";
+const char tagProtocol[] = "syst:Protocol";
+const char tagModules[] = "syst:Modules";
+const char tagModule[] = "syst:Module";
+const char tagID[] = "ID";
+const char tagMask[] = "Mask";
+const char tagFileAttr[] = "File";
+const char tagLine[] = "Line";
+const char tagFormat[] = "syst:Format";
+
+
+std::vector<collateral*> collateral::parseXml(const std::string& filename)
+{
+ pugi::xml_document doc;
+ pugi::xml_parse_result scan_result(doc.load_file(filename.c_str()));
+ std::stringstream sstr;
+
+ if (!scan_result) {
+ sstr
+ << "XML parser error on file "
+ << filename
+ << " : "
+ << scan_result.description();
+
+ throw std::invalid_argument(sstr.str());
+ }
+
+ std::vector<collateral*> result;
+
+ for(auto client(doc.child(tagCollateral).child(tagClient));
+ client;
+ client = client.next_sibling(tagClient))
+ {
+ result.push_back(new collateral(client, filename));
+ }
+ return result;
+}
+
+
+collateral::collateral(pugi::xml_node& node, const std::string& file) :
+ m_file(file),
+ m_name(node.attribute("Name").as_string())
+{
+ // Scan id <-> item mappings
+ //
+ parseMaskedItems(node.child(tagGuids), tagGuid, m_guids);
+ parseMaskedItems(node.child(tagBuilds), tagBuild, m_builds);
+ parseMaskedItems(node.child(tagSourceFiles), tagFile, m_files);
+ parseMaskedItems(node.child(tagModules), tagModule, m_modules);
+ parseMaskedItems(node.child(tagCatalog32), tagFormat, m_msgs32);
+ parseMaskedItems(node.child(tagCatalog64), tagFormat, m_msgs64);
+ parseMaskedItems(node.child(tagShort32), tagFormat, m_shorts32);
+ parseMaskedItems(node.child(tagShort64), tagFormat, m_shorts64);
+ parseMaskedItems(node.child(tagWrite), tagProtocol, m_writeTypes);
+}
+
+bool collateral::match(const guid& g, uint64_t build) const
+{
+ for (auto& it : m_guids) {
+ if ((g & it.mask()) == (it.key() & it.mask()))
+ {
+ if (build != 0x0) {
+ // find collateral with matching build number
+ //
+ if (m_builds.find(build) != m_builds.end())
+ {
+ return true;
+ }
+ } else {
+ return true;
+ }
+ }
+ }
+
+ return false;
+}
+
+template<> const collateral::catalogentry<uint32_t> * collateral::getCatalogEntry<>(uint32_t id) const
+{
+ auto hit = m_msgs32.find(id);
+ return (hit != m_msgs32.end()) ? &hit->value() : nullptr;
+}
+
+template<> const collateral::catalogentry<uint64_t> * collateral::getCatalogEntry<>(uint64_t id) const
+{
+ auto hit = m_msgs64.find(id);
+ return (hit != m_msgs64.end()) ? &hit->value() : nullptr;
+}
+const std::string * collateral::getSourceFile(uint32_t id) const
+{
+ auto hit = m_files.find(id);
+ return (hit != m_files.end()) ? &hit->value() : nullptr;
+}
+
+const std::string * collateral::getWriteType(uint8_t id) const
+{
+ auto hit(m_writeTypes.find(id));
+ return (hit != m_writeTypes.end()) ? &hit->value() : nullptr;
+}
+
+template<> const collateral::catalogentry<uint32_t> * collateral::getShortEntry<>(uint32_t id) const
+{
+ auto hit(m_shorts32.find(id));
+ return (hit != m_shorts32.end()) ? &hit->value() : nullptr;
+}
+template<> const collateral::catalogentry<uint64_t> * collateral::getShortEntry<>(uint64_t id) const
+{
+ auto hit(m_shorts64.find(id));
+ return (hit != m_shorts64.end()) ? &hit->value() : nullptr;
+}
+
+template<typename K> bool parse(K& dest, const std::string& s)
+{
+ return stringToNum<K>(s, dest);
+}
+
+template<> bool parse<guid>(guid& g, const std::string& s)
+{
+ return g.parse(s);
+}
+
+template<typename K> K nomask() { return (K)-1; }
+template<> guid nomask<guid>() { return guid("{ffffffff-ffff-ffff-ffff-ffffffffffff}"); }
+
+template<typename T> std::ostream & operator<<(std::ostream &os, const collateral::catalogentry<T>& p)
+{
+ return os << p.msg;
+}
+
+template<typename K, typename V>
+void collateral::parseMaskedItems(
+ pugi::xml_node root, const char * tag, masked_vector<K, V>& dest)
+{
+ for (pugi::xml_node item(root.child(tag));
+ item;
+ item = item.next_sibling(tag))
+ {
+ masked_item<K, V> data;
+
+ std::string keyStr(item.attribute(tagID).as_string());
+ std::string val(item.child_value());
+
+ if (!parse<K>(data.key(), keyStr)) {
+ std::stringstream what;
+ what <<
+ "Malformed " << tag << "entry ID=\"" << keyStr <<
+ "\" value =\"" << val << "\"" <<
+ " for catalog " << m_name;
+ throw std::invalid_argument(what.str());
+ }
+
+ std::string maskStr(item.attribute(tagMask).as_string());
+ if (!maskStr.empty()) {
+ if (!parse<K>(data.mask(), maskStr)) {
+ std::stringstream what;
+ what <<
+ "Malformed " << tag << "entry Mask=\"" << maskStr <<
+ "\" value =\"" << val << "\"" <<
+ " for catalog " << m_name;
+ throw std::invalid_argument(what.str());
+ }
+ } else {
+ data.mask() = nomask<K>();
+ }
+
+ data.value() = val;
+
+ // scan option file/line data if value supports source positions
+ //
+ if (std::is_base_of<catalogentry<K>, V>::value) {
+ catalogentry<K> * entry((catalogentry<K>*)&data.value());
+ entry->mask = data.mask();
+
+ std::string file(item.attribute(tagFileAttr).as_string());
+ std::string line(item.attribute(tagLine).as_string());
+
+ if (!file.empty()) {
+ if (!parse(entry->m_file, file)) {
+ std::stringstream what;
+ what <<
+ "Malformed File attribute " << file <<
+ "in section " << tag <<
+ " for catalog " << m_name;
+ throw std::invalid_argument(what.str());
+ }
+ }
+
+ if (!line.empty()) {
+ if (!parse(entry->m_line, line)) {
+ std::stringstream what;
+ what <<
+ "Malformed Line attribute " << line <<
+ "in section " << tag <<
+ " for catalog " << m_name;
+ throw std::invalid_argument(what.str());
+ }
+ }
+ }
+
+ auto it = dest.find(data.key());
+ if (it != dest.end() && it->value() != val) {
+ std::cerr <<
+ "Overwriting ID" << data.key() << " -> " << val <<
+ " old value: " << it->value() << std::endl;
+ *it = data;
+ }
+ else {
+ dest.push_back(data);
+ }
+ }
+}
+
+/** Helper to parse a GUID "{...}" string into the binary representation.
+* @param str GUID ascii string "{xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}"
+* @param guid resulting guid
+* @return true if guid could be parserd
+*/
+bool guid::parse(const std::string& str)
+{
+ if (
+ (str.length() != sizeof("{00000000-0000-0000-0000-000000000000}")-1) ||
+ str[0]!= '{' ||str[37] != '}' ||
+ str[9] != '-' || str[14] != '-' || str[19] != '-' || str[24] != '-'
+ )
+ {
+ return false;
+ }
+
+ // parse the byte values;
+ //
+ const char * p(str.c_str()+1);
+
+ for (int i(0); i < 16; ++i, p += 2) {
+ if (i == 4 || i == 6|| i == 8 || i == 10) {
+ p++; // skip "-"
+ }
+ std::stringstream sstr(std::string(p, 2));
+ uint16_t temp;
+
+ if (! (sstr >> std::hex >>temp)) {
+ return false;
+ }
+ u.b[i] = (uint8_t)(temp);
+ }
+
+ return true;
+}
+
+std::ostream& operator<<(std::ostream& os, const guid& g)
+{
+ auto flags(os.flags());
+
+
+ os << '{';
+
+ for (int i(0); i < 16; ++i) {
+ os << std::setfill('0') << std::noshowbase << std::hex << std::setw(2)
+ << (uint16_t)g.u.b[i];
+
+ if (i == 3 || i == 5|| i == 7 || i == 9) {
+ os << '-';
+ }
+ }
+
+ os << '}';
+
+ os.flags(flags);
+ return os;
+}
+
+MIPI_SYST_NAMESPACE_END \ No newline at end of file
diff --git a/printer/src/mipi_syst_decode.cpp b/printer/src/mipi_syst_decode.cpp
new file mode 100644
index 0000000..1c9b1d8
--- /dev/null
+++ b/printer/src/mipi_syst_decode.cpp
@@ -0,0 +1,874 @@
+/*
+ Copyright (c) 2018, MIPI Alliance, Inc.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+ * Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Contributors:
+ * Norbert Schulz (Intel Corporation) - Initial API and implementation
+ */
+#include<sstream>
+#include <iomanip>
+
+#include "mipi_syst_decode.h"
+#include "mipi_syst_printf.h"
+
+MIPI_SYST_NAMESPACE_BEGIN
+
+/// Helper to extract string from byte array,
+//
+// @param dest where to write bytes to
+// @param offset where to start from
+// @param data byte array
+// @param len number of bytes in array
+//
+// @return bytes consumed or < 0 if no null byte found
+//
+static int32_t bytes2String(std::string& dest, const uint8_t * data, uint32_t len)
+{
+ uint32_t i(0);
+
+ while(i <len)
+ {
+ if (!data[i]) {
+ break; // null byte found
+ }
+ dest += data[i++];
+ }
+
+ if (i == len && data[i - 1]) {
+ return -1;
+ }
+
+ return (uint32_t)dest.size();
+}
+
+// Helper for printf formating
+//
+static std::string printfFormat(
+ const std::string& fmt,
+ bool is32Bit,
+ const void * data,
+ uint32_t len)
+{
+ msgprintf printer(is32Bit);
+ std::string result;
+ if (len > 0) {
+ printer.format(fmt, data, len, result);
+ }
+ else {
+ printer.format(fmt, NULL, 0, result);
+ }
+ return result;
+}
+
+void decoder::setBuildNumber(uint64_t id, const guid& g) const
+{
+ // cache guid <-> id association
+ // TODO: A production quality implementation should add a sanity check here
+ // and issue a warning if the ID changes compared to an earlier one.
+ //
+ if (build_by_guid.find(g) != build_by_guid.end()) {
+ build_by_guid[g] = id;
+ }
+
+ // Remove an eventually earlier cached collateral to guid mapping. We recompute
+ // next time with the now known build id.
+ //
+ auto cache_hit(collateral_by_guid.find(g));
+ if (cache_hit != collateral_by_guid.end()) {
+ collateral_by_guid.erase(cache_hit);
+ }
+}
+
+
+// Decode single SyS-T message
+//
+bool decoder::decode(message& dest, const std::vector<uint8_t>& data, const decode_context * ctx) const
+{
+ bool rt(false);
+
+ try {
+ // header
+ //
+ if (data.size() < sizeof(uint32_t)) throw tooshort_exception();
+ message::header hdr(bytes2ValLE<uint32_t>(&data[0]));
+
+ // short message ?
+ //
+ if (message::isShort(hdr)) {
+ rt = decodeShortMessage(dest, &data[0], (uint32_t)data.size(), ctx);
+ } else {
+ rt = decodeNormalMessage(dest, &data[0], (uint32_t)data.size(), ctx);
+ }
+
+ if (rt && dest.getHeader().field.type == message::BUILD) {
+ // found build message, store build number for later
+ //
+ setBuildNumber(dest.getBuild(), dest.getGuid());
+ }
+ } catch (decode_exception& de) {
+ dest.setStatus(de.get_state());
+
+ // decode failed, show raw byte dump as payload
+ //
+ std::stringstream sstr;
+ sstr << std::hex << std::uppercase << std::setfill('0') << std::setw(2);
+ for (auto uc : data) {
+ sstr << (uint16_t)uc;
+ }
+ dest.setPayload(sstr.str());
+ }
+ return rt;
+}
+
+
+template<class T> void decodeShortPayload(message & m, T v)
+{
+ const collateral * coll(m.getCollateral());
+ const collateral::catalogentry<T> * entry(
+ coll ? coll->getShortEntry(v) : nullptr);
+
+ if (entry) {
+ std::stringstream dest;
+ hostPrintf(dest, entry->msg, v & (~entry->mask), std::vector<int>());
+ m.setPayload(dest.str());
+ } else {
+ m.setPayload(toHexValue(v));
+ }
+}
+
+bool decoder::decodeShortMessage(
+ message& dest,
+ const uint8_t *data, uint32_t length,
+ const decode_context * ctx) const
+{
+ if (length < sizeof(uint32_t)) throw tooshort_exception();
+
+ uint32_t type(data[0] & 0x0F); // Bit 0..3 = type
+ uint32_t subtype(data[3] & 0x3F); // Bit 24..29 = subtype
+
+ dest.setHeader(0); // all optional fields off
+ dest.setType(type);
+ dest.setLength(length);
+ dest.setCollateral(ctx ? findCollateral(ctx->getGuid()) : nullptr);
+ dest.setContextTS(ctx ? ctx->getTS() : 0);
+
+ switch (type) {
+ case message::type::SHORT32:
+ decodeShortPayload(dest, bytes2ValLE<uint32_t>(data) >> 4);
+ break;
+
+ case message::type::SHORT64:
+ if (length < sizeof(uint64_t)) throw tooshort_exception();
+ decodeShortPayload(dest, bytes2ValLE<uint64_t>(data) >> 4);
+ break;
+
+ case message::type::BUILD:
+ dest.setSubType(subtype);
+ switch (subtype) {
+ case message::subtype_build::BUILD_COMPACT32:
+ {
+ uint32_t val(bytes2ValLE<uint32_t>(data));
+ val = ((val & 0x00FFFFF0) >> 4) | ((val & 0x30000000) >> 10);
+ dest.setBuild(val);
+ dest.setPayload(toHexValue(val));
+ break;
+ }
+ case message::subtype_build::BUILD_COMPACT64:
+ {
+ if (length < sizeof(uint64_t)) throw tooshort_exception();
+
+ uint64_t val(bytes2ValLE<uint64_t>(data));
+ val = ((val & 0x0000000000FFFFF0ull) >> 4) |
+ ((val & 0xFFFFFFFF30000000ull) >> 10);
+ dest.setBuild(val);
+ dest.setPayload(toHexValue(val));
+
+ break;
+ }
+ default:
+ throw unknown_type_exception();
+ }
+ break;
+ default:
+ throw unknown_type_exception();
+ }
+
+ dest.setStatus(message::decode_state::OK);
+
+ return true;
+}
+
+// Decode "normal" SyS-T message data
+//
+bool decoder::decodeNormalMessage(message& dest, const uint8_t * data, uint32_t length, const decode_context * ctx) const
+{
+ uint32_t offset(0);
+
+ dest.setContextTS(ctx ? ctx->getTS() : 0);
+ dest.setLength(length);
+
+ // header
+ //
+ if (length < (offset + sizeof(uint32_t))) throw tooshort_exception();
+ dest.setHeader(bytes2ValLE<uint32_t>(data+offset));
+ offset += sizeof(uint32_t);
+
+ // checksum at the end ?
+ //
+ if (dest.getHeader().field.chksum) {
+ if (length < offset + sizeof(uint32_t)) throw tooshort_exception();
+ length -= sizeof(uint32_t);
+ dest.setCrc(bytes2ValLE<uint32_t>(data+length));
+ }
+
+ // guid
+ //
+ if (dest.getHeader().field.guid) {
+ if (length < (offset + sizeof(uint64_t[2]))) throw tooshort_exception();
+
+ dest.setGuid(guid(data+offset));
+ offset += sizeof(uint64_t[2]);
+ } else {
+ dest.setGuid(generatePseudoGuid(dest.getHeaderOrigin()));
+ }
+
+ // location
+ //
+ if (dest.getHeader().field.location) {
+ if (length < offset + sizeof(uint8_t)) throw tooshort_exception();
+ uint32_t tag(data[offset++]);
+ if (tag & 0x1) {
+ // 64 bit
+ if (length < offset + sizeof(uint64_t)) throw tooshort_exception();
+ if (tag & 0x2) { // addr
+ uint64_t addr(bytes2ValLE<uint64_t>(data+offset));
+ dest.setLocAddr64(addr);
+ } else {
+ uint32_t file(bytes2ValLE<uint32_t>(data + offset));
+ uint32_t line(bytes2ValLE<uint32_t>(data + offset + 4));
+ dest.setLocFileLine(file, line);
+ }
+ offset += sizeof(uint64_t);
+ } else {
+ // 32 bit
+ if (length < offset + sizeof(uint32_t)) throw tooshort_exception();
+ if (tag & 0x2) { // addr
+ uint32_t addr(bytes2ValLE<uint32_t>(data + offset));
+ dest.setLocAddr32(addr);
+ } else {
+ uint16_t file(bytes2ValLE<uint16_t>(data + offset));
+ uint16_t line(bytes2ValLE<uint16_t>(data + offset + 2));
+ dest.setLocFileLine(file, line);
+ }
+ offset += sizeof(uint32_t);
+ }
+ }
+
+ // length
+ //
+ uint32_t payload_len(length - offset);
+
+ if (dest.getHeader().field.length) {
+ if (length < offset + sizeof(uint16_t)) throw tooshort_exception();
+ payload_len = bytes2ValLE<uint16_t>(data + offset);
+ offset += sizeof(uint16_t);
+ }
+
+ // timestamp
+ //
+ if (dest.getHeader().field.timestamp) {
+ if (length < offset + sizeof(uint64_t)) throw tooshort_exception();
+ dest.setMessageTS(bytes2ValLE<uint64_t>(data + offset));
+ offset += sizeof(uint64_t);
+ }
+
+ if (dest.getHeader().field.length) {
+ // length given, compare with remaining payload length
+ //
+ int diff(length - offset - payload_len);
+ if (diff < 0) {
+ throw tooshort_exception();
+ } else if (diff > 0) {
+ throw toolong_exception();
+ }
+ }
+
+ // check CRC32 if set
+ //
+ if (dest.getHeader().field.chksum) {
+ uint32_t crc = getCrc32(data, length);
+ if (crc != dest.getCrc()) {
+ throw crc_error_exception();
+ }
+ }
+
+ // Check for collateral information
+ //
+ const collateral* coll = findCollateral(dest.getGuid());
+ dest.setCollateral(coll);
+
+ // Set client name based on collateral (or use raw guid/origin from message)
+ //
+ if (coll != nullptr) {
+ dest.setClientName(coll->getName());
+ }
+ else {
+ std::stringstream sstr;
+ if (dest.getHeader().field.guid) {
+ sstr << dest.getGuid();
+ } else {
+ sstr << dest.getHeaderOrigin();
+ }
+ dest.setClientName(sstr.str());
+ }
+
+ // Payload decode depening on type
+ //
+ (this->*payloadDecode[dest.getHeader().field.type])(dest, data+offset, length - offset);
+
+ dest.setStatus(message::decode_state::OK);
+ return true;
+}
+
+void decoder::decodeInvalidType(message& dest, const uint8_t * data, uint32_t len) const
+{
+ (void)dest;
+ (void)data;
+ (void)len;
+
+ throw unknown_type_exception();
+}
+
+void decoder::decodeBuildPayload(message& dest, const uint8_t * data, uint32_t len) const
+{
+ std::stringstream sstr;
+
+ switch (dest.getHeader().field.subtype) {
+ case message::subtype_build::BUILD_LONG:
+ if (len < sizeof(uint64_t)) throw tooshort_exception();
+
+ dest.setBuild(bytes2ValLE<uint64_t>(data));
+ sstr << toHexValue(dest.getBuild());
+
+ data += sizeof(uint64_t);
+ len -= sizeof(uint64_t);
+
+ if (0 != len) { // string follows ....
+ std::string payload;
+ if (bytes2String(payload, data, len) > 0) {
+ sstr << " " << payload;
+ } else {
+ throw tooshort_exception();
+ }
+ }
+ break;
+ default:
+ throw unknown_type_exception();
+ break;
+ }
+
+ dest.setPayload(sstr.str());
+}
+
+void decoder::decodeStringPayload(message& dest, const uint8_t * data, uint32_t len) const
+{
+ std::string format;
+ int fmtlen;
+
+ if (!len || (fmtlen = bytes2String(format, data, len)) <= 0) {
+ throw tooshort_exception();
+ }
+
+ std::stringstream sstr;
+
+ switch (dest.getHeader().field.subtype) {
+ case message::subtype_string::STRING_PRINTF_32:
+ case message::subtype_string::STRING_PRINTF_64:
+ sstr << printfFormat(
+ format,
+ dest.getHeader().field.subtype ==
+ message::subtype_string::STRING_PRINTF_32,
+ &data[fmtlen+1],
+ len - fmtlen - 1);
+ break;
+
+ case message::subtype_string::STRING_ASSERT:
+ case message::subtype_string::STRING_FUNCTIONENTER:
+ case message::subtype_string::STRING_FUNCTIONEXIT:
+ case message::subtype_string::STRING_GENERIC:
+ case message::subtype_string::STRING_INVALIDPARAM:
+ sstr << format;
+ break;
+ default:
+ throw unknown_type_exception();
+ break;
+ }
+
+ dest.setPayload(sstr.str());
+}
+
+void decoder::decodeCatalogPayload(message& dest, const uint8_t * data, uint32_t len) const
+{
+ const collateral * coll(dest.getCollateral());
+ if (coll == nullptr) throw missing_collateral_exception();
+
+ std::stringstream sstr;
+ bool is32Bit(false);
+ const collateral::sourcepos * srcpos(nullptr);
+ const std::string * fmt(nullptr);
+
+ switch (dest.getHeader().field.subtype) {
+ case message::subtype_catalog::CATALOG_ID32_P32:
+ is32Bit = true;
+ // fall through
+
+ case message::subtype_catalog::CATALOG_ID32_P64:
+ {
+ if (len < sizeof(uint32_t)) throw tooshort_exception();
+ const collateral::catalogentry<uint32_t> * entry(nullptr);
+
+ if ((entry = coll->getCatalogEntry(bytes2ValLE<uint32_t>(data))) == nullptr) {
+ sstr
+ << "Undefined catalog id 0x"
+ << toHexValue(bytes2ValLE<uint32_t>(data));
+ } else {
+ fmt = &entry->msg;
+ srcpos = entry;
+ }
+ data += sizeof(uint32_t);
+ len -= sizeof(uint32_t);
+ break;
+ }
+ case message::subtype_catalog::CATALOG_ID64_P32:
+ is32Bit = true;
+ // fall through
+ case message::subtype_catalog::CATALOG_ID64_P64:
+ {
+ if (len < sizeof(uint64_t)) throw tooshort_exception();
+ const collateral::catalogentry<uint64_t> * entry(nullptr);
+
+ if ((entry = coll->getCatalogEntry(bytes2ValLE<uint64_t>(data))) == nullptr) {
+ sstr
+ << "Undefined catalog id 0x"
+ << toHexValue(bytes2ValLE<uint64_t>(data));
+ } else {
+ fmt = &entry->msg;
+ srcpos = entry;
+ }
+ data += sizeof(uint64_t);
+ len -= sizeof(uint64_t);
+ break;
+ }
+ default:
+ throw unknown_type_exception();
+ break;
+ }
+
+ if (fmt != nullptr) {
+ sstr << printfFormat(*fmt, is32Bit, data, len);
+
+ // if current message has no file attribute from payload, but the catalog entry
+ // does provides one, use the one from the catalog
+ //
+ if (0 != srcpos->m_file && 0 == (dest.getLocation().tag & message::IDANDLINE))
+ {
+ dest.setLocFileLine(srcpos->m_file, srcpos->m_line);
+ }
+ }
+
+ dest.setPayload(sstr.str());
+}
+
+void decoder::decodeRawPayload(message& dest, const uint8_t * data, uint32_t len) const
+{
+ std::stringstream sstr;
+
+ while (len--) {
+ sstr << std::setfill('0') << std::setw(2) << std::hex << (uint16_t)*data++;
+ }
+
+ dest.setPayload(sstr.str());
+}
+
+void decoder::loadCollateral(const std::string& filename)
+{
+ for (auto items : collateral::parseXml(filename)) {
+ collaterals.insert(collaterals.end(), items);
+ }
+}
+
+guid decoder::generatePseudoGuid(uint8_t origin)
+{
+ // A pseudo-guid is defined by storing the origin value into
+ // bits [7..0] of the guid[8] byte. The highest bit is forced
+ // to zero, which distiquishes it from an RFC4122 compliant
+ // GUID.
+ // This example code has no additional transport data for
+ // identifying the message client. All other values are
+ // set to 0.
+ //
+ uint8_t pseudo_guid_data[16] = {
+ 0,0,0,0,
+ 0,0,0,origin,
+ 0,0,0,0,
+ 0,0,0,0
+ };
+ return guid(pseudo_guid_data);
+}
+
+collateral * decoder::findCollateral(const guid& g) const
+{
+ // do we already know the catalog for this GUID ?
+ //
+ auto cache_hit(collateral_by_guid.find(g));
+ if (cache_hit != collateral_by_guid.end()) {
+ return cache_hit->second;
+ }
+
+ uint64_t build(0);
+ auto build_hit(build_by_guid.find(g));
+ if (build_hit != build_by_guid.end()) {
+ build = build_hit->second;
+ }
+
+ // search all catalogs
+ //
+ auto match = std::find_if(collaterals.begin(), collaterals.end(),
+ [&g,build](const collateral* v)
+ {
+ return (v->match(g, build));
+ });
+
+ if (match != collaterals.end()) {
+ collateral_by_guid[g] = *match;
+ return *match;
+ }
+ return nullptr;
+}
+
+// Message type dependend payload decode handlers
+//
+decoder::decode_payload_f decoder::payloadDecode[] = {
+ &decoder::decodeBuildPayload, // [0]
+ &decoder::decodeInvalidType, // [1]
+ &decoder::decodeStringPayload, // [2]
+ &decoder::decodeCatalogPayload, // [3]
+ &decoder::decodeInvalidType, // [4]
+ &decoder::decodeInvalidType, // [5]
+ &decoder::decodeRawPayload, // [6]
+ &decoder::decodeInvalidType, // [7]
+ &decoder::decodeInvalidType, // [8]
+ &decoder::decodeInvalidType, // [9]
+ &decoder::decodeInvalidType, // [10]
+ &decoder::decodeInvalidType, // [11]
+ &decoder::decodeInvalidType, // [12]
+ &decoder::decodeInvalidType, // [13]
+ &decoder::decodeInvalidType, // [14]
+ &decoder::decodeInvalidType // [15]
+};
+
+// Build CRC over a byte buffer (Castagnoli CRC-32C)
+//
+uint32_t decoder::getCrc32(const uint8_t * data, size_t len)
+{
+ uint32_t crc(0xFFFFFFFF);
+
+ while (len--) {
+ crc = crc32c_table[((int)crc ^ (*data++)) & 0xFF] ^ (crc >> 8);
+ }
+ return crc ^ 0xFFFFFFFF;
+}
+
+// Pre-computed CRC-C values for all byte values using the
+// polynomial 0x1EDC6F41 (Castagnoli).
+//
+const uint32_t decoder::crc32c_table[256] = {
+ 0x00000000,
+ 0xF26B8303,
+ 0xE13B70F7,
+ 0x1350F3F4,
+ 0xC79A971F,
+ 0x35F1141C,
+ 0x26A1E7E8,
+ 0xD4CA64EB,
+ 0x8AD958CF,
+ 0x78B2DBCC,
+ 0x6BE22838,
+ 0x9989AB3B,
+ 0x4D43CFD0,
+ 0xBF284CD3,
+ 0xAC78BF27,
+ 0x5E133C24,
+ 0x105EC76F,
+ 0xE235446C,
+ 0xF165B798,
+ 0x030E349B,
+ 0xD7C45070,
+ 0x25AFD373,
+ 0x36FF2087,
+ 0xC494A384,
+ 0x9A879FA0,
+ 0x68EC1CA3,
+ 0x7BBCEF57,
+ 0x89D76C54,
+ 0x5D1D08BF,
+ 0xAF768BBC,
+ 0xBC267848,
+ 0x4E4DFB4B,
+ 0x20BD8EDE,
+ 0xD2D60DDD,
+ 0xC186FE29,
+ 0x33ED7D2A,
+ 0xE72719C1,
+ 0x154C9AC2,
+ 0x061C6936,
+ 0xF477EA35,
+ 0xAA64D611,
+ 0x580F5512,
+ 0x4B5FA6E6,
+ 0xB93425E5,
+ 0x6DFE410E,
+ 0x9F95C20D,
+ 0x8CC531F9,
+ 0x7EAEB2FA,
+ 0x30E349B1,
+ 0xC288CAB2,
+ 0xD1D83946,
+ 0x23B3BA45,
+ 0xF779DEAE,
+ 0x05125DAD,
+ 0x1642AE59,
+ 0xE4292D5A,
+ 0xBA3A117E,
+ 0x4851927D,
+ 0x5B016189,
+ 0xA96AE28A,
+ 0x7DA08661,
+ 0x8FCB0562,
+ 0x9C9BF696,
+ 0x6EF07595,
+ 0x417B1DBC,
+ 0xB3109EBF,
+ 0xA0406D4B,
+ 0x522BEE48,
+ 0x86E18AA3,
+ 0x748A09A0,
+ 0x67DAFA54,
+ 0x95B17957,
+ 0xCBA24573,
+ 0x39C9C670,
+ 0x2A993584,
+ 0xD8F2B687,
+ 0x0C38D26C,
+ 0xFE53516F,
+ 0xED03A29B,
+ 0x1F682198,
+ 0x5125DAD3,
+ 0xA34E59D0,
+ 0xB01EAA24,
+ 0x42752927,
+ 0x96BF4DCC,
+ 0x64D4CECF,
+ 0x77843D3B,
+ 0x85EFBE38,
+ 0xDBFC821C,
+ 0x2997011F,
+ 0x3AC7F2EB,
+ 0xC8AC71E8,
+ 0x1C661503,
+ 0xEE0D9600,
+ 0xFD5D65F4,
+ 0x0F36E6F7,
+ 0x61C69362,
+ 0x93AD1061,
+ 0x80FDE395,
+ 0x72966096,
+ 0xA65C047D,
+ 0x5437877E,
+ 0x4767748A,
+ 0xB50CF789,
+ 0xEB1FCBAD,
+ 0x197448AE,
+ 0x0A24BB5A,
+ 0xF84F3859,
+ 0x2C855CB2,
+ 0xDEEEDFB1,
+ 0xCDBE2C45,
+ 0x3FD5AF46,
+ 0x7198540D,
+ 0x83F3D70E,
+ 0x90A324FA,
+ 0x62C8A7F9,
+ 0xB602C312,
+ 0x44694011,
+ 0x5739B3E5,
+ 0xA55230E6,
+ 0xFB410CC2,
+ 0x092A8FC1,
+ 0x1A7A7C35,
+ 0xE811FF36,
+ 0x3CDB9BDD,
+ 0xCEB018DE,
+ 0xDDE0EB2A,
+ 0x2F8B6829,
+ 0x82F63B78,
+ 0x709DB87B,
+ 0x63CD4B8F,
+ 0x91A6C88C,
+ 0x456CAC67,
+ 0xB7072F64,
+ 0xA457DC90,
+ 0x563C5F93,
+ 0x082F63B7,
+ 0xFA44E0B4,
+ 0xE9141340,
+ 0x1B7F9043,
+ 0xCFB5F4A8,
+ 0x3DDE77AB,
+ 0x2E8E845F,
+ 0xDCE5075C,
+ 0x92A8FC17,
+ 0x60C37F14,
+ 0x73938CE0,
+ 0x81F80FE3,
+ 0x55326B08,
+ 0xA759E80B,
+ 0xB4091BFF,
+ 0x466298FC,
+ 0x1871A4D8,
+ 0xEA1A27DB,
+ 0xF94AD42F,
+ 0x0B21572C,
+ 0xDFEB33C7,
+ 0x2D80B0C4,
+ 0x3ED04330,
+ 0xCCBBC033,
+ 0xA24BB5A6,
+ 0x502036A5,
+ 0x4370C551,
+ 0xB11B4652,
+ 0x65D122B9,
+ 0x97BAA1BA,
+ 0x84EA524E,
+ 0x7681D14D,
+ 0x2892ED69,
+ 0xDAF96E6A,
+ 0xC9A99D9E,
+ 0x3BC21E9D,
+ 0xEF087A76,
+ 0x1D63F975,
+ 0x0E330A81,
+ 0xFC588982,
+ 0xB21572C9,
+ 0x407EF1CA,
+ 0x532E023E,
+ 0xA145813D,
+ 0x758FE5D6,
+ 0x87E466D5,
+ 0x94B49521,
+ 0x66DF1622,
+ 0x38CC2A06,
+ 0xCAA7A905,
+ 0xD9F75AF1,
+ 0x2B9CD9F2,
+ 0xFF56BD19,
+ 0x0D3D3E1A,
+ 0x1E6DCDEE,
+ 0xEC064EED,
+ 0xC38D26C4,
+ 0x31E6A5C7,
+ 0x22B65633,
+ 0xD0DDD530,
+ 0x0417B1DB,
+ 0xF67C32D8,
+ 0xE52CC12C,
+ 0x1747422F,
+ 0x49547E0B,
+ 0xBB3FFD08,
+ 0xA86F0EFC,
+ 0x5A048DFF,
+ 0x8ECEE914,
+ 0x7CA56A17,
+ 0x6FF599E3,
+ 0x9D9E1AE0,
+ 0xD3D3E1AB,
+ 0x21B862A8,
+ 0x32E8915C,
+ 0xC083125F,
+ 0x144976B4,
+ 0xE622F5B7,
+ 0xF5720643,
+ 0x07198540,
+ 0x590AB964,
+ 0xAB613A67,
+ 0xB831C993,
+ 0x4A5A4A90,
+ 0x9E902E7B,
+ 0x6CFBAD78,
+ 0x7FAB5E8C,
+ 0x8DC0DD8F,
+ 0xE330A81A,
+ 0x115B2B19,
+ 0x020BD8ED,
+ 0xF0605BEE,
+ 0x24AA3F05,
+ 0xD6C1BC06,
+ 0xC5914FF2,
+ 0x37FACCF1,
+ 0x69E9F0D5,
+ 0x9B8273D6,
+ 0x88D28022,
+ 0x7AB90321,
+ 0xAE7367CA,
+ 0x5C18E4C9,
+ 0x4F48173D,
+ 0xBD23943E,
+ 0xF36E6F75,
+ 0x0105EC76,
+ 0x12551F82,
+ 0xE03E9C81,
+ 0x34F4F86A,
+ 0xC69F7B69,
+ 0xD5CF889D,
+ 0x27A40B9E,
+ 0x79B737BA,
+ 0x8BDCB4B9,
+ 0x988C474D,
+ 0x6AE7C44E,
+ 0xBE2DA0A5,
+ 0x4C4623A6,
+ 0x5F16D052,
+ 0xAD7D5351
+};
+
+MIPI_SYST_NAMESPACE_END \ No newline at end of file
diff --git a/printer/src/mipi_syst_main.cpp b/printer/src/mipi_syst_main.cpp
new file mode 100644
index 0000000..32f6aeb
--- /dev/null
+++ b/printer/src/mipi_syst_main.cpp
@@ -0,0 +1,265 @@
+/*
+ Copyright (c) 2018, MIPI Alliance, Inc.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+ * Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Contributors:
+ * Norbert Schulz (Intel Corporation) - Initial API and implementation
+ */
+
+#include <iostream>
+#include <fstream>
+#include <vector>
+#include <string>
+#include <memory>
+
+#include "mipi_syst_decode.h"
+#include "mipi_syst_guid.h"
+
+// print program usage banner
+//
+static void usage(const std::string& details)
+{
+ std::cerr << "usage: systprint [-p] [-c <collateralXML>...] [-g short-message-guid] [-o output] [inputfile(s)...]" << std::endl;
+ std::cerr << " -p / --payload_only only print payload (default is CSV)" << std::endl;
+ std::cerr << " -c / --colateral filename load given SyS-T collateral XML" << std::endl;
+ std::cerr << " -g / --short_guid guid guid value for short messages" << std::endl;
+ std::cerr << " -o / --output file output file name (default stdout)" << std::endl;
+ std::cerr << " inputfile(s)... file(s) with example library platform output or '-' for stdin" << std::endl;
+ std::cerr << std::endl;
+
+ if (!details.empty()) {
+ std::cerr << details << std::endl;
+ }
+ exit(1);
+}
+
+
+// ASCII char -> HEX nibble value, or 0xFF if invalid
+//
+static const uint8_t hexCharVal[] =
+{
+ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
+ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
+ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
+ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
+ 0xFF, 10, 11, 12, 13, 14, 15, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
+ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
+ 0xFF, 10, 11, 12, 13, 14, 15, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
+ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF
+};
+
+
+// Convert ASCII hex string into byte array, fail if string is not a
+// sequence of 0..(2*n) hex characters
+//
+static bool hex2bin(const std::string& hexStr, std::vector<uint8_t>& dest)
+{
+ size_t nibbles(hexStr.size());
+
+ if (nibbles % 2) { // 2 chars needed for 1 value
+ return false;
+ }
+ dest.clear();
+
+ for(auto hexChar(hexStr.c_str()); nibbles ; nibbles -= 2)
+ {
+ auto high(hexCharVal[(uint8_t)*hexChar++]);
+ auto low(hexCharVal[(uint8_t)*hexChar++]);
+ if (high == 0xFF || low == 0xFF) {
+ return false;
+ }
+ dest.push_back((high << 4) | low);
+ }
+ return true;
+}
+
+
+// Scan input file that is assumed to come from the SyS-T library example platform.
+// Extract the raw event HEX data lines that look like this
+//
+// SYS-T RAW DATA: 4202000B0...
+//
+// Then parse the hex portion of the line and try to decode it as a SyS-T message.
+//
+static void readAndPrint(std::istream& is, std::ostream& os,
+ bool payload_only,
+ const mipi::syst::decode_context * ctx,
+ const mipi::syst::decoder& decoder)
+{
+ static const std::string pattern("SYS-T RAW DATA: ");
+ std::string line;
+
+ while (getline(is, line)) {
+ if (line.compare(0, pattern.size(), pattern)) {
+ continue; // not a raw dump of a SyS-T message
+ }
+
+ // sanitize line endings
+ //
+ while (line.size() &&
+ (line[line.size()-1] == '\r' ||
+ line[line.size()-1] == '\n'))
+ {
+ line.erase(line.size()-1);
+ }
+ std::vector<uint8_t> bytes;
+ if (!hex2bin(line.substr(pattern.size()), bytes)) {
+ continue;
+ }
+ mipi::syst::message msg;
+
+ decoder.decode(msg, bytes, ctx);
+ if (payload_only) {
+ os << msg.getPayload() << std::endl;
+ } else {
+ os << msg;
+ }
+ }
+}
+
+/// Simple GUID context wrapper
+//
+// This class implements a trivial decode context provider by just
+// wrapping a guid set from the command line. A real implementation would
+// encapsulate transport information here to build client identifying
+// information. @see mipi::syst::decode_context
+//
+class short_guid_context : public mipi::syst::decode_context {
+public:
+ short_guid_context(const mipi::syst::guid& g) : m_guid(g), m_fakeTS(0) {}
+
+ const mipi::syst::guid& getGuid() const {
+ return m_guid;
+ }
+
+ uint64_t getTS() const {
+ return m_fakeTS++; // replace with transport TS
+ }
+private:
+ mipi::syst::guid m_guid;
+ mutable uint64_t m_fakeTS;
+};
+
+
+int main(int argc, char ** argv)
+{
+ std::vector<std::string> inputs;
+ std::string output;
+ bool payload_only(false);
+ std::shared_ptr<short_guid_context> short_ctx(nullptr); // guid to use for short messages
+
+ mipi::syst::decoder decoder;
+
+ // parse & check arguments
+ //
+ for (auto i = 1; i < argc; ++i) {
+ const std::string arg(argv[i]);
+ if (arg == "-c" || arg == "--collateral") {
+ if (++i >= argc) {
+ usage("missing collateral file argument");
+ }
+ try {
+ decoder.loadCollateral(argv[i]);
+ }
+ catch (std::exception& e) {
+ std::cerr << "error loading '" << argv[i] << "': " << e.what();
+ exit(1);
+ }
+ } else if (arg == "-p" || arg == "--payload_only") {
+ payload_only = true;
+ } else if (arg == "-g" || arg == "--short_guid") {
+ if (++i >= argc) {
+ usage("missing guid argument for -g/--short_guid option");
+ }
+ try {
+ short_ctx = std::make_shared<short_guid_context>(
+ mipi::syst::guid(argv[i]));
+ } catch (std::exception& e) {
+ std::cerr << e.what();
+ exit(1);
+ }
+ } else if (arg == "-o" || arg == "--output") {
+ if (++i >= argc) {
+ usage("missing filename argument for -o/--output option");
+ }
+ output = argv[i];
+ } else if (arg == "-") { //stdin
+ inputs.push_back(arg);
+ } else if (arg[0] == '-') {
+ usage(std::string("unknown argument : ") + arg);
+ } else {
+ inputs.push_back(arg);
+ }
+ }
+
+ if (inputs.empty()) {
+ usage("no input provided");
+ }
+
+ // set output destination (default stdout)
+ //
+ std::ostream * os(&std::cout);
+ std::ofstream ofs;
+
+ if (!output.empty()) {
+ ofs.open(output.c_str(), std::ofstream::out);
+ if (!ofs.is_open()) {
+ std::cerr << "unable to open output file : " << output << std::endl;
+ exit(1);
+ }
+ os = &ofs;
+ }
+
+ if (!payload_only) {
+ *os << mipi::syst::message::csvHeaderString << std::endl;
+ }
+ for (auto input : inputs) {
+ if (input == "-") {
+ readAndPrint(std::cin, *os, payload_only, short_ctx.get(), decoder);
+ } else {
+ std::ifstream ifs(input);
+ if (!ifs.is_open()) {
+ std::cerr << "unable to open input file : " << input << std::endl;
+ exit(1);
+ }
+ readAndPrint(ifs, *os, payload_only, short_ctx.get(), decoder);
+ ifs.close();
+ }
+ }
+
+ if (ofs.is_open()) {
+ ofs.close();
+ }
+
+ return 0;
+} \ No newline at end of file
diff --git a/printer/src/mipi_syst_message.cpp b/printer/src/mipi_syst_message.cpp
new file mode 100644
index 0000000..f67c2b6
--- /dev/null
+++ b/printer/src/mipi_syst_message.cpp
@@ -0,0 +1,371 @@
+/*
+ Copyright (c) 2018, MIPI Alliance, Inc.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+ * Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Contributors:
+ * Norbert Schulz (Intel Corporation) - Initial API and implementation
+ */
+
+#include<sstream>
+#include <iomanip>
+#include "mipi_syst_message.h"
+#include "mipi_syst_collateral.h"
+#include "mipi_syst_printf.h"
+
+MIPI_SYST_NAMESPACE_BEGIN
+
+// Code for storing and printing out decoded message content
+//
+
+void message::setLocAddr32(uint32_t addr)
+{
+ m_loc.tag |= location_type::ADDRESS32;
+ m_loc.tag &= ~location_type::ADDRESS64;
+ m_loc.address = addr;
+}
+
+void message::setLocAddr64(uint64_t addr)
+{
+ m_loc.tag |= location_type::ADDRESS64;
+ m_loc.tag &= ~location_type::ADDRESS32;
+ m_loc.address = addr;
+}
+
+void message::setLocFileLine(uint32_t file, uint32_t line)
+{
+ m_loc.tag |= location_type::IDANDLINE;
+ m_loc.file = file;
+ m_loc.line = line;
+}
+
+// Check type for short message
+//
+bool message::isShort(message::header hdr) {
+ switch (hdr.field.type) {
+ case message::type::SHORT32:
+ case message::type::SHORT64:
+ return true;
+
+ case message::type::BUILD:
+ switch (hdr.field.subtype) {
+ case message::subtype_build::BUILD_COMPACT32:
+ case message::subtype_build::BUILD_COMPACT64:
+ return true;
+ }
+ }
+ return false;
+}
+
+
+// Pretty print decode status value
+//
+static const char * status2string(const message& msg)
+{
+ switch (msg.getState()) {
+ case message::decode_state::OK:
+ return "OK";
+ case message::decode_state::UNKNOWN_TYPE:
+ return "UNKNOWN_TYPE";
+ case message::decode_state::TOO_SHORT:
+ return "TOO_SHORT";
+ case message::decode_state::CHECKSUM_ERROR:
+ return "CHECKSUM_ERROR";
+ case message::decode_state::MISSING_COLLATERAL:
+ return "MISSING_COLLATERAL";
+ default:
+ return "UNKNOWN_STATE";
+ }
+}
+
+// Pretty print sevrity values
+//
+static const char * severity2string[] = {
+ "MAX",
+ "FATAL",
+ "ERROR",
+ "WARNING",
+ "INFO",
+ "USER1",
+ "USER2",
+ "DEBUG"
+};
+
+// Pretty print type:subtype values
+//
+static const std::string type2string(
+ message::header hdr,
+ const collateral * coll)
+{
+ static const char * typenames[] = {
+ "BUILD",
+ "SHORT32",
+ "STRING",
+ "CATALOG",
+ "UNKNOWN(4)",
+ "UNKNOWN(5)",
+ "RAW",
+ "SHORT64",
+ "CLOCK",
+ "UNKNOWN(9)",
+ "UNKNOWN(10)",
+ "UNKNOWN(11)",
+ "UNKNOWN(12)",
+ "UNKNOWN(13)",
+ "UNKNOWN(14)",
+ "UNKNOWN(15)",
+ };
+
+ uint32_t type(hdr.field.type);
+ std::stringstream sstr;
+
+ sstr << typenames[type];
+
+ // compute subtype string
+ //
+ std::string subtype("??");
+
+ switch (type) {
+ case message::type::SHORT32:
+ case message::type::SHORT64:
+ subtype.clear(); // no subtype
+ break;
+
+ case message::type::BUILD:
+ switch (hdr.field.subtype) {
+ case message::subtype_build::BUILD_LONG:
+ subtype = "LONG";
+ break;
+ case message::subtype_build::BUILD_COMPACT32:
+ subtype = "COMPACT32";
+ break;
+ case message::subtype_build::BUILD_COMPACT64:
+ subtype = "COMPACT64";
+ break;
+ }
+ break;
+ case message::type::STRING:
+ switch (hdr.field.subtype) {
+ case message::subtype_string::STRING_GENERIC:
+ subtype = "GENERIC";
+ break;
+ case message::subtype_string::STRING_FUNCTIONENTER:
+ subtype = "ENTER";
+ break;
+ case message::subtype_string::STRING_FUNCTIONEXIT:
+ subtype = "EXIT";
+ break;
+ case message::subtype_string::STRING_INVALIDPARAM:
+ subtype = "INVPARAM";
+ break;
+ case message::subtype_string::STRING_ASSERT:
+ subtype = "ASSERT";
+ break;
+ case message::subtype_string::STRING_PRINTF_32:
+ subtype = "PRINTF32";
+ break;
+ case message::subtype_string::STRING_PRINTF_64:
+ subtype = "PRINTF64";
+ break;
+ }
+ break;
+ case message::type::CATALOG:
+ switch (hdr.field.subtype) {
+ case message::subtype_catalog::CATALOG_ID32_P32:
+ subtype = "ID32P32";
+ break;
+ case message::subtype_catalog::CATALOG_ID64_P32:
+ subtype = "ID64P32";
+ break;
+ case message::subtype_catalog::CATALOG_ID32_P64:
+ subtype = "ID32P64";
+ break;
+ case message::subtype_catalog::CATALOG_ID64_P64:
+ subtype = "ID64P64";
+ break;
+ }
+ break;
+ case message::type::RAW:
+ {
+ const std::string * name(nullptr);
+ if (coll && (name = coll->getWriteType(hdr.field.subtype)) != nullptr)
+ {
+ std::stringstream dest;
+ hostPrintf(dest, *name, hdr.field.subtype, std::vector<int>());
+ subtype = dest.str();
+ } else {
+ subtype = std::to_string(hdr.field.subtype);
+ }
+ } break;
+
+ case message::type::CLOCK:
+ switch (hdr.field.subtype) {
+ case message::subtype_clock::CLOCK_SYNC:
+ subtype = "SYNC";
+ break;
+ }
+ break;
+ }
+
+ if (!subtype.empty()) {
+ sstr << ':' << subtype;
+ }
+
+ return sstr.str();
+}
+
+// CSV double-quote escaping, replace " with "" and eliminate newlines
+//
+void csvQuoteString(std::ostream& os, const std::string& s)
+{
+ for (auto c : s) {
+ if (c == '\n') {
+ os << ' '; // newline not supported in CSV
+ } else if (c == '"') {
+ os << c << c;
+ } else {
+ os << c;
+ }
+ }
+}
+
+// location information printing
+//
+std::string location2string(
+ const message::location& loc,
+ const collateral * collateral)
+{
+ bool hasAddress(0!=(loc.tag & (message::ADDRESS32 | message::ADDRESS32)));
+ bool hasFileLine(0 != (loc.tag & message::IDANDLINE));
+
+ std::stringstream sstr;
+
+ if (hasFileLine) {
+ const std::string * fileName(
+ collateral != nullptr ?
+ collateral->getSourceFile(loc.file) : nullptr);
+
+ if (fileName != nullptr) {
+ sstr << (*fileName) << ':' << loc.line;
+ } else {
+ sstr << loc.file << ':' << loc.line;
+ }
+ if (hasAddress) sstr << ' ';
+ }
+
+ if (hasAddress) {
+ if (loc.tag & message::ADDRESS32) {
+ sstr << toHexValue((uint32_t)loc.address);
+ } else {
+ sstr << toHexValue(loc.address);
+ }
+ }
+
+ return sstr.str();
+}
+const char message::csvHeaderString[] = "Decode Status,Payload,Type,Severity,Origin,Unit,Message TimeStamp,Context TimeStamp,Location,Raw Length,Checksum,Collateral";
+
+// CSV line formatting of a message
+//
+std::ostream& operator << (std::ostream& os, const message& msg)
+{
+ char delimiter(',');
+ const collateral * coll(msg.getCollateral());
+
+ // turn volatile fields like timestamp/crc off when running unit testing
+ //
+ static bool unit_testing(getenv("SYST_UNITTESTING") != NULL);
+
+ // status
+ os << status2string(msg) << delimiter;
+
+ // payload
+ os << '"';
+ csvQuoteString(os, msg.getPayload());
+ os << '"' << delimiter;
+
+ if (msg.getState() != message::OK && msg.getState() != message::MISSING_COLLATERAL)
+ {
+ // decode failed, report other fields as empty. The data can't be trusted.
+ //
+ os << ",,,,," << std::endl;
+ return os;
+ }
+
+ // Type/Subtype
+ //
+ os << type2string(msg.getHeader(), msg.getCollateral()) << delimiter;
+
+ // Severity
+ //
+ os << severity2string[msg.getHeader().field.severity] << delimiter;
+
+ // client name and unit
+ //
+ os << msg.getClientName() << delimiter;
+ os << msg.getUnit() << delimiter;
+
+ // time stamps
+ if (msg.getHeader().field.timestamp) {
+ os << (unit_testing ?
+ "<--UNITTEST-HIDE_TS-->" : toHexValue(msg.getMessageTS()));
+ }
+ os << delimiter;
+
+ os << (unit_testing ?
+ "<--UNITTEST-HIDE_TS-->" : toHexValue(msg.getContextTS())) << delimiter;
+
+ // location
+ //
+ csvQuoteString(os, location2string(msg.getLocation(), coll));
+ os << delimiter;
+
+ // raw message length
+ //
+ os << std::to_string(msg.getLength()) << delimiter;
+
+ // crc
+ //
+ if (msg.getHeader().field.chksum) {
+ os << (unit_testing ? "<--UNITTEST-HIDE_CRC-->" : toHexValue(msg.getCrc()));
+ }
+ os << delimiter;
+
+ if (coll != nullptr) {
+ csvQuoteString(os, coll->getFileName());
+ }
+ os << std::endl;
+
+ return os;
+}
+
+MIPI_SYST_NAMESPACE_END \ No newline at end of file
diff --git a/printer/src/mipi_syst_printf.cpp b/printer/src/mipi_syst_printf.cpp
new file mode 100644
index 0000000..e0da037
--- /dev/null
+++ b/printer/src/mipi_syst_printf.cpp
@@ -0,0 +1,435 @@
+/*
+ Copyright (c) 2018, MIPI Alliance, Inc.
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+ * Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*
+ * Contributors:
+ * Norbert Schulz (Intel Corporation) - Initial API and implementation
+ */
+
+#include <sstream>
+#include "mipi_syst_printf.h"
+
+MIPI_SYST_NAMESPACE_BEGIN
+
+template<> double bytes2ValLE<double>(const void * data)
+{
+ union { uint64_t ll; double d; } u = { bytes2ValLE<uint64_t>(data) };
+ return u.d;
+}
+
+// Parse printf style format string into a sequence of text and format fragments
+//
+uint32_t
+fmtscanner::parse(const std::string& fmt, Args& args)
+{
+ uint32_t result(OK);
+
+ const char * p(fmt.c_str());
+ const char * eof(p + fmt.size());
+ FmtScanState state(START);
+ Modifier modifier(MOD_NONE);
+ size_t fmtPos = 0; // curremt position in format
+ size_t fragmentStart = 0; // where current fragment started
+ size_t lastPercentPos = 0; // where the last % fmt start was seen
+
+ args.clear();
+
+ while (p < eof) {
+ switch (state) {
+ case START:
+ fragmentStart = fmtPos;
+ modifier = MOD_NONE;
+
+ state = PLAINTEXT;
+ ; // deliberate fall through
+
+ case PLAINTEXT:
+ if (*p == '%') {
+ lastPercentPos = fmtPos;
+ state = PERCENT;
+ }
+ break;
+
+ case PERCENT:
+ if (*p == '%') {
+ lastPercentPos = 0; // '%%' is not a format, but the % char
+ state = PLAINTEXT;
+ } else {
+ // arg fmt definition is starting
+ //
+ if (lastPercentPos != fragmentStart) {
+ args.push_back(
+ ArgFragment(TEXT, 0,
+ fmt.substr(fragmentStart,
+ lastPercentPos - fragmentStart)));
+ }
+ fragmentStart = lastPercentPos;
+ state = FLAGS;
+ continue;
+ }
+ break;
+
+ case FLAGS:
+ switch (*p) {
+ case '-':
+ case '+':
+ case ' ':
+ case '#':
+ case '0':
+ break;
+ default:
+ state = WIDTH;
+ continue;
+ break;
+ }
+ break;
+
+ case WIDTH:
+ if (*p == '*') {
+ args.push_back(ArgFragment(STAR, SIZEOF_INT, ""));
+ state = PRECISION_DOT;
+ } else {
+ state = WIDTH_NUMBER;
+ continue;
+ }
+ break;
+
+ case WIDTH_NUMBER:
+ if (!isdigit(*p)) {
+ state = PRECISION_DOT;
+ continue;
+ }
+ break;
+
+ case PRECISION_DOT:
+ if (*p == '.') {
+ state = PRECISION_VAL;
+ } else {
+ state = MODIFIER;
+ continue;
+ }
+ break;
+
+ case PRECISION_VAL:
+ if (*p == '*') {
+ args.push_back(ArgFragment(STAR, SIZEOF_INT, std::string()));
+ state = MODIFIER;
+ } else {
+ state = PRECISION_NUMBER;
+ continue;
+ }
+ break;
+
+ case PRECISION_NUMBER:
+ if (!isdigit(*p)) {
+ state = MODIFIER;
+ continue;
+ }
+ break;
+
+ case MODIFIER:
+ state = SPECIFIER;
+
+ switch (*p) {
+ case 'h':
+ modifier = MOD_H;
+ state = MODIFIER_HALF;
+ break;
+ case 'l':
+ modifier = MOD_L;
+ state = MODIFIER_LONG;
+ break;
+ case 'j':
+ modifier = MOD_J;
+ break;
+ case 'z':
+ modifier = MOD_Z;
+ break;
+ case 't':
+ modifier = MOD_T;
+ break;
+ case 'L':
+ modifier = MOD_LD;
+ break;
+ default:
+ continue;
+ }
+ break;
+
+ case MODIFIER_HALF:
+ state = SPECIFIER;
+ if (*p == 'h') {
+ modifier = MOD_HH;
+ break;
+ } else {
+ continue;
+ }
+ break;
+
+
+ case MODIFIER_LONG:
+ state = SPECIFIER;
+ if (*p == 'l') {
+ modifier = MOD_LL;
+ break;
+ } else {
+ continue;
+ }
+
+ case SPECIFIER:
+ {
+ std::string fragment = fmt.substr(fragmentStart,
+ fmtPos - fragmentStart + 1);
+
+ switch (*p) {
+ case 'd':
+ case 'i':
+ case 'u':
+ case 'o':
+ case 'x':
+ case 'X':
+ switch (modifier) {
+ case MOD_L:
+ // convert long to longlong if client is 64bit, but host 32bit
+ //
+ if ((SIZEOF_LONG == 8) && (sizeof(long) != 8)) {
+ size_t pos(fragment.find('l'));
+ if (pos != std::string::npos) {
+ fragment = fragment.insert(pos, "l");
+ }
+ }
+ args.push_back(ArgFragment(INTEGER, SIZEOF_LONG, fragment));
+ break;
+ case MOD_LL:
+ case MOD_J:
+ args.push_back(ArgFragment(INTEGER, SIZEOF_LONGLONG, fragment));
+ break;
+ case MOD_Z:
+ args.push_back(ArgFragment(INTEGER, SIZEOF_SIZEOF, fragment));
+ break;
+ default:
+ args.push_back(ArgFragment(INTEGER, SIZEOF_INT, fragment));
+ break;
+ }
+ state = START;
+ break;
+ case 'f':
+ case 'F':
+ case 'e':
+ case 'E':
+ case 'g':
+ case 'G':
+ case 'a':
+ case 'A':
+ args.push_back(ArgFragment(DOUBLE, SIZEOF_LONGLONG, fragment));
+ break;
+ case 'c':
+ args.push_back(ArgFragment(INTEGER, SIZEOF_INT, fragment));
+ break;
+ case 'p':
+ args.push_back(ArgFragment(POINTER, SIZEOF_PTR, fragment));
+ break;
+ case 's':
+ args.push_back(ArgFragment(STRING, SIZEOF_PTR, fragment));
+ break;
+ case 'n':
+ args.push_back(ArgFragment(PERCENT_N, SIZEOF_PTR, fragment));
+ break;
+ default: // unsupported format
+ args.push_back(ArgFragment(UNKNOWN, 0, fragment));
+ result |= UNKNOWN_FORMAT;
+ break;
+ }
+ state = START;
+ }
+ break;
+
+ default:
+ break;
+ }
+ ++p;
+ ++fmtPos;
+ }
+
+ // check if we have a tail plain text string at the end of the format
+ // and add it to arg list.
+ //
+ if (state == PLAINTEXT) {
+ args.push_back(ArgFragment(TEXT, 0,
+ fmt.substr(fragmentStart, fmtPos - fragmentStart + 1)));
+ state = START;
+ }
+
+ if (state != START) {
+ result |= INCOMPLETE_FORMAT;
+ }
+
+ return result;
+}
+
+
+fmtscanner::ArgFragment::ArgFragment(
+ ArgType type, size_t size, const std::string& text) :
+ _type(type), _size(size), _text(text)
+{}
+
+
+
+bool msgprintf::format(
+ const std::string& fmt,
+ const void * args, uint32_t size,
+ std::string& result)
+{
+ std::stringstream sstr; // where the result is build
+
+ // Parse the format string for the number of needed parameters
+ //
+ uint32_t parseResult;
+ if ((parseResult = _scanner.parse(fmt, _args)) != fmtscanner::OK) {
+ sstr << "invalid format string '" << fmt << "'";
+ result = sstr.str();
+ return false;
+ }
+
+ const char * bufPtr((const char *)args); //current byte from arg buffer
+ const void * eob((const char *)args + size); // end of buffer address
+ std::vector<int> starArgs; // '*' args like in "%*.*f"
+ bool success(true);
+
+ // Loop over the argument fragments to format each using local printf
+ // and then add it to the result string.
+ //
+ for (fmtscanner::Args::const_iterator it(_args.begin());
+ it != _args.end();
+ ++it)
+ {
+ size_t need(it->size()); // number of bytes needed for format
+ fmtscanner::ArgType type(it->type());
+
+ switch (type) {
+ case fmtscanner::INTEGER:
+ case fmtscanner::POINTER:
+ if (bufPtr + need <= eob) {
+ if (need == sizeof(uint64_t)) {
+ uint64_t val(bytes2ValLE<uint64_t>(bufPtr));
+ success = hostPrintf(sstr, it->text(), val, starArgs);
+ } else {
+ uint32_t val(bytes2ValLE<uint32_t>(bufPtr));
+ success = hostPrintf(sstr, it->text(), val, starArgs);
+ }
+ }
+ break;
+
+ case fmtscanner::DOUBLE:
+ if (bufPtr + need <= eob) {
+ double val(bytes2ValLE<double>(bufPtr));
+ success = hostPrintf(sstr, it->text(), val, starArgs);
+ }
+ break;
+
+ case fmtscanner::TEXT:
+ // copy text, but "%%" means "%" in printf format
+ //
+ for (const char *c = it->text().c_str(); *c; ++c) {
+ if ('%' == *c && '%' == *(c+1)) continue;
+ sstr << *c;
+ }
+
+ break;
+
+ case fmtscanner::STRING:
+ // String embedded in message buffer
+ // check if it is valid (zero terminated inside message) and
+ // then format it into result
+ //
+ {
+ const char * str(bufPtr);
+
+ // Hunt the null byte
+ //
+ for (need = 1; str <= eob && *str; ++str, ++need)
+ ;
+
+ if (str > eob) {
+ result = " - corrupt printf payload, missing argument string termination";
+ return false;
+ }
+
+ success = hostPrintf(sstr, it->text(), bufPtr, starArgs);
+ }
+ break;
+ case fmtscanner::PERCENT_N:
+ // %n is a nop . There is no usefull place to return the
+ // output to.
+ //
+ break;
+
+ case fmtscanner::STAR:
+ // A star argument was seen in fmt, put on the *-stack (can be up to 2)
+ //
+ if (bufPtr + need <= eob) {
+ starArgs.push_back(bytes2ValLE<uint32_t>(bufPtr));
+ }
+ break;
+
+ default:
+ sstr << "- printf internal error, unkown argtype in format '"
+ << fmt << "'";
+ success = false;
+ }
+
+ // Check for overflow in input buffer
+ //
+ if ((bufPtr + need) > eob) {
+ sstr << "- insufficient argument bytes for format '"
+ << fmt << "'";
+ success = false;
+ }
+
+ if (!success) {
+ result = sstr.str();
+ return false;
+ }
+
+ if (type != fmtscanner::STAR) {
+ starArgs.clear();
+ }
+ bufPtr += need;
+ }
+
+ result = sstr.str();
+
+ return true;
+}
+
+MIPI_SYST_NAMESPACE_END \ No newline at end of file
diff --git a/printer/test/collateral.xml b/printer/test/collateral.xml
new file mode 100644
index 0000000..61cdd6d
--- /dev/null
+++ b/printer/test/collateral.xml
@@ -0,0 +1,238 @@
+<?xml version="1.0" encoding="utf-8"?>
+<syst:Collateral xmlns:syst="http://www.mipi.org/1.0/sys-t"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.mipi.org/1.0/sys-t
+ https://www.mipi.org/schema/sys-t/sys-t_1-0.xsd">
+
+ <!--
+ A SyS-T collateral file starts with a syst:Collateral element
+ and contains at least one syst:Client child node.
+ -->
+ <syst:Client Name="example">
+
+ <!--
+ List of message GUIDs for this client:
+ A GUID is a 128bit numeric UUID following RFC 4122.
+ Clients that are identified by transport layer properties
+ can use pseudo GUID values to identify their messages. A
+ pseudo GUID is defined as a GUID with bit 71 set to zero.
+ The following encoding might be used for clients identified
+ by MIPI System Trace Protocol (STP) master/channel pairs:
+
+ {00000000-<MasterID>-<ChannelID>-<Origin>00-000000000000}
+
+ A Mask attribute can be added to define which bits of the GUID are
+ used for comparison. Without a mask, all bits need to match.
+ The example below makes the catalog valid for all channels from the
+ STP master value 0x644, or messages with the "494E..." GUID in their
+ payload.
+ -->
+ <syst:Guids>
+ <syst:Guid ID= "{00000000-0644-0000-0000-000000000000}"
+ Mask="{00000000-FFFF-0000-8000-000000000000}"><![CDATA[kernel]]></syst:Guid>
+ <syst:Guid ID="{494E5443-8A9C-4014-A65A-2F36A36D96E4}"><![CDATA[user]]></syst:Guid>
+ </syst:Guids>
+
+ <!--
+ Define for which versions of the client this collateral is valid.
+ Versions are expressed as values up to 64-bit and can contain a mask
+ that define which bits need to match with a client version message.
+ -->
+ <syst:Builds>
+ <syst:Build ID="0x0010000" Mask="0xFFFF0000" ><![CDATA[SW Build 1.x]]></syst:Build>
+ <syst:Build ID="0x0020000" Mask="0xFFFF0000" ><![CDATA[SW Build 2.x]]></syst:Build>
+ </syst:Builds>
+
+ <!--
+ Provide ID to name mapping for module header field values.
+ -->
+ <syst:Modules>
+ <syst:Module ID="0x1"><![CDATA[kernel]]></syst:Module>
+ <syst:Module ID="0x2"><![CDATA[user]]></syst:Module>
+ </syst:Modules>
+
+ <!--
+ Define the mapping of the numeric File-ID to source files.
+ This table is optional and only needed if source references are used
+ by the source.
+ -->
+ <syst:SourceFiles>
+ <syst:File ID="1"><![CDATA[./othersource.c]]></syst:File>
+ <syst:File ID="2"><![CDATA[./systclient.c]]></syst:File>
+ </syst:SourceFiles>
+
+
+ <!--
+ Define the mapping of catalog message ID to user visible strings.
+ This table is optional and only needed if catalog messages are used.
+ A message can have optional "File" and "Line" attributes to specify the
+ source position of the instrumentation call. A decoder uses this
+ information if the message payload doesn't provide this information.
+ -->
+ <syst:Catalog32>
+ <syst:Format ID="0xe4876129" File="1" Line="40"><![CDATA[+-------------------------------------------------------+]]></syst:Format>
+ <syst:Format ID="0x16028e9a" File="1" Line="41"><![CDATA[| ____ _____ _______ |]]></syst:Format>
+ <syst:Format ID="0xc5d41bc9" File="1" Line="42"><![CDATA[| / ___| / ____| |__ __| |]]></syst:Format>
+ <syst:Format ID="0x23f66c1e" File="1" Line="43"><![CDATA[| | |___ __ _| |___ _____| | |]]></syst:Format>
+ <syst:Format ID="0x95095f2f" File="1" Line="44"><![CDATA[| \___ \| | | |\___ \_____| | |]]></syst:Format>
+ <syst:Format ID="0xc645d04b" File="1" Line="45"><![CDATA[| ____| | |_| |____| | | | |]]></syst:Format>
+ <syst:Format ID="0x54d8b7ff" File="1" Line="46"><![CDATA[| |_____/ \__| |_____/ |_| |]]></syst:Format>
+ <syst:Format ID="0xd48907f7" File="1" Line="47"><![CDATA[| _/ / |]]></syst:Format>
+ <syst:Format ID="0x9e125f25" File="1" Line="48"><![CDATA[| |__/ |]]></syst:Format>
+ <syst:Format ID="0xe487612a" File="1" Line="49"><![CDATA[+-------------------------------------------------------+]]></syst:Format>
+ <syst:Format ID="0xd44fd581" File="1" Line="71"><![CDATA[| '%%*so%%*s | '%*so%*s ' |]]></syst:Format>
+ <syst:Format ID="0x64f996d9" File="1" Line="124"><![CDATA[in function foo]]></syst:Format>
+ <syst:Format ID="0x62f35566" File="1" Line="129"><![CDATA[in function bar]]></syst:Format>
+ <syst:Format ID="0xcf292f8b" File="1" Line="254"><![CDATA[| catalog Format | Printed Result |]]></syst:Format>
+ <syst:Format ID="0x886b15e0" File="1" Line="255"><![CDATA[|---------------------------------strings---------------|]]></syst:Format>
+ <syst:Format ID="0xf0e43f1b" File="1" Line="256"><![CDATA[| '%%30s' | '%30s' |]]></syst:Format>
+ <syst:Format ID="0x8bb1283d" File="1" Line="257"><![CDATA[| '%%-30s' | '%-30s' |]]></syst:Format>
+ <syst:Format ID="0x237ce64f" File="1" Line="258"><![CDATA[|---------------------------------ASCII-----------------|]]></syst:Format>
+ <syst:Format ID="0x80f4ba3d" File="1" Line="259"><![CDATA[| '%%s' | '%s' |]]></syst:Format>
+ <syst:Format ID="0x80f4ba3e" File="1" Line="260"><![CDATA[| '%%s' | '%s' |]]></syst:Format>
+ <syst:Format ID="0x80f4ba3f" File="1" Line="261"><![CDATA[| '%%s' | '%s' |]]></syst:Format>
+ <syst:Format ID="0x80f4ba40" File="1" Line="262"><![CDATA[| '%%s' | '%s' |]]></syst:Format>
+ <syst:Format ID="0xe29131c9" File="1" Line="263"><![CDATA[|---------------------------------decimals--------------|]]></syst:Format>
+ <syst:Format ID="0xddc39ddb" File="1" Line="264"><![CDATA[| '%%30d' | '%30d' |]]></syst:Format>
+ <syst:Format ID="0xddc39ddc" File="1" Line="265"><![CDATA[| '%%30d' | '%30d' |]]></syst:Format>
+ <syst:Format ID="0xddc39ddd" File="1" Line="266"><![CDATA[| '%%30d' | '%30d' |]]></syst:Format>
+ <syst:Format ID="0xddc39dde" File="1" Line="267"><![CDATA[| '%%30d' | '%30d' |]]></syst:Format>
+ <syst:Format ID="0xddc39ddf" File="1" Line="268"><![CDATA[| '%%30d' | '%30d' |]]></syst:Format>
+ <syst:Format ID="0xddc39de0" File="1" Line="269"><![CDATA[| '%%30d' | '%30d' |]]></syst:Format>
+ <syst:Format ID="0x789086fd" File="1" Line="270"><![CDATA[| '%%-30d' | '%-30d' |]]></syst:Format>
+ <syst:Format ID="0x789086fe" File="1" Line="271"><![CDATA[| '%%-30d' | '%-30d' |]]></syst:Format>
+ <syst:Format ID="0x789086ff" File="1" Line="272"><![CDATA[| '%%-30d' | '%-30d' |]]></syst:Format>
+ <syst:Format ID="0x78908700" File="1" Line="273"><![CDATA[| '%%-30d' | '%-30d' |]]></syst:Format>
+ <syst:Format ID="0x78908701" File="1" Line="274"><![CDATA[| '%%-30d' | '%-30d' |]]></syst:Format>
+ <syst:Format ID="0x78908702" File="1" Line="275"><![CDATA[| '%%-30d' | '%-30d' |]]></syst:Format>
+ <syst:Format ID="0x149a8033" File="1" Line="276"><![CDATA[|----------------------------------hexadecimals---------|]]></syst:Format>
+ <syst:Format ID="0xf74474db" File="1" Line="277"><![CDATA[| '%%30x' | '%30x' |]]></syst:Format>
+ <syst:Format ID="0xf74474dc" File="1" Line="278"><![CDATA[| '%%30x' | '%30x' |]]></syst:Format>
+ <syst:Format ID="0xf74474dd" File="1" Line="279"><![CDATA[| '%%30x' | '%30x' |]]></syst:Format>
+ <syst:Format ID="0xf74474de" File="1" Line="280"><![CDATA[| '%%30x' | '%30x' |]]></syst:Format>
+ <syst:Format ID="0xf74474df" File="1" Line="281"><![CDATA[| '%%30x' | '%30x' |]]></syst:Format>
+ <syst:Format ID="0xf74474e0" File="1" Line="282"><![CDATA[| '%%30x' | '%30x' |]]></syst:Format>
+ <syst:Format ID="0x92115dfd" File="1" Line="283"><![CDATA[| '%%-30x' | '%-30x' |]]></syst:Format>
+ <syst:Format ID="0x92115dfe" File="1" Line="284"><![CDATA[| '%%-30x' | '%-30x' |]]></syst:Format>
+ <syst:Format ID="0x92115dff" File="1" Line="285"><![CDATA[| '%%-30x' | '%-30x' |]]></syst:Format>
+ <syst:Format ID="0x92115e00" File="1" Line="286"><![CDATA[| '%%-30x' | '%-30x' |]]></syst:Format>
+ <syst:Format ID="0x92115e01" File="1" Line="287"><![CDATA[| '%%-30x' | '%-30x' |]]></syst:Format>
+ <syst:Format ID="0x92115e02" File="1" Line="288"><![CDATA[| '%%-30x' | '%-30x' |]]></syst:Format>
+ <syst:Format ID="0x9b431cdb" File="1" Line="289"><![CDATA[| '%%30X' | '%30X' |]]></syst:Format>
+ <syst:Format ID="0x9b431cdc" File="1" Line="290"><![CDATA[| '%%30X' | '%30X' |]]></syst:Format>
+ <syst:Format ID="0x9b431cdd" File="1" Line="291"><![CDATA[| '%%30X' | '%30X' |]]></syst:Format>
+ <syst:Format ID="0x9b431cde" File="1" Line="292"><![CDATA[| '%%30X' | '%30X' |]]></syst:Format>
+ <syst:Format ID="0x9b431cdf" File="1" Line="293"><![CDATA[| '%%30X' | '%30X' |]]></syst:Format>
+ <syst:Format ID="0x9b431ce0" File="1" Line="294"><![CDATA[| '%%30X' | '%30X' |]]></syst:Format>
+ <syst:Format ID="0x361005fd" File="1" Line="295"><![CDATA[| '%%-30X' | '%-30X' |]]></syst:Format>
+ <syst:Format ID="0x361005fe" File="1" Line="296"><![CDATA[| '%%-30X' | '%-30X' |]]></syst:Format>
+ <syst:Format ID="0x361005ff" File="1" Line="297"><![CDATA[| '%%-30X' | '%-30X' |]]></syst:Format>
+ <syst:Format ID="0x36100600" File="1" Line="298"><![CDATA[| '%%-30X' | '%-30X' |]]></syst:Format>
+ <syst:Format ID="0x36100601" File="1" Line="299"><![CDATA[| '%%-30X' | '%-30X' |]]></syst:Format>
+ <syst:Format ID="0x36100602" File="1" Line="300"><![CDATA[| '%%-30X' | '%-30X' |]]></syst:Format>
+ <syst:Format ID="0x02408d9a" File="1" Line="301"><![CDATA[|-----------------------------------double--------------|]]></syst:Format>
+ <syst:Format ID="0x1bfd1b9b" File="1" Line="302"><![CDATA[| '%%30.1f' | '%30.1f' |]]></syst:Format>
+ <syst:Format ID="0x43dfc0db" File="1" Line="303"><![CDATA[| '%%30.2f' | '%30.2f' |]]></syst:Format>
+ <syst:Format ID="0x6bc2661b" File="1" Line="304"><![CDATA[| '%%30.3f' | '%30.3f' |]]></syst:Format>
+ <syst:Format ID="0x93a50b5b" File="1" Line="305"><![CDATA[| '%%30.4f' | '%30.4f' |]]></syst:Format>
+ <syst:Format ID="0xbb87b09b" File="1" Line="306"><![CDATA[| '%%30.5f' | '%30.5f' |]]></syst:Format>
+ <syst:Format ID="0xe36a55db" File="1" Line="307"><![CDATA[| '%%30.6f' | '%30.6f' |]]></syst:Format>
+ <syst:Format ID="0x0b4cfb1b" File="1" Line="308"><![CDATA[| '%%30.7f' | '%30.7f' |]]></syst:Format>
+ <syst:Format ID="0x332fa05b" File="1" Line="309"><![CDATA[| '%%30.8f' | '%30.8f' |]]></syst:Format>
+ <syst:Format ID="0x5b12459b" File="1" Line="310"><![CDATA[| '%%30.9f' | '%30.9f' |]]></syst:Format>
+ <syst:Format ID="0x10b5637d" File="1" Line="311"><![CDATA[| '%%30.10f' | '%30.10f' |]]></syst:Format>
+ <syst:Format ID="0xdda393bd" File="1" Line="312"><![CDATA[| '%%-30.1f' | '%-30.1f' |]]></syst:Format>
+ <syst:Format ID="0x058638fd" File="1" Line="313"><![CDATA[| '%%-30.2f' | '%-30.2f' |]]></syst:Format>
+ <syst:Format ID="0x2d68de3d" File="1" Line="314"><![CDATA[| '%%-30.3f' | '%-30.3f' |]]></syst:Format>
+ <syst:Format ID="0x554b837d" File="1" Line="315"><![CDATA[| '%%-30.4f' | '%-30.4f' |]]></syst:Format>
+ <syst:Format ID="0x7d2e28bd" File="1" Line="316"><![CDATA[| '%%-30.5f' | '%-30.5f' |]]></syst:Format>
+ <syst:Format ID="0xa510cdfd" File="1" Line="317"><![CDATA[| '%%-30.6f' | '%-30.6f' |]]></syst:Format>
+ <syst:Format ID="0xccf3733d" File="1" Line="318"><![CDATA[| '%%-30.7f' | '%-30.7f' |]]></syst:Format>
+ <syst:Format ID="0xf4d6187d" File="1" Line="319"><![CDATA[| '%%-30.8f' | '%-30.8f' |]]></syst:Format>
+ <syst:Format ID="0x1cb8bdbd" File="1" Line="320"><![CDATA[| '%%-30.9f' | '%-30.9f' |]]></syst:Format>
+ <syst:Format ID="0x30cef3db" File="1" Line="321"><![CDATA[| '%%-30.10f' | '%-30.10f' |]]></syst:Format>
+ <syst:Format ID="0x75ff3462" File="1" Line="322"><![CDATA[|-----------------------------------scientific----------|]]></syst:Format>
+ <syst:Format ID="0x811d10db" File="1" Line="323"><![CDATA[| '%%30.1e' | '%30.1e' |]]></syst:Format>
+ <syst:Format ID="0xa8ffb61b" File="1" Line="324"><![CDATA[| '%%30.2e' | '%30.2e' |]]></syst:Format>
+ <syst:Format ID="0xd0e25b5b" File="1" Line="325"><![CDATA[| '%%30.3e' | '%30.3e' |]]></syst:Format>
+ <syst:Format ID="0xf8c5009b" File="1" Line="326"><![CDATA[| '%%30.4e' | '%30.4e' |]]></syst:Format>
+ <syst:Format ID="0x20a7a5db" File="1" Line="327"><![CDATA[| '%%30.5e' | '%30.5e' |]]></syst:Format>
+ <syst:Format ID="0x488a4b1b" File="1" Line="328"><![CDATA[| '%%30.6e' | '%30.6e' |]]></syst:Format>
+ <syst:Format ID="0x706cf05b" File="1" Line="329"><![CDATA[| '%%30.7e' | '%30.7e' |]]></syst:Format>
+ <syst:Format ID="0x984f959b" File="1" Line="330"><![CDATA[| '%%30.8e' | '%30.8e' |]]></syst:Format>
+ <syst:Format ID="0xc0323adb" File="1" Line="331"><![CDATA[| '%%30.9e' | '%30.9e' |]]></syst:Format>
+ <syst:Format ID="0x75d558bd" File="1" Line="332"><![CDATA[| '%%30.10e' | '%30.10e' |]]></syst:Format>
+ <syst:Format ID="0x42c388fd" File="1" Line="333"><![CDATA[| '%%-30.1e' | '%-30.1e' |]]></syst:Format>
+ <syst:Format ID="0x6aa62e3d" File="1" Line="334"><![CDATA[| '%%-30.2e' | '%-30.2e' |]]></syst:Format>
+ <syst:Format ID="0x9288d37d" File="1" Line="335"><![CDATA[| '%%-30.3e' | '%-30.3e' |]]></syst:Format>
+ <syst:Format ID="0xba6b78bd" File="1" Line="336"><![CDATA[| '%%-30.4e' | '%-30.4e' |]]></syst:Format>
+ <syst:Format ID="0xe24e1dfd" File="1" Line="337"><![CDATA[| '%%-30.5e' | '%-30.5e' |]]></syst:Format>
+ <syst:Format ID="0x0a30c33d" File="1" Line="338"><![CDATA[| '%%-30.6e' | '%-30.6e' |]]></syst:Format>
+ <syst:Format ID="0x3213687d" File="1" Line="339"><![CDATA[| '%%-30.7e' | '%-30.7e' |]]></syst:Format>
+ <syst:Format ID="0x59f60dbd" File="1" Line="340"><![CDATA[| '%%-30.8e' | '%-30.8e' |]]></syst:Format>
+ <syst:Format ID="0x81d8b2fd" File="1" Line="341"><![CDATA[| '%%-30.9e' | '%-30.9e' |]]></syst:Format>
+ <syst:Format ID="0x95eee91b" File="1" Line="342"><![CDATA[| '%%-30.10e' | '%-30.10e' |]]></syst:Format>
+ <syst:Format ID="0x66ad3a7f" File="1" Line="343"><![CDATA[|-----------------------------------exotics-------------|]]></syst:Format>
+ <syst:Format ID="0x4e9894fd" File="1" Line="344"><![CDATA[| '%%030hhu' | '%030hhu' |]]></syst:Format>
+ <syst:Format ID="0x1870c29b" File="1" Line="345"><![CDATA[| '%%030hu' | '%030hu' |]]></syst:Format>
+ <syst:Format ID="0xb7fb579b" File="1" Line="346"><![CDATA[| '%%030lu' | '%030lu' |]]></syst:Format>
+ <syst:Format ID="0xc63dd4fd" File="1" Line="347"><![CDATA[| '%%030llu' | '%030llu' |]]></syst:Format>
+ <syst:Format ID="0xad58547d" File="1" Line="348"><![CDATA[| '%%030hho' | '%030hho' |]]></syst:Format>
+ <syst:Format ID="0x7730821b" File="1" Line="349"><![CDATA[| '%%030ho' | '%030ho' |]]></syst:Format>
+ <syst:Format ID="0x16bb171b" File="1" Line="350"><![CDATA[| '%%030lo' | '%030lo' |]]></syst:Format>
+ <syst:Format ID="0x24fd947d" File="1" Line="351"><![CDATA[| '%%030llo' | '%030llo' |]]></syst:Format>
+ <syst:Format ID="0x1f38b53d" File="1" Line="352"><![CDATA[| '%%030hhx' | '%030hhx' |]]></syst:Format>
+ <syst:Format ID="0xe910e2db" File="1" Line="353"><![CDATA[| '%%030hx' | '%030hx' |]]></syst:Format>
+ <syst:Format ID="0x889b77db" File="1" Line="354"><![CDATA[| '%%030lx' | '%030lx' |]]></syst:Format>
+ <syst:Format ID="0x96ddf53d" File="1" Line="355"><![CDATA[| '%%030llx' | '%030llx' |]]></syst:Format>
+ <syst:Format ID="0x3ff8653d" File="1" Line="356"><![CDATA[| '%%-30hhu' | '%-30hhu' |]]></syst:Format>
+ <syst:Format ID="0x60d8e25b" File="1" Line="357"><![CDATA[| '%%-30hu' | '%-30hu' |]]></syst:Format>
+ <syst:Format ID="0x2c427ef9" File="1" Line="358"><![CDATA[| '%%#-30lu' | '%#-30hu' |]]></syst:Format>
+ <syst:Format ID="0xe3d00a1b" File="1" Line="359"><![CDATA[| '%%#-30llu' | '%#-30llu' |]]></syst:Format>
+ <syst:Format ID="0xcaea899b" File="1" Line="360"><![CDATA[| '%%#-30hho' | '%#-30hho' |]]></syst:Format>
+ <syst:Format ID="0xfb29257d" File="1" Line="361"><![CDATA[| '%%#-30ho' | '%#-30ho' |]]></syst:Format>
+ <syst:Format ID="0x9ab3ba7d" File="1" Line="362"><![CDATA[| '%%#-30lo' | '%#-30lo' |]]></syst:Format>
+ <syst:Format ID="0x428fc99b" File="1" Line="363"><![CDATA[| '%%#-30llo' | '%#-30llo' |]]></syst:Format>
+ <syst:Format ID="0x3ccaea5b" File="1" Line="364"><![CDATA[| '%%#-30hhx' | '%#-30hhx' |]]></syst:Format>
+ <syst:Format ID="0x6d09863d" File="1" Line="365"><![CDATA[| '%%#-30hx' | '%#-30hx' |]]></syst:Format>
+ <syst:Format ID="0x0c941b3d" File="1" Line="366"><![CDATA[| '%%#-30lx' | '%#-30lx' |]]></syst:Format>
+ <syst:Format ID="0xb4702a5b" File="1" Line="367"><![CDATA[| '%%#-30llx' | '%#-30llx' |]]></syst:Format>
+ <syst:Format ID="0x32ca5ed8" File="2" Line="64"><![CDATA[SyS-T Library version %d.%d.%d]]></syst:Format>
+ <syst:Format ID="0x00000002" File="2" Line="78"><![CDATA[%s=%d
+]]></syst:Format>
+ <syst:Format ID="0xe054cf5c" File="2" Line="82"><![CDATA[%s=%d
+]]></syst:Format>
+ </syst:Catalog32>
+
+
+ <syst:Catalog64>
+ <syst:Format ID="0x1122334455667788" File="2" Line="77"><![CDATA[Hello world
+]]></syst:Format>
+ </syst:Catalog64>
+
+
+ <!--
+ Define short message mapping from 28-Bit ID to user visible string.
+ -->
+ <syst:Short32>
+ <syst:Format ID="0x01234567" ><![CDATA[Short 32-Bit value (0x01234567)]]></syst:Format>
+ <syst:Format ID="0x0E000000" Mask="0x0F000000"><![CDATA[error with code %d]]></syst:Format>
+ <syst:Format ID="0x0F000000" Mask="0x0F000000"><![CDATA[warning with code %d]]></syst:Format>
+ </syst:Short32>
+
+ <!--
+ Define short message mapping from 60-Bit ID to user visible string.
+ -->
+ <syst:Short64>
+ <syst:Format ID="0x0112233445566778"><![CDATA[Short 64-Bit value (0x0112233445566778)]]]></syst:Format>
+ </syst:Short64>
+
+ <!--
+ Specify write message protocol id assignment
+ -->
+ <syst:Write>
+ <syst:Protocol ID="0x01" Mask="0x00"><![CDATA[Protocol%d]]></syst:Protocol>
+ </syst:Write>
+
+ </syst:Client>
+</syst:Collateral> \ No newline at end of file
diff --git a/printer/test/diff.cmake b/printer/test/diff.cmake
new file mode 100644
index 0000000..dc61a65
--- /dev/null
+++ b/printer/test/diff.cmake
@@ -0,0 +1,21 @@
+set(ENV{SYST_UNITTESTING} "1")
+string(REPLACE "^" ";" OPTIONS ${OPTIONS})
+
+execute_process(
+ COMMAND ${EXECUTABLE} ${OPTIONS}
+ OUTPUT_FILE ${TEST_OUTPUT}
+ RESULT_VARIABLE EXIT_CODE
+)
+
+if(EXIT_CODE)
+ message(FATAL_ERROR "execution of ${EXECUTABLE} ${OPTIONS} failed")
+endif(EXIT_CODE)
+
+execute_process(
+ COMMAND ${CMAKE_COMMAND} -E compare_files ${TEST_REFERENCE} ${TEST_OUTPUT}
+ RESULT_VARIABLE DIFF_FAIL
+)
+
+if (DIFF_FAIL)
+ message(FATAL_ERROR "Reference match failed.")
+endif(DIFF_FAIL) \ No newline at end of file
diff --git a/printer/test/input_client32.txt b/printer/test/input_client32.txt
new file mode 100644
index 0000000..4064b64
--- /dev/null
+++ b/printer/test/input_client32.txt
@@ -0,0 +1,5142 @@
+ in SyS-T platform init hook: "mipi_syst_platform_state_init()"
+ systh = 013632B8, platform_data = 00000000
+ in SyS-T platform handle init hook: systh = 005FBFE8
+
+STP Protocol Output:
+ 0 <D32TS> 02801c00
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6170f7c0
+ 6 <D32> 00054c09
+ 7 <D32> 00010000
+ 8 <D32> 00000000
+ 9 <D32> 73726576
+ 10 <D32> 206e6f69
+ 11 <D32> 6e6e6162
+ 12 <D32> 73207265
+ 13 <D32> 6e697274
+ 14 <D16> 0067
+ 15 <D32> 1bf821f5
+ 16 <FLAG>
+SYS-T RAW DATA: 001C8002494E54438A9C4014A65A2F36A36D96E4C0F77061094C0500000001000000000076657273696F6E2062616E6E657220737472696E6700F521F81B
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6170f7c0
+ 6 <D32> 00054c09
+ 7 <D32> 32ca5ed8
+ 8 <D32> 00000001
+ 9 <D32> 00000000
+ 10 <D32> 00000000
+ 11 <D32> a9c581be
+ 12 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E4C0F77061094C0500D85ECA32010000000000000000000000BE81C5A9
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6170f7c0
+ 6 <D32> 00054c09
+ 7 <D32> e4876129
+ 8 <D32> 1fbab93c
+ 9 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E4C0F77061094C0500296187E43CB9BA1F
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6170f7c0
+ 6 <D32> 00054c09
+ 7 <D32> 16028e9a
+ 8 <D32> 4460167e
+ 9 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E4C0F77061094C05009A8E02167E166044
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6170f7c0
+ 6 <D32> 00054c09
+ 7 <D32> c5d41bc9
+ 8 <D32> 36c7c321
+ 9 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E4C0F77061094C0500C91BD4C521C3C736
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6170f7c0
+ 6 <D32> 00054c09
+ 7 <D32> 23f66c1e
+ 8 <D32> 8089a23e
+ 9 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E4C0F77061094C05001E6CF6233EA28980
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6170f7c0
+ 6 <D32> 00054c09
+ 7 <D32> 95095f2f
+ 8 <D32> 2f125a7f
+ 9 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E4C0F77061094C05002F5F09957F5A122F
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6170f7c0
+ 6 <D32> 00054c09
+ 7 <D32> c645d04b
+ 8 <D32> 81c94048
+ 9 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E4C0F77061094C05004BD045C64840C981
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6170f7c0
+ 6 <D32> 00054c09
+ 7 <D32> 54d8b7ff
+ 8 <D32> b372bf1d
+ 9 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E4C0F77061094C0500FFB7D8541DBF72B3
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6170f7c0
+ 6 <D32> 00054c09
+ 7 <D32> d48907f7
+ 8 <D32> 0e71b9ac
+ 9 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E4C0F77061094C0500F70789D4ACB9710E
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6170f7c0
+ 6 <D32> 00054c09
+ 7 <D32> 9e125f25
+ 8 <D32> 698e2b83
+ 9 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E4C0F77061094C0500255F129E832B8E69
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6170fba7
+ 6 <D32> 00054c09
+ 7 <D32> e487612a
+ 8 <D32> 47189bd5
+ 9 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E4A7FB7061094C05002A6187E4D59B1847
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6170fba7
+ 6 <D32> 00054c09
+ 7 <D32> cf292f8b
+ 8 <D32> f8fa0a46
+ 9 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E4A7FB7061094C05008B2F29CF460AFAF8
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6170fba7
+ 6 <D32> 00054c09
+ 7 <D32> 886b15e0
+ 8 <D32> bb24ce1e
+ 9 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E4A7FB7061094C0500E0156B881ECE24BB
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6170fba7
+ 6 <D32> 00054c09
+ 7 <D32> f0e43f1b
+ 8 <D32> 68676972
+ 9 <D32> 756a2d74
+ 10 <D32> 66697473
+ 11 <D32> 00646569
+ 12 <D32> 8c3c9f00
+ 13 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E4A7FB7061094C05001B3FE4F072696768742D6A757374696669656400009F3C8C
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6170fba7
+ 6 <D32> 00054c09
+ 7 <D32> 8bb1283d
+ 8 <D32> 7466656c
+ 9 <D32> 73756a2d
+ 10 <D32> 69666974
+ 11 <D16> 6465
+ 12 <D8> 00
+ 13 <D32> 073de214
+ 14 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E4A7FB7061094C05003D28B18B6C6566742D6A75737469666965640014E23D07
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6170fba7
+ 6 <D32> 00054c09
+ 7 <D32> 237ce64f
+ 8 <D32> 98055fa8
+ 9 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E4A7FB7061094C05004FE67C23A85F0598
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6170fba7
+ 6 <D32> 00054c09
+ 7 <D32> 80f4ba3d
+ 8 <D32> 24232221
+ 9 <D32> 28272625
+ 10 <D32> 2d2b2a29
+ 11 <D32> 31302f2e
+ 12 <D32> 35343332
+ 13 <D32> 39383736
+ 14 <D32> 3d3c3b3a
+ 15 <D16> 003e
+ 16 <D32> d391a9a9
+ 17 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E4A7FB7061094C05003DBAF4802122232425262728292A2B2D2E2F303132333435363738393A3B3C3D3E00A9A991D3
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6170fba7
+ 6 <D32> 00054c09
+ 7 <D32> 80f4ba3e
+ 8 <D32> 4241403f
+ 9 <D32> 46454443
+ 10 <D32> 4a494847
+ 11 <D32> 4e4d4c4b
+ 12 <D32> 5251504f
+ 13 <D32> 56555453
+ 14 <D32> 5a595857
+ 15 <D16> 005b
+ 16 <D32> 5e5c5f1a
+ 17 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E4A7FB7061094C05003EBAF4803F404142434445464748494A4B4C4D4E4F505152535455565758595A5B001A5F5C5E
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6170fba7
+ 6 <D32> 00054c09
+ 7 <D32> 80f4ba3f
+ 8 <D32> 5f5e5d5c
+ 9 <D32> 63627160
+ 10 <D32> 67666564
+ 11 <D32> 6b6a6968
+ 12 <D32> 6f6e6d6c
+ 13 <D32> 73727170
+ 14 <D32> 77767574
+ 15 <D16> 0078
+ 16 <D32> 462d9c85
+ 17 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E4A7FB7061094C05003FBAF4805C5D5E5F607162636465666768696A6B6C6D6E6F70717273747576777800859C2D46
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6170fba7
+ 6 <D32> 00054c09
+ 7 <D32> 80f4ba40
+ 8 <D32> 7c7b7a79
+ 9 <D32> 20207e7d
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 20202020
+ 13 <D32> 20202020
+ 14 <D32> 20202020
+ 15 <D16> 0020
+ 16 <D32> 80b4d2cd
+ 17 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E4A7FB7061094C050040BAF480797A7B7C7D7E202020202020202020202020202020202020202020202000CDD2B480
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6170fba7
+ 6 <D32> 00054c09
+ 7 <D32> e29131c9
+ 8 <D32> cc752ab7
+ 9 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E4A7FB7061094C0500C93191E2B72A75CC
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6170fba7
+ 6 <D32> 00054c09
+ 7 <D32> ddc39ddb
+ 8 <D32> 00000001
+ 9 <D32> c3ef3aae
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E4A7FB7061094C0500DB9DC3DD01000000AE3AEFC3
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6170ff90
+ 6 <D32> 00054c09
+ 7 <D32> ddc39ddc
+ 8 <D32> 0000000a
+ 9 <D32> d991e259
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E490FF7061094C0500DC9DC3DD0A00000059E291D9
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6170ff90
+ 6 <D32> 00054c09
+ 7 <D32> ddc39ddd
+ 8 <D32> 00000064
+ 9 <D32> de2fa586
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E490FF7061094C0500DD9DC3DD6400000086A52FDE
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6170ff90
+ 6 <D32> 00054c09
+ 7 <D32> ddc39dde
+ 8 <D32> 000003e8
+ 9 <D32> 308379b6
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E490FF7061094C0500DE9DC3DDE8030000B6798330
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6170ff90
+ 6 <D32> 00054c09
+ 7 <D32> ddc39ddf
+ 8 <D32> 00002710
+ 9 <D32> 37260b17
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E490FF7061094C0500DF9DC3DD10270000170B2637
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6170ff90
+ 6 <D32> 00054c09
+ 7 <D32> ddc39de0
+ 8 <D32> 000186a0
+ 9 <D32> b6538c33
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E490FF7061094C0500E09DC3DDA0860100338C53B6
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6170ff90
+ 6 <D32> 00054c09
+ 7 <D32> 789086fd
+ 8 <D32> 00000001
+ 9 <D32> 3452738d
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E490FF7061094C0500FD869078010000008D735234
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6170ff90
+ 6 <D32> 00054c09
+ 7 <D32> 789086fe
+ 8 <D32> 0000000a
+ 9 <D32> 7b701e3b
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E490FF7061094C0500FE8690780A0000003B1E707B
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6170ff90
+ 6 <D32> 00054c09
+ 7 <D32> 789086ff
+ 8 <D32> 00000064
+ 9 <D32> 7cce59e4
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E490FF7061094C0500FF86907864000000E459CE7C
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6170ff90
+ 6 <D32> 00054c09
+ 7 <D32> 78908700
+ 8 <D32> 000003e8
+ 9 <D32> 3e301ed0
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E490FF7061094C050000879078E8030000D01E303E
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6170ff90
+ 6 <D32> 00054c09
+ 7 <D32> 78908701
+ 8 <D32> 00002710
+ 9 <D32> 39956c71
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E490FF7061094C05000187907810270000716C9539
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6170ff90
+ 6 <D32> 00054c09
+ 7 <D32> 78908702
+ 8 <D32> 000186a0
+ 9 <D32> 52b001cf
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E490FF7061094C050002879078A0860100CF01B052
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6170ff90
+ 6 <D32> 00054c09
+ 7 <D32> 149a8033
+ 8 <D32> 6a9dafe2
+ 9 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E490FF7061094C050033809A14E2AF9D6A
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6170ff90
+ 6 <D32> 00054c09
+ 7 <D32> f74474db
+ 8 <D32> 0000000a
+ 9 <D32> 83c89610
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E490FF7061094C0500DB7444F70A0000001096C883
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6170ff90
+ 6 <D32> 00054c09
+ 7 <D32> f74474dc
+ 8 <D32> 000000ab
+ 9 <D32> 2151e418
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E490FF7061094C0500DC7444F7AB00000018E45121
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6170ff90
+ 6 <D32> 00054c09
+ 7 <D32> f74474dd
+ 8 <D32> 00000abc
+ 9 <D32> ef37fc00
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E490FF7061094C0500DD7444F7BC0A000000FC37EF
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6170ff90
+ 6 <D32> 00054c09
+ 7 <D32> f74474de
+ 8 <D32> 0000abcd
+ 9 <D32> b3f335a9
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E490FF7061094C0500DE7444F7CDAB0000A935F3B3
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6170ff90
+ 6 <D32> 00054c09
+ 7 <D32> f74474df
+ 8 <D32> 000abcde
+ 9 <D32> cf8a9a3f
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E490FF7061094C0500DF7444F7DEBC0A003F9A8ACF
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710378
+ 6 <D32> 00054c09
+ 7 <D32> f74474e0
+ 8 <D32> 00abcdef
+ 9 <D32> d85ebe52
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E478037161094C0500E07444F7EFCDAB0052BE5ED8
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710378
+ 6 <D32> 00054c09
+ 7 <D32> 92115dfd
+ 8 <D32> 0000000a
+ 9 <D32> e054b3f7
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E478037161094C0500FD5D11920A000000F7B354E0
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710378
+ 6 <D32> 00054c09
+ 7 <D32> 92115dfe
+ 8 <D32> 000000ab
+ 9 <D32> 63d04392
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E478037161094C0500FE5D1192AB0000009243D063
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710378
+ 6 <D32> 00054c09
+ 7 <D32> 92115dff
+ 8 <D32> 00000abc
+ 9 <D32> adb65b8a
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E478037161094C0500FF5D1192BC0A00008A5BB6AD
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710378
+ 6 <D32> 00054c09
+ 7 <D32> 92115e00
+ 8 <D32> 0000abcd
+ 9 <D32> 8d2650b7
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E478037161094C0500005E1192CDAB0000B750268D
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710378
+ 6 <D32> 00054c09
+ 7 <D32> 92115e01
+ 8 <D32> 000abcde
+ 9 <D32> f15fff21
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E478037161094C0500015E1192DEBC0A0021FF5FF1
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710378
+ 6 <D32> 00054c09
+ 7 <D32> 92115e02
+ 8 <D32> 00abcdef
+ 9 <D32> ad3762f3
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E478037161094C0500025E1192EFCDAB00F36237AD
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710378
+ 6 <D32> 00054c09
+ 7 <D32> 9b431cdb
+ 8 <D32> 0000000a
+ 9 <D32> a4772ad4
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E478037161094C0500DB1C439B0A000000D42A77A4
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710378
+ 6 <D32> 00054c09
+ 7 <D32> 9b431cdc
+ 8 <D32> 000000ab
+ 9 <D32> 06ee58dc
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E478037161094C0500DC1C439BAB000000DC58EE06
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710378
+ 6 <D32> 00054c09
+ 7 <D32> 9b431cdd
+ 8 <D32> 00000abc
+ 9 <D32> c88840c4
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E478037161094C0500DD1C439BBC0A0000C44088C8
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710378
+ 6 <D32> 00054c09
+ 7 <D32> 9b431cde
+ 8 <D32> 0000abcd
+ 9 <D32> 944c896d
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E478037161094C0500DE1C439BCDAB00006D894C94
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710378
+ 6 <D32> 00054c09
+ 7 <D32> 9b431cdf
+ 8 <D32> 000abcde
+ 9 <D32> e83526fb
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E478037161094C0500DF1C439BDEBC0A00FB2635E8
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710378
+ 6 <D32> 00054c09
+ 7 <D32> 9b431ce0
+ 8 <D32> 00abcdef
+ 9 <D32> 5e0d51b3
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E478037161094C0500E01C439BEFCDAB00B3510D5E
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710378
+ 6 <D32> 00054c09
+ 7 <D32> 361005fd
+ 8 <D32> 0000000a
+ 9 <D32> 32ea06da
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E478037161094C0500FD0510360A000000DA06EA32
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710378
+ 6 <D32> 00054c09
+ 7 <D32> 361005fe
+ 8 <D32> 000000ab
+ 9 <D32> b16ef6bf
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E478037161094C0500FE051036AB000000BFF66EB1
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710761
+ 6 <D32> 00054c09
+ 7 <D32> 361005ff
+ 8 <D32> 00000abc
+ 9 <D32> 89106634
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E461077161094C0500FF051036BC0A000034661089
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710761
+ 6 <D32> 00054c09
+ 7 <D32> 36100600
+ 8 <D32> 0000abcd
+ 9 <D32> a9806d09
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E461077161094C050000061036CDAB0000096D80A9
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710761
+ 6 <D32> 00054c09
+ 7 <D32> 36100601
+ 8 <D32> 000abcde
+ 9 <D32> d5f9c29f
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E461077161094C050001061036DEBC0A009FC2F9D5
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710761
+ 6 <D32> 00054c09
+ 7 <D32> 36100602
+ 8 <D32> 00abcdef
+ 9 <D32> 89915f4d
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E461077161094C050002061036EFCDAB004D5F9189
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710761
+ 6 <D32> 00054c09
+ 7 <D32> 02408d9a
+ 8 <D32> d2a0edf8
+ 9 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E461077161094C05009A8D4002F8EDA0D2
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710761
+ 6 <D32> 00054c09
+ 7 <D32> 1bfd1b9b
+ 8 <D32> 54442eea
+ 9 <D32> 400921fb
+ 10 <D32> 26fd43c6
+ 11 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E461077161094C05009B1BFD1BEA2E4454FB210940C643FD26
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710761
+ 6 <D32> 00054c09
+ 7 <D32> 43dfc0db
+ 8 <D32> 54442eea
+ 9 <D32> 400921fb
+ 10 <D32> 0a0413d5
+ 11 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E461077161094C0500DBC0DF43EA2E4454FB210940D513040A
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710761
+ 6 <D32> 00054c09
+ 7 <D32> 6bc2661b
+ 8 <D32> 54442eea
+ 9 <D32> 400921fb
+ 10 <D32> f7b182f5
+ 11 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E461077161094C05001B66C26BEA2E4454FB210940F582B1F7
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710761
+ 6 <D32> 00054c09
+ 7 <D32> 93a50b5b
+ 8 <D32> 54442eea
+ 9 <D32> 400921fb
+ 10 <D32> 3eff2187
+ 11 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E461077161094C05005B0BA593EA2E4454FB2109408721FF3E
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710761
+ 6 <D32> 00054c09
+ 7 <D32> bb87b09b
+ 8 <D32> 54442eea
+ 9 <D32> 400921fb
+ 10 <D32> 5d19c567
+ 11 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E461077161094C05009BB087BBEA2E4454FB21094067C5195D
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710761
+ 6 <D32> 00054c09
+ 7 <D32> e36a55db
+ 8 <D32> 54442eea
+ 9 <D32> 400921fb
+ 10 <D32> 3cce26b7
+ 11 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E461077161094C0500DB556AE3EA2E4454FB210940B726CE3C
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710761
+ 6 <D32> 00054c09
+ 7 <D32> 0b4cfb1b
+ 8 <D32> 54442eea
+ 9 <D32> 400921fb
+ 10 <D32> 9711f3f8
+ 11 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E461077161094C05001BFB4C0BEA2E4454FB210940F8F31197
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710761
+ 6 <D32> 00054c09
+ 7 <D32> 332fa05b
+ 8 <D32> 54442eea
+ 9 <D32> 400921fb
+ 10 <D32> 91397545
+ 11 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E461077161094C05005BA02F33EA2E4454FB21094045753991
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710b4b
+ 6 <D32> 00054c09
+ 7 <D32> 5b12459b
+ 8 <D32> 54442eea
+ 9 <D32> 400921fb
+ 10 <D32> 7dc81b50
+ 11 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E44B0B7161094C05009B45125BEA2E4454FB210940501BC87D
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710b4b
+ 6 <D32> 00054c09
+ 7 <D32> 10b5637d
+ 8 <D32> 54442eea
+ 9 <D32> 400921fb
+ 10 <D32> ec9adb02
+ 11 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E44B0B7161094C05007D63B510EA2E4454FB21094002DB9AEC
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710b4b
+ 6 <D32> 00054c09
+ 7 <D32> dda393bd
+ 8 <D32> 54442eea
+ 9 <D32> 400921fb
+ 10 <D32> eb81c138
+ 11 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E44B0B7161094C0500BD93A3DDEA2E4454FB21094038C181EB
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710b4b
+ 6 <D32> 00054c09
+ 7 <D32> 058638fd
+ 8 <D32> 54442eea
+ 9 <D32> 400921fb
+ 10 <D32> 8f745fb7
+ 11 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E44B0B7161094C0500FD388605EA2E4454FB210940B75F748F
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710b4b
+ 6 <D32> 00054c09
+ 7 <D32> 2d68de3d
+ 8 <D32> 54442eea
+ 9 <D32> 400921fb
+ 10 <D32> 8d5b65bf
+ 11 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E44B0B7161094C05003DDE682DEA2E4454FB210940BF655B8D
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710b4b
+ 6 <D32> 00054c09
+ 7 <D32> 554b837d
+ 8 <D32> 54442eea
+ 9 <D32> 400921fb
+ 10 <D32> 1aaec488
+ 11 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E44B0B7161094C05007D834B55EA2E4454FB21094088C4AE1A
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710b4b
+ 6 <D32> 00054c09
+ 7 <D32> 7d2e28bd
+ 8 <D32> 54442eea
+ 9 <D32> 400921fb
+ 10 <D32> 62aca70a
+ 11 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E44B0B7161094C0500BD282E7DEA2E4454FB2109400AA7AC62
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710b4b
+ 6 <D32> 00054c09
+ 7 <D32> a510cdfd
+ 8 <D32> 54442eea
+ 9 <D32> 400921fb
+ 10 <D32> 37a0b385
+ 11 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E44B0B7161094C0500FDCD10A5EA2E4454FB21094085B3A037
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710b4b
+ 6 <D32> 00054c09
+ 7 <D32> ccf3733d
+ 8 <D32> 54442eea
+ 9 <D32> 400921fb
+ 10 <D32> 3c92d894
+ 11 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E44B0B7161094C05003D73F3CCEA2E4454FB21094094D8923C
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710b4b
+ 6 <D32> 00054c09
+ 7 <D32> f4d6187d
+ 8 <D32> 54442eea
+ 9 <D32> 400921fb
+ 10 <D32> 5129d83c
+ 11 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E44B0B7161094C05007D18D6F4EA2E4454FB2109403CD82951
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710b4b
+ 6 <D32> 00054c09
+ 7 <D32> 1cb8bdbd
+ 8 <D32> 54442eea
+ 9 <D32> 400921fb
+ 10 <D32> 91635891
+ 11 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E44B0B7161094C0500BDBDB81CEA2E4454FB21094091586391
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710b4b
+ 6 <D32> 00054c09
+ 7 <D32> 30cef3db
+ 8 <D32> 54442eea
+ 9 <D32> 400921fb
+ 10 <D32> 50886736
+ 11 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E44B0B7161094C0500DBF3CE30EA2E4454FB21094036678850
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710b4b
+ 6 <D32> 00054c09
+ 7 <D32> 75ff3462
+ 8 <D32> b927aa6a
+ 9 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E44B0B7161094C05006234FF756AAA27B9
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710b4b
+ 6 <D32> 00054c09
+ 7 <D32> 811d10db
+ 8 <D32> 00000000
+ 9 <D32> 3ff80000
+ 10 <D32> e25ff081
+ 11 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E44B0B7161094C0500DB101D81000000000000F83F81F05FE2
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710f33
+ 6 <D32> 00054c09
+ 7 <D32> a8ffb61b
+ 8 <D32> 00000000
+ 9 <D32> 40250000
+ 10 <D32> e5e85f84
+ 11 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E4330F7161094C05001BB6FFA80000000000002540845FE8E5
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710f33
+ 6 <D32> 00054c09
+ 7 <D32> d0e25b5b
+ 8 <D32> 00000000
+ 9 <D32> 40250000
+ 10 <D32> 16342c45
+ 11 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E4330F7161094C05005B5BE2D00000000000002540452C3416
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710f33
+ 6 <D32> 00054c09
+ 7 <D32> f8c5009b
+ 8 <D32> 00000000
+ 9 <D32> 40592000
+ 10 <D32> 3fb8b45d
+ 11 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E4330F7161094C05009B00C5F800000000002059405DB4B83F
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710f33
+ 6 <D32> 00054c09
+ 7 <D32> 20a7a5db
+ 8 <D32> 00000000
+ 9 <D32> 408f4400
+ 10 <D32> 26369d19
+ 11 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E4330F7161094C0500DBA5A7200000000000448F40199D3626
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710f33
+ 6 <D32> 00054c09
+ 7 <D32> 488a4b1b
+ 8 <D32> 00000000
+ 9 <D32> 40c38840
+ 10 <D32> 2b01893a
+ 11 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E4330F7161094C05001B4B8A48000000004088C3403A89012B
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710f33
+ 6 <D32> 00054c09
+ 7 <D32> 706cf05b
+ 8 <D32> 00000000
+ 9 <D32> 40c38840
+ 10 <D32> 90df95ac
+ 11 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E4330F7161094C05005BF06C70000000004088C340AC95DF90
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710f33
+ 6 <D32> 00054c09
+ 7 <D32> 984f959b
+ 8 <D32> 00000000
+ 9 <D32> 40c38840
+ 10 <D32> 5788c040
+ 11 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E4330F7161094C05009B954F98000000004088C34040C08857
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710f33
+ 6 <D32> 00054c09
+ 7 <D32> c0323adb
+ 8 <D32> 00000000
+ 9 <D32> 40f86a08
+ 10 <D32> 635cfa62
+ 11 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E4330F7161094C0500DB3A32C000000000086AF84062FA5C63
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710f33
+ 6 <D32> 00054c09
+ 7 <D32> 75d558bd
+ 8 <D32> 00000000
+ 9 <D32> 412e8481
+ 10 <D32> dd97473b
+ 11 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E4330F7161094C0500BD58D5750000000081842E413B4797DD
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710f33
+ 6 <D32> 00054c09
+ 7 <D32> 42c388fd
+ 8 <D32> 00000000
+ 9 <D32> 3ff80000
+ 10 <D32> 00958000
+ 11 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E4330F7161094C0500FD88C342000000000000F83F00809500
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710f33
+ 6 <D32> 00054c09
+ 7 <D32> 6aa62e3d
+ 8 <D32> 00000000
+ 9 <D32> 40250000
+ 10 <D32> c161dc2f
+ 11 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E4330F7161094C05003D2EA66A00000000000025402FDC61C1
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710f33
+ 6 <D32> 00054c09
+ 7 <D32> 9288d37d
+ 8 <D32> 00000000
+ 9 <D32> 40250000
+ 10 <D32> 0261e1a7
+ 11 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E4330F7161094C05007DD388920000000000002540A7E16102
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710f33
+ 6 <D32> 00054c09
+ 7 <D32> ba6b78bd
+ 8 <D32> 00000000
+ 9 <D32> 40592000
+ 10 <D32> 3dd290ca
+ 11 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E4330F7161094C0500BD786BBA0000000000205940CA90D23D
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710f33
+ 6 <D32> 00054c09
+ 7 <D32> e24e1dfd
+ 8 <D32> 00000000
+ 9 <D32> 408f4400
+ 10 <D32> 50b30391
+ 11 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E4330F7161094C0500FD1D4EE20000000000448F409103B350
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61710f33
+ 6 <D32> 00054c09
+ 7 <D32> 0a30c33d
+ 8 <D32> 00000000
+ 9 <D32> 40c38840
+ 10 <D32> f5f14c72
+ 11 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E4330F7161094C05003DC3300A000000004088C340724CF1F5
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6171131c
+ 6 <D32> 00054c09
+ 7 <D32> 3213687d
+ 8 <D32> 00000000
+ 9 <D32> 40c38840
+ 10 <D32> f5ea072d
+ 11 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E41C137161094C05007D681332000000004088C3402D07EAF5
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6171131c
+ 6 <D32> 00054c09
+ 7 <D32> 59f60dbd
+ 8 <D32> 00000000
+ 9 <D32> 40c38840
+ 10 <D32> 7a477189
+ 11 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E41C137161094C0500BD0DF659000000004088C3408971477A
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6171131c
+ 6 <D32> 00054c09
+ 7 <D32> 81d8b2fd
+ 8 <D32> 00000000
+ 9 <D32> 40f86a08
+ 10 <D32> 5dc76ab9
+ 11 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E41C137161094C0500FDB2D88100000000086AF840B96AC75D
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6171131c
+ 6 <D32> 00054c09
+ 7 <D32> 95eee91b
+ 8 <D32> 00000000
+ 9 <D32> 412e8481
+ 10 <D32> 4e0ec5dc
+ 11 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E41C137161094C05001BE9EE950000000081842E41DCC50E4E
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6171131c
+ 6 <D32> 00054c09
+ 7 <D32> 66ad3a7f
+ 8 <D32> 176c54b2
+ 9 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E41C137161094C05007F3AAD66B2546C17
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6171131c
+ 6 <D32> 00054c09
+ 7 <D32> 4e9894fd
+ 8 <D32> 000000ff
+ 9 <D32> 9e18d548
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E41C137161094C0500FD94984EFF00000048D5189E
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6171131c
+ 6 <D32> 00054c09
+ 7 <D32> 1870c29b
+ 8 <D32> ffffffff
+ 9 <D32> e906b61d
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E41C137161094C05009BC27018FFFFFFFF1DB606E9
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6171131c
+ 6 <D32> 00054c09
+ 7 <D32> b7fb579b
+ 8 <D32> ffffffff
+ 9 <D32> 1d79aa9b
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E41C137161094C05009B57FBB7FFFFFFFF9BAA791D
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6171131c
+ 6 <D32> 00054c09
+ 7 <D32> c63dd4fd
+ 8 <D32> ffffffff
+ 9 <D32> ffffffff
+ 10 <D32> b4b7b8b5
+ 11 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E41C137161094C0500FDD43DC6FFFFFFFFFFFFFFFFB5B8B7B4
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6171131c
+ 6 <D32> 00054c09
+ 7 <D32> ad58547d
+ 8 <D32> 000000ff
+ 9 <D32> 3da41cce
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E41C137161094C05007D5458ADFF000000CE1CA43D
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6171131c
+ 6 <D32> 00054c09
+ 7 <D32> 7730821b
+ 8 <D32> ffffffff
+ 9 <D32> e85ca6c4
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E41C137161094C05001B823077FFFFFFFFC4A65CE8
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6171131c
+ 6 <D32> 00054c09
+ 7 <D32> 16bb171b
+ 8 <D32> ffffffff
+ 9 <D32> 10d06fc9
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E41C137161094C05001B17BB16FFFFFFFFC96FD010
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6171131c
+ 6 <D32> 00054c09
+ 7 <D32> 24fd947d
+ 8 <D32> ffffffff
+ 9 <D32> ffffffff
+ 10 <D32> 396be477
+ 11 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E41C137161094C05007D94FD24FFFFFFFFFFFFFFFF77E46B39
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6171131c
+ 6 <D32> 00054c09
+ 7 <D32> 1f38b53d
+ 8 <D32> 000000ff
+ 9 <D32> fcdfe2e1
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E41C137161094C05003DB5381FFF000000E1E2DFFC
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61711705
+ 6 <D32> 00054c09
+ 7 <D32> e910e2db
+ 8 <D32> ffffffff
+ 9 <D32> 46dd3fbd
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E405177161094C0500DBE210E9FFFFFFFFBD3FDD46
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61711705
+ 6 <D32> 00054c09
+ 7 <D32> 889b77db
+ 8 <D32> ffffffff
+ 9 <D32> be51f6b0
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E405177161094C0500DB779B88FFFFFFFFB0F651BE
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61711705
+ 6 <D32> 00054c09
+ 7 <D32> 96ddf53d
+ 8 <D32> ffffffff
+ 9 <D32> ffffffff
+ 10 <D32> d5de3946
+ 11 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E405177161094C05003DF5DD96FFFFFFFFFFFFFFFF4639DED5
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61711705
+ 6 <D32> 00054c09
+ 7 <D32> 3ff8653d
+ 8 <D32> 000000ff
+ 9 <D32> 10e1c030
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E405177161094C05003D65F83FFF00000030C0E110
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61711705
+ 6 <D32> 00054c09
+ 7 <D32> 60d8e25b
+ 8 <D32> ffffffff
+ 9 <D32> 9302ec9a
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E405177161094C05005BE2D860FFFFFFFF9AEC0293
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61711705
+ 6 <D32> 00054c09
+ 7 <D32> 2c427ef9
+ 8 <D32> ffffffff
+ 9 <D32> cf7ec942
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E405177161094C0500F97E422CFFFFFFFF42C97ECF
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61711705
+ 6 <D32> 00054c09
+ 7 <D32> e3d00a1b
+ 8 <D32> ffffffff
+ 9 <D32> ffffffff
+ 10 <D32> be7a76a7
+ 11 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E405177161094C05001B0AD0E3FFFFFFFFFFFFFFFFA7767ABE
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61711705
+ 6 <D32> 00054c09
+ 7 <D32> caea899b
+ 8 <D32> 000000ff
+ 9 <D32> cd67d3c8
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E405177161094C05009B89EACAFF000000C8D367CD
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61711705
+ 6 <D32> 00054c09
+ 7 <D32> fb29257d
+ 8 <D32> ffffffff
+ 9 <D32> 6b4be65a
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E405177161094C05007D2529FBFFFFFFFF5AE64B6B
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61711705
+ 6 <D32> 00054c09
+ 7 <D32> 9ab3ba7d
+ 8 <D32> ffffffff
+ 9 <D32> 22d0d0b3
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E405177161094C05007DBAB39AFFFFFFFFB3D0D022
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61711705
+ 6 <D32> 00054c09
+ 7 <D32> 428fc99b
+ 8 <D32> ffffffff
+ 9 <D32> ffffffff
+ 10 <D32> 6ae3ae76
+ 11 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E405177161094C05009BC98F42FFFFFFFFFFFFFFFF76AEE36A
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61711705
+ 6 <D32> 00054c09
+ 7 <D32> 3ccaea5b
+ 8 <D32> 000000ff
+ 9 <D32> c4656312
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E405177161094C05005BEACA3CFF000000126365C4
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61711705
+ 6 <D32> 00054c09
+ 7 <D32> 6d09863d
+ 8 <D32> ffffffff
+ 9 <D32> f5681693
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E405177161094C05003D86096DFFFFFFFF931668F5
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61711705
+ 6 <D32> 00054c09
+ 7 <D32> 0c941b3d
+ 8 <D32> ffffffff
+ 9 <D32> eabc8547
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E405177161094C05003D1B940CFFFFFFFF4785BCEA
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61711705
+ 6 <D32> 00054c09
+ 7 <D32> b4702a5b
+ 8 <D32> ffffffff
+ 9 <D32> ffffffff
+ 10 <D32> 66cdb99c
+ 11 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E405177161094C05005B2A70B4FFFFFFFFFFFFFFFF9CB9CD66
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61711705
+ 6 <D32> 00054c09
+ 7 <D32> 2d2d2d7c
+ 8 <D32> 2d2d2d2d
+ 9 <D32> 2d2d2d2d
+ 10 <D32> 2d2d2d2d
+ 11 <D32> 2d2d2d2d
+ 12 <D32> 2d2d2d2d
+ 13 <D32> 2d2d2d2d
+ 14 <D32> 2d2d2d2d
+ 15 <D32> 2d2d2d2d
+ 16 <D32> 2d2d2d2d
+ 17 <D32> 2d2d2d2d
+ 18 <D32> 2d2d2d2d
+ 19 <D32> 2d2d2d2d
+ 20 <D32> 2d2d2d2d
+ 21 <D16> 007c
+ 22 <D32> 83c07719
+ 23 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E405177161094C05007C2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D7C001977C083
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61711705
+ 6 <D32> 00054c09
+ 7 <D32> 2020207c
+ 8 <D32> 69727020
+ 9 <D32> 2066746e
+ 10 <D32> 6d726f46
+ 11 <D32> 20207461
+ 12 <D32> 20207c20
+ 13 <D32> 20202020
+ 14 <D32> 70202020
+ 15 <D32> 746e6972
+ 16 <D32> 65522066
+ 17 <D32> 746c7573
+ 18 <D32> 20202020
+ 19 <D32> 20202020
+ 20 <D32> 20202020
+ 21 <D16> 007c
+ 22 <D32> ed6b43d6
+ 23 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E405177161094C05007C202020207072696E746620466F726D61742020207C2020202020202020207072696E746620526573756C742020202020202020202020207C00D6436BED
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61711aed
+ 6 <D32> 00054c09
+ 7 <D32> 2d2d2d7c
+ 8 <D32> 2d2d2d2d
+ 9 <D32> 2d2d2d2d
+ 10 <D32> 2d2d2d2d
+ 11 <D32> 2d2d2d2d
+ 12 <D32> 2d2d2d2d
+ 13 <D32> 2d2d2d2d
+ 14 <D32> 2d2d2d2d
+ 15 <D32> 74732d2d
+ 16 <D32> 676e6972
+ 17 <D32> 2d2d2d73
+ 18 <D32> 2d2d2d2d
+ 19 <D32> 2d2d2d2d
+ 20 <D32> 2d2d2d2d
+ 21 <D16> 007c
+ 22 <D32> 1650bb63
+ 23 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4ED1A7161094C05007C2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D737472696E67732D2D2D2D2D2D2D2D2D2D2D2D2D2D2D7C0063BB5016
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61711aed
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 73303325
+ 9 <D32> 20202027
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 30332527
+ 14 <D32> 7c202773
+ 15 <D32> 67697200
+ 16 <D32> 6a2d7468
+ 17 <D32> 69747375
+ 18 <D32> 64656966
+ 19 <D8> 00
+ 20 <D32> a4bded67
+ 21 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4ED1A7161094C05007C2027252533307327202020202020202020202020207C20272533307327207C0072696768742D6A75737469666965640067EDBDA4
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61711aed
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30332d25
+ 9 <D32> 20202773
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 332d2527
+ 14 <D32> 20277330
+ 15 <D32> 656c007c
+ 16 <D32> 6a2d7466
+ 17 <D32> 69747375
+ 18 <D32> 64656966
+ 19 <D8> 00
+ 20 <D32> 5e60d015
+ 21 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4ED1A7161094C05007C202725252D333073272020202020202020202020207C2027252D33307327207C006C6566742D6A75737469666965640015D0605E
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61711aed
+ 6 <D32> 00054c09
+ 7 <D32> 2d2d2d7c
+ 8 <D32> 2d2d2d2d
+ 9 <D32> 2d2d2d2d
+ 10 <D32> 2d2d2d2d
+ 11 <D32> 2d2d2d2d
+ 12 <D32> 2d2d2d2d
+ 13 <D32> 2d2d2d2d
+ 14 <D32> 2d2d2d2d
+ 15 <D32> 53412d2d
+ 16 <D32> 2d494943
+ 17 <D32> 2d2d2d2d
+ 18 <D32> 2d2d2d2d
+ 19 <D32> 2d2d2d2d
+ 20 <D32> 2d2d2d2d
+ 21 <D16> 007c
+ 22 <D32> c782e186
+ 23 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4ED1A7161094C05007C2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D41534349492D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D7C0086E182C7
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61711aed
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 20277325
+ 9 <D32> 20202020
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 27732527
+ 14 <D32> 007c2020
+ 15 <D32> 24232221
+ 16 <D32> 28272625
+ 17 <D32> 2d2b2a29
+ 18 <D32> 31302f2e
+ 19 <D32> 35343332
+ 20 <D32> 39383736
+ 21 <D32> 3d3c3b3a
+ 22 <D16> 003e
+ 23 <D32> 054ee828
+ 24 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4ED1A7161094C05007C2027252573272020202020202020202020202020207C202725732720207C002122232425262728292A2B2D2E2F303132333435363738393A3B3C3D3E0028E84E05
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61711aed
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 20277325
+ 9 <D32> 20202020
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 27732527
+ 14 <D32> 007c2020
+ 15 <D32> 4241403f
+ 16 <D32> 46454443
+ 17 <D32> 4a494847
+ 18 <D32> 4e4d4c4b
+ 19 <D32> 5251504f
+ 20 <D32> 56555453
+ 21 <D32> 5a595857
+ 22 <D16> 005b
+ 23 <D32> 0b9e82e8
+ 24 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4ED1A7161094C05007C2027252573272020202020202020202020202020207C202725732720207C003F404142434445464748494A4B4C4D4E4F505152535455565758595A5B00E8829E0B
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61711aed
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 20277325
+ 9 <D32> 20202020
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 27732527
+ 14 <D32> 007c2020
+ 15 <D32> 5f5e5d5c
+ 16 <D32> 63627160
+ 17 <D32> 67666564
+ 18 <D32> 6b6a6968
+ 19 <D32> 6f6e6d6c
+ 20 <D32> 73727170
+ 21 <D32> 77767574
+ 22 <D16> 0078
+ 23 <D32> 6d1bcaa6
+ 24 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4ED1A7161094C05007C2027252573272020202020202020202020202020207C202725732720207C005C5D5E5F607162636465666768696A6B6C6D6E6F70717273747576777800A6CA1B6D
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61711aed
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 20277325
+ 9 <D32> 20202020
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 27732527
+ 14 <D32> 007c2020
+ 15 <D32> 7c7b7a79
+ 16 <D32> 20207e7d
+ 17 <D32> 20202020
+ 18 <D32> 20202020
+ 19 <D32> 20202020
+ 20 <D32> 20202020
+ 21 <D32> 20202020
+ 22 <D16> 0020
+ 23 <D32> e4889804
+ 24 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4ED1A7161094C05007C2027252573272020202020202020202020202020207C202725732720207C00797A7B7C7D7E202020202020202020202020202020202020202020202000049888E4
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61711aed
+ 6 <D32> 00054c09
+ 7 <D32> 2d2d2d7c
+ 8 <D32> 2d2d2d2d
+ 9 <D32> 2d2d2d2d
+ 10 <D32> 2d2d2d2d
+ 11 <D32> 2d2d2d2d
+ 12 <D32> 2d2d2d2d
+ 13 <D32> 2d2d2d2d
+ 14 <D32> 2d2d2d2d
+ 15 <D32> 65642d2d
+ 16 <D32> 616d6963
+ 17 <D32> 2d2d736c
+ 18 <D32> 2d2d2d2d
+ 19 <D32> 2d2d2d2d
+ 20 <D32> 2d2d2d2d
+ 21 <D16> 007c
+ 22 <D32> 07de865b
+ 23 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4ED1A7161094C05007C2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D646563696D616C732D2D2D2D2D2D2D2D2D2D2D2D2D2D7C005B86DE07
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61711ed6
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 64303325
+ 9 <D32> 20202027
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 30332527
+ 14 <D32> 7c202764
+ 15 <D32> 00000100
+ 16 <D8> 00
+ 17 <D32> f21840be
+ 18 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4D61E7161094C05007C2027252533306427202020202020202020202020207C20272533306427207C0001000000BE4018F2
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61711ed6
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 64303325
+ 9 <D32> 20202027
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 30332527
+ 14 <D32> 7c202764
+ 15 <D32> 00000a00
+ 16 <D8> 00
+ 17 <D32> 667eaa61
+ 18 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4D61E7161094C05007C2027252533306427202020202020202020202020207C20272533306427207C000A00000061AA7E66
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61711ed6
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 64303325
+ 9 <D32> 20202027
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 30332527
+ 14 <D32> 7c202764
+ 15 <D32> 00006400
+ 16 <D8> 00
+ 17 <D32> 28fc9099
+ 18 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4D61E7161094C05007C2027252533306427202020202020202020202020207C20272533306427207C00640000009990FC28
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61711ed6
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 64303325
+ 9 <D32> 20202027
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 30332527
+ 14 <D32> 7c202764
+ 15 <D32> 0003e800
+ 16 <D8> 00
+ 17 <D32> 1d14cbc0
+ 18 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4D61E7161094C05007C2027252533306427202020202020202020202020207C20272533306427207C00E8030000C0CB141D
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61711ed6
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 64303325
+ 9 <D32> 20202027
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 30332527
+ 14 <D32> 7c202764
+ 15 <D32> 00271000
+ 16 <D8> 00
+ 17 <D32> 538dc446
+ 18 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4D61E7161094C05007C2027252533306427202020202020202020202020207C20272533306427207C001027000046C48D53
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61711ed6
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 64303325
+ 9 <D32> 20202027
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 30332527
+ 14 <D32> 7c202764
+ 15 <D32> 0186a000
+ 16 <D8> 00
+ 17 <D32> e3ec2e91
+ 18 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4D61E7161094C05007C2027252533306427202020202020202020202020207C20272533306427207C00A0860100912EECE3
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61711ed6
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30332d25
+ 9 <D32> 20202764
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 332d2527
+ 14 <D32> 20276430
+ 15 <D32> 0001007c
+ 16 <D16> 0000
+ 17 <D32> 5a29fc06
+ 18 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4D61E7161094C05007C202725252D333064272020202020202020202020207C2027252D33306427207C000100000006FC295A
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61711ed6
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30332d25
+ 9 <D32> 20202764
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 332d2527
+ 14 <D32> 20276430
+ 15 <D32> 000a007c
+ 16 <D16> 0000
+ 17 <D32> ce4f16d9
+ 18 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4D61E7161094C05007C202725252D333064272020202020202020202020207C2027252D33306427207C000A000000D9164FCE
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61711ed6
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30332d25
+ 9 <D32> 20202764
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 332d2527
+ 14 <D32> 20276430
+ 15 <D32> 0064007c
+ 16 <D16> 0000
+ 17 <D32> 80cd2c21
+ 18 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4D61E7161094C05007C202725252D333064272020202020202020202020207C2027252D33306427207C0064000000212CCD80
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61711ed6
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30332d25
+ 9 <D32> 20202764
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 332d2527
+ 14 <D32> 20276430
+ 15 <D32> 03e8007c
+ 16 <D16> 0000
+ 17 <D32> b5257778
+ 18 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4D61E7161094C05007C202725252D333064272020202020202020202020207C2027252D33306427207C00E8030000787725B5
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617122bf
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30332d25
+ 9 <D32> 20202764
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 332d2527
+ 14 <D32> 20276430
+ 15 <D32> 2710007c
+ 16 <D16> 0000
+ 17 <D32> 180fce5f
+ 18 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4BF227161094C05007C202725252D333064272020202020202020202020207C2027252D33306427207C00102700005FCE0F18
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617122bf
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30332d25
+ 9 <D32> 20202764
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 332d2527
+ 14 <D32> 20276430
+ 15 <D32> 86a0007c
+ 16 <D16> 0001
+ 17 <D32> a86e2488
+ 18 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4BF227161094C05007C202725252D333064272020202020202020202020207C2027252D33306427207C00A086010088246EA8
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617122bf
+ 6 <D32> 00054c09
+ 7 <D32> 2d2d2d7c
+ 8 <D32> 2d2d2d2d
+ 9 <D32> 2d2d2d2d
+ 10 <D32> 2d2d2d2d
+ 11 <D32> 2d2d2d2d
+ 12 <D32> 2d2d2d2d
+ 13 <D32> 2d2d2d2d
+ 14 <D32> 2d2d2d2d
+ 15 <D32> 682d2d2d
+ 16 <D32> 64617865
+ 17 <D32> 6d696365
+ 18 <D32> 2d736c61
+ 19 <D32> 2d2d2d2d
+ 20 <D32> 2d2d2d2d
+ 21 <D16> 007c
+ 22 <D32> f7fb0aa2
+ 23 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4BF227161094C05007C2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D68657861646563696D616C732D2D2D2D2D2D2D2D2D7C00A20AFBF7
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617122bf
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 78303325
+ 9 <D32> 20202027
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 30332527
+ 14 <D32> 7c202778
+ 15 <D32> 00000a00
+ 16 <D8> 00
+ 17 <D32> 53b8d8f7
+ 18 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4BF227161094C05007C2027252533307827202020202020202020202020207C20272533307827207C000A000000F7D8B853
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617122bf
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 78303325
+ 9 <D32> 20202027
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 30332527
+ 14 <D32> 7c202778
+ 15 <D32> 0000ab00
+ 16 <D8> 00
+ 17 <D32> 0b78affb
+ 18 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4BF227161094C05007C2027252533307827202020202020202020202020207C20272533307827207C00AB000000FBAF780B
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617122bf
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 78303325
+ 9 <D32> 20202027
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 30332527
+ 14 <D32> 7c202778
+ 15 <D32> 000abc00
+ 16 <D8> 00
+ 17 <D32> 8c22cac4
+ 18 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4BF227161094C05007C2027252533307827202020202020202020202020207C20272533307827207C00BC0A0000C4CA228C
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617122bf
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 78303325
+ 9 <D32> 20202027
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 30332527
+ 14 <D32> 7c202778
+ 15 <D32> 00abcd00
+ 16 <D8> 00
+ 17 <D32> 0ba28404
+ 18 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4BF227161094C05007C2027252533307827202020202020202020202020207C20272533307827207C00CDAB00000484A20B
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617122bf
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 78303325
+ 9 <D32> 20202027
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 30332527
+ 14 <D32> 7c202778
+ 15 <D32> 0abcde00
+ 16 <D8> 00
+ 17 <D32> 3ee756b5
+ 18 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4BF227161094C05007C2027252533307827202020202020202020202020207C20272533307827207C00DEBC0A00B556E73E
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617122bf
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 78303325
+ 9 <D32> 20202027
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 30332527
+ 14 <D32> 7c202778
+ 15 <D32> abcdef00
+ 16 <D8> 00
+ 17 <D32> b9cb4c0e
+ 18 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4BF227161094C05007C2027252533307827202020202020202020202020207C20272533307827207C00EFCDAB000E4CCBB9
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617122bf
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30332d25
+ 9 <D32> 20202778
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 332d2527
+ 14 <D32> 20277830
+ 15 <D32> 000a007c
+ 16 <D16> 0000
+ 17 <D32> 9b24690e
+ 18 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4BF227161094C05007C202725252D333078272020202020202020202020207C2027252D33307827207C000A0000000E69249B
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617122bf
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30332d25
+ 9 <D32> 20202778
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 332d2527
+ 14 <D32> 20277830
+ 15 <D32> 00ab007c
+ 16 <D16> 0000
+ 17 <D32> c3e41e02
+ 18 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4BF227161094C05007C202725252D333078272020202020202020202020207C2027252D33307827207C00AB000000021EE4C3
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617126a7
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30332d25
+ 9 <D32> 20202778
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 332d2527
+ 14 <D32> 20277830
+ 15 <D32> 0abc007c
+ 16 <D16> 0000
+ 17 <D32> e6feb8be
+ 18 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4A7267161094C05007C202725252D333078272020202020202020202020207C2027252D33307827207C00BC0A0000BEB8FEE6
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617126a7
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30332d25
+ 9 <D32> 20202778
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 332d2527
+ 14 <D32> 20277830
+ 15 <D32> abcd007c
+ 16 <D16> 0000
+ 17 <D32> 617ef67e
+ 18 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4A7267161094C05007C202725252D333078272020202020202020202020207C2027252D33307827207C00CDAB00007EF67E61
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617126a7
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30332d25
+ 9 <D32> 20202778
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 332d2527
+ 14 <D32> 20277830
+ 15 <D32> bcde007c
+ 16 <D16> 000a
+ 17 <D32> 543b24cf
+ 18 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4A7267161094C05007C202725252D333078272020202020202020202020207C2027252D33307827207C00DEBC0A00CF243B54
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617126a7
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30332d25
+ 9 <D32> 20202778
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 332d2527
+ 14 <D32> 20277830
+ 15 <D32> cdef007c
+ 16 <D16> 00ab
+ 17 <D32> d3173e74
+ 18 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4A7267161094C05007C202725252D333078272020202020202020202020207C2027252D33307827207C00EFCDAB00743E17D3
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617126a7
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 58303325
+ 9 <D32> 20202027
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 30332527
+ 14 <D32> 7c202758
+ 15 <D32> 00000a00
+ 16 <D8> 00
+ 17 <D32> 0e69162b
+ 18 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4A7267161094C05007C2027252533305827202020202020202020202020207C20272533305827207C000A0000002B16690E
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617126a7
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 58303325
+ 9 <D32> 20202027
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 30332527
+ 14 <D32> 7c202758
+ 15 <D32> 0000ab00
+ 16 <D8> 00
+ 17 <D32> 56a96127
+ 18 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4A7267161094C05007C2027252533305827202020202020202020202020207C20272533305827207C00AB0000002761A956
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617126a7
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 58303325
+ 9 <D32> 20202027
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 30332527
+ 14 <D32> 7c202758
+ 15 <D32> 000abc00
+ 16 <D8> 00
+ 17 <D32> d1f30418
+ 18 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4A7267161094C05007C2027252533305827202020202020202020202020207C20272533305827207C00BC0A00001804F3D1
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617126a7
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 58303325
+ 9 <D32> 20202027
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 30332527
+ 14 <D32> 7c202758
+ 15 <D32> 00abcd00
+ 16 <D8> 00
+ 17 <D32> 56734ad8
+ 18 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4A7267161094C05007C2027252533305827202020202020202020202020207C20272533305827207C00CDAB0000D84A7356
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617126a7
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 58303325
+ 9 <D32> 20202027
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 30332527
+ 14 <D32> 7c202758
+ 15 <D32> 0abcde00
+ 16 <D8> 00
+ 17 <D32> 63369869
+ 18 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4A7267161094C05007C2027252533305827202020202020202020202020207C20272533305827207C00DEBC0A0069983663
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617126a7
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 58303325
+ 9 <D32> 20202027
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 30332527
+ 14 <D32> 7c202758
+ 15 <D32> abcdef00
+ 16 <D8> 00
+ 17 <D32> e41a82d2
+ 18 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4A7267161094C05007C2027252533305827202020202020202020202020207C20272533305827207C00EFCDAB00D2821AE4
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617126a7
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30332d25
+ 9 <D32> 20202758
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 332d2527
+ 14 <D32> 20275830
+ 15 <D32> 000a007c
+ 16 <D16> 0000
+ 17 <D32> 6fc341f1
+ 18 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4A7267161094C05007C202725252D333058272020202020202020202020207C2027252D33305827207C000A000000F141C36F
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61712a90
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30332d25
+ 9 <D32> 20202758
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 332d2527
+ 14 <D32> 20275830
+ 15 <D32> 00ab007c
+ 16 <D16> 0000
+ 17 <D32> 0c5f7044
+ 18 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4902A7161094C05007C202725252D333058272020202020202020202020207C2027252D33305827207C00AB00000044705F0C
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61712a90
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30332d25
+ 9 <D32> 20202758
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 332d2527
+ 14 <D32> 20275830
+ 15 <D32> 0abc007c
+ 16 <D16> 0000
+ 17 <D32> 8b05157b
+ 18 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4902A7161094C05007C202725252D333058272020202020202020202020207C2027252D33305827207C00BC0A00007B15058B
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61712a90
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30332d25
+ 9 <D32> 20202758
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 332d2527
+ 14 <D32> 20275830
+ 15 <D32> abcd007c
+ 16 <D16> 0000
+ 17 <D32> 0c855bbb
+ 18 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4902A7161094C05007C202725252D333058272020202020202020202020207C2027252D33305827207C00CDAB0000BB5B850C
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61712a90
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30332d25
+ 9 <D32> 20202758
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 332d2527
+ 14 <D32> 20275830
+ 15 <D32> bcde007c
+ 16 <D16> 000a
+ 17 <D32> 39c0890a
+ 18 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4902A7161094C05007C202725252D333058272020202020202020202020207C2027252D33305827207C00DEBC0A000A89C039
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61712a90
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30332d25
+ 9 <D32> 20202758
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 332d2527
+ 14 <D32> 20275830
+ 15 <D32> cdef007c
+ 16 <D16> 00ab
+ 17 <D32> beec93b1
+ 18 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4902A7161094C05007C202725252D333058272020202020202020202020207C2027252D33305827207C00EFCDAB00B193ECBE
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61712a90
+ 6 <D32> 00054c09
+ 7 <D32> 2d2d2d7c
+ 8 <D32> 2d2d2d2d
+ 9 <D32> 2d2d2d2d
+ 10 <D32> 2d2d2d2d
+ 11 <D32> 2d2d2d2d
+ 12 <D32> 2d2d2d2d
+ 13 <D32> 2d2d2d2d
+ 14 <D32> 2d2d2d2d
+ 15 <D32> 2d2d2d2d
+ 16 <D32> 62756f64
+ 17 <D32> 2d2d656c
+ 18 <D32> 2d2d2d2d
+ 19 <D32> 2d2d2d2d
+ 20 <D32> 2d2d2d2d
+ 21 <D16> 007c
+ 22 <D32> b612b359
+ 23 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4902A7161094C05007C2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D646F75626C652D2D2D2D2D2D2D2D2D2D2D2D2D2D7C0059B312B6
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61712a90
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 2e303325
+ 9 <D32> 20276631
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 30332527
+ 14 <D32> 2766312e
+ 15 <D32> ea007c20
+ 16 <D32> fb54442e
+ 17 <D16> 0921
+ 18 <D8> 40
+ 19 <D32> a68ec7f6
+ 20 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4902A7161094C05007C2027252533302E31662720202020202020202020207C20272533302E316627207C00EA2E4454FB210940F6C78EA6
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61712a90
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 2e303325
+ 9 <D32> 20276632
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 30332527
+ 14 <D32> 2766322e
+ 15 <D32> ea007c20
+ 16 <D32> fb54442e
+ 17 <D16> 0921
+ 18 <D8> 40
+ 19 <D32> 38cc8259
+ 20 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4902A7161094C05007C2027252533302E32662720202020202020202020207C20272533302E326627207C00EA2E4454FB2109405982CC38
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61712a90
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 2e303325
+ 9 <D32> 20276633
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 30332527
+ 14 <D32> 2766332e
+ 15 <D32> ea007c20
+ 16 <D32> fb54442e
+ 17 <D16> 0921
+ 18 <D8> 40
+ 19 <D32> 4d0d413c
+ 20 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4902A7161094C05007C2027252533302E33662720202020202020202020207C20272533302E336627207C00EA2E4454FB2109403C410D4D
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61712a90
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 2e303325
+ 9 <D32> 20276634
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 30332527
+ 14 <D32> 2766342e
+ 15 <D32> ea007c20
+ 16 <D32> fb54442e
+ 17 <D16> 0921
+ 18 <D8> 40
+ 19 <D32> 01a47ff6
+ 20 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4902A7161094C05007C2027252533302E34662720202020202020202020207C20272533302E346627207C00EA2E4454FB210940F67FA401
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61712a90
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 2e303325
+ 9 <D32> 20276635
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 30332527
+ 14 <D32> 2766352e
+ 15 <D32> ea007c20
+ 16 <D32> fb54442e
+ 17 <D16> 0921
+ 18 <D8> 40
+ 19 <D32> 7465bc93
+ 20 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4902A7161094C05007C2027252533302E35662720202020202020202020207C20272533302E356627207C00EA2E4454FB21094093BC6574
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61712e78
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 2e303325
+ 9 <D32> 20276636
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 30332527
+ 14 <D32> 2766362e
+ 15 <D32> ea007c20
+ 16 <D32> fb54442e
+ 17 <D16> 0921
+ 18 <D8> 40
+ 19 <D32> 18c369af
+ 20 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4782E7161094C05007C2027252533302E36662720202020202020202020207C20272533302E366627207C00EA2E4454FB210940AF69C318
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61712e78
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 2e303325
+ 9 <D32> 20276637
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 30332527
+ 14 <D32> 2766372e
+ 15 <D32> ea007c20
+ 16 <D32> fb54442e
+ 17 <D16> 0921
+ 18 <D8> 40
+ 19 <D32> 6d02aaca
+ 20 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4782E7161094C05007C2027252533302E37662720202020202020202020207C20272533302E376627207C00EA2E4454FB210940CAAA026D
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61712e78
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 2e303325
+ 9 <D32> 20276638
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 30332527
+ 14 <D32> 2766382e
+ 15 <D32> ea007c20
+ 16 <D32> fb54442e
+ 17 <D16> 0921
+ 18 <D8> 40
+ 19 <D32> 8191143b
+ 20 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4782E7161094C05007C2027252533302E38662720202020202020202020207C20272533302E386627207C00EA2E4454FB2109403B149181
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61712e78
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 2e303325
+ 9 <D32> 20276639
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 30332527
+ 14 <D32> 2766392e
+ 15 <D32> ea007c20
+ 16 <D32> fb54442e
+ 17 <D16> 0921
+ 18 <D8> 40
+ 19 <D32> f450d75e
+ 20 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4782E7161094C05007C2027252533302E39662720202020202020202020207C20272533302E396627207C00EA2E4454FB2109405ED750F4
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61712e78
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 2e303325
+ 9 <D32> 27663031
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 30332527
+ 14 <D32> 6630312e
+ 15 <D32> 007c2027
+ 16 <D32> 54442eea
+ 17 <D32> 400921fb
+ 18 <D32> 82814dab
+ 19 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4782E7161094C05007C2027252533302E31306627202020202020202020207C20272533302E31306627207C00EA2E4454FB210940AB4D8182
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61712e78
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30332d25
+ 9 <D32> 2766312e
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 332d2527
+ 14 <D32> 66312e30
+ 15 <D32> 007c2027
+ 16 <D32> 54442eea
+ 17 <D32> 400921fb
+ 18 <D32> 7c48229f
+ 19 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4782E7161094C05007C202725252D33302E316627202020202020202020207C2027252D33302E316627207C00EA2E4454FB2109409F22487C
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61712e78
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30332d25
+ 9 <D32> 2766322e
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 332d2527
+ 14 <D32> 66322e30
+ 15 <D32> 007c2027
+ 16 <D32> 54442eea
+ 17 <D32> 400921fb
+ 18 <D32> e20a6730
+ 19 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4782E7161094C05007C202725252D33302E326627202020202020202020207C2027252D33302E326627207C00EA2E4454FB21094030670AE2
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61712e78
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30332d25
+ 9 <D32> 2766332e
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 332d2527
+ 14 <D32> 66332e30
+ 15 <D32> 007c2027
+ 16 <D32> 54442eea
+ 17 <D32> 400921fb
+ 18 <D32> 97cba455
+ 19 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4782E7161094C05007C202725252D33302E336627202020202020202020207C2027252D33302E336627207C00EA2E4454FB21094055A4CB97
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61712e78
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30332d25
+ 9 <D32> 2766342e
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 332d2527
+ 14 <D32> 66342e30
+ 15 <D32> 007c2027
+ 16 <D32> 54442eea
+ 17 <D32> 400921fb
+ 18 <D32> db629a9f
+ 19 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4782E7161094C05007C202725252D33302E346627202020202020202020207C2027252D33302E346627207C00EA2E4454FB2109409F9A62DB
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61712e78
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30332d25
+ 9 <D32> 2766352e
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 332d2527
+ 14 <D32> 66352e30
+ 15 <D32> 007c2027
+ 16 <D32> 54442eea
+ 17 <D32> 400921fb
+ 18 <D32> aea359fa
+ 19 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4782E7161094C05007C202725252D33302E356627202020202020202020207C2027252D33302E356627207C00EA2E4454FB210940FA59A3AE
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61713261
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30332d25
+ 9 <D32> 2766362e
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 332d2527
+ 14 <D32> 66362e30
+ 15 <D32> 007c2027
+ 16 <D32> 54442eea
+ 17 <D32> 400921fb
+ 18 <D32> 734b8bfa
+ 19 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E461327161094C05007C202725252D33302E366627202020202020202020207C2027252D33302E366627207C00EA2E4454FB210940FA8B4B73
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61713261
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30332d25
+ 9 <D32> 2766372e
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 332d2527
+ 14 <D32> 66372e30
+ 15 <D32> 007c2027
+ 16 <D32> 54442eea
+ 17 <D32> 400921fb
+ 18 <D32> 068a489f
+ 19 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E461327161094C05007C202725252D33302E376627202020202020202020207C2027252D33302E376627207C00EA2E4454FB2109409F488A06
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61713261
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30332d25
+ 9 <D32> 2766382e
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 332d2527
+ 14 <D32> 66382e30
+ 15 <D32> 007c2027
+ 16 <D32> 54442eea
+ 17 <D32> 400921fb
+ 18 <D32> ea19f66e
+ 19 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E461327161094C05007C202725252D33302E386627202020202020202020207C2027252D33302E386627207C00EA2E4454FB2109406EF619EA
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61713261
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30332d25
+ 9 <D32> 2766392e
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 332d2527
+ 14 <D32> 66392e30
+ 15 <D32> 007c2027
+ 16 <D32> 54442eea
+ 17 <D32> 400921fb
+ 18 <D32> 9fd8350b
+ 19 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E461327161094C05007C202725252D33302E396627202020202020202020207C2027252D33302E396627207C00EA2E4454FB2109400B35D89F
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61713261
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30332d25
+ 9 <D32> 6630312e
+ 10 <D32> 20202027
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 332d2527
+ 14 <D32> 30312e30
+ 15 <D32> 7c202766
+ 16 <D32> 442eea00
+ 17 <D32> 0921fb54
+ 18 <D8> 40
+ 19 <D32> e63e0b86
+ 20 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E461327161094C05007C202725252D33302E313066272020202020202020207C2027252D33302E31306627207C00EA2E4454FB210940860B3EE6
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61713261
+ 6 <D32> 00054c09
+ 7 <D32> 2d2d2d7c
+ 8 <D32> 2d2d2d2d
+ 9 <D32> 2d2d2d2d
+ 10 <D32> 2d2d2d2d
+ 11 <D32> 2d2d2d2d
+ 12 <D32> 2d2d2d2d
+ 13 <D32> 2d2d2d2d
+ 14 <D32> 2d2d2d2d
+ 15 <D32> 2d2d2d2d
+ 16 <D32> 65696373
+ 17 <D32> 6669746e
+ 18 <D32> 2d2d6369
+ 19 <D32> 2d2d2d2d
+ 20 <D32> 2d2d2d2d
+ 21 <D16> 007c
+ 22 <D32> ec391c9f
+ 23 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E461327161094C05007C2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D736369656E74696669632D2D2D2D2D2D2D2D2D2D7C009F1C39EC
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61713261
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 2e303325
+ 9 <D32> 20276531
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 30332527
+ 14 <D32> 2765312e
+ 15 <D32> 00007c20
+ 16 <D32> 00000000
+ 17 <D16> f800
+ 18 <D8> 3f
+ 19 <D32> 22d1ee45
+ 20 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E461327161094C05007C2027252533302E31652720202020202020202020207C20272533302E316527207C00000000000000F83F45EED122
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61713261
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 2e303325
+ 9 <D32> 20276532
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 30332527
+ 14 <D32> 2765322e
+ 15 <D32> 00007c20
+ 16 <D32> 00000000
+ 17 <D16> 2500
+ 18 <D8> 40
+ 19 <D32> 683534ac
+ 20 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E461327161094C05007C2027252533302E32652720202020202020202020207C20272533302E326527207C000000000000002540AC343568
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61713261
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 2e303325
+ 9 <D32> 20276533
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 30332527
+ 14 <D32> 2765332e
+ 15 <D32> 00007c20
+ 16 <D32> 00000000
+ 17 <D16> 2500
+ 18 <D8> 40
+ 19 <D32> 1df4f7c9
+ 20 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E461327161094C05007C2027252533302E33652720202020202020202020207C20272533302E336527207C000000000000002540C9F7F41D
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61713261
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 2e303325
+ 9 <D32> 20276534
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 30332527
+ 14 <D32> 2765342e
+ 15 <D32> 00007c20
+ 16 <D32> 00000000
+ 17 <D16> 5920
+ 18 <D8> 40
+ 19 <D32> dcde44f4
+ 20 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E461327161094C05007C2027252533302E34652720202020202020202020207C20272533302E346527207C000000000000205940F444DEDC
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61713261
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 2e303325
+ 9 <D32> 20276535
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 30332527
+ 14 <D32> 2765352e
+ 15 <D32> 00007c20
+ 16 <D32> 00000000
+ 17 <D16> 8f44
+ 18 <D8> 40
+ 19 <D32> 433ec408
+ 20 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E461327161094C05007C2027252533302E35652720202020202020202020207C20272533302E356527207C000000000000448F4008C43E43
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6171364a
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 2e303325
+ 9 <D32> 20276536
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 30332527
+ 14 <D32> 2765362e
+ 15 <D32> 00007c20
+ 16 <D32> 40000000
+ 17 <D16> c388
+ 18 <D8> 40
+ 19 <D32> 820e680e
+ 20 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E44A367161094C05007C2027252533302E36652720202020202020202020207C20272533302E366527207C00000000004088C3400E680E82
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6171364a
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 2e303325
+ 9 <D32> 20276537
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 30332527
+ 14 <D32> 2765372e
+ 15 <D32> 00007c20
+ 16 <D32> 40000000
+ 17 <D16> c388
+ 18 <D8> 40
+ 19 <D32> f7cfab6b
+ 20 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E44A367161094C05007C2027252533302E37652720202020202020202020207C20272533302E376527207C00000000004088C3406BABCFF7
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6171364a
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 2e303325
+ 9 <D32> 20276538
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 30332527
+ 14 <D32> 2765382e
+ 15 <D32> 00007c20
+ 16 <D32> 40000000
+ 17 <D16> c388
+ 18 <D8> 40
+ 19 <D32> 1b5c159a
+ 20 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E44A367161094C05007C2027252533302E38652720202020202020202020207C20272533302E386527207C00000000004088C3409A155C1B
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6171364a
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 2e303325
+ 9 <D32> 20276539
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 30332527
+ 14 <D32> 2765392e
+ 15 <D32> 00007c20
+ 16 <D32> 08000000
+ 17 <D16> f86a
+ 18 <D8> 40
+ 19 <D32> 38abcddf
+ 20 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E44A367161094C05007C2027252533302E39652720202020202020202020207C20272533302E396527207C0000000000086AF840DFCDAB38
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6171364a
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 2e303325
+ 9 <D32> 27653031
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 30332527
+ 14 <D32> 6530312e
+ 15 <D32> 007c2027
+ 16 <D32> 00000000
+ 17 <D32> 412e8481
+ 18 <D32> 809df2da
+ 19 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E44A367161094C05007C2027252533302E31306527202020202020202020207C20272533302E31306527207C000000000081842E41DAF29D80
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6171364a
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30332d25
+ 9 <D32> 2765312e
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 332d2527
+ 14 <D32> 65312e30
+ 15 <D32> 007c2027
+ 16 <D32> 00000000
+ 17 <D32> 3ff80000
+ 18 <D32> 6b765a54
+ 19 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E44A367161094C05007C202725252D33302E316527202020202020202020207C2027252D33302E316527207C00000000000000F83F545A766B
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6171364a
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30332d25
+ 9 <D32> 2765322e
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 332d2527
+ 14 <D32> 65322e30
+ 15 <D32> 007c2027
+ 16 <D32> 00000000
+ 17 <D32> 40250000
+ 18 <D32> 219280bd
+ 19 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E44A367161094C05007C202725252D33302E326527202020202020202020207C2027252D33302E326527207C000000000000002540BD809221
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6171364a
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30332d25
+ 9 <D32> 2765332e
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 332d2527
+ 14 <D32> 65332e30
+ 15 <D32> 007c2027
+ 16 <D32> 00000000
+ 17 <D32> 40250000
+ 18 <D32> 545343d8
+ 19 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E44A367161094C05007C202725252D33302E336527202020202020202020207C2027252D33302E336527207C000000000000002540D8435354
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6171364a
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30332d25
+ 9 <D32> 2765342e
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 332d2527
+ 14 <D32> 65342e30
+ 15 <D32> 007c2027
+ 16 <D32> 00000000
+ 17 <D32> 40592000
+ 18 <D32> 9579f0e5
+ 19 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E44A367161094C05007C202725252D33302E346527202020202020202020207C2027252D33302E346527207C000000000000205940E5F07995
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 6171364a
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30332d25
+ 9 <D32> 2765352e
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 332d2527
+ 14 <D32> 65352e30
+ 15 <D32> 007c2027
+ 16 <D32> 00000000
+ 17 <D32> 408f4400
+ 18 <D32> 0a997019
+ 19 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E44A367161094C05007C202725252D33302E356527202020202020202020207C2027252D33302E356527207C000000000000448F401970990A
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61713a33
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30332d25
+ 9 <D32> 2765362e
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 332d2527
+ 14 <D32> 65362e30
+ 15 <D32> 007c2027
+ 16 <D32> 00000000
+ 17 <D32> 40c38840
+ 18 <D32> 6e30d3e5
+ 19 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4333A7161094C05007C202725252D33302E366527202020202020202020207C2027252D33302E366527207C00000000004088C340E5D3306E
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61713a33
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30332d25
+ 9 <D32> 2765372e
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 332d2527
+ 14 <D32> 65372e30
+ 15 <D32> 007c2027
+ 16 <D32> 00000000
+ 17 <D32> 40c38840
+ 18 <D32> 1bf11080
+ 19 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4333A7161094C05007C202725252D33302E376527202020202020202020207C2027252D33302E376527207C00000000004088C3408010F11B
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61713a33
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30332d25
+ 9 <D32> 2765382e
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 332d2527
+ 14 <D32> 65382e30
+ 15 <D32> 007c2027
+ 16 <D32> 00000000
+ 17 <D32> 40c38840
+ 18 <D32> f762ae71
+ 19 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4333A7161094C05007C202725252D33302E386527202020202020202020207C2027252D33302E386527207C00000000004088C34071AE62F7
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61713a33
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30332d25
+ 9 <D32> 2765392e
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 332d2527
+ 14 <D32> 65392e30
+ 15 <D32> 007c2027
+ 16 <D32> 00000000
+ 17 <D32> 40f86a08
+ 18 <D32> d4957634
+ 19 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4333A7161094C05007C202725252D33302E396527202020202020202020207C2027252D33302E396527207C0000000000086AF840347695D4
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61713a33
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30332d25
+ 9 <D32> 6530312e
+ 10 <D32> 20202027
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 332d2527
+ 14 <D32> 30312e30
+ 15 <D32> 7c202765
+ 16 <D32> 00000000
+ 17 <D32> 2e848100
+ 18 <D8> 41
+ 19 <D32> fac8cf40
+ 20 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4333A7161094C05007C202725252D33302E313065272020202020202020207C2027252D33302E31306527207C000000000081842E4140CFC8FA
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61713a33
+ 6 <D32> 00054c09
+ 7 <D32> 2d2d2d7c
+ 8 <D32> 2d2d2d2d
+ 9 <D32> 2d2d2d2d
+ 10 <D32> 2d2d2d2d
+ 11 <D32> 2d2d2d2d
+ 12 <D32> 2d2d2d2d
+ 13 <D32> 2d2d2d2d
+ 14 <D32> 2d2d2d2d
+ 15 <D32> 2d2d2d2d
+ 16 <D32> 746f7865
+ 17 <D32> 2d736369
+ 18 <D32> 2d2d2d2d
+ 19 <D32> 2d2d2d2d
+ 20 <D32> 2d2d2d2d
+ 21 <D16> 007c
+ 22 <D32> 6f4003f0
+ 23 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4333A7161094C05007C2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D65786F746963732D2D2D2D2D2D2D2D2D2D2D2D2D7C00F003406F
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61713a33
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30333025
+ 9 <D32> 27756868
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 33302527
+ 14 <D32> 75686830
+ 15 <D32> 007c2027
+ 16 <D32> 000000ff
+ 17 <D32> 07d74cc1
+ 18 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4333A7161094C05007C2027252530333068687527202020202020202020207C20272530333068687527207C00FF000000C14CD707
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61713a33
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30333025
+ 9 <D32> 20277568
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 33302527
+ 14 <D32> 27756830
+ 15 <D32> ff007c20
+ 16 <D16> ffff
+ 17 <D8> ff
+ 18 <D32> 8b857322
+ 19 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4333A7161094C05007C2027252530333068752720202020202020202020207C202725303330687527207C00FFFFFFFF2273858B
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61713a33
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30333025
+ 9 <D32> 2027756c
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 33302527
+ 14 <D32> 27756c30
+ 15 <D32> ff007c20
+ 16 <D16> ffff
+ 17 <D8> ff
+ 18 <D32> 4f99f260
+ 19 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4333A7161094C05007C202725253033306C752720202020202020202020207C2027253033306C7527207C00FFFFFFFF60F2994F
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61713e1c
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30333025
+ 9 <D32> 27756c6c
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 33302527
+ 14 <D32> 756c6c30
+ 15 <D32> 007c2027
+ 16 <D32> ffffffff
+ 17 <D32> ffffffff
+ 18 <D32> a7324457
+ 19 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E41C3E7161094C05007C202725253033306C6C7527202020202020202020207C2027253033306C6C7527207C00FFFFFFFFFFFFFFFF574432A7
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61713e1c
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30333025
+ 9 <D32> 276f6868
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 33302527
+ 14 <D32> 6f686830
+ 15 <D32> 007c2027
+ 16 <D32> 000000ff
+ 17 <D32> f886f0fd
+ 18 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E41C3E7161094C05007C2027252530333068686F27202020202020202020207C20272530333068686F27207C00FF000000FDF086F8
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61713e1c
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30333025
+ 9 <D32> 20276f68
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 33302527
+ 14 <D32> 276f6830
+ 15 <D32> ff007c20
+ 16 <D16> ffff
+ 17 <D8> ff
+ 18 <D32> 26f64ae7
+ 19 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E41C3E7161094C05007C20272525303330686F2720202020202020202020207C202725303330686F27207C00FFFFFFFFE74AF626
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61713e1c
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30333025
+ 9 <D32> 20276f6c
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 33302527
+ 14 <D32> 276f6c30
+ 15 <D32> ff007c20
+ 16 <D16> ffff
+ 17 <D8> ff
+ 18 <D32> e2eacba5
+ 19 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E41C3E7161094C05007C202725253033306C6F2720202020202020202020207C2027253033306C6F27207C00FFFFFFFFA5CBEAE2
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61713e1c
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30333025
+ 9 <D32> 276f6c6c
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 33302527
+ 14 <D32> 6f6c6c30
+ 15 <D32> 007c2027
+ 16 <D32> ffffffff
+ 17 <D32> ffffffff
+ 18 <D32> b448b3f9
+ 19 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E41C3E7161094C05007C202725253033306C6C6F27202020202020202020207C2027253033306C6C6F27207C00FFFFFFFFFFFFFFFFF9B348B4
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61713e1c
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30333025
+ 9 <D32> 27786868
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 33302527
+ 14 <D32> 78686830
+ 15 <D32> 007c2027
+ 16 <D32> 000000ff
+ 17 <D32> 7c950c66
+ 18 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E41C3E7161094C05007C2027252530333068687827202020202020202020207C20272530333068687827207C00FF000000660C957C
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61713e1c
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30333025
+ 9 <D32> 20277868
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 33302527
+ 14 <D32> 27786830
+ 15 <D32> ff007c20
+ 16 <D16> ffff
+ 17 <D8> ff
+ 18 <D32> a2e5b67c
+ 19 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E41C3E7161094C05007C2027252530333068782720202020202020202020207C202725303330687827207C00FFFFFFFF7CB6E5A2
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61713e1c
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30333025
+ 9 <D32> 2027786c
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 33302527
+ 14 <D32> 27786c30
+ 15 <D32> ff007c20
+ 16 <D16> ffff
+ 17 <D8> ff
+ 18 <D32> 66f9373e
+ 19 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E41C3E7161094C05007C202725253033306C782720202020202020202020207C2027253033306C7827207C00FFFFFFFF3E37F966
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61713e1c
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30333025
+ 9 <D32> 27786c6c
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 33302527
+ 14 <D32> 786c6c30
+ 15 <D32> 007c2027
+ 16 <D32> ffffffff
+ 17 <D32> ffffffff
+ 18 <D32> ae8f3f80
+ 19 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E41C3E7161094C05007C202725253033306C6C7827202020202020202020207C2027253033306C6C7827207C00FFFFFFFFFFFFFFFF803F8FAE
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61714204
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30332d25
+ 9 <D32> 27756868
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 332d2527
+ 14 <D32> 75686830
+ 15 <D32> 007c2027
+ 16 <D32> 000000ff
+ 17 <D32> 903fbcbf
+ 18 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E404427161094C05007C202725252D333068687527202020202020202020207C2027252D333068687527207C00FF000000BFBC3F90
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61714204
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 30332d25
+ 9 <D32> 20277568
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 332d2527
+ 14 <D32> 27756830
+ 15 <D32> ff007c20
+ 16 <D16> ffff
+ 17 <D8> ff
+ 18 <D32> d9d4b787
+ 19 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E404427161094C05007C202725252D333068752720202020202020202020207C2027252D3330687527207C00FFFFFFFF87B7D4D9
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61714204
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 332d2325
+ 9 <D32> 27756c30
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 2d232527
+ 14 <D32> 756c3033
+ 15 <D32> 007c2027
+ 16 <D32> ffffffff
+ 17 <D32> 20eeabd8
+ 18 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E404427161094C05007C20272525232D33306C7527202020202020202020207C202725232D33306C7527207C00FFFFFFFFD8ABEE20
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61714204
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 332d2325
+ 9 <D32> 756c6c30
+ 10 <D32> 20202027
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 2d232527
+ 14 <D32> 6c6c3033
+ 15 <D32> 7c202775
+ 16 <D32> ffffff00
+ 17 <D32> ffffffff
+ 18 <D8> ff
+ 19 <D32> d636b3e3
+ 20 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E404427161094C05007C20272525232D33306C6C75272020202020202020207C202725232D33306C6C7527207C00FFFFFFFFFFFFFFFFE3B336D6
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61714204
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 332d2325
+ 9 <D32> 6f686830
+ 10 <D32> 20202027
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 2d232527
+ 14 <D32> 68683033
+ 15 <D32> 7c20276f
+ 16 <D32> 0000ff00
+ 17 <D8> 00
+ 18 <D32> c769468c
+ 19 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E404427161094C05007C20272525232D333068686F272020202020202020207C202725232D333068686F27207C00FF0000008C4669C7
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61714204
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 332d2325
+ 9 <D32> 276f6830
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 2d232527
+ 14 <D32> 6f683033
+ 15 <D32> 007c2027
+ 16 <D32> ffffffff
+ 17 <D32> 1cef7d88
+ 18 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E404427161094C05007C20272525232D3330686F27202020202020202020207C202725232D3330686F27207C00FFFFFFFF887DEF1C
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61714204
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 332d2325
+ 9 <D32> 276f6c30
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 2d232527
+ 14 <D32> 6f6c3033
+ 15 <D32> 007c2027
+ 16 <D32> ffffffff
+ 17 <D32> d8f3fcca
+ 18 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E404427161094C05007C20272525232D33306C6F27202020202020202020207C202725232D33306C6F27207C00FFFFFFFFCAFCF3D8
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61714204
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 332d2325
+ 9 <D32> 6f6c6c30
+ 10 <D32> 20202027
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 2d232527
+ 14 <D32> 6c6c3033
+ 15 <D32> 7c20276f
+ 16 <D32> ffffff00
+ 17 <D32> ffffffff
+ 18 <D8> ff
+ 19 <D32> c54c444d
+ 20 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E404427161094C05007C20272525232D33306C6C6F272020202020202020207C202725232D33306C6C6F27207C00FFFFFFFFFFFFFFFF4D444CC5
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61714204
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 332d2325
+ 9 <D32> 78686830
+ 10 <D32> 20202027
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 2d232527
+ 14 <D32> 68683033
+ 15 <D32> 7c202778
+ 16 <D32> 0000ff00
+ 17 <D8> 00
+ 18 <D32> 437aba17
+ 19 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E404427161094C05007C20272525232D3330686878272020202020202020207C202725232D333068687827207C00FF00000017BA7A43
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617145ed
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 332d2325
+ 9 <D32> 27786830
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 2d232527
+ 14 <D32> 78683033
+ 15 <D32> 007c2027
+ 16 <D32> ffffffff
+ 17 <D32> 32182fb8
+ 18 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4ED457161094C05007C20272525232D3330687827202020202020202020207C202725232D3330687827207C00FFFFFFFFB82F1832
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617145ed
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 332d2325
+ 9 <D32> 27786c30
+ 10 <D32> 20202020
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 2d232527
+ 14 <D32> 786c3033
+ 15 <D32> 007c2027
+ 16 <D32> ffffffff
+ 17 <D32> f604aefa
+ 18 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4ED457161094C05007C20272525232D33306C7827202020202020202020207C202725232D33306C7827207C00FFFFFFFFFAAE04F6
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c42
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617145ed
+ 6 <D32> 00054c09
+ 7 <D32> 2527207c
+ 8 <D32> 332d2325
+ 9 <D32> 786c6c30
+ 10 <D32> 20202027
+ 11 <D32> 20202020
+ 12 <D32> 207c2020
+ 13 <D32> 2d232527
+ 14 <D32> 6c6c3033
+ 15 <D32> 7c202778
+ 16 <D32> ffffff00
+ 17 <D32> ffffffff
+ 18 <D8> ff
+ 19 <D32> 9d90fd43
+ 20 <FLAG>
+SYS-T RAW DATA: 421C800B494E54438A9C4014A65A2F36A36D96E4ED457161094C05007C20272525232D33306C6C78272020202020202020207C202725232D33306C6C7827207C00FFFFFFFFFFFFFFFF43FD909D
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c72
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617145ed
+ 6 <D32> 00054c09
+ 7 <D32> 2d2d2d7c
+ 8 <D32> 2d2d2d2d
+ 9 <D32> 2d2d2d2d
+ 10 <D32> 2d2d2d2d
+ 11 <D32> 2d2d2d2d
+ 12 <D32> 2d2d2d2d
+ 13 <D32> 2d2d2d2d
+ 14 <D32> 2d2d2d2d
+ 15 <D32> 2d2d2d2d
+ 16 <D32> 2d2d2d2d
+ 17 <D32> 2d2d2d2d
+ 18 <D32> 2d2d2d2d
+ 19 <D32> 2d2d2d2d
+ 20 <D32> 2d2d2d2d
+ 21 <D16> 007c
+ 22 <D32> 0243d30a
+ 23 <FLAG>
+SYS-T RAW DATA: 721C800B494E54438A9C4014A65A2F36A36D96E4ED457161094C05007C2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D7C000AD34302
+
+STP Protocol Output:
+ 0 <D32TS> 01801c73
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617145ed
+ 6 <D32> 00054c09
+ 7 <D32> d44fd581
+ 8 <D32> 0000000e
+ 9 <D32> 00000e00
+ 10 <D16> 0000
+ 11 <D32> 527a0480
+ 12 <FLAG>
+SYS-T RAW DATA: 731C8001494E54438A9C4014A65A2F36A36D96E4ED457161094C050081D54FD40E000000000E0000000080047A52
+
+STP Protocol Output:
+ 0 <D32TS> 01801c73
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617145ed
+ 6 <D32> 00054c09
+ 7 <D32> d44fd581
+ 8 <D32> 0000000c
+ 9 <D32> 00001000
+ 10 <D16> 0000
+ 11 <D32> 1b188e91
+ 12 <FLAG>
+SYS-T RAW DATA: 731C8001494E54438A9C4014A65A2F36A36D96E4ED457161094C050081D54FD40C000000001000000000918E181B
+
+STP Protocol Output:
+ 0 <D32TS> 01801c73
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617145ed
+ 6 <D32> 00054c09
+ 7 <D32> d44fd581
+ 8 <D32> 00000009
+ 9 <D32> 00001300
+ 10 <D16> 0000
+ 11 <D32> bb103047
+ 12 <FLAG>
+SYS-T RAW DATA: 731C8001494E54438A9C4014A65A2F36A36D96E4ED457161094C050081D54FD409000000001300000000473010BB
+
+STP Protocol Output:
+ 0 <D32TS> 01801c73
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617145ed
+ 6 <D32> 00054c09
+ 7 <D32> d44fd581
+ 8 <D32> 00000006
+ 9 <D32> 00001600
+ 10 <D16> 0000
+ 11 <D32> 5ee585cc
+ 12 <FLAG>
+SYS-T RAW DATA: 731C8001494E54438A9C4014A65A2F36A36D96E4ED457161094C050081D54FD406000000001600000000CC85E55E
+
+STP Protocol Output:
+ 0 <D32TS> 01801c73
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617145ed
+ 6 <D32> 00054c09
+ 7 <D32> d44fd581
+ 8 <D32> 00000004
+ 9 <D32> 00001800
+ 10 <D16> 0000
+ 11 <D32> 98a56e0e
+ 12 <FLAG>
+SYS-T RAW DATA: 731C8001494E54438A9C4014A65A2F36A36D96E4ED457161094C050081D54FD4040000000018000000000E6EA598
+
+STP Protocol Output:
+ 0 <D32TS> 01801c73
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617145ed
+ 6 <D32> 00054c09
+ 7 <D32> d44fd581
+ 8 <D32> 00000002
+ 9 <D32> 00001a00
+ 10 <D16> 0000
+ 11 <D32> 58aa456a
+ 12 <FLAG>
+SYS-T RAW DATA: 731C8001494E54438A9C4014A65A2F36A36D96E4ED457161094C050081D54FD402000000001A000000006A45AA58
+
+STP Protocol Output:
+ 0 <D32TS> 01801c73
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617145ed
+ 6 <D32> 00054c09
+ 7 <D32> d44fd581
+ 8 <D32> 00000001
+ 9 <D32> 00001b00
+ 10 <D16> 0000
+ 11 <D32> 38add0d8
+ 12 <FLAG>
+SYS-T RAW DATA: 731C8001494E54438A9C4014A65A2F36A36D96E4ED457161094C050081D54FD401000000001B00000000D8D0AD38
+
+STP Protocol Output:
+ 0 <D32TS> 01801c73
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617149d6
+ 6 <D32> 00054c09
+ 7 <D32> d44fd581
+ 8 <D32> 00000001
+ 9 <D32> 00001b00
+ 10 <D16> 0000
+ 11 <D32> 1b77dff4
+ 12 <FLAG>
+SYS-T RAW DATA: 731C8001494E54438A9C4014A65A2F36A36D96E4D6497161094C050081D54FD401000000001B00000000F4DF771B
+
+STP Protocol Output:
+ 0 <D32TS> 01801c73
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617149d6
+ 6 <D32> 00054c09
+ 7 <D32> d44fd581
+ 8 <D32> 00000001
+ 9 <D32> 00001b00
+ 10 <D16> 0000
+ 11 <D32> 1b77dff4
+ 12 <FLAG>
+SYS-T RAW DATA: 731C8001494E54438A9C4014A65A2F36A36D96E4D6497161094C050081D54FD401000000001B00000000F4DF771B
+
+STP Protocol Output:
+ 0 <D32TS> 01801c73
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617149d6
+ 6 <D32> 00054c09
+ 7 <D32> d44fd581
+ 8 <D32> 00000001
+ 9 <D32> 00001b00
+ 10 <D16> 0000
+ 11 <D32> 1b77dff4
+ 12 <FLAG>
+SYS-T RAW DATA: 731C8001494E54438A9C4014A65A2F36A36D96E4D6497161094C050081D54FD401000000001B00000000F4DF771B
+
+STP Protocol Output:
+ 0 <D32TS> 01801c73
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617149d6
+ 6 <D32> 00054c09
+ 7 <D32> d44fd581
+ 8 <D32> 00000002
+ 9 <D32> 00001a00
+ 10 <D16> 0000
+ 11 <D32> 7b704a46
+ 12 <FLAG>
+SYS-T RAW DATA: 731C8001494E54438A9C4014A65A2F36A36D96E4D6497161094C050081D54FD402000000001A00000000464A707B
+
+STP Protocol Output:
+ 0 <D32TS> 01801c73
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617149d6
+ 6 <D32> 00054c09
+ 7 <D32> d44fd581
+ 8 <D32> 00000004
+ 9 <D32> 00001800
+ 10 <D16> 0000
+ 11 <D32> bb7f6122
+ 12 <FLAG>
+SYS-T RAW DATA: 731C8001494E54438A9C4014A65A2F36A36D96E4D6497161094C050081D54FD40400000000180000000022617FBB
+
+STP Protocol Output:
+ 0 <D32TS> 01801c73
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617149d6
+ 6 <D32> 00054c09
+ 7 <D32> d44fd581
+ 8 <D32> 00000006
+ 9 <D32> 00001600
+ 10 <D16> 0000
+ 11 <D32> 7d3f8ae0
+ 12 <FLAG>
+SYS-T RAW DATA: 731C8001494E54438A9C4014A65A2F36A36D96E4D6497161094C050081D54FD406000000001600000000E08A3F7D
+
+STP Protocol Output:
+ 0 <D32TS> 01801c73
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617149d6
+ 6 <D32> 00054c09
+ 7 <D32> d44fd581
+ 8 <D32> 00000009
+ 9 <D32> 00001300
+ 10 <D16> 0000
+ 11 <D32> 98ca3f6b
+ 12 <FLAG>
+SYS-T RAW DATA: 731C8001494E54438A9C4014A65A2F36A36D96E4D6497161094C050081D54FD4090000000013000000006B3FCA98
+
+STP Protocol Output:
+ 0 <D32TS> 01801c73
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617149d6
+ 6 <D32> 00054c09
+ 7 <D32> d44fd581
+ 8 <D32> 0000000c
+ 9 <D32> 00001000
+ 10 <D16> 0000
+ 11 <D32> 38c281bd
+ 12 <FLAG>
+SYS-T RAW DATA: 731C8001494E54438A9C4014A65A2F36A36D96E4D6497161094C050081D54FD40C000000001000000000BD81C238
+
+STP Protocol Output:
+ 0 <D32TS> 01801c73
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617149d6
+ 6 <D32> 00054c09
+ 7 <D32> d44fd581
+ 8 <D32> 0000000e
+ 9 <D32> 00000e00
+ 10 <D16> 0000
+ 11 <D32> 71a00bac
+ 12 <FLAG>
+SYS-T RAW DATA: 731C8001494E54438A9C4014A65A2F36A36D96E4D6497161094C050081D54FD40E000000000E00000000AC0BA071
+
+STP Protocol Output:
+ 0 <D32TS> 01801c73
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617149d6
+ 6 <D32> 00054c09
+ 7 <D32> d44fd581
+ 8 <D32> 00000010
+ 9 <D32> 00000c00
+ 10 <D16> 0000
+ 11 <D32> 7ac01dda
+ 12 <FLAG>
+SYS-T RAW DATA: 731C8001494E54438A9C4014A65A2F36A36D96E4D6497161094C050081D54FD410000000000C00000000DA1DC07A
+
+STP Protocol Output:
+ 0 <D32TS> 01801c73
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617149d6
+ 6 <D32> 00054c09
+ 7 <D32> d44fd581
+ 8 <D32> 00000013
+ 9 <D32> 00000900
+ 10 <D16> 0000
+ 11 <D32> fa8236d8
+ 12 <FLAG>
+SYS-T RAW DATA: 731C8001494E54438A9C4014A65A2F36A36D96E4D6497161094C050081D54FD413000000000900000000D83682FA
+
+STP Protocol Output:
+ 0 <D32TS> 01801c73
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617149d6
+ 6 <D32> 00054c09
+ 7 <D32> d44fd581
+ 8 <D32> 00000016
+ 9 <D32> 00000600
+ 10 <D16> 0000
+ 11 <D32> 7fa83d2f
+ 12 <FLAG>
+SYS-T RAW DATA: 731C8001494E54438A9C4014A65A2F36A36D96E4D6497161094C050081D54FD4160000000006000000002F3DA87F
+
+STP Protocol Output:
+ 0 <D32TS> 01801c73
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61714dc4
+ 6 <D32> 00054c09
+ 7 <D32> d44fd581
+ 8 <D32> 00000018
+ 9 <D32> 00000400
+ 10 <D16> 0000
+ 11 <D32> a67c91ec
+ 12 <FLAG>
+SYS-T RAW DATA: 731C8001494E54438A9C4014A65A2F36A36D96E4C44D7161094C050081D54FD418000000000400000000EC917CA6
+
+STP Protocol Output:
+ 0 <D32TS> 01801c73
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61714dc4
+ 6 <D32> 00054c09
+ 7 <D32> d44fd581
+ 8 <D32> 0000001a
+ 9 <D32> 00000200
+ 10 <D16> 0000
+ 11 <D32> a55b71bf
+ 12 <FLAG>
+SYS-T RAW DATA: 731C8001494E54438A9C4014A65A2F36A36D96E4C44D7161094C050081D54FD41A000000000200000000BF715BA5
+
+STP Protocol Output:
+ 0 <D32TS> 01801c73
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61714dc4
+ 6 <D32> 00054c09
+ 7 <D32> d44fd581
+ 8 <D32> 0000001b
+ 9 <D32> 00000100
+ 10 <D16> 0000
+ 11 <D32> 263ebaee
+ 12 <FLAG>
+SYS-T RAW DATA: 731C8001494E54438A9C4014A65A2F36A36D96E4C44D7161094C050081D54FD41B000000000100000000EEBA3E26
+
+STP Protocol Output:
+ 0 <D32TS> 01801c73
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61714dc4
+ 6 <D32> 00054c09
+ 7 <D32> d44fd581
+ 8 <D32> 0000001b
+ 9 <D32> 00000100
+ 10 <D16> 0000
+ 11 <D32> 263ebaee
+ 12 <FLAG>
+SYS-T RAW DATA: 731C8001494E54438A9C4014A65A2F36A36D96E4C44D7161094C050081D54FD41B000000000100000000EEBA3E26
+
+STP Protocol Output:
+ 0 <D32TS> 01801c73
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61714dc4
+ 6 <D32> 00054c09
+ 7 <D32> d44fd581
+ 8 <D32> 0000001b
+ 9 <D32> 00000100
+ 10 <D16> 0000
+ 11 <D32> 263ebaee
+ 12 <FLAG>
+SYS-T RAW DATA: 731C8001494E54438A9C4014A65A2F36A36D96E4C44D7161094C050081D54FD41B000000000100000000EEBA3E26
+
+STP Protocol Output:
+ 0 <D32TS> 01801c73
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61714dc4
+ 6 <D32> 00054c09
+ 7 <D32> d44fd581
+ 8 <D32> 0000001b
+ 9 <D32> 00000100
+ 10 <D16> 0000
+ 11 <D32> 263ebaee
+ 12 <FLAG>
+SYS-T RAW DATA: 731C8001494E54438A9C4014A65A2F36A36D96E4C44D7161094C050081D54FD41B000000000100000000EEBA3E26
+
+STP Protocol Output:
+ 0 <D32TS> 01801c73
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61714dc4
+ 6 <D32> 00054c09
+ 7 <D32> d44fd581
+ 8 <D32> 0000001a
+ 9 <D32> 00000200
+ 10 <D16> 0000
+ 11 <D32> a55b71bf
+ 12 <FLAG>
+SYS-T RAW DATA: 731C8001494E54438A9C4014A65A2F36A36D96E4C44D7161094C050081D54FD41A000000000200000000BF715BA5
+
+STP Protocol Output:
+ 0 <D32TS> 01801c73
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61714dc4
+ 6 <D32> 00054c09
+ 7 <D32> d44fd581
+ 8 <D32> 00000018
+ 9 <D32> 00000400
+ 10 <D16> 0000
+ 11 <D32> a67c91ec
+ 12 <FLAG>
+SYS-T RAW DATA: 731C8001494E54438A9C4014A65A2F36A36D96E4C44D7161094C050081D54FD418000000000400000000EC917CA6
+
+STP Protocol Output:
+ 0 <D32TS> 01801c73
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61714dc4
+ 6 <D32> 00054c09
+ 7 <D32> d44fd581
+ 8 <D32> 00000016
+ 9 <D32> 00000600
+ 10 <D16> 0000
+ 11 <D32> 20a95186
+ 12 <FLAG>
+SYS-T RAW DATA: 731C8001494E54438A9C4014A65A2F36A36D96E4C44D7161094C050081D54FD4160000000006000000008651A920
+
+STP Protocol Output:
+ 0 <D32TS> 01801c73
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61714dc4
+ 6 <D32> 00054c09
+ 7 <D32> d44fd581
+ 8 <D32> 00000013
+ 9 <D32> 00000900
+ 10 <D16> 0000
+ 11 <D32> a5835a71
+ 12 <FLAG>
+SYS-T RAW DATA: 731C8001494E54438A9C4014A65A2F36A36D96E4C44D7161094C050081D54FD413000000000900000000715A83A5
+
+STP Protocol Output:
+ 0 <D32TS> 01801c73
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 61714dc4
+ 6 <D32> 00054c09
+ 7 <D32> d44fd581
+ 8 <D32> 00000010
+ 9 <D32> 00000c00
+ 10 <D16> 0000
+ 11 <D32> 25c17173
+ 12 <FLAG>
+SYS-T RAW DATA: 731C8001494E54438A9C4014A65A2F36A36D96E4C44D7161094C050081D54FD410000000000C000000007371C125
+
+STP Protocol Output:
+ 0 <D32TS> 0b801c72
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617151a7
+ 6 <D32> 00054c09
+ 7 <D32> 2d2d2d7c
+ 8 <D32> 2d2d2d2d
+ 9 <D32> 2d2d2d2d
+ 10 <D32> 2d2d2d2d
+ 11 <D32> 2d2d2d2d
+ 12 <D32> 2d2d2d2d
+ 13 <D32> 2d2d2d2d
+ 14 <D32> 2d2d2d2d
+ 15 <D32> 2d2d2d2d
+ 16 <D32> 2d2d2d2d
+ 17 <D32> 2d2d2d2d
+ 18 <D32> 2d2d2d2d
+ 19 <D32> 2d2d2d2d
+ 20 <D32> 2d2d2d2d
+ 21 <D16> 007c
+ 22 <D32> 634285a8
+ 23 <FLAG>
+SYS-T RAW DATA: 721C800B494E54438A9C4014A65A2F36A36D96E4A7517161094C05007C2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D7C00A8854263
+
+STP Protocol Output:
+ 0 <D32TS> 01801c06
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617151a7
+ 6 <D32> 00054c09
+ 7 <D32> 03020100
+ 8 <D32> 07060504
+ 9 <D16> 0908
+ 10 <D32> cc309a26
+ 11 <FLAG>
+SYS-T RAW DATA: 061C8001494E54438A9C4014A65A2F36A36D96E4A7517161094C050000010203040506070809269A30CC
+
+STP Protocol Output:
+ 0 <D32MTS> 12345671
+SYS-T RAW DATA: 71563412
+
+STP Protocol Output:
+ 0 <D64MTS> 1122334455667787
+SYS-T RAW DATA: 8777665544332211
+
+STP Protocol Output:
+ 0 <D32MTS> e0000011
+SYS-T RAW DATA: 110000E0
+
+STP Protocol Output:
+ 0 <D32MTS> e0000021
+SYS-T RAW DATA: 210000E0
+
+STP Protocol Output:
+ 0 <D32MTS> f0000011
+SYS-T RAW DATA: 110000F0
+
+STP Protocol Output:
+ 0 <D32MTS> f0000021
+SYS-T RAW DATA: 210000F0
+
+STP Protocol Output:
+ 0 <D32TS> 02801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617151a7
+ 6 <D32> 00054c09
+ 7 <D32> 55667788
+ 8 <D32> 11223344
+ 9 <D32> ad66a069
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8002494E54438A9C4014A65A2F36A36D96E4A7517161094C0500887766554433221169A066AD
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617151a7
+ 6 <D32> 00054c09
+ 7 <D32> 00000002
+ 8 <D32> 74617473
+ 9 <D32> 000a0065
+ 10 <D16> 0000
+ 11 <D32> a0911a8d
+ 12 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E4A7517161094C0500020000007374617465000A0000008D1A91A0
+
+STP Protocol Output:
+ 0 <D32TS> 01801c43
+ 1 <D32> 43544e49
+ 2 <D32> 14409c8a
+ 3 <D32> 362f5aa6
+ 4 <D32> e4966da3
+ 5 <D32> 617151a7
+ 6 <D32> 00054c09
+ 7 <D32> e054cf5c
+ 8 <D32> 74617473
+ 9 <D32> 000a0065
+ 10 <D16> 0000
+ 11 <D32> 7bd72a8e
+ 12 <FLAG>
+SYS-T RAW DATA: 431C8001494E54438A9C4014A65A2F36A36D96E4A7517161094C05005CCF54E07374617465000A0000008E2AD77B
+
+ in SyS-T platform handle release hook:systh = 005FBFE8 \ No newline at end of file
diff --git a/printer/test/input_client64.txt b/printer/test/input_client64.txt
new file mode 100644
index 0000000..2a32038
--- /dev/null
+++ b/printer/test/input_client64.txt
@@ -0,0 +1,3588 @@
+ in SyS-T platform init hook: "mipi_syst_platform_state_init()"
+ systh = 00007FF724389730, platform_data = 0000000000000000
+ in SyS-T platform handle init hook: systh = 000000E3C08BF840
+
+STP Protocol Output:
+ 0 <D32TS> 02801c00
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9d590
+ 4 <D64> 0000000000010000
+ 5 <D64> 206e6f6973726576
+ 6 <D64> 732072656e6e6162
+ 7 <D32> 6e697274
+ 8 <D16> 0067
+ 9 <D32> 7875c94c
+ 10 <FLAG>
+SYS-T RAW DATA: 001C8002494E54438A9C4014A65A2F36A36D96E490D5F95D094C0500000001000000000076657273696F6E2062616E6E657220737472696E67004CC97578
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9d590
+ 4 <D32> 32ca5ed8
+ 5 <D64> 0000000000000001
+ 6 <D32> 00000000
+ 7 <D32> a4d91b12
+ 8 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E490D5F95D094C0500D85ECA32010000000000000000000000121BD9A4
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9d590
+ 4 <D32> e4876129
+ 5 <D32> 2d722a0f
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E490D5F95D094C0500296187E40F2A722D
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9d590
+ 4 <D32> 16028e9a
+ 5 <D32> 76a8854d
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E490D5F95D094C05009A8E02164D85A876
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9d590
+ 4 <D32> c5d41bc9
+ 5 <D32> 040f5012
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E490D5F95D094C0500C91BD4C512500F04
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9d590
+ 4 <D32> 23f66c1e
+ 5 <D32> b241310d
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E490D5F95D094C05001E6CF6230D3141B2
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9d590
+ 4 <D32> 95095f2f
+ 5 <D32> 1ddac94c
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E490D5F95D094C05002F5F09954CC9DA1D
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9d590
+ 4 <D32> c645d04b
+ 5 <D32> b301d37b
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E490D5F95D094C05004BD045C67BD301B3
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9d590
+ 4 <D32> 54d8b7ff
+ 5 <D32> 81ba2c2e
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E490D5F95D094C0500FFB7D8542E2CBA81
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9d590
+ 4 <D32> d48907f7
+ 5 <D32> 3cb92a9f
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E490D5F95D094C0500F70789D49F2AB93C
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9d590
+ 4 <D32> 9e125f25
+ 5 <D32> 5b46b8b0
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E490D5F95D094C0500255F129EB0B8465B
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9d590
+ 4 <D32> e487612a
+ 5 <D32> 4f50a336
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E490D5F95D094C05002A6187E436A3504F
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9d590
+ 4 <D32> cf292f8b
+ 5 <D32> f0b232a5
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E490D5F95D094C05008B2F29CFA532B2F0
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9d978
+ 4 <D32> 886b15e0
+ 5 <D32> 58956654
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E478D9F95D094C0500E0156B8854669558
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9d978
+ 4 <D64> 68676972f0e43f1b
+ 5 <D64> 66697473756a2d74
+ 6 <D32> 00646569
+ 7 <D32> 16a5fecc
+ 8 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E478D9F95D094C05001B3FE4F072696768742D6A757374696669656400CCFEA516
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9d978
+ 4 <D64> 7466656c8bb1283d
+ 5 <D64> 6966697473756a2d
+ 6 <D16> 6465
+ 7 <D8> 00
+ 8 <D32> 19c38e0c
+ 9 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E478D9F95D094C05003D28B18B6C6566742D6A7573746966696564000C8EC319
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9d978
+ 4 <D32> 237ce64f
+ 5 <D32> 7bb4f7e2
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E478D9F95D094C05004FE67C23E2F7B47B
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9d978
+ 4 <D64> 2423222180f4ba3d
+ 5 <D64> 2d2b2a2928272625
+ 6 <D64> 3534333231302f2e
+ 7 <D64> 3d3c3b3a39383736
+ 8 <D16> 003e
+ 9 <D32> 927a5224
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E478D9F95D094C05003DBAF4802122232425262728292A2B2D2E2F303132333435363738393A3B3C3D3E0024527A92
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9d978
+ 4 <D64> 4241403f80f4ba3e
+ 5 <D64> 4a49484746454443
+ 6 <D64> 5251504f4e4d4c4b
+ 7 <D64> 5a59585756555453
+ 8 <D16> 005b
+ 9 <D32> 1fb7a497
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E478D9F95D094C05003EBAF4803F404142434445464748494A4B4C4D4E4F505152535455565758595A5B0097A4B71F
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9d978
+ 4 <D64> 5f5e5d5c80f4ba3f
+ 5 <D64> 6766656463627160
+ 6 <D64> 6f6e6d6c6b6a6968
+ 7 <D64> 7776757473727170
+ 8 <D16> 0078
+ 9 <D32> 07c66708
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E478D9F95D094C05003FBAF4805C5D5E5F607162636465666768696A6B6C6D6E6F707172737475767778000867C607
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9d978
+ 4 <D64> 7c7b7a7980f4ba40
+ 5 <D64> 2020202020207e7d
+ 6 <D64> 2020202020202020
+ 7 <D64> 2020202020202020
+ 8 <D16> 0020
+ 9 <D32> c15f2940
+ 10 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E478D9F95D094C050040BAF480797A7B7C7D7E20202020202020202020202020202020202020202020200040295FC1
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9d978
+ 4 <D32> e29131c9
+ 5 <D32> 2fc482fd
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E478D9F95D094C0500C93191E2FD82C42F
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9d978
+ 4 <D64> 00000001ddc39ddb
+ 5 <D32> 2b17bc5f
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E478D9F95D094C0500DB9DC3DD010000005FBC172B
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9d978
+ 4 <D64> 0000000addc39ddc
+ 5 <D32> 45285384
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E478D9F95D094C0500DC9DC3DD0A00000084532845
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9d978
+ 4 <D64> 00000064ddc39ddd
+ 5 <D32> 4296145b
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E478D9F95D094C0500DD9DC3DD640000005B149642
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9d978
+ 4 <D64> 000003e8ddc39dde
+ 5 <D32> ac3ac86b
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E478D9F95D094C0500DE9DC3DDE80300006BC83AAC
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9d978
+ 4 <D64> 00002710ddc39ddf
+ 5 <D32> ab9fbaca
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E478D9F95D094C0500DF9DC3DD10270000CABA9FAB
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9d978
+ 4 <D64> 000186a0ddc39de0
+ 5 <D32> 2aea3dee
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E478D9F95D094C0500E09DC3DDA0860100EE3DEA2A
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9d978
+ 4 <D64> 00000001789086fd
+ 5 <D32> a8ebc250
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E478D9F95D094C0500FD8690780100000050C2EBA8
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9d978
+ 4 <D64> 0000000a789086fe
+ 5 <D32> e7c9afe6
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E478D9F95D094C0500FE8690780A000000E6AFC9E7
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9d978
+ 4 <D64> 00000064789086ff
+ 5 <D32> e077e839
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E478D9F95D094C0500FF8690786400000039E877E0
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9d978
+ 4 <D64> 000003e878908700
+ 5 <D32> a289af0d
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E478D9F95D094C050000879078E80300000DAF89A2
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9d978
+ 4 <D64> 0000271078908701
+ 5 <D32> a52cddac
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E478D9F95D094C05000187907810270000ACDD2CA5
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9d978
+ 4 <D64> 000186a078908702
+ 5 <D32> ce09b012
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E478D9F95D094C050002879078A086010012B009CE
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9dd61
+ 4 <D32> 149a8033
+ 5 <D32> 9239985f
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E461DDF95D094C050033809A145F983992
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9dd61
+ 4 <D64> 0000000af74474db
+ 5 <D32> e969af5e
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E461DDF95D094C0500DB7444F70A0000005EAF69E9
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9dd61
+ 4 <D64> 000000abf74474dc
+ 5 <D32> 4bf0dd56
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E461DDF95D094C0500DC7444F7AB00000056DDF04B
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9dd61
+ 4 <D64> 00000abcf74474dd
+ 5 <D32> 8596c54e
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E461DDF95D094C0500DD7444F7BC0A00004EC59685
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9dd61
+ 4 <D64> 0000abcdf74474de
+ 5 <D32> d9520ce7
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E461DDF95D094C0500DE7444F7CDAB0000E70C52D9
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9dd61
+ 4 <D64> 000abcdef74474df
+ 5 <D32> a52ba371
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E461DDF95D094C0500DF7444F7DEBC0A0071A32BA5
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9dd61
+ 4 <D64> 00abcdeff74474e0
+ 5 <D32> 1313d439
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E461DDF95D094C0500E07444F7EFCDAB0039D41313
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9dd61
+ 4 <D64> 0000000a92115dfd
+ 5 <D32> 2b19d99c
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E461DDF95D094C0500FD5D11920A0000009CD9192B
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9dd61
+ 4 <D64> 000000ab92115dfe
+ 5 <D32> a89d29f9
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E461DDF95D094C0500FE5D1192AB000000F9299DA8
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9dd61
+ 4 <D64> 00000abc92115dff
+ 5 <D32> 66fb31e1
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E461DDF95D094C0500FF5D1192BC0A0000E131FB66
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9dd61
+ 4 <D64> 0000abcd92115e00
+ 5 <D32> 466b3adc
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E461DDF95D094C0500005E1192CDAB0000DC3A6B46
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9dd61
+ 4 <D64> 000abcde92115e01
+ 5 <D32> 3a12954a
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E461DDF95D094C0500015E1192DEBC0A004A95123A
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9dd61
+ 4 <D64> 00abcdef92115e02
+ 5 <D32> 667a0898
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E461DDF95D094C0500025E1192EFCDAB0098087A66
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9dd61
+ 4 <D64> 0000000a9b431cdb
+ 5 <D32> 6f3a40bf
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E461DDF95D094C0500DB1C439B0A000000BF403A6F
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9dd61
+ 4 <D64> 000000ab9b431cdc
+ 5 <D32> cda332b7
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E461DDF95D094C0500DC1C439BAB000000B732A3CD
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9dd61
+ 4 <D64> 00000abc9b431cdd
+ 5 <D32> 03c52aaf
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E461DDF95D094C0500DD1C439BBC0A0000AF2AC503
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9dd61
+ 4 <D64> 0000abcd9b431cde
+ 5 <D32> 5f01e306
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E461DDF95D094C0500DE1C439BCDAB000006E3015F
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9dd61
+ 4 <D64> 000abcde9b431cdf
+ 5 <D32> 23784c90
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E461DDF95D094C0500DF1C439BDEBC0A00904C7823
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9dd61
+ 4 <D64> 00abcdef9b431ce0
+ 5 <D32> 95403bd8
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E461DDF95D094C0500E01C439BEFCDAB00D83B4095
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9dd61
+ 4 <D64> 0000000a361005fd
+ 5 <D32> f9a76cb1
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E461DDF95D094C0500FD0510360A000000B16CA7F9
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9dd61
+ 4 <D64> 000000ab361005fe
+ 5 <D32> 7a239cd4
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E461DDF95D094C0500FE051036AB000000D49C237A
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9dd61
+ 4 <D64> 00000abc361005ff
+ 5 <D32> b44584cc
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E461DDF95D094C0500FF051036BC0A0000CC8445B4
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9dd61
+ 4 <D64> 0000abcd36100600
+ 5 <D32> 94d58ff1
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E461DDF95D094C050000061036CDAB0000F18FD594
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9dd61
+ 4 <D64> 000abcde36100601
+ 5 <D32> e8ac2067
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E461DDF95D094C050001061036DEBC0A006720ACE8
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9dd61
+ 4 <D64> 00abcdef36100602
+ 5 <D32> b4c4bdb5
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E461DDF95D094C050002061036EFCDAB00B5BDC4B4
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9dd61
+ 4 <D32> 02408d9a
+ 5 <D32> 88cc9ab9
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E461DDF95D094C05009A8D4002B99ACC88
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e149
+ 4 <D64> 54442eea1bfd1b9b
+ 5 <D32> 400921fb
+ 6 <D32> 4a38c9a1
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E449E1F95D094C05009B1BFD1BEA2E4454FB210940A1C9384A
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e149
+ 4 <D64> 54442eea43dfc0db
+ 5 <D32> 400921fb
+ 6 <D32> 66c199b2
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E449E1F95D094C0500DBC0DF43EA2E4454FB210940B299C166
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e149
+ 4 <D64> 54442eea6bc2661b
+ 5 <D32> 400921fb
+ 6 <D32> 9b740892
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E449E1F95D094C05001B66C26BEA2E4454FB2109409208749B
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e149
+ 4 <D64> 54442eea93a50b5b
+ 5 <D32> 400921fb
+ 6 <D32> 523aabe0
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E449E1F95D094C05005B0BA593EA2E4454FB210940E0AB3A52
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e149
+ 4 <D64> 54442eeabb87b09b
+ 5 <D32> 400921fb
+ 6 <D32> 31dc4f00
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E449E1F95D094C05009BB087BBEA2E4454FB210940004FDC31
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e149
+ 4 <D64> 54442eeae36a55db
+ 5 <D32> 400921fb
+ 6 <D32> 500bacd0
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E449E1F95D094C0500DB556AE3EA2E4454FB210940D0AC0B50
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e149
+ 4 <D64> 54442eea0b4cfb1b
+ 5 <D32> 400921fb
+ 6 <D32> fbd4799f
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E449E1F95D094C05001BFB4C0BEA2E4454FB2109409F79D4FB
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e149
+ 4 <D64> 54442eea332fa05b
+ 5 <D32> 400921fb
+ 6 <D32> fdfcff22
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E449E1F95D094C05005BA02F33EA2E4454FB21094022FFFCFD
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e149
+ 4 <D64> 54442eea5b12459b
+ 5 <D32> 400921fb
+ 6 <D32> 00dc60a1
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E449E1F95D094C05009B45125BEA2E4454FB210940A160DC00
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e149
+ 4 <D64> 54442eea10b5637d
+ 5 <D32> 400921fb
+ 6 <D32> 918ea0f3
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E449E1F95D094C05007D63B510EA2E4454FB210940F3A08E91
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e149
+ 4 <D64> 54442eeadda393bd
+ 5 <D32> 400921fb
+ 6 <D32> 9695bac9
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E449E1F95D094C0500BD93A3DDEA2E4454FB210940C9BA9596
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e149
+ 4 <D64> 54442eea058638fd
+ 5 <D32> 400921fb
+ 6 <D32> f2602446
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E449E1F95D094C0500FD388605EA2E4454FB210940462460F2
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e149
+ 4 <D64> 54442eea2d68de3d
+ 5 <D32> 400921fb
+ 6 <D32> f04f1e4e
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E449E1F95D094C05003DDE682DEA2E4454FB2109404E1E4FF0
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e149
+ 4 <D64> 54442eea554b837d
+ 5 <D32> 400921fb
+ 6 <D32> 67babf79
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E449E1F95D094C05007D834B55EA2E4454FB21094079BFBA67
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e149
+ 4 <D64> 54442eea7d2e28bd
+ 5 <D32> 400921fb
+ 6 <D32> 1fb8dcfb
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E449E1F95D094C0500BD282E7DEA2E4454FB210940FBDCB81F
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e149
+ 4 <D64> 54442eeaa510cdfd
+ 5 <D32> 400921fb
+ 6 <D32> 4ab4c874
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E449E1F95D094C0500FDCD10A5EA2E4454FB21094074C8B44A
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e149
+ 4 <D64> 54442eeaccf3733d
+ 5 <D32> 400921fb
+ 6 <D32> 4186a365
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E449E1F95D094C05003D73F3CCEA2E4454FB21094065A38641
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e149
+ 4 <D64> 54442eeaf4d6187d
+ 5 <D32> 400921fb
+ 6 <D32> 2c3da3cd
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E449E1F95D094C05007D18D6F4EA2E4454FB210940CDA33D2C
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e149
+ 4 <D64> 54442eea1cb8bdbd
+ 5 <D32> 400921fb
+ 6 <D32> ec772360
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E449E1F95D094C0500BDBDB81CEA2E4454FB210940602377EC
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e149
+ 4 <D64> 54442eea30cef3db
+ 5 <D32> 400921fb
+ 6 <D32> 2d9c1cc7
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E449E1F95D094C0500DBF3CE30EA2E4454FB210940C71C9C2D
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e149
+ 4 <D32> 75ff3462
+ 5 <D32> 6719b2f0
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E449E1F95D094C05006234FF75F0B21967
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e149
+ 4 <D64> 00000000811d10db
+ 5 <D32> 3ff80000
+ 6 <D32> 9f4b8b70
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E449E1F95D094C0500DB101D81000000000000F83F708B4B9F
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e149
+ 4 <D64> 00000000a8ffb61b
+ 5 <D32> 40250000
+ 6 <D32> abe5e5aa
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E449E1F95D094C05001BB6FFA80000000000002540AAE5E5AB
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e149
+ 4 <D64> 00000000d0e25b5b
+ 5 <D32> 40250000
+ 6 <D32> 5839966b
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E449E1F95D094C05005B5BE2D000000000000025406B963958
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e532
+ 4 <D64> 00000000f8c5009b
+ 5 <D32> 40592000
+ 6 <D32> 1b68d76b
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E432E5F95D094C05009B00C5F800000000002059406BD7681B
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e532
+ 4 <D64> 0000000020a7a5db
+ 5 <D32> 408f4400
+ 6 <D32> 02e6fe2f
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E432E5F95D094C0500DBA5A7200000000000448F402FFEE602
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e532
+ 4 <D64> 00000000488a4b1b
+ 5 <D32> 40c38840
+ 6 <D32> 0fd1ea0c
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E432E5F95D094C05001B4B8A48000000004088C3400CEAD10F
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e532
+ 4 <D64> 00000000706cf05b
+ 5 <D32> 40c38840
+ 6 <D32> b40ff69a
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E432E5F95D094C05005BF06C70000000004088C3409AF60FB4
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e532
+ 4 <D64> 00000000984f959b
+ 5 <D32> 40c38840
+ 6 <D32> 7358a376
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E432E5F95D094C05009B954F98000000004088C34076A35873
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e532
+ 4 <D64> 00000000c0323adb
+ 5 <D32> 40f86a08
+ 6 <D32> 478c9954
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E432E5F95D094C0500DB3A32C000000000086AF84054998C47
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e532
+ 4 <D64> 0000000075d558bd
+ 5 <D32> 412e8481
+ 6 <D32> f947240d
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E432E5F95D094C0500BD58D5750000000081842E410D2447F9
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e532
+ 4 <D64> 0000000042c388fd
+ 5 <D32> 3ff80000
+ 6 <D32> 2445e336
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E432E5F95D094C0500FD88C342000000000000F83F36E34524
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e532
+ 4 <D64> 000000006aa62e3d
+ 5 <D32> 40250000
+ 6 <D32> e5b1bf19
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E432E5F95D094C05003D2EA66A000000000000254019BFB1E5
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e532
+ 4 <D64> 000000009288d37d
+ 5 <D32> 40250000
+ 6 <D32> 26b18291
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E432E5F95D094C05007DD3889200000000000025409182B126
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e532
+ 4 <D64> 00000000ba6b78bd
+ 5 <D32> 40592000
+ 6 <D32> 1902f3fc
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E432E5F95D094C0500BD786BBA0000000000205940FCF30219
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e532
+ 4 <D64> 00000000e24e1dfd
+ 5 <D32> 408f4400
+ 6 <D32> 746360a7
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E432E5F95D094C0500FD1D4EE20000000000448F40A7606374
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e532
+ 4 <D64> 000000000a30c33d
+ 5 <D32> 40c38840
+ 6 <D32> d1212f44
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E432E5F95D094C05003DC3300A000000004088C340442F21D1
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e91d
+ 4 <D64> 000000003213687d
+ 5 <D32> 40c38840
+ 6 <D32> 63d986f0
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E41DE9F95D094C05007D681332000000004088C340F086D963
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e91d
+ 4 <D64> 0000000059f60dbd
+ 5 <D32> 40c38840
+ 6 <D32> ec74f054
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E41DE9F95D094C0500BD0DF659000000004088C34054F074EC
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e91d
+ 4 <D64> 0000000081d8b2fd
+ 5 <D32> 40f86a08
+ 6 <D32> cbf4eb64
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E41DE9F95D094C0500FDB2D88100000000086AF84064EBF4CB
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e91d
+ 4 <D64> 0000000095eee91b
+ 5 <D32> 412e8481
+ 6 <D32> d83d4401
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E41DE9F95D094C05001BE9EE950000000081842E4101443DD8
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e91d
+ 4 <D32> 66ad3a7f
+ 5 <D32> c7508d11
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E41DE9F95D094C05007F3AAD66118D50C7
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e91d
+ 4 <D64> 000000ff4e9894fd
+ 5 <D32> 984cf622
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E41DE9F95D094C0500FD94984EFF00000022F64C98
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e91d
+ 4 <D64> ffffffff1870c29b
+ 5 <D32> ef529577
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E41DE9F95D094C05009BC27018FFFFFFFF779552EF
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e91d
+ 4 <D64> ffffffffb7fb579b
+ 5 <D32> ffffffff
+ 6 <D32> c5aa0894
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E41DE9F95D094C05009B57FBB7FFFFFFFFFFFFFFFF9408AAC5
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e91d
+ 4 <D64> ffffffffc63dd4fd
+ 5 <D32> ffffffff
+ 6 <D32> 22843968
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E41DE9F95D094C0500FDD43DC6FFFFFFFFFFFFFFFF68398422
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e91d
+ 4 <D64> 000000ffad58547d
+ 5 <D32> 3bf03fa4
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E41DE9F95D094C05007D5458ADFF000000A43FF03B
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e91d
+ 4 <D64> ffffffff7730821b
+ 5 <D32> ee0885ae
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E41DE9F95D094C05001B823077FFFFFFFFAE8508EE
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e91d
+ 4 <D64> ffffffff16bb171b
+ 5 <D32> ffffffff
+ 6 <D32> fa040ad6
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E41DE9F95D094C05001B17BB16FFFFFFFFFFFFFFFFD60A04FA
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e91d
+ 4 <D64> ffffffff24fd947d
+ 5 <D32> ffffffff
+ 6 <D32> af5865aa
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E41DE9F95D094C05007D94FD24FFFFFFFFFFFFFFFFAA6558AF
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e91d
+ 4 <D64> 000000ff1f38b53d
+ 5 <D32> fa8bc18b
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E41DE9F95D094C05003DB5381FFF0000008BC18BFA
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e91d
+ 4 <D64> ffffffffe910e2db
+ 5 <D32> b6919444
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E41DE9F95D094C0500DBE210E9FFFFFFFF449491B6
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e91d
+ 4 <D64> ffffffff889b77db
+ 5 <D32> ffffffff
+ 6 <D32> d9abf5bd
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E41DE9F95D094C0500DB779B88FFFFFFFFFFFFFFFFBDF5ABD9
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e91d
+ 4 <D64> ffffffff96ddf53d
+ 5 <D32> ffffffff
+ 6 <D32> 5e63ba82
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E41DE9F95D094C05003DF5DD96FFFFFFFFFFFFFFFF82BA635E
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e91d
+ 4 <D64> 000000ff3ff8653d
+ 5 <D32> e0ad6bc9
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E41DE9F95D094C05003D65F83FFF000000C96BADE0
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e91d
+ 4 <D64> ffffffff60d8e25b
+ 5 <D32> 634e4763
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E41DE9F95D094C05005BE2D860FFFFFFFF63474E63
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e91d
+ 4 <D64> ffffffff2c427ef9
+ 5 <D32> ffffffff
+ 6 <D32> 67cd0791
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E41DE9F95D094C0500F97E422CFFFFFFFFFFFFFFFF9107CD67
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9e91d
+ 4 <D64> ffffffffe3d00a1b
+ 5 <D32> ffffffff
+ 6 <D32> 35c7f563
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E41DE9F95D094C05001B0AD0E3FFFFFFFFFFFFFFFF63F5C735
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9ed17
+ 4 <D64> 000000ffcaea899b
+ 5 <D32> ceedb8ee
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E417EDF95D094C05009B89EACAFF000000EEB8EDCE
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9ed17
+ 4 <D64> fffffffffb29257d
+ 5 <D32> 68c18d7c
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E417EDF95D094C05007D2529FBFFFFFFFF7C8DC168
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9ed17
+ 4 <D64> ffffffff9ab3ba7d
+ 5 <D32> ffffffff
+ 6 <D32> 82b7dad3
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E417EDF95D094C05007DBAB39AFFFFFFFFFFFFFFFFD3DAB782
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9ed17
+ 4 <D64> ffffffff428fc99b
+ 5 <D32> ffffffff
+ 6 <D32> df1fd7af
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E417EDF95D094C05009BC98F42FFFFFFFFFFFFFFFFAFD71FDF
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9ed17
+ 4 <D64> 000000ff3ccaea5b
+ 5 <D32> c7ef0834
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E417EDF95D094C05005BEACA3CFF0000003408EFC7
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9ed17
+ 4 <D64> ffffffff6d09863d
+ 5 <D32> f6e27db5
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E417EDF95D094C05003D86096DFFFFFFFFB57DE2F6
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9ed17
+ 4 <D64> ffffffff0c941b3d
+ 5 <D32> ffffffff
+ 6 <D32> a8dcea10
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E417EDF95D094C05003D1B940CFFFFFFFFFFFFFFFF10EADCA8
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9ed17
+ 4 <D64> ffffffffb4702a5b
+ 5 <D32> ffffffff
+ 6 <D32> d331c045
+ 7 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E417EDF95D094C05005B2A70B4FFFFFFFFFFFFFFFF45C031D3
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9ed17
+ 4 <D64> 2d2d2d2d2d2d2d7c
+ 5 <D64> 2d2d2d2d2d2d2d2d
+ 6 <D64> 2d2d2d2d2d2d2d2d
+ 7 <D64> 2d2d2d2d2d2d2d2d
+ 8 <D64> 2d2d2d2d2d2d2d2d
+ 9 <D64> 2d2d2d2d2d2d2d2d
+ 10 <D64> 2d2d2d2d2d2d2d2d
+ 11 <D16> 007c
+ 12 <D32> 3c0c50ef
+ 13 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E417EDF95D094C05007C2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D7C00EF500C3C
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9ed17
+ 4 <D64> 697270202020207c
+ 5 <D64> 6d726f462066746e
+ 6 <D64> 20207c2020207461
+ 7 <D64> 7020202020202020
+ 8 <D64> 65522066746e6972
+ 9 <D64> 20202020746c7573
+ 10 <D64> 2020202020202020
+ 11 <D16> 007c
+ 12 <D32> 52a76420
+ 13 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E417EDF95D094C05007C202020207072696E746620466F726D61742020207C2020202020202020207072696E746620526573756C742020202020202020202020207C002064A752
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9ed17
+ 4 <D64> 2d2d2d2d2d2d2d7c
+ 5 <D64> 2d2d2d2d2d2d2d2d
+ 6 <D64> 2d2d2d2d2d2d2d2d
+ 7 <D64> 2d2d2d2d2d2d2d2d
+ 8 <D64> 676e697274732d2d
+ 9 <D64> 2d2d2d2d2d2d2d73
+ 10 <D64> 2d2d2d2d2d2d2d2d
+ 11 <D16> 007c
+ 12 <D32> 407ee394
+ 13 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E417EDF95D094C05007C2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D737472696E67732D2D2D2D2D2D2D2D2D2D2D2D2D2D2D7C0094E37E40
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9ed17
+ 4 <D64> 733033252527207c
+ 5 <D64> 2020202020202027
+ 6 <D64> 207c202020202020
+ 7 <D64> 7c20277330332527
+ 8 <D64> 6a2d746867697200
+ 9 <D64> 6465696669747375
+ 10 <D8> 00
+ 11 <D32> 8d302ad0
+ 12 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E417EDF95D094C05007C2027252533307327202020202020202020202020207C20272533307327207C0072696768742D6A757374696669656400D02A308D
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9ed17
+ 4 <D64> 30332d252527207c
+ 5 <D64> 2020202020202773
+ 6 <D64> 207c202020202020
+ 7 <D64> 20277330332d2527
+ 8 <D64> 6a2d7466656c007c
+ 9 <D64> 6465696669747375
+ 10 <D8> 00
+ 11 <D32> 77ed17a2
+ 12 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E417EDF95D094C05007C202725252D333073272020202020202020202020207C2027252D33307327207C006C6566742D6A757374696669656400A217ED77
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9ed17
+ 4 <D64> 2d2d2d2d2d2d2d7c
+ 5 <D64> 2d2d2d2d2d2d2d2d
+ 6 <D64> 2d2d2d2d2d2d2d2d
+ 7 <D64> 2d2d2d2d2d2d2d2d
+ 8 <D64> 2d49494353412d2d
+ 9 <D64> 2d2d2d2d2d2d2d2d
+ 10 <D64> 2d2d2d2d2d2d2d2d
+ 11 <D16> 007c
+ 12 <D32> 91acb971
+ 13 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E417EDF95D094C05007C2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D41534349492D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D7C0071B9AC91
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9ed17
+ 4 <D64> 202773252527207c
+ 5 <D64> 2020202020202020
+ 6 <D64> 207c202020202020
+ 7 <D64> 007c202027732527
+ 8 <D64> 2827262524232221
+ 9 <D64> 31302f2e2d2b2a29
+ 10 <D64> 3938373635343332
+ 11 <D32> 3d3c3b3a
+ 12 <D16> 003e
+ 13 <D32> a84beca9
+ 14 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E417EDF95D094C05007C2027252573272020202020202020202020202020207C202725732720207C002122232425262728292A2B2D2E2F303132333435363738393A3B3C3D3E00A9EC4BA8
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9ed17
+ 4 <D64> 202773252527207c
+ 5 <D64> 2020202020202020
+ 6 <D64> 207c202020202020
+ 7 <D64> 007c202027732527
+ 8 <D64> 464544434241403f
+ 9 <D64> 4e4d4c4b4a494847
+ 10 <D64> 565554535251504f
+ 11 <D32> 5a595857
+ 12 <D16> 005b
+ 13 <D32> a69b8669
+ 14 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E417EDF95D094C05007C2027252573272020202020202020202020202020207C202725732720207C003F404142434445464748494A4B4C4D4E4F505152535455565758595A5B0069869BA6
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9ed17
+ 4 <D64> 202773252527207c
+ 5 <D64> 2020202020202020
+ 6 <D64> 207c202020202020
+ 7 <D64> 007c202027732527
+ 8 <D64> 636271605f5e5d5c
+ 9 <D64> 6b6a696867666564
+ 10 <D64> 737271706f6e6d6c
+ 11 <D32> 77767574
+ 12 <D16> 0078
+ 13 <D32> c01ece27
+ 14 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E417EDF95D094C05007C2027252573272020202020202020202020202020207C202725732720207C005C5D5E5F607162636465666768696A6B6C6D6E6F7071727374757677780027CE1EC0
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9f109
+ 4 <D64> 202773252527207c
+ 5 <D64> 2020202020202020
+ 6 <D64> 207c202020202020
+ 7 <D64> 007c202027732527
+ 8 <D64> 20207e7d7c7b7a79
+ 9 <D64> 2020202020202020
+ 10 <D64> 2020202020202020
+ 11 <D32> 20202020
+ 12 <D16> 0020
+ 13 <D32> b799227c
+ 14 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E409F1F95D094C05007C2027252573272020202020202020202020202020207C202725732720207C00797A7B7C7D7E2020202020202020202020202020202020202020202020007C2299B7
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9f109
+ 4 <D64> 2d2d2d2d2d2d2d7c
+ 5 <D64> 2d2d2d2d2d2d2d2d
+ 6 <D64> 2d2d2d2d2d2d2d2d
+ 7 <D64> 2d2d2d2d2d2d2d2d
+ 8 <D64> 616d696365642d2d
+ 9 <D64> 2d2d2d2d2d2d736c
+ 10 <D64> 2d2d2d2d2d2d2d2d
+ 11 <D16> 007c
+ 12 <D32> f5fd859c
+ 13 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E409F1F95D094C05007C2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D646563696D616C732D2D2D2D2D2D2D2D2D2D2D2D2D2D7C009C85FDF5
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9f109
+ 4 <D64> 643033252527207c
+ 5 <D64> 2020202020202027
+ 6 <D64> 207c202020202020
+ 7 <D64> 7c20276430332527
+ 8 <D32> 00000100
+ 9 <D8> 00
+ 10 <D32> 2c184f29
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E409F1F95D094C05007C2027252533306427202020202020202020202020207C20272533306427207C0001000000294F182C
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9f109
+ 4 <D64> 643033252527207c
+ 5 <D64> 2020202020202027
+ 6 <D64> 207c202020202020
+ 7 <D64> 7c20276430332527
+ 8 <D32> 00000a00
+ 9 <D8> 00
+ 10 <D32> b87ea5f6
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E409F1F95D094C05007C2027252533306427202020202020202020202020207C20272533306427207C000A000000F6A57EB8
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9f109
+ 4 <D64> 643033252527207c
+ 5 <D64> 2020202020202027
+ 6 <D64> 207c202020202020
+ 7 <D64> 7c20276430332527
+ 8 <D32> 00006400
+ 9 <D8> 00
+ 10 <D32> f6fc9f0e
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E409F1F95D094C05007C2027252533306427202020202020202020202020207C20272533306427207C00640000000E9FFCF6
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9f109
+ 4 <D64> 643033252527207c
+ 5 <D64> 2020202020202027
+ 6 <D64> 207c202020202020
+ 7 <D64> 7c20276430332527
+ 8 <D32> 0003e800
+ 9 <D8> 00
+ 10 <D32> c314c457
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E409F1F95D094C05007C2027252533306427202020202020202020202020207C20272533306427207C00E803000057C414C3
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9f109
+ 4 <D64> 643033252527207c
+ 5 <D64> 2020202020202027
+ 6 <D64> 207c202020202020
+ 7 <D64> 7c20276430332527
+ 8 <D32> 00271000
+ 9 <D8> 00
+ 10 <D32> 8d8dcbd1
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E409F1F95D094C05007C2027252533306427202020202020202020202020207C20272533306427207C0010270000D1CB8D8D
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9f109
+ 4 <D64> 643033252527207c
+ 5 <D64> 2020202020202027
+ 6 <D64> 207c202020202020
+ 7 <D64> 7c20276430332527
+ 8 <D32> 0186a000
+ 9 <D8> 00
+ 10 <D32> 3dec2106
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E409F1F95D094C05007C2027252533306427202020202020202020202020207C20272533306427207C00A08601000621EC3D
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9f109
+ 4 <D64> 30332d252527207c
+ 5 <D64> 2020202020202764
+ 6 <D64> 207c202020202020
+ 7 <D64> 20276430332d2527
+ 8 <D32> 0001007c
+ 9 <D16> 0000
+ 10 <D32> 1c9564f5
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E409F1F95D094C05007C202725252D333064272020202020202020202020207C2027252D33306427207C0001000000F564951C
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9f109
+ 4 <D64> 30332d252527207c
+ 5 <D64> 2020202020202764
+ 6 <D64> 207c202020202020
+ 7 <D64> 20276430332d2527
+ 8 <D32> 000a007c
+ 9 <D16> 0000
+ 10 <D32> 88f38e2a
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E409F1F95D094C05007C202725252D333064272020202020202020202020207C2027252D33306427207C000A0000002A8EF388
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9f109
+ 4 <D64> 30332d252527207c
+ 5 <D64> 2020202020202764
+ 6 <D64> 207c202020202020
+ 7 <D64> 20276430332d2527
+ 8 <D32> 0064007c
+ 9 <D16> 0000
+ 10 <D32> c671b4d2
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E409F1F95D094C05007C202725252D333064272020202020202020202020207C2027252D33306427207C0064000000D2B471C6
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9f109
+ 4 <D64> 30332d252527207c
+ 5 <D64> 2020202020202764
+ 6 <D64> 207c202020202020
+ 7 <D64> 20276430332d2527
+ 8 <D32> 03e8007c
+ 9 <D16> 0000
+ 10 <D32> f399ef8b
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E409F1F95D094C05007C202725252D333064272020202020202020202020207C2027252D33306427207C00E80300008BEF99F3
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9f109
+ 4 <D64> 30332d252527207c
+ 5 <D64> 2020202020202764
+ 6 <D64> 207c202020202020
+ 7 <D64> 20276430332d2527
+ 8 <D32> 2710007c
+ 9 <D16> 0000
+ 10 <D32> bd00e00d
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E409F1F95D094C05007C202725252D333064272020202020202020202020207C2027252D33306427207C00102700000DE000BD
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9f4e4
+ 4 <D64> 30332d252527207c
+ 5 <D64> 2020202020202764
+ 6 <D64> 207c202020202020
+ 7 <D64> 20276430332d2527
+ 8 <D32> 86a0007c
+ 9 <D16> 0001
+ 10 <D32> 50b50f93
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E4E4F4F95D094C05007C202725252D333064272020202020202020202020207C2027252D33306427207C00A0860100930FB550
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9f4e4
+ 4 <D64> 2d2d2d2d2d2d2d7c
+ 5 <D64> 2d2d2d2d2d2d2d2d
+ 6 <D64> 2d2d2d2d2d2d2d2d
+ 7 <D64> 2d2d2d2d2d2d2d2d
+ 8 <D64> 64617865682d2d2d
+ 9 <D64> 2d736c616d696365
+ 10 <D64> 2d2d2d2d2d2d2d2d
+ 11 <D16> 007c
+ 12 <D32> f9886c00
+ 13 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E4E4F4F95D094C05007C2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D68657861646563696D616C732D2D2D2D2D2D2D2D2D7C00006C88F9
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9f4e4
+ 4 <D64> 783033252527207c
+ 5 <D64> 2020202020202027
+ 6 <D64> 207c202020202020
+ 7 <D64> 7c20277830332527
+ 8 <D32> 00000a00
+ 9 <D8> 00
+ 10 <D32> c7ab9a9c
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E4E4F4F95D094C05007C2027252533307827202020202020202020202020207C20272533307827207C000A0000009C9AABC7
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9f4e4
+ 4 <D64> 783033252527207c
+ 5 <D64> 2020202020202027
+ 6 <D64> 207c202020202020
+ 7 <D64> 7c20277830332527
+ 8 <D32> 0000ab00
+ 9 <D8> 00
+ 10 <D32> 9f6bed90
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E4E4F4F95D094C05007C2027252533307827202020202020202020202020207C20272533307827207C00AB00000090ED6B9F
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9f4e4
+ 4 <D64> 783033252527207c
+ 5 <D64> 2020202020202027
+ 6 <D64> 207c202020202020
+ 7 <D64> 7c20277830332527
+ 8 <D32> 000abc00
+ 9 <D8> 00
+ 10 <D32> 183188af
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E4E4F4F95D094C05007C2027252533307827202020202020202020202020207C20272533307827207C00BC0A0000AF883118
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9f4e4
+ 4 <D64> 783033252527207c
+ 5 <D64> 2020202020202027
+ 6 <D64> 207c202020202020
+ 7 <D64> 7c20277830332527
+ 8 <D32> 00abcd00
+ 9 <D8> 00
+ 10 <D32> 9fb1c66f
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E4E4F4F95D094C05007C2027252533307827202020202020202020202020207C20272533307827207C00CDAB00006FC6B19F
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9f4e4
+ 4 <D64> 783033252527207c
+ 5 <D64> 2020202020202027
+ 6 <D64> 207c202020202020
+ 7 <D64> 7c20277830332527
+ 8 <D32> 0abcde00
+ 9 <D8> 00
+ 10 <D32> aaf414de
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E4E4F4F95D094C05007C2027252533307827202020202020202020202020207C20272533307827207C00DEBC0A00DE14F4AA
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9f4e4
+ 4 <D64> 783033252527207c
+ 5 <D64> 2020202020202027
+ 6 <D64> 207c202020202020
+ 7 <D64> 7c20277830332527
+ 8 <D32> abcdef00
+ 9 <D8> 00
+ 10 <D32> 2dd80e65
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E4E4F4F95D094C05007C2027252533307827202020202020202020202020207C20272533307827207C00EFCDAB00650ED82D
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9f4e4
+ 4 <D64> 30332d252527207c
+ 5 <D64> 2020202020202778
+ 6 <D64> 207c202020202020
+ 7 <D64> 20277830332d2527
+ 8 <D32> 000a007c
+ 9 <D16> 0000
+ 10 <D32> 63ff4215
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E4E4F4F95D094C05007C202725252D333078272020202020202020202020207C2027252D33307827207C000A0000001542FF63
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9f4e4
+ 4 <D64> 30332d252527207c
+ 5 <D64> 2020202020202778
+ 6 <D64> 207c202020202020
+ 7 <D64> 20277830332d2527
+ 8 <D32> 00ab007c
+ 9 <D16> 0000
+ 10 <D32> 3b3f3519
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E4E4F4F95D094C05007C202725252D333078272020202020202020202020207C2027252D33307827207C00AB00000019353F3B
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9f4e4
+ 4 <D64> 30332d252527207c
+ 5 <D64> 2020202020202778
+ 6 <D64> 207c202020202020
+ 7 <D64> 20277830332d2527
+ 8 <D32> 0abc007c
+ 9 <D16> 0000
+ 10 <D32> bc655026
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E4E4F4F95D094C05007C202725252D333078272020202020202020202020207C2027252D33307827207C00BC0A0000265065BC
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9f4e4
+ 4 <D64> 30332d252527207c
+ 5 <D64> 2020202020202778
+ 6 <D64> 207c202020202020
+ 7 <D64> 20277830332d2527
+ 8 <D32> abcd007c
+ 9 <D16> 0000
+ 10 <D32> 3be51ee6
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E4E4F4F95D094C05007C202725252D333078272020202020202020202020207C2027252D33307827207C00CDAB0000E61EE53B
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9f4e4
+ 4 <D64> 30332d252527207c
+ 5 <D64> 2020202020202778
+ 6 <D64> 207c202020202020
+ 7 <D64> 20277830332d2527
+ 8 <D32> bcde007c
+ 9 <D16> 000a
+ 10 <D32> 0ea0cc57
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E4E4F4F95D094C05007C202725252D333078272020202020202020202020207C2027252D33307827207C00DEBC0A0057CCA00E
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9f4e4
+ 4 <D64> 30332d252527207c
+ 5 <D64> 2020202020202778
+ 6 <D64> 207c202020202020
+ 7 <D64> 20277830332d2527
+ 8 <D32> cdef007c
+ 9 <D16> 00ab
+ 10 <D32> 898cd6ec
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E4E4F4F95D094C05007C202725252D333078272020202020202020202020207C2027252D33307827207C00EFCDAB00ECD68C89
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9f4e4
+ 4 <D64> 583033252527207c
+ 5 <D64> 2020202020202027
+ 6 <D64> 207c202020202020
+ 7 <D64> 7c20275830332527
+ 8 <D32> 00000a00
+ 9 <D8> 00
+ 10 <D32> 910c71e0
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E4E4F4F95D094C05007C2027252533305827202020202020202020202020207C20272533305827207C000A000000E0710C91
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9f4e4
+ 4 <D64> 583033252527207c
+ 5 <D64> 2020202020202027
+ 6 <D64> 207c202020202020
+ 7 <D64> 7c20275830332527
+ 8 <D32> 0000ab00
+ 9 <D8> 00
+ 10 <D32> c9cc06ec
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E4E4F4F95D094C05007C2027252533305827202020202020202020202020207C20272533305827207C00AB000000EC06CCC9
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9f8ce
+ 4 <D64> 583033252527207c
+ 5 <D64> 2020202020202027
+ 6 <D64> 207c202020202020
+ 7 <D64> 7c20275830332527
+ 8 <D32> 000abc00
+ 9 <D8> 00
+ 10 <D32> 8e2c4451
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E4CEF8F95D094C05007C2027252533305827202020202020202020202020207C20272533305827207C00BC0A000051442C8E
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9f8ce
+ 4 <D64> 583033252527207c
+ 5 <D64> 2020202020202027
+ 6 <D64> 207c202020202020
+ 7 <D64> 7c20275830332527
+ 8 <D32> 00abcd00
+ 9 <D8> 00
+ 10 <D32> 09ac0a91
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E4CEF8F95D094C05007C2027252533305827202020202020202020202020207C20272533305827207C00CDAB0000910AAC09
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9f8ce
+ 4 <D64> 583033252527207c
+ 5 <D64> 2020202020202027
+ 6 <D64> 207c202020202020
+ 7 <D64> 7c20275830332527
+ 8 <D32> 0abcde00
+ 9 <D8> 00
+ 10 <D32> 3ce9d820
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E4CEF8F95D094C05007C2027252533305827202020202020202020202020207C20272533305827207C00DEBC0A0020D8E93C
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9f8ce
+ 4 <D64> 583033252527207c
+ 5 <D64> 2020202020202027
+ 6 <D64> 207c202020202020
+ 7 <D64> 7c20275830332527
+ 8 <D32> abcdef00
+ 9 <D8> 00
+ 10 <D32> bbc5c29b
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E4CEF8F95D094C05007C2027252533305827202020202020202020202020207C20272533305827207C00EFCDAB009BC2C5BB
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9f8ce
+ 4 <D64> 30332d252527207c
+ 5 <D64> 2020202020202758
+ 6 <D64> 207c202020202020
+ 7 <D64> 20275830332d2527
+ 8 <D32> 000a007c
+ 9 <D16> 0000
+ 10 <D32> 565558c1
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E4CEF8F95D094C05007C202725252D333058272020202020202020202020207C2027252D33305827207C000A000000C1585556
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9f8ce
+ 4 <D64> 30332d252527207c
+ 5 <D64> 2020202020202758
+ 6 <D64> 207c202020202020
+ 7 <D64> 20275830332d2527
+ 8 <D32> 00ab007c
+ 9 <D16> 0000
+ 10 <D32> 0e952fcd
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E4CEF8F95D094C05007C202725252D333058272020202020202020202020207C2027252D33305827207C00AB000000CD2F950E
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9f8ce
+ 4 <D64> 30332d252527207c
+ 5 <D64> 2020202020202758
+ 6 <D64> 207c202020202020
+ 7 <D64> 20275830332d2527
+ 8 <D32> 0abc007c
+ 9 <D16> 0000
+ 10 <D32> 89cf4af2
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E4CEF8F95D094C05007C202725252D333058272020202020202020202020207C2027252D33305827207C00BC0A0000F24ACF89
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9f8ce
+ 4 <D64> 30332d252527207c
+ 5 <D64> 2020202020202758
+ 6 <D64> 207c202020202020
+ 7 <D64> 20275830332d2527
+ 8 <D32> abcd007c
+ 9 <D16> 0000
+ 10 <D32> 0e4f0432
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E4CEF8F95D094C05007C202725252D333058272020202020202020202020207C2027252D33305827207C00CDAB000032044F0E
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9f8ce
+ 4 <D64> 30332d252527207c
+ 5 <D64> 2020202020202758
+ 6 <D64> 207c202020202020
+ 7 <D64> 20275830332d2527
+ 8 <D32> bcde007c
+ 9 <D16> 000a
+ 10 <D32> 3b0ad683
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E4CEF8F95D094C05007C202725252D333058272020202020202020202020207C2027252D33305827207C00DEBC0A0083D60A3B
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9f8ce
+ 4 <D64> 30332d252527207c
+ 5 <D64> 2020202020202758
+ 6 <D64> 207c202020202020
+ 7 <D64> 20275830332d2527
+ 8 <D32> cdef007c
+ 9 <D16> 00ab
+ 10 <D32> bc26cc38
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E4CEF8F95D094C05007C202725252D333058272020202020202020202020207C2027252D33305827207C00EFCDAB0038CC26BC
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9f8ce
+ 4 <D64> 2d2d2d2d2d2d2d7c
+ 5 <D64> 2d2d2d2d2d2d2d2d
+ 6 <D64> 2d2d2d2d2d2d2d2d
+ 7 <D64> 2d2d2d2d2d2d2d2d
+ 8 <D64> 62756f642d2d2d2d
+ 9 <D64> 2d2d2d2d2d2d656c
+ 10 <D64> 2d2d2d2d2d2d2d2d
+ 11 <D16> 007c
+ 12 <D32> cb4dc8cc
+ 13 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E4CEF8F95D094C05007C2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D646F75626C652D2D2D2D2D2D2D2D2D2D2D2D2D2D7C00CCC84DCB
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9f8ce
+ 4 <D64> 2e3033252527207c
+ 5 <D64> 2020202020276631
+ 6 <D64> 207c202020202020
+ 7 <D64> 2766312e30332527
+ 8 <D64> fb54442eea007c20
+ 9 <D16> 0921
+ 10 <D8> 40
+ 11 <D32> 84e5e8dd
+ 12 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E4CEF8F95D094C05007C2027252533302E31662720202020202020202020207C20272533302E316627207C00EA2E4454FB210940DDE8E584
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9f8ce
+ 4 <D64> 2e3033252527207c
+ 5 <D64> 2020202020276632
+ 6 <D64> 207c202020202020
+ 7 <D64> 2766322e30332527
+ 8 <D64> fb54442eea007c20
+ 9 <D16> 0921
+ 10 <D8> 40
+ 11 <D32> 1aa7ad72
+ 12 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E4CEF8F95D094C05007C2027252533302E32662720202020202020202020207C20272533302E326627207C00EA2E4454FB21094072ADA71A
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9f8ce
+ 4 <D64> 2e3033252527207c
+ 5 <D64> 2020202020276633
+ 6 <D64> 207c202020202020
+ 7 <D64> 2766332e30332527
+ 8 <D64> fb54442eea007c20
+ 9 <D16> 0921
+ 10 <D8> 40
+ 11 <D32> 6f666e17
+ 12 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E4CEF8F95D094C05007C2027252533302E33662720202020202020202020207C20272533302E336627207C00EA2E4454FB210940176E666F
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9f8ce
+ 4 <D64> 2e3033252527207c
+ 5 <D64> 2020202020276634
+ 6 <D64> 207c202020202020
+ 7 <D64> 2766342e30332527
+ 8 <D64> fb54442eea007c20
+ 9 <D16> 0921
+ 10 <D8> 40
+ 11 <D32> 23cf50dd
+ 12 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E4CEF8F95D094C05007C2027252533302E34662720202020202020202020207C20272533302E346627207C00EA2E4454FB210940DD50CF23
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9fcb7
+ 4 <D64> 2e3033252527207c
+ 5 <D64> 2020202020276635
+ 6 <D64> 207c202020202020
+ 7 <D64> 2766352e30332527
+ 8 <D64> fb54442eea007c20
+ 9 <D16> 0921
+ 10 <D8> 40
+ 11 <D32> f37d4a82
+ 12 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E4B7FCF95D094C05007C2027252533302E35662720202020202020202020207C20272533302E356627207C00EA2E4454FB210940824A7DF3
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9fcb7
+ 4 <D64> 2e3033252527207c
+ 5 <D64> 2020202020276636
+ 6 <D64> 207c202020202020
+ 7 <D64> 2766362e30332527
+ 8 <D64> fb54442eea007c20
+ 9 <D16> 0921
+ 10 <D8> 40
+ 11 <D32> 6d3f0f2d
+ 12 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E4B7FCF95D094C05007C2027252533302E36662720202020202020202020207C20272533302E366627207C00EA2E4454FB2109402D0F3F6D
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9fcb7
+ 4 <D64> 2e3033252527207c
+ 5 <D64> 2020202020276637
+ 6 <D64> 207c202020202020
+ 7 <D64> 2766372e30332527
+ 8 <D64> fb54442eea007c20
+ 9 <D16> 0921
+ 10 <D8> 40
+ 11 <D32> 18fecc48
+ 12 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E4B7FCF95D094C05007C2027252533302E37662720202020202020202020207C20272533302E376627207C00EA2E4454FB21094048CCFE18
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9fcb7
+ 4 <D64> 2e3033252527207c
+ 5 <D64> 2020202020276638
+ 6 <D64> 207c202020202020
+ 7 <D64> 2766382e30332527
+ 8 <D64> fb54442eea007c20
+ 9 <D16> 0921
+ 10 <D8> 40
+ 11 <D32> f46d72b9
+ 12 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E4B7FCF95D094C05007C2027252533302E38662720202020202020202020207C20272533302E386627207C00EA2E4454FB210940B9726DF4
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9fcb7
+ 4 <D64> 2e3033252527207c
+ 5 <D64> 2020202020276639
+ 6 <D64> 207c202020202020
+ 7 <D64> 2766392e30332527
+ 8 <D64> fb54442eea007c20
+ 9 <D16> 0921
+ 10 <D8> 40
+ 11 <D32> 81acb1dc
+ 12 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E4B7FCF95D094C05007C2027252533302E39662720202020202020202020207C20272533302E396627207C00EA2E4454FB210940DCB1AC81
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9fcb7
+ 4 <D64> 2e3033252527207c
+ 5 <D64> 2020202027663031
+ 6 <D64> 207c202020202020
+ 7 <D64> 6630312e30332527
+ 8 <D64> 54442eea007c2027
+ 9 <D32> 400921fb
+ 10 <D32> e139fa42
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E4B7FCF95D094C05007C2027252533302E31306627202020202020202020207C20272533302E31306627207C00EA2E4454FB21094042FA39E1
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9fcb7
+ 4 <D64> 30332d252527207c
+ 5 <D64> 202020202766312e
+ 6 <D64> 207c202020202020
+ 7 <D64> 66312e30332d2527
+ 8 <D64> 54442eea007c2027
+ 9 <D32> 400921fb
+ 10 <D32> 1ff09576
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E4B7FCF95D094C05007C202725252D33302E316627202020202020202020207C2027252D33302E316627207C00EA2E4454FB2109407695F01F
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9fcb7
+ 4 <D64> 30332d252527207c
+ 5 <D64> 202020202766322e
+ 6 <D64> 207c202020202020
+ 7 <D64> 66322e30332d2527
+ 8 <D64> 54442eea007c2027
+ 9 <D32> 400921fb
+ 10 <D32> 81b2d0d9
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E4B7FCF95D094C05007C202725252D33302E326627202020202020202020207C2027252D33302E326627207C00EA2E4454FB210940D9D0B281
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9fcb7
+ 4 <D64> 30332d252527207c
+ 5 <D64> 202020202766332e
+ 6 <D64> 207c202020202020
+ 7 <D64> 66332e30332d2527
+ 8 <D64> 54442eea007c2027
+ 9 <D32> 400921fb
+ 10 <D32> f47313bc
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E4B7FCF95D094C05007C202725252D33302E336627202020202020202020207C2027252D33302E336627207C00EA2E4454FB210940BC1373F4
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9fcb7
+ 4 <D64> 30332d252527207c
+ 5 <D64> 202020202766342e
+ 6 <D64> 207c202020202020
+ 7 <D64> 66342e30332d2527
+ 8 <D64> 54442eea007c2027
+ 9 <D32> 400921fb
+ 10 <D32> b8da2d76
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E4B7FCF95D094C05007C202725252D33302E346627202020202020202020207C2027252D33302E346627207C00EA2E4454FB210940762DDAB8
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9fcb7
+ 4 <D64> 30332d252527207c
+ 5 <D64> 202020202766352e
+ 6 <D64> 207c202020202020
+ 7 <D64> 66352e30332d2527
+ 8 <D64> 54442eea007c2027
+ 9 <D32> 400921fb
+ 10 <D32> cd1bee13
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E4B7FCF95D094C05007C202725252D33302E356627202020202020202020207C2027252D33302E356627207C00EA2E4454FB21094013EE1BCD
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9fcb7
+ 4 <D64> 30332d252527207c
+ 5 <D64> 202020202766362e
+ 6 <D64> 207c202020202020
+ 7 <D64> 66362e30332d2527
+ 8 <D64> 54442eea007c2027
+ 9 <D32> 400921fb
+ 10 <D32> 5359abbc
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E4B7FCF95D094C05007C202725252D33302E366627202020202020202020207C2027252D33302E366627207C00EA2E4454FB210940BCAB5953
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9fcb7
+ 4 <D64> 30332d252527207c
+ 5 <D64> 202020202766372e
+ 6 <D64> 207c202020202020
+ 7 <D64> 66372e30332d2527
+ 8 <D64> 54442eea007c2027
+ 9 <D32> 400921fb
+ 10 <D32> 269868d9
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E4B7FCF95D094C05007C202725252D33302E376627202020202020202020207C2027252D33302E376627207C00EA2E4454FB210940D9689826
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9fcb7
+ 4 <D64> 30332d252527207c
+ 5 <D64> 202020202766382e
+ 6 <D64> 207c202020202020
+ 7 <D64> 66382e30332d2527
+ 8 <D64> 54442eea007c2027
+ 9 <D32> 400921fb
+ 10 <D32> ca0bd628
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E4B7FCF95D094C05007C202725252D33302E386627202020202020202020207C2027252D33302E386627207C00EA2E4454FB21094028D60BCA
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9fcb7
+ 4 <D64> 30332d252527207c
+ 5 <D64> 202020202766392e
+ 6 <D64> 207c202020202020
+ 7 <D64> 66392e30332d2527
+ 8 <D64> 54442eea007c2027
+ 9 <D32> 400921fb
+ 10 <D32> bfca154d
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E4B7FCF95D094C05007C202725252D33302E396627202020202020202020207C2027252D33302E396627207C00EA2E4454FB2109404D15CABF
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095df9fcb7
+ 4 <D64> 30332d252527207c
+ 5 <D64> 202020276630312e
+ 6 <D64> 207c202020202020
+ 7 <D64> 30312e30332d2527
+ 8 <D64> 442eea007c202766
+ 9 <D32> 0921fb54
+ 10 <D8> 40
+ 11 <D32> 81c4e3f2
+ 12 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E4B7FCF95D094C05007C202725252D33302E313066272020202020202020207C2027252D33302E31306627207C00EA2E4454FB210940F2E3C481
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa009e
+ 4 <D64> 2d2d2d2d2d2d2d7c
+ 5 <D64> 2d2d2d2d2d2d2d2d
+ 6 <D64> 2d2d2d2d2d2d2d2d
+ 7 <D64> 2d2d2d2d2d2d2d2d
+ 8 <D64> 656963732d2d2d2d
+ 9 <D64> 2d2d63696669746e
+ 10 <D64> 2d2d2d2d2d2d2d2d
+ 11 <D16> 007c
+ 12 <D32> 1195e178
+ 13 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E49E00FA5D094C05007C2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D736369656E74696669632D2D2D2D2D2D2D2D2D2D7C0078E19511
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa009e
+ 4 <D64> 2e3033252527207c
+ 5 <D64> 2020202020276531
+ 6 <D64> 207c202020202020
+ 7 <D64> 2765312e30332527
+ 8 <D64> 0000000000007c20
+ 9 <D16> f800
+ 10 <D8> 3f
+ 11 <D32> 33201ed1
+ 12 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E49E00FA5D094C05007C2027252533302E31652720202020202020202020207C20272533302E316527207C00000000000000F83FD11E2033
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa009e
+ 4 <D64> 2e3033252527207c
+ 5 <D64> 2020202020276532
+ 6 <D64> 207c202020202020
+ 7 <D64> 2765322e30332527
+ 8 <D64> 0000000000007c20
+ 9 <D16> 2500
+ 10 <D8> 40
+ 11 <D32> 79c4c438
+ 12 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E49E00FA5D094C05007C2027252533302E32652720202020202020202020207C20272533302E326527207C00000000000000254038C4C479
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa009e
+ 4 <D64> 2e3033252527207c
+ 5 <D64> 2020202020276533
+ 6 <D64> 207c202020202020
+ 7 <D64> 2765332e30332527
+ 8 <D64> 0000000000007c20
+ 9 <D16> 2500
+ 10 <D8> 40
+ 11 <D32> 0c05075d
+ 12 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E49E00FA5D094C05007C2027252533302E33652720202020202020202020207C20272533302E336527207C0000000000000025405D07050C
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa009e
+ 4 <D64> 2e3033252527207c
+ 5 <D64> 2020202020276534
+ 6 <D64> 207c202020202020
+ 7 <D64> 2765342e30332527
+ 8 <D64> 0000000000007c20
+ 9 <D16> 5920
+ 10 <D8> 40
+ 11 <D32> cd2fb460
+ 12 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E49E00FA5D094C05007C2027252533302E34652720202020202020202020207C20272533302E346527207C00000000000020594060B42FCD
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa009e
+ 4 <D64> 2e3033252527207c
+ 5 <D64> 2020202020276535
+ 6 <D64> 207c202020202020
+ 7 <D64> 2765352e30332527
+ 8 <D64> 0000000000007c20
+ 9 <D16> 8f44
+ 10 <D8> 40
+ 11 <D32> 52cf349c
+ 12 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E49E00FA5D094C05007C2027252533302E35652720202020202020202020207C20272533302E356527207C000000000000448F409C34CF52
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa009e
+ 4 <D64> 2e3033252527207c
+ 5 <D64> 2020202020276536
+ 6 <D64> 207c202020202020
+ 7 <D64> 2765362e30332527
+ 8 <D64> 4000000000007c20
+ 9 <D16> c388
+ 10 <D8> 40
+ 11 <D32> a16f27f1
+ 12 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E49E00FA5D094C05007C2027252533302E36652720202020202020202020207C20272533302E366527207C00000000004088C340F1276FA1
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa009e
+ 4 <D64> 2e3033252527207c
+ 5 <D64> 2020202020276537
+ 6 <D64> 207c202020202020
+ 7 <D64> 2765372e30332527
+ 8 <D64> 4000000000007c20
+ 9 <D16> c388
+ 10 <D8> 40
+ 11 <D32> d4aee494
+ 12 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E49E00FA5D094C05007C2027252533302E37652720202020202020202020207C20272533302E376527207C00000000004088C34094E4AED4
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa009e
+ 4 <D64> 2e3033252527207c
+ 5 <D64> 2020202020276538
+ 6 <D64> 207c202020202020
+ 7 <D64> 2765382e30332527
+ 8 <D64> 4000000000007c20
+ 9 <D16> c388
+ 10 <D8> 40
+ 11 <D32> 383d5a65
+ 12 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E49E00FA5D094C05007C2027252533302E38652720202020202020202020207C20272533302E386527207C00000000004088C340655A3D38
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa009e
+ 4 <D64> 2e3033252527207c
+ 5 <D64> 2020202020276539
+ 6 <D64> 207c202020202020
+ 7 <D64> 2765392e30332527
+ 8 <D64> 0800000000007c20
+ 9 <D16> f86a
+ 10 <D8> 40
+ 11 <D32> 1bca8220
+ 12 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E49E00FA5D094C05007C2027252533302E39652720202020202020202020207C20272533302E396527207C0000000000086AF8402082CA1B
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa009e
+ 4 <D64> 2e3033252527207c
+ 5 <D64> 2020202027653031
+ 6 <D64> 207c202020202020
+ 7 <D64> 6530312e30332527
+ 8 <D64> 00000000007c2027
+ 9 <D32> 412e8481
+ 10 <D32> 2dc3c0c4
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E49E00FA5D094C05007C2027252533302E31306527202020202020202020207C20272533302E31306527207C000000000081842E41C4C0C32D
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa009e
+ 4 <D64> 30332d252527207c
+ 5 <D64> 202020202765312e
+ 6 <D64> 207c202020202020
+ 7 <D64> 65312e30332d2527
+ 8 <D64> 00000000007c2027
+ 9 <D32> 3ff80000
+ 10 <D32> c628684a
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E49E00FA5D094C05007C202725252D33302E316527202020202020202020207C2027252D33302E316527207C00000000000000F83F4A6828C6
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa009e
+ 4 <D64> 30332d252527207c
+ 5 <D64> 202020202765322e
+ 6 <D64> 207c202020202020
+ 7 <D64> 65322e30332d2527
+ 8 <D64> 00000000007c2027
+ 9 <D32> 40250000
+ 10 <D32> 8cccb2a3
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E49E00FA5D094C05007C202725252D33302E326527202020202020202020207C2027252D33302E326527207C000000000000002540A3B2CC8C
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa009e
+ 4 <D64> 30332d252527207c
+ 5 <D64> 202020202765332e
+ 6 <D64> 207c202020202020
+ 7 <D64> 65332e30332d2527
+ 8 <D64> 00000000007c2027
+ 9 <D32> 40250000
+ 10 <D32> f90d71c6
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E49E00FA5D094C05007C202725252D33302E336527202020202020202020207C2027252D33302E336527207C000000000000002540C6710DF9
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa009e
+ 4 <D64> 30332d252527207c
+ 5 <D64> 202020202765342e
+ 6 <D64> 207c202020202020
+ 7 <D64> 65342e30332d2527
+ 8 <D64> 00000000007c2027
+ 9 <D32> 40592000
+ 10 <D32> 3827c2fb
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E49E00FA5D094C05007C202725252D33302E346527202020202020202020207C2027252D33302E346527207C000000000000205940FBC22738
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0488
+ 4 <D64> 30332d252527207c
+ 5 <D64> 202020202765352e
+ 6 <D64> 207c202020202020
+ 7 <D64> 65352e30332d2527
+ 8 <D64> 00000000007c2027
+ 9 <D32> 408f4400
+ 10 <D32> f661183a
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E48804FA5D094C05007C202725252D33302E356527202020202020202020207C2027252D33302E356527207C000000000000448F403A1861F6
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0488
+ 4 <D64> 30332d252527207c
+ 5 <D64> 202020202765362e
+ 6 <D64> 207c202020202020
+ 7 <D64> 65362e30332d2527
+ 8 <D64> 00000000007c2027
+ 9 <D32> 40c38840
+ 10 <D32> 05c10b57
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E48804FA5D094C05007C202725252D33302E366527202020202020202020207C2027252D33302E366527207C00000000004088C340570BC105
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0488
+ 4 <D64> 30332d252527207c
+ 5 <D64> 202020202765372e
+ 6 <D64> 207c202020202020
+ 7 <D64> 65372e30332d2527
+ 8 <D64> 00000000007c2027
+ 9 <D32> 40c38840
+ 10 <D32> 7000c832
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E48804FA5D094C05007C202725252D33302E376527202020202020202020207C2027252D33302E376527207C00000000004088C34032C80070
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0488
+ 4 <D64> 30332d252527207c
+ 5 <D64> 202020202765382e
+ 6 <D64> 207c202020202020
+ 7 <D64> 65382e30332d2527
+ 8 <D64> 00000000007c2027
+ 9 <D32> 40c38840
+ 10 <D32> 9c9376c3
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E48804FA5D094C05007C202725252D33302E386527202020202020202020207C2027252D33302E386527207C00000000004088C340C376939C
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0488
+ 4 <D64> 30332d252527207c
+ 5 <D64> 202020202765392e
+ 6 <D64> 207c202020202020
+ 7 <D64> 65392e30332d2527
+ 8 <D64> 00000000007c2027
+ 9 <D32> 40f86a08
+ 10 <D32> bf64ae86
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E48804FA5D094C05007C202725252D33302E396527202020202020202020207C2027252D33302E396527207C0000000000086AF84086AE64BF
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0488
+ 4 <D64> 30332d252527207c
+ 5 <D64> 202020276530312e
+ 6 <D64> 207c202020202020
+ 7 <D64> 30312e30332d2527
+ 8 <D64> 000000007c202765
+ 9 <D32> 2e848100
+ 10 <D8> 41
+ 11 <D32> a98d3ca6
+ 12 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E48804FA5D094C05007C202725252D33302E313065272020202020202020207C2027252D33302E31306527207C000000000081842E41A63C8DA9
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0488
+ 4 <D64> 2d2d2d2d2d2d2d7c
+ 5 <D64> 2d2d2d2d2d2d2d2d
+ 6 <D64> 2d2d2d2d2d2d2d2d
+ 7 <D64> 2d2d2d2d2d2d2d2d
+ 8 <D64> 746f78652d2d2d2d
+ 9 <D64> 2d2d2d2d2d736369
+ 10 <D64> 2d2d2d2d2d2d2d2d
+ 11 <D16> 007c
+ 12 <D32> 500b5c6f
+ 13 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E48804FA5D094C05007C2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D65786F746963732D2D2D2D2D2D2D2D2D2D2D2D2D7C006F5C0B50
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0488
+ 4 <D64> 303330252527207c
+ 5 <D64> 2020202027756868
+ 6 <D64> 207c202020202020
+ 7 <D64> 7568683033302527
+ 8 <D64> 000000ff007c2027
+ 9 <D32> 5d597e88
+ 10 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E48804FA5D094C05007C2027252530333068687527202020202020202020207C20272530333068687527207C00FF000000887E595D
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0488
+ 4 <D64> 303330252527207c
+ 5 <D64> 2020202020277568
+ 6 <D64> 207c202020202020
+ 7 <D64> 2775683033302527
+ 8 <D32> ff007c20
+ 9 <D16> ffff
+ 10 <D8> ff
+ 11 <D32> 013ac5e9
+ 12 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E48804FA5D094C05007C2027252530333068752720202020202020202020207C202725303330687527207C00FFFFFFFFE9C53A01
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0488
+ 4 <D64> 303330252527207c
+ 5 <D64> 202020202027756c
+ 6 <D64> 207c202020202020
+ 7 <D64> 27756c3033302527
+ 8 <D64> ffffffffff007c20
+ 9 <D16> ffff
+ 10 <D8> ff
+ 11 <D32> 579f6cbf
+ 12 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E48804FA5D094C05007C202725253033306C752720202020202020202020207C2027253033306C7527207C00FFFFFFFFFFFFFFFFBF6C9F57
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0488
+ 4 <D64> 303330252527207c
+ 5 <D64> 2020202027756c6c
+ 6 <D64> 207c202020202020
+ 7 <D64> 756c6c3033302527
+ 8 <D64> ffffffff007c2027
+ 9 <D32> ffffffff
+ 10 <D32> aedd0b49
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E48804FA5D094C05007C202725253033306C6C7527202020202020202020207C2027253033306C6C7527207C00FFFFFFFFFFFFFFFF490BDDAE
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0488
+ 4 <D64> 303330252527207c
+ 5 <D64> 20202020276f6868
+ 6 <D64> 207c202020202020
+ 7 <D64> 6f68683033302527
+ 8 <D64> 000000ff007c2027
+ 9 <D32> a544299a
+ 10 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E48804FA5D094C05007C2027252530333068686F27202020202020202020207C20272530333068686F27207C00FF0000009A2944A5
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0488
+ 4 <D64> 303330252527207c
+ 5 <D64> 2020202020276f68
+ 6 <D64> 207c202020202020
+ 7 <D64> 276f683033302527
+ 8 <D32> ff007c20
+ 9 <D16> ffff
+ 10 <D8> ff
+ 11 <D32> f92792fb
+ 12 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E48804FA5D094C05007C20272525303330686F2720202020202020202020207C202725303330686F27207C00FFFFFFFFFB9227F9
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0862
+ 4 <D64> 303330252527207c
+ 5 <D64> 2020202020276f6c
+ 6 <D64> 207c202020202020
+ 7 <D64> 276f6c3033302527
+ 8 <D64> ffffffffff007c20
+ 9 <D16> ffff
+ 10 <D8> ff
+ 11 <D32> d2338c11
+ 12 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E46208FA5D094C05007C202725253033306C6F2720202020202020202020207C2027253033306C6F27207C00FFFFFFFFFFFFFFFF118C33D2
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0862
+ 4 <D64> 303330252527207c
+ 5 <D64> 20202020276f6c6c
+ 6 <D64> 207c202020202020
+ 7 <D64> 6f6c6c3033302527
+ 8 <D64> ffffffff007c2027
+ 9 <D32> ffffffff
+ 10 <D32> bd312af0
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E46208FA5D094C05007C202725253033306C6C6F27202020202020202020207C2027253033306C6C6F27207C00FFFFFFFFFFFFFFFFF02A31BD
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0862
+ 4 <D64> 303330252527207c
+ 5 <D64> 2020202027786868
+ 6 <D64> 207c202020202020
+ 7 <D64> 7868683033302527
+ 8 <D64> 000000ff007c2027
+ 9 <D32> 0d488240
+ 10 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E46208FA5D094C05007C2027252530333068687827202020202020202020207C20272530333068687827207C00FF0000004082480D
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0862
+ 4 <D64> 303330252527207c
+ 5 <D64> 2020202020277868
+ 6 <D64> 207c202020202020
+ 7 <D64> 2778683033302527
+ 8 <D32> ff007c20
+ 9 <D16> ffff
+ 10 <D8> ff
+ 11 <D32> e73f9d0c
+ 12 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E46208FA5D094C05007C2027252530333068782720202020202020202020207C202725303330687827207C00FFFFFFFF0C9D3FE7
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0862
+ 4 <D64> 303330252527207c
+ 5 <D64> 202020202027786c
+ 6 <D64> 207c202020202020
+ 7 <D64> 27786c3033302527
+ 8 <D64> ffffffffff007c20
+ 9 <D16> ffff
+ 10 <D8> ff
+ 11 <D32> c8f40068
+ 12 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E46208FA5D094C05007C202725253033306C782720202020202020202020207C2027253033306C7827207C00FFFFFFFFFFFFFFFF6800F4C8
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0862
+ 4 <D64> 303330252527207c
+ 5 <D64> 2020202027786c6c
+ 6 <D64> 207c202020202020
+ 7 <D64> 786c6c3033302527
+ 8 <D64> ffffffff007c2027
+ 9 <D32> ffffffff
+ 10 <D32> a7f6a689
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E46208FA5D094C05007C202725253033306C6C7827202020202020202020207C2027253033306C6C7827207C00FFFFFFFFFFFFFFFF89A6F6A7
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0862
+ 4 <D64> 30332d252527207c
+ 5 <D64> 2020202027756868
+ 6 <D64> 207c202020202020
+ 7 <D64> 75686830332d2527
+ 8 <D64> 000000ff007c2027
+ 9 <D32> 33cf6775
+ 10 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E46208FA5D094C05007C202725252D333068687527202020202020202020207C2027252D333068687527207C00FF0000007567CF33
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0862
+ 4 <D64> 30332d252527207c
+ 5 <D64> 2020202020277568
+ 6 <D64> 207c202020202020
+ 7 <D64> 27756830332d2527
+ 8 <D32> ff007c20
+ 9 <D16> ffff
+ 10 <D8> ff
+ 11 <D32> 6756add6
+ 12 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E46208FA5D094C05007C202725252D333068752720202020202020202020207C2027252D3330687527207C00FFFFFFFFD6AD5667
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0862
+ 4 <D64> 332d23252527207c
+ 5 <D64> 2020202027756c30
+ 6 <D64> 207c202020202020
+ 7 <D64> 756c30332d232527
+ 8 <D64> ffffffff007c2027
+ 9 <D32> ffffffff
+ 10 <D32> a5c7c083
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E46208FA5D094C05007C20272525232D33306C7527202020202020202020207C202725232D33306C7527207C00FFFFFFFFFFFFFFFF83C0C7A5
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0862
+ 4 <D64> 332d23252527207c
+ 5 <D64> 20202027756c6c30
+ 6 <D64> 207c202020202020
+ 7 <D64> 6c6c30332d232527
+ 8 <D64> ffffff007c202775
+ 9 <D32> ffffffff
+ 10 <D8> ff
+ 11 <D32> d38fd584
+ 12 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E46208FA5D094C05007C20272525232D33306C6C75272020202020202020207C202725232D33306C6C7527207C00FFFFFFFFFFFFFFFF84D58FD3
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0862
+ 4 <D64> 332d23252527207c
+ 5 <D64> 202020276f686830
+ 6 <D64> 207c202020202020
+ 7 <D64> 686830332d232527
+ 8 <D64> 0000ff007c20276f
+ 9 <D8> 00
+ 10 <D32> 6fa5b8ab
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E46208FA5D094C05007C20272525232D333068686F272020202020202020207C202725232D333068686F27207C00FF000000ABB8A56F
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0862
+ 4 <D64> 332d23252527207c
+ 5 <D64> 20202020276f6830
+ 6 <D64> 207c202020202020
+ 7 <D64> 6f6830332d232527
+ 8 <D64> ffffffff007c2027
+ 9 <D32> bf1fa642
+ 10 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E46208FA5D094C05007C20272525232D3330686F27202020202020202020207C202725232D3330686F27207C00FFFFFFFF42A61FBF
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0862
+ 4 <D64> 332d23252527207c
+ 5 <D64> 20202020276f6c30
+ 6 <D64> 207c202020202020
+ 7 <D64> 6f6c30332d232527
+ 8 <D64> ffffffff007c2027
+ 9 <D32> ffffffff
+ 10 <D32> b6bd372d
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E46208FA5D094C05007C20272525232D33306C6F27202020202020202020207C202725232D33306C6F27207C00FFFFFFFFFFFFFFFF2D37BDB6
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0862
+ 4 <D64> 332d23252527207c
+ 5 <D64> 202020276f6c6c30
+ 6 <D64> 207c202020202020
+ 7 <D64> 6c6c30332d232527
+ 8 <D64> ffffff007c20276f
+ 9 <D32> ffffffff
+ 10 <D8> ff
+ 11 <D32> c0f5222a
+ 12 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E46208FA5D094C05007C20272525232D33306C6C6F272020202020202020207C202725232D33306C6C6F27207C00FFFFFFFFFFFFFFFF2A22F5C0
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0862
+ 4 <D64> 332d23252527207c
+ 5 <D64> 2020202778686830
+ 6 <D64> 207c202020202020
+ 7 <D64> 686830332d232527
+ 8 <D64> 0000ff007c202778
+ 9 <D8> 00
+ 10 <D32> ebb64430
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E46208FA5D094C05007C20272525232D3330686878272020202020202020207C202725232D333068687827207C00FF0000003044B6EB
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0862
+ 4 <D64> 332d23252527207c
+ 5 <D64> 2020202027786830
+ 6 <D64> 207c202020202020
+ 7 <D64> 786830332d232527
+ 8 <D64> ffffffff007c2027
+ 9 <D32> 3b0c5ad9
+ 10 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E46208FA5D094C05007C20272525232D3330687827202020202020202020207C202725232D3330687827207C00FFFFFFFFD95A0C3B
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0c4b
+ 4 <D64> 332d23252527207c
+ 5 <D64> 2020202027786c30
+ 6 <D64> 207c202020202020
+ 7 <D64> 786c30332d232527
+ 8 <D64> ffffffff007c2027
+ 9 <D32> ffffffff
+ 10 <D32> 19368c17
+ 11 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E44B0CFA5D094C05007C20272525232D33306C7827202020202020202020207C202725232D33306C7827207C00FFFFFFFFFFFFFFFF178C3619
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c42
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0c4b
+ 4 <D64> 332d23252527207c
+ 5 <D64> 20202027786c6c30
+ 6 <D64> 207c202020202020
+ 7 <D64> 6c6c30332d232527
+ 8 <D64> ffffff007c202778
+ 9 <D32> ffffffff
+ 10 <D8> ff
+ 11 <D32> 88ac0c2c
+ 12 <FLAG>
+SYS-T RAW DATA: 421C800C494E54438A9C4014A65A2F36A36D96E44B0CFA5D094C05007C20272525232D33306C6C78272020202020202020207C202725232D33306C6C7827207C00FFFFFFFFFFFFFFFF2C0CAC88
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c72
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0c4b
+ 4 <D64> 2d2d2d2d2d2d2d7c
+ 5 <D64> 2d2d2d2d2d2d2d2d
+ 6 <D64> 2d2d2d2d2d2d2d2d
+ 7 <D64> 2d2d2d2d2d2d2d2d
+ 8 <D64> 2d2d2d2d2d2d2d2d
+ 9 <D64> 2d2d2d2d2d2d2d2d
+ 10 <D64> 2d2d2d2d2d2d2d2d
+ 11 <D16> 007c
+ 12 <D32> d78ed41c
+ 13 <FLAG>
+SYS-T RAW DATA: 721C800C494E54438A9C4014A65A2F36A36D96E44B0CFA5D094C05007C2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D7C001CD48ED7
+
+STP Protocol Output:
+ 0 <D32TS> 05801c73
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0c4b
+ 4 <D64> 0000000ed44fd581
+ 5 <D32> 00000e00
+ 6 <D16> 0000
+ 7 <D32> cc5f9618
+ 8 <FLAG>
+SYS-T RAW DATA: 731C8005494E54438A9C4014A65A2F36A36D96E44B0CFA5D094C050081D54FD40E000000000E0000000018965FCC
+
+STP Protocol Output:
+ 0 <D32TS> 05801c73
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0c4b
+ 4 <D64> 0000000cd44fd581
+ 5 <D32> 00001000
+ 6 <D16> 0000
+ 7 <D32> 853d1c09
+ 8 <FLAG>
+SYS-T RAW DATA: 731C8005494E54438A9C4014A65A2F36A36D96E44B0CFA5D094C050081D54FD40C000000001000000000091C3D85
+
+STP Protocol Output:
+ 0 <D32TS> 05801c73
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0c4b
+ 4 <D64> 00000009d44fd581
+ 5 <D32> 00001300
+ 6 <D16> 0000
+ 7 <D32> 2535a2df
+ 8 <FLAG>
+SYS-T RAW DATA: 731C8005494E54438A9C4014A65A2F36A36D96E44B0CFA5D094C050081D54FD409000000001300000000DFA23525
+
+STP Protocol Output:
+ 0 <D32TS> 05801c73
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0c4b
+ 4 <D64> 00000006d44fd581
+ 5 <D32> 00001600
+ 6 <D16> 0000
+ 7 <D32> c0c01754
+ 8 <FLAG>
+SYS-T RAW DATA: 731C8005494E54438A9C4014A65A2F36A36D96E44B0CFA5D094C050081D54FD4060000000016000000005417C0C0
+
+STP Protocol Output:
+ 0 <D32TS> 05801c73
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0c4b
+ 4 <D64> 00000004d44fd581
+ 5 <D32> 00001800
+ 6 <D16> 0000
+ 7 <D32> 0680fc96
+ 8 <FLAG>
+SYS-T RAW DATA: 731C8005494E54438A9C4014A65A2F36A36D96E44B0CFA5D094C050081D54FD40400000000180000000096FC8006
+
+STP Protocol Output:
+ 0 <D32TS> 05801c73
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0c4b
+ 4 <D64> 00000002d44fd581
+ 5 <D32> 00001a00
+ 6 <D16> 0000
+ 7 <D32> c68fd7f2
+ 8 <FLAG>
+SYS-T RAW DATA: 731C8005494E54438A9C4014A65A2F36A36D96E44B0CFA5D094C050081D54FD402000000001A00000000F2D78FC6
+
+STP Protocol Output:
+ 0 <D32TS> 05801c73
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0c4b
+ 4 <D64> 00000001d44fd581
+ 5 <D32> 00001b00
+ 6 <D16> 0000
+ 7 <D32> a6884240
+ 8 <FLAG>
+SYS-T RAW DATA: 731C8005494E54438A9C4014A65A2F36A36D96E44B0CFA5D094C050081D54FD401000000001B00000000404288A6
+
+STP Protocol Output:
+ 0 <D32TS> 05801c73
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0c4b
+ 4 <D64> 00000001d44fd581
+ 5 <D32> 00001b00
+ 6 <D16> 0000
+ 7 <D32> a6884240
+ 8 <FLAG>
+SYS-T RAW DATA: 731C8005494E54438A9C4014A65A2F36A36D96E44B0CFA5D094C050081D54FD401000000001B00000000404288A6
+
+STP Protocol Output:
+ 0 <D32TS> 05801c73
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0c4b
+ 4 <D64> 00000001d44fd581
+ 5 <D32> 00001b00
+ 6 <D16> 0000
+ 7 <D32> a6884240
+ 8 <FLAG>
+SYS-T RAW DATA: 731C8005494E54438A9C4014A65A2F36A36D96E44B0CFA5D094C050081D54FD401000000001B00000000404288A6
+
+STP Protocol Output:
+ 0 <D32TS> 05801c73
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0c4b
+ 4 <D64> 00000001d44fd581
+ 5 <D32> 00001b00
+ 6 <D16> 0000
+ 7 <D32> a6884240
+ 8 <FLAG>
+SYS-T RAW DATA: 731C8005494E54438A9C4014A65A2F36A36D96E44B0CFA5D094C050081D54FD401000000001B00000000404288A6
+
+STP Protocol Output:
+ 0 <D32TS> 05801c73
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0c4b
+ 4 <D64> 00000002d44fd581
+ 5 <D32> 00001a00
+ 6 <D16> 0000
+ 7 <D32> c68fd7f2
+ 8 <FLAG>
+SYS-T RAW DATA: 731C8005494E54438A9C4014A65A2F36A36D96E44B0CFA5D094C050081D54FD402000000001A00000000F2D78FC6
+
+STP Protocol Output:
+ 0 <D32TS> 05801c73
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0c4b
+ 4 <D64> 00000004d44fd581
+ 5 <D32> 00001800
+ 6 <D16> 0000
+ 7 <D32> 0680fc96
+ 8 <FLAG>
+SYS-T RAW DATA: 731C8005494E54438A9C4014A65A2F36A36D96E44B0CFA5D094C050081D54FD40400000000180000000096FC8006
+
+STP Protocol Output:
+ 0 <D32TS> 05801c73
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0c4b
+ 4 <D64> 00000006d44fd581
+ 5 <D32> 00001600
+ 6 <D16> 0000
+ 7 <D32> c0c01754
+ 8 <FLAG>
+SYS-T RAW DATA: 731C8005494E54438A9C4014A65A2F36A36D96E44B0CFA5D094C050081D54FD4060000000016000000005417C0C0
+
+STP Protocol Output:
+ 0 <D32TS> 05801c73
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0c4b
+ 4 <D64> 00000009d44fd581
+ 5 <D32> 00001300
+ 6 <D16> 0000
+ 7 <D32> 2535a2df
+ 8 <FLAG>
+SYS-T RAW DATA: 731C8005494E54438A9C4014A65A2F36A36D96E44B0CFA5D094C050081D54FD409000000001300000000DFA23525
+
+STP Protocol Output:
+ 0 <D32TS> 05801c73
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0c4b
+ 4 <D64> 0000000cd44fd581
+ 5 <D32> 00001000
+ 6 <D16> 0000
+ 7 <D32> 853d1c09
+ 8 <FLAG>
+SYS-T RAW DATA: 731C8005494E54438A9C4014A65A2F36A36D96E44B0CFA5D094C050081D54FD40C000000001000000000091C3D85
+
+STP Protocol Output:
+ 0 <D32TS> 05801c73
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0c4b
+ 4 <D64> 0000000ed44fd581
+ 5 <D32> 00000e00
+ 6 <D16> 0000
+ 7 <D32> cc5f9618
+ 8 <FLAG>
+SYS-T RAW DATA: 731C8005494E54438A9C4014A65A2F36A36D96E44B0CFA5D094C050081D54FD40E000000000E0000000018965FCC
+
+STP Protocol Output:
+ 0 <D32TS> 05801c73
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0c4b
+ 4 <D64> 00000010d44fd581
+ 5 <D32> 00000c00
+ 6 <D16> 0000
+ 7 <D32> c73f806e
+ 8 <FLAG>
+SYS-T RAW DATA: 731C8005494E54438A9C4014A65A2F36A36D96E44B0CFA5D094C050081D54FD410000000000C000000006E803FC7
+
+STP Protocol Output:
+ 0 <D32TS> 05801c73
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0c4b
+ 4 <D64> 00000013d44fd581
+ 5 <D32> 00000900
+ 6 <D16> 0000
+ 7 <D32> 477dab6c
+ 8 <FLAG>
+SYS-T RAW DATA: 731C8005494E54438A9C4014A65A2F36A36D96E44B0CFA5D094C050081D54FD4130000000009000000006CAB7D47
+
+STP Protocol Output:
+ 0 <D32TS> 05801c73
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa0c4b
+ 4 <D64> 00000016d44fd581
+ 5 <D32> 00000600
+ 6 <D16> 0000
+ 7 <D32> c257a09b
+ 8 <FLAG>
+SYS-T RAW DATA: 731C8005494E54438A9C4014A65A2F36A36D96E44B0CFA5D094C050081D54FD4160000000006000000009BA057C2
+
+STP Protocol Output:
+ 0 <D32TS> 05801c73
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa1034
+ 4 <D64> 00000018d44fd581
+ 5 <D32> 00000400
+ 6 <D16> 0000
+ 7 <D32> 807dffeb
+ 8 <FLAG>
+SYS-T RAW DATA: 731C8005494E54438A9C4014A65A2F36A36D96E43410FA5D094C050081D54FD418000000000400000000EBFF7D80
+
+STP Protocol Output:
+ 0 <D32TS> 05801c73
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa1034
+ 4 <D64> 0000001ad44fd581
+ 5 <D32> 00000200
+ 6 <D16> 0000
+ 7 <D32> 835a1fb8
+ 8 <FLAG>
+SYS-T RAW DATA: 731C8005494E54438A9C4014A65A2F36A36D96E43410FA5D094C050081D54FD41A000000000200000000B81F5A83
+
+STP Protocol Output:
+ 0 <D32TS> 05801c73
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa1034
+ 4 <D64> 0000001bd44fd581
+ 5 <D32> 00000100
+ 6 <D16> 0000
+ 7 <D32> 003fd4e9
+ 8 <FLAG>
+SYS-T RAW DATA: 731C8005494E54438A9C4014A65A2F36A36D96E43410FA5D094C050081D54FD41B000000000100000000E9D43F00
+
+STP Protocol Output:
+ 0 <D32TS> 05801c73
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa1034
+ 4 <D64> 0000001bd44fd581
+ 5 <D32> 00000100
+ 6 <D16> 0000
+ 7 <D32> 003fd4e9
+ 8 <FLAG>
+SYS-T RAW DATA: 731C8005494E54438A9C4014A65A2F36A36D96E43410FA5D094C050081D54FD41B000000000100000000E9D43F00
+
+STP Protocol Output:
+ 0 <D32TS> 05801c73
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa1034
+ 4 <D64> 0000001bd44fd581
+ 5 <D32> 00000100
+ 6 <D16> 0000
+ 7 <D32> 003fd4e9
+ 8 <FLAG>
+SYS-T RAW DATA: 731C8005494E54438A9C4014A65A2F36A36D96E43410FA5D094C050081D54FD41B000000000100000000E9D43F00
+
+STP Protocol Output:
+ 0 <D32TS> 05801c73
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa1034
+ 4 <D64> 0000001bd44fd581
+ 5 <D32> 00000100
+ 6 <D16> 0000
+ 7 <D32> 003fd4e9
+ 8 <FLAG>
+SYS-T RAW DATA: 731C8005494E54438A9C4014A65A2F36A36D96E43410FA5D094C050081D54FD41B000000000100000000E9D43F00
+
+STP Protocol Output:
+ 0 <D32TS> 05801c73
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa1034
+ 4 <D64> 0000001ad44fd581
+ 5 <D32> 00000200
+ 6 <D16> 0000
+ 7 <D32> 835a1fb8
+ 8 <FLAG>
+SYS-T RAW DATA: 731C8005494E54438A9C4014A65A2F36A36D96E43410FA5D094C050081D54FD41A000000000200000000B81F5A83
+
+STP Protocol Output:
+ 0 <D32TS> 05801c73
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa1034
+ 4 <D64> 00000018d44fd581
+ 5 <D32> 00000400
+ 6 <D16> 0000
+ 7 <D32> 807dffeb
+ 8 <FLAG>
+SYS-T RAW DATA: 731C8005494E54438A9C4014A65A2F36A36D96E43410FA5D094C050081D54FD418000000000400000000EBFF7D80
+
+STP Protocol Output:
+ 0 <D32TS> 05801c73
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa1034
+ 4 <D64> 00000016d44fd581
+ 5 <D32> 00000600
+ 6 <D16> 0000
+ 7 <D32> 06a83f81
+ 8 <FLAG>
+SYS-T RAW DATA: 731C8005494E54438A9C4014A65A2F36A36D96E43410FA5D094C050081D54FD416000000000600000000813FA806
+
+STP Protocol Output:
+ 0 <D32TS> 05801c73
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa1034
+ 4 <D64> 00000013d44fd581
+ 5 <D32> 00000900
+ 6 <D16> 0000
+ 7 <D32> 83823476
+ 8 <FLAG>
+SYS-T RAW DATA: 731C8005494E54438A9C4014A65A2F36A36D96E43410FA5D094C050081D54FD41300000000090000000076348283
+
+STP Protocol Output:
+ 0 <D32TS> 05801c73
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa1034
+ 4 <D64> 00000010d44fd581
+ 5 <D32> 00000c00
+ 6 <D16> 0000
+ 7 <D32> 03c01f74
+ 8 <FLAG>
+SYS-T RAW DATA: 731C8005494E54438A9C4014A65A2F36A36D96E43410FA5D094C050081D54FD410000000000C00000000741FC003
+
+STP Protocol Output:
+ 0 <D32TS> 0c801c72
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa1034
+ 4 <D64> 2d2d2d2d2d2d2d7c
+ 5 <D64> 2d2d2d2d2d2d2d2d
+ 6 <D64> 2d2d2d2d2d2d2d2d
+ 7 <D64> 2d2d2d2d2d2d2d2d
+ 8 <D64> 2d2d2d2d2d2d2d2d
+ 9 <D64> 2d2d2d2d2d2d2d2d
+ 10 <D64> 2d2d2d2d2d2d2d2d
+ 11 <D16> 007c
+ 12 <D32> cd9f6fb7
+ 13 <FLAG>
+SYS-T RAW DATA: 721C800C494E54438A9C4014A65A2F36A36D96E43410FA5D094C05007C2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D2D7C00B76F9FCD
+
+STP Protocol Output:
+ 0 <D32TS> 01801c06
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa1034
+ 4 <D64> 0706050403020100
+ 5 <D16> 0908
+ 6 <D32> 48bdde7c
+ 7 <FLAG>
+SYS-T RAW DATA: 061C8001494E54438A9C4014A65A2F36A36D96E43410FA5D094C0500000102030405060708097CDEBD48
+
+STP Protocol Output:
+ 0 <D32MTS> 12345671
+SYS-T RAW DATA: 71563412
+
+STP Protocol Output:
+ 0 <D64MTS> 1122334455667787
+SYS-T RAW DATA: 8777665544332211
+
+STP Protocol Output:
+ 0 <D32MTS> e0000011
+SYS-T RAW DATA: 110000E0
+
+STP Protocol Output:
+ 0 <D32MTS> e0000021
+SYS-T RAW DATA: 210000E0
+
+STP Protocol Output:
+ 0 <D32MTS> f0000011
+SYS-T RAW DATA: 110000F0
+
+STP Protocol Output:
+ 0 <D32MTS> f0000021
+SYS-T RAW DATA: 210000F0
+
+STP Protocol Output:
+ 0 <D32TS> 06801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa1034
+ 4 <D64> 1122334455667788
+ 5 <D32> 0c808862
+ 6 <FLAG>
+SYS-T RAW DATA: 431C8006494E54438A9C4014A65A2F36A36D96E43410FA5D094C050088776655443322116288800C
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa1034
+ 4 <D64> 7461747300000002
+ 5 <D32> 000a0065
+ 6 <D16> 0000
+ 7 <D32> 0fa0f986
+ 8 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E43410FA5D094C0500020000007374617465000A00000086F9A00F
+
+STP Protocol Output:
+ 0 <D32TS> 05801c43
+ 1 <D64> 14409c8a43544e49
+ 2 <D64> e4966da3362f5aa6
+ 3 <D64> 00054c095dfa1034
+ 4 <D64> 74617473e054cf5c
+ 5 <D32> 000a0065
+ 6 <D16> 0000
+ 7 <D32> d4e6c985
+ 8 <FLAG>
+SYS-T RAW DATA: 431C8005494E54438A9C4014A65A2F36A36D96E43410FA5D094C05005CCF54E07374617465000A00000085C9E6D4
+
+ in SyS-T platform handle release hook:systh = 000000E3C08BF840 \ No newline at end of file
diff --git a/printer/test/output_client32.txt b/printer/test/output_client32.txt
new file mode 100644
index 0000000..4da39e2
--- /dev/null
+++ b/printer/test/output_client32.txt
@@ -0,0 +1,284 @@
+Decode Status,Payload,Type,Severity,Origin,Unit,Message TimeStamp,Context TimeStamp,Location,Raw Length,Checksum,Collateral
+OK,"0x0000000000010000 version banner string",BUILD:LONG,MAX,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,62,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"SyS-T Library version 1.0.0",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./systclient.c:64,48,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"+-------------------------------------------------------+",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:40,36,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| ____ _____ _______ |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:41,36,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| / ___| / ____| |__ __| |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:42,36,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| | |___ __ _| |___ _____| | |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:43,36,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| \___ \| | | |\___ \_____| | |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:44,36,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| ____| | |_| |____| | | | |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:45,36,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| |_____/ \__| |_____/ |_| |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:46,36,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| _/ / |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:47,36,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| |__/ |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:48,36,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"+-------------------------------------------------------+",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:49,36,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| catalog Format | Printed Result |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:254,36,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"|---------------------------------strings---------------|",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:255,36,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30s' | ' right-justified' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:256,52,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30s' | 'left-justified ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:257,51,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"|---------------------------------ASCII-----------------|",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:258,36,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%s' | '!""#$%&'()*+-./0123456789:;<=>' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:259,66,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%s' | '?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:260,66,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%s' | '\]^_`qbcdefghijklmnopqrstuvwx' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:261,66,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%s' | 'yz{|}~ ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:262,66,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"|---------------------------------decimals--------------|",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:263,36,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30d' | ' 1' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:264,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30d' | ' 10' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:265,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30d' | ' 100' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:266,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30d' | ' 1000' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:267,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30d' | ' 10000' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:268,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30d' | ' 100000' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:269,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30d' | '1 ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:270,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30d' | '10 ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:271,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30d' | '100 ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:272,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30d' | '1000 ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:273,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30d' | '10000 ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:274,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30d' | '100000 ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:275,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"|----------------------------------hexadecimals---------|",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:276,36,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30x' | ' a' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:277,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30x' | ' ab' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:278,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30x' | ' abc' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:279,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30x' | ' abcd' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:280,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30x' | ' abcde' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:281,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30x' | ' abcdef' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:282,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30x' | 'a ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:283,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30x' | 'ab ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:284,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30x' | 'abc ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:285,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30x' | 'abcd ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:286,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30x' | 'abcde ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:287,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30x' | 'abcdef ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:288,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30X' | ' A' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:289,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30X' | ' AB' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:290,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30X' | ' ABC' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:291,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30X' | ' ABCD' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:292,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30X' | ' ABCDE' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:293,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30X' | ' ABCDEF' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:294,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30X' | 'A ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:295,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30X' | 'AB ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:296,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30X' | 'ABC ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:297,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30X' | 'ABCD ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:298,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30X' | 'ABCDE ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:299,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30X' | 'ABCDEF ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:300,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"|-----------------------------------double--------------|",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:301,36,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.1f' | ' 3.1' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:302,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.2f' | ' 3.14' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:303,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.3f' | ' 3.142' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:304,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.4f' | ' 3.1416' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:305,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.5f' | ' 3.14159' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:306,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.6f' | ' 3.141593' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:307,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.7f' | ' 3.1415927' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:308,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.8f' | ' 3.14159265' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:309,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.9f' | ' 3.141592654' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:310,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.10f' | ' 3.1415926536' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:311,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.1f' | '3.1 ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:312,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.2f' | '3.14 ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:313,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.3f' | '3.142 ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:314,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.4f' | '3.1416 ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:315,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.5f' | '3.14159 ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:316,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.6f' | '3.141593 ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:317,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.7f' | '3.1415927 ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:318,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.8f' | '3.14159265 ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:319,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.9f' | '3.141592654 ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:320,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.10f' | '3.1415926536 ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:321,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"|-----------------------------------scientific----------|",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:322,36,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.1e' | ' 1.5e+00' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:323,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.2e' | ' 1.05e+01' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:324,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.3e' | ' 1.050e+01' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:325,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.4e' | ' 1.0050e+02' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:326,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.5e' | ' 1.00050e+03' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:327,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.6e' | ' 1.000050e+04' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:328,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.7e' | ' 1.0000500e+04' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:329,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.8e' | ' 1.00005000e+04' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:330,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.9e' | ' 1.000005000e+05' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:331,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.10e' | ' 1.0000005000e+06' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:332,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.1e' | '1.5e+00 ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:333,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.2e' | '1.05e+01 ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:334,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.3e' | '1.050e+01 ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:335,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.4e' | '1.0050e+02 ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:336,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.5e' | '1.00050e+03 ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:337,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.6e' | '1.000050e+04 ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:338,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.7e' | '1.0000500e+04 ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:339,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.8e' | '1.00005000e+04 ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:340,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.9e' | '1.000005000e+05 ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:341,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.10e' | '1.0000005000e+06 ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:342,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"|-----------------------------------exotics-------------|",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:343,36,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%030hhu' | '000000000000000000000000000255' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:344,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%030hu' | '000000000000000000000000065535' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:345,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%030lu' | '000000000000000000004294967295' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:346,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%030llu' | '000000000018446744073709551615' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:347,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%030hho' | '000000000000000000000000000377' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:348,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%030ho' | '000000000000000000000000177777' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:349,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%030lo' | '000000000000000000037777777777' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:350,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%030llo' | '000000001777777777777777777777' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:351,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%030hhx' | '0000000000000000000000000000ff' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:352,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%030hx' | '00000000000000000000000000ffff' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:353,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%030lx' | '0000000000000000000000ffffffff' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:354,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%030llx' | '00000000000000ffffffffffffffff' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:355,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30hhu' | '255 ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:356,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30hu' | '65535 ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:357,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%#-30lu' | '65535 ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:358,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%#-30llu' | '18446744073709551615 ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:359,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%#-30hho' | '0377 ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:360,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%#-30ho' | '0177777 ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:361,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%#-30lo' | '037777777777 ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:362,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%#-30llo' | '01777777777777777777777 ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:363,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%#-30hhx' | '0xff ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:364,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%#-30hx' | '0xffff ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:365,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%#-30lx' | '0xffffffff ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:366,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%#-30llx' | '0xffffffffffffffff ' |",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:367,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"|-------------------------------------------------------|",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,90,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| printf Format | printf Result |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,90,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"|---------------------------------strings---------------|",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,90,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30s' | ' right-justified' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,81,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30s' | 'left-justified ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,81,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"|---------------------------------ASCII-----------------|",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,90,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%s' | '!""#$%&'()*+-./0123456789:;<=>' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,94,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%s' | '?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,94,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%s' | '\]^_`qbcdefghijklmnopqrstuvwx' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,94,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%s' | 'yz{|}~ ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,94,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"|---------------------------------decimals--------------|",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,90,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30d' | ' 1' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,69,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30d' | ' 10' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,69,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30d' | ' 100' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,69,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30d' | ' 1000' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,69,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30d' | ' 10000' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,69,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30d' | ' 100000' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,69,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30d' | '1 ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,70,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30d' | '10 ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,70,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30d' | '100 ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,70,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30d' | '1000 ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,70,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30d' | '10000 ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,70,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30d' | '100000 ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,70,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"|----------------------------------hexadecimals---------|",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,90,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30x' | ' a' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,69,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30x' | ' ab' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,69,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30x' | ' abc' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,69,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30x' | ' abcd' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,69,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30x' | ' abcde' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,69,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30x' | ' abcdef' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,69,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30x' | 'a ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,70,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30x' | 'ab ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,70,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30x' | 'abc ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,70,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30x' | 'abcd ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,70,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30x' | 'abcde ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,70,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30x' | 'abcdef ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,70,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30X' | ' A' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,69,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30X' | ' AB' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,69,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30X' | ' ABC' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,69,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30X' | ' ABCD' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,69,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30X' | ' ABCDE' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,69,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30X' | ' ABCDEF' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,69,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30X' | 'A ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,70,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30X' | 'AB ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,70,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30X' | 'ABC ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,70,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30X' | 'ABCD ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,70,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30X' | 'ABCDE ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,70,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30X' | 'ABCDEF ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,70,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"|-----------------------------------double--------------|",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,90,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.1f' | ' 3.1' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,75,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.2f' | ' 3.14' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,75,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.3f' | ' 3.142' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,75,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.4f' | ' 3.1416' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,75,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.5f' | ' 3.14159' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,75,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.6f' | ' 3.141593' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,75,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.7f' | ' 3.1415927' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,75,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.8f' | ' 3.14159265' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,75,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.9f' | ' 3.141592654' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,75,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.10f' | ' 3.1415926536' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.1f' | '3.1 ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.2f' | '3.14 ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.3f' | '3.142 ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.4f' | '3.1416 ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.5f' | '3.14159 ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.6f' | '3.141593 ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.7f' | '3.1415927 ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.8f' | '3.14159265 ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.9f' | '3.141592654 ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.10f' | '3.1415926536 ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,77,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"|-----------------------------------scientific----------|",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,90,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.1e' | ' 1.5e+00' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,75,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.2e' | ' 1.05e+01' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,75,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.3e' | ' 1.050e+01' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,75,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.4e' | ' 1.0050e+02' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,75,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.5e' | ' 1.00050e+03' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,75,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.6e' | ' 1.000050e+04' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,75,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.7e' | ' 1.0000500e+04' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,75,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.8e' | ' 1.00005000e+04' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,75,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.9e' | ' 1.000005000e+05' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,75,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.10e' | ' 1.0000005000e+06' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.1e' | '1.5e+00 ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.2e' | '1.05e+01 ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.3e' | '1.050e+01 ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.4e' | '1.0050e+02 ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.5e' | '1.00050e+03 ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.6e' | '1.000050e+04 ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.7e' | '1.0000500e+04 ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.8e' | '1.00005000e+04 ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.9e' | '1.000005000e+05 ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.10e' | '1.0000005000e+06 ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,77,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"|-----------------------------------exotics-------------|",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,90,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%030hhu' | '000000000000000000000000000255' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,72,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%030hu' | '000000000000000000000000065535' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,71,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%030lu' | '000000000000000000004294967295' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,71,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%030llu' | '000000000018446744073709551615' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%030hho' | '000000000000000000000000000377' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,72,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%030ho' | '000000000000000000000000177777' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,71,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%030lo' | '000000000000000000037777777777' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,71,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%030llo' | '000000001777777777777777777777' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%030hhx' | '0000000000000000000000000000ff' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,72,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%030hx' | '00000000000000000000000000ffff' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,71,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%030lx' | '0000000000000000000000ffffffff' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,71,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%030llx' | '00000000000000ffffffffffffffff' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30hhu' | '255 ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,72,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30hu' | '65535 ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,71,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%#-30lu' | '4294967295 ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,72,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%#-30llu' | '18446744073709551615 ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,77,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%#-30hho' | '0377 ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,73,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%#-30ho' | '0177777 ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,72,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%#-30lo' | '037777777777 ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,72,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%#-30llo' | '01777777777777777777777 ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,77,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%#-30hhx' | '0xff ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,73,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%#-30hx' | '0xffff ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,72,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%#-30lx' | '0xffffffff ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,72,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%#-30llx' | '0xffffffffffffffff ' |",STRING:PRINTF32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,77,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"|-------------------------------------------------------|",STRING:PRINTF32,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,90,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P32,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P32,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P32,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P32,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P32,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P32,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P32,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P32,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P32,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P32,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P32,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P32,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P32,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P32,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P32,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P32,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P32,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P32,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P32,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P32,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P32,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P32,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P32,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P32,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P32,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P32,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P32,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P32,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P32,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P32,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"|-------------------------------------------------------|",STRING:PRINTF32,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,90,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"00010203040506070809",RAW:Protocol1,MAX,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,42,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"Short 32-Bit value (0x01234567)",SHORT32,MAX,,0,,<--UNITTEST-HIDE_TS-->,,4,,collateral.xml
+OK,"Short 64-Bit value (0x0112233445566778)]",SHORT64,MAX,,0,,<--UNITTEST-HIDE_TS-->,,8,,collateral.xml
+OK,"error with code 1",SHORT32,MAX,,0,,<--UNITTEST-HIDE_TS-->,,4,,collateral.xml
+OK,"error with code 2",SHORT32,MAX,,0,,<--UNITTEST-HIDE_TS-->,,4,,collateral.xml
+OK,"warning with code 1",SHORT32,MAX,,0,,<--UNITTEST-HIDE_TS-->,,4,,collateral.xml
+OK,"warning with code 2",SHORT32,MAX,,0,,<--UNITTEST-HIDE_TS-->,,4,,collateral.xml
+OK,"Hello world ",CATALOG:ID64P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./systclient.c:77,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"state=10 ",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./systclient.c:78,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"state=10 ",CATALOG:ID32P32,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./systclient.c:82,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
diff --git a/printer/test/output_client64.txt b/printer/test/output_client64.txt
new file mode 100644
index 0000000..ae0db21
--- /dev/null
+++ b/printer/test/output_client64.txt
@@ -0,0 +1,284 @@
+Decode Status,Payload,Type,Severity,Origin,Unit,Message TimeStamp,Context TimeStamp,Location,Raw Length,Checksum,Collateral
+OK,"0x0000000000010000 version banner string",BUILD:LONG,MAX,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,62,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"SyS-T Library version 1.0.0",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./systclient.c:64,48,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"+-------------------------------------------------------+",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:40,36,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| ____ _____ _______ |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:41,36,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| / ___| / ____| |__ __| |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:42,36,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| | |___ __ _| |___ _____| | |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:43,36,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| \___ \| | | |\___ \_____| | |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:44,36,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| ____| | |_| |____| | | | |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:45,36,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| |_____/ \__| |_____/ |_| |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:46,36,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| _/ / |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:47,36,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| |__/ |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:48,36,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"+-------------------------------------------------------+",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:49,36,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| catalog Format | Printed Result |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:254,36,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"|---------------------------------strings---------------|",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:255,36,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30s' | ' right-justified' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:256,52,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30s' | 'left-justified ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:257,51,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"|---------------------------------ASCII-----------------|",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:258,36,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%s' | '!""#$%&'()*+-./0123456789:;<=>' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:259,66,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%s' | '?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:260,66,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%s' | '\]^_`qbcdefghijklmnopqrstuvwx' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:261,66,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%s' | 'yz{|}~ ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:262,66,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"|---------------------------------decimals--------------|",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:263,36,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30d' | ' 1' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:264,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30d' | ' 10' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:265,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30d' | ' 100' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:266,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30d' | ' 1000' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:267,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30d' | ' 10000' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:268,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30d' | ' 100000' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:269,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30d' | '1 ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:270,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30d' | '10 ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:271,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30d' | '100 ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:272,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30d' | '1000 ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:273,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30d' | '10000 ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:274,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30d' | '100000 ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:275,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"|----------------------------------hexadecimals---------|",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:276,36,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30x' | ' a' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:277,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30x' | ' ab' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:278,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30x' | ' abc' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:279,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30x' | ' abcd' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:280,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30x' | ' abcde' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:281,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30x' | ' abcdef' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:282,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30x' | 'a ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:283,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30x' | 'ab ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:284,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30x' | 'abc ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:285,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30x' | 'abcd ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:286,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30x' | 'abcde ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:287,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30x' | 'abcdef ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:288,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30X' | ' A' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:289,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30X' | ' AB' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:290,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30X' | ' ABC' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:291,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30X' | ' ABCD' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:292,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30X' | ' ABCDE' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:293,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30X' | ' ABCDEF' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:294,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30X' | 'A ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:295,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30X' | 'AB ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:296,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30X' | 'ABC ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:297,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30X' | 'ABCD ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:298,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30X' | 'ABCDE ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:299,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30X' | 'ABCDEF ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:300,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"|-----------------------------------double--------------|",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:301,36,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.1f' | ' 3.1' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:302,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.2f' | ' 3.14' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:303,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.3f' | ' 3.142' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:304,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.4f' | ' 3.1416' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:305,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.5f' | ' 3.14159' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:306,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.6f' | ' 3.141593' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:307,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.7f' | ' 3.1415927' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:308,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.8f' | ' 3.14159265' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:309,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.9f' | ' 3.141592654' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:310,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.10f' | ' 3.1415926536' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:311,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.1f' | '3.1 ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:312,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.2f' | '3.14 ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:313,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.3f' | '3.142 ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:314,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.4f' | '3.1416 ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:315,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.5f' | '3.14159 ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:316,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.6f' | '3.141593 ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:317,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.7f' | '3.1415927 ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:318,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.8f' | '3.14159265 ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:319,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.9f' | '3.141592654 ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:320,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.10f' | '3.1415926536 ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:321,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"|-----------------------------------scientific----------|",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:322,36,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.1e' | ' 1.5e+00' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:323,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.2e' | ' 1.05e+01' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:324,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.3e' | ' 1.050e+01' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:325,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.4e' | ' 1.0050e+02' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:326,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.5e' | ' 1.00050e+03' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:327,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.6e' | ' 1.000050e+04' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:328,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.7e' | ' 1.0000500e+04' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:329,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.8e' | ' 1.00005000e+04' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:330,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.9e' | ' 1.000005000e+05' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:331,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.10e' | ' 1.0000005000e+06' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:332,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.1e' | '1.5e+00 ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:333,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.2e' | '1.05e+01 ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:334,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.3e' | '1.050e+01 ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:335,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.4e' | '1.0050e+02 ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:336,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.5e' | '1.00050e+03 ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:337,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.6e' | '1.000050e+04 ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:338,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.7e' | '1.0000500e+04 ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:339,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.8e' | '1.00005000e+04 ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:340,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.9e' | '1.000005000e+05 ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:341,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.10e' | '1.0000005000e+06 ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:342,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"|-----------------------------------exotics-------------|",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:343,36,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%030hhu' | '000000000000000000000000000255' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:344,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%030hu' | '000000000000000000000000065535' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:345,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%030lu' | '000000000018446744073709551615' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:346,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%030llu' | '000000000018446744073709551615' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:347,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%030hho' | '000000000000000000000000000377' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:348,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%030ho' | '000000000000000000000000177777' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:349,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%030lo' | '000000001777777777777777777777' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:350,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%030llo' | '000000001777777777777777777777' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:351,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%030hhx' | '0000000000000000000000000000ff' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:352,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%030hx' | '00000000000000000000000000ffff' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:353,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%030lx' | '00000000000000ffffffffffffffff' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:354,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%030llx' | '00000000000000ffffffffffffffff' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:355,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30hhu' | '255 ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:356,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30hu' | '65535 ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:357,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%#-30lu' | '65535 ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:358,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%#-30llu' | '18446744073709551615 ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:359,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%#-30hho' | '0377 ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:360,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%#-30ho' | '0177777 ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:361,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%#-30lo' | '01777777777777777777777 ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:362,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%#-30llo' | '01777777777777777777777 ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:363,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%#-30hhx' | '0xff ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:364,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%#-30hx' | '0xffff ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:365,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%#-30lx' | '0xffffffffffffffff ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:366,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%#-30llx' | '0xffffffffffffffff ' |",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:367,44,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"|-------------------------------------------------------|",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,90,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| printf Format | printf Result |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,90,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"|---------------------------------strings---------------|",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,90,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30s' | ' right-justified' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,81,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30s' | 'left-justified ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,81,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"|---------------------------------ASCII-----------------|",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,90,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%s' | '!""#$%&'()*+-./0123456789:;<=>' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,94,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%s' | '?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,94,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%s' | '\]^_`qbcdefghijklmnopqrstuvwx' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,94,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%s' | 'yz{|}~ ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,94,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"|---------------------------------decimals--------------|",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,90,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30d' | ' 1' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,69,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30d' | ' 10' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,69,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30d' | ' 100' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,69,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30d' | ' 1000' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,69,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30d' | ' 10000' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,69,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30d' | ' 100000' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,69,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30d' | '1 ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,70,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30d' | '10 ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,70,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30d' | '100 ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,70,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30d' | '1000 ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,70,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30d' | '10000 ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,70,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30d' | '100000 ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,70,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"|----------------------------------hexadecimals---------|",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,90,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30x' | ' a' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,69,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30x' | ' ab' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,69,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30x' | ' abc' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,69,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30x' | ' abcd' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,69,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30x' | ' abcde' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,69,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30x' | ' abcdef' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,69,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30x' | 'a ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,70,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30x' | 'ab ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,70,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30x' | 'abc ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,70,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30x' | 'abcd ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,70,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30x' | 'abcde ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,70,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30x' | 'abcdef ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,70,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30X' | ' A' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,69,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30X' | ' AB' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,69,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30X' | ' ABC' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,69,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30X' | ' ABCD' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,69,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30X' | ' ABCDE' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,69,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30X' | ' ABCDEF' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,69,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30X' | 'A ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,70,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30X' | 'AB ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,70,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30X' | 'ABC ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,70,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30X' | 'ABCD ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,70,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30X' | 'ABCDE ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,70,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30X' | 'ABCDEF ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,70,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"|-----------------------------------double--------------|",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,90,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.1f' | ' 3.1' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,75,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.2f' | ' 3.14' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,75,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.3f' | ' 3.142' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,75,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.4f' | ' 3.1416' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,75,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.5f' | ' 3.14159' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,75,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.6f' | ' 3.141593' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,75,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.7f' | ' 3.1415927' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,75,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.8f' | ' 3.14159265' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,75,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.9f' | ' 3.141592654' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,75,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.10f' | ' 3.1415926536' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.1f' | '3.1 ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.2f' | '3.14 ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.3f' | '3.142 ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.4f' | '3.1416 ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.5f' | '3.14159 ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.6f' | '3.141593 ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.7f' | '3.1415927 ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.8f' | '3.14159265 ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.9f' | '3.141592654 ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.10f' | '3.1415926536 ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,77,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"|-----------------------------------scientific----------|",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,90,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.1e' | ' 1.5e+00' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,75,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.2e' | ' 1.05e+01' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,75,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.3e' | ' 1.050e+01' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,75,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.4e' | ' 1.0050e+02' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,75,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.5e' | ' 1.00050e+03' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,75,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.6e' | ' 1.000050e+04' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,75,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.7e' | ' 1.0000500e+04' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,75,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.8e' | ' 1.00005000e+04' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,75,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.9e' | ' 1.000005000e+05' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,75,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%30.10e' | ' 1.0000005000e+06' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.1e' | '1.5e+00 ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.2e' | '1.05e+01 ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.3e' | '1.050e+01 ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.4e' | '1.0050e+02 ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.5e' | '1.00050e+03 ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.6e' | '1.000050e+04 ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.7e' | '1.0000500e+04 ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.8e' | '1.00005000e+04 ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.9e' | '1.000005000e+05 ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30.10e' | '1.0000005000e+06 ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,77,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"|-----------------------------------exotics-------------|",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,90,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%030hhu' | '000000000000000000000000000255' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,72,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%030hu' | '000000000000000000000000065535' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,71,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%030lu' | '000000000018446744073709551615' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,75,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%030llu' | '000000000018446744073709551615' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%030hho' | '000000000000000000000000000377' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,72,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%030ho' | '000000000000000000000000177777' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,71,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%030lo' | '000000001777777777777777777777' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,75,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%030llo' | '000000001777777777777777777777' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%030hhx' | '0000000000000000000000000000ff' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,72,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%030hx' | '00000000000000000000000000ffff' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,71,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%030lx' | '00000000000000ffffffffffffffff' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,75,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%030llx' | '00000000000000ffffffffffffffff' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30hhu' | '255 ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,72,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%-30hu' | '65535 ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,71,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%#-30lu' | '18446744073709551615 ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%#-30llu' | '18446744073709551615 ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,77,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%#-30hho' | '0377 ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,73,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%#-30ho' | '0177777 ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,72,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%#-30lo' | '01777777777777777777777 ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%#-30llo' | '01777777777777777777777 ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,77,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%#-30hhx' | '0xff ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,73,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%#-30hx' | '0xffff ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,72,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%#-30lx' | '0xffffffffffffffff ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,76,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%#-30llx' | '0xffffffffffffffff ' |",STRING:PRINTF64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,77,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"|-------------------------------------------------------|",STRING:PRINTF64,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,90,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P64,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P64,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P64,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P64,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P64,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P64,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P64,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P64,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P64,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P64,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P64,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P64,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P64,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P64,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P64,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P64,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P64,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P64,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P64,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P64,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P64,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P64,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P64,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P64,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P64,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P64,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P64,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P64,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P64,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"| '%*so%*s | ' o ' |",CATALOG:ID32P64,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./othersource.c:71,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"|-------------------------------------------------------|",STRING:PRINTF64,DEBUG,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,90,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"00010203040506070809",RAW:Protocol1,MAX,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,,42,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"Short 32-Bit value (0x01234567)",SHORT32,MAX,,0,,<--UNITTEST-HIDE_TS-->,,4,,collateral.xml
+OK,"Short 64-Bit value (0x0112233445566778)]",SHORT64,MAX,,0,,<--UNITTEST-HIDE_TS-->,,8,,collateral.xml
+OK,"error with code 1",SHORT32,MAX,,0,,<--UNITTEST-HIDE_TS-->,,4,,collateral.xml
+OK,"error with code 2",SHORT32,MAX,,0,,<--UNITTEST-HIDE_TS-->,,4,,collateral.xml
+OK,"warning with code 1",SHORT32,MAX,,0,,<--UNITTEST-HIDE_TS-->,,4,,collateral.xml
+OK,"warning with code 2",SHORT32,MAX,,0,,<--UNITTEST-HIDE_TS-->,,4,,collateral.xml
+OK,"Hello world ",CATALOG:ID64P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./systclient.c:77,40,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"state=10 ",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./systclient.c:78,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
+OK,"state=10 ",CATALOG:ID32P64,INFO,example,1,<--UNITTEST-HIDE_TS-->,<--UNITTEST-HIDE_TS-->,./systclient.c:82,46,<--UNITTEST-HIDE_CRC-->,collateral.xml
diff --git a/trademarks.txt b/trademarks.txt
new file mode 100644
index 0000000..d64c1fa
--- /dev/null
+++ b/trademarks.txt
@@ -0,0 +1,5 @@
+MIPI(R), SyS-T(SM) and STP(SM) are trademarks of MIPI Alliance, Inc.
+No licenses are granted by implication, estoppel or otherwise under
+any trademarks of MIPI Alliance, Inc. Other trademarks, and company,
+product, and service names may be the trademarks or service marks of
+their respective owners.