ime_test.c File Reference
Example code for Simple Open EtherCAT master.
More...
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <unistd.h>
#include <sched.h>
#include <string.h>
#include <time.h>
#include <pthread.h>
#include <math.h>
#include "ethercattype.h"
#include "nicdrv.h"
#include "ethercatbase.h"
#include "ethercatmain.h"
#include "ethercatcoe.h"
#include "ethercatconfig.h"
#include "ethercatdc.h"
Detailed Description
Example code for Simple Open EtherCAT master.
Usage : ime_test [ifname] [cycletime] ifname is NIC interface, f.e. eth0 cycletime in us, f.e. 500
This test is specifically build for the IME EtherCAT Box.
(c)Arthur Ketels 2008
Define Documentation
#define NSEC_PER_SEC 1000000000 |
Function Documentation
void add_timespec |
( |
struct timespec * |
ts, |
|
|
int64 |
addtime | |
|
) |
| | |
void ecatthread |
( |
void * |
ptr |
) |
|
void imetest |
( |
char * |
ifname |
) |
|
int main |
( |
int |
argc, |
|
|
char * |
argv[] | |
|
) |
| | |
Variable Documentation
pthread_cond_t cond = PTHREAD_COND_INITIALIZER |
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER |