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"
Include dependency graph for slaveinfo.c:

Go to the source code of this file.

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

Definition in file slaveinfo.c.


Function Documentation

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

Definition at line 278 of file slaveinfo.c.

Here is the call graph for this function:

char* SDO2string ( uint16  slave,
uint16  index,
uint8  subidx,
uint16  dtype 
)

Definition at line 32 of file slaveinfo.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void slaveinfo ( char *  ifname  ) 

Definition at line 133 of file slaveinfo.c.

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

char hstr[1024]

Definition at line 30 of file slaveinfo.c.

char IOmap[4096]

Definition at line 25 of file slaveinfo.c.

Definition at line 26 of file slaveinfo.c.

Definition at line 27 of file slaveinfo.c.

boolean printSDO = FALSE

Definition at line 28 of file slaveinfo.c.

char usdo[128]

Definition at line 29 of file slaveinfo.c.

Generated by  doxygen 1.6.3