alarm_block_h

/*+ ALARM_BLOCK
 The alarm_block struct defines the format of the analog and digital
 alarm blocks.
-*/
/*
 V1.0	01-Dec-83  FJN	Created
*/

struct alarm_block {
    uword abstat;			/* Alarm status word */
    int abmin;				/* Minimum/Nominal value */
    int abmax;				/* Maximum/Tolerance/Mask value */
    ubyte abhyst[2];			/* Tries now/tries needed counters */
    ubyte abgtim[2];			/* Global event numbers */
    ubyte absdat[6];			/* Subsystem-dependent data */
    } __attribute__((packed)) /* Added by the PACKINATOR(tm) */;

#define  abnom	abmin
#define  abmsk	abmax

#define	ALARM_DATATYPE_UNINITIALIZED	0	/* alarm data type has not been selected */
#define	ALARM_DATATYPE_SIGNED_INTEGER	1	/* signed integer data type */
#define	ALARM_DATATYPE_UNSIGNED_INTEGER	2	/* unsigned integer data type */
#define	ALARM_DATATYPE_FLOAT		3	/* float data type */
#define	ALARM_DATATYPE_SWAPPED_FLOAT	4	/* float data type (swapped) */
#define	ALARM_DATATYPE_SWAPPED_SIGNED_INTEGER	5	/* signed integer data type (swapped) */
#define	ALARM_DATATYPE_SWAPPED_UNSIGNED_INTEGER	6	/* unsigned integer data type (swapped) */