2023-06-10 00:56:55 +08:00
|
|
|
#ifndef _PARAM_DEMO_H_
|
|
|
|
#define _PARAM_DEMO_H_
|
|
|
|
|
|
|
|
#include "param.h"
|
|
|
|
|
|
|
|
PARAM_EXTERN_DAT(g_test, PARAM_INT16);
|
|
|
|
PARAM_EXTERN_DAT(g_test_2, PARAM_UINT16);
|
|
|
|
PARAM_EXTERN_DAT(g_test_3, PARAM_DOUBLE);
|
|
|
|
PARAM_EXTERN_STR(g_test_str, 10);
|
|
|
|
PARAM_EXTERN_DAT(g_test_4, PARAM_INT8);
|
|
|
|
PARAM_EXTERN_DAT(g_test_5, PARAM_UINT32);
|
|
|
|
PARAM_EXTERN_DAT(g_test_6, PARAM_UINT8);
|
|
|
|
PARAM_EXTERN_DAT(g_test_7, PARAM_INT64);
|
|
|
|
|
|
|
|
|
|
|
|
#define PARAM_UPDATE(name, val, ret) {\
|
|
|
|
param_##name##_t t = val;\
|
|
|
|
SetParamNewValue(&name, &t);\
|
|
|
|
}
|
|
|
|
|
|
|
|
void InitParam(bool isReset);
|
|
|
|
void ReloadParam(bool isReset);
|
|
|
|
|
|
|
|
void ResetParam(void);
|
2023-06-17 22:01:23 +08:00
|
|
|
void SaveParam(bool isReset);
|
2023-06-10 00:56:55 +08:00
|
|
|
|
|
|
|
extern const bool SetParamNewValue(const void *curParamPtr, const void *newValue);
|
2023-06-17 22:01:23 +08:00
|
|
|
void ShowAllParam(void);
|
2023-06-10 00:56:55 +08:00
|
|
|
#endif
|