USB Keyboard IN get led status

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

USB Keyboard IN get led status

549 Views
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 Kudos
Reply
1 Reply

485 Views
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 Kudos
Reply