ESPHome 2026.1.5
Loading...
Searching...
No Matches
esphome::debug Namespace Reference

Data Structures

class  DebugComponent
 

Functions

size_t buf_append_p (char *buf, size_t size, size_t pos, PGM_P fmt,...)
 
 __attribute__ ((format(printf, 4, 5))) inline size_t buf_append(char *buf
 Safely append formatted string to buffer, returning new position (capped at size)
 
size_t size_t const char va_start (args, fmt)
 
 va_end (args)
 
 if (written< 0)
 

Variables

size_t size
 
size_t size_t pos
 
size_t size_t const char * fmt
 
int written = vsnprintf(buf + pos, size - pos, fmt, args)
 
constexpr std::uintptr_t MBR_PARAM_PAGE_ADDR = 0xFFC
 
constexpr std::uintptr_t MBR_BOOTLOADER_ADDR = 0xFF8
 
constexpr uint32_t SD_MAGIC_NUMBER = 0x51B1E5DB
 
constexpr uintptr_t MBR_SIZE = 0x1000
 
constexpr uintptr_t SOFTDEVICE_INFO_STRUCT_OFFSET = 0x2000
 
constexpr uintptr_t SD_ID_OFFSET = SOFTDEVICE_INFO_STRUCT_OFFSET + 0x10
 
constexpr uintptr_t SD_VERSION_OFFSET = SOFTDEVICE_INFO_STRUCT_OFFSET + 0x14
 

Function Documentation

◆ __attribute__()

esphome::debug::__attribute__ ( (format(printf, 4, 5)) )

Safely append formatted string to buffer, returning new position (capped at size)

◆ buf_append_p()

size_t esphome::debug::buf_append_p ( char * buf,
size_t size,
size_t pos,
PGM_P fmt,
... )
inline

Definition at line 31 of file debug_component.h.

◆ if()

esphome::debug::if ( )

Definition at line 56 of file debug_component.h.

◆ va_end()

esphome::debug::va_end ( args )

◆ va_start()

size_t size_t const char esphome::debug::va_start ( args ,
fmt  )

Variable Documentation

◆ fmt

size_t size_t const char* esphome::debug::fmt

Definition at line 47 of file debug_component.h.

◆ MBR_BOOTLOADER_ADDR

std::uintptr_t esphome::debug::MBR_BOOTLOADER_ADDR = 0xFF8
constexpr

Definition at line 16 of file debug_zephyr.cpp.

◆ MBR_PARAM_PAGE_ADDR

std::uintptr_t esphome::debug::MBR_PARAM_PAGE_ADDR = 0xFFC
constexpr

Definition at line 15 of file debug_zephyr.cpp.

◆ MBR_SIZE

uintptr_t esphome::debug::MBR_SIZE = 0x1000
constexpr

Definition at line 38 of file debug_zephyr.cpp.

◆ pos

size_t size_t esphome::debug::pos

Definition at line 47 of file debug_component.h.

◆ SD_ID_OFFSET

uintptr_t esphome::debug::SD_ID_OFFSET = SOFTDEVICE_INFO_STRUCT_OFFSET + 0x10
constexpr

Definition at line 40 of file debug_zephyr.cpp.

◆ SD_MAGIC_NUMBER

uint32_t esphome::debug::SD_MAGIC_NUMBER = 0x51B1E5DB
constexpr

Definition at line 37 of file debug_zephyr.cpp.

◆ SD_VERSION_OFFSET

uintptr_t esphome::debug::SD_VERSION_OFFSET = SOFTDEVICE_INFO_STRUCT_OFFSET + 0x14
constexpr

Definition at line 41 of file debug_zephyr.cpp.

◆ size

size_t esphome::debug::size

Definition at line 47 of file debug_component.h.

◆ SOFTDEVICE_INFO_STRUCT_OFFSET

uintptr_t esphome::debug::SOFTDEVICE_INFO_STRUCT_OFFSET = 0x2000
constexpr

Definition at line 39 of file debug_zephyr.cpp.

◆ written

int esphome::debug::written = vsnprintf(buf + pos, size - pos, fmt, args)

Definition at line 54 of file debug_component.h.