Macros | Functions | Variables
linux/simple_test/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"
Include dependency graph for linux/simple_test/simple_test.c:

Go to the source code of this file.

Macros

#define EC_TIMEOUTMON   500
 

Functions

OSAL_THREAD_FUNC 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
 
OSAL_THREAD_HANDLE thread1
 
volatile int wkc
 

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

Definition in file linux/simple_test/simple_test.c.

Macro Definition Documentation

#define EC_TIMEOUTMON   500

Definition at line 18 of file linux/simple_test/simple_test.c.

Function Documentation

OSAL_THREAD_FUNC ecatcheck ( void *  ptr)

Definition at line 146 of file linux/simple_test/simple_test.c.

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

Definition at line 223 of file linux/simple_test/simple_test.c.

void simpletest ( char *  ifname)

Definition at line 28 of file linux/simple_test/simple_test.c.

Variable Documentation

uint8 currentgroup = 0

Definition at line 26 of file linux/simple_test/simple_test.c.

int expectedWKC

Definition at line 22 of file linux/simple_test/simple_test.c.

boolean inOP

Definition at line 25 of file linux/simple_test/simple_test.c.

char IOmap[4096]

Definition at line 20 of file linux/simple_test/simple_test.c.

boolean needlf

Definition at line 23 of file linux/simple_test/simple_test.c.

Definition at line 21 of file linux/simple_test/simple_test.c.

volatile int wkc

Definition at line 24 of file linux/simple_test/simple_test.c.



soem
Author(s): Arthur Ketels and M.J.G. van den Molengraft
autogenerated on Sat Jun 27 2020 03:48:21