Sensor Simulator

The sensor simulator library provides functionality for simulating sensor data for testing and development purposes.

It currently supports simulating data using a triangular waveform.

Configuration

The library is enabled using the Kconfig system. Set the CONFIG_SENSORSIM Kconfig option to enable the library.

Initialization

To initialize a sensor simulator instance, use the sensorsim_init() function. The function requires providing a configuration for the minimal, maximum, and starting values, as well as the increment between each measurement.

For details on the configuration parameters, see the sensorsim_cfg structure.

Usage

After initialization, you can call the sensorsim_measure() function to generate measurements based on a triangular waveform.

Dependencies

This library does not have any dependencies.

API documentation

Header file: include/bm/sensorsim.h
Source files: lib/sensorsim/

Sensor data simulator library API reference