13#ifndef __DEV_ALARM_H__
14#define __DEV_ALARM_H__
19#define RT_ALARM_TM_NOW -1
23#define RT_ALARM_ONESHOT 0x000
24#define RT_ALARM_DAILY 0x100
25#define RT_ALARM_WEEKLY 0x200
26#define RT_ALARM_MONTHLY 0x400
27#define RT_ALARM_YAERLY 0x800
28#define RT_ALARM_HOUR 0x1000
29#define RT_ALARM_MINUTE 0x2000
30#define RT_ALARM_SECOND 0x4000
32#define RT_ALARM_STATE_INITED 0x02
33#define RT_ALARM_STATE_START 0x01
34#define RT_ALARM_STATE_STOP 0x00
37#define RT_ALARM_CTRL_MODIFY 1
rt_err_t rt_alarm_start(rt_alarm_t alarm)
void(* rt_alarm_callback_t)(rt_alarm_t alarm, time_t timestamp)
int rt_alarm_system_init(void)
rt_alarm_t rt_alarm_create(rt_alarm_callback_t callback, struct rt_alarm_setup *setup)
void rt_alarm_update(rt_device_t dev, rt_uint32_t event)
rt_err_t rt_alarm_stop(rt_alarm_t alarm)
rt_err_t rt_alarm_control(rt_alarm_t alarm, int cmd, void *arg)
rt_err_t rt_alarm_delete(rt_alarm_t alarm)
struct rt_alarm * rt_alarm_t
struct rt_device * rt_device_t
struct rt_list_node rt_list_t
struct rt_alarm * current
rt_alarm_callback_t callback