加入收藏
举报
当前仅显示指定条件回帖 [ 展开查看全部 ]
02-14 20:02
#
文件名称:
osal_timer-h.md
所在目录:
Openharmony v1.0 / docs / api / api-SmartVision-Devices
文件大小:
7.21 KB
下载地址:
fenwii/OpenHarmony
   
免责声明:本网站仅提供指向 GitHub 上的文件的链接,所有文件的版权归原作者所有,本网站不对文件内容的合法性、准确性或安全性承担任何责任。
文本预览:
# osal\_timer.h
## **Overview**
**Related Modules:**
[OSAL](OSAL.md)
**Description:**
Declares timer types and interfaces.
**Since:**
1.0
**Version:**
1.0
## **Summary**
## Data Structures









Data Structure Name


Description


OsalTimer


Describes a timer.



## Macros









Macro Name and Value


Description


OSAL_DECLARE_TIMER(timer)   OsalTimer timer


Defines a timer macro.



## Typedefs









Typedef Name


Description


OsalTimerFunc) (uintptr_t arg)


typedef void(* 


Describes a timer execution function type.



## Functions





















Function Name


Description


OsalTimerCreate (OsalTimer *timer, uint32_t interval, OsalTimerFunc func, uintptr_t arg)


int32_t 


Creates a timer.


OsalTimerDelete (OsalTimer *timer)


int32_t 


Deletes a timer.


OsalTimerStartOnce (OsalTimer *timer)


int32_t 


Starts a timer.


OsalTimerStartLoop (OsalTimer *timer)


int32_t 


Starts a periodic timer.


OsalTimerSetTimeout (OsalTimer *timer, uint32_t interval)


int32_t 


Sets the interval of a timer.


点赞 回复
回帖
支持markdown部分语法 ?