|
demo-epb
v1.0
Elektrische Parkbremse - slohmaier Dev Process Demo
|
EPB switch with software debounce. Mehr ...
#include "epb_types.h"gehe zum Quellcode dieser Datei
Makrodefinitionen | |
| #define | SWITCH_DEBOUNCE_SAMPLES 5 |
| Step cycle 10 ms. Mehr ... | |
Funktionen | |
| EpbStatus | switch_init (void) |
| void | switch_step_10ms (SwitchRaw raw) |
| SwitchState | switch_get_state (void) |
EPB switch with software debounce.
ASIL: QM
Definiert in Datei switch_debouncer.h.
| #define SWITCH_DEBOUNCE_SAMPLES 5 |
Step cycle 10 ms.
Debounce threshold 50 ms (5 stable samples).
Definiert in Zeile 16 der Datei switch_debouncer.h.
| 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.