ESP32-P4 OBC Firmware
ESP-IDF firmware for Plant-B CubeSat OBC
 
Loading...
Searching...
No Matches

Variables

static const esp_log_level_t _pal_level_map []
 Mapping table from pal_log_level_t to esp_log_level_t.
 

ESP32 Logging Macro Aliases

#define PAL_LOGI(tag, fmt, ...)
 
#define PAL_LOGE(tag, fmt, ...)
 
#define PAL_LOGW(tag, fmt, ...)
 
#define PAL_LOGD(tag, fmt, ...)
 
#define PAL_LOGV(tag, fmt, ...)
 
#define PAL_LOG_BUFFER_HEX(tag, buf, len, level)
 
#define PAL_LOG_BUFFER_HEXDUMP(tag, buf, len, level)
 

Detailed Description

Warning
This file is included automatically by pal_log.h when ESP_PLATFORM is defined. Do not include it directly.

Maps every PAL logging macro to its ESP-IDF ESP_LOGx counterpart and provides a pal_log_level_t to esp_log_level_t mapping table used by the hex dump macros.

Macro Definition Documentation

◆ PAL_LOG_BUFFER_HEX

#define PAL_LOG_BUFFER_HEX ( tag,
buf,
len,
level )
Value:
ESP_LOG_BUFFER_HEX_LEVEL(tag, buf, len, _pal_level_map[level])
static const esp_log_level_t _pal_level_map[]
Mapping table from pal_log_level_t to esp_log_level_t.
Definition pal_log_esp.h:45

◆ PAL_LOG_BUFFER_HEXDUMP

#define PAL_LOG_BUFFER_HEXDUMP ( tag,
buf,
len,
level )
Value:
ESP_LOG_BUFFER_HEXDUMP(tag, buf, len, _pal_level_map[level])

◆ PAL_LOGD

#define PAL_LOGD ( tag,
fmt,
... )
Value:
ESP_LOGD(tag, fmt, ##__VA_ARGS__)

◆ PAL_LOGE

#define PAL_LOGE ( tag,
fmt,
... )
Value:
ESP_LOGE(tag, fmt, ##__VA_ARGS__)

◆ PAL_LOGI

#define PAL_LOGI ( tag,
fmt,
... )
Value:
ESP_LOGI(tag, fmt, ##__VA_ARGS__)

◆ PAL_LOGV

#define PAL_LOGV ( tag,
fmt,
... )
Value:
ESP_LOGV(tag, fmt, ##__VA_ARGS__)

◆ PAL_LOGW

#define PAL_LOGW ( tag,
fmt,
... )
Value:
ESP_LOGW(tag, fmt, ##__VA_ARGS__)

Variable Documentation

◆ _pal_level_map

const esp_log_level_t _pal_level_map[]
static
Initial value:
= {
ESP_LOG_ERROR,
ESP_LOG_WARN,
ESP_LOG_INFO,
ESP_LOG_DEBUG,
ESP_LOG_VERBOSE
}

Mapping table from pal_log_level_t to esp_log_level_t.

Indexed by pal_log_level_t values, used internally by PAL_LOG_BUFFER_HEX and PAL_LOG_BUFFER_HEXDUMP.