Loading...
Searching...
No Matches
vbat.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2022 Otto-von-Guericke-Universität Magdeburg
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
31
32#include <stdbool.h>
33#include <stdint.h>
34
35#ifdef __cplusplus
36extern "C" {
37#endif
38
45int vbat_init(void);
46
52int32_t vbat_sample_mv(void);
53
61bool vbat_is_empty(void);
62
63#ifdef __cplusplus
64}
65#endif
66
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.