|
SOEM
v1.3.0
|
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 "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"Macros | |
| #define | EC_TIMEOUTMON 500 |
Functions | |
| void | simpletest (char *ifname) |
| void | ecatcheck (void *ptr) |
| int | main (int argc, char *argv[]) |
Variables | |
| char | IOmap [4096] |
| pthread_t | thread1 |
| int | expectedWKC |
| boolean | needlf |
| volatile int | wkc |
| boolean | inOP |
| uint8 | currentgroup = 0 |
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
| #define EC_TIMEOUTMON 500 |
| void ecatcheck | ( | void * | ptr | ) |
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
| void simpletest | ( | char * | ifname | ) |
| uint8 currentgroup = 0 |
| int expectedWKC |
| boolean inOP |
| char IOmap[4096] |
| boolean needlf |
| pthread_t thread1 |
| volatile int wkc |
1.8.3.1