rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
controllers
tcu
buttonshift.h
Go to the documentation of this file.
1
/**
2
* @file buttonshift.cpp
3
* @brief Polls pins for gear changes
4
*
5
* @date Aug 31, 2020
6
* @author David Holdeman, (c) 2020
7
*/
8
#pragma once
9
10
#include "
gear_controller.h
"
11
#include "
debounce.h
"
12
13
#if EFI_TCU
14
class
ButtonShiftController
:
public
GearControllerBase
{
15
public
:
16
ButtonShiftController
();
17
18
void
update
();
19
void
init
();
20
GearControllerMode
getMode
()
const
{
21
return
GearControllerMode::ButtonShift
;
22
}
23
private
:
24
ButtonDebounce
debounceUp
;
25
ButtonDebounce
debounceDown
;
26
};
27
28
ButtonShiftController
*
getButtonShiftController
();
29
#endif
// EFI_TCU
getButtonShiftController
ButtonShiftController * getButtonShiftController()
Definition
buttonshift.cpp:84
ButtonDebounce
Definition
debounce.h:16
ButtonShiftController
Definition
buttonshift.h:14
ButtonShiftController::getMode
GearControllerMode getMode() const
Definition
buttonshift.h:20
ButtonShiftController::debounceDown
ButtonDebounce debounceDown
Definition
buttonshift.h:25
ButtonShiftController::debounceUp
ButtonDebounce debounceUp
Definition
buttonshift.h:24
ButtonShiftController::init
void init()
Definition
buttonshift.cpp:23
ButtonShiftController::update
void update()
Definition
buttonshift.cpp:31
ButtonShiftController::ButtonShiftController
ButtonShiftController()
Definition
buttonshift.cpp:16
GearControllerBase
Definition
gear_controller.h:11
debounce.h
Generic button debounce class https://en.wikipedia.org/wiki/Switch#Contact_bounce If we don't 'deboun...
gear_controller.h
GearControllerMode
GearControllerMode
Definition
rusefi_enums.h:824
GearControllerMode::ButtonShift
@ ButtonShift
Generated on Sat Sep 27 2025 00:10:06 for rusEFI by
1.9.8