From 14e60e9b4d04b4ac91a39a2158387c3c57474c83 Mon Sep 17 00:00:00 2001 From: px4dev Date: Mon, 20 Aug 2012 21:46:52 -0700 Subject: Back out a change that snuck in from another branch. --- apps/systemlib/param/param.h | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/apps/systemlib/param/param.h b/apps/systemlib/param/param.h index fdd9387e6..643d0ef7b 100644 --- a/apps/systemlib/param/param.h +++ b/apps/systemlib/param/param.h @@ -48,11 +48,36 @@ #include #include -#include "drivers/drv_param.h" - /** Maximum size of the parameter backing file */ #define PARAM_FILE_MAXSIZE 4096 +/** + * Parameter types. + */ +typedef enum param_type_e { + /* globally-known parameter types */ + PARAM_TYPE_INT32 = 0, + PARAM_TYPE_FLOAT, + + /* structure parameters; size is encoded in the type value */ + PARAM_TYPE_STRUCT = 100, + PARAM_TYPE_STRUCT_MAX = 16384 + PARAM_TYPE_STRUCT, + + PARAM_TYPE_UNKNOWN = 0xffff +} param_type_t; + +/** + * Parameter handle. + * + * Parameters are represented by parameter handles, which can + * be obtained by looking up (or creating?) parameters. + */ +typedef uintptr_t param_t; + +/** + * Handle returned when a parameter cannot be found. + */ +#define PARAM_INVALID ((uintptr_t)0xffffffff) /** * Look up a parameter by name. -- cgit v1.2.3