discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] code clarification in usrp.py


From: Ges
Subject: [Discuss-gnuradio] code clarification in usrp.py
Date: Sun, 14 Aug 2005 18:30:06 -0700 (PDT)

Hi Eric,

I would like to clarify this stub of code found in
usrp.py:

def source_c(which, *args, **kwargs):
    return ((usrp0.source_c,
usrp1.source_c)[look_for_usrp(which)])(which, *args,
**kwargs)

when some creates an object usrp.source_c(...)
 then this function gets called, which calls the
look_for_usrp(which) to check if the specifies usrp
rev 0 or 1, if 0 is returned then
usrp0.source_c(which,*args,**kwargs) is called.

If 1 is returned, then
usrp1.source_c(which,*args,**kwargs) is called.

Is this explanation correct? Also, should the usrp rev
always be passed? And what is the difference between
rev 1 and rev 0?
I think I have rev 0, so i would like to know.

Thank you
Gesly


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




reply via email to

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