RT-Thread RTOS 1.2.0
An open source embedded real-time operating system
|
结构体 | |
struct | rt_alarm |
struct | rt_alarm_setup |
struct | rt_alarm_container |
宏定义 | |
#define | RT_ALARM_TM_NOW |
#define | RT_ALARM_ONESHOT 0x000 /* only alarm once */ |
#define | RT_ALARM_DAILY 0x100 /* alarm everyday */ |
#define | RT_ALARM_WEEKLY 0x200 /* alarm weekly at Monday or Friday etc. */ |
#define | RT_ALARM_MONTHLY 0x400 /* alarm monthly at someday */ |
#define | RT_ALARM_YAERLY 0x800 /* alarm yearly at a certain date */ |
#define | RT_ALARM_HOUR 0x1000 /* alarm each hour at a certain min:second */ |
#define | RT_ALARM_MINUTE 0x2000 /* alarm each minute at a certain second */ |
#define | RT_ALARM_SECOND 0x4000 /* alarm each second */ |
#define | RT_ALARM_STATE_INITED 0x02 |
#define | RT_ALARM_STATE_START 0x01 |
#define | RT_ALARM_STATE_STOP 0x00 |
#define | RT_ALARM_CTRL_MODIFY 1 /* modify alarm time or alarm flag */ |
类型定义 | |
typedef struct rt_alarm * | rt_alarm_t |
typedef void(* | rt_alarm_callback_t) (rt_alarm_t alarm, time_t timestamp) |
函数 | |
rt_alarm_t | rt_alarm_create (rt_alarm_callback_t callback, struct rt_alarm_setup *setup) |
rt_err_t | rt_alarm_control (rt_alarm_t alarm, int cmd, void *arg) |
void | rt_alarm_update (rt_device_t dev, rt_uint32_t event) |
rt_err_t | rt_alarm_delete (rt_alarm_t alarm) |
rt_err_t | rt_alarm_start (rt_alarm_t alarm) |
rt_err_t | rt_alarm_stop (rt_alarm_t alarm) |
int | rt_alarm_system_init (void) |
#define RT_ALARM_TM_NOW |
在文件 dev_alarm.h 第 19 行定义.
#define RT_ALARM_ONESHOT 0x000 /* only alarm once */ |
在文件 dev_alarm.h 第 22 行定义.
#define RT_ALARM_DAILY 0x100 /* alarm everyday */ |
在文件 dev_alarm.h 第 23 行定义.
#define RT_ALARM_WEEKLY 0x200 /* alarm weekly at Monday or Friday etc. */ |
在文件 dev_alarm.h 第 24 行定义.
#define RT_ALARM_MONTHLY 0x400 /* alarm monthly at someday */ |
在文件 dev_alarm.h 第 25 行定义.
#define RT_ALARM_YAERLY 0x800 /* alarm yearly at a certain date */ |
在文件 dev_alarm.h 第 26 行定义.
#define RT_ALARM_HOUR 0x1000 /* alarm each hour at a certain min:second */ |
在文件 dev_alarm.h 第 27 行定义.
#define RT_ALARM_MINUTE 0x2000 /* alarm each minute at a certain second */ |
在文件 dev_alarm.h 第 28 行定义.
#define RT_ALARM_SECOND 0x4000 /* alarm each second */ |
在文件 dev_alarm.h 第 29 行定义.
#define RT_ALARM_STATE_INITED 0x02 |
在文件 dev_alarm.h 第 31 行定义.
#define RT_ALARM_STATE_START 0x01 |
在文件 dev_alarm.h 第 32 行定义.
#define RT_ALARM_STATE_STOP 0x00 |
在文件 dev_alarm.h 第 33 行定义.
#define RT_ALARM_CTRL_MODIFY 1 /* modify alarm time or alarm flag */ |
在文件 dev_alarm.h 第 36 行定义.
typedef struct rt_alarm* rt_alarm_t |
在文件 dev_alarm.h 第 38 行定义.
typedef void(* rt_alarm_callback_t) (rt_alarm_t alarm, time_t timestamp) |
在文件 dev_alarm.h 第 39 行定义.
rt_alarm_t rt_alarm_create | ( | rt_alarm_callback_t | callback, |
struct rt_alarm_setup * | setup ) |
rt_err_t rt_alarm_control | ( | rt_alarm_t | alarm, |
int | cmd, | ||
void * | arg ) |
void rt_alarm_update | ( | rt_device_t | dev, |
rt_uint32_t | event ) |
rt_err_t rt_alarm_delete | ( | rt_alarm_t | alarm | ) |
rt_err_t rt_alarm_start | ( | rt_alarm_t | alarm | ) |
rt_err_t rt_alarm_stop | ( | rt_alarm_t | alarm | ) |
int rt_alarm_system_init | ( | void | ) |