ESPHome 2026.12.0-dev
Loading...
Searching...
No Matches
esphome::rp2 Namespace Reference

Data Structures

class  RP2GPIOPin
 
class  RP2PreferenceBackend
 
class  RP2Preferences
 

Functions

 ESPHOME_LOG_TAG (TAG, "rp2.crash")
 
bool crash_handler_has_data ()
 Returns true if crash data was found this boot, reading it first if needed.
 
void crash_handler_read_and_clear ()
 Read crash data from watchdog scratch registers and clear them.
 
void crash_handler_log ()
 Log crash data if a crash was detected on previous boot.
 
 ESPHOME_LOG_TAG (TAG, "rp2")
 
RP2Preferences * get_preferences ()
 
 ESPHOME_LOG_TAG (TAG, "preferences")
 
void setup_preferences ()
 
void preferences_prevent_write (bool prevent)
 

Variables

uint8_t _EEPROM_start
 

Function Documentation

◆ crash_handler_has_data()

bool esphome::rp2::crash_handler_has_data ( )

Returns true if crash data was found this boot, reading it first if needed.

Definition at line 76 of file crash_handler.cpp.

◆ crash_handler_log()

void esphome::rp2::crash_handler_log ( )

Log crash data if a crash was detected on previous boot.

Definition at line 112 of file crash_handler.cpp.

◆ crash_handler_read_and_clear()

void esphome::rp2::crash_handler_read_and_clear ( )

Read crash data from watchdog scratch registers and clear them.

Only the first call reads; later calls are no-ops.

Definition at line 81 of file crash_handler.cpp.

◆ ESPHOME_LOG_TAG() [1/3]

esphome::rp2::ESPHOME_LOG_TAG ( TAG ,
"preferences"  )

◆ ESPHOME_LOG_TAG() [2/3]

esphome::rp2::ESPHOME_LOG_TAG ( TAG ,
"rp2"  )

◆ ESPHOME_LOG_TAG() [3/3]

esphome::rp2::ESPHOME_LOG_TAG ( TAG ,
"rp2.crash"  )

◆ get_preferences()

RP2Preferences * esphome::rp2::get_preferences ( )

Definition at line 137 of file preferences.cpp.

◆ preferences_prevent_write()

void esphome::rp2::preferences_prevent_write ( bool prevent)

Definition at line 143 of file preferences.cpp.

◆ setup_preferences()

void esphome::rp2::setup_preferences ( )

Definition at line 139 of file preferences.cpp.

Variable Documentation

◆ _EEPROM_start

uint8_t esphome::rp2::_EEPROM_start

Definition at line 30 of file preferences.cpp.