aboutsummaryrefslogtreecommitdiff
path: root/src/modules/systemlib/param/param.h
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2015-03-21 22:01:28 +0100
committerLorenz Meier <lm@inf.ethz.ch>2015-03-28 13:07:01 -0700
commitfe12bffefaf1731464cb4e0be1892c3f300abb6b (patch)
tree0ad850fadb56a192a1312f58c2c94793a65b4e6c /src/modules/systemlib/param/param.h
parent23655675d3f71daf74e64859c8ef519e8d49eab0 (diff)
downloadpx4-firmware-fe12bffefaf1731464cb4e0be1892c3f300abb6b.tar.gz
px4-firmware-fe12bffefaf1731464cb4e0be1892c3f300abb6b.tar.bz2
px4-firmware-fe12bffefaf1731464cb4e0be1892c3f300abb6b.zip
param subsystem: Only send the instantiated parameters via telemetry
Diffstat (limited to 'src/modules/systemlib/param/param.h')
-rw-r--r--src/modules/systemlib/param/param.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/modules/systemlib/param/param.h b/src/modules/systemlib/param/param.h
index 69e984a8f..e3e1b50eb 100644
--- a/src/modules/systemlib/param/param.h
+++ b/src/modules/systemlib/param/param.h
@@ -87,10 +87,20 @@ typedef uintptr_t param_t;
*
* @param name The canonical name of the parameter being looked up.
* @return A handle to the parameter, or PARAM_INVALID if the parameter does not exist.
+ * This call will also set the parameter as "used" in the system, which is used
+ * to e.g. show the parameter via the RC interface
*/
__EXPORT param_t param_find(const char *name);
/**
+ * Look up a parameter by name.
+ *
+ * @param name The canonical name of the parameter being looked up.
+ * @return A handle to the parameter, or PARAM_INVALID if the parameter does not exist.
+ */
+__EXPORT param_t param_find_no_notification(const char *name);
+
+/**
* Return the total number of parameters.
*
* @return The number of parameters.
@@ -254,8 +264,10 @@ __EXPORT int param_load(int fd);
* @param arg Argument passed to the function.
* @param only_changed If true, the function is only called for parameters whose values have
* been changed from the default.
+ * @param only_changed If true, the function is only called for parameters which have been
+ * used in one of the running applications.
*/
-__EXPORT void param_foreach(void (*func)(void *arg, param_t param), void *arg, bool only_changed);
+__EXPORT void param_foreach(void (*func)(void *arg, param_t param), void *arg, bool only_changed, bool only_used);
/**
* Set the default parameter file name.