This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
您好,
我使用MSP430F5529LP這個開發版並且import example Project HID examples-H7-mourse
想利用此範例程式觀察當使用軟體下HID的get feature時,程式是否能依據收到的指令回傳不同的data
可是我下HID的get feature,程式會進入uint8_t *USBHID_handleEP0GetReport (uint8_t reportType, uint8_t reportId,uint16_t requestedLength,uint8_t intfnum)
卻看不到我get feature 所下的CMD 指令,請問我要從哪個變數去觀看開發版所收到的指令是否為當初軟體所下的?
謝謝
您好,
我是透過CCS下載USB的 HID sample code。進入debug 之後在fun USBHID_handleEP0GetReport 這邊設一個breakpoint就讓程式free run。
當我使用HID TOOL傳送一個getfeature cmd時,程式會進入到USBHID_handleEP0GetReport內的case USB_REQ_HID_FEATURE:
我會根據所下的CMD回傳不同的FEATURE Report Buffer,
不過目前狀況為我找不到程式用來接收getfeature cmd的變數,以至於無法做CMD的判斷。
想請問程式當中用來存放getfeature cmd的變數是哪一個?
謝謝