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

..--

boards/11-Mar-2024-5244

src/11-Mar-2024-8163

CMakeLists.txtD11-Mar-2024190 95

README.rstD11-Mar-2024930 4026

app.overlayD11-Mar-2024422 2017

prj.confD11-Mar-202413 21

sample.yamlD11-Mar-2024344 1716

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 native_posix as follows:
30
31.. zephyr-app-commands::
32   :zephyr-app: samples/subsys/sensing/simple
33   :host-os: unix
34   :board: native_posix
35   :goals: run
36   :compact:
37
38To build for another board, change "native_posix" above to that board's name.
39At the current stage, it only support native posix
40