打開(kāi)文件以后,寫(xiě)內(nèi)容如下,其中mb/Time數(shù)組是Uint16類(lèi)型的
?????? mb[0]=Mbox_DL;
??? ??? mb[1]=Mbox_DL>>16;
??? ??? mb[2]=Mbox_DH;
??? ??? mb[3]=Mbox_DH>>16;
??? ??? sprintf(t,"gyro:%X%X",mb[1],mb[0]);
??? ??? L=strlen(t);
??? ??? sprintf(t+L,"encoder:%X%X",mb[3],mb[2]);
??? ??? L=strlen(t);
??? ??? sprintf(t+L,"ScanT:%X%X",Time[0],Time[1]);
? ? ?
?????????? s=strlen(t);
?????????? s = CH376ByteWrite(t, s, NULL );
?????????? mStopIfError( s );
謝謝