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 ##
API Define | Description |
MIPI_SYST_INIT(f,p) | SyS-T global platform initialization using an internal shared state header |
MIPI_SYST_INIT_STATE(s, f,p) | SyS-T platform initialization using a provided state header structure |
MIPI_SYST_SHUTDOWN() | SyS-T global platform shutdown |
MIPI_SYST_SHUTDOWN_STATE(s) | SyS-T platform shutdown using a provided state header structure |
MIPI_SYST_INIT_HANDLE(h,p) | Initialize a static (not heap allocated) SyS-T handle. |
MIPI_SYST_INIT_HANDLE_STATE(s, h,p) | Initialize a static (not heap allocated) SyS-T handle using a provided state header structure. |
MIPI_SYST_ALLOC_HANDLE(p) | Initialize heap allocated SyS-T handle. |
MIPI_SYST_ALLOC_HANDLE_STATE(s, p) | Initialize heap allocated SyS-T handle using a provided state header structure. |
MIPI_SYST_DELETE_HANDLE(p) | Delete a SyS-T handle. |
MIPI_SYST_SET_HANDLE_ORIGIN(h, o) | Set the client origin for the given SyS-T handle based on a mipi_syst_origin structure. |
MIPI_SYST_SET_HANDLE_MODULE_UNIT(h,m,u) | Specify module and unit ID of the given SyS-T handle. |
MIPI_SYST_SET_HANDLE_GUID_UNIT(h, g, u) | Specify GUID and unit ID of the given SyS-T handle. |
MIPI_SYST_ENABLE_HANDLE_LENGTH(h, v) | Enable or disable length field generation over the given SyS-T handle. |
MIPI_SYST_ENABLE_HANDLE_CHECKSUM(h,v) | Enable or disable checksum generation over the given SyS-T handle. |
MIPI_SYST_ENABLE_HANDLE_TIMESTAMP(h, v) | Enable or disable additional protocol times tamps over the given SyS-T handle. |
API Define | Description |
MIPI_SYST_DEBUG(svh,sev,str,len) MIPI_SYST_DEBUG_LOC16(svh,sev,file,str,len) MIPI_SYST_DEBUG_LOC32(svh,sev,file,str,len) MIPI_SYST_DEBUG_LOCADDR(svh,sev,str,len) |
Send A UTF-8 character string with given severity and length |
\link MIPI_SYST_PRINTF MIPI_SYST_PRINTF(svh,sev,str, ...)\endlink \link MIPI_SYST_PRINTF_LOC16 MIPI_SYST_PRINTF_LOC16(svh,sev,file,str, ...)\endlink \link MIPI_SYST_PRINTF_LOC32 MIPI_SYST_PRINTF_LOC32(svh,sev,file,str, ...)\endlink \link MIPI_SYST_PRINTF_LOCADDR MIPI_SYST_PRINTF_LOCADDR(svh,sev,str, ...)\endlink |
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. Notes: 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. 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. |
MIPI_SYST_FUNC_ENTER(svh,sev) MIPI_SYST_FUNC_ENTER_LOC16(svh,sev,file) MIPI_SYST_FUNC_ENTER_LOC32(svh,sev,file) MIPI_SYST_FUNC_ENTER_LOCADDR(svh,sev) |
Send function enter string message. The payload is the UTF-8 name of the surrounding function. |
MIPI_SYST_FUNC_EXIT(svh,sev) MIPI_SYST_FUNC_EXIT_LOC16(svh,sev,file) MIPI_SYST_FUNC_EXIT_LOC32(svh,sev,file) MIPI_SYST_FUNC_EXIT_LOCADDR(svh,sev) |
Send function exit string message. The payload is the UTF-8 name of the surrounding function. |
MIPI_SYST_ASSERT(svh,sev,cond) MIPI_SYST_ASSERT_LOC16(svh,sev,file,cond) MIPI_SYST_ASSERT_LOC32(svh,sev,file,cond) MIPI_SYST_ASSERT_LOCADDR(svh,sev,cond) |
Send [file]:[line] assertion notice string message if the passed condition is false |
API Define | Description |
\link MIPI_SYST_CATALOG64(svh,sev,id, ...)\endlink |
Send catalog message with variable number of parameters defined by the format string that matches the 64-bit catalog ID. |
MIPI_SYST_CATALOG64_0(svh,sev,id) ... MIPI_SYST_CATALOG64_6(svh, sev, id,p1,p2,p3,p4,p5,p6) |
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. |
MIPI_SYST_CATPRINTF64_0(svh, sev, id, fmt) ... MIPI_SYST_CATPRINTF64_6(svh, sev, id, fmt, p1,p2,p3,p4,p5,p6) |
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. |
\link MIPI_SYST_CATALOG32(svh,sev,id, ...)\endlink |
Send catalog message with variable number of parameters defined by the format string that matches the 32-bit catalog ID. |
MIPI_SYST_CATALOG32_0(svh, sev, id) ... MIPI_SYST_CATALOG32_6(svh, sev, id,p1,p2,p3,p4,p5,p6) |
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. |
MIPI_SYST_CATPRINTF32_0(svh, sev, id, fmt) ... MIPI_SYST_CATPRINTF32_6(svh, sev, id, fmt, p1,p2,p3,p4,p5,p6) |
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. |
MIPI_SYST_HASH(fmt, offset) |
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. |
API Define | Description |
MIPI_SYST_SHORT32(h, v) | 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. |
MIPI_SYST_SHORT64(h, v) | 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. |
MIPI_SYST_WRITE(h, sev, id, p, len) | Send raw data message with user defined payload. |
API Define | Description |
MIPI_SYST_BUILD(h, sev, ver, text, len) | Send 64-bit client software build ID number and optional version text. |
MIPI_SYST_BUILD_COMPACT32(h, v) | Send a 32-bit compact client software build ID message with 22-bit wide build number. |
MIPI_SYST_BUILD_COMPACT64(h, v) | Send a 64-bit compact client software build ID message value with a 54-bit wide build number. |