Autodrone
Multi-Domain Vehicle
battery.h
Go to the documentation of this file.
1
9#ifndef SRC_BATTERY_H_
10#define SRC_BATTERY_H_
11
12/* Enumerations */
13typedef enum
14{
16 THREE = 3,
19 SIX
21
22/* Global Variables */
23extern float battVoltage;
24extern battCells_e cells;
25extern bool battLow;
26extern bool battEmpty;
27
28/* Function Prototypes */
29void battMonInit(void);
30void battMonRead(void);
31
32#endif /* SRC_BATTERY_H_ */
bool battEmpty
Definition: battery.c:15
battCells_e
Definition: battery.h:14
@ THREE
Definition: battery.h:16
@ FOUR
Definition: battery.h:17
@ FIVE
Definition: battery.h:18
@ NO_BATT
Definition: battery.h:15
@ SIX
Definition: battery.h:19
void battMonRead(void)
Starts the ADC conversion and processes the value.
Definition: battery.c:41
void battMonInit(void)
Initializes the battery monitor.
Definition: battery.c:26
float battVoltage
Definition: battery.c:12
bool battLow
Definition: battery.c:14
battCells_e cells
Definition: battery.c:13