Class encapsulated write single io data. FSRobo-R specific interface to set IO element on the controller. More...
#include <sys_stat.h>
Public Member Functions | |
unsigned int | byteLength () |
void | copyFrom (SysStat &src) |
Copies the passed in value. More... | |
industrial::shared_types::shared_int | getResult () |
Returns the value of the SysStat element. More... | |
industrial::shared_types::shared_int | getStatType () |
Returns the value of the SysStat element. More... | |
void | init () |
Initializes a empty write single io command. More... | |
void | init (industrial::shared_types::shared_int stat_type, industrial::shared_types::shared_int result) |
Initializes a complete SysStat command. More... | |
bool | load (industrial::byte_array::ByteArray *buffer) |
bool | operator== (SysStat &rhs) |
== operator implementation More... | |
void | setResult (industrial::shared_types::shared_int result) |
Sets result. More... | |
void | setStatType (industrial::shared_types::shared_int stat_type) |
Sets stat type. More... | |
SysStat (void) | |
Default constructor. More... | |
bool | unload (industrial::byte_array::ByteArray *buffer) |
~SysStat (void) | |
Destructor. More... | |
Private Attributes | |
industrial::shared_types::shared_int | result_ |
Address of SysStat element. More... | |
industrial::shared_types::shared_int | stat_type_ |
Value of SysStat element. More... | |
Class encapsulated write single io data. FSRobo-R specific interface to set IO element on the controller.
The byte representation of a write single IO command is as follows (in order lowest index to highest). The standard sizes are given, but can change based on type sizes:
member: type size stat_type (industrial::shared_types::shared_int) 4 bytes result (industrial::shared_types::shared_int) 4 bytes
THIS CLASS IS NOT THREAD-SAFE
Definition at line 81 of file sys_stat.h.
fsrobo_r_driver::simple_message::sys_stat::SysStat::SysStat | ( | void | ) |
fsrobo_r_driver::simple_message::sys_stat::SysStat::~SysStat | ( | void | ) |
Destructor.
Definition at line 49 of file sys_stat.cpp.
|
inlinevirtual |
Implements industrial::simple_serialize::SimpleSerialize.
Definition at line 166 of file sys_stat.h.
void fsrobo_r_driver::simple_message::sys_stat::SysStat::copyFrom | ( | SysStat & | src | ) |
Copies the passed in value.
src | (value to copy) |
Definition at line 65 of file sys_stat.cpp.
|
inline |
Returns the value of the SysStat element.
Definition at line 144 of file sys_stat.h.
|
inline |
Returns the value of the SysStat element.
Definition at line 134 of file sys_stat.h.
void fsrobo_r_driver::simple_message::sys_stat::SysStat::init | ( | ) |
Initializes a empty write single io command.
Definition at line 53 of file sys_stat.cpp.
void fsrobo_r_driver::simple_message::sys_stat::SysStat::init | ( | industrial::shared_types::shared_int | stat_type, |
industrial::shared_types::shared_int | result | ||
) |
Initializes a complete SysStat command.
Definition at line 59 of file sys_stat.cpp.
|
virtual |
Implements industrial::simple_serialize::SimpleSerialize.
Definition at line 79 of file sys_stat.cpp.
bool fsrobo_r_driver::simple_message::sys_stat::SysStat::operator== | ( | SysStat & | rhs | ) |
|
inline |
Sets result.
result | result value of SysStat element. |
Definition at line 124 of file sys_stat.h.
|
inline |
Sets stat type.
stat_type | Status type value of SysStat element. |
Definition at line 114 of file sys_stat.h.
|
virtual |
Implements industrial::simple_serialize::SimpleSerialize.
Definition at line 99 of file sys_stat.cpp.
|
private |
Address of SysStat element.
Definition at line 180 of file sys_stat.h.
|
private |
Value of SysStat element.
Definition at line 175 of file sys_stat.h.