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
24#ifndef PERIPH_RTC_MEM_H
25#define PERIPH_RTC_MEM_H
26
27#include <stddef.h>
28#include <stdint.h>
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
39size_t rtc_mem_size(void);
40
51void rtc_mem_read(unsigned offset, void *data, size_t len);
52
63void rtc_mem_write(unsigned offset, const void *data, size_t len);
64
65#ifdef __cplusplus
66}
67#endif
68
69#endif /* PERIPH_RTC_MEM_H */
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.