18 #if RUUVI_NRF5_SDK15_LOG_ENABLED
23 #define NRF_LOG_MODULE_NAME ruuvi_log
24 #define NRF_LOG_LEVEL 3
26 #include "nrf_log_default_backends.h"
27 #include "nrf_log_ctrl.h"
37 m_log_level = min_severity;
39 NRF_LOG_DEFAULT_BACKENDS_INIT();
64 const char *
const message)
72 if (m_log_level >= severity)
74 NRF_LOG_INTERNAL_RAW_INFO (
"%s", message);
#define RD_ERROR_NULL
Null Pointer.
uint32_t rd_status_t
bitfield for representing errors
#define RD_ERROR_CHECK(error, mask)
Shorthand macro for calling the rd_error_check with current file & line.
#define RD_SUCCESS
Internal Error.
#define RD_ERROR_INVALID_STATE
Invalid state, operation disallowed in this state.
rd_status_t ri_log_init(const ri_log_severity_t min_severity)
Runs initialization code for the logging backend and sets the severity level.
ri_log_severity_t
Enable implementation selected by application.
void ri_log(const ri_log_severity_t severity, const char *const message)
Queues messages into log.
rd_status_t ri_log_flush(void)
Blocks until remaining log messages are sent out.
NRF_LOG_MODULE_REGISTER()
Header to enable and disable module compilation.
Ruuvi error codes and error check function.
rd_status_t ri_delay_us(uint32_t time)
Delay a given number of microseconds.