Skip to content

owntech-foundation/ownscope

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

ownscope

ownscope provides ownScope, a thin C++ wrapper around ScopeMimicry that bundles common helpers and state used in the scope examples.

Main features

  • Inherits from ScopeMimicry and 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_cycle
    • is_downloading
    • trigger
    • NB_DATAS and minimal_step

Public API (summary)

  • ownScope(uint16_t num_channels)
  • void dumpScopeDatas()
  • static bool scopeTrigger()
  • uint16_t getNbDatas() const
  • float32_t getMinimalStep() const
  • uint16_t getNumberOfCycle() const
  • void setNumberOfCycle(uint16_t value)
  • bool getIsDownloading() const
  • void setIsDownloading(bool value)
  • bool getTriggerState() const
  • void setTriggerState(bool value)

Notes

  • ownScope depends on ScopeMimicry, TaskAPI, and Zephyr printk.
  • You should include ScopeMimicry in your build and add ownscope.cpp to your sources.

About

A OwnTech adapation of scope mimicry

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages