/*******************************************************************************
|
* File Name : Power.h
|
* Description :
|
* Created on : 2019Äê3ÔÂ22ÈÕ
|
* Author : www.hido-studio.com
|
*******************************************************************************/
|
#ifndef _RTC_H_
|
#define _RTC_H_
|
/*******************************************************************************
|
* Include Files *
|
*******************************************************************************/
|
#include "HIDO_Typedef.h"
|
|
/*******************************************************************************
|
* Macro *
|
*******************************************************************************/
|
|
/*******************************************************************************
|
* Type Definition *
|
*******************************************************************************/
|
typedef struct
|
{
|
HIDO_UINT16 m_u16Year; /* Äê */
|
HIDO_UINT8 m_u8Month; /* ÔÂ */
|
HIDO_UINT8 m_u8Day; /* ÈÕ */
|
HIDO_UINT8 m_u8Hour; /* ʱ */
|
HIDO_UINT8 m_u8Min; /* ·Ö */
|
HIDO_UINT8 m_u8Sec; /* Ãë */
|
} ST_RTCDateTime;
|
|
/*******************************************************************************
|
* Global Function *
|
*******************************************************************************/
|
HIDO_VOID RTC_Init(void *_pRTC);
|
HIDO_VOID RTC_AddHours(ST_RTCDateTime *_pstDateTime, HIDO_UINT32 _u32Hours);
|
HIDO_INT32 RTC_GetDateTime(ST_RTCDateTime *_pstDateTime);
|
HIDO_INT32 RTC_SetDateTime(ST_RTCDateTime *_pstDateTime);
|
HIDO_UINT32 RTC_MakeTime(ST_RTCDateTime *_pstDateTime);
|
HIDO_UINT32 RTC_GetDiffSeconds(ST_RTCDateTime *_pstDateTime0, ST_RTCDateTime *_pstDateTime1);
|
HIDO_UINT32 RTC_GetSeconds(void);
|
HIDO_INT32 RTC_SetWakeUp(HIDO_UINT32 _u32Ms);
|
|
#endif /* _RTC_H_ */
|