Critical code snippet for example:dev_hid_generic_lite_bm

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Critical code snippet for example:dev_hid_generic_lite_bm

521 Views
uzslm
Contributor II

Dear,

I installed SDK for LPC5516 and imported the example of "dev_hid_generic_lite_bm" into my MCUXpresso IDE;after reading some documents, I learned that if the host send anything to it,it will send same the thing back to the host PC,but i failed to locate the right code snippet of loop-back;

Could you kindly advise where can i find the right code for this? i would like to take it as a starting point.

there have been quite a few files i can not get myself familiar with,such as:

usb_device_dci.c

usb_device_lpcip3511.c

........................................................

where can i get documents explaining for usage of those files?

Thank you very much!

BR

uzslm

Tags (1)
0 Kudos
Reply
1 Reply

443 Views
Harry_Zhang
NXP Employee
NXP Employee

Hi @uzslm 

This loop back is implemented through interrupts.

You can check this code.

void USB0_IRQHandler(void)
{
    USB_DeviceLpcIp3511IsrFunction(g_UsbDeviceHidGeneric.deviceHandle);
}

 
usb_device_dci.c is the Device Controller Interface file that abstracts hardware operations for the USB driver.

usb_device_lpcip3511.c
This file implements the LPC USB IP3511 controller driver (low-level communication between MCU and USB hardware).

BR

Harry

 

0 Kudos
Reply