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
33
#ifndef PERIPH_VBAT_H
34
#define PERIPH_VBAT_H
35
36
#include <stdbool.h>
37
#include <stdint.h>
38
39
#ifdef __cplusplus
40
extern
"C"
{
41
#endif
42
49
int
vbat_init
(
void
);
50
56
int32_t
vbat_sample_mv
(
void
);
57
65
bool
vbat_is_empty
(
void
);
66
67
#ifdef __cplusplus
68
}
69
#endif
70
71
#endif
/* PERIPH_VBAT_H */
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 Sat Nov 23 2024 19:57:24 by
1.9.8