Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
card10
firmware
Merge requests
!21
Sensor streams
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Sensor streams
rahix/streams
into
master
Overview
20
Commits
9
Pipelines
4
Changes
8
All threads resolved!
Show all comments
Merged
rahix
requested to merge
rahix/streams
into
master
5 years ago
Overview
20
Commits
9
Pipelines
4
Changes
8
All threads resolved!
Show all comments
Expand
0
0
Merge request reports
Compare
master
version 3
0bb1c636
5 years ago
version 2
1afa9f63
5 years ago
version 1
a2a8fc0e
5 years ago
master (base)
and
latest version
latest version
f70b699f
9 commits,
5 years ago
version 3
0bb1c636
8 commits,
5 years ago
version 2
1afa9f63
8 commits,
5 years ago
version 1
a2a8fc0e
5 commits,
5 years ago
8 files
+
297
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
8
Search (e.g. *.vue) (Ctrl+P)
Documentation/epicardium/sensor-streams.rst
0 → 100644
+
29
−
0
Options
Sensor Streams
==============
Sensor drivers can make their data available to core 1 in a stream-like format.
This allows batch-reading many samples and shoud reduce pressure on the
Epicardium API this way. Sensor streams are read on core 1 using
:c:func:`epic_stream_read`.
This page intends to document how to add this stream interface to a sensor driver.
It also serves as a reference of existing streams. For that, take a look at the
definitions in the :c:type:`stream_descriptor` enum.
Adding a new Stream
-------------------
The list of possible sensor streams must be known at compile time. Each stream
gets a unique ID in the :c:type:`stream_descriptor` enum. Please do not assign
IDs manually but instead let the enum assign sequencial IDs. :c:macro:`SD_MAX`
must always be the highest stream ID. Additionally, please document what this
stream is for using a doc-comment so it shows up on this page.
When a sensor driver enables data collection, it should also register its
respective stream. This is done using a :c:type:`stream_info` object. Pass
this object to :c:func:`stream_register` to make your stream available. Your
driver must guarantee the :c:member:`stream_info.queue` handle to be valid until
deregistration using :c:func:`stream_deregister`.
Definitions
-----------
.. c:autodoc:: epicardium/modules/stream.h
Loading