1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- #ifndef NRF_LOG_STR_FORMATTER_H
- #define NRF_LOG_STR_FORMATTER_H
- #include <stdint.h>
- #include "nrf_fprintf.h"
- #include "nrf_log_ctrl.h"
- #ifdef __cplusplus
- extern "C" {
- #endif
- typedef struct
- {
- uint32_t timestamp;
- uint16_t module_id;
- uint16_t dropped;
- nrf_log_severity_t severity;
- uint8_t use_colors;
- } nrf_log_str_formatter_entry_params_t;
- void nrf_log_std_entry_process(char const * p_str,
- uint32_t const * p_args,
- uint32_t nargs,
- nrf_log_str_formatter_entry_params_t * p_params,
- nrf_fprintf_ctx_t * p_ctx);
- void nrf_log_hexdump_entry_process(uint8_t * p_data,
- uint32_t data_len,
- nrf_log_str_formatter_entry_params_t * p_params,
- nrf_fprintf_ctx_t * p_ctx);
- void nrf_log_str_formatter_timestamp_freq_set(uint32_t freq);
- #ifdef __cplusplus
- }
- #endif
- #endif
|