nRF Connect SDK API 0.1.0
|
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. |