////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
// All rights reserved.
// Confidential and Proprietary - Qualcomm Technologies, Inc.
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// THIS IS AUTO-GENERATED CODE.  PLEASE DO NOT EDIT (File bug reports against tools).
///
/// Auto-generated by: Parameter Parser V7.4.1 (8cca6579792b9fcef3bc725ff070c5ec453c7c85)
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// @file  aecxspectralsensor.cpp
/// @brief Auto-generated Chromatix parameter file
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

#include "aecxspectralsensor.h"
#include "parametersetmanager.h"

AECXSPECTRALSENSOR_NAMESPACE_BEGIN

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// SetValue/GetValue Functions
/// Gets or sets the requested value
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool FlickerInfoUpdateCoreDataType::GetValue(
    const CHAR* const __path,
    CHAR* const       __value,
    UINT32 const      __size)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    (void)ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "sameFlickerFreqencyChangeTolerance") == 0)
    {
        ParameterUtils::DoubleToString((double)sameFlickerFreqencyChangeTolerance, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "replaceACFlickerAmplitudeRatioThreshold") == 0)
    {
        ParameterUtils::DoubleToString((double)replaceACFlickerAmplitudeRatioThreshold, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "replaceNormalFlickerAmplitudeRatioThreshold") == 0)
    {
        ParameterUtils::DoubleToString((double)replaceNormalFlickerAmplitudeRatioThreshold, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "multipleRelationFlickerFreqThreshold") == 0)
    {
        ParameterUtils::DoubleToString((double)multipleRelationFlickerFreqThreshold, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "lowerFlickerFreqSelectRatioThreshold") == 0)
    {
        ParameterUtils::DoubleToString((double)lowerFlickerFreqSelectRatioThreshold, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "reservedParameters") == 0)
    {
        if (__index < reservedParametersCount)
        {
            ParameterUtils::DoubleToString((double)reservedParameters[__index], __value, __size);
            __result = true;
        }
        else
        {
            SIZE_T __valuePos = 0;
            for (UINT32 i = 0; i < reservedParametersCount; i++)
            {
                if (i > 0)
                {
                    PARAMETER_STRCAT(__value, __size, ",");
                    __valuePos = PARAMETER_STRLEN(__value);
                }
                ParameterUtils::DoubleToString((double)reservedParameters[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }

    return __result;
}

bool FlickerInfoUpdateCoreDataType::SetValue(
    const CHAR* const __path,
    const CHAR* const __value)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    (void)ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "sameFlickerFreqencyChangeTolerance") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            sameFlickerFreqencyChangeTolerance = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "replaceACFlickerAmplitudeRatioThreshold") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            replaceACFlickerAmplitudeRatioThreshold = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "replaceNormalFlickerAmplitudeRatioThreshold") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            replaceNormalFlickerAmplitudeRatioThreshold = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "multipleRelationFlickerFreqThreshold") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            multipleRelationFlickerFreqThreshold = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "lowerFlickerFreqSelectRatioThreshold") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            lowerFlickerFreqSelectRatioThreshold = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "reservedParameters") == 0)
    {
        if (__index < reservedParametersCount)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                reservedParameters[__index] = (float)dblValue; 
            }
        }
        else
        {
            const SIZE_T __valueLen = PARAMETER_STRLEN(__value);
            UINT32 __valuePos = 0;

            __index = 0;
            while (__valuePos < __valueLen && __index < reservedParametersCount)
            {
                CHAR __valueStr[MAX_SIZE];

                __valuePos += ParameterUtils::GetSubString(&__value[__valuePos], ',', __valueStr, MAX_SIZE);
                __valuePos++;

                const double dblValue = ParameterUtils::StringToDouble(__valueStr, __result);
                if (__result)
                {
                    reservedParameters[__index] = (float)dblValue; 
                }
                __index++;
            }
            __result = true;
        }
    }

    return __result;
}

bool FlickerInfoUpdateCoreDataType::GetInfo(
    const CHAR* const           __path,
    PList<ParameterParserInfo>& __info)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    (void)ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    // sameFlickerFreqencyChangeTolerance
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("sameFlickerFreqencyChangeTolerance", ParameterParserDataType::Float, (double)sameFlickerFreqencyChangeTolerance));
    }
    else if (PARAMETER_STRCMP(__name, "sameFlickerFreqencyChangeTolerance") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Float, (double)sameFlickerFreqencyChangeTolerance));
    }

    // replaceACFlickerAmplitudeRatioThreshold
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("replaceACFlickerAmplitudeRatioThreshold", ParameterParserDataType::Float, (double)replaceACFlickerAmplitudeRatioThreshold));
    }
    else if (PARAMETER_STRCMP(__name, "replaceACFlickerAmplitudeRatioThreshold") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Float, (double)replaceACFlickerAmplitudeRatioThreshold));
    }

    // replaceNormalFlickerAmplitudeRatioThreshold
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("replaceNormalFlickerAmplitudeRatioThreshold", ParameterParserDataType::Float, (double)replaceNormalFlickerAmplitudeRatioThreshold));
    }
    else if (PARAMETER_STRCMP(__name, "replaceNormalFlickerAmplitudeRatioThreshold") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Float, (double)replaceNormalFlickerAmplitudeRatioThreshold));
    }

    // multipleRelationFlickerFreqThreshold
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("multipleRelationFlickerFreqThreshold", ParameterParserDataType::Float, (double)multipleRelationFlickerFreqThreshold));
    }
    else if (PARAMETER_STRCMP(__name, "multipleRelationFlickerFreqThreshold") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Float, (double)multipleRelationFlickerFreqThreshold));
    }

    // lowerFlickerFreqSelectRatioThreshold
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("lowerFlickerFreqSelectRatioThreshold", ParameterParserDataType::Float, (double)lowerFlickerFreqSelectRatioThreshold));
    }
    else if (PARAMETER_STRCMP(__name, "lowerFlickerFreqSelectRatioThreshold") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Float, (double)lowerFlickerFreqSelectRatioThreshold));
    }

    // reservedParameters
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("reservedParameters", ParameterParserDataType::Float, true, false, reservedParametersCount));
    }

    return __result;
}

bool FlickerInfoUpdateDataType::GetValue(
    const CHAR* const __path,
    CHAR* const       __value,
    UINT32 const      __size)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    const UINT32 __pos = ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "trigger1Lux") == 0)
    {
        __result = trigger1Lux.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "trigger1Data") == 0)
    {
        __result = trigger1Data.GetValue(&__path[__pos], __value, __size);
    }

    return __result;
}

bool FlickerInfoUpdateDataType::SetValue(
    const CHAR* const __path,
    const CHAR* const __value)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    const UINT32 __pos = ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "trigger1Lux") == 0)
    {
        __result = trigger1Lux.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "trigger1Data") == 0)
    {
        __result = trigger1Data.SetValue(&__path[__pos], __value);
    }

    return __result;
}

bool FlickerInfoUpdateDataType::GetInfo(
    const CHAR* const           __path,
    PList<ParameterParserInfo>& __info)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    const UINT32 __pos = ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    // trigger1Lux
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("trigger1Lux", ParameterParserDataType::Structure));
    }
    else if (PARAMETER_STRCMP(__name, "trigger1Lux") == 0)
    {
        __result = trigger1Lux.GetInfo(&__path[__pos], __info);
    }

    // trigger1Data
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("trigger1Data", ParameterParserDataType::Structure));
    }
    else if (PARAMETER_STRCMP(__name, "trigger1Data") == 0)
    {
        __result = trigger1Data.GetInfo(&__path[__pos], __info);
    }

    return __result;
}

bool FlickerInfoUpdateType::GetValue(
    const CHAR* const __path,
    CHAR* const       __value,
    UINT32 const      __size)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    const UINT32 __pos = ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "trigger1Data") == 0)
    {
        if (__index < trigger1DataCount)
        {
            __result = trigger1Data[__index].GetValue(&__path[__pos], __value, __size);
        }
    }

    return __result;
}

bool FlickerInfoUpdateType::SetValue(
    const CHAR* const __path,
    const CHAR* const __value)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    const UINT32 __pos = ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "trigger1Data") == 0)
    {
        if (__index < trigger1DataCount)
        {
            __result = trigger1Data[__index].SetValue(&__path[__pos], __value);
        }
    }

    return __result;
}

bool FlickerInfoUpdateType::GetInfo(
    const CHAR* const           __path,
    PList<ParameterParserInfo>& __info)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    const UINT32 __pos = ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    // trigger1Data
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("trigger1Data", ParameterParserDataType::Structure, true, false, trigger1DataCount));
    }
    else if (PARAMETER_STRCMP(__name, "trigger1Data") == 0)
    {
        if (__index < trigger1DataCount)
        {
            __result = trigger1Data[__index].GetInfo(&__path[__pos], __info);
        }
        else
        {
            __result = true;
            __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Structure, true, false, trigger1DataCount));
        }
    }

    return __result;
}

