bpmrf/rf_amplify_complex.c

Go to the documentation of this file.
00001 
00005 #include <bpm/bpm_interface.h>
00006 #include <bpm/bpm_rf.h>
00007 #include <bpm/bpm_nr.h>
00008 #include <bpm/bpm_wf.h>
00009 
00017 int rf_amplify_complex( complexwf_t *RF, double dB ) {
00018 
00019   complex_t f;
00020  
00021   if ( ! RF ) {
00022     bpm_error( "Invalid pointer arguments in rf_amplify(...)",
00023                __FILE__, __LINE__ );
00024     return BPM_FAILURE;
00025   }
00026 
00027   f.re = pow ( 10., dB / 20. );
00028   f.im = 0.;
00029 
00030   complexwf_scale( f, RF );
00031 
00032   return BPM_SUCCESS;
00033 }
00034 // end of file

Generated on Thu Jan 10 10:18:04 2008 for libbpm by  doxygen 1.5.1