HID keyboard - receiving data from PC
Posted: Wed Oct 21, 2009 2:51 pm
Hello.
I'm trying build device which will be PC keyboard with several buttons. This part is easy, there is
example I can customize. I need to have possibility to send data to this device to.
My questions:
1. Is there any way to send data to my device in 16B or 32B packets? Can I use :
uchar usbFunctionRead(uchar *data, uchar len) and uchar usbFunctionWrite(uchar *data, uchar len)
functions ?
2. I don't know how to build usbHidReportDescriptor for my case (if possible ).
Thanks,
Peter.
I'm trying build device which will be PC keyboard with several buttons. This part is easy, there is
example I can customize. I need to have possibility to send data to this device to.
My questions:
1. Is there any way to send data to my device in 16B or 32B packets? Can I use :
uchar usbFunctionRead(uchar *data, uchar len) and uchar usbFunctionWrite(uchar *data, uchar len)
functions ?
2. I don't know how to build usbHidReportDescriptor for my case (if possible ).
Thanks,
Peter.