2015-07-10 06:01:56 -07:00
|
|
|
/**
|
|
|
|
* @file engine_test_helper.h
|
|
|
|
*
|
|
|
|
* @date Jun 26, 2014
|
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2014
|
|
|
|
*/
|
|
|
|
#ifndef ENGINE_TEST_HELPER_H_
|
|
|
|
#define ENGINE_TEST_HELPER_H_
|
|
|
|
|
|
|
|
#include "engine.h"
|
|
|
|
#include "trigger_central.h"
|
|
|
|
#include "rpm_calculator.h"
|
2016-08-26 17:03:06 -07:00
|
|
|
#include "main_trigger_callback.h"
|
2015-07-10 06:01:56 -07:00
|
|
|
|
|
|
|
class EngineTestHelper {
|
|
|
|
public:
|
|
|
|
EngineTestHelper(engine_type_e engineType);
|
2016-08-26 17:03:06 -07:00
|
|
|
void applyTriggerShape();
|
2016-08-27 16:02:43 -07:00
|
|
|
void firePrimaryTriggerRise();
|
|
|
|
void firePrimaryTriggerFall();
|
2016-01-24 22:02:55 -08:00
|
|
|
void fireTriggerEvents(int count);
|
2018-03-04 13:34:23 -08:00
|
|
|
void fireTriggerEvents2(int count, int durationUs);
|
2015-07-10 06:01:56 -07:00
|
|
|
|
|
|
|
persistent_config_s persistentConfig;
|
|
|
|
Engine engine;
|
|
|
|
|
|
|
|
engine_configuration_s *ec;
|
|
|
|
engine_configuration_s *engineConfiguration;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* ENGINE_TEST_HELPER_H_ */
|