-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sensors: Add streaming APIs #60063
sensors: Add streaming APIs #60063
Conversation
e2de337
to
da8c0d6
Compare
I'll try and look at this soon |
@yperess do we need to update the documnetaion with this new addition? |
I'm holding off on the documentation to make sure it's stable before we start directing people to it. Though if you think there's a benefit to it I'm happy to do it and put a banner above for "experimental" I have some changes in the pipe for the decoder (expected to be done late next week) |
f707e7a
to
d02d9dc
Compare
@teburd and @asemjonovs when looking at the |
d02d9dc
to
273c5e7
Compare
Had an issue when rebasing. I had to move the streaming logic out to a separate file. |
273c5e7
to
d1d3d55
Compare
73046c8
to
926009c
Compare
@MaureenHelm @KeHIntel @lixuzha can you re-review? |
Please also use |
Introduce a streaming API that uses the same data path as the async API. This includes features to the decoder: * Checking if triggers are present Adding streaming features built ontop of existing triggers: * Adding 3 operations to be done on a trigger * include - include the data with the trigger information * nop - do nothing * drop - drop the data (flush) * Add a new sensor_stream() API to mirror sensor_read() but add an optional handler to be able to cancel the stream. Signed-off-by: Yuval Peress <[email protected]> topic#sensor_stream
Add streaming implementation for icm42688 using both threshold and full FIFO triggers. Signed-off-by: Yuval Peress <[email protected]> topic#sensor_stream
Having a % FIFO watermark isn't very useful as it doesn't convey how long the SoC can sleep (or do other work) while batching sensor data. Convert the attribute to a batch duration using ticks. Currently the ticks are in system ticks, but eventually when an external clock is attached to the sensor it will be in the external clock's ticks. Signed-off-by: Yuval Peress <[email protected]>
926009c
to
80963ac
Compare
CI is blocked on #64881 |
can you rebase please? |
oh, it is passing already, why is this considered blocked |
@MaureenHelm had requested changes - but it looks like they have been addressed. |
Introduce a streaming API that uses the same data path as the async API.
This includes features to the decoder:
Adding streaming features built ontop of existing triggers:
optional handler to be able to cancel the stream.
Fixes #1387
Fixes #13718