XWOS API  4.0
XWOS C/C++ API参考手册
载入中...
搜索中...
未找到
DSwt.hxx
浏览该文件的文档.
1
13#ifndef __xwos_cxx_DSwt_hxx__
14#define __xwos_cxx_DSwt_hxx__
15
16#include <xwos/osal/swt.hxx>
17
18namespace xwos {
19
37class DSwt
38{
39 private:
43 public:
49 ~DSwt();
50 xwer_t getCtorRc() { return mCtorRc; }
56 xwer_t start(xwtm_t origin, xwtm_t period) {
57 return xwos_swt_start(mSwtDesc.swt, origin, period,
59 }
61 struct xwos_swt * getXwosObj() { return mSwtDesc.swt; }
63 /* 生命周期管理 */
67 protected:
68 virtual void swtAlarmFunction();
70 private:
71 static void sSwtAlarmFunction(struct xwos_swt * swt, DSwt * obj);
72};
73
78} // namespace xwos
79
80#endif /* xwos/cxx/DSwt.hxx */
动态软件定时器
Definition DSwt.hxx:38
xwer_t stop()
Definition DSwt.hxx:60
struct xwos_swt * getXwosObj()
Definition DSwt.hxx:61
xwer_t mCtorRc
Definition DSwt.hxx:41
xwer_t start(xwtm_t origin, xwtm_t period)
启动软件定时器
Definition DSwt.hxx:56
static void sSwtAlarmFunction(struct xwos_swt *swt, DSwt *obj)
Definition DSwt.cxx:33
xwer_t acquire()
Definition DSwt.hxx:64
virtual void swtAlarmFunction()
Definition DSwt.cxx:28
xwos_swt_d mSwtDesc
Definition DSwt.hxx:40
xwer_t getCtorRc()
Definition DSwt.hxx:50
xwer_t release()
Definition DSwt.hxx:65
xws64_t xwtm_t
XWOS系统时间 (有符号)
Definition type.h:742
signed long xwer_t
Definition type.h:554
unsigned long xwsq_t
Definition type.h:445
#define XWOS_SWT_FLAG_NULL
XWOS API:软件定时器标志 —— 无标志(默认标志)
Definition swt.h:98
static xwer_t xwos_swt_acquire(xwos_swt_d swtd)
XWOS API:检查软件定时器对象的标签并增加引用计数
Definition swt.h:220
static xwer_t xwos_swt_start(struct xwos_swt *swt, xwtm_t origin, xwtm_t period, xwos_swt_f callback, void *arg)
XWOS API:启动软件定时器
Definition swt.h:284
static xwer_t xwos_swt_stop(struct xwos_swt *swt)
XWOS API:停止软件定时器
Definition swt.h:301
static xwer_t xwos_swt_release(xwos_swt_d swtd)
XWOS API:检查对象的标签并减少引用计数
Definition swt.h:237
void(* xwos_swt_f)(struct xwos_swt *, void *)
XWOS API:软件定时器回调函数指针类型
Definition swt.h:80
Definition Cpu.hxx:19
XWOS API:软件定时器对象描述符
Definition swt.h:85
struct xwos_swt * swt
Definition swt.h:86
XWOS API:软件定时器
Definition swt.h:73
C++操作系统抽象层:软件定时器