rusEFI
The most advanced open source ECU
Functions | Variables
allsensors.cpp File Reference

Detailed Description

Date
Nov 15, 2013
Author
Andrey Belomutskiy, (c) 2012-2020

Definition in file allsensors.cpp.

Functions

void initSensors ()
 
bool getAcToggle ()
 
bool hasAcToggle ()
 

Variables

ButtonDebounce acDebounce ("ac_switch")
 

Function Documentation

◆ getAcToggle()

bool getAcToggle ( )

Definition at line 19 of file allsensors.cpp.

19  {
20  return acDebounce.readPinState();
21 }
ButtonDebounce acDebounce("ac_switch")
bool readPinState()

Referenced by Engine::updateSwitchInputs().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ hasAcToggle()

bool hasAcToggle ( )

Definition at line 23 of file allsensors.cpp.

23  {
25 }
engine_configuration_s * engineConfiguration
bool isBrainPinValid(brain_pin_e brainPin)

Referenced by Engine::updateSwitchInputs().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ initSensors()

void initSensors ( )

Definition at line 14 of file allsensors.cpp.

14  {
17 }
void init(efitimems_t threshold, brain_pin_e &pin, pin_input_mode_e &mode, bool inverted=false)
Definition: debounce.cpp:23
void initMapDecoder()
Definition: map.cpp:68

Referenced by commonInitEngineController().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ acDebounce

ButtonDebounce acDebounce("ac_switch") ( "ac_switch"  )

Referenced by getAcToggle(), and initSensors().

Go to the source code of this file.