card.h

来自「psam+sim+sam的一些技术文档」· C头文件 代码 · 共 31 行

H
31
字号
#include	<stdio.h>
#include	<stdlib.h>
#include	<string.h>
#include	<ctype.h>
#include	<absacc.h>
#include	<reg52.h>
#include	<usign.h>
#include	<float.h>
#include <INTRINS.h>

typedef struct
{
    uchar       nLength;
    uchar       *CmdBuf;
    uchar	 *DataBuf;
}DATAMESSAGE;

uchar 	WriteFile(uchar   	xdata *pSendBuf,  uchar nLength);
//uchar  	ReadFile(uchar   xdata *pRecvBuf,  uchar nLength );
uchar   ReadFile(uchar   *pRecvBuf,  uchar nLength );
uchar  	ReadFile_overtime(uchar   *pRecvBuf,  uchar nLength);

uint 	Card_Cold_Reset(uchar CardSocketNo,DATAMESSAGE  *pDataMsg);
uint 	Card_Warm_Reset(uchar CardSocketNo,DATAMESSAGE  *pDataMsg);
uint  	CPU_Card_Read (uchar chPosition,DATAMESSAGE  *pDataMsg);
uint  	CPU_Card_Write (uchar chPosition,DATAMESSAGE  *pDataMsg);

bit		E65_Block_Write(uint  Address,uchar *pDataBuf,uchar len); 
bit		E65_Block2_Write(uint  Address,uchar *pDataBuf,uchar len); 
bit		E65_Block_Read (uint  Address,uchar *pDataBuf,uchar len); 
bit		E65_Block2_Read (uint  Address,uchar *pDataBuf,uchar len); 

⌨️ 快捷键说明

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