尋求基于CH375主機(jī)模式的c源代碼

誰(shuí)能發(fā)一份基于CH375主機(jī)模式的c源代碼給我嗎?我急用,需要底層的庫(kù)文件,沁恒只給出了簡(jiǎn)單的文件級(jí)系統(tǒng),沒(méi)有給出USB底層讀寫源程序

主要是下列程序的源代碼: extern UINT8 CH375GetVer( void ); /* 獲取當(dāng)前子程序庫(kù)的版本號(hào) */ extern void CH375Reset( void ); /* 復(fù)位CH375 */ extern UINT8 CH375Init( void ); /* 初始化CH375 */ extern UINT8 CH375DiskConnect( void ); /* 檢查磁盤是否連接 */ extern UINT8 CH375DiskReady( void ); /* 查詢磁盤是否準(zhǔn)備好 */ extern void CH375DirtyBuffer( void ); /* 清除磁盤緩沖區(qū) */ extern UINT8 CH375FileOpen( void ); /* 打開(kāi)文件或者枚舉文件 */ extern UINT8 CH375FileClose( void ); /* 關(guān)閉當(dāng)前文件 */ #ifdef EN_DISK_WRITE extern UINT8 CH375FileErase( void ); /* 刪除文件并關(guān)閉 */ extern UINT8 CH375FileCreate( void ); /* 新建文件并打開(kāi),如果文件已經(jīng)存在則先刪除后再新建 */ #endif extern UINT8 CH375FileModify( void ); /* 查詢或者修改當(dāng)前文件的信息 */ extern UINT8 CH375FileLocate( void ); /* 移動(dòng)當(dāng)前文件指針 */ extern UINT8 CH375FileReadX( void ); /* 從當(dāng)前文件讀取數(shù)據(jù)到指定緩沖區(qū) */ #ifdef EN_DISK_WRITE extern UINT8 CH375FileWriteX( void ); /* 向當(dāng)前文件寫入指定緩沖區(qū)的數(shù)據(jù) */ #endif #ifdef EN_BYTE_ACCESS extern UINT8 CH375ByteLocate( void ); /* 以字節(jié)為單位移動(dòng)當(dāng)前文件指針 */ extern UINT8 CH375ByteRead( void ); /* 以字節(jié)為單位從當(dāng)前位置讀取數(shù)據(jù)塊 */ #ifdef EN_DISK_WRITE extern UINT8 CH375ByteWrite( void ); /* 以字節(jié)為單位向當(dāng)前位置寫入數(shù)據(jù)塊 */ #endif #endif extern UINT8 CH375DiskSize( void ); /* 查詢磁盤容量 */ extern UINT8 CH375DiskQuery( void ); /* 查詢磁盤信息 */ #ifdef EN_SAVE_VARIABLE extern void CH375SaveVariable( void ); /* 備份/保存/恢復(fù)子程序庫(kù)的變量,用于子程序庫(kù)在多個(gè)CH375芯片之間進(jìn)行切換 */ #endif extern UINT8 CH375BulkOnlyCmd( void ); /* 執(zhí)行基于BulkOnly協(xié)議的命令 */ extern UINT8 CH375sDiskReady( void ); /* 查詢磁盤是否準(zhǔn)備好,支持CH375S */ 希望有的支持一下


底層的讀寫程序,也就是扇區(qū)讀寫。 下載CH375EVT.ZIP,參考CH375EVT\PUB\MCS51C\MISCELL下的示例,可免費(fèi)提供的,也就這么多。 另,我司有另外一份CH375文件系統(tǒng)源碼CH375SR2(與公版的庫(kù)源碼不同),如有需要請(qǐng)致電銷售:025-52638355/77/88/99


需要最關(guān)鍵的兩個(gè)函數(shù): extern UINT8 CH375FileReadX( void ); extern UINT8 CH375FileClose( void );


這兩個(gè)函數(shù)的源碼是不會(huì)提供的 (1)CH375FileReadX也就是調(diào)用底層的讀扇區(qū),示例中也有讀扇區(qū)的過(guò)程 (2)CH375FileClose主要是更新了文件長(zhǎng)度,即把文件長(zhǎng)度寫入目錄項(xiàng)


我買了兩片CH375的芯片,是沁恒公司的,但是沁恒沒(méi)有給出底層代碼,讓我的工作做起來(lái)很難,不知道你是那個(gè)公司的,如果不行,我只好自己做底層了


