How hms-networks/abcc-example-raspberrypi works
This repository is a Raspberry Pi evaluation application for an Anybus CompactCom module. Its runtime is driven by a main loop that services the ABCC Driver API, while the application supplies example network data and callbacks and the platform adaptation provides hardware access. The README documents SPI and serial evaluation; configuration and the hardware abstraction show those interfaces and GPIO/timer support. The driver API implementation is in a submodule not sampled here, so its internal stages are not expanded; links to it are documented or indicated as unverified where appropriate.
Main entry points: main.c Runtime loop · abcc-driver-api ABCC Driver API · abcc_software_port.h Software port · abcc_hardware_abstraction.c Hardware abstraction
Components 14
Example application
- Runtime loop
src/main.c - ABCC Driver API
lib/abcc-driver-api - Network data
src/example_application/abcc_network_data_parameters.c - Object callbacks
src/example_application/implemented_callback_functions.c
Raspberry Pi adaptation
- Driver configuration
src/abcc_adaptation/abcc_driver_config.h - Hardware abstraction
src/abcc_adaptation/abcc_hardware_abstraction.c - Software port
src/abcc_adaptation/abcc_software_port.h - Platform types
src/abcc_adaptation/abcc_types.h - HAL interfaces
src/abcc_adaptation/abcc_hardware_abstraction_aux.h
Runtime support
- Logging
src/example_application/Logprint/logprint.c - Console and log file
Other components
- Operator
- CompactCom module
- Raspberry Pi
Connections 15
- Operator → Runtime loop: runs
README.md - Runtime loop → ABCC Driver API: drives
src/main.c - Runtime loop → Hardware abstraction: initializes and shuts down
- Runtime loop → Network data: uses callbacks
- Runtime loop → Logging: logs through
src/main.c - ABCC Driver API → Network data: reads and updates
src/example_application/abcc_network_data_parameters.c - ABCC Driver API → Object callbacks: dispatches
src/example_application/implemented_callback_functions.c - Driver configuration → ABCC Driver API: configures
src/abcc_adaptation/abcc_driver_config.h - ABCC Driver API → Software port: uses port macros
src/abcc_adaptation/abcc_software_port.h - Software port → Logging: routes logging
src/abcc_adaptation/abcc_software_port.h - Software port → HAL interfaces: uses timer locks
src/abcc_adaptation/abcc_software_port.h - Hardware abstraction → Raspberry Pi: accesses GPIO and interfaces
README.md - CompactCom module → Hardware abstraction: communicates over SPI or serial
README.md - Logging → Console and log file: writes
src/example_application/Logprint/logprint.c - Runtime loop → Operator: accepts console input