ESPHome 2026.5.0-dev
Loading...
Searching...
No Matches
preferences.h
Go to the documentation of this file.
1#pragma once
2#ifdef USE_RP2040
3
5
6namespace esphome::rp2040 {
7
8class RP2040Preferences final : public PreferencesMixin<RP2040Preferences> {
9 public:
12 void setup();
14 return this->make_preference(length, type);
15 }
17 bool sync();
18 bool reset();
19
21
22 protected:
24};
25
27void preferences_prevent_write(bool prevent);
28
29} // namespace esphome::rp2040
30
31DECLARE_PREFERENCE_ALIASES(esphome::rp2040::RP2040Preferences)
32
33#endif // USE_RP2040
CRTP mixin providing type-safe template make_preference<T>() helpers.
ESPPreferenceObject make_preference(size_t length, uint32_t type, bool in_flash)
Definition preferences.h:13
uint16_t type
void preferences_prevent_write(bool prevent)
static void uint32_t
uint16_t length
Definition tt21100.cpp:0