打开文件以后,写内容如下,其中mb/Time数组是Uint16类型的
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 );
谢谢