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
18
EpbStatus
switch_init
(
void
);
19
void
switch_step_10ms
(
SwitchRaw
raw);
20
SwitchState
switch_get_state
(
void
);
21
22
#endif
/* SWITCH_DEBOUNCER_H */
epb_types.h
Gemeinsame Typen fuer die EPB-Software.
EpbStatus
EpbStatus
Definition:
epb_types.h:13
SwitchState
SwitchState
Definition:
epb_types.h:36
SwitchRaw
Definition:
epb_types.h:42
switch_get_state
SwitchState switch_get_state(void)
Definition:
switch_debouncer.c:57
switch_step_10ms
void switch_step_10ms(SwitchRaw raw)
Definition:
switch_debouncer.c:39
switch_init
EpbStatus switch_init(void)
Definition:
switch_debouncer.c:31
src
switch_debouncer.h
Erzeugt von
1.9.1