SOEM  v1.4.0
Macros | Functions | Variables
simple_test.c File Reference

Example code for Simple Open EtherCAT master. More...

#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include "ethercat.h"

Macros

#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

Macro Definition Documentation

◆ EC_TIMEOUTMON

#define EC_TIMEOUTMON   500

Function Documentation

◆ ecatcheck()

OSAL_THREAD_FUNC ecatcheck ( void *  ptr)

◆ main()

int main ( int  argc,
char *  argv[] 
)

◆ simpletest()

void simpletest ( char *  ifname)

Variable Documentation

◆ currentgroup

uint8 currentgroup = 0

◆ expectedWKC

int expectedWKC

◆ inOP

boolean inOP

◆ IOmap

char IOmap[4096]

◆ needlf

boolean needlf

◆ thread1

OSAL_THREAD_HANDLE thread1

◆ wkc

volatile int wkc