mFrame
載入中...
搜尋中...
無符合項目
hal/src/counter/Timer.h
1
7#ifndef HAL_AD0B942D_EE2D_4080_BDAD_3E9AACE341DA
8#define HAL_AD0B942D_EE2D_4080_BDAD_3E9AACE341DA
9
10/* ***************************************************************************************
11 * Include
12 */
13//----------------------------------------------------------------------------------------
14#include "./../Base.h"
15#include "./../counter/TimerEvent.h"
16//----------------------------------------------------------------------------------------
17
18/* ***************************************************************************************
19 * Namespace
20 */
21namespace hal::counter {
22 struct Timer;
23} // namespace hal::counter
24
25/* ***************************************************************************************
26 * Class/Interface/Struct
27 */
28
36 /* *************************************************************************************
37 * Method
38 */
39
45 virtual void cancel(void) abstract;
46
52 virtual bool isBusy(void) abstract;
53
60 virtual bool startAtTick(uint32 tick) abstract;
61
68 virtual bool startAtTime(float second) abstract;
69
75 virtual void setEvent(hal::counter::TimerEvent* event) abstract;
76};
77
78/* ***************************************************************************************
79 * End of file
80 */
81#endif /* HAL_AD0B942D_EE2D_4080_BDAD_3E9AACE341DA */
Definition PulseWidth.h:17
[Interface]硬體抽象層,初始化共基類。
Definition Base.h:34
[Interface] 計時器,停止事件。
Definition TimerEvent.h:34
[Interface] 硬體抽象層,計時器。
Definition hal/src/counter/Timer.h:35
virtual void setEvent(hal::counter::TimerEvent *event) override
設定計時器終止事件。
virtual bool startAtTime(float second) override
設置計時器以秒為單位開始。
virtual bool isBusy(void) override
檢查計時器是否忙碌。
virtual bool startAtTick(uint32 tick) override
以 tick 為單位啟動計時器。
virtual void cancel(void) override
取消計時器。