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. 
Modules#
Typedefs#
typedef void(*
sl_rtl_log_callback_function)(uint8_t *log_data, size_t log_data_len)
Functions#
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)
Function Documentation#
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.
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 
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.