initial
Dependencies: mbed BSP_DISCO_F746NG mbed-dsp
signal_processing.h@6:291e341f0d71, 2020-03-06 (annotated)
- Committer:
- justenmg
- Date:
- Fri Mar 06 19:02:55 2020 +0000
- Revision:
- 6:291e341f0d71
- Parent:
- 5:a658cda1d619
- Child:
- 7:88543caf2b6e
all working except conv
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bmazzeo | 0:c0f52e8223fe | 1 | /** |
bmazzeo | 0:c0f52e8223fe | 2 | ****************************************************************************** |
bmazzeo | 0:c0f52e8223fe | 3 | * @file signal_processing.h |
bmazzeo | 0:c0f52e8223fe | 4 | * @author Brian Mazzeo |
bmazzeo | 0:c0f52e8223fe | 5 | * @date 2020 |
bmazzeo | 0:c0f52e8223fe | 6 | * @brief This file provides a set of code for signal processing in 487. |
bmazzeo | 0:c0f52e8223fe | 7 | * Parts are taken from example code from STMIcroelectronics |
bmazzeo | 0:c0f52e8223fe | 8 | ****************************************************************************** |
bmazzeo | 0:c0f52e8223fe | 9 | * @attention |
bmazzeo | 0:c0f52e8223fe | 10 | * This code was specifically developed for BYU ECEn 487 course |
bmazzeo | 0:c0f52e8223fe | 11 | * Introduction to Digital Signal Processing. |
bmazzeo | 0:c0f52e8223fe | 12 | * |
bmazzeo | 0:c0f52e8223fe | 13 | * |
bmazzeo | 0:c0f52e8223fe | 14 | ****************************************************************************** |
bmazzeo | 0:c0f52e8223fe | 15 | */ |
bmazzeo | 0:c0f52e8223fe | 16 | |
bmazzeo | 0:c0f52e8223fe | 17 | #include "mbed.h" |
bmazzeo | 0:c0f52e8223fe | 18 | #include "stm32746g_discovery_lcd.h" |
bmazzeo | 0:c0f52e8223fe | 19 | |
bmazzeo | 0:c0f52e8223fe | 20 | |
bmazzeo | 0:c0f52e8223fe | 21 | void initalize_signal_processing(void); |
bmazzeo | 0:c0f52e8223fe | 22 | void process_audio_channel_signals(float32_t* L_channel_in, float32_t* R_channel_in, float32_t* L_channel_out, float32_t* R_channel_out, uint16_t Signal_Length); |
justenmg | 1:103e3e426b55 | 23 | |
justenmg | 4:99de9b4005d2 | 24 | void filter_conv_init(); |
justenmg | 4:99de9b4005d2 | 25 | void filter_fft_init(); |
justenmg | 6:291e341f0d71 | 26 | void filter_fft_OS_init(); |
justenmg | 4:99de9b4005d2 | 27 | |
justenmg | 5:a658cda1d619 | 28 | void filter_OA_CONV(float32_t* overlap_buffer, float32_t* d_in, float32_t* d_out, uint16_t sig_length); |
justenmg | 5:a658cda1d619 | 29 | void filter_OA_FFT(float32_t* overlap_buffer, float32_t* fft_buffer, float32_t* ifft_buffer, float32_t* d_in, float32_t* d_out, uint16_t sig_length); |
justenmg | 5:a658cda1d619 | 30 | void filter_OA_FFT_RI(float32_t* overlap_buffer1, float32_t* overlap_buffer2, float32_t* fft_buffer, float32_t* ifft_buffer, float32_t* d_in1, float32_t* d_in2, float32_t* d_out1, float32_t* d_out2, uint16_t sig_length); |
justenmg | 5:a658cda1d619 | 31 | void filter_OS_FFT_RI(float32_t* save_buffer1, float32_t* save_buffer2, float32_t* fft_buffer, float32_t* ifft_buffer, float32_t* d_in1, float32_t* d_in2, float32_t* d_out1, float32_t* d_out2, uint16_t sig_length); |