ChangeStateRequest.h
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4
6
7#include "RequestBase.h"
8
10{
11 /**
12 * @class ChangeStateRequest
13 * @ingroup Library-ethercat
14 * @brief Brief description of class ChangeStateRequest.
15 *
16 * Detailed description of class ChangeStateRequest.
17 */
18 class ChangeStateRequest : public virtual RequestBase
19 {
20 public:
21 ChangeStateRequest() = default;
22 ChangeStateRequest(std::uint16_t slaveIndex,
24 bool validate,
25 EtherCATState* actualState);
26
27 std::uint16_t slaveIndex = 0;
29 bool validate = false;
30
32
33 private:
34 EtherCATState* actualState = nullptr;
35 };
36
37} // namespace armarx::control::ethercat
This class is a wrapper around an enum containing the different EtherCAT states.
@ invalid
State is not valid, e.g. if a request for reading the actual bus state failed.
Brief description of class RequestBase.
Definition RequestBase.h:13