60 lines
1.4 KiB
C
60 lines
1.4 KiB
C
/**
|
|
* @file init.h
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
// fine-grained method to facilitate testing
|
|
void initOverrideSensors();
|
|
|
|
// Call this once at startup to initialize, configure, and subscribe sensors
|
|
void initNewSensors();
|
|
|
|
void stopSensors();
|
|
|
|
// Call this whenever the configuration may have changed, so any sensors
|
|
// can be reconfigured with the new settings.
|
|
// Note: this may not be necessarily possible for all sensors, so some may
|
|
// do nothing when this is called.
|
|
void reconfigureSensors();
|
|
|
|
// Internal init functions for individual systems
|
|
// Sensor init/config
|
|
void initVbatt();
|
|
void initMaf();
|
|
void initMap();
|
|
void initTps();
|
|
void initFluidPressure();
|
|
void initThermistors();
|
|
void initCanSensors();
|
|
void initLambda();
|
|
void initEgt();
|
|
void initFlexSensor(bool isFirstTime);
|
|
void initFuelLevel();
|
|
void initBaro();
|
|
void initAuxSensors();
|
|
void initVehicleSpeedSensor();
|
|
void initTurbochargerSpeedSensor();
|
|
void initAuxSpeedSensors();
|
|
void initInputShaftSpeedSensor();
|
|
void initRangeSensors();
|
|
|
|
// Sensor reconfiguration
|
|
void deinitVbatt();
|
|
void deinitTps();
|
|
void deinitThermistors();
|
|
void deinitFluidPressure();
|
|
void deInitFlexSensor();
|
|
void deinitAuxSensors();
|
|
void deInitVehicleSpeedSensor();
|
|
void deinitTurbochargerSpeedSensor();
|
|
void deinitMap();
|
|
void deinitAuxSpeedSensors();
|
|
void deinitInputShaftSpeedSensor();
|
|
|
|
void stopEgt(void);
|
|
void startEgt(void);
|
|
|
|
|
|
void pokeAuxDigital();
|