bool FrameSkipCtrlCoreDataType::GetValue(
    const CHAR* const __path,
    CHAR* const       __value,
    UINT32 const      __size)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    (void)ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "flickerFreStableTorlerance") == 0)
    {
        ParameterUtils::DoubleToString((double)flickerFreStableTorlerance, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "flickerMagStableTorlerance") == 0)
    {
        ParameterUtils::DoubleToString((double)flickerMagStableTorlerance, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "flickerChanAvgStableTorlerance") == 0)
    {
        ParameterUtils::DoubleToString((double)flickerChanAvgStableTorlerance, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "flickerFreChangeThreshold") == 0)
    {
        ParameterUtils::DoubleToString((double)flickerFreChangeThreshold, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "flickerFreqAmpShockRatioThres") == 0)
    {
        ParameterUtils::DoubleToString((double)flickerFreqAmpShockRatioThres, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "lockFrameNumForScenesChange") == 0)
    {
        ParameterUtils::DoubleToString((double)lockFrameNumForScenesChange, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "resetSettingLockFrame") == 0)
    {
        ParameterUtils::DoubleToString((double)resetSettingLockFrame, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "reservedParameters") == 0)
    {
        if (__index < reservedParametersCount)
        {
            ParameterUtils::DoubleToString((double)reservedParameters[__index], __value, __size);
            __result = true;
        }
        else
        {
            SIZE_T __valuePos = 0;
            for (UINT32 i = 0; i < reservedParametersCount; i++)
            {
                if (i > 0)
                {
                    PARAMETER_STRCAT(__value, __size, ",");
                    __valuePos = PARAMETER_STRLEN(__value);
                }
                ParameterUtils::DoubleToString((double)reservedParameters[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }

    return __result;
}

bool FrameSkipCtrlCoreDataType::SetValue(
    const CHAR* const __path,
    const CHAR* const __value)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    (void)ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "flickerFreStableTorlerance") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            flickerFreStableTorlerance = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "flickerMagStableTorlerance") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            flickerMagStableTorlerance = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "flickerChanAvgStableTorlerance") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            flickerChanAvgStableTorlerance = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "flickerFreChangeThreshold") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            flickerFreChangeThreshold = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "flickerFreqAmpShockRatioThres") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            flickerFreqAmpShockRatioThres = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "lockFrameNumForScenesChange") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            lockFrameNumForScenesChange = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "resetSettingLockFrame") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            resetSettingLockFrame = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "reservedParameters") == 0)
    {
        if (__index < reservedParametersCount)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                reservedParameters[__index] = (float)dblValue; 
            }
        }
        else
        {
            const SIZE_T __valueLen = PARAMETER_STRLEN(__value);
            UINT32 __valuePos = 0;

            __index = 0;
            while (__valuePos < __valueLen && __index < reservedParametersCount)
            {
                CHAR __valueStr[MAX_SIZE];

                __valuePos += ParameterUtils::GetSubString(&__value[__valuePos], ',', __valueStr, MAX_SIZE);
                __valuePos++;

                const double dblValue = ParameterUtils::StringToDouble(__valueStr, __result);
                if (__result)
                {
                    reservedParameters[__index] = (float)dblValue; 
                }
                __index++;
            }
            __result = true;
        }
    }

    return __result;
}

bool FrameSkipCtrlCoreDataType::GetInfo(
    const CHAR* const           __path,
    PList<ParameterParserInfo>& __info)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    (void)ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    // flickerFreStableTorlerance
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("flickerFreStableTorlerance", ParameterParserDataType::Float, (double)flickerFreStableTorlerance));
    }
    else if (PARAMETER_STRCMP(__name, "flickerFreStableTorlerance") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Float, (double)flickerFreStableTorlerance));
    }

    // flickerMagStableTorlerance
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("flickerMagStableTorlerance", ParameterParserDataType::Float, (double)flickerMagStableTorlerance));
    }
    else if (PARAMETER_STRCMP(__name, "flickerMagStableTorlerance") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Float, (double)flickerMagStableTorlerance));
    }

    // flickerChanAvgStableTorlerance
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("flickerChanAvgStableTorlerance", ParameterParserDataType::Float, (double)flickerChanAvgStableTorlerance));
    }
    else if (PARAMETER_STRCMP(__name, "flickerChanAvgStableTorlerance") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Float, (double)flickerChanAvgStableTorlerance));
    }

    // flickerFreChangeThreshold
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("flickerFreChangeThreshold", ParameterParserDataType::Float, (double)flickerFreChangeThreshold));
    }
    else if (PARAMETER_STRCMP(__name, "flickerFreChangeThreshold") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Float, (double)flickerFreChangeThreshold));
    }

    // flickerFreqAmpShockRatioThres
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("flickerFreqAmpShockRatioThres", ParameterParserDataType::Float, (double)flickerFreqAmpShockRatioThres));
    }
    else if (PARAMETER_STRCMP(__name, "flickerFreqAmpShockRatioThres") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Float, (double)flickerFreqAmpShockRatioThres));
    }

    // lockFrameNumForScenesChange
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("lockFrameNumForScenesChange", ParameterParserDataType::Int32, (double)lockFrameNumForScenesChange, 0));
    }
    else if (PARAMETER_STRCMP(__name, "lockFrameNumForScenesChange") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Int32, (double)lockFrameNumForScenesChange, 0));
    }

    // resetSettingLockFrame
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("resetSettingLockFrame", ParameterParserDataType::Int32, (double)resetSettingLockFrame, 0));
    }
    else if (PARAMETER_STRCMP(__name, "resetSettingLockFrame") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Int32, (double)resetSettingLockFrame, 0));
    }

    // reservedParameters
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("reservedParameters", ParameterParserDataType::Float, true, false, reservedParametersCount));
    }

    return __result;
}

bool FrameSkipCtrlDataType::GetValue(
    const CHAR* const __path,
    CHAR* const       __value,
    UINT32 const      __size)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    const UINT32 __pos = ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "trigger1Lux") == 0)
    {
        __result = trigger1Lux.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "trigger1Data") == 0)
    {
        __result = trigger1Data.GetValue(&__path[__pos], __value, __size);
    }

    return __result;
}

bool FrameSkipCtrlDataType::SetValue(
    const CHAR* const __path,
    const CHAR* const __value)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    const UINT32 __pos = ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "trigger1Lux") == 0)
    {
        __result = trigger1Lux.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "trigger1Data") == 0)
    {
        __result = trigger1Data.SetValue(&__path[__pos], __value);
    }

    return __result;
}

bool FrameSkipCtrlDataType::GetInfo(
    const CHAR* const           __path,
    PList<ParameterParserInfo>& __info)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    const UINT32 __pos = ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    // trigger1Lux
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("trigger1Lux", ParameterParserDataType::Structure));
    }
    else if (PARAMETER_STRCMP(__name, "trigger1Lux") == 0)
    {
        __result = trigger1Lux.GetInfo(&__path[__pos], __info);
    }

    // trigger1Data
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("trigger1Data", ParameterParserDataType::Structure));
    }
    else if (PARAMETER_STRCMP(__name, "trigger1Data") == 0)
    {
        __result = trigger1Data.GetInfo(&__path[__pos], __info);
    }

    return __result;
}

bool FrameSkipCtrlType::GetValue(
    const CHAR* const __path,
    CHAR* const       __value,
    UINT32 const      __size)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    const UINT32 __pos = ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "trigger1Data") == 0)
    {
        if (__index < trigger1DataCount)
        {
            __result = trigger1Data[__index].GetValue(&__path[__pos], __value, __size);
        }
    }

    return __result;
}

bool FrameSkipCtrlType::SetValue(
    const CHAR* const __path,
    const CHAR* const __value)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    const UINT32 __pos = ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "trigger1Data") == 0)
    {
        if (__index < trigger1DataCount)
        {
            __result = trigger1Data[__index].SetValue(&__path[__pos], __value);
        }
    }

    return __result;
}

bool FrameSkipCtrlType::GetInfo(
    const CHAR* const           __path,
    PList<ParameterParserInfo>& __info)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    const UINT32 __pos = ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    // trigger1Data
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("trigger1Data", ParameterParserDataType::Structure, true, false, trigger1DataCount));
    }
    else if (PARAMETER_STRCMP(__name, "trigger1Data") == 0)
    {
        if (__index < trigger1DataCount)
        {
            __result = trigger1Data[__index].GetInfo(&__path[__pos], __info);
        }
        else
        {
            __result = true;
            __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Structure, true, false, trigger1DataCount));
        }
    }

    return __result;
}

bool FakeFlickerDectionCoreDataType::GetValue(
    const CHAR* const __path,
    CHAR* const       __value,
    UINT32 const      __size)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    (void)ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "minFlickerChanWaveRatio") == 0)
    {
        ParameterUtils::DoubleToString((double)minFlickerChanWaveRatio, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "minFlickerMag") == 0)
    {
        ParameterUtils::DoubleToString((double)minFlickerMag, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "reservedParameters") == 0)
    {
        if (__index < reservedParametersCount)
        {
            ParameterUtils::DoubleToString((double)reservedParameters[__index], __value, __size);
            __result = true;
        }
        else
        {
            SIZE_T __valuePos = 0;
            for (UINT32 i = 0; i < reservedParametersCount; i++)
            {
                if (i > 0)
                {
                    PARAMETER_STRCAT(__value, __size, ",");
                    __valuePos = PARAMETER_STRLEN(__value);
                }
                ParameterUtils::DoubleToString((double)reservedParameters[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }

    return __result;
}

bool FakeFlickerDectionCoreDataType::SetValue(
    const CHAR* const __path,
    const CHAR* const __value)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    (void)ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "minFlickerChanWaveRatio") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            minFlickerChanWaveRatio = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "minFlickerMag") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            minFlickerMag = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "reservedParameters") == 0)
    {
        if (__index < reservedParametersCount)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                reservedParameters[__index] = (float)dblValue; 
            }
        }
        else
        {
            const SIZE_T __valueLen = PARAMETER_STRLEN(__value);
            UINT32 __valuePos = 0;

            __index = 0;
            while (__valuePos < __valueLen && __index < reservedParametersCount)
            {
                CHAR __valueStr[MAX_SIZE];

                __valuePos += ParameterUtils::GetSubString(&__value[__valuePos], ',', __valueStr, MAX_SIZE);
                __valuePos++;

                const double dblValue = ParameterUtils::StringToDouble(__valueStr, __result);
                if (__result)
                {
                    reservedParameters[__index] = (float)dblValue; 
                }
                __index++;
            }
            __result = true;
        }
    }

    return __result;
}

