GCC Code Coverage Report


Directory: ./
File: firmware/controllers/tcu/buttonshift.h
Date: 2025-11-16 14:52:24
Coverage Exec Excl Total
Lines: 0.0% 0 0 2
Functions: 0.0% 0 0 1
Branches: -% 0 0 0
Decisions: -% 0 - 0

Line Branch Decision Exec Source
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
30