How nasrullo-m/rpio works
RPIO is a Raspberry Pi GPIO and DMA-PWM library. Applications use its Python API for pin setup, input/output, and callbacks; GPIO access is handled by a native extension, while the interrupt manager watches kernel GPIO interfaces and TCP sockets and dispatches callbacks. PWM has a Python convenience layer over native bindings and a C implementation; a Servo helper builds on that API. The README also advertises command-line tools. The graph reflects documented capabilities and shown calls; unsampled CLI and PWM internals limit evidence for their connections.
Main entry points: RPIO/__init__.py RPIO API · _RPIO.py Interrupt manager · py_gpio.c GPIO extension · PWM/__init__.py PWM Python API
Components 17
Python API
- RPIO API
source/RPIO/__init__.py - Interrupt manager
source/RPIO/_RPIO.py
GPIO runtime
- GPIO extension
source/c_gpio/py_gpio.c - GPIO register access
source/c_gpio/c_gpio.c - Board detection
source/c_gpio/cpuinfo.c
PWM runtime
- PWM Python API
source/RPIO/PWM/__init__.py - Servo helper
source/RPIO/PWM/__init__.py - PWM native binding
source/c_pwm/pwm_py.c - DMA PWM engine
source/c_pwm/pwm.c - Servo daemon
source/c_pwm/servod.c
Command-line tools
- rpio command
source/scripts/rpio - rpio-curses command
source/scripts/rpio-curses
Other components
- Application
- Raspberry Pi GPIO
- Kernel GPIO interfaces
- TCP clients
- PWM hardware
Connections 15
- Application → RPIO API: calls
README.rst - RPIO API → GPIO extension: delegates GPIO
source/RPIO/__init__.py - GPIO extension → GPIO register access: calls
source/c_gpio/py_gpio.c - GPIO register access → Raspberry Pi GPIO: accesses registers
source/c_gpio/c_gpio.c - GPIO extension → Board detection: detects board
- RPIO API → Interrupt manager: delegates callbacks
source/RPIO/__init__.py - Interrupt manager → Kernel GPIO interfaces: monitors interfaces
source/RPIO/_RPIO.py - Interrupt manager → TCP clients: accepts connections
source/RPIO/_RPIO.py - Application → PWM Python API: uses PWM
README.rst - PWM Python API → PWM native binding: calls
source/RPIO/PWM/__init__.py - Servo helper → PWM Python API: configures pulses
source/RPIO/PWM/__init__.py - PWM native binding → DMA PWM engine: calls
source/c_pwm/pwm_py.c - DMA PWM engine → PWM hardware: drives PWM
- Application → rpio command: runs
README.rst - Application → rpio-curses command: runs
README.rst