aboutsummaryrefslogtreecommitdiff
path: root/src/modules/systemlib/param/param.h
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2015-02-14 20:31:51 +0100
committerLorenz Meier <lm@inf.ethz.ch>2015-02-15 19:52:01 +0100
commitaef041e0329fc1902f88392945d875bb49eba6f5 (patch)
tree5d392d481fcde211a55aad28e9a38fe79c809be7 /src/modules/systemlib/param/param.h
parentbed3eaafa10fe8e916ddcd31a66d2411f86c601e (diff)
downloadpx4-firmware-aef041e0329fc1902f88392945d875bb49eba6f5.tar.gz
px4-firmware-aef041e0329fc1902f88392945d875bb49eba6f5.tar.bz2
px4-firmware-aef041e0329fc1902f88392945d875bb49eba6f5.zip
Syslib: Add support for setting parameters without global notification
Diffstat (limited to 'src/modules/systemlib/param/param.h')
-rw-r--r--src/modules/systemlib/param/param.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/modules/systemlib/param/param.h b/src/modules/systemlib/param/param.h
index f82af5e16..69e984a8f 100644
--- a/src/modules/systemlib/param/param.h
+++ b/src/modules/systemlib/param/param.h
@@ -172,6 +172,16 @@ __EXPORT int param_get(param_t param, void *val);
__EXPORT int param_set(param_t param, const void *val);
/**
+ * Set the value of a parameter, but do not notify the system about the change.
+ *
+ * @param param A handle returned by param_find or passed by param_foreach.
+ * @param val The value to set; assumed to point to a variable of the parameter type.
+ * For structures, the pointer is assumed to point to a structure to be copied.
+ * @return Zero if the parameter's value could be set from a scalar, nonzero otherwise.
+ */
+__EXPORT int param_set_no_notification(param_t param, const void *val);
+
+/**
* Reset a parameter to its default value.
*
* This function frees any storage used by struct parameters, and returns the parameter