void CH376_Test(u8 Cmd)
{
?u8 name[10][60]={ /*0*/{"/KGTXCSY"},
????????????????????????????????? /*1*/{"/KGTXCSY/1-1000.TXT"},
????????? ????????????????????????/*2*/{"12345"},
????????? ??????????????????????? /*3*/{"1"},
?????????????????????????????????};
u8 text[30]={0};
?u16 i=0;
?switch(Cmd)
?{
??case 1:
????????????? CH376DirCreate(name[0]);??
????? ????????i=CH376FileOpenPath(name[1]);
????? ????????while(bbb!=USB_INT_SUCCESS)
????????????? {
?????????????????? i=CH376FileCreatePath(name[1]);
????????????? }
?????
????? ????????i=CH376ByteLocate(0xFFFFFFFF);
????? ????????i=CH376ByteWrite(name[2],8,NULL);
????? ????????i=CH376FileClose(1);
????????????? break;
??case 2:i=CH376FileOpenPath(name[1]);
????????????? i=CH376ByteLocate(0);
???????????? ?i=CH376ByteRead(text,8,NULL);
????????????? i=CH376FileClose(1);
????????????? ?break;
??default:break;
?}
U盤初始化部分略,執(zhí)行函數(shù)CH376_Test(1),寫如數(shù)據(jù)成功12345,緊接著執(zhí)行函數(shù)CH376_Test(2),數(shù)組text中0~28均為0x1D。求大俠解圍