Macros | Functions | Variables
win32/simple_test/simple_test.c File Reference

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

#include <stdio.h>
#include <string.h>
#include "osal.h"
#include "ethercat.h"
Include dependency graph for win32/simple_test/simple_test.c:

Go to the source code of this file.

Macros

#define EC_TIMEOUTMON   500
 

Functions

int AEPsetup (uint16 slave)
 
OSAL_THREAD_FUNC ecatcheck (void *lpParam)
 
int EL7031setup (uint16 slave)
 
int main (int argc, char *argv[])
 
void CALLBACK RTthread (UINT uTimerID, UINT uMsg, DWORD_PTR dwUser, DWORD_PTR dw1, DWORD_PTR dw2)
 
void simpletest (char *ifname)
 

Variables

uint8 currentgroup = 0
 
int expectedWKC
 
char ifbuf [1024]
 
boolean inOP
 
char IOmap [4096]
 
boolean needlf
 
volatile int rtcnt
 
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 win32/simple_test/simple_test.c.

Macro Definition Documentation

◆ EC_TIMEOUTMON

#define EC_TIMEOUTMON   500

Definition at line 19 of file win32/simple_test/simple_test.c.

Function Documentation

◆ AEPsetup()

int AEPsetup ( uint16  slave)

Definition at line 76 of file win32/simple_test/simple_test.c.

◆ ecatcheck()

OSAL_THREAD_FUNC ecatcheck ( void *  lpParam)

Definition at line 265 of file win32/simple_test/simple_test.c.

◆ EL7031setup()

int EL7031setup ( uint16  slave)

Definition at line 41 of file win32/simple_test/simple_test.c.

◆ main()

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

Definition at line 345 of file win32/simple_test/simple_test.c.

◆ RTthread()

void CALLBACK RTthread ( UINT  uTimerID,
UINT  uMsg,
DWORD_PTR  dwUser,
DWORD_PTR  dw1,
DWORD_PTR  dw2 
)

Definition at line 31 of file win32/simple_test/simple_test.c.

◆ simpletest()

void simpletest ( char *  ifname)

Definition at line 116 of file win32/simple_test/simple_test.c.

Variable Documentation

◆ currentgroup

uint8 currentgroup = 0

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

◆ expectedWKC

int expectedWKC

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

◆ ifbuf

char ifbuf[1024]

Definition at line 343 of file win32/simple_test/simple_test.c.

◆ inOP

boolean inOP

Definition at line 27 of file win32/simple_test/simple_test.c.

◆ IOmap

char IOmap[4096]

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

◆ needlf

boolean needlf

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

◆ rtcnt

volatile int rtcnt

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

◆ thread1

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

◆ wkc

volatile int wkc

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



soem
Author(s): Arthur Ketels and M.J.G. van den Molengraft
autogenerated on Wed Mar 2 2022 01:01:49