Timer Class.
更多...
#include <cpp_timer.h>
|
kstat_t | create (const name_t *name, timer_cb_t cb, uint32_t millisec, void *arg) |
|
kstat_t | destory (void) |
|
kstat_t | start (void) |
|
kstat_t | stop (void) |
|
ktimer_t * | self (void) |
|
Timer Class.
在文件 cpp_timer.h 第 21 行定义.
◆ create()
kstat_t create |
( |
const name_t * |
name, |
|
|
timer_cb_t |
cb, |
|
|
uint32_t |
millisec, |
|
|
void * |
arg |
|
) |
| |
This function will create a timer
- 参数
-
[in] | name | name of the timer |
[in] | cb | callbak of the timer |
[in] | millisec | millisec of timer period |
[in] | arg | the argument of the callback |
- 返回
- the operation status, RHINO_SUCCESS is OK, others is error
◆ destory()
This function will delete a timer
- 参数
-
- 返回
- the operation status, RHINO_SUCCESS is OK, others is error
◆ self()
◆ start()
This function will start a timer
- 参数
-
- 返回
- the operation status, RHINO_SUCCESS is OK, others is error
◆ stop()
This function will stop a timer
- 参数
-
- 返回
- the operation status, RHINO_SUCCESS is OK, others is error
该类的文档由以下文件生成:
- /Users/yaoqiuguo/workspace/aos33/components/cplusplus/include/cpp_timer.h