Loading...
Searching...
No Matches
vbat.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2022 Otto-von-Guericke-Universität Magdeburg
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
33#ifndef PERIPH_VBAT_H
34#define PERIPH_VBAT_H
35
36#include <stdbool.h>
37#include <stdint.h>
38
39#ifdef __cplusplus
40extern "C" {
41#endif
42
49int vbat_init(void);
50
56int32_t vbat_sample_mv(void);
57
65bool vbat_is_empty(void);
66
67#ifdef __cplusplus
68}
69#endif
70
71#endif /* PERIPH_VBAT_H */
int32_t vbat_sample_mv(void)
Sample backup battery.
bool vbat_is_empty(void)
Sample the backup battery and compare the result with the minimum value required to power the backup ...
int vbat_init(void)
Initialize backup battery monitoring.