bool FakeFlickerDectionCoreDataType::GetInfo(
    const CHAR* const           __path,
    PList<ParameterParserInfo>& __info)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    (void)ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    // minFlickerChanWaveRatio
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("minFlickerChanWaveRatio", ParameterParserDataType::Float, (double)minFlickerChanWaveRatio));
    }
    else if (PARAMETER_STRCMP(__name, "minFlickerChanWaveRatio") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Float, (double)minFlickerChanWaveRatio));
    }

    // minFlickerMag
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("minFlickerMag", ParameterParserDataType::Float, (double)minFlickerMag));
    }
    else if (PARAMETER_STRCMP(__name, "minFlickerMag") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Float, (double)minFlickerMag));
    }

    // reservedParameters
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("reservedParameters", ParameterParserDataType::Float, true, false, reservedParametersCount));
    }

    return __result;
}

bool FakeFlickerDectionDataType::GetValue(
    const CHAR* const __path,
    CHAR* const       __value,
    UINT32 const      __size)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    const UINT32 __pos = ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "trigger1Lux") == 0)
    {
        __result = trigger1Lux.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "trigger1Data") == 0)
    {
        __result = trigger1Data.GetValue(&__path[__pos], __value, __size);
    }

    return __result;
}

bool FakeFlickerDectionDataType::SetValue(
    const CHAR* const __path,
    const CHAR* const __value)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    const UINT32 __pos = ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "trigger1Lux") == 0)
    {
        __result = trigger1Lux.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "trigger1Data") == 0)
    {
        __result = trigger1Data.SetValue(&__path[__pos], __value);
    }

    return __result;
}

bool FakeFlickerDectionDataType::GetInfo(
    const CHAR* const           __path,
    PList<ParameterParserInfo>& __info)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    const UINT32 __pos = ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    // trigger1Lux
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("trigger1Lux", ParameterParserDataType::Structure));
    }
    else if (PARAMETER_STRCMP(__name, "trigger1Lux") == 0)
    {
        __result = trigger1Lux.GetInfo(&__path[__pos], __info);
    }

    // trigger1Data
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("trigger1Data", ParameterParserDataType::Structure));
    }
    else if (PARAMETER_STRCMP(__name, "trigger1Data") == 0)
    {
        __result = trigger1Data.GetInfo(&__path[__pos], __info);
    }

    return __result;
}

bool FakeFlickerDectionType::GetValue(
    const CHAR* const __path,
    CHAR* const       __value,
    UINT32 const      __size)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    const UINT32 __pos = ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "trigger1Data") == 0)
    {
        if (__index < trigger1DataCount)
        {
            __result = trigger1Data[__index].GetValue(&__path[__pos], __value, __size);
        }
    }

    return __result;
}

bool FakeFlickerDectionType::SetValue(
    const CHAR* const __path,
    const CHAR* const __value)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    const UINT32 __pos = ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "trigger1Data") == 0)
    {
        if (__index < trigger1DataCount)
        {
            __result = trigger1Data[__index].SetValue(&__path[__pos], __value);
        }
    }

    return __result;
}

bool FakeFlickerDectionType::GetInfo(
    const CHAR* const           __path,
    PList<ParameterParserInfo>& __info)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    const UINT32 __pos = ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    // trigger1Data
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("trigger1Data", ParameterParserDataType::Structure, true, false, trigger1DataCount));
    }
    else if (PARAMETER_STRCMP(__name, "trigger1Data") == 0)
    {
        if (__index < trigger1DataCount)
        {
            __result = trigger1Data[__index].GetInfo(&__path[__pos], __info);
        }
        else
        {
            __result = true;
            __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Structure, true, false, trigger1DataCount));
        }
    }

    return __result;
}

bool SpectralSensorCommParamType::GetValue(
    const CHAR* const __path,
    CHAR* const       __value,
    UINT32 const      __size)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    (void)ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "Enable") == 0)
    {
        ParameterUtils::DoubleToString((double)Enable, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "scenesChangeDetectionEnable") == 0)
    {
        ParameterUtils::DoubleToString((double)scenesChangeDetectionEnable, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "tempConvSpeed") == 0)
    {
        ParameterUtils::DoubleToString((double)tempConvSpeed, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "minAntiFlickerFrequency") == 0)
    {
        ParameterUtils::DoubleToString((double)minAntiFlickerFrequency, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "maxAntiFlickerFrequency") == 0)
    {
        ParameterUtils::DoubleToString((double)maxAntiFlickerFrequency, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "reservedParameters") == 0)
    {
        if (__index < reservedParametersCount)
        {
            ParameterUtils::DoubleToString((double)reservedParameters[__index], __value, __size);
            __result = true;
        }
        else
        {
            SIZE_T __valuePos = 0;
            for (UINT32 i = 0; i < reservedParametersCount; i++)
            {
                if (i > 0)
                {
                    PARAMETER_STRCAT(__value, __size, ",");
                    __valuePos = PARAMETER_STRLEN(__value);
                }
                ParameterUtils::DoubleToString((double)reservedParameters[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }

    return __result;
}

bool SpectralSensorCommParamType::SetValue(
    const CHAR* const __path,
    const CHAR* const __value)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    (void)ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "Enable") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            Enable = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "scenesChangeDetectionEnable") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            scenesChangeDetectionEnable = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "tempConvSpeed") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            tempConvSpeed = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "minAntiFlickerFrequency") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            minAntiFlickerFrequency = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "maxAntiFlickerFrequency") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            maxAntiFlickerFrequency = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "reservedParameters") == 0)
    {
        if (__index < reservedParametersCount)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                reservedParameters[__index] = (float)dblValue; 
            }
        }
        else
        {
            const SIZE_T __valueLen = PARAMETER_STRLEN(__value);
            UINT32 __valuePos = 0;

            __index = 0;
            while (__valuePos < __valueLen && __index < reservedParametersCount)
            {
                CHAR __valueStr[MAX_SIZE];

                __valuePos += ParameterUtils::GetSubString(&__value[__valuePos], ',', __valueStr, MAX_SIZE);
                __valuePos++;

                const double dblValue = ParameterUtils::StringToDouble(__valueStr, __result);
                if (__result)
                {
                    reservedParameters[__index] = (float)dblValue; 
                }
                __index++;
            }
            __result = true;
        }
    }

    return __result;
}

bool SpectralSensorCommParamType::GetInfo(
    const CHAR* const           __path,
    PList<ParameterParserInfo>& __info)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    (void)ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    // Enable
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("Enable", ParameterParserDataType::Boolean, (double)Enable, 0));
    }
    else if (PARAMETER_STRCMP(__name, "Enable") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Boolean, (double)Enable, 0));
    }

    // scenesChangeDetectionEnable
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("scenesChangeDetectionEnable", ParameterParserDataType::Boolean, (double)scenesChangeDetectionEnable, 0));
    }
    else if (PARAMETER_STRCMP(__name, "scenesChangeDetectionEnable") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Boolean, (double)scenesChangeDetectionEnable, 0));
    }

    // tempConvSpeed
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("tempConvSpeed", ParameterParserDataType::Float, (double)tempConvSpeed));
    }
    else if (PARAMETER_STRCMP(__name, "tempConvSpeed") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Float, (double)tempConvSpeed));
    }

    // minAntiFlickerFrequency
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("minAntiFlickerFrequency", ParameterParserDataType::Float, (double)minAntiFlickerFrequency));
    }
    else if (PARAMETER_STRCMP(__name, "minAntiFlickerFrequency") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Float, (double)minAntiFlickerFrequency));
    }

    // maxAntiFlickerFrequency
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("maxAntiFlickerFrequency", ParameterParserDataType::Float, (double)maxAntiFlickerFrequency));
    }
    else if (PARAMETER_STRCMP(__name, "maxAntiFlickerFrequency") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Float, (double)maxAntiFlickerFrequency));
    }

    // reservedParameters
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("reservedParameters", ParameterParserDataType::Float, true, false, reservedParametersCount));
    }

    return __result;
}

bool AECXSpectralSensorType::GetValue(
    const CHAR* const __path,
    CHAR* const       __value,
    UINT32 const      __size)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    const UINT32 __pos = ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "module_version") == 0)
    {
        __result = module_version.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "parameter_version") == 0)
    {
        __result = parameter_version.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "SpectralSensorCommParam") == 0)
    {
        __result = SpectralSensorCommParam.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "FakeFlickerDection") == 0)
    {
        __result = FakeFlickerDection.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "FrameSkipCtrl") == 0)
    {
        __result = FrameSkipCtrl.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "FlickerInfoUpdate") == 0)
    {
        __result = FlickerInfoUpdate.GetValue(&__path[__pos], __value, __size);
    }

    return __result;
}

