How openethercatsociety/soem works
SOEM is a C library for building EtherCAT MainDevices. An application uses the public SOEM interface to access master operations and protocol-specific capabilities; the master communicates with EtherCAT slaves through a platform-specific NIC driver. The source index confirms the shared OS abstraction and several driver dependencies. The README is brief, and many domain implementations were not sampled, so protocol-stage links beyond documented includes are omitted rather than inferred.
Main entry points: soem.h SOEM interface · osal.h OS abstraction · ec_main.c Master operations · nicdrv.c RTK NIC driver
Components 16
Public API
- SOEM interface
include/soem/soem.h
Master Protocol
- Master operations
src/ec_main.c - Base services
src/ec_base.c - Slave configuration
src/ec_config.c - Distributed clocks
src/ec_dc.c - CoE services
src/ec_coe.c - EoE services
src/ec_eoe.c - FoE services
src/ec_foe.c - SoE services
src/ec_soe.c - Print utilities
src/ec_print.c
Platform I/O
- Linux NIC driver
oshw/linux/nicdrv.c - Windows NIC driver
oshw/win32/nicdrv.c - RTK NIC driver
oshw/rtk/nicdrv.c
Runtime Support
- OS abstraction
osal/osal.h
Other components
- MainDevice application
- EtherCAT slaves
Connections 20
- MainDevice application → SOEM interface: uses
README.md - SOEM interface → Master operations: exposes
include/soem/soem.h - SOEM interface → Base services: exposes
include/soem/soem.h - SOEM interface → Slave configuration: exposes
include/soem/soem.h - SOEM interface → Distributed clocks: exposes
include/soem/soem.h - SOEM interface → CoE services: exposes
include/soem/soem.h - SOEM interface → EoE services: exposes
include/soem/soem.h - SOEM interface → FoE services: exposes
include/soem/soem.h - SOEM interface → SoE services: exposes
include/soem/soem.h - SOEM interface → Print utilities: exposes
include/soem/soem.h - Master operations → RTK NIC driver: references
src/ec_main.c - Master operations → OS abstraction: uses
src/ec_main.c - CoE services → OS abstraction: uses
src/ec_coe.c - EoE services → OS abstraction: uses
src/ec_eoe.c - Linux NIC driver → OS abstraction: uses
oshw/linux/nicdrv.c - Windows NIC driver → SOEM interface: references
oshw/win32/nicdrv.c - RTK NIC driver → OS abstraction: uses
oshw/rtk/nicdrv.c - Linux NIC driver → EtherCAT slaves: exchanges frames
- Windows NIC driver → EtherCAT slaves: exchanges frames
- RTK NIC driver → EtherCAT slaves: exchanges frames