nRF5 SDK v12.1.0
Macros
Logging sink configuration

Macros

#define NRF_LOG_BACKEND_MAX_STRING_LENGTH
 Buffer for storing single output string. More...
 
#define NRF_LOG_TIMESTAMP_DIGITS
 Number of digits for timestamp. More...
 
#define NRF_LOG_BACKEND_SERIAL_USES_UART
 If enabled data is printed over UART. More...
 
#define NRF_LOG_BACKEND_SERIAL_UART_BAUDRATE
 Default Baudrate. More...
 
#define NRF_LOG_BACKEND_SERIAL_UART_TX_PIN
 UART TX pin. More...
 
#define NRF_LOG_BACKEND_SERIAL_UART_RX_PIN
 UART RX pin. More...
 
#define NRF_LOG_BACKEND_SERIAL_UART_RTS_PIN
 UART RTS pin. More...
 
#define NRF_LOG_BACKEND_SERIAL_UART_CTS_PIN
 UART CTS pin. More...
 
#define NRF_LOG_BACKEND_SERIAL_UART_FLOW_CONTROL
 Hardware Flow Control. More...
 
#define NRF_LOG_BACKEND_UART_INSTANCE
 UART instance used. More...
 
#define NRF_LOG_BACKEND_SERIAL_USES_RTT
 If enabled data is printed using RTT. More...
 

Detailed Description

Macro Definition Documentation

#define NRF_LOG_BACKEND_MAX_STRING_LENGTH

Buffer for storing single output string.

Logger backend RAM usage is determined by this value.

Note
This is an NRF_CONFIG macro.
#define NRF_LOG_BACKEND_SERIAL_UART_BAUDRATE

Default Baudrate.

Following options are available:

  • 323584 - 1200 baud
  • 643072 - 2400 baud
  • 1290240 - 4800 baud
  • 2576384 - 9600 baud
  • 3862528 - 14400 baud
  • 5152768 - 19200 baud
  • 7716864 - 28800 baud
  • 10289152 - 38400 baud
  • 15400960 - 57600 baud
  • 20615168 - 76800 baud
  • 30801920 - 115200 baud (nRF52 family only)
  • 30924800 - 115200 baud (nRF51 family only)
  • 61865984 - 230400 baud
  • 67108864 - 250000 baud
  • 121634816 - 460800 baud
  • 251658240 - 921600 baud
  • 268435456 - 57600 baud
Note
This is an NRF_CONFIG macro.
#define NRF_LOG_BACKEND_SERIAL_UART_CTS_PIN

UART CTS pin.

Note
This is an NRF_CONFIG macro.
#define NRF_LOG_BACKEND_SERIAL_UART_FLOW_CONTROL

Hardware Flow Control.

Following options are available:

  • 0 - Disabled
  • 1 - Enabled
Note
This is an NRF_CONFIG macro.
#define NRF_LOG_BACKEND_SERIAL_UART_RTS_PIN

UART RTS pin.

Note
This is an NRF_CONFIG macro.
#define NRF_LOG_BACKEND_SERIAL_UART_RX_PIN

UART RX pin.

Note
This is an NRF_CONFIG macro.
#define NRF_LOG_BACKEND_SERIAL_UART_TX_PIN

UART TX pin.

Note
This is an NRF_CONFIG macro.
#define NRF_LOG_BACKEND_SERIAL_USES_RTT

If enabled data is printed using RTT.

Set to 1 to activate.

Note
This is an NRF_CONFIG macro.
#define NRF_LOG_BACKEND_SERIAL_USES_UART

If enabled data is printed over UART.

Set to 1 to activate.

Note
This is an NRF_CONFIG macro.
#define NRF_LOG_BACKEND_UART_INSTANCE

UART instance used.

Following options are available:

  • 0
Note
This is an NRF_CONFIG macro.
#define NRF_LOG_TIMESTAMP_DIGITS

Number of digits for timestamp.

If higher resolution timestamp source is used it might be needed to increase that

Note
This is an NRF_CONFIG macro.

Documentation feedback | Developer Zone | Subscribe | Updated