/* **********************************************************************
 * *                                                                    *
 * *  Real-Time Display transmitter process header file                 *
 * *                                                                    *
 * **********************************************************************
 * File: libs/rtq/RtdSupport_h.h
 *
 *                        COPYRIGHT (c) 2003  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.
 */

#define        ALL_OFF         1
#define RTQLIB_ALL_OFF         (RTQLIB_FACILITY + ALL_OFF       )
#define        BAD_CHANNEL     2
#define RTQLIB_BAD_CHANNEL     (RTQLIB_FACILITY + BAD_CHANNEL   )
#define        MISSING_ADDR    3
#define RTQLIB_MISSING_ADDR    (RTQLIB_FACILITY + MISSING_ADDR  )
#define        NOT_REACHABLE   4
#define RTQLIB_NOT_REACHABLE   (RTQLIB_FACILITY + NOT_REACHABLE )
#define        SYNTAX          5
#define RTQLIB_SYNTAX          (RTQLIB_FACILITY + SYNTAX        )

#ifndef MESSAGE_ONLY

int iGetChannel
( int iArgc_a, 
  char *sArgv_a[] );

void Lprintf
( const char *sString_a );

MESSAGE RtdSignalHandler
(MESSAGE iStatus_a,
 UINT4 iCount_a,
 const UINT4 iSigArgs_a[] );

MESSAGE RtdXmtOn
( volatile struct rtdisp_control *pRtqGlobal_a,
  SINT4 (*ReadPacketProc_a)( UINT1 **pBuffer, int iChannel ),
  int iChannel_a );  /* Channel number, origin 0 */

#endif  /* #ifndef MESSAGE_ONLY */
