Show
Ignore:
Timestamp:
08/01/07 10:24:16 (6 years ago)
Author:
jgaeddert
Message:

improving USRP autofoo, major clean-up of code

Location:
platform/USRP/trunk/USRP/src
Files:
1 added
1 moved

Legend:

Unmodified
Added
Removed
  • platform/USRP/trunk/USRP/src/USRP.h

    r2589 r4521  
    2626#include <omnithread.h> 
    2727 
    28 #ifdef HAVE_USRP 
    2928#include "usrp_standard.h" 
    30 #endif 
     29#include "usrp_dbid.h" 
     30#include "usrp_prims.h" 
    3131 
    3232#include "ossie/cf.h" 
     
    147147 
    148148{ 
    149   friend class USRP_RX_Control_i; 
    150   friend class USRP_TX_Control_i; 
    151  
    152   friend void rx_data_process(void *); 
    153  
    154  public: 
    155   USRP_i(char *id, char *label, char *profile); 
    156  
    157   static void do_rx_data_process(void *u) {((USRP_i *)u)->rx_data_process(); }; 
    158   static void do_tx_data_process(void *u) {((USRP_i *)u)->tx_data_process(); }; 
    159  
    160   // Methods from the SCA definition 
     149    friend class USRP_RX_Control_i; 
     150    friend class USRP_TX_Control_i; 
     151 
     152    friend void rx_data_process(void *); 
     153 
     154  public: 
     155    USRP_i(char *id, char *label, char *profile); 
     156 
     157    static void do_rx_data_process(void *u) {((USRP_i *)u)->rx_data_process(); }; 
     158    static void do_tx_data_process(void *u) {((USRP_i *)u)->tx_data_process(); }; 
     159 
     160    // Methods from the SCA definition 
    161161    void start() throw (CF::Resource::StartError, CORBA::SystemException); 
    162162    void stop() throw (CF::Resource::StopError, CORBA::SystemException); 
     
    182182    //    static void rx_data_process(void * data); ///\todo verify statis is the online way 
    183183 
     184    /// Prints warning about unsupported USRP daughter boards 
     185    void PrintDaughterboardWarning(const char * db_name); 
     186 
    184187    // Port objects 
    185188    USRP_RX_Control_i* rx_control_port; 
     
    214217 
    215218    long set_rx_packet_count; 
    216     long rx_packet_count;  // Number of packets to collect from USRP, -1 is forever 
    217     unsigned int rx_packet_size; // Number of samples to send to clients 
    218     unsigned int rx_data_size; // Size of words coming from USRP 
     219    long rx_packet_count;           ///< Number of packets to collect from USRP, -1 is forever 
     220    unsigned int rx_packet_size;    ///< Number of samples to send to clients 
     221    unsigned int rx_data_size;      ///< Size of words coming from USRP 
    219222    unsigned int number_of_channels; 
    220     bool complex;  // True for complex data from USRP 
     223    bool complex;                   ///< True for complex data from USRP 
    221224    unsigned int rx_overruns; 
    222225