nRF Connect SDK API 2.8.99
|
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.
[in] | dev | Sensor device instance. |
[in] | chan | Selected sensor channel. |
[in] | set_params | Parameters of wave signal. |
0 | If the operation was successful. Otherwise, a (negative) error code is returned. |