Functions | Variables
win32/slaveinfo/slaveinfo.c File Reference

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

#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include "ethercat.h"
Include dependency graph for win32/slaveinfo/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 ifbuf [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 win32/slaveinfo/slaveinfo.c.

Function Documentation

◆ dtype2string()

char* dtype2string ( uint16  dtype)

Definition at line 28 of file win32/slaveinfo/slaveinfo.c.

◆ main()

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

Definition at line 618 of file win32/slaveinfo/slaveinfo.c.

◆ SDO2string()

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

Definition at line 107 of file win32/slaveinfo/slaveinfo.c.

◆ si_map_sdo()

int si_map_sdo ( int  slave)

Definition at line 280 of file win32/slaveinfo/slaveinfo.c.

◆ si_map_sii()

int si_map_sii ( int  slave)

Definition at line 445 of file win32/slaveinfo/slaveinfo.c.

◆ si_PDOassign()

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

Read PDO assign structure

Definition at line 209 of file win32/slaveinfo/slaveinfo.c.

◆ si_sdo()

void si_sdo ( int  cnt)

Definition at line 466 of file win32/slaveinfo/slaveinfo.c.

◆ si_siiPDO()

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

Definition at line 343 of file win32/slaveinfo/slaveinfo.c.

◆ slaveinfo()

void slaveinfo ( char *  ifname)

Definition at line 504 of file win32/slaveinfo/slaveinfo.c.

Variable Documentation

◆ hstr

char hstr[1024]

Definition at line 26 of file win32/slaveinfo/slaveinfo.c.

◆ ifbuf

char ifbuf[1024]

Definition at line 616 of file win32/slaveinfo/slaveinfo.c.

◆ IOmap

char IOmap[4096]

Definition at line 20 of file win32/slaveinfo/slaveinfo.c.

◆ ODlist

ec_ODlistt ODlist

Definition at line 21 of file win32/slaveinfo/slaveinfo.c.

◆ OElist

ec_OElistt OElist

Definition at line 22 of file win32/slaveinfo/slaveinfo.c.

◆ printMAP

boolean printMAP = FALSE

Definition at line 24 of file win32/slaveinfo/slaveinfo.c.

◆ printSDO

boolean printSDO = FALSE

Definition at line 23 of file win32/slaveinfo/slaveinfo.c.

◆ usdo

char usdo[128]

Definition at line 25 of file win32/slaveinfo/slaveinfo.c.



soem
Author(s): Arthur Ketels and M.J.G. van den Molengraft
autogenerated on Wed Mar 2 2022 01:01:49