Hi, we are using the XMega32a4u to develep a USB CDC interface. This seems to work well, but the customer now wants a HID interface
So far, we have tested the ASF HID generic sample code and it works well. The computer program can detect the device, and turn it off by sending some reports.
What we cannot do yet is to read and write data. There is an app note AVR4905 but it is little light on detail: http://www.atmel.com/Images/doc8...
Any help would be much appreciated.
Here are the PC routines we have available but we have only used findHidDevice and setFeature so far.
function findHidDevice(VendorID,ProductID: LongWord ): Boolean; STDCALL; procedure closeDevice STDCALL; function writeData(Buf : PChar ): Boolean; STDCALL; function readData(Buf : PChar ): Boolean; STDCALL; function hidRegisterDeviceNotification(hWnd : THandle ): Integer; STDCALL; procedure hidUnregisterDeviceNotification(hWnd : THandle ); STDCALL; function isMyDeviceNotification(dwData:longword): Integer; STDCALL; function setFeature(Buf : PChar ): Boolean; STDCALL; function getFeatureReportLength: Integer; STDCALL; function getOutputReportLength: Integer; STDCALL;