Critical code snippet for example:dev_hid_generic_lite_bm

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Critical code snippet for example:dev_hid_generic_lite_bm

543 次查看
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

标记 (1)
0 项奖励
回复
1 回复

465 次查看
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 项奖励
回复