Loading...
Searching...
No Matches
rtc_mem.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2021 ML!PA Consulting GmbH
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser General
5 * Public License v2.1. See the file LICENSE in the top level directory for more
6 * details.
7 */
8
9#pragma once
10
25
26#include <stddef.h>
27#include <stdint.h>
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
38size_t rtc_mem_size(void);
39
50void rtc_mem_read(unsigned offset, void *data, size_t len);
51
62void rtc_mem_write(unsigned offset, const void *data, size_t len);
63
64#ifdef __cplusplus
65}
66#endif
67
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.