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 项奖励
回复