[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] How to write USB 2.0 interface for Windows in C++

From: Eric Blossom
Subject: Re: [Discuss-gnuradio] How to write USB 2.0 interface for Windows in C++?
Date: Mon, 2 Feb 2009 23:20:32 -0800
User-agent: Mutt/1.5.18 (2008-05-17)

On Tue, Feb 03, 2009 at 10:53:01AM +0500, Ujala Qasim wrote:
> I actually want to interface the USRP and a DSP board together. For this I
> need to write the USB 2.0 interface between them. I am initially trying to
> write a C++ code that will capture the data samples from USRP's USB 2.0 in
> Windows. Later, I will try to use the same code on DSP board.


> What information should I know before writing this interface?

You should have a good understanding of USB 2.0 and in particular the
concepts of endpoints and types of transfers (we primarily use bulk
transfers).  The USB 2.0 spec is available on line.

Our abstract interface to the USB primitives is contained in
fusb.{h,cc}.  fusb_generic.{h,cc} provides a concrete generic
interface that works, but is likely to be slow.  In order to change
the least amount of code, create new concrete classes derived from
those in fusb.h, then create appropriate fusb_sysconfig_* files to
link it in.  See fusb_*.{h,cc} for OS specific implementations.

> Also, from where I can get to know about the architecture and
> working of FPGA on the USRP?

This diagram is pretty good:

The USRP FAQ is good:

And of course, you've got the FPGA code available to you:


reply via email to

[Prev in Thread] Current Thread [Next in Thread]