待发送字节的偶校验生成函数
/**************************************
函数名称:PorCheckBit
函数功能:计算待发送字符的偶校验
输入参数:cSendChar,要发送的字符
输出参数:无
描述:生成偶校验位
**************************************/
void PorCheckBit(unsigned char cSendChar)
{
unsigned char SendCommandBufBit=cSendChar;
int itemp;
for(itemp=0;itemp<8;itemp++)
{
if(SendCommandBufBit&0x01)
{
CardWorkFlag=CardWorkFlag^0x80;
}
SendCommandBufBit=SendCommandBufBit>>0x01;
}
}