ChangeStateRequest.cpp
Go to the documentation of this file.
1
#include "
ChangeStateRequest.h
"
2
3
namespace
armarx::control::ethercat
4
{
5
ChangeStateRequest::ChangeStateRequest
(std::uint16_t
slaveIndex
,
6
EtherCATState
state
,
7
bool
validate
,
8
EtherCATState
* actualState) :
9
slaveIndex
(
slaveIndex
),
state
(
state
),
validate
(
validate
), actualState(actualState)
10
{
11
}
12
13
void
14
ChangeStateRequest::setActualState
(
EtherCATState
state
)
15
{
16
if
(actualState)
17
{
18
*actualState =
state
;
19
}
20
}
21
}
// namespace armarx::control::ethercat
ChangeStateRequest.h
armarx::control::ethercat::ChangeStateRequest::validate
bool validate
Definition
ChangeStateRequest.h:29
armarx::control::ethercat::ChangeStateRequest::slaveIndex
std::uint16_t slaveIndex
Definition
ChangeStateRequest.h:27
armarx::control::ethercat::ChangeStateRequest::ChangeStateRequest
ChangeStateRequest()=default
armarx::control::ethercat::ChangeStateRequest::state
EtherCATState state
Definition
ChangeStateRequest.h:28
armarx::control::ethercat::ChangeStateRequest::setActualState
void setActualState(EtherCATState state)
Definition
ChangeStateRequest.cpp:14
armarx::control::ethercat::EtherCATState
This class is a wrapper around an enum containing the different EtherCAT states.
Definition
EtherCATState.h:26
armarx::control::ethercat
Definition
Bus.cpp:25
armarx
control
ethercat
bus_io
requests
ChangeStateRequest.cpp
Generated by
1.13.2