This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

USB HID

Dear Sir, I would like to have your favor in order to configure my USB HID for LPC2368. I can send data to host (PC), but i don't know how i can receive data from host. I send data in EP1 and also receive same. my code is like below:

void USB_EndPoint1 (DWORD event) {

switch (event) { case USB_EVT_IN: if(EP0Data.pData == "E") USB_WriteEP(0x81, "B", 1); else USB_WriteEP(0x81, "A", 1);

break; }
}

It would be great if you can help me.