modbus_api_definitions.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2018 Pilz GmbH & Co. KG
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8 
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU Lesser General Public License for more details.
13 
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef MODBUS_API_DEFINITIONS_H
19 #define MODBUS_API_DEFINITIONS_H
20 
21 #include <string>
22 
23 namespace prbt_hardware_support
24 {
25 namespace modbus_api
26 {
27 namespace v3
28 {
29 static constexpr uint16_t MODBUS_API_VERSION_REQUIRED{ 3 };
30 
31 static constexpr uint16_t MODBUS_BRAKE_TEST_PASSED{ 2 };
32 static constexpr uint16_t MODBUS_BRAKE_TEST_NOT_PASSED{ 1 };
33 static constexpr uint16_t MODBUS_BRAKE_TEST_PERFORMED{ 2 };
34 static constexpr uint16_t MODBUS_BRAKE_TEST_NOT_PERFORMED{ 1 };
35 
36 static constexpr uint16_t MODBUS_OPERATION_MODE_NONE{ 0 };
37 static constexpr uint16_t MODBUS_OPERATION_MODE_T1{ 1 };
38 static constexpr uint16_t MODBUS_OPERATION_MODE_T2{ 2 };
39 static constexpr uint16_t MODBUS_OPERATION_MODE_AUTO{ 3 };
40 
41 static constexpr uint16_t MODBUS_RUN_PERMITTED_TRUE{ 1 };
42 static constexpr uint16_t MODBUS_RUN_PERMITTED_FALSE{ 0 };
43 } // namespace v3
44 } // namespace modbus_api
45 
46 } // namespace prbt_hardware_support
47 #endif // MODBUS_API_DEFINITIONS_H
static constexpr uint16_t MODBUS_RUN_PERMITTED_FALSE
static constexpr uint16_t MODBUS_BRAKE_TEST_PERFORMED
static constexpr uint16_t MODBUS_OPERATION_MODE_T1
static constexpr uint16_t MODBUS_OPERATION_MODE_AUTO
static constexpr uint16_t MODBUS_OPERATION_MODE_T2
static constexpr uint16_t MODBUS_API_VERSION_REQUIRED
static constexpr uint16_t MODBUS_BRAKE_TEST_PASSED
static constexpr uint16_t MODBUS_OPERATION_MODE_NONE
static constexpr uint16_t MODBUS_BRAKE_TEST_NOT_PERFORMED
static constexpr uint16_t MODBUS_RUN_PERMITTED_TRUE
static constexpr uint16_t MODBUS_BRAKE_TEST_NOT_PASSED


prbt_hardware_support
Author(s):
autogenerated on Wed Nov 25 2020 03:10:38