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"
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] |
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.
int main | ( | int | argc, | |
char * | argv[] | |||
) |
Definition at line 32 of file slaveinfo.c.
void slaveinfo | ( | char * | ifname | ) |
Definition at line 133 of file slaveinfo.c.
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.