How w1ne/iolinki works
iolinki is an IO-Link V1.1.5 device stack for embedded targets. An application supplies callbacks and binds a PHY; the device stack handles communication state, process data and on-request traffic, including ISDU operations, events and parameter backup/restore. Separate PHY and platform implementations support hardware-specific and portable timing needs. The repository also provides a virtual master for protocol evaluation and IODD generation tools. Edges reflect explicit README claims or shown calls and SOURCE INDEX references; unsampled implementation details are not inferred.
Main entry points: dll.c Link state machine · isdu.c ISDU services · device.c Device lifecycle · master.py Virtual master
Components 23
Device stack
- Application callbacks
include/iolinki/application.h - Device lifecycle
src/device.c - Link state machine
src/dll.c
Protocol features
- ISDU services
src/isdu.c - Parameter management
src/params.c - Parameter backup
src/data_storage.c - Event diagnostics
src/events.c - Device identity
src/device_info.c - Protocol definitions
include/iolinki/protocol.h - CRC checks
src/crc.c - Frame handling
src/frame.c
Hardware and platform
- PHY abstraction
include/iolinki/phy.h - PHY drivers
src/phy_generic.c - Zephyr UART PHY
src/platform/zephyr/phy_uart.c - Platform services
src/platform.c - Timing utilities
include/iolinki/time_utils.h
Virtual evaluation
- Virtual master
tools/virtual_master/virtual_master/master.py - Master framing
tools/virtual_master/virtual_master/protocol.py - Master UART
tools/virtual_master/virtual_master/uart.py
IODD tools
- IODD command line
tools/iodd_cli.py - IODD generation
tools/iodd_gen.py
Other components
- Device application
- IO-Link master
Connections 23
- Device application → Application callbacks: provides callbacks
include/iolinki/application.h - Device lifecycle → Link state machine: uses link layer
- Device lifecycle → Platform services: uses services
src/device.c - Device lifecycle → Timing utilities: uses timing
src/device.c - Link state machine → PHY abstraction: uses PHY
- PHY drivers → PHY abstraction: implements interface
include/iolinki/phy.h - Zephyr UART PHY → PHY abstraction: implements interface
- Link state machine → Event diagnostics: initializes
src/dll.c - Link state machine → ISDU services: initializes
src/dll.c - Link state machine → Parameter backup: initializes
src/dll.c - Link state machine → ISDU services: dispatches channel
src/dll.c - ISDU services → Parameter management: accesses parameters
src/isdu.c - ISDU services → Event diagnostics: uses diagnostics
src/isdu.c - ISDU services → Parameter backup: uses backup
src/isdu.c - Parameter backup → Parameter management: reads and writes
src/data_storage.c - ISDU services → Device identity: reads identity
src/isdu.c - Link state machine → Protocol definitions: uses constants
src/dll.c - ISDU services → Protocol definitions: uses constants
src/isdu.c - Virtual master → Master framing: generates frames
tools/virtual_master/virtual_master/master.py - Virtual master → Master UART: sends and receives
tools/virtual_master/virtual_master/master.py - IO-Link master → Virtual master: simulated by
README.md - IODD command line → IODD generation: invokes generator
tools/iodd_cli.py - Device application → IODD command line: requests IODD
README.md