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
9#pragma once
10
34
35#include <stdbool.h>
36#include <stdint.h>
37
38#ifdef __cplusplus
39extern "C" {
40#endif
41
48int vbat_init(void);
49
55int32_t vbat_sample_mv(void);
56
64bool vbat_is_empty(void);
65
66#ifdef __cplusplus
67}
68#endif
69
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.