Help with USB on LPCXpresso 1343

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

Help with USB on LPCXpresso 1343

487 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by JohnBurton on Sun Jul 18 04:03:27 MST 2010
I'm successfully using the USB on my LPCXpresso to act as a HID device on a PC. I've connected to a temperature sensor chip via i2c and I'm sending 2 byte HID report with the temperature in. That works fine.

However I'd like to only send the report occasionally. Perhaps when something changes.

On PIC microcontrollers I've used I can send a NAK back to indicate there is no data available by setting the return length to zero, but there is no facility to do this in either the ROM based code or the full HID USB sample. Is there any way I can send back a NAK when asked for an input report?

Or will I have to significantly modify the sample code to let me do this?
0 项奖励
回复
0 回复数