45 #include <px4_platform_common/defines.h> 78 BlockParam(
Block *block,
const char *name,
bool parent_prefix, T &extern_val);
88 T
get()
const {
return _val; }
96 void set(T val) { _val = val; }
#define PARAM_INVALID
Handle returned when a parameter cannot be found.
__EXPORT int param_get(param_t param, void *val)
Copy the value of a parameter.
BlockParam< int32_t & > BlockParamExtInt
__EXPORT int param_set_no_notification(param_t param, const void *val)
Set the value of a parameter, but do not notify the system about the change.
__EXPORT int param_set(param_t param, const void *val)
Set the value of a parameter.
An intrusive linked list.
Global flash based parameter store.
__EXPORT const char * param_name(param_t param)
Obtain the name of a parameter.
const char * getName() const
BlockParamBase(Block *parent, const char *name, bool parent_prefix=true)
Instantiate a block param base.
BlockParam< int32_t > BlockParamInt
BlockParam< float & > BlockParamExtFloat
virtual ~BlockParamBase()=default
BlockParam< bool > BlockParamBool
BlockParam< float > BlockParamFloat
bool commit_no_notification()
uint32_t param_t
Parameter handle.