Alarm Sensor Module  0.1
⇒ back to Project Page
subfunctions.h
Go to the documentation of this file.
1 /****************************************************************************/
33 #ifndef SUBFUNCTIONS_H_INCLUDED
34 #define SUBFUNCTIONS_H_INCLUDED
35 
36 
37 #include <stdint.h>
38 
39 
40 /******************************************
41  \internal
42  Constant definitions
43 *******************************************/
44 
45 
46 #define R1_VALUE 4700
47 #define R2_VALUE 1300
48 
49 #define R_SUM ((uint32_t) R1_VALUE + (uint32_t) R2_VALUE)
50 
51 
52 
53 /******************************************
54  \internal
55  Function prototypes
56 *******************************************/
57 
58 uint32_t calculate_battery_voltage(uint32_t);
59 
60 
61 
62 
63 
64 #endif // SUBFUNCTIONS_H_INCLUDED
uint32_t calculate_battery_voltage(uint32_t)
Definition: subfunctions.c:58