Changeset 10634

Show
Ignore:
Timestamp:
03/25/11 14:32:04 (2 years ago)
Author:
jeongo9
Message:

Updated components so that they will work with latest liquid-dsp(3a4fb0c3a627bc16b3745d3229bbac5f70a3f422)

Location:
ossiedev/branches/jeongo9/components/liquid-components
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • ossiedev/branches/jeongo9/components/liquid-components/makefile.in

    r10566 r10634  
    4646        FrameGen64              \ 
    4747        FrameSync64             \ 
    48         PacketDecoder           \ 
    49         PacketEncoder           \ 
    5048        PacketSink              \ 
    5149        PacketSource            \ 
    52         Resampler 
     50        Resampler                
     51#       PacketEncoder           \ 
     52#       PacketDecoder            
    5353 
    5454# Target collection 
  • ossiedev/branches/jeongo9/components/liquid-components/src/FlexframeGen.cpp

    r10566 r10634  
    4747    fgprops.mod_bps     = 4; 
    4848    fgprops.rampdn_len  = 16; 
     49    fgprops.check       = CRC_NONE; 
     50    fgprops.fec0        = FEC_NONE; 
     51    fgprops.fec1        = FEC_NONE; 
    4952 
    5053    fg = flexframegen_create(&fgprops); 
    51  
     54    std::cout << "flexframegen_create done" <<std::endl<<std::flush; 
    5255    payload_len = 64; 
    5356    payload = (unsigned char*) malloc(payload_len); 
     
    6265    float dt = 0; 
    6366 
    64     interp = interp_crcf_create_rrc(k,m,beta,dt); 
    65  
     67//    interp = interp_crcf_create_rrc(k,m,beta,dt); 
     68    interp = interp_crcf_create_rnyquist(LIQUID_RNYQUIST_RRC,k,m,beta,dt); 
    6669    interp2 = resamp2_crcf_create(37,0,60); 
     70 
     71    std::cout << "interp and resamp create done" <<std::endl<<std::flush; 
    6772} 
    6873 
     
    287292    fgprops.mod_bps    = bps; 
    288293    flexframegen_setprops(fg,&fgprops); 
     294    std::cout << "flexframegen: setting props done" << std::endl << std::flush; 
    289295} 
    290296 
     
    308314    verbose = 1; 
    309315    while(continue_processing()) { 
     316        std::cout << "flexframegen: inside loop" << std::endl << std::flush; 
    310317        // get data from header port 
    311318        headerDataPortIn->getData(headerData); 
     
    351358            // execute interpolator one sample at a time, storing in 
    352359            // two-sample array y 
    353             interp_crcf_execute(interp, frame[i], y); 
     360            interp_crcf_execute(interp, frame[i], &y[0]); 
    354361 
    355362#if 0 
     
    376383        // push output frame 
    377384        frameDataPortOut->pushPacket(I_out, Q_out); 
    378  
     385        std::cout << "FlexframeGen" << std::endl; 
    379386        // free input buffers 
    380387        headerDataPortIn->bufferEmptied(); 
  • ossiedev/branches/jeongo9/components/liquid-components/src/FlexframeSync.cpp

    r10566 r10634  
    3737                    unsigned char * _payload, 
    3838                    unsigned int _payload_len, 
     39                    int _payload_valid, 
    3940                    framesyncstats_s _stats, 
    4041                    void * _userdata); 
     
    308309                    unsigned char * _payload, 
    309310                    unsigned int _payload_len, 
     311                    int _payload_valid, 
    310312                    framesyncstats_s _stats, 
    311313                    void * _userdata) 
  • ossiedev/branches/jeongo9/components/liquid-components/src/PacketSource.cpp

    r10566 r10634  
    227227 
    228228        packetPayloadDataOut->pushPacket(payloadData); 
    229  
     229std::cout << "PacketSource" << std::endl; 
    230230        packet_id++; 
    231231        packet_id &= 0xff; // for now strip id to only last 8 bits 
  • ossiedev/branches/jeongo9/components/liquid-components/src/Resampler.cpp

    r10566 r10634  
    4444    h_len = 13; 
    4545    r = 1.0f; 
    46     bw = 0.5f; 
     46    bw = 0.25f; 
    4747    As = 60.0f; 
    4848    npfb = 32; 
     
    153153    DEBUG(3, Resampler, "configure() invoked") 
    154154 
    155 #if 0 
    156155    static int init = 0; 
    157156    if( init == 0 ) { 
     
    167166        init = 1; 
    168167    } 
    169 #endif 
    170168 
    171169    std::cout << "props length : " << props.length() << std::endl;