From ea8612909226a6c7de0bf7ac897979e7024f04cd Mon Sep 17 00:00:00 2001 From: philipp Date: Wed, 18 Apr 2018 16:54:30 +0200 Subject: [PATCH] Added missing constants So they will properly be recognized by IDE --- devsupApp/src/devsup/__init__.py | 34 +++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/devsupApp/src/devsup/__init__.py b/devsupApp/src/devsup/__init__.py index 977f926..506e4af 100644 --- a/devsupApp/src/devsup/__init__.py +++ b/devsupApp/src/devsup/__init__.py @@ -23,6 +23,38 @@ epicsver = (0,0,0,0,"0","") pydevver = (0,0) - INVALID_ALARM = UDF_ALARM = 0 + # Alarm Severity + ( + NO_ALARM, # No alarm has been triggered + MINOR_ALARM, # Needs attention but is not dangerous (warning) + MAJOR_ALARM, # Needs immediate attention by the operator (serious alarm) + INVALID_ALARM # Invalid data, e.g. due to device communication failure, overflow, etc. + ) = range(4) + + # Alarm Status + ( + NO_ALARM, # This record is not in alarm + READ_ALARM, # An INPUT link failed in the device support + WRITE_ALARM, # An OUTPUT link failed in the device support + HIHI_ALARM, # An analog value limit alarm + HIGH_ALARM, # An analog value limit alarm + LOLO_ALARM, # An analog value limit alarm + LOW_ALARM, # An analog value limit alarm + STATE_ALARM, # A digital value state alarm + COS_ALARM, # A digital value change of state alarm + COMM_ALARM, # A device support alarm that indicates the device is not communicating + TIMEOUT_ALARM, # A device sup alarm that indicates the asynchronous device timed out + HW_LIMIT_ALARM, # A device sup alarm that indicates a hardware limit alarm + CALC_ALARM, # A record support alarm for calculation records indicating a bad calulation + SCAN_ALARM, # An invalid SCAN field is entered + LINK_ALARM, # Soft device support for a link failed + SOFT_ALARM, + BAD_SUB_ALARM, + UDF_ALARM, + DISABLE_ALARM, + SIMM_ALARM, + READ_ACCESS_ALARM, + WRITE_ACCESS_ALARM + ) = range(22) __all__ = []