用下載的代碼寫出的文件級(jí)程序運(yùn)行不了,能不能提示一下,怎么做才能讓CH375讀寫U盤?


我是指如果下載的程序可以完成讀寫的話,希望你能指點(diǎn)一下,如果下載的程序就是個(gè)框架,那在不批量購(gòu)買CH375的時(shí)候,底層是不是只能購(gòu)買?


用我們的子程序庫(kù)就可以了,應(yīng)該能滿足您的要求.不知道您用的MCU是什么型號(hào)的?低層的程序我們封裝起來(lái)了,您看不到代碼.


用的是宏晶的89C52RC,程序編譯后大體上有如下的警告,不知道是為什么?請(qǐng)指點(diǎn)一下 Build target 'Target 1' compiling test5.c... TEST5.C(149): warning C206: 'CH375FileWrite': missing function-prototype TEST5.C(162): warning C206: 'LED_OUT_INIT': missing function-prototype TEST5.C(211): warning C206: 'CH375FileRead': missing function-prototype TEST5.C(241): warning C206: 'get_adc_data': missing function-prototype assembling STARTUP.A51... linking... *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?CH375FILEENUMER?TEST5 *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?CH375FILEQUERY?TEST5 *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?XDELAY100US?TEST5 *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?XDELAYAFTERWRITE?TEST5 *** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS SEGMENT: ?PR?XFILENAMEENUMER?TEST5 *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: CH375FILECREATE MODULE: test5.obj (TEST5) *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: CH375FILELOCATE MODULE: test5.obj (TEST5) *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: CH375FILEWRITEX MODULE: test5.obj (TEST5) *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: CH375FILEMODIFY MODULE: test5.obj (TEST5) *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: CH375LIBCONFIG MODULE: test5.obj (TEST5) *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: CH375FILECLOSE MODULE: test5.obj (TEST5) *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: CH375FILEREAD MODULE: test5.obj (TEST5) *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: CH375DISKREADY MODULE: test5.obj (TEST5) *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: CH375FILEWRITE MODULE: test5.obj (TEST5) *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: CH375INIT MODULE: test5.obj (TEST5) *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: CH375DISKSTATUS MODULE: test5.obj (TEST5) *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: CH375FILEOPEN MODULE: test5.obj (TEST5) *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: CH375VFILESIZE MODULE: test5.obj (TEST5) *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: LED_OUT_INIT MODULE: test5.obj (TEST5) *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: GET_ADC_DATA MODULE: test5.obj (TEST5) *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: CH375DISKSIZE MODULE: test5.obj (TEST5) *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: PDISK_BASE_BUF MODULE: test5.obj (TEST5) *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: FILE_DATA_BUF MODULE: test5.obj (TEST5) *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: CH375INTSTATUS MODULE: test5.obj (TEST5) *** WARNING L1: UNRESOLVED EXTERNAL SYMBOL SYMBOL: CH375GETVER MODULE: test5.obj (TEST5) *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375FILEOPEN MODULE: test5.obj (TEST5) ADDRESS: 09AEH *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375FILEMODIFY MODULE: test5.obj (TEST5) ADDRESS: 099EH *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375INTSTATUS MODULE: test5.obj (TEST5) ADDRESS: 08D6H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375INTSTATUS MODULE: test5.obj (TEST5) ADDRESS: 08D9H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375INTSTATUS MODULE: test5.obj (TEST5) ADDRESS: 08DEH *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375INTSTATUS MODULE: test5.obj (TEST5) ADDRESS: 08E4H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375INTSTATUS MODULE: test5.obj (TEST5) ADDRESS: 08E6H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375DISKSTATUS MODULE: test5.obj (TEST5) ADDRESS: 08EBH *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375INTSTATUS MODULE: test5.obj (TEST5) ADDRESS: 08EFH *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375DISKSTATUS MODULE: test5.obj (TEST5) ADDRESS: 08F4H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375LIBCONFIG MODULE: test5.obj (TEST5) ADDRESS: 0929H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375GETVER MODULE: test5.obj (TEST5) ADDRESS: 092CH *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: PDISK_BASE_BUF MODULE: test5.obj (TEST5) ADDRESS: 0938H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: PDISK_BASE_BUF MODULE: test5.obj (TEST5) ADDRESS: 093BH *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375INIT MODULE: test5.obj (TEST5) ADDRESS: 093EH *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375FILEWRITEX MODULE: test5.obj (TEST5) ADDRESS: 0729H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: FILE_DATA_BUF MODULE: test5.obj (TEST5) ADDRESS: 0745H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: FILE_DATA_BUF MODULE: test5.obj (TEST5) ADDRESS: 0748H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: FILE_DATA_BUF MODULE: test5.obj (TEST5) ADDRESS: 074EH *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: FILE_DATA_BUF MODULE: test5.obj (TEST5) ADDRESS: 0750H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375VFILESIZE MODULE: test5.obj (TEST5) ADDRESS: 0760H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375VFILESIZE MODULE: test5.obj (TEST5) ADDRESS: 0763H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375VFILESIZE MODULE: test5.obj (TEST5) ADDRESS: 0768H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375VFILESIZE MODULE: test5.obj (TEST5) ADDRESS: 076DH *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375VFILESIZE MODULE: test5.obj (TEST5) ADDRESS: 0789H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375VFILESIZE MODULE: test5.obj (TEST5) ADDRESS: 078CH *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375VFILESIZE MODULE: test5.obj (TEST5) ADDRESS: 078FH *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375VFILESIZE MODULE: test5.obj (TEST5) ADDRESS: 0792H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375FILEMODIFY MODULE: test5.obj (TEST5) ADDRESS: 07B2H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375FILELOCATE MODULE: test5.obj (TEST5) ADDRESS: 07C3H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: CH375FILEWRITE MODULE: test5.obj (TEST5) ADDRESS: 07D8H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: FILE_DATA_BUF MODULE: test5.obj (TEST5) ADDRESS: 07EFH *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: FILE_DATA_BUF MODULE: test5.obj (TEST5) ADDRESS: 07F2H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: FILE_DATA_BUF MODULE: test5.obj (TEST5) ADDRESS: 07F8H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: FILE_DATA_BUF MODULE: test5.obj (TEST5) ADDRESS: 07FAH *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL SYMBOL: LED_OUT_INIT MODULE: test5.obj (TEST5) ADDRESS: 0360H *** WARNING L2: REFERENCE MADE TO UNRESOLVED EXTERNAL


