1 Star 0 Fork 4.9K

bill / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
swtmr.md 7.14 KB
一键复制 编辑 原始数据 按行查看 历史
NEEN 提交于 2021-03-12 17:59 . !197 Docs Update version 1.0.1

swtmr

Command Function

This command is used to query information about system software timers.

Syntax

swtmr [ID]

Parameter Description

Table 1 Parameters

Parameter

Description

Value Range

ID

Indicates the ID of a software timer.

[0, 0xFFFFFFFF]

Usage

  • If the parameter is not specified, information about all software timers is displayed.
  • If the ID parameter is specified, information about the specified software timer is displayed.

Example

Enter swtmr and swtmr 1.

Output

Figure 1 Querying information about all software timers

Figure 2 Querying information about a specified software timer

Table 2 Output description

Parameter

Description

SwTmrID

Indicates the ID of the software timer.

State

Indicates the status of the software timer.

The value can be UnUsed, Created, or Ticking.

Mode

Indicates the mode of the software timer.

The value can be Once, Period, or NSD (one-time timer that will not be automatically deleted after the timer expires).

Interval

Indicates the number of ticks used by the software timer.

Count

Indicates the number of times that the software timer has been working.

Arg

Indicates the input parameter.

handlerAddr

Indicates the callback address.

NOTE:

  • The ID value can be in decimal or hexadecimal format.
  • If the ID value is within the range of [0, Number of current software timers - 1], the status of the specified software timer is returned. For other values, an error message is displayed.
1
https://gitee.com/ximeibaba/docs.git
git@gitee.com:ximeibaba/docs.git
ximeibaba
docs
docs
master

搜索帮助