mirror of https://github.com/rusefi/wideband.git
24 lines
652 B
C
24 lines
652 B
C
#pragma once
|
|
|
|
struct ISampler
|
|
{
|
|
virtual float GetNernstDc() const = 0;
|
|
virtual float GetNernstAc() const = 0;
|
|
virtual float GetPumpNominalCurrent() const = 0;
|
|
virtual float GetInternalBatteryVoltage() const = 0;
|
|
virtual float GetSensorTemperature() const = 0;
|
|
virtual float GetSensorInternalResistance() const = 0;
|
|
};
|
|
|
|
// Get the sampler for a particular channel
|
|
ISampler& GetSampler(int ch);
|
|
|
|
void StartSampling();
|
|
|
|
float GetNernstAc(int ch);
|
|
float GetSensorInternalResistance(int ch);
|
|
float GetSensorTemperature(int ch);
|
|
float GetNernstDc(int ch);
|
|
float GetPumpNominalCurrent(int ch);
|
|
float GetInternalBatteryVoltage(int ch);
|