dt_window.h File Reference

#include <stdlib.h>
#include <stdint.h>

Include dependency graph for dt_window.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef struct x_dt_windowdt_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 Documentation

typedef struct x_dt_window* dt_window

Definition at line 34 of file dt_window.h.


Enumeration Type Documentation

Enumerator:
DT_HAMMING_WINDOW 
DT_HANNING_WINDOW 
DT_BLACKMAN_WINDOW 
DT_NUMBER_OF_WINDOWS 

Definition at line 27 of file dt_window.h.


Function Documentation

void dt_window_apply ( dt_window  w,
double *  data 
)

Applies a discrete time window to real waveform data.

See also:
dt_window_create
Parameters:
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.

Parameters:
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().

Here is the call graph for this function:

void dt_window_destroy ( dt_window w  ) 

De-allocates the discrete time window object.

See also:
dt_window_create

Definition at line 108 of file dt_window.c.

Referenced by free_all().


Generated on Mon Jun 22 21:39:04 2009 for morse2txt by  doxygen 1.5.6