opendnp3  3.1.0
Reference implementation of DNP3 (IEEE-1815)
opendnp3::DoubleBitBinary Class Reference

The Double-bit Binary data type has two stable states, on and off, and an in transit state. More...

#include <opendnp3/app/MeasurementTypes.h>

Public Member Functions

 DoubleBitBinary ()
 
 DoubleBitBinary (DoubleBit value)
 
 DoubleBitBinary (DoubleBit value, Flags flags)
 
 DoubleBitBinary (DoubleBit value, Flags flags, DNPTime time)
 
 DoubleBitBinary (Flags flags)
 
 DoubleBitBinary (Flags flags, DNPTime time)
 

Static Private Member Functions

static Flags GetFlags (Flags flags, DoubleBit state)
 
static DoubleBit GetValue (Flags flags)
 

Static Private Attributes

static const uint8_t QualityMask = 0x3F
 
static const uint8_t ValueMask = 0xC0
 

Additional Inherited Members

- Public Types inherited from opendnp3::TypedMeasurement< DoubleBit >
typedef DoubleBit Type
 
- Public Attributes inherited from opendnp3::TypedMeasurement< DoubleBit >
DoubleBit value
 
- Public Attributes inherited from opendnp3::Measurement
Flags flags
 
DNPTime time
 
- Protected Member Functions inherited from opendnp3::TypedMeasurement< DoubleBit >
 TypedMeasurement ()
 
 TypedMeasurement (DoubleBit value, Flags flags)
 
 TypedMeasurement (DoubleBit value, Flags flags, DNPTime time)
 
 TypedMeasurement (Flags flags)
 
- Protected Member Functions inherited from opendnp3::Measurement
 Measurement ()
 
 Measurement (Flags flags)
 
 Measurement (Flags flags, DNPTime time)
 

Detailed Description

The Double-bit Binary data type has two stable states, on and off, and an in transit state.

Motor operated switches or binary valves are good examples.

Definition at line 55 of file MeasurementTypes.h.

Constructor & Destructor Documentation

◆ DoubleBitBinary() [1/6]

opendnp3::DoubleBitBinary::DoubleBitBinary ( )

◆ DoubleBitBinary() [2/6]

opendnp3::DoubleBitBinary::DoubleBitBinary ( DoubleBit  value)
explicit

◆ DoubleBitBinary() [3/6]

opendnp3::DoubleBitBinary::DoubleBitBinary ( Flags  flags)
explicit

◆ DoubleBitBinary() [4/6]

opendnp3::DoubleBitBinary::DoubleBitBinary ( Flags  flags,
DNPTime  time 
)

◆ DoubleBitBinary() [5/6]

opendnp3::DoubleBitBinary::DoubleBitBinary ( DoubleBit  value,
Flags  flags 
)

◆ DoubleBitBinary() [6/6]

opendnp3::DoubleBitBinary::DoubleBitBinary ( DoubleBit  value,
Flags  flags,
DNPTime  time 
)

Member Function Documentation

◆ GetFlags()

static Flags opendnp3::DoubleBitBinary::GetFlags ( Flags  flags,
DoubleBit  state 
)
staticprivate

◆ GetValue()

static DoubleBit opendnp3::DoubleBitBinary::GetValue ( Flags  flags)
staticprivate

Member Data Documentation

◆ QualityMask

const uint8_t opendnp3::DoubleBitBinary::QualityMask = 0x3F
staticprivate

Definition at line 72 of file MeasurementTypes.h.

◆ ValueMask

const uint8_t opendnp3::DoubleBitBinary::ValueMask = 0xC0
staticprivate

Definition at line 71 of file MeasurementTypes.h.


The documentation for this class was generated from the following file: