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

Functions

void initBaro ()
 
void baroLps25Update ()
 

Variables

static Lps25 device
 
static Lps25Sensor sensor (device)
 

Function Documentation

◆ baroLps25Update()

void baroLps25Update ( )

Definition at line 19 of file init_baro.cpp.

19  {
20 #if EFI_PROD_CODE
21  if (device.hasInit()) {
22  sensor.update();
23  }
24 #endif // EFI_PROD_CODE
25 }
bool hasInit() const
Definition: lps25.h:19
void update()
Definition: Lps25Sensor.cpp:15
static Lps25 device
Definition: init_baro.cpp:4
static Lps25Sensor sensor(device)

Referenced by Engine::periodicSlowCallback().

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

◆ initBaro()

void initBaro ( )

Definition at line 7 of file init_baro.cpp.

7  {
8  // If there's already an external (analog) baro sensor configured,
9  // don't configure the internal one.
11  return;
12  }
13 
15  sensor.Register();
16  }
17 }
bool init(brain_pin_e scl, brain_pin_e sda)
Definition: lps25.cpp:37
bool Register()
Definition: sensor.cpp:131
virtual bool hasSensor() const
Definition: sensor.h:155
engine_configuration_s * engineConfiguration
@ BarometricPressure

Referenced by initNewSensors().

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

Variable Documentation

◆ device

Lps25 device
static

◆ sensor

Lps25Sensor sensor(device) ( device  )
static

Go to the source code of this file.