DSPRelated.com
Forums

who can tell me what do I deal with this problem,Help on this topic wil be highl

Started by duanmu2009 September 21, 2008
Hello,

I have been using 5509A to send data out of the device, using the
provided example code from Spectrum digital, there is no problem in
this part, but now i need to receive data from the PC.

I have tried to run the system in loopback mode, but noticed that
the input buffer of the DSP remains unchanged even after i send OUT
data from the host PC.
Please find below the functions i used to perform this experiment.
and the results i have obtained form pc using packet.c

Help on this topic wil be highly appreciated.

void USB_bulkOutEvHandler()
{
// call the bulk out data handler routine.
// if DSP/BIOS used, a SWI can be posted to service the endpoint
events.
// All USB event handler routines must be executed in the order the
// actual events arrived - to achieve this, if SWI used, all the USB
// event handler routines must be assigned the same priority level.
USB_bulkOutDatHandler(&usbEpObjIn2, &usbEpObjOut2);
}
void USB_bulkOutDatHandler(USB_EpHandle hEpIn, USB_EpHandle hEpOut)
{
if ( USB_isTransactionDone( hEpOut ) )
USB_postTransaction(hEpOut, Endpt2BuffLen, Endpt2Buff,
USB_IOFLAG_NONE
);
I have tried to run the system in loopback mode, but noticed
that the input buffer of the DSP remains unchanged even after
i send OUT data from the ost PC.
Please find below the functions i used to perform this
experiment. and the results i have obtained form pc using
packet.c

Help on this topic wil be highly appreciated.