bpmrf/rf_amplify.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( doublewf_t *RF, double dB ) {
00018 
00019   if ( ! RF ) {
00020     bpm_error( "Invalid pointer arguments in rf_amplify(...)",
00021                __FILE__, __LINE__ );
00022     return BPM_FAILURE;
00023   }
00024 
00025   doublewf_scale( pow ( 10., dB / 20. ), RF );
00026 
00027   return BPM_SUCCESS;
00028 }
00029 // end of file

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