| nRF5 SDK v12.0.0 |

Choose documentation: | nRF5 SDK | S130 SoftDevice API | S132 SoftDevice API | S212 SoftDevice API | S332 SoftDevice API

All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Modules | Functions
Backend of nrf_log
Logger module

The nrf_log backend interface. More...

## Modules
| Logging sink configuration

## Functions
ret_code_t | nrf_log_backend_init (bool blocking)
| Function for initializing the logger backend. More...
nrf_log_std_handler_t | nrf_log_backend_std_handler_get (void)
| Function for returning a pointer to a function for handling standard log entries (NRF_LOG_ERROR, etc.). More...
nrf_log_hexdump_handler_t | nrf_log_backend_hexdump_handler_get (void)
| Function for returning a pointer to a function for handling hexdumps (NRF_LOG_HEXDUMP_ERROR, etc.). More...
uint8_t | nrf_log_backend_getchar (void)
| Function for blocking reading of a byte from the backend. More...

## Detailed Description

The nrf_log backend interface.

## Function Documentation

uint8_t nrf_log_backend_getchar | ( | void |  | ) |

Function for blocking reading of a byte from the backend.

Returns
  Byte.

nrf_log_hexdump_handler_t nrf_log_backend_hexdump_handler_get | ( | void |  | ) |

Function for returning a pointer to a function for handling hexdumps (NRF_LOG_HEXDUMP_ERROR, etc.).

Returns
  Pointer to a handler.

ret_code_t nrf_log_backend_init | ( | bool | blocking | ) |

Function for initializing the logger backend.

param blocking Set true if handler functions should block until completion.

Returns
  NRF_SUCCESS after successful initialization, error code otherwise.

nrf_log_std_handler_t nrf_log_backend_std_handler_get | ( | void |  | ) |

Function for returning a pointer to a function for handling standard log entries (NRF_LOG_ERROR, etc.).

Returns
  Pointer to a handler.