Contains the main definitions of the alarm sensor module. More...
Go to the source code of this file.
Macros | |
| #define | TRUE 1 |
| value for TRUE More... | |
| #define | FALSE 0 |
| value for FALSE More... | |
| #define | ALARM_SENSOR_VERSION 0.1 |
| software version of alarm sensor module More... | |
| #define | ALARM_SENSOR_ID 1u |
| sensor related identification and configuration data (TO BE SET FOR EACH SENSOR SEPARATELY!) each alarm sensor board can be connected to two sensors More... | |
| #define | ALARM_SENSOR_INPUT1_ENABLED 1 |
| enables or disables sensor input 1 –> to be adapted for each sensor! More... | |
| #define | ALARM_SENSOR_INPUT2_ENABLED 1 |
| enables or disables sensor input 1 –> to be adapted for each sensor! More... | |
| #define | ALARM_SENSOR_ENABLED 1 |
| ENABLE flag of current sensor –> to be adapted for each sensor! More... | |
| #define | ALAM_SENSOR_PROT 0xaf |
| alarm sensor protocol identifier More... | |
| #define | TRANSMISSION_ENABLED 1 |
| end of configuration More... | |
| #define | WARN_CYCLES 30u |
| number of warn cycles until the sensor falls back to the normal life sign rate More... | |
| #define | LCD_DEBUG 0 |
| enables or disables debugging with LCD output [0, 1] More... | |
| #define | LCD_BAT_DEBUG 1 |
| enables or disables the battery debug output More... | |
| #define | LCD_SEN_DEBUG 1 |
| enables or disables the sensor debug output More... | |
| #define | LCD_CON_DEBUG 1 |
| enables or disables the connection status debug output More... | |
| #define | AS_OCR2A 244u |
| value for compare match (244 = 250 ms for 1 MHz clock) More... | |
| #define | TIME_BASE_MS 250u |
| time base, based on system clock of 1 MHz, prescaler 1024 and CTC match value [ms] More... | |
| #define | CONTACT_CHECK_COUNTER 4u |
| counter (related to TIME_BASE_MS) for contact checking (==> 1 s) More... | |
| #define | BATTERY_CHECK_COUNTER 80u |
| counter (related to TIME_BASE_MS) for battery checking (==> 10 s) More... | |
| #define | LIFE_SIGN_COUNTER 160u+ALARM_SENSOR_ID |
| counter (related to TIME_BASE_MS) for life sign to main unit (==> 20 s + (ID * 0.25 s)) More... | |
| #define | POWER_SAFE_MODE 0xf7u |
| SM0 and SM1 activated, SE set to 1 –> power safe mode. More... | |
| #define | RFM12_POWER_SAFE_ENABLED 1u |
| enables or disables the power safe mode of the RFM12(B) module More... | |
Contains the main definitions of the alarm sensor module.
Platform: AVR ATmega (tested on ATmega328)
Include Files:
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file alarm_sensor.h.
1.8.14