Swadge 2024 2.0.0
APIs to develop games for the Magfest Swadge
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
hdw-battmon.h
Go to the documentation of this file.
1#ifndef _HDW_BATTMON_H_
2#define _HDW_BATTMON_H_
3
32#include <soc/gpio_num.h>
33
34void initBattmon(gpio_num_t gpio);
35void deinitBattmon(void);
36void powerDownBattmon(void);
37void powerUpBattmon(void);
38int readBattmon(void);
39
40#endif
void powerDownBattmon(void)
Power down the battery monitor.
Definition hdw-battmon.c:106
void powerUpBattmon(void)
Power up the battery monitor.
Definition hdw-battmon.c:114
int readBattmon(void)
Read and return the battery voltage.
Definition hdw-battmon.c:124
void initBattmon(gpio_num_t gpio)
Initialize a oneshot analog-to-digital unit to read the battery voltage.
Definition hdw-battmon.c:53
void deinitBattmon(void)
Deinitialize the analog-to-digital unit used to read the battery voltage.
Definition hdw-battmon.c:89