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:
15:de22b9d147e0
Parent:
14:cec63d8da48c
Child:
18:b9b1116f8768
--- a/signal_processing.cpp	Mon Jan 30 14:48:42 2017 +0000
+++ b/signal_processing.cpp	Mon Jan 30 15:01:29 2017 +0000
@@ -32,29 +32,40 @@
 }   // End of run()
     
 
+    // Sampling Frequency
 void SignalProcessing::set_Fs( int Fs )
 {
+    this->enter_critical_section();     // forbidden interrrupt.
     this->vfo->set_Fs( Fs );
+    this->leave_critical_section();     // now, ok to accept interrupt.
 }
 
-void SignalProcessing::set_frequency( int freq )
+    // Oscillation Frequency
+void SignalProcessing::set_vfo_frequency( int freq )
 {
+    this->enter_critical_section();     // forbidden interrrupt.
     this->vfo->set_frequency( freq );
+    this->leave_critical_section();     // now, ok to accept interrupt.
 }
 
-void SignalProcessing::set_duty_cycle( float duty )
+    // Duty Cycle of VFO
+void SignalProcessing::set_vfo_duty_cycle( float duty )
 {
+    this->enter_critical_section();     // forbidden interrrupt.
     this->vfo->set_duty_cycle( duty );
+    this->leave_critical_section();     // now, ok to accept interrupt.
 }
 
-void SignalProcessing::set_wave_style( wave_style style )
+    // VFO wave style
+void SignalProcessing::set_vfo_wave_style( wave_style style )
 {
+    this->enter_critical_section();     // forbidden interrrupt.
     this->vfo->set_wave_style( style );
+    this->leave_critical_section();     // now, ok to accept interrupt.
 }
 
-
            
-        // Sample method. Set the volume level to the object.
+        // Set the volume level to the object.
 void SignalProcessing::set_volume( float vol )
 {
     this->enter_critical_section();     // forbidden interrrupt.