按照您給的例子程序:
mCmdParam.ByteRead.mByteCount = 40; i = CH375ByteRead( ); remain_len = mCmdParam.ByteRead.mByteCount; WriteS0data( remain_len ); //向串口發(fā)送數(shù)據(jù)函數(shù)
在執(zhí)行完i = CH375ByteRead( ); 后,mCmdParam.ByteRead.mByteCount中存的是實(shí)際讀入的字節(jié)數(shù),可我串口監(jiān)視工具中顯示的還是 0x28,請問這是為什么,急問!謝謝您的解答。