import ctypes
# Load the CH347DLL library
ch347dll = ctypes.WinDLL('CH347DLLA64.dll') # Update the filename if necessary
# Define the argument and return types for CH347OpenDevice
ch347dll.CH347OpenDevice.argtypes = [ctypes.c_ulong]
ch347dll.CH347OpenDevice.restype = ctypes.c_bool
# Define the argument and return types for CH347CloseDevice
ch347dll.CH347CloseDevice.argtypes = [ctypes.c_ulong]
ch347dll.CH347CloseDevice.restype = ctypes.c_bool
CH347
最新推荐文章于 2025-02-17 10:39:43 发布