Experimental implementation of the adaptive filter of "Interface" magazine in 2016-2017
Dependencies: amakusa mbed-dsp mbed shimabara ukifune unzen_nucleo_f746
Fork of skeleton_unzen_nucleo_f746 by
ハードウェアおよびソフトウェアはskelton_unzen_nucleo_f746を基本にしています。
Diff: monophonic.cpp
- Revision:
- 20:699e209fd19a
- Parent:
- 19:f5e785fe50b1
diff -r f5e785fe50b1 -r 699e209fd19a monophonic.cpp --- a/monophonic.cpp Fri Feb 03 14:35:46 2017 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,55 +0,0 @@ -#include "signal_processing.h" - - - // constructor. -Monophonic::Monophonic( unsigned int block_size ) -{ - // initializing the subm-odules. - this->vfo = new VFO(); // allocate VFO -} // End of constructor() - -Monophonic::~Monophonic( void ) -{ - // initializing the subm-odules. - delete this->vfo; -} // End of constructor() - - - - // Run all signal processing. -void Monophonic::run( - float out_buffer[], // place to write the right output samples - unsigned int block_size // block size [sample] - ) -{ - // place the signal processing coce here - - // VFO - this->vfo->run( out_buffer, block_size); - -} // End of run() - - - // Sampling Frequency -void Monophonic::set_Fs( int Fs ) -{ - this->vfo->set_Fs( Fs ); -} - - // Oscillation Frequency -void Monophonic::set_vfo_frequency( int freq ) -{ - this->vfo->set_frequency( freq ); -} - - // Duty Cycle of VFO -void Monophonic::set_vfo_duty_cycle( float duty ) -{ - this->vfo->set_duty_cycle( duty ); -} - - // VFO wave form -void Monophonic::set_vfo_wave_form( wave_form form ) -{ - this->vfo->set_wave_form( form ); -}