Changeset 10634
- Timestamp:
- 03/25/11 14:32:04 (2 years ago)
- Location:
- ossiedev/branches/jeongo9/components/liquid-components
- Files:
-
- 5 modified
-
makefile.in (modified) (1 diff)
-
src/FlexframeGen.cpp (modified) (6 diffs)
-
src/FlexframeSync.cpp (modified) (2 diffs)
-
src/PacketSource.cpp (modified) (1 diff)
-
src/Resampler.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ossiedev/branches/jeongo9/components/liquid-components/makefile.in
r10566 r10634 46 46 FrameGen64 \ 47 47 FrameSync64 \ 48 PacketDecoder \49 PacketEncoder \50 48 PacketSink \ 51 49 PacketSource \ 52 Resampler 50 Resampler 51 # PacketEncoder \ 52 # PacketDecoder 53 53 54 54 # Target collection -
ossiedev/branches/jeongo9/components/liquid-components/src/FlexframeGen.cpp
r10566 r10634 47 47 fgprops.mod_bps = 4; 48 48 fgprops.rampdn_len = 16; 49 fgprops.check = CRC_NONE; 50 fgprops.fec0 = FEC_NONE; 51 fgprops.fec1 = FEC_NONE; 49 52 50 53 fg = flexframegen_create(&fgprops); 51 54 std::cout << "flexframegen_create done" <<std::endl<<std::flush; 52 55 payload_len = 64; 53 56 payload = (unsigned char*) malloc(payload_len); … … 62 65 float dt = 0; 63 66 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); 66 69 interp2 = resamp2_crcf_create(37,0,60); 70 71 std::cout << "interp and resamp create done" <<std::endl<<std::flush; 67 72 } 68 73 … … 287 292 fgprops.mod_bps = bps; 288 293 flexframegen_setprops(fg,&fgprops); 294 std::cout << "flexframegen: setting props done" << std::endl << std::flush; 289 295 } 290 296 … … 308 314 verbose = 1; 309 315 while(continue_processing()) { 316 std::cout << "flexframegen: inside loop" << std::endl << std::flush; 310 317 // get data from header port 311 318 headerDataPortIn->getData(headerData); … … 351 358 // execute interpolator one sample at a time, storing in 352 359 // two-sample array y 353 interp_crcf_execute(interp, frame[i], y);360 interp_crcf_execute(interp, frame[i], &y[0]); 354 361 355 362 #if 0 … … 376 383 // push output frame 377 384 frameDataPortOut->pushPacket(I_out, Q_out); 378 385 std::cout << "FlexframeGen" << std::endl; 379 386 // free input buffers 380 387 headerDataPortIn->bufferEmptied(); -
ossiedev/branches/jeongo9/components/liquid-components/src/FlexframeSync.cpp
r10566 r10634 37 37 unsigned char * _payload, 38 38 unsigned int _payload_len, 39 int _payload_valid, 39 40 framesyncstats_s _stats, 40 41 void * _userdata); … … 308 309 unsigned char * _payload, 309 310 unsigned int _payload_len, 311 int _payload_valid, 310 312 framesyncstats_s _stats, 311 313 void * _userdata) -
ossiedev/branches/jeongo9/components/liquid-components/src/PacketSource.cpp
r10566 r10634 227 227 228 228 packetPayloadDataOut->pushPacket(payloadData); 229 229 std::cout << "PacketSource" << std::endl; 230 230 packet_id++; 231 231 packet_id &= 0xff; // for now strip id to only last 8 bits -
ossiedev/branches/jeongo9/components/liquid-components/src/Resampler.cpp
r10566 r10634 44 44 h_len = 13; 45 45 r = 1.0f; 46 bw = 0. 5f;46 bw = 0.25f; 47 47 As = 60.0f; 48 48 npfb = 32; … … 153 153 DEBUG(3, Resampler, "configure() invoked") 154 154 155 #if 0156 155 static int init = 0; 157 156 if( init == 0 ) { … … 167 166 init = 1; 168 167 } 169 #endif170 168 171 169 std::cout << "props length : " << props.length() << std::endl;