summaryrefslogtreecommitdiff
path: root/src/drivers/include/battery.hpp
blob: 9358f9b03ed90ba2d1c1ccb071df8d0feace1f96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once

#include <stdint.h>

#include "esp_err.h"

namespace drivers {

esp_err_t init_adc(void);

/**
 * Returns the current battery level in millivolts.
 */
uint32_t read_battery_voltage(void);

}  // namespace drivers