nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ sensor_sim_set_wave_param()

int sensor_sim_set_wave_param ( const struct device *  dev,
enum sensor_channel  chan,
const struct wave_gen_param set_params 
)

#include <include/drivers/sensor_sim.h>

Set simulated acceleration parameters.

Note
This function can be used only if acceleration is generated as wave signal. Moreover, although it is thread-safe, it cannot be used in interrupts.
Parameters
[in]devSensor device instance.
[in]chanSelected sensor channel.
[in]set_paramsParameters of wave signal.
Return values
0If the operation was successful. Otherwise, a (negative) error code is returned.