Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
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
36
extern
"C"
{
37
#endif
38
45
int
vbat_init
(
void
);
46
52
int32_t
vbat_sample_mv
(
void
);
53
61
bool
vbat_is_empty
(
void
);
62
63
#ifdef __cplusplus
64
}
65
#endif
66
vbat_sample_mv
int32_t vbat_sample_mv(void)
Sample backup battery.
vbat_is_empty
bool vbat_is_empty(void)
Sample the backup battery and compare the result with the minimum value required to power the backup ...
vbat_init
int vbat_init(void)
Initialize backup battery monitoring.
Generated on Fri May 1 2026 15:22:59 by
1.13.2