1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
/*
* @(#)$Id: func.h,v 1.14 2005/06/28 21:28:39 baccala Exp $
*
* Copyright (C) 1996 - 1997 Tim Witham <twitham@pcocd2.intel.com>
*
* (see the files README and COPYING for more details)
*
* oscope math function definitions and prototypes
*
*/
#define FUNCLEFT 0
#define FUNCRIGHT 1
#define FUNCPS 2
#define FUNCMEM 3
#define FUNCEXT 4
#define FUNC0 5
#define EXTSTOP 0
#define EXTSTART 1
#define EXTRUN 2
struct signal_stats {
short min; /* Minimum signal value */
short max; /* Maximum signal value */
int time;
int freq;
};
void save(char);
void recall_on_channel(Signal *, Channel *);
void recall(Signal *);
void next_func(void);
void prev_func(void);
int function_bynum_on_channel(int, Channel *);
void start_command_on_channel(char *, Channel *);
void startcommand(char *);
void init_math();
int update_math_signals();
void do_math();
void cleanup_math();
void measure_data(Channel *, struct signal_stats *);
void init_fft(); /* in fft.c */
void fft(); /* in fft.c */
|