⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rtc.h

📁 ARM7 lpc2100 RTC驱动API,源码有详细注解
💻 H
字号:


#define Bln_RTCReadYEAR
#define Bln_RTCReadMONTH
#define Bln_RTCReadDOY
#define Bln_RTCReadDOW
#define Bln_RTCReadDOM
#define Bln_RTCReadHOUR
#define Bln_RTCReadMIN
#define Bln_RTCReadSEC

#ifdef	Bln_RTCReadYEAR
	extern uint16 RTC_ReadYEAR;	//读年值
#endif

#ifdef	Bln_RTCReadMONTH
	extern uint8 RTC_ReadMONTH;	//读月值
#endif

#ifdef	Bln_RTCReadDOY
	extern uint16 RTC_ReadDOY;		//读天值
#endif

#ifdef	Bln_RTCReadDOW
	extern uint8 RTC_ReadDOW;		//读星期值
#endif

#ifdef	Bln_RTCReadDOM
	extern uint8 RTC_ReadDOM;		//读日值
#endif

#ifdef	Bln_RTCReadHOUR
	extern uint8 RTC_ReadHOUR;		//读小时值
#endif

#ifdef	Bln_RTCReadMIN
	extern uint8 RTC_ReadMIN;		//读分值
#endif

#ifdef	Bln_RTCReadSEC
	extern uint8 RTC_ReadSEC;		//读秒值
#endif



extern void  RTCInit(uint16 RTC_YEAR,uint8 RTC_MONTH,uint16 RTC_DOY,uint8 RTC_DOW,uint8 RTC_DOM,uint8 RTC_HOUR,uint8 RTC_MIN,uint8 RTC_SEC,uint16 RTC_CIIR);
extern void Func_RTCReadTime(void);
extern void  Func_RTCRest(void);
extern void Func_RTCAMR(uint8 RTCAMR_YEAR,uint8 RTCAMR_MONTH,uint8 RTCAMR_DOY,uint8 RTCAMR_DOW,uint8 RTCAMR_DOM,uint8 RTCAMR_HOUR,uint8 RTCAMR_MIN,uint8 RTCAMR_SEC);
extern void Func_RTCAL(uint16 RTCAL_YEAR,uint8 RTCAL_MONTH,uint16 RTCAL_DOY,uint8 RTCAL_DOW,uint8 RTCAL_DOM,uint8 RTCAL_HOUR,uint8 RTCAL_MIN,uint8 RTCAL_SEC);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -