RT-Thread RTOS 1.2.0
An open source embedded real-time operating system
|
结构体 | |
struct | rt_rtc_wkalarm |
struct | rt_rtc_ops |
struct | rt_rtc_device |
宏定义 | |
#define | RT_DEVICE_CTRL_RTC_GET_TIME (RT_DEVICE_CTRL_BASE(RTC) + 0x01) |
#define | RT_DEVICE_CTRL_RTC_SET_TIME (RT_DEVICE_CTRL_BASE(RTC) + 0x02) |
#define | RT_DEVICE_CTRL_RTC_GET_TIMEVAL (RT_DEVICE_CTRL_BASE(RTC) + 0x03) |
#define | RT_DEVICE_CTRL_RTC_SET_TIMEVAL (RT_DEVICE_CTRL_BASE(RTC) + 0x04) |
#define | RT_DEVICE_CTRL_RTC_GET_ALARM (RT_DEVICE_CTRL_BASE(RTC) + 0x05) |
#define | RT_DEVICE_CTRL_RTC_SET_ALARM (RT_DEVICE_CTRL_BASE(RTC) + 0x06) |
#define | RT_DEVICE_CTRL_RTC_GET_TIMESPEC (RT_DEVICE_CTRL_BASE(RTC) + 0x07) |
#define | RT_DEVICE_CTRL_RTC_SET_TIMESPEC (RT_DEVICE_CTRL_BASE(RTC) + 0x08) |
#define | RT_DEVICE_CTRL_RTC_GET_TIMERES (RT_DEVICE_CTRL_BASE(RTC) + 0x09) |
类型定义 | |
typedef struct rt_rtc_device | rt_rtc_dev_t |
函数 | |
rt_err_t | rt_hw_rtc_register (rt_rtc_dev_t *rtc, const char *name, rt_uint32_t flag, void *data) |
rt_err_t | set_date (rt_uint32_t year, rt_uint32_t month, rt_uint32_t day) |
rt_err_t | set_time (rt_uint32_t hour, rt_uint32_t minute, rt_uint32_t second) |
rt_err_t | set_timestamp (time_t timestamp) |
rt_err_t | get_timestamp (time_t *timestamp) |