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を基本にしています。

Committer:
shorie
Date:
Fri Feb 03 14:41:40 2017 +0000
Revision:
20:699e209fd19a
Parent:
19:f5e785fe50b1
Rewind the faulty commit.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
shorie 6:486b1cb03e61 1 #ifndef _SIGNAL_PROCESSING_H_
shorie 6:486b1cb03e61 2 #define _SIGNAL_PROCESSING_H_
shorie 6:486b1cb03e61 3
shorie 6:486b1cb03e61 4 #include "amakusa.h"
shorie 6:486b1cb03e61 5
shorie 6:486b1cb03e61 6 // User Signal processing Class
shorie 6:486b1cb03e61 7 class SignalProcessing {
shorie 6:486b1cb03e61 8 public:
shorie 6:486b1cb03e61 9 // essential members. Do not touch
shorie 6:486b1cb03e61 10 SignalProcessing( unsigned int block_size );
shorie 6:486b1cb03e61 11 void run(
shorie 6:486b1cb03e61 12 float rx_left_buffer[], // array of the left input samples
shorie 6:486b1cb03e61 13 float rx_right_buffer[], // array of the right input samples
shorie 6:486b1cb03e61 14 float tx_left_buffer[], // place to write the left output samples
shorie 13:b33cb5925113 15 float tx_right_buffer[], // place to write the right output samples
shorie 6:486b1cb03e61 16 unsigned int block_size // block size [sample]
shorie 6:486b1cb03e61 17 );
shorie 6:486b1cb03e61 18
shorie 6:486b1cb03e61 19 // project depenedent members.
shorie 6:486b1cb03e61 20 void set_volume( float vol );
shorie 6:486b1cb03e61 21 private:
shorie 6:486b1cb03e61 22 // essential members. Do not touch.
shorie 6:486b1cb03e61 23 void enter_critical_section(void);
shorie 6:486b1cb03e61 24 void leave_critical_section(void);
shorie 6:486b1cb03e61 25
shorie 6:486b1cb03e61 26 // project dependent members.
shorie 20:699e209fd19a 27 float volume_level;
shorie 6:486b1cb03e61 28 };
shorie 6:486b1cb03e61 29
shorie 6:486b1cb03e61 30 #endif