Logging#
Logging.
RTL events are logged as follows:
Initialize the logging.
Configure the logging with the configuration parameters.
Configuration is only allowed once in a logging session.
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.
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
enum sl_rtl_error_code
sl_rtl_log_init(void)
enum sl_rtl_error_code
sl_rtl_log_configure(const sl_rtl_log_params *log_params)
enum sl_rtl_error_code
sl_rtl_log_deinit(void)
Macros#
#define
SL_RTL_LOG_SDK_VERSION_CHAR_ARRAY_MAX_SIZE 64
#define
SL_RTL_LOG_COMMAND_LINE_OPTIONS_CHAR_ARRAY_MAX_SIZE 64
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
2075
of file /mnt/raid/workspaces/ws.PnjKN2fAf/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
Type | Direction | Argument Name | Description |
---|---|---|---|
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];} | N/A |
Definition at line
2078
of file /mnt/raid/workspaces/ws.PnjKN2fAf/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
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
Initiate the RTL logging.
Definition at line
2096
of file /mnt/raid/workspaces/ws.PnjKN2fAf/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
Type | Direction | Argument Name | Description |
---|---|---|---|
const sl_rtl_log_params * | [in] | log_params | Pointer to the sl_rtl_log_params |
Register the configuration parameters for the logging.
Returns
SL_RTL_ERROR_SUCCESS if successful
Definition at line
2105
of file /mnt/raid/workspaces/ws.PnjKN2fAf/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
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
Deinitiate the RTL logging.
Definition at line
2110
of file /mnt/raid/workspaces/ws.PnjKN2fAf/overlay/gsdk/util/silicon_labs/rtl/inc/sl_rtl_clib_api.h