DataFlash.H
上传用户:shyuanyi
上传日期:2008-05-24
资源大小:69k
文件大小:2k
- #ifndef __CARDSTATUSLIST_H__
- #define __CARDSTATUSLIST_H__
- #define FILL_MONEY 1 //充值
- #define FILL_TIMES 2 //充次
- typedef struct _FILL_LIMIT_INFO{
- unsigned char cStartTime[6]; //有效充值开始时间
- unsigned char cEndTime[6]; //有效充值结束时间
- }sttFillLimitInfo;
- typedef struct _FILL_PARA{
- long Value; //充值金额(次数);
- unsigned char CardIndex[3]; //卡号(发卡流水号);
- unsigned char cCurrentStatus;//当前状态:0--已充值完成(自动充值机使用);
- //1—(取得或)充入金额;
- //2—(取得或)充入次数;
- }sttFillPara;
- unsigned char ReadCardStatusTable(unsigned int PageIndex,//页序号 主表为0-939,其它只有1和2值
- unsigned char *Buffer, //具体卡系列号
- unsigned char Count, //个数,1-33,最多一次33个
- unsigned char Status); //状态(0:解挂 2:挂失 12:主表挂失)
- unsigned char SaveCardStatusTable(unsigned int PageIndex,//序号 主表为0-939,其它只有1和2值
- unsigned char *Buffer, //具体卡系列号
- unsigned char Count, //个数,最多一次33个
- unsigned char Status); //状态(0:解挂 2:挂失 12:主表挂失)
- unsigned char FoundCardStatusTable(unsigned long lCardSerialNo);
- unsigned char ReadFillLimitInfo(sttFillLimitInfo *pstFillLimitInfo);
- unsigned char WriteFillLimitInfo(sttFillLimitInfo *pstFillLimitInfo);
- unsigned char ReadFillPara(unsigned int iPageIndex,
- unsigned char cRecordCount,
- sttFillPara stFillPara[]);
- unsigned char WriteFillPara(unsigned int iPageIndex,
- unsigned char cRecordCount,
- sttFillPara stFillPara[]);
- unsigned char FoundFillPara(sttFillPara *pstFillPara,unsigned int *piOffSet);
- unsigned char UpdateFillParaStatus(unsigned int iOffSet);
- #endif