MAV'RIC
analog_monitor.h
1 /*
2  * analog_monitor.h
3  *
4  * Created: 12/10/2013 23:47:01
5  * Author: sfx
6  */
7 
8 
9 #ifndef ANALOG_MONITOR_H_
10 #define ANALOG_MONITOR_H_
11 
12 #define CONV_FACTOR_BAT 0.00265
13 #define CONV_FACTOR_INT 0.00265
14 #define CONV_FACTOR_6V 0.00155
15 #define CONV_FACTOR_5V 0.00155
16 
17 void analog_monitor_init();
18 void trigger_analog_monitor();
19 float get_battery_rail();
20 
21 float get_internal_rail();
22 
23 
24 float get_6V_analog_rail();
25 
26 
27 float get_5V_analog_rail();
28 
29 #endif /* ANALOG_MONITOR_H_ */