Commit cc7591bb817c28a0a921609fda0115b8651403eb

Authored by Stéphane Raimbault
1 parent 8e2c3665

License changes

- modbus.[ch] are LGPL
- test-modbus-master.c and test-modbus-slave.c are GPL
include/modbus/modbus.h
1 1 /*
2   - Copyright (C) 2001-2007 Stéphane Raimbault <stephane.raimbault@gmail.com>
3   -
  2 + Copyright (C) 2001-2008 Stéphane Raimbault <stephane.raimbault@gmail.com>
  3 +
4 4 This library is free software; you can redistribute it and/or
5 5 modify it under the terms of the GNU Lesser General Public
6 6 License as published by the Free Software Foundation; either
7 7 version 2 of the License, or (at your option) any later version.
8   -
  8 +
9 9 This library is distributed in the hope that it will be useful,
10 10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 12 Lesser General Public License for more details.
13   -
  13 +
14 14 You should have received a copy of the GNU Lesser General Public
15   - License along with this library; if not, write to the Free Software
16   - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
17   -
18   - These library of functions are designed to enable a program send and
19   - receive data from a device that communicates using the Modbus protocol.
  15 + License along with this library; if not, write to the
  16 + Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  17 + Boston, MA 02111-1307, USA.
20 18 */
21 19  
22 20 #ifndef _MODBUS_H_
... ...
src/modbus.c
1 1 /*
2   - Copyright (C) 2001-2007 Stéphane Raimbault <stephane.raimbault@gmail.com>
3   -
  2 + Copyright (C) 2001-2008 Stéphane Raimbault <stephane.raimbault@gmail.com>
  3 +
4 4 This library is free software; you can redistribute it and/or
5 5 modify it under the terms of the GNU Lesser General Public
6 6 License as published by the Free Software Foundation; either
7 7 version 2 of the License, or (at your option) any later version.
8   -
  8 +
9 9 This library is distributed in the hope that it will be useful,
10 10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 12 Lesser General Public License for more details.
13   -
  13 +
14 14 You should have received a copy of the GNU Lesser General Public
15   - License along with this library; if not, write to the Free Software
16   - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
  15 + License along with this library; if not, write to the
  16 + Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  17 + Boston, MA 02111-1307, USA.
  18 +*/
  19 +
  20 +/*
  21 + The library is designed to send and receive data from a device that
  22 + communicate via the Modbus protocol.
17 23  
18   - The functions included here have been derived from the Modicon
19   - Modbus Protocol Reference Guide which can be obtained from
20   - Schneider at www.schneiderautomation.com.
21   -
  24 + The function names used are inspired by the Modicon Modbus Protocol
  25 + Reference Guide which can be obtained from Schneider at
  26 + www.schneiderautomation.com.
  27 +
22 28 Documentation:
23 29 http://www.easysw.com/~mike/serial/serial.html
24 30 */
... ...
src/test-modbus-master.c
1 1 /*
2   - Copyright (C) 2001-2007 Stéphane Raimbault <stephane.raimbault@gmail.com>
3   -
4   - This library is free software; you can redistribute it and/or
5   - modify it under the terms of the GNU Lesser General Public
6   - License as published by the Free Software Foundation; either
7   - version 2 of the License, or (at your option) any later version.
8   -
9   - This library 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 GNU
12   - Lesser General Public License for more details.
13   -
14   - You should have received a copy of the GNU Lesser General Public
15   - License along with this library; if not, write to the Free Software
16   - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
17   -
18   - These library of functions are designed to enable a program send and
19   - receive data from a device that communicates using the Modbus protocol.
20   -*/
  2 + * Copyright (C) 2001-2008 Stéphane Raimbault <stephane.raimbault@gmail.com>
  3 + *
  4 + * Licensed under the GNU General Public License Version 2
  5 + *
  6 + * This program is free software; you can redistribute it and/or modify
  7 + * it under the terms of the GNU General Public License as published by
  8 + * the Free Software Foundation; either version 2 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,
  12 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14 + * GNU General Public License for more details.
  15 + *
  16 + * You should have received a copy of the GNU General Public License
  17 + * along with this program. If not, see <http://www.gnu.org/licenses/>.
  18 + */
21 19  
22 20 #include <stdio.h>
23 21 #include <unistd.h>
... ...
src/test-modbus-slave.c
1 1 /*
2   - Copyright (C) 2001-2007 Stéphane Raimbault <stephane.raimbault@gmail.com>
3   -
4   - This library is free software; you can redistribute it and/or
5   - modify it under the terms of the GNU Lesser General Public
6   - License as published by the Free Software Foundation; either
7   - version 2 of the License, or (at your option) any later version.
8   -
9   - This library 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 GNU
12   - Lesser General Public License for more details.
13   -
14   - You should have received a copy of the GNU Lesser General Public
15   - License along with this library; if not, write to the Free Software
16   - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
17   -
18   - These library of functions are designed to enable a program send and
19   - receive data from a device that communicates using the Modbus protocol.
20   -*/
  2 + * Copyright (C) 2001-2008 Stéphane Raimbault <stephane.raimbault@gmail.com>
  3 + *
  4 + * Licensed under the GNU General Public License Version 2
  5 + *
  6 + * This program is free software; you can redistribute it and/or modify
  7 + * it under the terms of the GNU General Public License as published by
  8 + * the Free Software Foundation; either version 2 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,
  12 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14 + * GNU General Public License for more details.
  15 + *
  16 + * You should have received a copy of the GNU General Public License
  17 + * along with this program. If not, see <http://www.gnu.org/licenses/>.
  18 + */
21 19  
22 20 #include <stdio.h>
23 21 #include <unistd.h>
... ...