Need help on composite HID+HID

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

Need help on composite HID+HID

801 次查看
sharminsultanas
Contributor II

Hello,

I am using NGX LPC1837xplorer development board, my computer has windows 7 OS. My goal: create composite HID device in both USB0 &USB1. Using example code for LPC18xx from keil(pack installer). Followed: file:///C:/Keil_v5/ARM/PACK/Keil/MDK-Middleware/7.4.1/Doc/USB/html/_u_s_b__device.html .For setting up a Composite USB HID Device in USB0 (2 HID mouse) I have this files in my project USBD_Config_0.c, USBD_Config_HID_0.h(interface 0),USBD_Config_HID_1.h (interface 1),  USBD_User_HID_Mouse_0.c and USBD_User_HID_Mouse_1.c, HID.c

 

after connecting to USB0 , using below code to send report to Host

....

mouse_in_report[1] = (uint8_t)(-4); update = 1;

USBD_HID_GetReportTrigger(0, 0, mouse_in_report, 4);

.....

However, I get working only USB0(interfcae 0), USB0 (interfcae 1)does not works.  I want to send data to host from both interface.

 

I am new on this. any example code /documentation/tips will be highly apricated.

//Sharmin

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

611 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi Sharmin Sultana sheuly,

Thank you for your interest in NXP Semiconductor products and 
the opportunity to serve you.
I'd highly recommend you to refer to USB demos in LPCOpen library of the NGX Xplorer LPC1830 board.

TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复