Show
Ignore:
Timestamp:
04/05/12 13:02:33 (14 months ago)
Author:
june
Message:

Completing test on USRP1, USRP2

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • ossiedev/branches/june/trunk/platform/USRP_UHD/src/USRP_UHD.h

    r11034 r11094  
    3030 
    3131#include <uhd/usrp/multi_usrp.hpp> 
     32#include <uhd/property_tree.hpp> 
     33#include <uhd/usrp/dboard_id.hpp> 
     34#include <uhd/usrp/mboard_eeprom.hpp> 
     35#include <uhd/usrp/subdev_spec.hpp> 
     36#include <uhd/usrp/dboard_eeprom.hpp> 
     37#include <uhd/usrp/dboard_manager.hpp> 
    3238 
    3339#include "ossie/cf.h" 
     
    4349#define ADC_RATE 100e6 
    4450#define USRP_UHD_MAX_TX_SAMPLES 4192 
     51#define MAX_TX_CHANNEL  2 
     52#define MAX_RX_CHANNEL  2 
    4553 
    4654// Definitions for provides ports 
     
    173181    USRP_UHD_TX_Control_i* tx_control_port; 
    174182 
    175     standardInterfaces_i::complexShort_u* rx_data_1_port; 
    176     standardInterfaces_i::complexShort_u* rx_data_2_port; 
    177  
    178     standardInterfaces_i::complexShort_p* tx_data_port; 
     183    standardInterfaces_i::complexShort_u* rx_data_ports[MAX_RX_CHANNEL]; 
     184    standardInterfaces_i::complexShort_p* tx_data_ports[MAX_TX_CHANNEL]; 
    179185 
    180186// usrp_uhd variables 
    181187    uhd::usrp::multi_usrp::sptr sdev; 
    182188    uhd::device::sptr dev; 
    183     std::vector<std::complex<short> > rx_buff; 
     189 
     190 
    184191    omni_thread *rx_thread; 
    185192    omni_thread *tx_thread; 
    186193 
     194    void rx_error_helper(uhd::rx_metadata_t::error_code_t error); 
    187195    void rx_data_process(); 
    188196    void tx_data_process(); 
     197    void probe_usrp(); 
    189198 
    190199    long set_rx_packet_count; 
     
    203212    bool full_duplex;    
    204213    bool did_rx;            
    205 }; 
     214 
     215    size_t mb_count; 
     216    size_t db_count; 
     217    size_t tx_channels; 
     218    size_t rx_channels; 
     219 
     220 
     221};