fsfw/fdir/EventCorrelation.h
Ulrich Mohr 575f70ba03 updating code from Flying Laptop
This is the framework of Flying Laptop OBSW version A.13.0.
2018-07-12 16:29:32 +02:00

24 lines
512 B
C++

#ifndef FRAMEWORK_FDIR_EVENTCORRELATION_H_
#define FRAMEWORK_FDIR_EVENTCORRELATION_H_
#include <framework/timemanager/Countdown.h>
class EventCorrelation {
public:
enum State {
CORRELATION_STARTED,
CORRELATED,
ALREADY_STARTED
};
EventCorrelation(uint32_t timeout);
~EventCorrelation();
EventCorrelation::State doesEventCorrelate();
bool isEventPending();
bool hasPendingEventTimedOut();
Countdown correlationTimer;
private:
bool eventPending;
};
#endif /* FRAMEWORK_FDIR_EVENTCORRELATION_H_ */