[Top][All Lists]

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

[Discuss-gnuradio] USRP / LFTX controlling I/O pins

From: Faschingbauer, Alexander
Subject: [Discuss-gnuradio] USRP / LFTX controlling I/O pins
Date: Thu, 24 Sep 2009 22:15:23 +0200


the following code snippet is part of a runnable python script.
I want to control some or one of the I/O pins on the USRP / LFTX board but I 
can't measure any changes on the USRP / LFTX io_pins by using the following 
code snippet.

Could somebody give me a hint please what to do ?
I'm not sure especially about the "#not sure" commented lines...

u = usrp.sink_c(0,usrp_interp)
tx_subdev_spec = usrp.pick_tx_subdevice(u)
m = usrp.determine_tx_mux_value(u, tx_subdev_spec)
print "mux = %#04x" % (m,)
subdev = usrp.selected_subdev(u, tx_subdev_spec)
print "Using TX d'board %s" % (subdev.side_and_name(),)
u.set_tx_freq (1, cordic_freq)
print "Actual frequency: ",u.tx_freq(1)
subdev.set_auto_tr(True) # enable auto T/R

u.write_atr_mask(1, 21) #not sure
u.write_atr_txval(1,  21) #not sure
u.write_atr_rxval(1, 21) #not sure

Thank' s in advance,

Alex (DM5AX)

reply via email to

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