26 lines
651 B
C++
26 lines
651 B
C++
/**
|
|
* @file trigger_emulator_algo.h
|
|
*
|
|
* @date Mar 3, 2014
|
|
* @author Andrey Belomutskiy, (c) 2012-2017
|
|
*/
|
|
|
|
#ifndef TRIGGER_EMULATOR_ALGO_H_
|
|
#define TRIGGER_EMULATOR_ALGO_H_
|
|
|
|
#include "engine.h"
|
|
#include "pwm_generator_logic.h"
|
|
|
|
class TriggerEmulatorHelper {
|
|
public:
|
|
TriggerEmulatorHelper();
|
|
void handleEmulatorCallback(PwmConfig *state, int stateIndex);
|
|
};
|
|
|
|
void initTriggerEmulatorLogic(Logging *sharedLogger DECLARE_ENGINE_PARAMETER_SUFFIX);
|
|
|
|
int getPreviousIndex(const int currentIndex, const int size);
|
|
bool needEvent(const int currentIndex, const int size, MultiWave *multiWave, int channelIndex);
|
|
|
|
#endif /* TRIGGER_EMULATOR_ALGO_H_ */
|