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 * | 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] |
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 linux/slaveinfo/slaveinfo.c.
char* dtype2string | ( | uint16 | dtype | ) |
Definition at line 34 of file linux/slaveinfo/slaveinfo.c.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 622 of file linux/slaveinfo/slaveinfo.c.
Definition at line 113 of file linux/slaveinfo/slaveinfo.c.
int si_map_sdo | ( | int | slave | ) |
Definition at line 286 of file linux/slaveinfo/slaveinfo.c.
int si_map_sii | ( | int | slave | ) |
Definition at line 451 of file linux/slaveinfo/slaveinfo.c.
Read PDO assign structure
Definition at line 215 of file linux/slaveinfo/slaveinfo.c.
void si_sdo | ( | int | cnt | ) |
Definition at line 472 of file linux/slaveinfo/slaveinfo.c.
Definition at line 349 of file linux/slaveinfo/slaveinfo.c.
void slaveinfo | ( | char * | ifname | ) |
Definition at line 510 of file linux/slaveinfo/slaveinfo.c.
char hstr[1024] |
Definition at line 32 of file linux/slaveinfo/slaveinfo.c.
char IOmap[4096] |
Definition at line 26 of file linux/slaveinfo/slaveinfo.c.
ec_ODlistt ODlist |
Definition at line 27 of file linux/slaveinfo/slaveinfo.c.
ec_OElistt OElist |
Definition at line 28 of file linux/slaveinfo/slaveinfo.c.
Definition at line 30 of file linux/slaveinfo/slaveinfo.c.
Definition at line 29 of file linux/slaveinfo/slaveinfo.c.
char usdo[128] |
Definition at line 31 of file linux/slaveinfo/slaveinfo.c.