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を基本にしています。
signal_processing.h@6:486b1cb03e61, 2017-01-27 (annotated)
- Committer:
- shorie
- Date:
- Fri Jan 27 01:53:43 2017 +0000
- Revision:
- 6:486b1cb03e61
- Child:
- 13:b33cb5925113
Skeleton build successful. Need to test.
Who changed what in which revision?
User | Revision | Line number | New 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 | 6:486b1cb03e61 | 15 | float tx_right_buffer[], // place to write the left 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 | 6:486b1cb03e61 | 27 | float volume_level; |
shorie | 6:486b1cb03e61 | 28 | }; |
shorie | 6:486b1cb03e61 | 29 | |
shorie | 6:486b1cb03e61 | 30 | #endif |