-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmb_slave_and_master.h
43 lines (30 loc) · 1.43 KB
/
mb_slave_and_master.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
* Copyright (c) 2002,2016 Mario de Sousa (msousa@fe.up.pt)
*
* This file is part of the Modbus library for Beremiz and matiec.
*
* This Modbus library is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
* General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this Modbus library. If not, see <http://www.gnu.org/licenses/>.
*
* This code is made available on the understanding that it will not be
* used in safety-critical situations without a full and competent review.
*/
#include "mb_slave.h"
#include "mb_master.h"
/************************************************************************
initialise / shutdown the library
These functions sets up/shut down the library state
(allocate memory for buffers, initialise data strcutures, etc)
**************************************************************************/
int mb_slave_and_master_init(int nd_count_tcp, int nd_count_rtu, int nd_count_ascii);
int mb_slave_and_master_done(void);