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

📄 rfid_rtc.h

📁 找的一个用U2270B开发的射频卡项目文件
💻 H
字号:
// $Id: rfid_Rtc.h,v 1.3 2006/10/18 18:15:12 tprescott Exp $
/*****************************************************
Project : rfid_Rtc.h
Date    : 9/08/2006
Author  : Toby Prescott                   
Company : Atmel                           
Comments: AVR Studio GCC

Revisions:
	v1.0 - Started written for CodeVision 
	v2.6 - Clean for WinAVR
*****************************************************/  
#ifndef RFIDRTC_H__
#define RFIDRTC_H__

//  Include files
#include <avr/io.h>
#include <avr/interrupt.h>
#include <string.h>   
#include "rfid_Timers.h"

//  Function declarations
void rtc_Init(void);            
unsigned char rtc_NotLeap(unsigned int year);

unsigned char rtc_GetClock(unsigned char cPos);
void rtc_SetClock(unsigned char cPos, unsigned char value);
void rtc_SetClockFormat(unsigned char cFormat);

unsigned char rtc_GetDate(unsigned char cPos);
void rtc_SetDate(unsigned char cPos, unsigned char cDirection);

//hold the current time, date, month, and year
typedef struct{ 
unsigned char second;   
unsigned char minute;
unsigned char hour;                                     
unsigned char day;       
unsigned char month;
unsigned int year;      
            }time;

extern unsigned char TBL_CLOCK_12[];
//extern unsigned char timer0Flag;
 
#define CLOCK_24    	0
#define CLOCK_12    	1
#define DATE_US    	1
#define DATE_EU    	2
#define DATE_ASIA    	3
#define HOUR		1
#define MINUTE 		2
#define SECOND 		3
#define MONTH		4
#define DAY 		5
#define YEAR 		6

#endif // RFIDRTC_H__

⌨️ 快捷键说明

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