1 Star 0 Fork 4.9K

平凡 / docs

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

watchdog_if.h

Overview

Related Modules:

WATCHDOG

Description:

Declares standard watchdog APIs.

Since:

1.0

Summary

Enumerations

Enumeration Name

Description

WatchdogStatus { WATCHDOG_STOP, WATCHDOG_START }

Enumerates watchdog statuses.

Functions

Function Name

Description

WatchdogOpen (int16_t wdtId)

struct DevHandle

Opens a watchdog.

WatchdogClose (struct DevHandle *handle)

void 

Closes a watchdog.

WatchdogGetStatus (struct DevHandle *handle, int32_t *status)

int32_t 

Obtains the watchdog status.

WatchdogStart (struct DevHandle *handle)

int32_t 

Starts a watchdog.

WatchdogStop (struct DevHandle *handle)

int32_t 

Stops a watchdog.

WatchdogSetTimeout (struct DevHandle *handle, uint32_t seconds)

int32_t 

Sets the watchdog timeout duration.

WatchdogGetTimeout (struct DevHandle *handle, uint32_t *seconds)

int32_t 

Obtains the watchdog timeout duration.

WatchdogFeed (struct DevHandle *handle)

int32_t 

Feeds a watchdog, that is, resets a watchdog timer.

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

搜索帮助