Alarm Sensor Module  0.1
⇒ back to Project Page
Macros | Functions
subfunctions.h File Reference
#include <stdint.h>
Include dependency graph for subfunctions.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define R1_VALUE   4700
 Value of resistor R1, connected to Vcc [Ohm]. More...
 
#define R2_VALUE   1300
 Value of resistor R2, connected to the ground [Ohm]. More...
 
#define R_SUM   ((uint32_t) R1_VALUE + (uint32_t) R2_VALUE)
 sum of both resistors More...
 

Functions

uint32_t calculate_battery_voltage (uint32_t)