Version für den BSW Nottaster - OUT1

Dependencies:   FreescaleIAP MODSERIAL mbed monitor timer0

Fork of 19_Taster_a by Notaus

Committer:
mauchcontrols
Date:
Wed Aug 19 15:15:28 2015 +0000
Revision:
22:dc30e220da6e
Parent:
19:f3c41bbc809a
angepasst f?r den BSW Nottaster - OUT1

Who changed what in which revision?

UserRevisionLine numberNew contents of line
rs27 19:f3c41bbc809a 1 #ifndef MAIN_H
rs27 19:f3c41bbc809a 2 #define MAIN_H
rs27 19:f3c41bbc809a 3
rs27 19:f3c41bbc809a 4 #define CR 13
rs27 19:f3c41bbc809a 5 #define LED_AUS 0
rs27 19:f3c41bbc809a 6 #define LED_EIN 1
rs27 19:f3c41bbc809a 7
rs27 19:f3c41bbc809a 8 #define BOOL_FMT(bool_expr) (bool_expr) ? "ein" : "aus"
rs27 19:f3c41bbc809a 9
rs27 19:f3c41bbc809a 10 struct di_struct {
rs27 19:f3c41bbc809a 11 bool aktiv; // Flag zur Steuerung
rs27 19:f3c41bbc809a 12 bool old; // alter Wert vom Eingang für Flankenerkennung
rs27 19:f3c41bbc809a 13 bool filter; // ein Flankengetriggertes Signal muss mindestens 10ms anliegen
rs27 19:f3c41bbc809a 14 bool optischer_alarm; // für die Bestätigung von IN3
rs27 19:f3c41bbc809a 15 bool summer; // Flag für Zeitsteuerung des Summers
rs27 19:f3c41bbc809a 16 };
rs27 19:f3c41bbc809a 17
rs27 19:f3c41bbc809a 18 #endif