Skip to content
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

Merged
merged 3 commits into from
Nov 10, 2023

Commits on Nov 3, 2023

  1. sensors: Add streaming APIs

    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
    yperess committed Nov 3, 2023
    Configuration menu
    Copy the full SHA
    552c078 View commit details
    Browse the repository at this point in the history
  2. icm42688: Implement streaming APIs

    Add streaming implementation for icm42688 using both threshold and
    full FIFO triggers.
    
    Signed-off-by: Yuval Peress <[email protected]>
    topic#sensor_stream
    yperess committed Nov 3, 2023
    Configuration menu
    Copy the full SHA
    a4e6294 View commit details
    Browse the repository at this point in the history
  3. sensors: convert fifo_wm to batch_dur

    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]>
    yperess committed Nov 3, 2023
    Configuration menu
    Copy the full SHA
    80963ac View commit details
    Browse the repository at this point in the history