bool AECXSpectralSensorType::SetValue(
    const CHAR* const __path,
    const CHAR* const __value)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    const UINT32 __pos = ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "module_version") == 0)
    {
        __result = module_version.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "parameter_version") == 0)
    {
        __result = parameter_version.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "SpectralSensorCommParam") == 0)
    {
        __result = SpectralSensorCommParam.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "FakeFlickerDection") == 0)
    {
        __result = FakeFlickerDection.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "FrameSkipCtrl") == 0)
    {
        __result = FrameSkipCtrl.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "FlickerInfoUpdate") == 0)
    {
        __result = FlickerInfoUpdate.SetValue(&__path[__pos], __value);
    }

    return __result;
}

bool AECXSpectralSensorType::GetInfo(
    const CHAR* const           __path,
    PList<ParameterParserInfo>& __info)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    const UINT32 __pos = ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    // module_version
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("module_version", ParameterParserDataType::Structure));
    }
    else if (PARAMETER_STRCMP(__name, "module_version") == 0)
    {
        __result = module_version.GetInfo(&__path[__pos], __info);
    }

    // parameter_version
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("parameter_version", ParameterParserDataType::Structure));
    }
    else if (PARAMETER_STRCMP(__name, "parameter_version") == 0)
    {
        __result = parameter_version.GetInfo(&__path[__pos], __info);
    }

    // SpectralSensorCommParam
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("SpectralSensorCommParam", ParameterParserDataType::Structure));
    }
    else if (PARAMETER_STRCMP(__name, "SpectralSensorCommParam") == 0)
    {
        __result = SpectralSensorCommParam.GetInfo(&__path[__pos], __info);
    }

    // FakeFlickerDection
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("FakeFlickerDection", ParameterParserDataType::Structure));
    }
    else if (PARAMETER_STRCMP(__name, "FakeFlickerDection") == 0)
    {
        __result = FakeFlickerDection.GetInfo(&__path[__pos], __info);
    }

    // FrameSkipCtrl
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("FrameSkipCtrl", ParameterParserDataType::Structure));
    }
    else if (PARAMETER_STRCMP(__name, "FrameSkipCtrl") == 0)
    {
        __result = FrameSkipCtrl.GetInfo(&__path[__pos], __info);
    }

    // FlickerInfoUpdate
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("FlickerInfoUpdate", ParameterParserDataType::Structure));
    }
    else if (PARAMETER_STRCMP(__name, "FlickerInfoUpdate") == 0)
    {
        __result = FlickerInfoUpdate.GetInfo(&__path[__pos], __info);
    }

    return __result;
}

bool AECXSpectralSensorType::module_versionStruct::GetValue(
    const CHAR* const __path,
    CHAR* const       __value,
    UINT32 const      __size)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    (void)ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "major_revision") == 0)
    {
        ParameterUtils::DoubleToString((double)major_revision, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "minor_revision") == 0)
    {
        ParameterUtils::DoubleToString((double)minor_revision, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "incr_revision") == 0)
    {
        ParameterUtils::DoubleToString((double)incr_revision, __value, __size, 0);
        __result = true;
    }

    return __result;
}

bool AECXSpectralSensorType::module_versionStruct::SetValue(
    const CHAR* const __path,
    const CHAR* const __value)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    (void)ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "major_revision") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            major_revision = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "minor_revision") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            minor_revision = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "incr_revision") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            incr_revision = (INT32)dblValue; 
        }
    }

    return __result;
}

bool AECXSpectralSensorType::module_versionStruct::GetInfo(
    const CHAR* const           __path,
    PList<ParameterParserInfo>& __info)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    (void)ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    // major_revision
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("major_revision", ParameterParserDataType::Int32, (double)major_revision, 0));
    }
    else if (PARAMETER_STRCMP(__name, "major_revision") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Int32, (double)major_revision, 0));
    }

    // minor_revision
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("minor_revision", ParameterParserDataType::Int32, (double)minor_revision, 0));
    }
    else if (PARAMETER_STRCMP(__name, "minor_revision") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Int32, (double)minor_revision, 0));
    }

    // incr_revision
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("incr_revision", ParameterParserDataType::Int32, (double)incr_revision, 0));
    }
    else if (PARAMETER_STRCMP(__name, "incr_revision") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Int32, (double)incr_revision, 0));
    }

    return __result;
}

bool AECXSpectralSensorType::parameter_versionStruct::GetValue(
    const CHAR* const __path,
    CHAR* const       __value,
    UINT32 const      __size)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    (void)ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "revision") == 0)
    {
        PARAMETER_STRCPY(__value, __size, revision);
        __result = true;
    }

    return __result;
}

bool AECXSpectralSensorType::parameter_versionStruct::SetValue(
    const CHAR* const __path,
    const CHAR* const /*__value*/)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    (void)ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    if (PARAMETER_STRCMP(__name, "revision") == 0)
    {
        // Cannot modify strings, risk of memory leaks or corruption
    }

    return __result;
}

