• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

boards/03-Apr-2024-6555

src/03-Apr-2024-169132

CMakeLists.txtD03-Apr-2024190 95

README.rstD03-Apr-2024943 4026

app.overlayD03-Apr-2024422 2017

prj.confD03-Apr-202413 21

sample.yamlD03-Apr-2024341 1817

README.rst

1.. zephyr:code-sample:: sensing
2   :name: Sensing subsystem
3   :relevant-api: sensing_api
4
5   Get high-level sensor data in defined intervals.
6
7Overview
8********
9
10A simple sample that shows how to use the sensors with sensing subsystem APIs. It defines
11two sensors, with the underlying device bmi160 emulator, and gets the sensor
12data in defined interval.
13
14The program runs in the following sequence:
15
16#. Define the sensor in the dts
17
18#. Open the sensor
19
20#. Register call back.
21
22#. Set sample interval
23
24#. Run forever and get the sensor data.
25
26Building and Running
27********************
28
29This application can be built and executed on :ref:`native_sim <native_sim>` as follows:
30
31.. zephyr-app-commands::
32   :zephyr-app: samples/subsys/sensing/simple
33   :host-os: unix
34   :board: native_sim
35   :goals: run
36   :compact:
37
38To build for another board, change "native_sim" above to that board's name.
39At the current stage, it only support native sim.
40