slaveinfo.c File Reference

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

#include <stdio.h>
#include <string.h>
#include "ethercattype.h"
#include "nicdrv.h"
#include "ethercatbase.h"
#include "ethercatmain.h"
#include "ethercatconfig.h"
#include "ethercatcoe.h"
#include "ethercatdc.h"
#include "ethercatprint.h"

Functions

char * SDO2string (uint16 slave, uint16 index, uint8 subidx, uint16 dtype)
void slaveinfo (char *ifname)
int main (int argc, char *argv[])

Variables

char IOmap [4096]
ec_ODlistt ODlist
ec_OElistt OElist
boolean printSDO = FALSE
char usdo [128]
char hstr [1024]

Detailed Description

Example code for Simple Open EtherCAT master.

Usage : slaveinfo [ifname1] ifname is NIC interface, f.e. eth0

This shows the configured slave data.

(c)Arthur Ketels 2010


Function Documentation

int main ( int  argc,
char *  argv[] 
)
char* SDO2string ( uint16  slave,
uint16  index,
uint8  subidx,
uint16  dtype 
)
void slaveinfo ( char *  ifname  ) 

Variable Documentation

char hstr[1024]
char IOmap[4096]
boolean printSDO = FALSE
char usdo[128]

Generated on Mon Feb 22 22:00:22 2010 for SOEM by  doxygen 1.6.1