modify timer doc
This commit is contained in:
parent
e1a79e9b0b
commit
6a238b8875
|
@ -64,7 +64,7 @@ xs_uint32 xs_CurrentTicksGain(void);
|
|||
```c
|
||||
struct xs_Timer
|
||||
{
|
||||
char name[XS_NAME_MAX];
|
||||
xs_uint32 id;
|
||||
xs_uint8 active_status;
|
||||
xs_uint8 trigger_mode;
|
||||
void (*func_callback)(void *param);
|
||||
|
@ -79,13 +79,14 @@ typedef struct xs_Timer *xs_timer_x;
|
|||
| 成员 | 描述 |
|
||||
| --- | --- |
|
||||
| id | 软件定时器ID,用于唯一标识一个软件定时器 |
|
||||
| trigge_mode | 定时器的触发模式,包含单次触发和周期触发两种方式 |
|
||||
| active_status | 定时器的激活状态 |
|
||||
| trigger_mode | 定时器的触发模式,包含单次触发和周期触发两种方式 |
|
||||
| func_callback | 定时器超时回调函数 |
|
||||
| param | 定时器超时回调函数的参数 |
|
||||
| origin_timeslice | 初始化的超时时间 |
|
||||
| deadline_timeslice | 截止时间 |
|
||||
| link | 系统中所有定时器构成的链表 |
|
||||
| levels | 查询链表 |
|
||||
| sortlist | 处于激活态的定时器链表,并按时间排序 |
|
||||
|
||||
<span id="timer_api"></span>
|
||||
|
||||
|
|
Loading…
Reference in New Issue