[Top][All Lists]

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

Re: [Discuss-gnuradio] more issues with read_i2c

From: Eric Blossom
Subject: Re: [Discuss-gnuradio] more issues with read_i2c
Date: Mon, 30 Jul 2007 15:44:13 -0700
User-agent: Mutt/1.5.9i

On Mon, Jul 30, 2007 at 12:44:11PM -0400, Jared Jensen wrote:
> I've been having some issues with read_i2c.  I noticed several posts dealt 
> with this, and their particular solutions didn't resolve the issue, so here 
> it goes.
> I ported bd_bds_rx.py and bd_basic.py to C++, along with usrp.py so I could 
> include it all in my C++ signal processing app.  Things in general work, 
> but read_i2c doesn't.  I'm using a dbsrx on side B and using I2C_ADDR = 
> 0x67.  I called _write_oe(0,0x0001,0x0001) and not write_io(...).

class db_dbs_rx (db_base.db_base):
    def __init__ (self, usrp, which):
        Control DBS receiver based USRP daughterboard.
        @param usrp: instance of usrp.source_c
        @param which: which side: 0 or 1 corresponding to RX_A or RX_B 
        @type which: int
        # sets _u and _which
        db_base.db_base.__init__(self, usrp, which)

        self.i2c_addr = (0x67, 0x65)[self._which]

0x65 is the i2c_address for a DBSRX on the B side.
FWIW, 0x67 is for the A side.


reply via email to

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