?? pcf8563.h
字號:
/*******************************************************************************
** (c) Copyright 2004-2005, xujiajun
** All Rights Reserved
** V040723
**--------------文件信息--------------------------------------------------------
**創 建 人: 徐家俊
**創建日期: 2006年1月20日
**描 述:PCF8563驅動
**--------------版本修訂歷史----------------------------------------------------
** 修改人:徐家俊
** 版 本: V
** 日 期: 年月日
** 描 述:
**--------------當前版本修訂----------------------------------------------------
** 修改人:徐家俊
** 版 本:
** 日 期:年月日
** 描 述:
**------------------------------------------------------------------------------
*******************************************************************************/
#define PCF8563_ADDR 0xA2
#ifndef IN_PCF8563
/********************************************************************************************************
Descriptions: initial PCF8563
input parameters: None
Returned value: return 1 success; 0 failed
Used global variables: None
Calling modules: None
Created by: xjj 2006/01/20
-------------------------------------------------------------------------------------------------------
Modified by:
********************************************************************************************************/
bit InitialPCF8563(void);
/********************************************************************************************************
Descriptions: read second
input parameters: None
Returned value: return second in the format BCD code
Used global variables: None
Calling modules: None
Created by: xjj 2006/01/20
-------------------------------------------------------------------------------------------------------
Modified by:
********************************************************************************************************/
uchar ReadSecond(void);
/********************************************************************************************************
Descriptions: set second
input parameters: Sec : in the format of BCD code
Returned value: return 1 success; 0 failed
Used global variables: None
Calling modules: None
Created by: xjj 2006/01/20
-------------------------------------------------------------------------------------------------------
Modified by:
********************************************************************************************************/
//bit SetSecond(uchar Sec);
/********************************************************************************************************
Descriptions: read minute
input parameters: None
Returned value: return second in the format BCD code
Used global variables: None
Calling modules: None
Created by: xjj 2006/01/20
-------------------------------------------------------------------------------------------------------
Modified by:
********************************************************************************************************/
uchar ReadMinute(void);
/********************************************************************************************************
Descriptions: set minute
input parameters: minute : in the format of BCD code
Returned value: return 1 success; 0 failed
Used global variables: None
Calling modules: None
Created by: xjj 2006/01/20
-------------------------------------------------------------------------------------------------------
Modified by:
********************************************************************************************************/
//bit SetMinute(uchar Min);
/********************************************************************************************************
Descriptions: read hour
input parameters: None
Returned value: return in the format BCD code
Used global variables: None
Calling modules: None
Created by: xjj 2006/01/20
-------------------------------------------------------------------------------------------------------
Modified by:
********************************************************************************************************/
uchar ReadHour(void);
/********************************************************************************************************
Descriptions: set Hour
input parameters: Hour : in the format of BCD code
Returned value: return 1 success; 0 failed
Used global variables: None
Calling modules: None
Created by: xjj 2006/01/20
-------------------------------------------------------------------------------------------------------
Modified by:
********************************************************************************************************/
//bit SetHour(uchar Hour);
/********************************************************************************************************
Descriptions: read date
input parameters: None
Returned value: return in the format BCD code
Used global variables: None
Calling modules: None
Created by: xjj 2006/01/20
-------------------------------------------------------------------------------------------------------
Modified by:
********************************************************************************************************/
//uchar ReadDate(void);
/********************************************************************************************************
Descriptions: set date
input parameters: date : in the format of BCD code
Returned value: return 1 success; 0 failed
Used global variables: None
Calling modules: None
Created by: xjj 2006/01/20
-------------------------------------------------------------------------------------------------------
Modified by:
********************************************************************************************************/
//bit SetDate(uchar Date);
/********************************************************************************************************
Descriptions: read week
input parameters: None
Returned value: return in the format BCD code
Used global variables: None
Calling modules: None
Created by: xjj 2006/01/20
-------------------------------------------------------------------------------------------------------
Modified by:
********************************************************************************************************/
//uchar ReadWeek(void);
/********************************************************************************************************
Descriptions: set week
input parameters: week : in the format of BCD code
Returned value: return 1 success; 0 failed
Used global variables: None
Calling modules: None
Created by: xjj 2006/01/20
-------------------------------------------------------------------------------------------------------
Modified by:
********************************************************************************************************/
//bit SetWeek(uchar Week);
/********************************************************************************************************
Descriptions: read month
input parameters: None
Returned value: return in the format BCD code
Used global variables: None
Calling modules: None
Created by: xjj 2006/01/20
-------------------------------------------------------------------------------------------------------
Modified by:
********************************************************************************************************/
//uchar ReadMonth(void);
/********************************************************************************************************
Descriptions: set month
input parameters: month : in the format of BCD code
Returned value: return 1 success; 0 failed
Used global variables: None
Calling modules: None
Created by: xjj 2006/01/20
-------------------------------------------------------------------------------------------------------
Modified by:
********************************************************************************************************/
//bit SetMonth(uchar Month);
/********************************************************************************************************
Descriptions: read year
input parameters: None
Returned value: return in the format BCD code
Used global variables: None
Calling modules: None
Created by: xjj 2006/01/20
-------------------------------------------------------------------------------------------------------
Modified by:
********************************************************************************************************/
//uchar ReadYear(void);
/********************************************************************************************************
Descriptions: set year
input parameters: year : in the format of BCD code
Returned value: return 1 success; 0 failed
Used global variables: None
Calling modules: None
Created by: xjj 2006/01/20
-------------------------------------------------------------------------------------------------------
Modified by:
********************************************************************************************************/
//bit SetYear(uchar Year);
#endif//#ifndef IN_PCF8563
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -