#include <fcntl.h>
#include <linux/hiddev.h>
#include <sys/ioctl.h>
My HID device shows up as dev/usb/hiddev0
.
I can successfully open() the device with
fd = open("/dev/usb/hiddev0", O_RDWR);
And generate correct device reports by printing the values in my HIDIOCGDEVINFO
struct.
Now I need to send 64 byte packets to the device. (msp430F5510 BSL). Can I write to the device using ioctl or write()? Are there any examples around?