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
* 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
39
extern
"C"
{
40
#endif
41
48
int
vbat_init
(
void
);
49
55
int32_t
vbat_sample_mv
(
void
);
56
64
bool
vbat_is_empty
(
void
);
65
66
#ifdef __cplusplus
67
}
68
#endif
69
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 Thu Jul 3 2025 17:41:20 by
1.13.2