semf
timer.h
Go to the documentation of this file.
1
10
#ifndef SEMF_APP_SYSTEM_TIMER_H_
11
#define SEMF_APP_SYSTEM_TIMER_H_
12
13
#include <
semf/utils/core/error.h
>
14
#include <
semf/utils/core/signals/signal.h
>
15
16
namespace
semf
17
{
18
namespace
app
19
{
23
class
Timer
24
{
25
public
:
26
virtual
~Timer
() =
default
;
27
29
virtual
void
start
() = 0;
31
virtual
void
stop
() = 0;
33
virtual
void
reset
() = 0;
34
36
Signal<>
timeout
;
38
Signal<Error>
error
;
39
};
40
}
/* namespace app */
41
}
/* namespace semf */
42
#endif
// SEMF_APP_SYSTEM_TIMER_H_
semf::Signal
Signal for lightweight signal/slot implementation. One signal can be connected to multiple slots and ...
Definition:
signal.h:41
semf::app::Timer
Class for using timer hardware.
Definition:
timer.h:24
semf::app::Timer::stop
virtual void stop()=0
semf::app::Timer::start
virtual void start()=0
semf::app::Timer::~Timer
virtual ~Timer()=default
semf::app::Timer::error
Signal< Error > error
Definition:
timer.h:38
semf::app::Timer::reset
virtual void reset()=0
semf::app::Timer::timeout
Signal timeout
Definition:
timer.h:36
error.h
semf
Definition:
batterymodelwithoutdataset.h:18
signal.h
semf
app
system
timer.h
Generated by
1.9.4