#include <stdlib.h>
#include <stdint.h>
Go to the source code of this file.
Typedefs | |
typedef struct x_dt_window * | dt_window |
Enumerations | |
enum | te_dt_window_type { DT_HAMMING_WINDOW = 0, DT_HANNING_WINDOW, DT_BLACKMAN_WINDOW, DT_NUMBER_OF_WINDOWS } |
Functions | |
dt_window | dt_window_create (te_dt_window_type type, uint32_t size) |
Pointer to an discrete time window object. | |
void | dt_window_destroy (dt_window *w) |
De-allocates the discrete time window object. | |
void | dt_window_apply (dt_window w, double *data) |
Applies a discrete time window to real waveform data. |
typedef struct x_dt_window* dt_window |
Definition at line 34 of file dt_window.h.
enum te_dt_window_type |
Definition at line 27 of file dt_window.h.
void dt_window_apply | ( | dt_window | w, | |
double * | data | |||
) |
Applies a discrete time window to real waveform data.
w | pointer to discrete time window object. | |
data | pointer to real array to apply discrete time window funtion to. |
Definition at line 95 of file dt_window.c.
References x_dt_window::elements, and x_dt_window::size.
Referenced by fwin_apply_window(), fwin_reapply_window(), and morse_create_fft_amp_array().
dt_window dt_window_create | ( | te_dt_window_type | type, | |
uint32_t | size | |||
) |
Pointer to an discrete time window object.
Used to limit FFT leakage.
type | window function (hamming, hanning). | |
size | the size of the window function, same as the audio packet data size. |
Definition at line 75 of file dt_window.c.
References dt_window_compute(), x_dt_window::elements, NUMBER_OF_WINDOW_FUNCTIONS, x_dt_window::size, and x_dt_window::window_function.
Referenced by fwin_apply_window(), and morse_start_threads().
void dt_window_destroy | ( | dt_window * | w | ) |
De-allocates the discrete time window object.
Definition at line 108 of file dt_window.c.
Referenced by free_all().