/** * @file trigger_decoder.h * * @date Dec 24, 2013 * @author Andrey Belomutskiy, (c) 2012-2014 */ #ifndef TRIGGER_DECODER_H_ #define TRIGGER_DECODER_H_ #include #include "trigger_structure.h" #include "engine_configuration.h" #include "ec2.h" class TriggerStimulatorHelper { public: TriggerStimulatorHelper(); void nextStep(TriggerState *state, trigger_shape_s * shape, int i, trigger_config_s const*triggerConfig); private: bool primaryWheelState; bool secondaryWheelState; }; void initializeSkippedToothTriggerShapeExt(trigger_shape_s *s, int totalTeethCount, int skippedCount, operation_mode_e operationMode); int findTriggerZeroEventIndex(trigger_shape_s * shape, trigger_config_s const*triggerConfig); void initializeTriggerShape(Logging *logger, engine_configuration_s *engineConfiguration, engine_configuration2_s *engineConfiguration2); void initTriggerDecoder(void); #ifdef __cplusplus extern "C" { #endif int isTriggerDecoderError(void); #ifdef __cplusplus } #endif #endif /* TRIGGER_DECODER_H_ */