timemanager update
This commit is contained in:
@ -1,18 +1,13 @@
|
||||
/**
|
||||
* @file Countdown.h
|
||||
* @brief This file defines the Countdown class.
|
||||
* @date 21.03.2013
|
||||
* @author baetz
|
||||
*/
|
||||
|
||||
#ifndef COUNTDOWN_H_
|
||||
#define COUNTDOWN_H_
|
||||
#ifndef FSFW_TIMEMANAGER_COUNTDOWN_H_
|
||||
#define FSFW_TIMEMANAGER_COUNTDOWN_H_
|
||||
|
||||
#include "Clock.h"
|
||||
|
||||
/**
|
||||
* @brief This file defines the Countdown class.
|
||||
* @author baetz
|
||||
*/
|
||||
class Countdown {
|
||||
private:
|
||||
uint32_t startTime;
|
||||
public:
|
||||
uint32_t timeout;
|
||||
Countdown(uint32_t initialTimeout = 0);
|
||||
@ -23,9 +18,14 @@ public:
|
||||
|
||||
bool isBusy() const;
|
||||
|
||||
ReturnValue_t resetTimer(); //!< Use last set timeout value and restart timer.
|
||||
//!< Use last set timeout value and restart timer.
|
||||
ReturnValue_t resetTimer();
|
||||
|
||||
void timeOut(); //!< Make hasTimedOut() return true
|
||||
//!< Make hasTimedOut() return true
|
||||
void timeOut();
|
||||
|
||||
private:
|
||||
uint32_t startTime = 0;
|
||||
};
|
||||
|
||||
#endif /* COUNTDOWN_H_ */
|
||||
#endif /* FSFW_TIMEMANAGER_COUNTDOWN_H_ */
|
||||
|
Reference in New Issue
Block a user