nrfx 4.5.0
Loading...
Searching...
No Matches
nrfx_log.h

This file contains macros that should be implemented according to the needs of the host environment into which nrfx is integrated. More...

Macros

#define NRFX_LOG_ERROR(format, ...)
 Macro for logging a message with the severity level ERROR.
 
#define NRFX_LOG_WARNING(format, ...)
 Macro for logging a message with the severity level WARNING.
 
#define NRFX_LOG_INFO(format, ...)
 Macro for logging a message with the severity level INFO.
 
#define NRFX_LOG_DEBUG(format, ...)
 Macro for logging a message with the severity level DEBUG.
 
#define NRFX_LOG_HEXDUMP_ERROR(p_memory, length)
 Macro for logging a memory dump with the severity level ERROR.
 
#define NRFX_LOG_HEXDUMP_WARNING(p_memory, length)
 Macro for logging a memory dump with the severity level WARNING.
 
#define NRFX_LOG_HEXDUMP_INFO(p_memory, length)
 Macro for logging a memory dump with the severity level INFO.
 
#define NRFX_LOG_HEXDUMP_DEBUG(p_memory, length)
 Macro for logging a memory dump with the severity level DEBUG.
 
#define NRFX_LOG_ERROR_STRING_GET(error_code)
 Macro for getting the textual representation of a given error code.
 

Detailed Description

This file contains macros that should be implemented according to the needs of the host environment into which nrfx is integrated.

Macro Definition Documentation

◆ NRFX_LOG_DEBUG

#define NRFX_LOG_DEBUG ( format,
... )

Macro for logging a message with the severity level DEBUG.

Parameters
formatprintf-style format string, optionally followed by arguments to be formatted and inserted in the resulting string.

◆ NRFX_LOG_ERROR

#define NRFX_LOG_ERROR ( format,
... )

Macro for logging a message with the severity level ERROR.

Parameters
formatprintf-style format string, optionally followed by arguments to be formatted and inserted in the resulting string.

◆ NRFX_LOG_ERROR_STRING_GET

#define NRFX_LOG_ERROR_STRING_GET ( error_code)

Macro for getting the textual representation of a given error code.

Parameters
[in]error_codeError code.
Returns
String containing the textual representation of the error code.

◆ NRFX_LOG_HEXDUMP_DEBUG

#define NRFX_LOG_HEXDUMP_DEBUG ( p_memory,
length )

Macro for logging a memory dump with the severity level DEBUG.

Parameters
[in]p_memoryPointer to the memory region to be dumped.
[in]lengthLength of the memory region in bytes.

◆ NRFX_LOG_HEXDUMP_ERROR

#define NRFX_LOG_HEXDUMP_ERROR ( p_memory,
length )

Macro for logging a memory dump with the severity level ERROR.

Parameters
[in]p_memoryPointer to the memory region to be dumped.
[in]lengthLength of the memory region in bytes.

◆ NRFX_LOG_HEXDUMP_INFO

#define NRFX_LOG_HEXDUMP_INFO ( p_memory,
length )

Macro for logging a memory dump with the severity level INFO.

Parameters
[in]p_memoryPointer to the memory region to be dumped.
[in]lengthLength of the memory region in bytes.

◆ NRFX_LOG_HEXDUMP_WARNING

#define NRFX_LOG_HEXDUMP_WARNING ( p_memory,
length )

Macro for logging a memory dump with the severity level WARNING.

Parameters
[in]p_memoryPointer to the memory region to be dumped.
[in]lengthLength of the memory region in bytes.

◆ NRFX_LOG_INFO

#define NRFX_LOG_INFO ( format,
... )

Macro for logging a message with the severity level INFO.

Parameters
formatprintf-style format string, optionally followed by arguments to be formatted and inserted in the resulting string.

◆ NRFX_LOG_WARNING

#define NRFX_LOG_WARNING ( format,
... )

Macro for logging a message with the severity level WARNING.

Parameters
formatprintf-style format string, optionally followed by arguments to be formatted and inserted in the resulting string.