initial
Dependencies: mbed BSP_DISCO_F746NG mbed-dsp
signal_processing.h@1:103e3e426b55, 2020-02-12 (annotated)
- Committer:
- justenmg
- Date:
- Wed Feb 12 01:03:05 2020 +0000
- Revision:
- 1:103e3e426b55
- Parent:
- 0:c0f52e8223fe
- Child:
- 2:89234085faae
feb 11
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 | 1:103e3e426b55 | 24 | void filter(float32_t* buffer, float32_t* d_in, float32_t* d_out, uint16_t buf_length); |
justenmg | 1:103e3e426b55 | 25 | void filter_init(); |
justenmg | 1:103e3e426b55 | 26 | |
justenmg | 1:103e3e426b55 | 27 | float32_t convolve(float32_t* data, float32_t* filter, uint16_t sig_length, uint16_t buf_length); |