The code example attached does a key board report transfer. Accoeding to the input keyboard report sent the output report sent by the HID driver is displayed on the LCD.
For information on HID Key board report structure in page 60 of HID specification.
Please find the code example attached that demonstrates a out report transfer.
1. In the project 'capslock' + 'a' is sent all the time via EP1.
2. Open a note pad and place the cursor there
3. In the OUT Endpoint EP2 , a value of 0x02 is observed indicating that the caps lock is pressed. The contents of EP2 by transferred to rxbuf and displayed on an LCD