Swadge ESP32-S2
APIs to develop for the Magfest Swadge
Toggle main menu visibility
Loading...
Searching...
No Matches
hdw-battmon.h
Go to the documentation of this file.
1
#ifndef _HDW_BATTMON_H_
2
#define _HDW_BATTMON_H_
3
31
32
#include <soc/gpio_num.h>
33
34
void
initBattmon
(gpio_num_t gpio);
35
void
deinitBattmon
(
void
);
36
void
powerDownBattmon
(
void
);
37
void
powerUpBattmon
(
void
);
38
int
readBattmon
(
void
);
39
40
#endif
powerDownBattmon
void powerDownBattmon(void)
Power down the battery monitor.
Definition
hdw-battmon.c:106
powerUpBattmon
void powerUpBattmon(void)
Power up the battery monitor.
Definition
hdw-battmon.c:114
readBattmon
int readBattmon(void)
Read and return the battery voltage.
Definition
hdw-battmon.c:124
initBattmon
void initBattmon(gpio_num_t gpio)
Initialize a oneshot analog-to-digital unit to read the battery voltage.
Definition
hdw-battmon.c:53
deinitBattmon
void deinitBattmon(void)
Deinitialize the analog-to-digital unit used to read the battery voltage.
Definition
hdw-battmon.c:89
components
hdw-battmon
include
hdw-battmon.h
Generated by
1.17.0