equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2002,2016 Mario de Sousa (msousa@fe.up.pt) |
|
3 * |
|
4 * This file is part of the Modbus library for Beremiz and matiec. |
|
5 * |
|
6 * This Modbus library is free software: you can redistribute it and/or modify |
|
7 * it under the terms of the GNU Lesser General Public License as published by |
|
8 * the Free Software Foundation, either version 3 of the License, or |
|
9 * (at your option) any later version. |
|
10 * |
|
11 * This program is distributed in the hope that it will be useful, but |
|
12 * WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser |
|
14 * General Public License for more details. |
|
15 * |
|
16 * You should have received a copy of the GNU Lesser General Public License |
|
17 * along with this Modbus library. If not, see <http://www.gnu.org/licenses/>. |
|
18 * |
|
19 * This code is made available on the understanding that it will not be |
|
20 * used in safety-critical situations without a full and competent review. |
|
21 */ |
|
22 |
|
23 |
|
24 |
|
25 #ifndef MODBUS_SLAVE_PRIVATE_H |
|
26 #define MODBUS_SLAVE_PRIVATE_H |
|
27 |
|
28 #include "mb_slave.h" |
|
29 #include "mb_util.h" |
|
30 |
|
31 |
|
32 #define DEF_LAYER2_SEND_RETRIES 1 |
|
33 |
|
34 #define DEF_IGNORE_ECHO 0 |
|
35 |
|
36 #define DEF_OPTIMIZATION optimize_speed |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 int mb_slave_init__(int extra_bytes); |
|
42 int mb_slave_done__(void); |
|
43 |
|
44 |
|
45 #endif /* MODBUS_SLAVE_PRIVATE_H */ |
|
46 |
|
47 |
|
48 |
|
49 |
|
50 |
|
51 |
|
52 |
|
53 |