AnsweredAssumed Answered

USB Keyboard IN get led status

Question asked by Fabio Benevento on Nov 21, 2017
Latest reply on Jan 11, 2018 by Daniel Chen

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

Outcomes