USB endpoint queue heads

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

USB endpoint queue heads

695 Views
adb
Contributor I

Hello,

In my application the LPC4353 receives ADC samples from an external chip every 4 ms. I would like to buffer and stream this data over USB using interrupts so as to not interfere with the operation of the rest of my code.

As a starting point, I'm using the usbd_rom_bwtest example program. There are a few things that I don't understand in this program:

In function bwtest_USB_Prog_DTD the device transfer descriptor (dTD) struct array is initialised. Each buffer pointer page points to a 4kB chunk of RAM. 5 buffer pointers * 4 kB = 20 kB. Why do we need to loop around 8 times? All ep_TD[i].buffer0 point to the same memory location.

If I understand correctly, the IOC bit is set, so an interrupt should fire whenever each dTD has transmitted. Where is this interrupt serviced?

Thanks in advacnce for answering my questions,

Regards,

Alan

Labels (3)
0 Kudos
1 Reply

572 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello  Alan Ball,

Sorry to  reply you late, it seems my colleague have help you on salesforce ticket. 

0 Kudos