USB Hound捕捉到的數(shù)據(jù)
熱門產(chǎn)品 :
CH32V317: 互聯(lián)型青稞RISC-V MCU
USB Hound捕捉到的數(shù)據(jù)
我們USB設(shè)備代碼其實(shí)仔細(xì)看就是一個(gè)SWITCH CASE結(jié)構(gòu),類似描述符請求就是06命令,這個(gè)STALL的命令看上去好像是09,那也就是要找到對應(yīng)位置增加case 0x09,做一下對應(yīng)協(xié)議的處理
the WCH example enum code is buggy. None of the examples can pass chapter9 requests of USB2CV.
add the following code directly at SETUP
...
case SETUP:
? ? ? ? ??UEP0_CTRL &= 0xF2;? /*unstall, the last req may have stalled*/
? ? ? ? ?....?