RT-Thread RTOS
1.2.0
An open source embedded real-time operating system
载入中...
搜索中...
未找到
lptimer.h
浏览该文件的文档.
1
/*
2
* Copyright (c) 2006-2023, RT-Thread Development Team
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*
6
* Change Logs:
7
* Date Author Notes
8
* 2021-10-11 zhangsz the first version
9
*/
10
11
#ifndef __LPTIMER_H__
12
#define __LPTIMER_H__
13
14
#include <
rtthread.h
>
15
16
struct
rt_lptimer
17
{
18
struct
rt_timer
timer
;
19
rt_list_t
list
;
20
};
21
typedef
struct
rt_lptimer
*
rt_lptimer_t
;
22
23
void
rt_lptimer_init
(
rt_lptimer_t
timer
,
24
const
char
*name,
25
void
(*timeout)(
void
*parameter),
26
void
*parameter,
27
rt_tick_t
time,
28
rt_uint8_t
flag);
29
30
rt_err_t
rt_lptimer_detach
(
rt_lptimer_t
timer
);
31
rt_err_t
rt_lptimer_start
(
rt_lptimer_t
timer
);
32
rt_err_t
rt_lptimer_stop
(
rt_lptimer_t
timer
);
33
34
rt_err_t
rt_lptimer_control
(
rt_lptimer_t
timer
,
int
cmd,
void
*arg);
35
36
rt_tick_t
rt_lptimer_next_timeout_tick
(
void
);
37
38
#endif
rt_lptimer_t
struct rt_lptimer * rt_lptimer_t
定义
lptimer.h:21
rt_lptimer_stop
rt_err_t rt_lptimer_stop(rt_lptimer_t timer)
rt_lptimer_detach
rt_err_t rt_lptimer_detach(rt_lptimer_t timer)
rt_lptimer_control
rt_err_t rt_lptimer_control(rt_lptimer_t timer, int cmd, void *arg)
rt_lptimer_start
rt_err_t rt_lptimer_start(rt_lptimer_t timer)
rt_lptimer_init
void rt_lptimer_init(rt_lptimer_t timer, const char *name, void(*timeout)(void *parameter), void *parameter, rt_tick_t time, rt_uint8_t flag)
rt_lptimer_next_timeout_tick
rt_tick_t rt_lptimer_next_timeout_tick(void)
rtthread.h
rt_err_t
rt_base_t rt_err_t
定义
rttypes.h:84
rt_uint8_t
unsigned char rt_uint8_t
定义
rttypes.h:51
rt_tick_t
rt_uint32_t rt_tick_t
定义
rttypes.h:86
rt_list_t
struct rt_list_node rt_list_t
定义
rttypes.h:124
rt_lptimer
定义
lptimer.h:17
rt_lptimer::list
rt_list_t list
定义
lptimer.h:19
rt_lptimer::timer
struct rt_timer timer
定义
lptimer.h:18
rt_timer
定义
rtdef.h:563
components
drivers
include
drivers
lptimer.h
制作者
1.13.1