123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243 |
- #ifndef NRF_LOG_CTRL_H
- #define NRF_LOG_CTRL_H
- #include "sdk_config.h"
- #include "sdk_errors.h"
- #include <stdint.h>
- #include <stdbool.h>
- #include "nrf_log_types.h"
- #include "nrf_log_ctrl_internal.h"
- #include "nrf_log_backend_interface.h"
- #ifdef __cplusplus
- extern "C" {
- #endif
- typedef uint32_t (*nrf_log_timestamp_func_t)(void);
- #define NRF_LOG_INIT(...) NRF_LOG_INTERNAL_INIT(__VA_ARGS__)
- #define NRF_LOG_PROCESS() NRF_LOG_INTERNAL_PROCESS()
- #define NRF_LOG_FLUSH() NRF_LOG_INTERNAL_FLUSH()
- #define NRF_LOG_FINAL_FLUSH() NRF_LOG_INTERNAL_FINAL_FLUSH()
- ret_code_t nrf_log_init(nrf_log_timestamp_func_t timestamp_func, uint32_t timestamp_freq);
- int32_t nrf_log_backend_add(nrf_log_backend_t const * p_backend, nrf_log_severity_t severity);
- void nrf_log_backend_remove(nrf_log_backend_t const * p_backend);
- void nrf_log_panic(void);
- bool nrf_log_frontend_dequeue(void);
- uint32_t nrf_log_module_cnt_get(void);
- const char * nrf_log_module_name_get(uint32_t module_id, bool is_ordered_idx);
- uint8_t nrf_log_color_id_get(uint32_t module_id, nrf_log_severity_t severity);
- void nrf_log_module_filter_set(uint32_t backend_id,
- uint32_t module_id,
- nrf_log_severity_t severity);
- nrf_log_severity_t nrf_log_module_filter_get(uint32_t backend_id,
- uint32_t module_id,
- bool is_ordered_idx,
- bool dynamic);
- ret_code_t nrf_log_config_store(void);
- ret_code_t nrf_log_config_load(void);
- #ifdef __cplusplus
- }
- #endif
- #endif
|