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 */
13
typedef
enum
14
{
15
NO_BATT
,
16
THREE
= 3,
17
FOUR
,
18
FIVE
,
19
SIX
20
}
battCells_e
;
21
22
/* Global Variables */
23
extern
float
battVoltage
;
24
extern
battCells_e
cells
;
25
extern
bool
battLow
;
26
extern
bool
battEmpty
;
27
28
/* Function Prototypes */
29
void
battMonInit
(
void
);
30
void
battMonRead
(
void
);
31
32
#endif
/* SRC_BATTERY_H_ */
battEmpty
bool battEmpty
Definition:
battery.c:15
battCells_e
battCells_e
Definition:
battery.h:14
THREE
@ THREE
Definition:
battery.h:16
FOUR
@ FOUR
Definition:
battery.h:17
FIVE
@ FIVE
Definition:
battery.h:18
NO_BATT
@ NO_BATT
Definition:
battery.h:15
SIX
@ SIX
Definition:
battery.h:19
battMonRead
void battMonRead(void)
Starts the ADC conversion and processes the value.
Definition:
battery.c:41
battMonInit
void battMonInit(void)
Initializes the battery monitor.
Definition:
battery.c:26
battVoltage
float battVoltage
Definition:
battery.c:12
battLow
bool battLow
Definition:
battery.c:14
cells
battCells_e cells
Definition:
battery.c:13
STM32CubeIDE
Autodrone32
Src
battery.h
Generated by
1.9.3