The Ruten middleware stack.
Four layers from electrode contact to stimulation pulse. Designed so device firmware engineers spend weeks integrating, not months. Each layer has a defined API surface and can be configured independently; the full stack deploys as a single static library.
Signal Acquisition
The HAL provides hardware-agnostic access to electrode arrays and amplifiers. Device-specific register maps are contained within the driver module; your protocol code calls the same acquisition API regardless of the underlying hardware.
Neural Decoding
The decode engine runs threshold-crossing detection, artifact rejection, and feature extraction on-device. Designed to operate within the memory and compute constraints of Cortex-M4 class processors at sub-10ms total decode latency.
Safety Validation
Every stimulation command passes through the safety monitor before reaching the stimulator driver. The safety layer enforces the charge density, pulse width, and IPI limits defined in your device-specific configuration file.
Stimulation Dispatch
Validated stimulation commands are dispatched to the stimulator driver layer with configurable timing precision. Closed-loop feedback integration allows decoded neural state to update stimulation parameters within the same acquisition cycle.
Review the full API documentation
Detailed API references, integration guides, and configuration schema documentation are available in the Ruten SDK docs.