ESPHome 2026.12.0-dev
Loading...
Searching...
No Matches
preference_backend.h
Go to the documentation of this file.
1#pragma once
2#ifdef USE_RP2
3
4#include <cstddef>
5#include <cstdint>
6
7namespace esphome::rp2 {
8
10 public:
11 bool save(const uint8_t *data, size_t len);
12 bool load(uint8_t *data, size_t len);
13 bool sync();
14
15 size_t offset = 0;
17};
18
19class RP2Preferences;
21
22} // namespace esphome::rp2
23
24namespace esphome {
26} // namespace esphome
27
28#endif // USE_RP2
bool load(uint8_t *data, size_t len)
bool save(const uint8_t *data, size_t len)
RP2Preferences * get_preferences()
const void size_t len
Definition hal.h:68
static void uint32_t