demo-epb  v1.0
Elektrische Parkbremse - slohmaier Dev Process Demo
switch_debouncer.h
gehe zur Dokumentation dieser Datei
1 /**
2  * @file switch_debouncer.h
3  * @brief EPB-Schalter mit Software-Entprellung.
4  *
5  * @arch SWA-006
6  * @reqs SWE-025
7  *
8  * ASIL: QM
9  */
10 #ifndef SWITCH_DEBOUNCER_H
11 #define SWITCH_DEBOUNCER_H
12 
13 #include "epb_types.h"
14 
15 /** Step-Zyklus 10 ms. Debounce-Schwelle 50 ms (5 stabile Samples). */
16 #define SWITCH_DEBOUNCE_SAMPLES 5
17 
19 void switch_step_10ms(SwitchRaw raw);
21 
22 #endif /* SWITCH_DEBOUNCER_H */
Gemeinsame Typen fuer die EPB-Software.
EpbStatus
Definition: epb_types.h:13
SwitchState
Definition: epb_types.h:36
SwitchState switch_get_state(void)
void switch_step_10ms(SwitchRaw raw)
EpbStatus switch_init(void)