dnp3 (C++ API) 1.1.0
dnp3::Group12Var1 Struct Reference

Control Relay Output Block. More...

#include <dnp3.hpp>

Public Member Functions

 Group12Var1 (const ControlCode &code, uint8_t count, uint32_t on_time, uint32_t off_time)
 Fully construct Group12Var1 specifying the value of each field. More...
 

Static Public Member Functions

static Group12Var1 from_code (const ControlCode &code)
 Construct a Group12Var1 from a ControlCode. More...
 

Public Attributes

ControlCode code
 Control code. More...
 
uint8_t count
 Count. More...
 
uint32_t on_time
 Duration the output drive remains active (in milliseconds) More...
 
uint32_t off_time
 Duration the output drive remains non-active (in milliseconds) More...
 

Friends

class CppGroup12Var1Friend
 

Detailed Description

Control Relay Output Block.

Constructor & Destructor Documentation

◆ Group12Var1()

dnp3::Group12Var1::Group12Var1 ( const ControlCode code,
uint8_t  count,
uint32_t  on_time,
uint32_t  off_time 
)

Fully construct Group12Var1 specifying the value of each field.

Parameters
codeControl code
countCount
on_timeDuration the output drive remains active (in milliseconds)
off_timeDuration the output drive remains non-active (in milliseconds)
Returns
New instance of Group12Var1

Member Function Documentation

◆ from_code()

static Group12Var1 dnp3::Group12Var1::from_code ( const ControlCode code)
static

Construct a Group12Var1 from a ControlCode.

Group12Var1::count = 1, Group12Var1::on_time = 1000 and Group12Var1::off_time = 1000.

Note
Values are initialized to:
Parameters
codeControl code
Returns
New instance of Group12Var1

Member Data Documentation

◆ code

ControlCode dnp3::Group12Var1::code

Control code.

◆ count

uint8_t dnp3::Group12Var1::count

Count.

◆ off_time

uint32_t dnp3::Group12Var1::off_time

Duration the output drive remains non-active (in milliseconds)

◆ on_time

uint32_t dnp3::Group12Var1::on_time

Duration the output drive remains active (in milliseconds)


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