Hello,
i want to access the LEDs from the logitech mice MX610 inside a windows application.
I use Google and i found ONLY the following Linux code snippet:
Code:
unsigned char command[6]={ 0x01, 0x80, 0x52, 0x06, 0x00, 0x00 }; 
struct hiddev_usage_ref usage_ref; 
for (int alv = 0; alv < 6; ++alv) 
{ 
usage_ref.report_type = HID_REPORT_TYPE_OUTPUT; 
usage_ref.report_id = 0x10; 
usage_ref.field_index = 0; 
usage_ref.usage_code = 0xff000001; 
usage_ref.usage_index = alv; 
usage_ref.value = (unsigned char) command[alv]; 
int ret = ioctl(fd, HIDIOCSUSAGE, &usage_ref); 
usage_ref.usage_index++; 
}
from:
http://www.kdedevelopers.org/node/1847
http://www.kdedevelopers.org/node/2029

but unfortunately i have no idea how to convert this code to a call to the libusb filter (usb_control_msg or usb_bulk_write )
http://libusb.sourceforge.net/
http://libusb-win32.sourceforge.net/

I have to try to study this ioctl(fd, HIDIOCSUSAGE, &usage_ref); inside the linux sources, but no luck.

regards
Peter