Loading...
Searching...
No Matches
rtc_mem.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2021 ML!PA Consulting GmbH
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
22
23#include <stddef.h>
24#include <stdint.h>
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
35size_t rtc_mem_size(void);
36
47void rtc_mem_read(unsigned offset, void *data, size_t len);
48
59void rtc_mem_write(unsigned offset, const void *data, size_t len);
60
61#ifdef __cplusplus
62}
63#endif
64
void rtc_mem_read(unsigned offset, void *data, size_t len)
Read from RTC memory.
void rtc_mem_write(unsigned offset, const void *data, size_t len)
Write to RTC memory.
size_t rtc_mem_size(void)
Get the amount of RTC memory.