File: func.h

package info (click to toggle)
xoscope 2.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,772 kB
  • sloc: ansic: 5,644; sh: 1,080; xml: 281; makefile: 61
file content (61 lines) | stat: -rw-r--r-- 1,264 bytes parent folder | download | duplicates (4)
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
54
55
56
57
58
59
60
61
/* -*- mode: C++; indent-tabs-mode: nil; fill-column: 100; c-basic-offset: 4; -*-
 *
 * Copyright (C) 1996 - 1997 Tim Witham <twitham@pcocd2.intel.com>
 *
 * (see the files README and COPYING for more details)
 *
 * xoscope 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

#if 0
#define FFT_TEST
#endif

struct signal_stats {
    short min;                  /* Minimum signal value */
    short max;                  /* Maximum signal value */
    int time;
    int freq;
#ifdef CALC_RMS
	double rms ;
#endif
};

void set_save_pending(char c);
void do_save_pending(void);
void save(int i, int src);
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(const char *, Channel *);
void startcommand(const char *);
void start_perl_function(const char *);
void restart_external_commands(void);

void init_math(void);

int update_math_signals(void);

void do_math(void);

void cleanup_math(void);

void measure_data(Channel *, struct signal_stats *);