Go to the source code of this file.
|
| size_t | esphome::rtc_pref_bytes_to_words (size_t bytes) |
| | Round a byte count up to whole 32-bit words.
|
| |
| template<class It > |
| uint32_t | esphome::rtc_pref_calculate_checksum (It first, It last, uint32_t type) |
| | Compute the integrity checksum over [first, last), seeded with type.
|
| |
| void | esphome::rtc_pref_encode (uint32_t *buffer, uint32_t type, uint8_t length_words, const uint8_t *data, size_t len) |
| | Encode len data bytes into buffer (length_words data words + 1 trailing checksum word).
|
| |
| bool | esphome::rtc_pref_decode (const uint32_t *buffer, uint32_t type, uint8_t length_words, uint8_t *data, size_t len) |
| | Verify the checksum of a record held in buffer (length_words data words + 1 checksum word) and, on success, copy len bytes out to data.
|
| |