您的位置:首页 > 其它

CPU卡程序设计实例(十九)取响应数据命令

2017-04-28 19:45 204 查看
取响应数据命令

/*******************************************

函数名称:SendC0Comm

函数功能:发送“取响应数据”命令

输入参数:无

输出参数:无

描述:当接收到的命令里含有需要接受的数据时,发送此命令开始接收数据

*******************************************/

void SendC0Comm(void)

{

unsigned char cTemp;

Delay1XETU(4);

if(TxAndRxBuff[0]==0x61)

{

cTemp=TxAndRxBuff[1];

cCommandLen=0x05;

TxAndRxBuff[0]=0x00;

TxAndRxBuff[1]=0xc0;

TxAndRxBuff[2]=0x00;

TxAndRxBuff[3]=0x00;

TxAndRxBuff[4]=cTemp;

SendCommandHead_Pro();

}

else CardError=ErrorRWBIT|CardError;

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息