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.

HIDAdvRemoteDongle工程的疑問



        在HIDAdvRemoteDongle這個工程中,接收到無線鍵盤發過來的數據,它就會把這個數據發往電腦上。但是電腦上的狀態數據,形如capslock和numlock這樣的狀態數據,並沒有看到程序裏會把這個狀態發送回來,反而看到有如下的一些說明:

void usbcrSetReport(void)
{

else if (usbfwData.ep0Status == EP_RX) {

// The USB firmware library will return here after the data has been
// received. This USB example only implements one-way RF link protocol
// (i.e. keyboard device -> USB device), but can optionally be extended
// by transmitting the received LED status (now stored in
// hidData.keyboardOutReport.ledStatus) back to keyboard for it to
// update itself.

}

} // usbcrSetReport

請問,如果我要在這裏添加程序,把hidData.keyboardOutReport.ledStatus發送回去給無線鍵盤,應該怎麼做呢?如有知道,請不吝賜教,謝謝!