Functions | Variables
slaveinfo.c File Reference

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

#include <stdio.h>
#include <string.h>
#include "ethercat_soem/ethercattype.h"
#include "ethercat_soem/nicdrv.h"
#include "ethercat_soem/ethercatbase.h"
#include "ethercat_soem/ethercatmain.h"
#include "ethercat_soem/ethercatconfig.h"
#include "ethercat_soem/ethercatcoe.h"
#include "ethercat_soem/ethercatdc.h"
#include "ethercat_soem/ethercatprint.h"
Include dependency graph for slaveinfo.c:

Go to the source code of this file.

Functions

char * dtype2string (uint16 dtype)
int main (int argc, char *argv[])
char * SDO2string (uint16 slave, uint16 index, uint8 subidx, uint16 dtype)
int si_map_sdo (int slave)
int si_map_sii (int slave)
int si_PDOassign (uint16 slave, uint16 PDOassign, int mapoffset, int bitoffset)
void si_sdo (int cnt)
int si_siiPDO (uint16 slave, uint8 t, int mapoffset, int bitoffset)
void slaveinfo (char *ifname)

Variables

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

Detailed Description

Example code for Simple Open EtherCAT master.

Usage : slaveinfo [ifname] [-sdo] [-map] Ifname is NIC interface, f.e. eth0. Optional -sdo to display CoE object dictionary. Optional -map to display slave PDO mapping

This shows the configured slave data.

(c)Arthur Ketels 2010 - 2011

Definition in file slaveinfo.c.


Function Documentation

char* dtype2string ( uint16  dtype)

Definition at line 34 of file slaveinfo.c.

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

Definition at line 622 of file slaveinfo.c.

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

Definition at line 113 of file slaveinfo.c.

int si_map_sdo ( int  slave)

Definition at line 286 of file slaveinfo.c.

int si_map_sii ( int  slave)

Definition at line 451 of file slaveinfo.c.

int si_PDOassign ( uint16  slave,
uint16  PDOassign,
int  mapoffset,
int  bitoffset 
)

Read PDO assign structure

Definition at line 215 of file slaveinfo.c.

void si_sdo ( int  cnt)

Definition at line 472 of file slaveinfo.c.

int si_siiPDO ( uint16  slave,
uint8  t,
int  mapoffset,
int  bitoffset 
)

Definition at line 349 of file slaveinfo.c.

void slaveinfo ( char *  ifname)

Definition at line 510 of file slaveinfo.c.


Variable Documentation

char hstr[1024]

Definition at line 32 of file slaveinfo.c.

char IOmap[4096]

Definition at line 26 of file slaveinfo.c.

Definition at line 27 of file slaveinfo.c.

Definition at line 28 of file slaveinfo.c.

Definition at line 30 of file slaveinfo.c.

Definition at line 29 of file slaveinfo.c.

char usdo[128]

Definition at line 31 of file slaveinfo.c.



ethercat_soem
Author(s): Arthur Ketels, M.J.G. van de Molengraft
autogenerated on Wed Aug 26 2015 11:32:41