目前CH341的串口使用matlab自带的串口程序可以正常通信,想使用I2C模式,目前模式配置正确,PC也正常识别。
但是加载驱动库的时候一直在报错,自测加载matlab自带的其他动态库是可以正常操作的。
目前使用C编译器:
MEX 配置为使用 'MinGW64 Compiler (C)' 以进行 C 语言编译。
命令如下:
loadlibrary('CH341DLL')
报错信息如下:
加载随后的库中间输出时出错。
实际错误位于此输出末尾。
*********
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.