Example code for Simple Open EtherCAT master. More...
#include <stdio.h>
#include <string.h>
#include <sys/time.h>
#include <unistd.h>
#include <pthread.h>
#include "ethercat_soem/ethercattype.h"
#include "ethercat_soem/nicdrv.h"
#include "ethercat_soem/ethercatbase.h"
#include "ethercat_soem/ethercatmain.h"
#include "ethercat_soem/ethercatdc.h"
#include "ethercat_soem/ethercatcoe.h"
#include "ethercat_soem/ethercatfoe.h"
#include "ethercat_soem/ethercatconfig.h"
#include "ethercat_soem/ethercatprint.h"
Go to the source code of this file.
Defines | |
#define | EC_TIMEOUTMON 500 |
Functions | |
void | ecatcheck (void *ptr) |
int | main (int argc, char *argv[]) |
void | simpletest (char *ifname) |
Variables | |
uint8 | currentgroup = 0 |
int | expectedWKC |
boolean | inOP |
char | IOmap [4096] |
boolean | needlf |
pthread_t | thread1 |
volatile int | wkc |
Example code for Simple Open EtherCAT master.
Usage : simple_test [ifname1] ifname is NIC interface, f.e. eth0
This is a minimal test.
(c)Arthur Ketels 2010 - 2011
Definition in file simple_test.c.
#define EC_TIMEOUTMON 500 |
Definition at line 28 of file simple_test.c.
void ecatcheck | ( | void * | ptr | ) |
Definition at line 157 of file simple_test.c.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 233 of file simple_test.c.
void simpletest | ( | char * | ifname | ) |
Definition at line 38 of file simple_test.c.
uint8 currentgroup = 0 |
Definition at line 36 of file simple_test.c.
int expectedWKC |
Definition at line 32 of file simple_test.c.
Definition at line 35 of file simple_test.c.
char IOmap[4096] |
Definition at line 30 of file simple_test.c.
Definition at line 33 of file simple_test.c.
pthread_t thread1 |
Definition at line 31 of file simple_test.c.
volatile int wkc |
Definition at line 34 of file simple_test.c.