rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
hella_oil_level.h
Go to the documentation of this file.
1#pragma once
2
4
6public:
8
9 void init(brain_pin_e pin);
10 void deInit();
11
12 void onEdge(efitick_t nowNt);
13
14private:
16
17 // Measures the width of positive pulses (rising -> falling)
19
20 // Measures the time between pulses (rising -> rising)
22
23 enum class NextPulse { None, Temp, Level, Diag };
25};
void init(brain_pin_e pin)
HellaOilLevelSensor(SensorType type)
void onEdge(efitick_t nowNt)
SensorType type() const
Definition sensor.h:162
Base class for sensors that compute a value on one thread, and want to make it available to consumers...
@ Unassigned
SensorType
Definition sensor_type.h:18
brain_pin_e pin
Definition stm32_adc.cpp:15
Base class for a sensor that has its value asynchronously set, then later retrieved by a consumer.