+
+regnames=["CONFIG","EN_AA","EN_RXADDR","SETUP_AW","SETUP_RET",
+ "RF_CH","RF_SETUP","STATUS","OBSERVE_TX","RPD",
+ "RX_ADDR_P0","RX_ADDR_P1","RX_ADDR_P2","RX_ADDR_P3","RX_ADDR_P4","RX_ADDR_P5",
+ "TX_ADDR",
+ "RX_PW_P0","RX_PW_P1","RX_PW_P2","RX_PW_P3","RX_PW_P4","RX_PW_P5",
+ "FIFO_STATUS","?",
+ "?","?","DYNPD","?","?","?","?","?",
+ "?","?","?","?","?","?","?","?"];
+
+def printpacket(packet):
+ s="";
+ i=0;
+ for foo in packet:
+ i=i+1;
+ if i>client.packetlen: break;
+ s="%s %02x" % (s,ord(foo));
+ print "%s" %s;
+
+def printconfig():
+ print "Encoding %s" % client.RF_getenc();
+ print "Freq %10i MHz" % (client.RF_getfreq()/10**6);
+ print "Rate %10i kbps" % (client.RF_getrate()/1000);
+ print "PacketLen %02i bytes" % client.RF_getpacketlen();
+ print "MacLen %2i bytes" % client.RF_getmaclen();
+ print "SMAC 0x%010x" % client.RF_getsmac();
+ print "TMAC 0x%010x" % client.RF_gettmac();
+
+