opendnp3
3.1.0
Reference implementation of DNP3 (IEEE-1815)
|
Mock ICommandHandler used for examples and demos. More...
#include <opendnp3/outstation/SimpleCommandHandler.h>
Public Member Functions | |
SimpleCommandHandler (CommandStatus status) | |
virtual void | Begin () override |
called when a command APDU begins processing More... | |
virtual void | End () override |
called when a command APDU ends processing More... | |
CommandStatus | Operate (const AnalogOutputDouble64 &command, uint16_t index, IUpdateHandler &handler, OperateType opType) override |
Operate a double precision, floating point analog output - group 41 variation 4. More... | |
CommandStatus | Operate (const AnalogOutputFloat32 &command, uint16_t index, IUpdateHandler &handler, OperateType opType) override |
Operate a single precision, floating point analog output - group 41 variation 3. More... | |
CommandStatus | Operate (const AnalogOutputInt16 &command, uint16_t index, IUpdateHandler &handler, OperateType opType) override |
Ask if the application supports a 16 bit analog output - group 41 variation 2. More... | |
CommandStatus | Operate (const AnalogOutputInt32 &command, uint16_t index, IUpdateHandler &handler, OperateType opType) override |
Operate a 32 bit analog output - group 41 variation 1. More... | |
CommandStatus | Operate (const ControlRelayOutputBlock &command, uint16_t index, IUpdateHandler &handler, OperateType opType) override |
Operate a ControlRelayOutputBlock - group 12 variation 1. More... | |
CommandStatus | Select (const AnalogOutputDouble64 &command, uint16_t index) override |
Ask if the application supports a double precision, floating point analog output - group 41 variation 4. More... | |
CommandStatus | Select (const AnalogOutputFloat32 &command, uint16_t index) override |
Ask if the application supports a single precision, floating point analog output - group 41 variation 3. More... | |
CommandStatus | Select (const AnalogOutputInt16 &command, uint16_t index) override |
Ask if the application supports a 16 bit analog output - group 41 variation 2. More... | |
CommandStatus | Select (const AnalogOutputInt32 &command, uint16_t index) override |
Ask if the application supports a 32 bit analog output - group 41 variation 1. More... | |
CommandStatus | Select (const ControlRelayOutputBlock &command, uint16_t index) override |
Ask if the application supports a ControlRelayOutputBlock - group 12 variation 1. More... | |
Public Member Functions inherited from opendnp3::ICommandHandler | |
virtual | ~ICommandHandler ()=default |
Public Attributes | |
uint32_t | numEnd |
uint32_t | numOperate |
uint32_t | numSelect |
uint32_t | numStart |
Protected Member Functions | |
virtual void | DoOperate (const AnalogOutputDouble64 &command, uint16_t index, OperateType opType) |
virtual void | DoOperate (const AnalogOutputFloat32 &command, uint16_t index, OperateType opType) |
virtual void | DoOperate (const AnalogOutputInt16 &command, uint16_t index, OperateType opType) |
virtual void | DoOperate (const AnalogOutputInt32 &command, uint16_t index, OperateType opType) |
virtual void | DoOperate (const ControlRelayOutputBlock &command, uint16_t index, OperateType opType) |
virtual void | DoSelect (const AnalogOutputDouble64 &command, uint16_t index) |
virtual void | DoSelect (const AnalogOutputFloat32 &command, uint16_t index) |
virtual void | DoSelect (const AnalogOutputInt16 &command, uint16_t index) |
virtual void | DoSelect (const AnalogOutputInt32 &command, uint16_t index) |
virtual void | DoSelect (const ControlRelayOutputBlock &command, uint16_t index) |
Protected Attributes | |
CommandStatus | status |
Mock ICommandHandler used for examples and demos.
Definition at line 33 of file SimpleCommandHandler.h.
opendnp3::SimpleCommandHandler::SimpleCommandHandler | ( | CommandStatus | status | ) |
status | The status value to return in response to all commands |
|
overridevirtual |
called when a command APDU begins processing
Implements opendnp3::ICommandHandler.
|
inlineprotectedvirtual |
Definition at line 88 of file SimpleCommandHandler.h.
|
inlineprotectedvirtual |
Definition at line 85 of file SimpleCommandHandler.h.
|
inlineprotectedvirtual |
Definition at line 79 of file SimpleCommandHandler.h.
|
inlineprotectedvirtual |
Definition at line 82 of file SimpleCommandHandler.h.
|
inlineprotectedvirtual |
Definition at line 76 of file SimpleCommandHandler.h.
|
inlineprotectedvirtual |
Definition at line 87 of file SimpleCommandHandler.h.
|
inlineprotectedvirtual |
Definition at line 84 of file SimpleCommandHandler.h.
|
inlineprotectedvirtual |
Definition at line 78 of file SimpleCommandHandler.h.
|
inlineprotectedvirtual |
Definition at line 81 of file SimpleCommandHandler.h.
|
inlineprotectedvirtual |
Definition at line 75 of file SimpleCommandHandler.h.
|
overridevirtual |
called when a command APDU ends processing
Implements opendnp3::ICommandHandler.
|
overridevirtual |
Operate a double precision, floating point analog output - group 41 variation 4.
command | command to operate |
index | index of the command |
handler | interface for loading measurement changes |
opType | the operation type the outstation received. |
Implements opendnp3::ICommandHandler.
|
overridevirtual |
Operate a single precision, floating point analog output - group 41 variation 3.
command | command to operate |
index | index of the command |
handler | interface for loading measurement changes |
opType | the operation type the outstation received. |
Implements opendnp3::ICommandHandler.
|
overridevirtual |
Ask if the application supports a 16 bit analog output - group 41 variation 2.
command | command to operate |
index | index of the command |
handler | interface for loading measurement changes |
opType | the operation type the outstation received. |
Implements opendnp3::ICommandHandler.
|
overridevirtual |
Operate a 32 bit analog output - group 41 variation 1.
command | command to operate |
index | index of the command |
handler | interface for loading measurement changes |
opType | the operation type the outstation received. |
Implements opendnp3::ICommandHandler.
|
overridevirtual |
Operate a ControlRelayOutputBlock - group 12 variation 1.
command | command to operate |
index | index of the command |
handler | interface for loading measurement changes |
opType | the operation type the outstation received. |
Implements opendnp3::ICommandHandler.
|
overridevirtual |
Ask if the application supports a double precision, floating point analog output - group 41 variation 4.
command | command to operate |
index | index of the command |
Implements opendnp3::ICommandHandler.
|
overridevirtual |
Ask if the application supports a single precision, floating point analog output - group 41 variation 3.
command | command to operate |
index | index of the command |
Implements opendnp3::ICommandHandler.
|
overridevirtual |
Ask if the application supports a 16 bit analog output - group 41 variation 2.
command | command to operate |
index | index of the command |
Implements opendnp3::ICommandHandler.
|
overridevirtual |
Ask if the application supports a 32 bit analog output - group 41 variation 1.
command | command to operate |
index | index of the command |
Implements opendnp3::ICommandHandler.
|
overridevirtual |
Ask if the application supports a ControlRelayOutputBlock - group 12 variation 1.
command | command to operate |
index | index of the command |
Implements opendnp3::ICommandHandler.
uint32_t opendnp3::SimpleCommandHandler::numEnd |
Definition at line 96 of file SimpleCommandHandler.h.
uint32_t opendnp3::SimpleCommandHandler::numOperate |
Definition at line 93 of file SimpleCommandHandler.h.
uint32_t opendnp3::SimpleCommandHandler::numSelect |
Definition at line 94 of file SimpleCommandHandler.h.
uint32_t opendnp3::SimpleCommandHandler::numStart |
Definition at line 95 of file SimpleCommandHandler.h.
|
protected |
Definition at line 90 of file SimpleCommandHandler.h.