dglitch.h File Reference

#include <stdint.h>

Include dependency graph for dglitch.h:

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

Go to the source code of this file.

Typedefs

typedef struct ts_dglitchp_dglitch

Enumerations

enum  te_dglitch_type { DG_MEDIAN = 0, DG_NUMBER_OF_DGLITCH_ALGORS }

Functions

p_dglitch dglitch_create (te_dglitch_type type, uint32_t window_size)
void dglitch_destroy (p_dglitch *dg)
void dglitch_apply (p_dglitch dg, double *data, uint32_t size)


Typedef Documentation

typedef struct ts_dglitch* p_dglitch

Pointer to the deglitch object.

Definition at line 33 of file dglitch.h.


Enumeration Type Documentation

De-glitch algorithm types.

Enumerator:
DG_MEDIAN 
DG_NUMBER_OF_DGLITCH_ALGORS 

Definition at line 27 of file dglitch.h.


Function Documentation

void dglitch_apply ( p_dglitch  dg,
double *  data,
uint32_t  size 
)

Apply the deglitch algorith to the data.

Parameters:
dg Pointer to the deglitch object.
data Pointer to the data to be deglitched.
size Number of data points in data.

Todo:
Problem HERE, gsl_sort freezes! This is a workaround.

Definition at line 101 of file dglitch.c.

References DEBUG_DEGLITCH, dg_push(), dg_sort(), DG_STRIDE, ts_dglitch::sorted_stack, ts_dglitch::stack, and ts_dglitch::window_size.

Referenced by morse_code().

Here is the call graph for this function:

p_dglitch dglitch_create ( te_dglitch_type  type,
uint32_t  window_size 
)

Creates a deglitch object.

Parameters:
type Type of DeGlitch object to create.
See also:
te_dglitch_type
Parameters:
window_size Number of consecutive samples used to compute one deglitched value.
Returns:
Pointer to the created deglitch object.

Definition at line 78 of file dglitch.c.

References ts_dglitch::sorted_stack, ts_dglitch::stack, and ts_dglitch::window_size.

Referenced by morse_start_threads().

void dglitch_destroy ( p_dglitch dg  ) 

Destroys, and frees all memory from a deglitch object.

Parameters:
dg Pointer to the deglitch object to be freed.

Definition at line 144 of file dglitch.c.

Referenced by free_all().


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