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:
16:d4ea3e6a0bce
--- a/signal_processing.h	Mon Jan 30 14:48:42 2017 +0000
+++ b/signal_processing.h	Mon Jan 30 15:01:29 2017 +0000
@@ -27,7 +27,10 @@
     int Fs;                 // sampling Frequency [Hz]
     float duty_cycle;       // VFO duty cycle. 0 ... 0.5
     wave_style style;       // style of the wave form.
-    int current_phase;       // internal variable of VFO.
+    int current_phase;      // internal variable of VFO.
+    int half_way;           // change point by duty cycle. ( period * duty_cycle ).
+    
+    void update_parameter();    // call one of the parameter is changed.
 };
 
 
@@ -46,10 +49,10 @@
            
         // project depenedent members.
     void set_volume( float vol );
-    void set_frequency( int freq );  // unit is Hz.
     void set_Fs( int Fs );          // unit is Hz.
-    void set_duty_cycle( float duty );  // 0 ... 0.5
-    void set_wave_style( wave_style style );
+    void set_vfo_frequency( int freq );  // unit is Hz.
+    void set_vfo_duty_cycle( float duty );  // 0 ... 0.5
+    void set_vfo_wave_style( wave_style style );
 private:
         // essential members. Do not touch.
     void enter_critical_section(void);