SOEM v1.3.1
Defines | Functions | Variables
simple_test.c File Reference

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"

Defines

#define EC_TIMEOUTMON   500

Functions

void simpletest (char *ifname)
OSAL_THREAD_FUNC ecatcheck (void *ptr)
int main (int argc, char *argv[])

Variables

char IOmap [4096]
OSAL_THREAD_HANDLE thread1
int expectedWKC
boolean needlf
volatile int wkc
boolean inOP
uint8 currentgroup = 0

Detailed Description

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 Documentation

#define EC_TIMEOUTMON   500

Function Documentation

OSAL_THREAD_FUNC ecatcheck ( void *  ptr)
int main ( int  argc,
char *  argv[] 
)
void simpletest ( char *  ifname)

Variable Documentation

uint8 currentgroup = 0
boolean inOP
char IOmap[4096]
boolean needlf
OSAL_THREAD_HANDLE thread1
volatile int wkc