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 seiichi horie

ハードウェアおよびソフトウェアはskelton_unzen_nucleo_f746を基本にしています。

Revision:
18:b9b1116f8768
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/monophonic.cpp	Wed Feb 01 15:00:31 2017 +0000
@@ -0,0 +1,55 @@
+#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 );
+}