|
demo-epb
v1.0
Elektrische Parkbremse - slohmaier Dev Process Demo
|
Implementierung des EPB-Schalter-Debouncers. Mehr ...
#include "switch_debouncer.h"gehe zum Quellcode dieser Datei
Datenstrukturen | |
| struct | DebouncerCtx |
Funktionen | |
| static SwitchState | raw_to_candidate (SwitchRaw raw) |
| EpbStatus | switch_init (void) |
| void | switch_step_10ms (SwitchRaw raw) |
| SwitchState | switch_get_state (void) |
Variablen | |
| static DebouncerCtx | s_ctx |
Implementierung des EPB-Schalter-Debouncers.
ASIL: QM.
Definiert in Datei switch_debouncer.c.
|
static |
Definiert in Zeile 20 der Datei switch_debouncer.c.
Benutzt SwitchRaw::apply_raw, SwitchRaw::release_raw, SWITCH_APPLY, SWITCH_NEUTRAL und SWITCH_RELEASE.
Wird benutzt von switch_step_10ms().
| SwitchState switch_get_state | ( | void | ) |
Definiert in Zeile 57 der Datei switch_debouncer.c.
Benutzt DebouncerCtx::current und s_ctx.
| EpbStatus switch_init | ( | void | ) |
Definiert in Zeile 31 der Datei switch_debouncer.c.
Benutzt DebouncerCtx::candidate, DebouncerCtx::candidate_count, DebouncerCtx::current, EPB_OK, s_ctx und SWITCH_NEUTRAL.
| void switch_step_10ms | ( | SwitchRaw | raw | ) |
Definiert in Zeile 39 der Datei switch_debouncer.c.
Benutzt DebouncerCtx::candidate, DebouncerCtx::candidate_count, DebouncerCtx::current, raw_to_candidate(), s_ctx und SWITCH_DEBOUNCE_SAMPLES.
|
static |
Definiert in Zeile 18 der Datei switch_debouncer.c.
Wird benutzt von switch_get_state(), switch_init() und switch_step_10ms().