/* **********************************************************************
 * *                                                                    *
 * *                   Dspx scope                                       *
 * *                                                                    *
 * **********************************************************************
 * File: include/dspx_scope.h
 *
 *                    COPYRIGHT (c) 1996, 1997  BY
 *          SIGMET INCORPORATED, WESTFORD MASSACHUSETTS, U.S.A.
 *
 * THIS SOFTWARE IS FURNISHED UNDER A LICENSE AND MAY BE USED AND  COPIED
 * ONLY  IN  ACCORDANCE WITH  THE  TERMS  OF  SUCH  LICENSE  AND WITH THE
 * INCLUSION OF THE ABOVE COPYRIGHT NOTICE.  THIS SOFTWARE  OR  ANY OTHER
 * COPIES  THEREOF MAY NOT BE PROVIDED OR OTHERWISE MADE AVAILABLE TO ANY
 * OTHER PERSON.  NO TITLE TO AND OWNERSHIP OF  THE  SOFTWARE  IS  HEREBY
 * TRANSFERED.
 */

#ifndef DSPX_SCOPE_H
#define DSPX_SCOPE_H

#ifdef DSPX_SCOPE_ALLOCATE
#define EXTERN
#else
#define EXTERN extern
#endif

/* Use to select with type of pixmap
** we are using.  This can be color or black and white */
#define  PIXMAP_TYPE_ICON   1
#define  PIXMAP_TYPE_LABEL  2
#define  PIXMAP_SENSITIVE   1
#define  PIXMAP_DESENSITIVE 2


/* ***************************
 * *                         *
 * *   Shared Definitions    *
 * *           for           *
 * * DSP Examining Utilities *
 * *                         *
 * ***************************
 */

/* ==================================================
 * The following structures are written to the popup scope
 * plotting process.  They convey the number of plots to be
 * drawn, the colors/intensities, and the data itself.
 */

/* Header structure that appears at the start of all
 * transmissions.  It serves to identify the bytes that follow so
 * that a pipe reader always knows what to do.
 */
struct scope_hdr {
  UINT2 id ;			/* Identity of structure that follows  */
#define ID_SCOPE_CONFIG 1
#define ID_SCOPE_DATA   2

  char ipad2x2[2] ;
  UINT4 isize ;			/* Size (bytes) of structure that follows */
} ;

/***********************************************************************
**
** dspx_scope prototypes
**
***********************************************************************/

#ifdef _XtIntrinsic_h

void setupGC(void);
void initValues(void);
void openReadPipe(char *sreadfd_a);

void XsSetPixmap(UINT4 pixmap_type_a, UINT4 pixmap_sens_type_a, Widget wgt_a,
                 char* sfnam_a );

#endif

#undef EXTERN
#endif



