home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR41 / FREQ3.ZIP / FREQ.H < prev    next >
C/C++ Source or Header  |  1993-10-07  |  2KB  |  88 lines

  1. /*
  2.  *  Define the DMA buffering scheme.  Note that in the current setup for
  3.  *  running the buffers, having more than two buffers may improve the
  4.  *  continuity of the DMA, but will cause more lag in the display.
  5.  *  Also, the number of buffers must be 2 or greater.
  6.  */
  7. #define BUFFERS 2
  8. #define MAX_LEN 2048
  9.  
  10. #define WINDOW_TOP 100
  11. #define WINDOW_BOTTOM 380
  12. #define WINDOW_LEFT 64
  13. #define WINDOW_RIGHT 575
  14.  
  15. #define SRX 320
  16. #define SRY 10
  17. #define FLX 320
  18. #define FLY 22
  19. #define FRX 320
  20. #define FRY 34
  21. #define WFX 320
  22. #define WFY 46
  23. #define DGX 320
  24. #define DGY 58
  25. #define RFX 320
  26. #define RFY 70
  27.  
  28. #define GRAPH_COLOR  1
  29. #define LABEL_COLOR  2
  30. #define BORDER_COLOR 3
  31. #define TEXT_COLOR   4
  32. #define LIGHT_HIGHLIGHT 5
  33. #define DARK_HIGHLIGHT 7
  34.  
  35. #define UP        0x148
  36. #define DOWN      0x150
  37. #define LEFT      0x14b
  38. #define RIGHT     0x14d
  39. #define CTL_LEFT  0x173
  40. #define CTL_RIGHT 0x174
  41.  
  42. struct rgb
  43. {
  44.    int red;
  45.    int green;
  46.    int blue;
  47. };
  48.  
  49. /*
  50.  *  Pointer for writing directly to the screen
  51.  */
  52. #define screen(i) (*(unsigned char far *)MK_FP(0xA000,i))
  53.  
  54. /*
  55.  *  Functions in SETUPSUB.C
  56.  */
  57. void parse_ini_file(void);
  58. void parse_command(int,char *[]);
  59. void setup_buffers(int);
  60. void compute_window_function(void);
  61. void setup_xscale(void);
  62. void setup_linscales(void);
  63. void setup_logscales(void);
  64. void frequency_scale(void);
  65. void amplitude_scale(void);
  66. void update_header(void);
  67.  
  68. /*
  69.  *  Functions in PROCINP.C
  70.  */
  71. void setup_vga(void);
  72. void cleanup_vga(void);
  73. int process_input(void);
  74.  
  75. /*
  76.  *  Functions in FFT.C
  77.  */
  78. void InitializeFFT(int);
  79. void EndFFT(void);
  80. void realfft(int *);
  81.  
  82. /*
  83.  *  External table (generated in REALFFT.C) which provides the bit-reversed
  84.  *  indices for reading the results of the FFT
  85.  */
  86. extern int *BitReversed;
  87.  
  88.