Example code for Simple Open EtherCAT master. More...
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 | ifbuf [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 win32/slaveinfo/slaveinfo.c.
char* dtype2string | ( | uint16 | dtype | ) |
Definition at line 28 of file win32/slaveinfo/slaveinfo.c.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 618 of file win32/slaveinfo/slaveinfo.c.
Definition at line 107 of file win32/slaveinfo/slaveinfo.c.
int si_map_sdo | ( | int | slave | ) |
Definition at line 280 of file win32/slaveinfo/slaveinfo.c.
int si_map_sii | ( | int | slave | ) |
Definition at line 445 of file win32/slaveinfo/slaveinfo.c.
Read PDO assign structure
Definition at line 209 of file win32/slaveinfo/slaveinfo.c.
void si_sdo | ( | int | cnt | ) |
Definition at line 466 of file win32/slaveinfo/slaveinfo.c.
Definition at line 343 of file win32/slaveinfo/slaveinfo.c.
void slaveinfo | ( | char * | ifname | ) |
Definition at line 504 of file win32/slaveinfo/slaveinfo.c.
char hstr[1024] |
Definition at line 26 of file win32/slaveinfo/slaveinfo.c.
char ifbuf[1024] |
Definition at line 616 of file win32/slaveinfo/slaveinfo.c.
char IOmap[4096] |
Definition at line 20 of file win32/slaveinfo/slaveinfo.c.
ec_ODlistt ODlist |
Definition at line 21 of file win32/slaveinfo/slaveinfo.c.
ec_OElistt OElist |
Definition at line 22 of file win32/slaveinfo/slaveinfo.c.
Definition at line 24 of file win32/slaveinfo/slaveinfo.c.
Definition at line 23 of file win32/slaveinfo/slaveinfo.c.
char usdo[128] |
Definition at line 25 of file win32/slaveinfo/slaveinfo.c.