msousa@0: /* msousa@0: * Copyright (c) 2002,2016 Mario de Sousa (msousa@fe.up.pt) msousa@0: * msousa@0: * This file is part of the Modbus library for Beremiz and matiec. msousa@0: * msousa@0: * This Modbus library is free software: you can redistribute it and/or modify msousa@0: * it under the terms of the GNU Lesser General Public License as published by msousa@0: * the Free Software Foundation, either version 3 of the License, or msousa@0: * (at your option) any later version. msousa@0: * msousa@0: * This program is distributed in the hope that it will be useful, but msousa@0: * WITHOUT ANY WARRANTY; without even the implied warranty of msousa@0: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser msousa@0: * General Public License for more details. msousa@0: * msousa@0: * You should have received a copy of the GNU Lesser General Public License msousa@0: * along with this Modbus library. If not, see . msousa@0: * msousa@0: * This code is made available on the understanding that it will not be msousa@0: * used in safety-critical situations without a full and competent review. msousa@0: */ msousa@0: msousa@0: msousa@0: msousa@0: msousa@0: #include "mb_slave.h" msousa@0: #include "mb_master.h" msousa@0: msousa@0: msousa@0: /************************************************************************ msousa@0: msousa@0: initialise / shutdown the library msousa@0: msousa@0: These functions sets up/shut down the library state msousa@0: (allocate memory for buffers, initialise data strcutures, etc) msousa@0: msousa@0: **************************************************************************/ msousa@0: msousa@0: msousa@0: int mb_slave_and_master_init(int nd_count_tcp, int nd_count_rtu, int nd_count_ascii); msousa@0: msousa@0: int mb_slave_and_master_done(void); msousa@0: