testArduino/fsfw/fdir/EventCorrelation.h

24 lines
505 B
C
Raw Normal View History

2021-06-21 15:04:15 +02:00
#ifndef FRAMEWORK_FDIR_EVENTCORRELATION_H_
#define FRAMEWORK_FDIR_EVENTCORRELATION_H_
#include "../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_ */