[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] USRP DBID Mods for New Daughterboard?
From: |
Eric Blossom |
Subject: |
Re: [Discuss-gnuradio] USRP DBID Mods for New Daughterboard? |
Date: |
Wed, 1 Apr 2009 13:28:18 -0700 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Wed, Apr 01, 2009 at 04:12:35PM -0400, Michael Dickens wrote:
> Suppose I wanted to create a new daughterboard for the USRP; then what
> is entailed on the host software side to allow GNU Radio robust access
> to using this daughterboard? At this time, this is a thought
> experiment: I've been asked the question, done a little research, and
> don't have a good / clear answer yet.
Michael,
I think the easiest way would be to add a free function to db_boards.h
that allowed you to register additional (dbid, factory) pairs to an
internal data base searched by instantiate_dbs. You'd have to
register your new daugherboard(s) before instantiating usrp_standard_*
Maybe something like:
struct db_factory {
virtual db_base *operator()(usrp_basic_sptr usrp, which_side) = 0;
}
void db_register_dbid(int dbid, db_factory f);
Eric