bool AECXSpectralSensorType::parameter_versionStruct::GetInfo(
    const CHAR* const           __path,
    PList<ParameterParserInfo>& __info)
{
    constexpr SIZE_T MAX_SIZE = 129;
    CHAR   __name[MAX_SIZE] = "";
    UINT32 __index          = MAX_UINT;
    bool   __result         = false;

    (void)ParameterUtils::GetVariable(__path, __name, __index, MAX_SIZE);

    // revision
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("revision", ParameterParserDataType::String, revision));
    }
    else if (PARAMETER_STRCMP(__name, "revision") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::String, revision));
    }

    return __result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Default Constructor
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
AECXSpectralSensorTypeClass::AECXSpectralSensorTypeClass(
    const CHAR* name)
    : ParameterModule(name, MAJOR, MINOR, PATCH, nullptr)
{
    PARAMETER_INITIALIZE(SymbolTableID);
    PARAMETER_INITIALIZE(module_version);
    PARAMETER_INITIALIZE(parameter_version);
    PARAMETER_INITIALIZE(SpectralSensorCommParam);
    PARAMETER_INITIALIZE(FakeFlickerDection);
    PARAMETER_INITIALIZE(FrameSkipCtrl);
    PARAMETER_INITIALIZE(FlickerInfoUpdate);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Constructor
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
AECXSpectralSensorTypeClass::AECXSpectralSensorTypeClass(
    const CHAR*       name,
    ModuleData* const moduleData)
    : ParameterModule(name, MAJOR, MINOR, PATCH, moduleData)
{
    PARAMETER_INITIALIZE(SymbolTableID);
    PARAMETER_INITIALIZE(module_version);
    PARAMETER_INITIALIZE(parameter_version);
    PARAMETER_INITIALIZE(SpectralSensorCommParam);
    PARAMETER_INITIALIZE(FakeFlickerDection);
    PARAMETER_INITIALIZE(FrameSkipCtrl);
    PARAMETER_INITIALIZE(FlickerInfoUpdate);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Destructor
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
AECXSpectralSensorTypeClass::~AECXSpectralSensorTypeClass()
{
    if (Loaded)
    {
        UnloadModule();
    }
}


////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load FlickerInfoUpdateCoreDataType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void FlickerInfoUpdateCoreDataType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(sameFlickerFreqencyChangeTolerance);
    PARAMETER_INITIALIZE(replaceACFlickerAmplitudeRatioThreshold);
    PARAMETER_INITIALIZE(replaceNormalFlickerAmplitudeRatioThreshold);
    PARAMETER_INITIALIZE(multipleRelationFlickerFreqThreshold);
    PARAMETER_INITIALIZE(lowerFlickerFreqSelectRatioThreshold);
    PARAMETER_INITIALIZE(reservedParametersCount);
    PARAMETER_INITIALIZE(reservedParameters);

    ParameterFileSymbolTableEntry* const entry = parentParams.Entry;
    ParameterLoadParameters localParams(parentParams);
    localParams.Element   = nullptr;
    localParams.UseParent = false;
    localParams.Index     = 0;

    if (parentParams.Element != nullptr)
    {
        bool _posChanged = false;
        localParams.Element = entry->AdjustPositionAndGetElement(parentParams, true, _posChanged);
    }

    // If parentParams.Element != null && localParams.Element == null, then this element is not defined in the binary file.
    // If parentParams.Element == null then this binary file does not contain a definition table or
    // the full backwards compatibility feature is disabled (for memory or performance reasons)
    if (parentParams.Element == nullptr || parentParams.Element->Verified || localParams.Element != nullptr)
    {
        localParams.Position      = entry->Position;
        localParams.LoadDataLimit = entry->ReadLoadDataLimit(parentParams.LoadDataLimit);

        localParams.NameHash = 0x9045706ec4de2357;
        entry->ReadSimpleTypeFixedArray(&sameFlickerFreqencyChangeTolerance, 1, localParams);
        localParams.NameHash = 0xb5e22e1cec0970d4;
        entry->ReadSimpleTypeFixedArray(&replaceACFlickerAmplitudeRatioThreshold, 1, localParams);
        localParams.NameHash = 0xc281ba908bc4ab6e;
        entry->ReadSimpleTypeFixedArray(&replaceNormalFlickerAmplitudeRatioThreshold, 1, localParams);
        localParams.NameHash = 0x9ce42462851e43b0;
        entry->ReadSimpleTypeFixedArray(&multipleRelationFlickerFreqThreshold, 1, localParams);
        localParams.NameHash = 0xe66e4f9544c8169d;
        entry->ReadSimpleTypeFixedArray(&lowerFlickerFreqSelectRatioThreshold, 1, localParams);
        localParams.NameHash = 0xd2d51d288df02865;
        entry->ReadSimpleTypeArray(reservedParameters, reservedParametersCount, reservedParametersID, 1,
            localParams, __COUNTER__);

        entry->UpdatePosition(localParams.LoadDataLimit);
    }
    else
    {
        PARAMETER_LOG_ERROR(entry->Table->SetManager, "%s: 0x%llx entry not found in the binary file, all values will be 0\n",
            __FUNCTION__, parentParams.NameHash);
    }
}

void FlickerInfoUpdateCoreDataType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        FlickerInfoUpdateCoreDataType* arrayPtr = (FlickerInfoUpdateCoreDataType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

void* FlickerInfoUpdateCoreDataType::AllocArray(
    UINT32 __count)
{
    FlickerInfoUpdateCoreDataType* result = nullptr;
    if (__count > 0)
    {
        result = PARAMETER_NEW FlickerInfoUpdateCoreDataType[__count];
    }
    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load FlickerInfoUpdateDataType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void FlickerInfoUpdateDataType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(trigger1Lux);
    PARAMETER_INITIALIZE(trigger1Data);

    ParameterFileSymbolTableEntry* const entry = parentParams.Entry;
    ParameterLoadParameters localParams(parentParams);
    localParams.Element   = nullptr;
    localParams.UseParent = false;
    localParams.Index     = 0;

    if (parentParams.Element != nullptr)
    {
        bool _posChanged = false;
        localParams.Element = entry->AdjustPositionAndGetElement(parentParams, true, _posChanged);
    }

    // If parentParams.Element != null && localParams.Element == null, then this element is not defined in the binary file.
    // If parentParams.Element == null then this binary file does not contain a definition table or
    // the full backwards compatibility feature is disabled (for memory or performance reasons)
    if (parentParams.Element == nullptr || parentParams.Element->Verified || localParams.Element != nullptr)
    {
        localParams.Position      = entry->Position;
        localParams.LoadDataLimit = entry->ReadLoadDataLimit(parentParams.LoadDataLimit);

        localParams.UseParent       = false;
        localParams.UseParentOffset = true;
        localParams.NameHash        = 0x8e4d082e1e53933d;
        trigger1Lux.Load(localParams);
        localParams.NameHash        = 0xb64c9b874efc3775;
        trigger1Data.Load(localParams);

        entry->UpdatePosition(localParams.LoadDataLimit);
    }
    else
    {
        PARAMETER_LOG_ERROR(entry->Table->SetManager, "%s: 0x%llx entry not found in the binary file, all values will be 0\n",
            __FUNCTION__, parentParams.NameHash);
    }
}

void FlickerInfoUpdateDataType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        FlickerInfoUpdateDataType* arrayPtr = (FlickerInfoUpdateDataType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

void* FlickerInfoUpdateDataType::AllocArray(
    UINT32 __count)
{
    FlickerInfoUpdateDataType* result = nullptr;
    if (__count > 0)
    {
        result = PARAMETER_NEW FlickerInfoUpdateDataType[__count];
    }
    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load FlickerInfoUpdateType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void FlickerInfoUpdateType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(trigger1DataCount);
    PARAMETER_INITIALIZE(trigger1Data);

    ParameterFileSymbolTableEntry* const entry = parentParams.Entry;
    ParameterLoadParameters localParams(parentParams);
    localParams.Element   = nullptr;
    localParams.UseParent = false;
    localParams.Index     = 0;

    if (parentParams.Element != nullptr)
    {
        bool _posChanged = false;
        localParams.Element = entry->AdjustPositionAndGetElement(parentParams, true, _posChanged);
    }

    // If parentParams.Element != null && localParams.Element == null, then this element is not defined in the binary file.
    // If parentParams.Element == null then this binary file does not contain a definition table or
    // the full backwards compatibility feature is disabled (for memory or performance reasons)
    if (parentParams.Element == nullptr || parentParams.Element->Verified || localParams.Element != nullptr)
    {
        localParams.Position      = entry->Position;
        localParams.LoadDataLimit = entry->ReadLoadDataLimit(parentParams.LoadDataLimit);

        localParams.NameHash = 0xb64c9b874efc3775;
        entry->ReadStructureArray(trigger1Data, trigger1DataCount, trigger1DataID, 1, localParams, __COUNTER__);

        entry->UpdatePosition(localParams.LoadDataLimit);
    }
    else
    {
        PARAMETER_LOG_ERROR(entry->Table->SetManager, "%s: 0x%llx entry not found in the binary file, all values will be 0\n",
            __FUNCTION__, parentParams.NameHash);
    }
}

void FlickerInfoUpdateType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        FlickerInfoUpdateType* arrayPtr = (FlickerInfoUpdateType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

void* FlickerInfoUpdateType::AllocArray(
    UINT32 __count)
{
    FlickerInfoUpdateType* result = nullptr;
    if (__count > 0)
    {
        result = PARAMETER_NEW FlickerInfoUpdateType[__count];
    }
    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load FrameSkipCtrlCoreDataType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void FrameSkipCtrlCoreDataType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(flickerFreStableTorlerance);
    PARAMETER_INITIALIZE(flickerMagStableTorlerance);
    PARAMETER_INITIALIZE(flickerChanAvgStableTorlerance);
    PARAMETER_INITIALIZE(flickerFreChangeThreshold);
    PARAMETER_INITIALIZE(flickerFreqAmpShockRatioThres);
    PARAMETER_INITIALIZE(lockFrameNumForScenesChange);
    PARAMETER_INITIALIZE(resetSettingLockFrame);
    PARAMETER_INITIALIZE(reservedParametersCount);
    PARAMETER_INITIALIZE(reservedParameters);

    ParameterFileSymbolTableEntry* const entry = parentParams.Entry;
    ParameterLoadParameters localParams(parentParams);
    localParams.Element   = nullptr;
    localParams.UseParent = false;
    localParams.Index     = 0;

    if (parentParams.Element != nullptr)
    {
        bool _posChanged = false;
        localParams.Element = entry->AdjustPositionAndGetElement(parentParams, true, _posChanged);
    }

    // If parentParams.Element != null && localParams.Element == null, then this element is not defined in the binary file.
    // If parentParams.Element == null then this binary file does not contain a definition table or
    // the full backwards compatibility feature is disabled (for memory or performance reasons)
    if (parentParams.Element == nullptr || parentParams.Element->Verified || localParams.Element != nullptr)
    {
        localParams.Position      = entry->Position;
        localParams.LoadDataLimit = entry->ReadLoadDataLimit(parentParams.LoadDataLimit);

        localParams.NameHash = 0xcfa6bb053a548505;
        entry->ReadSimpleTypeFixedArray(&flickerFreStableTorlerance, 1, localParams);
        localParams.NameHash = 0x9963ab20213fbf0a;
        entry->ReadSimpleTypeFixedArray(&flickerMagStableTorlerance, 1, localParams);
        localParams.NameHash = 0x9712753ad566f667;
        entry->ReadSimpleTypeFixedArray(&flickerChanAvgStableTorlerance, 1, localParams);
        localParams.NameHash = 0xcf11c456fa1783fd;
        entry->ReadSimpleTypeFixedArray(&flickerFreChangeThreshold, 1, localParams);
        localParams.NameHash = 0xedcd32aee5d6151a;
        entry->ReadSimpleTypeFixedArray(&flickerFreqAmpShockRatioThres, 1, localParams);
        localParams.NameHash = 0xb114e3d2122a944c;
        entry->ReadSimpleTypeFixedArray(&lockFrameNumForScenesChange, 1, localParams);
        localParams.NameHash = 0x94ef9d4eb2ebd0bc;
        entry->ReadSimpleTypeFixedArray(&resetSettingLockFrame, 1, localParams);
        localParams.NameHash = 0xd2d51d288df02865;
        entry->ReadSimpleTypeArray(reservedParameters, reservedParametersCount, reservedParametersID, 1,
            localParams, __COUNTER__);

        entry->UpdatePosition(localParams.LoadDataLimit);
    }
    else
    {
        PARAMETER_LOG_ERROR(entry->Table->SetManager, "%s: 0x%llx entry not found in the binary file, all values will be 0\n",
            __FUNCTION__, parentParams.NameHash);
    }
}

void FrameSkipCtrlCoreDataType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        FrameSkipCtrlCoreDataType* arrayPtr = (FrameSkipCtrlCoreDataType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

void* FrameSkipCtrlCoreDataType::AllocArray(
    UINT32 __count)
{
    FrameSkipCtrlCoreDataType* result = nullptr;
    if (__count > 0)
    {
        result = PARAMETER_NEW FrameSkipCtrlCoreDataType[__count];
    }
    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load FrameSkipCtrlDataType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void FrameSkipCtrlDataType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(trigger1Lux);
    PARAMETER_INITIALIZE(trigger1Data);

    ParameterFileSymbolTableEntry* const entry = parentParams.Entry;
    ParameterLoadParameters localParams(parentParams);
    localParams.Element   = nullptr;
    localParams.UseParent = false;
    localParams.Index     = 0;

    if (parentParams.Element != nullptr)
    {
        bool _posChanged = false;
        localParams.Element = entry->AdjustPositionAndGetElement(parentParams, true, _posChanged);
    }

    // If parentParams.Element != null && localParams.Element == null, then this element is not defined in the binary file.
    // If parentParams.Element == null then this binary file does not contain a definition table or
    // the full backwards compatibility feature is disabled (for memory or performance reasons)
    if (parentParams.Element == nullptr || parentParams.Element->Verified || localParams.Element != nullptr)
    {
        localParams.Position      = entry->Position;
        localParams.LoadDataLimit = entry->ReadLoadDataLimit(parentParams.LoadDataLimit);

        localParams.UseParent       = false;
        localParams.UseParentOffset = true;
        localParams.NameHash        = 0x8e4d082e1e53933d;
        trigger1Lux.Load(localParams);
        localParams.NameHash        = 0xb64c9b874efc3775;
        trigger1Data.Load(localParams);

        entry->UpdatePosition(localParams.LoadDataLimit);
    }
    else
    {
        PARAMETER_LOG_ERROR(entry->Table->SetManager, "%s: 0x%llx entry not found in the binary file, all values will be 0\n",
            __FUNCTION__, parentParams.NameHash);
    }
}

void FrameSkipCtrlDataType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        FrameSkipCtrlDataType* arrayPtr = (FrameSkipCtrlDataType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

void* FrameSkipCtrlDataType::AllocArray(
    UINT32 __count)
{
    FrameSkipCtrlDataType* result = nullptr;
    if (__count > 0)
    {
        result = PARAMETER_NEW FrameSkipCtrlDataType[__count];
    }
    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load FrameSkipCtrlType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void FrameSkipCtrlType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(trigger1DataCount);
    PARAMETER_INITIALIZE(trigger1Data);

    ParameterFileSymbolTableEntry* const entry = parentParams.Entry;
    ParameterLoadParameters localParams(parentParams);
    localParams.Element   = nullptr;
    localParams.UseParent = false;
    localParams.Index     = 0;

    if (parentParams.Element != nullptr)
    {
        bool _posChanged = false;
        localParams.Element = entry->AdjustPositionAndGetElement(parentParams, true, _posChanged);
    }

    // If parentParams.Element != null && localParams.Element == null, then this element is not defined in the binary file.
    // If parentParams.Element == null then this binary file does not contain a definition table or
    // the full backwards compatibility feature is disabled (for memory or performance reasons)
    if (parentParams.Element == nullptr || parentParams.Element->Verified || localParams.Element != nullptr)
    {
        localParams.Position      = entry->Position;
        localParams.LoadDataLimit = entry->ReadLoadDataLimit(parentParams.LoadDataLimit);

        localParams.NameHash = 0xb64c9b874efc3775;
        entry->ReadStructureArray(trigger1Data, trigger1DataCount, trigger1DataID, 1, localParams, __COUNTER__);

        entry->UpdatePosition(localParams.LoadDataLimit);
    }
    else
    {
        PARAMETER_LOG_ERROR(entry->Table->SetManager, "%s: 0x%llx entry not found in the binary file, all values will be 0\n",
            __FUNCTION__, parentParams.NameHash);
    }
}

void FrameSkipCtrlType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        FrameSkipCtrlType* arrayPtr = (FrameSkipCtrlType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

void* FrameSkipCtrlType::AllocArray(
    UINT32 __count)
{
    FrameSkipCtrlType* result = nullptr;
    if (__count > 0)
    {
        result = PARAMETER_NEW FrameSkipCtrlType[__count];
    }
    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load FakeFlickerDectionCoreDataType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void FakeFlickerDectionCoreDataType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(minFlickerChanWaveRatio);
    PARAMETER_INITIALIZE(minFlickerMag);
    PARAMETER_INITIALIZE(reservedParametersCount);
    PARAMETER_INITIALIZE(reservedParameters);

    ParameterFileSymbolTableEntry* const entry = parentParams.Entry;
    ParameterLoadParameters localParams(parentParams);
    localParams.Element   = nullptr;
    localParams.UseParent = false;
    localParams.Index     = 0;

    if (parentParams.Element != nullptr)
    {
        bool _posChanged = false;
        localParams.Element = entry->AdjustPositionAndGetElement(parentParams, true, _posChanged);
    }

    // If parentParams.Element != null && localParams.Element == null, then this element is not defined in the binary file.
    // If parentParams.Element == null then this binary file does not contain a definition table or
    // the full backwards compatibility feature is disabled (for memory or performance reasons)
    if (parentParams.Element == nullptr || parentParams.Element->Verified || localParams.Element != nullptr)
    {
        localParams.Position      = entry->Position;
        localParams.LoadDataLimit = entry->ReadLoadDataLimit(parentParams.LoadDataLimit);

        localParams.NameHash = 0xf5c03af866708e0b;
        entry->ReadSimpleTypeFixedArray(&minFlickerChanWaveRatio, 1, localParams);
        localParams.NameHash = 0xc38c3a5670124b62;
        entry->ReadSimpleTypeFixedArray(&minFlickerMag, 1, localParams);
        localParams.NameHash = 0xd2d51d288df02865;
        entry->ReadSimpleTypeArray(reservedParameters, reservedParametersCount, reservedParametersID, 1,
            localParams, __COUNTER__);

        entry->UpdatePosition(localParams.LoadDataLimit);
    }
    else
    {
        PARAMETER_LOG_ERROR(entry->Table->SetManager, "%s: 0x%llx entry not found in the binary file, all values will be 0\n",
            __FUNCTION__, parentParams.NameHash);
    }
}

void FakeFlickerDectionCoreDataType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        FakeFlickerDectionCoreDataType* arrayPtr = (FakeFlickerDectionCoreDataType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

void* FakeFlickerDectionCoreDataType::AllocArray(
    UINT32 __count)
{
    FakeFlickerDectionCoreDataType* result = nullptr;
    if (__count > 0)
    {
        result = PARAMETER_NEW FakeFlickerDectionCoreDataType[__count];
    }
    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load FakeFlickerDectionDataType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void FakeFlickerDectionDataType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(trigger1Lux);
    PARAMETER_INITIALIZE(trigger1Data);

    ParameterFileSymbolTableEntry* const entry = parentParams.Entry;
    ParameterLoadParameters localParams(parentParams);
    localParams.Element   = nullptr;
    localParams.UseParent = false;
    localParams.Index     = 0;

    if (parentParams.Element != nullptr)
    {
        bool _posChanged = false;
        localParams.Element = entry->AdjustPositionAndGetElement(parentParams, true, _posChanged);
    }

    // If parentParams.Element != null && localParams.Element == null, then this element is not defined in the binary file.
    // If parentParams.Element == null then this binary file does not contain a definition table or
    // the full backwards compatibility feature is disabled (for memory or performance reasons)
    if (parentParams.Element == nullptr || parentParams.Element->Verified || localParams.Element != nullptr)
    {
        localParams.Position      = entry->Position;
        localParams.LoadDataLimit = entry->ReadLoadDataLimit(parentParams.LoadDataLimit);

        localParams.UseParent       = false;
        localParams.UseParentOffset = true;
        localParams.NameHash        = 0x8e4d082e1e53933d;
        trigger1Lux.Load(localParams);
        localParams.NameHash        = 0xb64c9b874efc3775;
        trigger1Data.Load(localParams);

        entry->UpdatePosition(localParams.LoadDataLimit);
    }
    else
    {
        PARAMETER_LOG_ERROR(entry->Table->SetManager, "%s: 0x%llx entry not found in the binary file, all values will be 0\n",
            __FUNCTION__, parentParams.NameHash);
    }
}

void FakeFlickerDectionDataType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        FakeFlickerDectionDataType* arrayPtr = (FakeFlickerDectionDataType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

void* FakeFlickerDectionDataType::AllocArray(
    UINT32 __count)
{
    FakeFlickerDectionDataType* result = nullptr;
    if (__count > 0)
    {
        result = PARAMETER_NEW FakeFlickerDectionDataType[__count];
    }
    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load FakeFlickerDectionType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void FakeFlickerDectionType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(trigger1DataCount);
    PARAMETER_INITIALIZE(trigger1Data);

    ParameterFileSymbolTableEntry* const entry = parentParams.Entry;
    ParameterLoadParameters localParams(parentParams);
    localParams.Element   = nullptr;
    localParams.UseParent = false;
    localParams.Index     = 0;

    if (parentParams.Element != nullptr)
    {
        bool _posChanged = false;
        localParams.Element = entry->AdjustPositionAndGetElement(parentParams, true, _posChanged);
    }

    // If parentParams.Element != null && localParams.Element == null, then this element is not defined in the binary file.
    // If parentParams.Element == null then this binary file does not contain a definition table or
    // the full backwards compatibility feature is disabled (for memory or performance reasons)
    if (parentParams.Element == nullptr || parentParams.Element->Verified || localParams.Element != nullptr)
    {
        localParams.Position      = entry->Position;
        localParams.LoadDataLimit = entry->ReadLoadDataLimit(parentParams.LoadDataLimit);

        localParams.NameHash = 0xb64c9b874efc3775;
        entry->ReadStructureArray(trigger1Data, trigger1DataCount, trigger1DataID, 1, localParams, __COUNTER__);

        entry->UpdatePosition(localParams.LoadDataLimit);
    }
    else
    {
        PARAMETER_LOG_ERROR(entry->Table->SetManager, "%s: 0x%llx entry not found in the binary file, all values will be 0\n",
            __FUNCTION__, parentParams.NameHash);
    }
}

void FakeFlickerDectionType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        FakeFlickerDectionType* arrayPtr = (FakeFlickerDectionType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

void* FakeFlickerDectionType::AllocArray(
    UINT32 __count)
{
    FakeFlickerDectionType* result = nullptr;
    if (__count > 0)
    {
        result = PARAMETER_NEW FakeFlickerDectionType[__count];
    }
    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load SpectralSensorCommParamType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void SpectralSensorCommParamType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(Enable);
    PARAMETER_INITIALIZE(scenesChangeDetectionEnable);
    PARAMETER_INITIALIZE(tempConvSpeed);
    PARAMETER_INITIALIZE(minAntiFlickerFrequency);
    PARAMETER_INITIALIZE(maxAntiFlickerFrequency);
    PARAMETER_INITIALIZE(reservedParametersCount);
    PARAMETER_INITIALIZE(reservedParameters);

    ParameterFileSymbolTableEntry* const entry = parentParams.Entry;
    ParameterLoadParameters localParams(parentParams);
    localParams.Element   = nullptr;
    localParams.UseParent = false;
    localParams.Index     = 0;

    if (parentParams.Element != nullptr)
    {
        bool _posChanged = false;
        localParams.Element = entry->AdjustPositionAndGetElement(parentParams, true, _posChanged);
    }

    // If parentParams.Element != null && localParams.Element == null, then this element is not defined in the binary file.
    // If parentParams.Element == null then this binary file does not contain a definition table or
    // the full backwards compatibility feature is disabled (for memory or performance reasons)
    if (parentParams.Element == nullptr || parentParams.Element->Verified || localParams.Element != nullptr)
    {
        localParams.Position      = entry->Position;
        localParams.LoadDataLimit = entry->ReadLoadDataLimit(parentParams.LoadDataLimit);

        localParams.NameHash = 0xd4019b18938e6318;
        entry->ReadSimpleTypeFixedArray(&Enable, 1, localParams);
        localParams.NameHash = 0xb334f5bbefaf40ae;
        entry->ReadSimpleTypeFixedArray(&scenesChangeDetectionEnable, 1, localParams);
        localParams.NameHash = 0xf110681dcce61263;
        entry->ReadSimpleTypeFixedArray(&tempConvSpeed, 1, localParams);
        localParams.NameHash = 0xc2798e808f93911b;
        entry->ReadSimpleTypeFixedArray(&minAntiFlickerFrequency, 1, localParams);
        localParams.NameHash = 0x9f4affa599ec3d00;
        entry->ReadSimpleTypeFixedArray(&maxAntiFlickerFrequency, 1, localParams);
        localParams.NameHash = 0xd2d51d288df02865;
        entry->ReadSimpleTypeArray(reservedParameters, reservedParametersCount, reservedParametersID, 1,
            localParams, __COUNTER__);

        entry->UpdatePosition(localParams.LoadDataLimit);
    }
    else
    {
        PARAMETER_LOG_ERROR(entry->Table->SetManager, "%s: 0x%llx entry not found in the binary file, all values will be 0\n",
            __FUNCTION__, parentParams.NameHash);
    }
}

void SpectralSensorCommParamType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        SpectralSensorCommParamType* arrayPtr = (SpectralSensorCommParamType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

void* SpectralSensorCommParamType::AllocArray(
    UINT32 __count)
{
    SpectralSensorCommParamType* result = nullptr;
    if (__count > 0)
    {
        result = PARAMETER_NEW SpectralSensorCommParamType[__count];
    }
    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load AECXSpectralSensorType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AECXSpectralSensorType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(module_version);
    PARAMETER_INITIALIZE(parameter_version);
    PARAMETER_INITIALIZE(SpectralSensorCommParam);
    PARAMETER_INITIALIZE(FakeFlickerDection);
    PARAMETER_INITIALIZE(FrameSkipCtrl);
    PARAMETER_INITIALIZE(FlickerInfoUpdate);

    ParameterFileSymbolTableEntry* const entry = parentParams.Entry;
    ParameterLoadParameters localParams(parentParams);
    localParams.Element   = nullptr;
    localParams.UseParent = false;
    localParams.Index     = 0;

    if (parentParams.Element != nullptr)
    {
        bool _posChanged = false;
        localParams.Element = entry->AdjustPositionAndGetElement(parentParams, true, _posChanged);
    }

    // If parentParams.Element != null && localParams.Element == null, then this element is not defined in the binary file.
    // If parentParams.Element == null then this binary file does not contain a definition table or
    // the full backwards compatibility feature is disabled (for memory or performance reasons)
    if (parentParams.Element == nullptr || parentParams.Element->Verified || localParams.Element != nullptr)
    {
        localParams.Position      = entry->Position;
        localParams.LoadDataLimit = entry->ReadLoadDataLimit(parentParams.LoadDataLimit);

        localParams.UseParent       = false;
        localParams.UseParentOffset = true;
        localParams.NameHash        = 0xe11cd9f365a2599f;
        module_version.Load(localParams);
        localParams.NameHash        = 0xca3106e199a12935;
        parameter_version.Load(localParams);
        localParams.NameHash        = 0xcbe9430725ddaa2a;
        SpectralSensorCommParam.Load(localParams);
        localParams.NameHash        = 0xb1dc2d633c80e2a6;
        FakeFlickerDection.Load(localParams);
        localParams.NameHash        = 0xae0fa6eeafa1f3d0;
        FrameSkipCtrl.Load(localParams);
        localParams.NameHash        = 0xb8be6f14094448b3;
        FlickerInfoUpdate.Load(localParams);

        entry->UpdatePosition(localParams.LoadDataLimit);
    }
    else
    {
        PARAMETER_LOG_ERROR(entry->Table->SetManager, "%s: 0x%llx entry not found in the binary file, all values will be 0\n",
            __FUNCTION__, parentParams.NameHash);
    }
}

void AECXSpectralSensorType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        AECXSpectralSensorType* arrayPtr = (AECXSpectralSensorType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

void* AECXSpectralSensorType::AllocArray(
    UINT32 __count)
{
    AECXSpectralSensorType* result = nullptr;
    if (__count > 0)
    {
        result = PARAMETER_NEW AECXSpectralSensorType[__count];
    }
    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load module_versionStruct
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AECXSpectralSensorType::module_versionStruct::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(major_revision);
    PARAMETER_INITIALIZE(minor_revision);
    PARAMETER_INITIALIZE(incr_revision);

    ParameterFileSymbolTableEntry* const entry = parentParams.Entry;
    ParameterLoadParameters localParams(parentParams);
    localParams.Element   = nullptr;
    localParams.UseParent = false;
    localParams.Index     = 0;

    if (parentParams.Element != nullptr)
    {
        bool _posChanged = false;
        localParams.Element = entry->AdjustPositionAndGetElement(parentParams, true, _posChanged);
    }

    // If parentParams.Element != null && localParams.Element == null, then this element is not defined in the binary file.
    // If parentParams.Element == null then this binary file does not contain a definition table or
    // the full backwards compatibility feature is disabled (for memory or performance reasons)
    if (parentParams.Element == nullptr || parentParams.Element->Verified || localParams.Element != nullptr)
    {
        localParams.Position      = entry->Position;
        localParams.LoadDataLimit = entry->ReadLoadDataLimit(parentParams.LoadDataLimit);

        localParams.NameHash = 0xcd66249477636693;
        entry->ReadSimpleTypeFixedArray(&major_revision, 1, localParams);
        localParams.NameHash = 0xc5497493137a9c25;
        entry->ReadSimpleTypeFixedArray(&minor_revision, 1, localParams);
        localParams.NameHash = 0xb27b8a668efb2a56;
        entry->ReadSimpleTypeFixedArray(&incr_revision, 1, localParams);

        entry->UpdatePosition(localParams.LoadDataLimit);
    }
    else
    {
        PARAMETER_LOG_ERROR(entry->Table->SetManager, "%s: 0x%llx entry not found in the binary file, all values will be 0\n",
            __FUNCTION__, parentParams.NameHash);
    }
}

void AECXSpectralSensorType::module_versionStruct::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        module_versionStruct* arrayPtr = (module_versionStruct*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

void* AECXSpectralSensorType::module_versionStruct::AllocArray(
    UINT32 __count)
{
    module_versionStruct* result = nullptr;
    if (__count > 0)
    {
        result = PARAMETER_NEW module_versionStruct[__count];
    }
    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load parameter_versionStruct
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AECXSpectralSensorType::parameter_versionStruct::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(revision);

    ParameterFileSymbolTableEntry* const entry = parentParams.Entry;
    ParameterLoadParameters localParams(parentParams);
    localParams.Element   = nullptr;
    localParams.UseParent = false;
    localParams.Index     = 0;

    if (parentParams.Element != nullptr)
    {
        bool _posChanged = false;
        localParams.Element = entry->AdjustPositionAndGetElement(parentParams, true, _posChanged);
    }

    // If parentParams.Element != null && localParams.Element == null, then this element is not defined in the binary file.
    // If parentParams.Element == null then this binary file does not contain a definition table or
    // the full backwards compatibility feature is disabled (for memory or performance reasons)
    if (parentParams.Element == nullptr || parentParams.Element->Verified || localParams.Element != nullptr)
    {
        localParams.Position      = entry->Position;
        localParams.LoadDataLimit = entry->ReadLoadDataLimit(parentParams.LoadDataLimit);

        localParams.NameHash = 0xd594eed07a5650c5;
        entry->ReadStringFixedArray(&revision, 1, localParams, __COUNTER__);

        entry->UpdatePosition(localParams.LoadDataLimit);
    }
    else
    {
        PARAMETER_LOG_ERROR(entry->Table->SetManager, "%s: 0x%llx entry not found in the binary file, all values will be 0\n",
            __FUNCTION__, parentParams.NameHash);
    }
}

void AECXSpectralSensorType::parameter_versionStruct::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        parameter_versionStruct* arrayPtr = (parameter_versionStruct*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

void* AECXSpectralSensorType::parameter_versionStruct::AllocArray(
    UINT32 __count)
{
    parameter_versionStruct* result = nullptr;
    if (__count > 0)
    {
        result = PARAMETER_NEW parameter_versionStruct[__count];
    }
    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload FlickerInfoUpdateCoreDataType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void FlickerInfoUpdateCoreDataType::Unload(ParameterFileSymbolTable* const __table)
{
    ParameterFileSymbolTable::ReleaseObject(__table, reservedParameters);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload FlickerInfoUpdateDataType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void FlickerInfoUpdateDataType::Unload(ParameterFileSymbolTable* const __table)
{
    trigger1Data.Unload(__table);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload FlickerInfoUpdateType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void FlickerInfoUpdateType::Unload(ParameterFileSymbolTable* const __table)
{
    for (UINT32 i = 0; trigger1Data != nullptr && i < trigger1DataCount; i++)
    {
        trigger1Data[i].Unload(__table);
    }
    ParameterFileSymbolTable::ReleaseObject(__table, trigger1Data);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload FrameSkipCtrlCoreDataType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void FrameSkipCtrlCoreDataType::Unload(ParameterFileSymbolTable* const __table)
{
    ParameterFileSymbolTable::ReleaseObject(__table, reservedParameters);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload FrameSkipCtrlDataType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void FrameSkipCtrlDataType::Unload(ParameterFileSymbolTable* const __table)
{
    trigger1Data.Unload(__table);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload FrameSkipCtrlType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void FrameSkipCtrlType::Unload(ParameterFileSymbolTable* const __table)
{
    for (UINT32 i = 0; trigger1Data != nullptr && i < trigger1DataCount; i++)
    {
        trigger1Data[i].Unload(__table);
    }
    ParameterFileSymbolTable::ReleaseObject(__table, trigger1Data);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload FakeFlickerDectionCoreDataType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void FakeFlickerDectionCoreDataType::Unload(ParameterFileSymbolTable* const __table)
{
    ParameterFileSymbolTable::ReleaseObject(__table, reservedParameters);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload FakeFlickerDectionDataType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void FakeFlickerDectionDataType::Unload(ParameterFileSymbolTable* const __table)
{
    trigger1Data.Unload(__table);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload FakeFlickerDectionType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void FakeFlickerDectionType::Unload(ParameterFileSymbolTable* const __table)
{
    for (UINT32 i = 0; trigger1Data != nullptr && i < trigger1DataCount; i++)
    {
        trigger1Data[i].Unload(__table);
    }
    ParameterFileSymbolTable::ReleaseObject(__table, trigger1Data);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload SpectralSensorCommParamType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void SpectralSensorCommParamType::Unload(ParameterFileSymbolTable* const __table)
{
    ParameterFileSymbolTable::ReleaseObject(__table, reservedParameters);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload AECXSpectralSensorType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AECXSpectralSensorType::Unload(ParameterFileSymbolTable* const __table)
{
    parameter_version.Unload(__table);
    SpectralSensorCommParam.Unload(__table);
    FakeFlickerDection.Unload(__table);
    FrameSkipCtrl.Unload(__table);
    FlickerInfoUpdate.Unload(__table);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload parameter_versionStruct
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AECXSpectralSensorType::parameter_versionStruct::Unload(ParameterFileSymbolTable* const __table)
{
    ParameterFileSymbolTable::ReleaseObject(__table, revision);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Release the ParameterModule object
/// Requires that this object was created via a ParameterSetManager::GetModule call
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AECXSpectralSensorType::Release()
{
    ((AECXSpectralSensorTypeClass*)this)->Release();
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Returns the ParameterModule::Modified value
/// The Modified value is incremented when the module's data or pointer values change
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
UINT32 AECXSpectralSensorType::GetModified()
{
    return ((AECXSpectralSensorTypeClass*)this)->Modified;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// GetModuleName: Returns ParameterModule::Name variable
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
const CHAR* AECXSpectralSensorType::GetModuleName()
{
    return ((AECXSpectralSensorTypeClass*)this)->Name;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// GetModuleName: Returns ParameterModule::NameHash variable
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
UINT64 AECXSpectralSensorType::GetModuleNameHash()
{
    return ((AECXSpectralSensorTypeClass*)this)->NameHash;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Create module, and return a new object
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
ParameterModule* AECXSpectralSensorTypeClass::Create(
    ModuleData* const    moduleData,
    DefaultModule* const defModule) const
{
    AECXSpectralSensorTypeClass* cls = nullptr;

    if (IsModuleMatch(moduleData) && Version.Value == moduleData->Version.Value)
    {
        const UINT32 id = moduleData->DuplicateID > 0 ? moduleData->DuplicateID : moduleData->ID;

        ParameterModule* const module = defModule->Find(id);
        if (module != nullptr)
        {
            cls = (AECXSpectralSensorTypeClass*)module;
        }
        else
        {
            cls = PARAMETER_NEW AECXSpectralSensorTypeClass(Name, moduleData);
            cls->SymbolTableID = id;
            defModule->AddModule((ParameterModule*)cls);
        }
    }
    else if (Version.Value != moduleData->Version.Value)
    {
        PARAMETER_LOG_ERROR(moduleData->SetManager, "Unable to create AECXSpectralSensorTypeClass, binary version (%lld) does not match source version (%lld)\n",
            moduleData->Version.Value, Version.Value);
    }
    else
    {
        PARAMETER_LOG_ERROR(moduleData->SetManager, "Unable to create AECXSpectralSensorTypeClass, binary name hash (0x%016llx) does not match source name hash (0x%016llx)\n",
            moduleData->NameHash, NameHash);
    }

    return (ParameterModule*)cls;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load module data, return true is successful
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool AECXSpectralSensorTypeClass::LoadModule(
    ParameterFileSymbolTable* const table)
{
    bool result = true;

#ifdef PARAMETER_USE_MUTEX
    ParameterMutexLocker lock(Mutex); // Unique LOCK
#endif

    if (!Loaded)
    {
        AECXSpectralSensorTypeClass* const cls = this;

        ParameterFileSymbolTableEntry  entryObj;
        ParameterFileSymbolTableEntry* const entry = &entryObj;
        // With EzTune enabled, the unused upper byte of SymbolTableID value can change, so clear it
        result = table->Find(entryObj, SymbolTableID & 0x00ffffffU);

        if (!result)
        {
            PARAMETER_LOG_ERROR(entry->Table->SetManager, "AECXSpectralSensorTypeClass::LoadModule Failed to find module ID (%d) in Symbol Table\n", SymbolTableID);
        }


        ParameterDefinitionElement* _element = nullptr;
        if (table->ModuleDefinitions != nullptr && !table->ModuleDefinitions->empty())
        {
            _element = table->BuildModuleElement(NameHash);
        }

        ParameterLoadParameters parentParams(entry, NameHash, true, true, _element, entry->Position, 0, ParameterFileSymbolTableEntry::LOAD_LIMIT_MAX);
        cls->Load(parentParams);
        PARAMETER_DELETE _element;
        Modified++;
        Loaded = true;
    }

    if (!result)
    {
        /// Module failed to fully load, unload it
        UnloadModule();
    }

    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload module data
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AECXSpectralSensorTypeClass::UnloadModule()
{
#ifdef PARAMETER_USE_MUTEX
    ParameterMutexLocker lock(Mutex); // Unique LOCK
#endif

    if (Loaded)
    {
        if (Data != nullptr && Data->SymbolTable != nullptr)
        {
            Unload(Data->SymbolTable);
        }
        else
        {
            PARAMETER_LOG_ERROR(Data != nullptr ? Data->SetManager : nullptr, "UnloadModule %s called with nullptr "
                "Data->SymbolTable object\n", Name);
            Unload(nullptr);
        }
        Loaded = false;
    }
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// /// Release the ParameterModule object
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AECXSpectralSensorTypeClass::Release()
{
    ParameterModule::Release();
}

AECXSPECTRALSENSOR_NAMESPACE_END
