SOEM v1.2.5
Functions | Variables

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 [ifname] [-sdo] Ifname is NIC interface, f.e. eth0. Optional -sdo to display CoE object dictionary.

This shows the configured slave data.

(c)Arthur Ketels 2010 - 2011


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]