/****************************************************************************/
/* Copyright 1991 to 1995 MBARI                                             */
/****************************************************************************/
/* Summary  : Telemetery Board Microcontroller Definitions                  */
/* Filename : telem.h                                                       */
/* Author   : Andrew Pearce                                                 */
/* Project  : Tiburon ROV Telemetery board Rev 1.0                          */
/* Version  : 1.0                                                           */
/* Created  : 03/28/95                                                      */
/* Modified : 03/28/95                                                      */
/* Archived :                                                               */
/****************************************************************************/
/* Modification History:                                                    */
/* $Header: /usr/tiburon/.cvsroot/micro/h/telem.h,v 1.1.1.1 1997/05/02 17:15:41 pean Exp $
 * $Log: telem.h,v $
 * Revision 1.1.1.1  1997/05/02 17:15:41  pean
 * Initial release of the microcontroller software after Tiburon
 * Moolpool Dive to test IView, Lapboxes, modified Power can
 * GF/5V using bus capacitance mode.
 *
 * Revision 1.1  95/09/12  09:30:37  09:30:37  pean (Andrew Pearce)
 * Initial revision
 *
*/
/****************************************************************************/

#define TELEM_RECV_PWR         0x04 /* Receive Power on P0.2                */
#define TELEM_FDDI_STATUS      0x08 /* FDDI Status on P0.3                  */
#define TELEM_LASER_STATUS     0x10 /* Laser Status on P0.4                 */
#define TELEM_SUB_MUX_ERROR    0x40 /* Sub Mux error on P0.6                */
#define TELEM_BIT_ERROR_LED    0x08 /* Front panel bit error LED on P1.3    */

#define GET_TEMPERATURE        0x01 /* Report Temperature Command           */
#define GET_TEMP_ALARM_STATUS  0x02 /* Report Temperature Alarm Status      */
#define GET_TEMP_ALARM_THRESH  0x03 /* Command to set temp alamm thresh     */
#define SET_TEMP_ALARM_THRESH  0x04 /* Command to get temp alamm thresh     */

#define RELAY_ALL_CLOSE        0x05 /* Command to close all relays          */
#define RELAY_ALL_OPEN         0x06 /* Command to open all relays           */
#define RELAY_CLOSE            0x07 /* Command to close a single relay      */
#define RELAY_OPEN             0x08 /* Command to open a single relay       */
#define GET_RELAY_STATE        0x09 /* Command to return current relay state*/
#define SET_RELAY_STATE        0x0a /* Command to return current relay state*/
#define GET_TELEM_ALARM_STATUS 0x0b /* Command to get telemetery status     */

                                    /* Telemetery Micro Service Requests    */
#define BIT_ERROR_COUNT_SRQ            APPLIC_SRQ_BASE | 0x01
#define TELEM_STATUS_ALARM_SRQ         APPLIC_SRQ_BASE | 0x02


