USB Keyboard IN get led status

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

USB Keyboard IN get led status

571件の閲覧回数
LArmstrong1985
Contributor III

Hi, 

I've a question.

I create a custom project based on "frdmk64f_usb_examples_usb_host_hid_mouse_keyboard_freertos" example.

In this example I'm be able to manage (turn on/off) led (CAPSLOCK) on keyboard with the 

USB_HostHidSetReport(keyboardInstance->classHandle, 0x00, 0x02, &rep.device_status,
                    1, USB_HostHidControlCallback, keyboardInstance) 

call, but I'm unable to read the status of CAPSLOCK on startup with the opposite call

USB_HostHidGetReport(keyboardInstance->classHandle, 0x00, 0x02, &rep.device_status,
1, USB_HostHidControlCallback, keyboardInstance) 

What I'm doing wrong?

Thank you very much

0 件の賞賛
返信
1 返信

507件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

Hi Fabio:

Please refer to readme file of this demo. Host hid example is a simple demo, which doesn't support HID report analysis, this example assume that the device data are sent by specific order.

Regards

Daniel

0 件の賞賛
返信