实参为uint,形参为指针。调用函数有关问题~
实参为uint,形参为指针。调用函数问题~~~
...
uint uiRecvLen;
...
iRet = rfid_powerup(uiCardType, &uiRecvLen, ucAtr);//卡上电 这句就没出现警告
...
iRet = rfid_exchangedata(7, "\x00\xA4\x00\x00\x02\xDF\x01",&uiRecvLen, ucRecvBuf); //发送1
出现Selected text cannot be mapped to a symbol name警告问题
for (i = 0; i < uiRecvLen; i++)
lcd_Printf("%02x ", ucRecvBuf[i]);
iRet = rfid_exchangedata(5, "\x00\xB0\x95\x00\x0a",
&uiRecvLen, ucRecvBuf);//发送2 Selected text cannot be mapped to a symbol name
for (j = 0; j < uiRecvLen; j++)
lcd_Printf("%02x ", ucRecvBuf[j]);
函数原型:
int rfid_powerup(uint cardtype, uint *puiOutLen, uchar *pvOut);
int rfid_exchangedata(uint sendlen, uchar *psenddata, uint *precvlen, uchar *precvdata);
------解决思路----------------------
字符串以\0结尾
...
uint uiRecvLen;
...
iRet = rfid_powerup(uiCardType, &uiRecvLen, ucAtr);//卡上电 这句就没出现警告
...
iRet = rfid_exchangedata(7, "\x00\xA4\x00\x00\x02\xDF\x01",&uiRecvLen, ucRecvBuf); //发送1
出现Selected text cannot be mapped to a symbol name警告问题
for (i = 0; i < uiRecvLen; i++)
lcd_Printf("%02x ", ucRecvBuf[i]);
iRet = rfid_exchangedata(5, "\x00\xB0\x95\x00\x0a",
&uiRecvLen, ucRecvBuf);//发送2 Selected text cannot be mapped to a symbol name
for (j = 0; j < uiRecvLen; j++)
lcd_Printf("%02x ", ucRecvBuf[j]);
函数原型:
int rfid_powerup(uint cardtype, uint *puiOutLen, uchar *pvOut);
int rfid_exchangedata(uint sendlen, uchar *psenddata, uint *precvlen, uchar *precvdata);
------解决思路----------------------
字符串以\0结尾