ownscope provides ownScope, a thin C++ wrapper around ScopeMimicry that
bundles common helpers and state used in the scope examples.
- Inherits from
ScopeMimicryand keeps the data buffer size fixed to 2048. - Provides a
dumpScopeDatas()helper to print the recorded buffer in the same format as the scope examples. - Adds a static trigger callback (
scopeTrigger) plus trigger state helpers. - Exposes getters/setters for:
number_of_cycleis_downloadingtriggerNB_DATASandminimal_step
ownScope(uint16_t num_channels)void dumpScopeDatas()static bool scopeTrigger()uint16_t getNbDatas() constfloat32_t getMinimalStep() constuint16_t getNumberOfCycle() constvoid setNumberOfCycle(uint16_t value)bool getIsDownloading() constvoid setIsDownloading(bool value)bool getTriggerState() constvoid setTriggerState(bool value)
ownScopedepends onScopeMimicry,TaskAPI, and Zephyrprintk.- You should include
ScopeMimicryin your build and addownscope.cppto your sources.