Alarm Sensor Module  0.1
⇒ back to Project Page
alarm_sensor.h
Go to the documentation of this file.
1 /****************************************************************************/
32 #ifndef ALARM_SENSOR_H_INCLUDED
33 #define ALARM_SENSOR_H_INCLUDED
34 
35 
36 
37 /*********************************************************************************************/
50 /*********************************************************************************************/
51 
52 
53 
54 
55 /******************************************
56  \internal
57  General Definitions
58 *******************************************/
59 
60 #ifndef TRUE
61 #define TRUE 1
62 #endif
63 #ifndef FALSE
64 #define FALSE 0
65 #endif
66 
67 
68 
69 
70 
71 #define ALARM_SENSOR_VERSION 0.1
72 
73 
76 
77 #define ALARM_SENSOR_ID 1u
78 #define ALARM_SENSOR_INPUT1_ENABLED 1
79 #define ALARM_SENSOR_INPUT2_ENABLED 1
80 #define ALARM_SENSOR_ENABLED 1
81 
82 #define ALAM_SENSOR_PROT 0xaf
83 
84 
86 
87 #define TRANSMISSION_ENABLED 1
88 
89 #define WARN_CYCLES 30u
90 
91 
92 #define LCD_DEBUG 0
93 #define LCD_BAT_DEBUG 1
94 #define LCD_SEN_DEBUG 1
95 #define LCD_CON_DEBUG 1
96 
97 #define AS_OCR2A 244u
98 #define TIME_BASE_MS 250u
99 
100 #define CONTACT_CHECK_COUNTER 4u
101 #define BATTERY_CHECK_COUNTER 80u
102 #define LIFE_SIGN_COUNTER 160u+ALARM_SENSOR_ID
103 
104 #define POWER_SAFE_MODE 0xf7u
105 
106 #define RFM12_POWER_SAFE_ENABLED 1u
107 
108 
109 /******************************************
110  \internal
111  Definitions for interface to rfm12
112 *******************************************/
113 
114 
115 
116 /******************************************
117  \internal
118  Structure definitions
119 *******************************************/
120 
121 
122 
123 /******************************************
124  \internal
125  Function prototypes
126 *******************************************/
127 
128 
129 
130 
131 /******************************************
132  \internal
133  Register description
134 *******************************************/
135 
136 
137 
138 
139 #endif // ALARM_SENSOR_H_INCLUDED