Hi,
我寫了一個簡單的程序驗證CH341A的插入跟拔出功能,下面是我的代碼,但是callback函數(shù)在拔出CH341A的時候一直沒有被調(diào)用。
是哪里弄錯了嗎
#include?#include?"CH341DLL.H" #include?void?CALLBACK?CH341_NOTIFY_ROUTINE(ULONG iEventStatus); int?main() { printf("open?%d\n",?CH341OpenDevice(0)); printf("ver:%d\n",?CH341GetVerIC(0)); CH341SetParaMode(0,?0); CH341SetDeviceNotify(0,?NULL,?&CH341_NOTIFY_ROUTINE); getchar(); return?0; } void?CALLBACK?CH341_NOTIFY_ROUTINE(ULONG iEventStatus) { printf("interrupt\n"); }
圖片格式可能更清晰一些:
熱門產(chǎn)品 :
CH592: RISC-V內(nèi)核BLE5.4無線MCU