52單片機(jī)的資源不夠. 出現(xiàn)上述錯(cuò)誤和警告,可能是庫(kù)連接不正確,請(qǐng)參考: http://m.findthetime.net/bbs/View.asp?S=101&I=1511


出一下警告是為什么?我連接的沒(méi)什么錯(cuò)誤啊。資料n 多,看的我眼花繚亂

*** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: E:\U盤\MCS51\FILELIB5\CH375HF5.LIB (CH375MAI) ADDRESS: 0023H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: E:\U盤\MCS51\FILELIB5\CH375HF5.LIB (CH375MAI) ADDRESS: 002FH *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: E:\U盤\MCS51\FILELIB5\CH375HF5.LIB (CH375MAI) ADDRESS: 0033H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: E:\U盤\MCS51\FILELIB5\CH375HF5.LIB (CH375MAI) ADDRESS: 0048H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: E:\U盤\MCS51\FILELIB5\CH375HF5.LIB (CH375MAI) ADDRESS: 00FFH *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: E:\U盤\MCS51\FILELIB5\CH375HF5.LIB (CH375MAI) ADDRESS: 2584H *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: E:\U盤\MCS51\FILELIB5\CH375HF5.LIB (CH375MAI) ADDRESS: 20FFH *** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL SYMBOL: MCMDPARAM MODULE: E:\U盤\MCS51\FILELIB5\CH375HF5.LIB (CH375MAI) ADDRESS: 2125H


不能發(fā)圖片,如果你們能看到圖片也許更能明白問(wèn)題在那


TEST5.C(149): warning C206: 'CH375FileWrite': missing function-prototype TEST5.C(162): warning C206: 'LED_OUT_INIT': missing function-prototype TEST5.C(211): warning C206: 'CH375FileRead': missing function-prototype TEST5.C(241): warning C206: 'get_adc_data': missing function-prototype

這些么有寫程序


做了個(gè)例子請(qǐng)參考:UploadImages/200810201515456.rar


非常感謝版主的幫助,我們準(zhǔn)備把CH375用在油田鉆井測(cè)量設(shè)備的數(shù)據(jù)采集上,U盤做好就一切OK了


只有登錄才能回復(fù),可以選擇微信賬號(hào)登錄

国产91精品新入口,国产成人综合网在线播放,九热这里只有精品,本道在线观看,美女视频a美女视频,韩国美女激情视频,日本美女pvp视频