Add a single header for all ethercat headers
This way, applications don't need to know the details of every header file that exists in the API. With a simple: #include <ethercat.h> they would get everything. This is specially important because the order of including the header files is important! Signed-off-by: Shahbaz Youssefi <syoussefi@kinova.ca>
This commit is contained in:
parent
5c2955139e
commit
529ffbe0cd
61
soem/ethercat.h
Normal file
61
soem/ethercat.h
Normal file
@ -0,0 +1,61 @@
|
||||
/*
|
||||
* Simple Open EtherCAT Master Library
|
||||
*
|
||||
* File : ethercat.h
|
||||
* Version : 1.3.1
|
||||
* Date : 18-12-2015
|
||||
* Copyright (C) 2005-2015 Speciaal Machinefabriek Ketels v.o.f.
|
||||
* Copyright (C) 2005-2015 Arthur Ketels
|
||||
* Copyright (C) 2008-2009 TU/e Technische Universiteit Eindhoven
|
||||
* Copyright (C) 2014-2015 rt-labs AB , Sweden
|
||||
*
|
||||
* SOEM is free software; you can redistribute it and/or modify it under
|
||||
* the terms of the GNU General Public License version 2 as published by the Free
|
||||
* Software Foundation.
|
||||
*
|
||||
* SOEM 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 General Public License
|
||||
* for more details.
|
||||
*
|
||||
* As a special exception, if other files instantiate templates or use macros
|
||||
* or inline functions from this file, or you compile this file and link it
|
||||
* with other works to produce a work based on this file, this file does not
|
||||
* by itself cause the resulting work to be covered by the GNU General Public
|
||||
* License. However the source code for this file must still be made available
|
||||
* in accordance with section (3) of the GNU General Public License.
|
||||
*
|
||||
* This exception does not invalidate any other reasons why a work based on
|
||||
* this file might be covered by the GNU General Public License.
|
||||
*
|
||||
* The EtherCAT Technology, the trade name and logo “EtherCAT” are the intellectual
|
||||
* property of, and protected by Beckhoff Automation GmbH. You can use SOEM for
|
||||
* the sole purpose of creating, using and/or selling or otherwise distributing
|
||||
* an EtherCAT network master provided that an EtherCAT Master License is obtained
|
||||
* from Beckhoff Automation GmbH.
|
||||
*
|
||||
* In case you did not receive a copy of the EtherCAT Master License along with
|
||||
* SOEM write to Beckhoff Automation GmbH, Eiserstraße 5, D-33415 Verl, Germany
|
||||
* (www.beckhoff.com).
|
||||
*/
|
||||
|
||||
/** \file
|
||||
* \brief
|
||||
* Headerfile for all ethercat headers
|
||||
*/
|
||||
|
||||
#ifndef _EC_ETHERCAT_H
|
||||
#define _EC_ETHERCAT_H
|
||||
|
||||
#include "ethercattype.h"
|
||||
#include "nicdrv.h"
|
||||
#include "ethercatbase.h"
|
||||
#include "ethercatmain.h"
|
||||
#include "ethercatdc.h"
|
||||
#include "ethercatcoe.h"
|
||||
#include "ethercatfoe.h"
|
||||
#include "ethercatsoe.h"
|
||||
#include "ethercatconfig.h"
|
||||
#include "ethercatprint.h"
|
||||
|
||||
#endif /* _EC_ETHERCAT_H */
|
@ -36,14 +36,7 @@
|
||||
#include <rt.h>
|
||||
#include <traceapi.h>
|
||||
|
||||
#include "nicdrv.h"
|
||||
#include "ethercattype.h"
|
||||
#include "ethercatbase.h"
|
||||
#include "ethercatmain.h"
|
||||
#include "ethercatconfig.h"
|
||||
#include "ethercatcoe.h"
|
||||
#include "ethercatdc.h"
|
||||
#include "ethercatprint.h"
|
||||
#include "ethercat.h"
|
||||
|
||||
|
||||
char IOmap[4096];
|
||||
|
@ -21,14 +21,7 @@
|
||||
#include <unistd.h>
|
||||
#include <time.h>
|
||||
|
||||
#include "ethercattype.h"
|
||||
#include "nicdrv.h"
|
||||
#include "ethercatbase.h"
|
||||
#include "ethercatmain.h"
|
||||
#include "ethercatcoe.h"
|
||||
//#include "ethercatfoe.h"
|
||||
//#include "ethercatconfig.h"
|
||||
//#include "ethercatprint.h"
|
||||
#include "ethercat.h"
|
||||
|
||||
#define MAXBUF 32768
|
||||
#define STDBUF 2048
|
||||
|
@ -21,13 +21,7 @@
|
||||
#include <pthread.h>
|
||||
#include <math.h>
|
||||
|
||||
#include "ethercattype.h"
|
||||
#include "nicdrv.h"
|
||||
#include "ethercatbase.h"
|
||||
#include "ethercatmain.h"
|
||||
#include "ethercatcoe.h"
|
||||
#include "ethercatconfig.h"
|
||||
#include "ethercatdc.h"
|
||||
#include "ethercat.h"
|
||||
|
||||
#define NSEC_PER_SEC 1000000000
|
||||
|
||||
|
@ -18,14 +18,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "ethercattype.h"
|
||||
#include "nicdrv.h"
|
||||
#include "ethercatbase.h"
|
||||
#include "ethercatmain.h"
|
||||
#include "ethercatcoe.h"
|
||||
//#include "ethercatfoe.h"
|
||||
//#include "ethercatconfig.h"
|
||||
//#include "ethercatprint.h"
|
||||
#include "ethercat.h"
|
||||
|
||||
#define MAXBUF 32768
|
||||
#define STDBUF 2048
|
||||
|
@ -18,14 +18,7 @@
|
||||
#include <sys/time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "ethercattype.h"
|
||||
#include "nicdrv.h"
|
||||
#include "ethercatbase.h"
|
||||
#include "ethercatmain.h"
|
||||
#include "ethercatcoe.h"
|
||||
#include "ethercatfoe.h"
|
||||
#include "ethercatconfig.h"
|
||||
#include "ethercatprint.h"
|
||||
#include "ethercat.h"
|
||||
|
||||
#define FWBUFSIZE (8 * 1024 * 1024)
|
||||
|
||||
|
@ -21,14 +21,7 @@
|
||||
#include <pthread.h>
|
||||
#include <math.h>
|
||||
|
||||
#include "ethercattype.h"
|
||||
#include "nicdrv.h"
|
||||
#include "ethercatbase.h"
|
||||
#include "ethercatmain.h"
|
||||
#include "ethercatcoe.h"
|
||||
#include "ethercatconfig.h"
|
||||
#include "ethercatdc.h"
|
||||
#include "ethercatprint.h"
|
||||
#include "ethercat.h"
|
||||
|
||||
#define NSEC_PER_SEC 1000000000
|
||||
#define EC_TIMEOUTMON 500
|
||||
|
@ -12,15 +12,7 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "ethercattype.h"
|
||||
#include "nicdrv.h"
|
||||
#include "ethercatbase.h"
|
||||
#include "ethercatmain.h"
|
||||
#include "ethercatdc.h"
|
||||
#include "ethercatcoe.h"
|
||||
#include "ethercatfoe.h"
|
||||
#include "ethercatconfig.h"
|
||||
#include "ethercatprint.h"
|
||||
#include "ethercat.h"
|
||||
|
||||
#define EC_TIMEOUTMON 500
|
||||
|
||||
|
@ -15,14 +15,7 @@
|
||||
#include <string.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
#include "ethercattype.h"
|
||||
#include "nicdrv.h"
|
||||
#include "ethercatbase.h"
|
||||
#include "ethercatmain.h"
|
||||
#include "ethercatconfig.h"
|
||||
#include "ethercatcoe.h"
|
||||
#include "ethercatdc.h"
|
||||
#include "ethercatprint.h"
|
||||
#include "ethercat.h"
|
||||
|
||||
char IOmap[4096];
|
||||
ec_ODlistt ODlist;
|
||||
|
@ -8,14 +8,7 @@
|
||||
*/
|
||||
|
||||
#include <kern.h>
|
||||
#include "ethercattype.h"
|
||||
#include "nicdrv.h"
|
||||
#include "ethercatbase.h"
|
||||
#include "ethercatmain.h"
|
||||
#include "ethercatcoe.h"
|
||||
#include "ethercatfoe.h"
|
||||
#include "ethercatconfig.h"
|
||||
#include "ethercatprint.h"
|
||||
#include "ethercat.h"
|
||||
#include "string.h"
|
||||
#include <oshw.h>
|
||||
#include <config.h>
|
||||
|
@ -21,13 +21,7 @@
|
||||
#include <pthread.h>
|
||||
#include <math.h>
|
||||
|
||||
#include "ethercattype.h"
|
||||
#include "nicdrv.h"
|
||||
#include "ethercatbase.h"
|
||||
#include "ethercatmain.h"
|
||||
#include "ethercatcoe.h"
|
||||
#include "ethercatconfig.h"
|
||||
#include "ethercatdc.h"
|
||||
#include "ethercat.h"
|
||||
|
||||
#define NSEC_PER_SEC 1000000000
|
||||
|
||||
|
@ -16,14 +16,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "ethercattype.h"
|
||||
#include "nicdrv.h"
|
||||
#include "ethercatbase.h"
|
||||
#include "ethercatmain.h"
|
||||
#include "ethercatcoe.h"
|
||||
//#include "ethercatfoe.h"
|
||||
//#include "ethercatconfig.h"
|
||||
//#include "ethercatprint.h"
|
||||
#include "ethercat.h"
|
||||
|
||||
#define MAXBUF 32768
|
||||
#define STDBUF 2048
|
||||
|
@ -18,14 +18,7 @@
|
||||
#include <sys/time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "ethercattype.h"
|
||||
#include "nicdrv.h"
|
||||
#include "ethercatbase.h"
|
||||
#include "ethercatmain.h"
|
||||
#include "ethercatcoe.h"
|
||||
#include "ethercatfoe.h"
|
||||
#include "ethercatconfig.h"
|
||||
#include "ethercatprint.h"
|
||||
#include "ethercat.h"
|
||||
|
||||
#define FWBUFSIZE (8 * 1024 * 1024)
|
||||
|
||||
|
@ -21,13 +21,7 @@
|
||||
#include <pthread.h>
|
||||
#include <math.h>
|
||||
|
||||
#include "ethercattype.h"
|
||||
#include "nicdrv.h"
|
||||
#include "ethercatbase.h"
|
||||
#include "ethercatmain.h"
|
||||
#include "ethercatcoe.h"
|
||||
#include "ethercatconfig.h"
|
||||
#include "ethercatdc.h"
|
||||
#include "ethercat.h"
|
||||
|
||||
#define NSEC_PER_SEC 1000000000
|
||||
|
||||
|
@ -14,15 +14,7 @@
|
||||
//#include <Mmsystem.h>
|
||||
|
||||
#include "osal.h"
|
||||
#include "ethercattype.h"
|
||||
#include "nicdrv.h"
|
||||
#include "ethercatbase.h"
|
||||
#include "ethercatmain.h"
|
||||
#include "ethercatdc.h"
|
||||
#include "ethercatcoe.h"
|
||||
#include "ethercatfoe.h"
|
||||
#include "ethercatconfig.h"
|
||||
#include "ethercatprint.h"
|
||||
#include "ethercat.h"
|
||||
|
||||
#define EC_TIMEOUTMON 500
|
||||
|
||||
|
@ -15,14 +15,7 @@
|
||||
#include <string.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
#include "ethercattype.h"
|
||||
#include "nicdrv.h"
|
||||
#include "ethercatbase.h"
|
||||
#include "ethercatmain.h"
|
||||
#include "ethercatconfig.h"
|
||||
#include "ethercatcoe.h"
|
||||
#include "ethercatdc.h"
|
||||
#include "ethercatprint.h"
|
||||
#include "ethercat.h"
|
||||
|
||||
char IOmap[4096];
|
||||
ec_ODlistt ODlist;
|
||||
|
Loading…
x
Reference in New Issue
Block a user