/*
 * param_def.h
 *
 * Change Logs:
 * Date           Author            Notes
 * 2020-06-07     qiyongzhong       first version
 */

#ifndef __PARAM_DEF_H__
#define __PARAM_DEF_H__

#include "sr_config.h"


#ifndef SR_PARAM_DEFINE   //参数示例
/* Param index definition
 * Note: the index must begin at 0
 * Order must be consistent with parameter definition
 */
typedef enum{
    PIDX_CAR = 0,           //
    PIDX_MAC_ADDR,          //
    PIDX_MY_AGE,            //
    PIDX_MY_MONEY,          //
    PIDX_REG_ADDR,          //
    PIDX_REG_VALUE,         //
    PIDX_VOLTAGE,           //
    PIDX_ENERGY,            //
    
    PIDX_TOTAL              //param total
}SR_PARAM_IDX_E;


#define SR_PARAM_DEFINE    { \
PARAM_STRING(car,         15,     wow)  \
PARAM_ARRAY (mac_addr,    6,      AB CD EF 01 02 03)  \
PARAM_INT   (my_age,      25)   \
PARAM_INT64 (my_money,    56789123456789) \
PARAM_HEX   (reg_addr,    A001)  \
PARAM_HEX64 (reg_value,   12345678ABCDEF) \
PARAM_FLOAT (voltage,     12.34) \
PARAM_DOUBLE(energy,      87654321.123) \
}

#endif




#endif

