dbprops_h

/*
**	Copyright 1991-2017, Fermi Research Alliance, LLC.  All rights reserved.
*/
/******************************************************************************/
/* dbprops.h
**
**	Defined property indices for use with data base services
**
*/
/******************************************************************************/

#ifndef DBPROPS_DEFINED			/* do this only once */
#define	DBPROPS_DEFINED

#define	PROPERTY_MIN	1		/* minimum defined property */

#define	PRNULL		0		/* Null property */
#define	PRANAB		1		/* ANalog Alarm Block */
#define	PRAATX		2		/* Analog Alarm TeXt */
#define	PRBCTL		3		/* Basic ConTroL */
#define	PRBSTS		4		/* Basic StaTuS */
#define	PRDABL		5		/* Digital Alarm BLock */
#define	PRDATX		6		/* Digital Alarm TeXt */
#define	PRESTS		7		/* Extended STatuS */
#define	PRETXT		8		/* Extended information TeXT */
#define	PRFMLY		9		/* FaMiLY of devices */
#define	PRSSDR		(PRFMLY)	/* SubSystem's Device Record */
#define	PRNAME		10		/* device mnemonic (NAME) */
#define	PRNODE		11		/* ACNET source NODE */
#define	PRREAD		12		/* READings from front-ends */
#define	PRSET		13		/* device SETting */
#define	PRSIBL		14		/* SIBLing devices */
#define	PRTEXT		15		/* device descriptive TEXT */
#define	PREMC		16		/* Event Message Code (Aeolus) */
#define	PRSAVE		17		/* Save/restore control info */
#define	PRVMDI		18		/* Virtual Machine Device Index */
#define	PRPMSK		19		/* device Protection MaSK */
#define	PRBROK		20		/* BROKen/out of service status */
#define	PRFNAM		21		/* device FermiNAMe */
#define	PRBITS		22		/* Java device BIT_STATUS */
#define PRCBDI		23		/* Controlled-By Device Index */
#define PRDLPR		24		/* DownLoad PRoperties */
#define PRALST		25		/* Alarm LiST */
#define	PRFLNM		26		/* device FuLl NaMe */
#define	PRFLTX		27		/* device FuLl descriptive TeXt */
#define PRDCTL		28		/* device Digital ConTroL */
#define	PRPVNM		29		/* device previous name */
#define	PRAMSK		30		/* device alarm Acknowledge MaSK */
#define	PRAGRP		31		/* device Alarm GRouP */
#define	PRMACH		32		/* device MACHine */
#define PRBSSC		33		/* Basic Status SCaling */

#define	PROPERTY_MAX	33		/* maximum defined property */

#define	PROP_MASK_ANALOG_ALARM	1		/* mask for analog alarm block */	
#define	PROP_MASK_ANALOG_TEXT	2		/* mask for analog alarm text */
#define	PROP_MASK_BASIC_CONTROL	4		/* mask for basic control */
#define	PROP_MASK_BASIC_STATUS	8		/* mask for basic status */
#define	PROP_MASK_DIGITAL_ALARM	0x10		/* mask for digital alarm block */
#define	PROP_MASK_DIGITAL_TEXT	0x20		/* mask for digital alarm text */
#define	PROP_MASK_EXT_STATUS	0x40		/* mask for extended status */
#define	PROP_MASK_EXT_TEXT	0x80		/* mask for extended information text */
#define	PROP_MASK_FAMILY	0x100		/* mask for family of devices */
#define	PROP_MASK_SSDR		0x100		/* mask for SubSystem's Device Record */
#define	PROP_MASK_NAME		0x200		/* mask for device name */
#define	PROP_MASK_NODE		0x400		/* mask for ACNET source NODE */
#define	PROP_MASK_READ		0x800		/* mask for reading data */
#define	PROP_MASK_SET		0x1000		/* mask for setting data */
#define	PROP_MASK_SIBLINGS	0x2000		/* mask for siblings */
#define	PROP_MASK_TEXT		0x4000		/* mask for device descriptive text */
#define	PROP_MASK_EMC		0x8000		/* mask for Event Message Code */
#define	PROP_MASK_SAVE		0x10000		/* mask for save/restore info */
#define	PROP_MASK_VMDI		0x20000		/* mask for Virtual Machine info */
#define	PROP_MASK_PROT_MASK	0x40000		/* mask for device protection mask */
#define	PROP_MASK_BROKEN	0x80000		/* mask for device broken/out of service status */
#define	PROP_MASK_FERMI_NAME	0x100000	/* mask for device FermiName */
#define	PROP_MASK_BIT_STATUS	0x200000	/* mask for device bit status */
#define	PROP_MASK_CONTRL_BY	0x400000	/* mask for controlled-by dev */
#define	PROP_MASK_DWNLD_PROPS	0x800000	/* mask for download properties */
#define	PROP_MASK_ALARM_LIST	0x1000000	/* mask for alarm list */
#define	PROP_MASK_FULL_NAME	0x2000000	/* mask for device full name */
#define	PROP_MASK_FULL_TEXT	0x4000000	/* mask for device full descriptive text */
#define PROP_MASK_DIGITAL_CTRL	0x8000000	/* mask for device digital control */
#define	PROP_MASK_PREV_NAME	0x10000000	/* mask for previous device name */
#define	PROP_MASK_ALARM_ACK_MASK	0x20000000	/* mask for alarm acknowledge mask */
#define	PROP_MASK_ALARM_GROUP	0x40000000	/* mask for alarm group */
#define	PROP_MASK_MACHINE	0x80000000	/* mask for device machine */
#define PROP_MASK_BASIC_STATUS_SCALING	0x100000000ULL	/* mask for basic status scaling */

#endif