libiec61850  1.2.0
Macros | Typedefs | Functions
Definitions and functions related to data attribute quality

Macros

#define QUALITY_VALIDITY_GOOD   0
 
#define QUALITY_VALIDITY_INVALID   2
 
#define QUALITY_VALIDITY_RESERVED   1
 
#define QUALITY_VALIDITY_QUESTIONABLE   3
 
#define QUALITY_DETAIL_OVERFLOW   4
 
#define QUALITY_DETAIL_OUT_OF_RANGE   8
 
#define QUALITY_DETAIL_BAD_REFERENCE   16
 
#define QUALITY_DETAIL_OSCILLATORY   32
 
#define QUALITY_DETAIL_FAILURE   64
 
#define QUALITY_DETAIL_OLD_DATA   128
 
#define QUALITY_DETAIL_INCONSISTENT   256
 
#define QUALITY_DETAIL_INACCURATE   512
 
#define QUALITY_SOURCE_SUBSTITUTED   1024
 
#define QUALITY_TEST   2048
 
#define QUALITY_OPERATOR_BLOCKED   4096
 

Typedefs

typedef uint16_t Quality
 
typedef uint16_t Validity
 

Functions

Validity Quality_getValidity (Quality *self)
 
void Quality_setValidity (Quality *self, Validity validity)
 
void Quality_setFlag (Quality *self, int flag)
 
void Quality_unsetFlag (Quality *self, int flag)
 
bool Quality_isFlagSet (Quality *self, int flag)
 
Quality Quality_fromMmsValue (const MmsValue *mmsValue)
 

Detailed Description

Macro Definition Documentation

#define QUALITY_DETAIL_BAD_REFERENCE   16
#define QUALITY_DETAIL_FAILURE   64
#define QUALITY_DETAIL_INACCURATE   512
#define QUALITY_DETAIL_INCONSISTENT   256
#define QUALITY_DETAIL_OLD_DATA   128
#define QUALITY_DETAIL_OSCILLATORY   32
#define QUALITY_DETAIL_OUT_OF_RANGE   8
#define QUALITY_DETAIL_OVERFLOW   4
#define QUALITY_OPERATOR_BLOCKED   4096
#define QUALITY_SOURCE_SUBSTITUTED   1024
#define QUALITY_TEST   2048
#define QUALITY_VALIDITY_GOOD   0
#define QUALITY_VALIDITY_INVALID   2
#define QUALITY_VALIDITY_QUESTIONABLE   3
#define QUALITY_VALIDITY_RESERVED   1

Typedef Documentation

typedef uint16_t Quality
typedef uint16_t Validity

Function Documentation

Quality Quality_fromMmsValue ( const MmsValue mmsValue)
Validity Quality_getValidity ( Quality self)
bool Quality_isFlagSet ( Quality self,
int  flag 
)
void Quality_setFlag ( Quality self,
int  flag 
)
void Quality_setValidity ( Quality self,
Validity  validity 
)
void Quality_unsetFlag ( Quality self,
int  flag 
)