• OctoMY API
  • OctoMY API Reference
  • C++ Classes
  • OctoMY
  • Runtime
  • Runtime Class

    Orchestrates one preset through its firmware lifecycle. More...

    Header: #include <Runtime>
    Since: Phase 6
    Inherits: QObject

    Detailed Description

    Runtime wraps a Preset with the toolchain, dlopen'd firmware-runtime, flasher, and serial link needed to compile and run it. It exposes a single state enum (RuntimeStatus) and a small set of transition methods: build(), inject(), start(), stop().

    Each runtime assumes sole hardware access. Multiple runtimes can coexist (e.g. for testing different presets) as long as they target different serial ports or no ports at all.

    This is the core orchestrator for Phase 6. Heavy operations (compile, flash, load) are delegated to existing subsystems: - FirmwareGenerator → generated C++ from preset - BuildManager → debounced LLVM compile (background thread) - FirmwareFlasher → stk500v2 serial flashing (background thread) - FirmwareRuntime → dlopen of native .so

    This class is explained in the fixo runtime reference.

    See also Preset.