B.1.6. CADIParameterValue_t

CADIParameterInfo_t and CADIParameterValue_t structures are used to configure component parameters.

Example B.6. CADIParameterValue_t

struct CADIParameterValue_t
{
public: // methods
    CADIParameterValue_t(uint32_t parameterID = static_cast<uint32_t>(-1),
                        CADIValueDataType_t dataType=CADI_PARAM_INVALID,
                        int64_t intValue = 0,
                        const char *stringValue_par="") :
            parameterID(parameterID),
            dataType(dataType),
            intValue(intValue)
        {
            AssignString(stringValue, stringValue_par, CADI_DESCRIPTION_SIZE);
        }
public: // data
        uint32_t   parameterID;   
        CADIValueDataType_t dataType; 
        int64_t   intValue;   
        char  stringValue[CADI_DESCRIPTION_SIZE]; 
};

The data members are:

parameterID

refers to the id of respective CADIParameterInfo_t

dataType

is the data type for interpretation by the debugger

description

is the parameter description

intValue

is the BOOL (0 = false, 1 = true)

maxValue

is the maximum admissible value

stringValue

is the string value if the type is string.

Copyright © 2008-2010 ARM Limited. All rights reserved.ARM DUI 0444F
Non-ConfidentialID110210