36 lines
894 B
C
36 lines
894 B
C
/**
|
|
* @file trigger_decoder.h
|
|
*
|
|
* @date Dec 24, 2013
|
|
* @author Andrey Belomutskiy, (c) 2012-2013
|
|
*/
|
|
|
|
#ifndef TRIGGER_DECODER_H_
|
|
#define TRIGGER_DECODER_H_
|
|
|
|
#include <time.h>
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
|
|
#include "trigger_structure.h"
|
|
#include "engine_configuration.h"
|
|
|
|
#else
|
|
|
|
#include "trigger_structure.h"
|
|
#include "engine_configuration.h"
|
|
|
|
#endif
|
|
|
|
|
|
int isTriggerDecoderError(void);
|
|
void processTriggerEvent(trigger_state_s *shaftPositionState, trigger_shape_s *triggerShape, trigger_config_s *triggerConfig, ShaftEvents signal, time_t now);
|
|
void initializeSkippedToothTriggerShapeExt(engine_configuration2_s *engineConfiguration2, int totalTeethCount, int skippedCount);
|
|
void initializeTriggerShape(engine_configuration_s *engineConfiguration, engine_configuration2_s *engineConfiguration2);
|
|
void initTriggerDecoder(void);
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif /* TRIGGER_DECODER_H_ */
|