Hello All,
I have built a custom uC circuit that I am running the LUFA framework on to interface to my pc as an HID. I have it enumerating and I have a vb.net software app that is able to connect to it. I want to send the LUFA device 3 bytes at a time (address, command, checksum). I am using the atusbhid.dll to do this. My question is, how do I access the bytes within LUFA once I have sent them? This is what I am currently doing:
void CALLBACK_HID_Device_ProcessHIDReport(USB_ClassInfo_HID_Device_t* const HIDInterfaceInfo, const uint8_t ReportID, const uint8_t ReportType, const void* ReportData, const uint16_t ReportSize) { Serial_SendData((uint8_t*)ReportData, ReportSize); HIDReportEcho.ReportID = ReportID; HIDReportEcho.ReportSize = ReportSize; memcpy(HIDReportEcho.ReportData, ReportData, ReportSize); }
You can see that I am trying to print the report to a pc console to debug. Right now I am just getting garbage. Any ideas as to how to access the report properly if I am doing it wrong? I know the serial is working fine because I can serial_sendByte('A') without any issues.
Chris