1 Star 0 Fork 4.9K

Lin_bruin / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
osal_timer-h.md 7.21 KB
一键复制 编辑 原始数据 按行查看 历史
wenjun 提交于 2020-09-08 10:08 . add OpenHarmony 1.0 baseline

osal_timer.h

Overview

Related Modules:

OSAL

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.

1
https://gitee.com/dreaminghell/docs.git
git@gitee.com:dreaminghell/docs.git
dreaminghell
docs
docs
master

搜索帮助