Logging#

Logging.

RTL events are logged as follows:

  1. Initialize the logging.

  2. Configure the logging with the configuration parameters.

    • Configuration is only allowed once in a logging session.

  3. Enable logging for the RTL libitem(s).

    • The libitem(s) can be added before or after the estimator(s) are created.

    • Disable logging for the RTL libitem(s) to stop the logging for the given RTL libitem.

  4. Deinitialize logging. This will disable logging for all the remaining RTL libitems.

Typedefs#

typedef void(*
sl_rtl_log_callback_function)(uint8_t *log_data, size_t log_data_len)

Functions#

typedef(struct { sl_rtl_log_callback_function log_callback_function;char sdk_version[SL_RTL_LOG_SDK_VERSION_CHAR_ARRAY_MAX_SIZE];char command_line_options[SL_RTL_LOG_COMMAND_LINE_OPTIONS_CHAR_ARRAY_MAX_SIZE];}) sl_rtl_log_params
sl_rtl_log_configure(const sl_rtl_log_params *log_params)

Typedef Documentation#

sl_rtl_log_callback_function#

typedef void(* sl_rtl_log_callback_function) (uint8_t *log_data, size_t log_data_len) )(uint8_t *log_data, size_t log_data_len)

Definition at line 2033 of file /mnt/raid/workspaces/ws.Dg1ch1o1Y/overlay/gsdk/util/silicon_labs/rtl/inc/sl_rtl_clib_api.h

Function Documentation#

typedef#

typedef (struct { sl_rtl_log_callback_function log_callback_function;char sdk_version[SL_RTL_LOG_SDK_VERSION_CHAR_ARRAY_MAX_SIZE];char command_line_options[SL_RTL_LOG_COMMAND_LINE_OPTIONS_CHAR_ARRAY_MAX_SIZE];} )
Parameters
N/A

Definition at line 2036 of file /mnt/raid/workspaces/ws.Dg1ch1o1Y/overlay/gsdk/util/silicon_labs/rtl/inc/sl_rtl_clib_api.h

sl_rtl_log_init#

enum sl_rtl_error_code sl_rtl_log_init (void )
Parameters
N/A

Initiate the RTL logging.


Definition at line 2054 of file /mnt/raid/workspaces/ws.Dg1ch1o1Y/overlay/gsdk/util/silicon_labs/rtl/inc/sl_rtl_clib_api.h

sl_rtl_log_configure#

enum sl_rtl_error_code sl_rtl_log_configure (const sl_rtl_log_params * log_params)
Parameters
[in]log_params

Pointer to the sl_rtl_log_params

Register the configuration parameters for the logging.

Returns


Definition at line 2063 of file /mnt/raid/workspaces/ws.Dg1ch1o1Y/overlay/gsdk/util/silicon_labs/rtl/inc/sl_rtl_clib_api.h

sl_rtl_log_deinit#

enum sl_rtl_error_code sl_rtl_log_deinit (void )
Parameters
N/A

Deinitiate the RTL logging.


Definition at line 2068 of file /mnt/raid/workspaces/ws.Dg1ch1o1Y/overlay/gsdk/util/silicon_labs/rtl/inc/sl_rtl_clib_api.h

Macro Definition Documentation#

SL_RTL_LOG_SDK_VERSION_CHAR_ARRAY_MAX_SIZE#

#define SL_RTL_LOG_SDK_VERSION_CHAR_ARRAY_MAX_SIZE
Value:
64

Definition at line 2030 of file /mnt/raid/workspaces/ws.Dg1ch1o1Y/overlay/gsdk/util/silicon_labs/rtl/inc/sl_rtl_clib_api.h

SL_RTL_LOG_COMMAND_LINE_OPTIONS_CHAR_ARRAY_MAX_SIZE#

#define SL_RTL_LOG_COMMAND_LINE_OPTIONS_CHAR_ARRAY_MAX_SIZE
Value:
64

Definition at line 2031 of file /mnt/raid/workspaces/ws.Dg1ch1o1Y/overlay/gsdk/util/silicon_labs/rtl/inc/sl_rtl_clib_api.h