public Quality(short code) { this.m_qualityBits = ((qualityBits)code) & (qualityBits.goodLocalOverride | qualityBits.badWaitingForInitialData | qualityBits.badConfigurationError); this.m_limitBits = ((limitBits)code) & limitBits.constant; this.m_vendorBits = (byte)((code & -253) >> 8); }
public OPCQuality() { this.qualityFieldField = qualityBits.good; this.limitFieldField = limitBits.none; this.vendorFieldField = ((byte)(0)); }
public Quality(qualityBits quality) { this.m_qualityBits = quality; this.m_limitBits = limitBits.none; this.m_vendorBits = 0; }