目前CH341的串口使用matlab自帶的串口程序可以正常通信,想使用I2C模式,目前模式配置正確,PC也正常識(shí)別。
但是加載驅(qū)動(dòng)庫(kù)的時(shí)候一直在報(bào)錯(cuò),自測(cè)加載matlab自帶的其他動(dòng)態(tài)庫(kù)是可以正常操作的。
目前使用C編譯器:
MEX 配置為使用 'MinGW64 Compiler (C)' 以進(jìn)行 C 語(yǔ)言編譯。
命令如下:
loadlibrary('CH341DLL')
報(bào)錯(cuò)信息如下:
加載隨后的庫(kù)中間輸出時(shí)出錯(cuò)。
實(shí)際錯(cuò)誤位于此輸出末尾。
*********
Type 'LONG' was not found.? Defaulting to type error.
Found on line 6 of input from line 40 of file D:\\learn\\DCDC\\MLX90640\\CH341DLL.H
Type 'HANDLE' was not found.? Defaulting to type error.
Found on line 54 of input from line 236 of file D:\\learn\\DCDC\\MLX90640\\CH341DLL.H
Type 'ULONG' was not found.? Defaulting to type error.
Found on line 54 of input from line 236 of file D:\\learn\\DCDC\\MLX90640\\CH341DLL.H
Type 'VOID' was not found.? Defaulting to type error.