📄 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 + -