module: usrp_lftx
label_as_usrp_module: yes
parameters: double dco_freq, double dac_gain, double sample_rate
inputs:  double tx_a, double tx_b
outputs: 
classes: USRPTransmitObject usrp_transmit_object(sample_rate,Ts);
static_variables:  double actual_vco_freq
init:
int slot, flag;

flag = 0;
for (slot = 1; slot >= 0; slot--)
   {
    usrp_transmit_object.set_slot(slot);
    if (usrp_transmit_object.dbid == USRP_DBID_LF_TX)
       {
        flag = 1;
        printf("found USRP LFTX board on slot '%d'\n",slot);
        break;
       }
   }
if (flag == 0)
   {
    printf("error in 'usrp_lftx':  can't find a lftx daughterboard\n");
    for (slot = 1; slot >= 0; slot--)
      {
       usrp_transmit_object.set_slot(slot);
       printf("... found USRP dbid '0x%x' on *transmit* slot '%d'\n",
               usrp_transmit_object.dbid, slot);
      }
    exit(1); 
   }

usrp_transmit_object.set_dco_freq(dco_freq);
usrp_transmit_object.set_dac_gain(dac_gain);

code:

usrp_transmit_object.stream_dac_out(tx_a,tx_b);
