////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// 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  afdspectralsensor.cpp
/// @brief Auto-generated Chromatix parameter file
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

#include "afdspectralsensor.h"
#include "parametersetmanager.h"

AFDSPECTRALSENSOR_NAMESPACE_BEGIN

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// SetValue/GetValue Functions
/// Gets or sets the requested value
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool StartEndType::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, "start") == 0)
    {
        ParameterUtils::DoubleToString((double)start, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "end") == 0)
    {
        ParameterUtils::DoubleToString((double)end, __value, __size);
        __result = true;
    }

    return __result;
}

bool StartEndType::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, "start") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            start = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "end") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            end = (float)dblValue; 
        }
    }

    return __result;
}

bool StartEndType::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);

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

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

    return __result;
}

bool FlickerSamplingRateControlCoreDataType::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, "sampRate") == 0)
    {
        ParameterUtils::DoubleToString((double)sampRate, __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 FlickerSamplingRateControlCoreDataType::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, "sampRate") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            sampRate = (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 FlickerSamplingRateControlCoreDataType::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);

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

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

    return __result;
}

bool FlickerSamplingRateControlDataType::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 FlickerSamplingRateControlDataType::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 FlickerSamplingRateControlDataType::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 FlickerSamplingRateControlType::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 FlickerSamplingRateControlType::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 FlickerSamplingRateControlType::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 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, "sameFlickerFreqThres") == 0)
    {
        ParameterUtils::DoubleToString((double)sameFlickerFreqThres, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "repACFlickerAmpRatioThres") == 0)
    {
        ParameterUtils::DoubleToString((double)repACFlickerAmpRatioThres, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "repFlickerAmpRatioThres") == 0)
    {
        ParameterUtils::DoubleToString((double)repFlickerAmpRatioThres, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "mlprFlickerFreqThres") == 0)
    {
        ParameterUtils::DoubleToString((double)mlprFlickerFreqThres, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "lowerFlickerFreqRatioThres") == 0)
    {
        ParameterUtils::DoubleToString((double)lowerFlickerFreqRatioThres, __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, "sameFlickerFreqThres") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            sameFlickerFreqThres = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "repACFlickerAmpRatioThres") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            repACFlickerAmpRatioThres = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "repFlickerAmpRatioThres") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            repFlickerAmpRatioThres = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "mlprFlickerFreqThres") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            mlprFlickerFreqThres = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "lowerFlickerFreqRatioThres") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            lowerFlickerFreqRatioThres = (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);

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

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

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

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

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

    // 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 FrameSkipControlCoreDataType::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, "flickerFreqStableThres") == 0)
    {
        ParameterUtils::DoubleToString((double)flickerFreqStableThres, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "flickerMagStableThres") == 0)
    {
        ParameterUtils::DoubleToString((double)flickerMagStableThres, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "flickerRawAvgStableThres") == 0)
    {
        ParameterUtils::DoubleToString((double)flickerRawAvgStableThres, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "flickerFreqChgThres") == 0)
    {
        ParameterUtils::DoubleToString((double)flickerFreqChgThres, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "scLockFrame") == 0)
    {
        ParameterUtils::DoubleToString((double)scLockFrame, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "rsLockFrame") == 0)
    {
        ParameterUtils::DoubleToString((double)rsLockFrame, __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 FrameSkipControlCoreDataType::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, "flickerFreqStableThres") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            flickerFreqStableThres = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "flickerMagStableThres") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            flickerMagStableThres = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "flickerRawAvgStableThres") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            flickerRawAvgStableThres = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "flickerFreqChgThres") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            flickerFreqChgThres = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "scLockFrame") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            scLockFrame = (INT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "rsLockFrame") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            rsLockFrame = (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 FrameSkipControlCoreDataType::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);

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

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

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

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

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

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

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

    return __result;
}

bool FrameSkipControlDataType::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 FrameSkipControlDataType::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 FrameSkipControlDataType::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 FrameSkipControlType::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 FrameSkipControlType::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 FrameSkipControlType::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 FakeFlickerDetectionCoreDataType::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, "minFlickerAmpRatio") == 0)
    {
        ParameterUtils::DoubleToString((double)minFlickerAmpRatio, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "minFlickerAmpACRatio") == 0)
    {
        ParameterUtils::DoubleToString((double)minFlickerAmpACRatio, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "minFlickerAmpRatioHysteresis") == 0)
    {
        ParameterUtils::DoubleToString((double)minFlickerAmpRatioHysteresis, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "minFlickerAmpACRatioHysteresis") == 0)
    {
        ParameterUtils::DoubleToString((double)minFlickerAmpACRatioHysteresis, __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 FakeFlickerDetectionCoreDataType::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, "minFlickerAmpRatio") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            minFlickerAmpRatio = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "minFlickerAmpACRatio") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            minFlickerAmpACRatio = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "minFlickerAmpRatioHysteresis") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            minFlickerAmpRatioHysteresis = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "minFlickerAmpACRatioHysteresis") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            minFlickerAmpACRatioHysteresis = (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 FakeFlickerDetectionCoreDataType::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);

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

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

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

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

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

    return __result;
}

bool FakeFlickerDetectionDataType::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 FakeFlickerDetectionDataType::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 FakeFlickerDetectionDataType::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 FakeFlickerDetectionType::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 FakeFlickerDetectionType::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 FakeFlickerDetectionType::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 AdvancedProcessType::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, "skipRowSumAFDEnable") == 0)
    {
        ParameterUtils::DoubleToString((double)skipRowSumAFDEnable, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "initFlickerFreq") == 0)
    {
        ParameterUtils::DoubleToString((double)initFlickerFreq, __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 AdvancedProcessType::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, "skipRowSumAFDEnable") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            skipRowSumAFDEnable = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "initFlickerFreq") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            initFlickerFreq = (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 AdvancedProcessType::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);

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

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

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

    return __result;
}

bool SpectralProcessorType::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, "enable") == 0)
    {
        ParameterUtils::DoubleToString((double)enable, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "scdEnable") == 0)
    {
        ParameterUtils::DoubleToString((double)scdEnable, __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, "minAntiFlickerFreq") == 0)
    {
        ParameterUtils::DoubleToString((double)minAntiFlickerFreq, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "maxAntiFlickerFreq") == 0)
    {
        ParameterUtils::DoubleToString((double)maxAntiFlickerFreq, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "minWideBandAntiFlickerFreq") == 0)
    {
        ParameterUtils::DoubleToString((double)minWideBandAntiFlickerFreq, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "maxWideBandAntiFlickerFreq") == 0)
    {
        ParameterUtils::DoubleToString((double)maxWideBandAntiFlickerFreq, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "advancedProc") == 0)
    {
        __result = advancedProc.GetValue(&__path[__pos], __value, __size);
    }
    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 SpectralProcessorType::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, "enable") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            enable = (BOOL)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "scdEnable") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            scdEnable = (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, "minAntiFlickerFreq") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            minAntiFlickerFreq = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "maxAntiFlickerFreq") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            maxAntiFlickerFreq = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "minWideBandAntiFlickerFreq") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            minWideBandAntiFlickerFreq = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "maxWideBandAntiFlickerFreq") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            maxWideBandAntiFlickerFreq = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "advancedProc") == 0)
    {
        __result = advancedProc.SetValue(&__path[__pos], __value);
    }
    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 SpectralProcessorType::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);

    // 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));
    }

    // scdEnable
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("scdEnable", ParameterParserDataType::Boolean, (double)scdEnable, 0));
    }
    else if (PARAMETER_STRCMP(__name, "scdEnable") == 0)
    {
        __result = true;
        __info.Add(ParameterParserInfo(nullptr, ParameterParserDataType::Boolean, (double)scdEnable, 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));
    }

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

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

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

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

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

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

    return __result;
}

bool AFDSpectralSensorProcessorType::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, "spectralProc") == 0)
    {
        __result = spectralProc.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "fakeFlickerDet") == 0)
    {
        __result = fakeFlickerDet.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);
    }
    else if (PARAMETER_STRCMP(__name, "flickerSampRateCtrl") == 0)
    {
        __result = flickerSampRateCtrl.GetValue(&__path[__pos], __value, __size);
    }

    return __result;
}

bool AFDSpectralSensorProcessorType::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, "spectralProc") == 0)
    {
        __result = spectralProc.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "fakeFlickerDet") == 0)
    {
        __result = fakeFlickerDet.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);
    }
    else if (PARAMETER_STRCMP(__name, "flickerSampRateCtrl") == 0)
    {
        __result = flickerSampRateCtrl.SetValue(&__path[__pos], __value);
    }

    return __result;
}

bool AFDSpectralSensorProcessorType::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);
    }

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

    // fakeFlickerDet
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("fakeFlickerDet", ParameterParserDataType::Structure));
    }
    else if (PARAMETER_STRCMP(__name, "fakeFlickerDet") == 0)
    {
        __result = fakeFlickerDet.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);
    }

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

    return __result;
}

bool AFDSpectralSensorProcessorType::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 AFDSpectralSensorProcessorType::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 AFDSpectralSensorProcessorType::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 AFDSpectralSensorProcessorType::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 AFDSpectralSensorProcessorType::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 AFDSpectralSensorProcessorType::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
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
AFDSpectralSensorProcessorTypeClass::AFDSpectralSensorProcessorTypeClass(
    const CHAR* name)
    : ParameterModule(name, MAJOR, MINOR, PATCH, nullptr)
{
    PARAMETER_INITIALIZE(SymbolTableID);
    PARAMETER_INITIALIZE(module_version);
    PARAMETER_INITIALIZE(parameter_version);
    PARAMETER_INITIALIZE(spectralProc);
    PARAMETER_INITIALIZE(fakeFlickerDet);
    PARAMETER_INITIALIZE(frameSkipCtrl);
    PARAMETER_INITIALIZE(flickerInfoUpdate);
    PARAMETER_INITIALIZE(flickerSampRateCtrl);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Constructor
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
AFDSpectralSensorProcessorTypeClass::AFDSpectralSensorProcessorTypeClass(
    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(spectralProc);
    PARAMETER_INITIALIZE(fakeFlickerDet);
    PARAMETER_INITIALIZE(frameSkipCtrl);
    PARAMETER_INITIALIZE(flickerInfoUpdate);
    PARAMETER_INITIALIZE(flickerSampRateCtrl);
}

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


////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load StartEndType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void StartEndType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(start);
    PARAMETER_INITIALIZE(end);

    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 = 0xb66cc2e0745d14d1;
        entry->ReadSimpleTypeFixedArray(&start, 1, localParams);
        localParams.NameHash = 0xb70a3330100fb825;
        entry->ReadSimpleTypeFixedArray(&end, 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 StartEndType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        StartEndType* arrayPtr = (StartEndType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load FlickerSamplingRateControlCoreDataType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void FlickerSamplingRateControlCoreDataType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(sampRate);
    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 = 0x8a87a5e4ba2f3f36;
        entry->ReadSimpleTypeFixedArray(&sampRate, 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 FlickerSamplingRateControlCoreDataType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        FlickerSamplingRateControlCoreDataType* arrayPtr = (FlickerSamplingRateControlCoreDataType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load FlickerSamplingRateControlDataType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void FlickerSamplingRateControlDataType::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 FlickerSamplingRateControlDataType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        FlickerSamplingRateControlDataType* arrayPtr = (FlickerSamplingRateControlDataType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load FlickerSamplingRateControlType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void FlickerSamplingRateControlType::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 FlickerSamplingRateControlType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        FlickerSamplingRateControlType* arrayPtr = (FlickerSamplingRateControlType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load FlickerInfoUpdateCoreDataType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void FlickerInfoUpdateCoreDataType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(sameFlickerFreqThres);
    PARAMETER_INITIALIZE(repACFlickerAmpRatioThres);
    PARAMETER_INITIALIZE(repFlickerAmpRatioThres);
    PARAMETER_INITIALIZE(mlprFlickerFreqThres);
    PARAMETER_INITIALIZE(lowerFlickerFreqRatioThres);
    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 = 0xa902f0cd625e2c11;
        entry->ReadSimpleTypeFixedArray(&sameFlickerFreqThres, 1, localParams);
        localParams.NameHash = 0x9e686303b12ef8c1;
        entry->ReadSimpleTypeFixedArray(&repACFlickerAmpRatioThres, 1, localParams);
        localParams.NameHash = 0xd11ea75ca730b08c;
        entry->ReadSimpleTypeFixedArray(&repFlickerAmpRatioThres, 1, localParams);
        localParams.NameHash = 0xad8c461ed669d5ef;
        entry->ReadSimpleTypeFixedArray(&mlprFlickerFreqThres, 1, localParams);
        localParams.NameHash = 0xa0b19a71c8a15b06;
        entry->ReadSimpleTypeFixedArray(&lowerFlickerFreqRatioThres, 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 FrameSkipControlCoreDataType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void FrameSkipControlCoreDataType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(flickerFreqStableThres);
    PARAMETER_INITIALIZE(flickerMagStableThres);
    PARAMETER_INITIALIZE(flickerRawAvgStableThres);
    PARAMETER_INITIALIZE(flickerFreqChgThres);
    PARAMETER_INITIALIZE(scLockFrame);
    PARAMETER_INITIALIZE(rsLockFrame);
    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 = 0xf9836464104daf17;
        entry->ReadSimpleTypeFixedArray(&flickerFreqStableThres, 1, localParams);
        localParams.NameHash = 0xe119ce89a5f153ea;
        entry->ReadSimpleTypeFixedArray(&flickerMagStableThres, 1, localParams);
        localParams.NameHash = 0xc76032df6a2534c2;
        entry->ReadSimpleTypeFixedArray(&flickerRawAvgStableThres, 1, localParams);
        localParams.NameHash = 0xc978d258b5691158;
        entry->ReadSimpleTypeFixedArray(&flickerFreqChgThres, 1, localParams);
        localParams.NameHash = 0xba4e052e389f4b52;
        entry->ReadSimpleTypeFixedArray(&scLockFrame, 1, localParams);
        localParams.NameHash = 0xa0bbcae0698eb379;
        entry->ReadSimpleTypeFixedArray(&rsLockFrame, 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 FrameSkipControlCoreDataType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        FrameSkipControlCoreDataType* arrayPtr = (FrameSkipControlCoreDataType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load FrameSkipControlDataType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void FrameSkipControlDataType::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 FrameSkipControlDataType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        FrameSkipControlDataType* arrayPtr = (FrameSkipControlDataType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load FrameSkipControlType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void FrameSkipControlType::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 FrameSkipControlType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        FrameSkipControlType* arrayPtr = (FrameSkipControlType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load FakeFlickerDetectionCoreDataType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void FakeFlickerDetectionCoreDataType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(minFlickerAmpRatio);
    PARAMETER_INITIALIZE(minFlickerAmpACRatio);
    PARAMETER_INITIALIZE(minFlickerAmpRatioHysteresis);
    PARAMETER_INITIALIZE(minFlickerAmpACRatioHysteresis);
    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 = 0xcf7c74ddae6d95f1;
        entry->ReadSimpleTypeFixedArray(&minFlickerAmpRatio, 1, localParams);
        localParams.NameHash = 0x92fd2942bb5ec49f;
        entry->ReadSimpleTypeFixedArray(&minFlickerAmpACRatio, 1, localParams);
        localParams.NameHash = 0xe1aaa8f72657b56f;
        entry->ReadSimpleTypeFixedArray(&minFlickerAmpRatioHysteresis, 1, localParams);
        localParams.NameHash = 0xc833d0c4ff1092af;
        entry->ReadSimpleTypeFixedArray(&minFlickerAmpACRatioHysteresis, 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 FakeFlickerDetectionCoreDataType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        FakeFlickerDetectionCoreDataType* arrayPtr = (FakeFlickerDetectionCoreDataType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load FakeFlickerDetectionDataType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void FakeFlickerDetectionDataType::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 FakeFlickerDetectionDataType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        FakeFlickerDetectionDataType* arrayPtr = (FakeFlickerDetectionDataType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load FakeFlickerDetectionType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void FakeFlickerDetectionType::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 FakeFlickerDetectionType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        FakeFlickerDetectionType* arrayPtr = (FakeFlickerDetectionType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load AdvancedProcessType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AdvancedProcessType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(skipRowSumAFDEnable);
    PARAMETER_INITIALIZE(initFlickerFreq);
    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 = 0xdcf3e7343a2e3275;
        entry->ReadSimpleTypeFixedArray(&skipRowSumAFDEnable, 1, localParams);
        localParams.NameHash = 0xd8cac988534ac700;
        entry->ReadSimpleTypeFixedArray(&initFlickerFreq, 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 AdvancedProcessType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        AdvancedProcessType* arrayPtr = (AdvancedProcessType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load SpectralProcessorType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void SpectralProcessorType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(enable);
    PARAMETER_INITIALIZE(scdEnable);
    PARAMETER_INITIALIZE(tempConvSpeed);
    PARAMETER_INITIALIZE(minAntiFlickerFreq);
    PARAMETER_INITIALIZE(maxAntiFlickerFreq);
    PARAMETER_INITIALIZE(minWideBandAntiFlickerFreq);
    PARAMETER_INITIALIZE(maxWideBandAntiFlickerFreq);
    PARAMETER_INITIALIZE(advancedProc);
    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 = 0xb3c00adf8e304e57;
        entry->ReadSimpleTypeFixedArray(&enable, 1, localParams);
        localParams.NameHash = 0x837efc95a4f0a75e;
        entry->ReadSimpleTypeFixedArray(&scdEnable, 1, localParams);
        localParams.NameHash = 0xf110681dcce61263;
        entry->ReadSimpleTypeFixedArray(&tempConvSpeed, 1, localParams);
        localParams.NameHash = 0x94d73eb4228e88ee;
        entry->ReadSimpleTypeFixedArray(&minAntiFlickerFreq, 1, localParams);
        localParams.NameHash = 0xdf67576dd07a33d4;
        entry->ReadSimpleTypeFixedArray(&maxAntiFlickerFreq, 1, localParams);
        localParams.NameHash = 0x883f2e02b5c5c0cc;
        entry->ReadSimpleTypeFixedArray(&minWideBandAntiFlickerFreq, 1, localParams);
        localParams.NameHash = 0xbdffad62c92619ff;
        entry->ReadSimpleTypeFixedArray(&maxWideBandAntiFlickerFreq, 1, localParams);
        localParams.UseParent       = false;
        localParams.UseParentOffset = true;
        localParams.NameHash        = 0xb3adb886bdbf664b;
        advancedProc.Load(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 SpectralProcessorType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        SpectralProcessorType* arrayPtr = (SpectralProcessorType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load AFDSpectralSensorProcessorType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AFDSpectralSensorProcessorType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(module_version);
    PARAMETER_INITIALIZE(parameter_version);
    PARAMETER_INITIALIZE(spectralProc);
    PARAMETER_INITIALIZE(fakeFlickerDet);
    PARAMETER_INITIALIZE(frameSkipCtrl);
    PARAMETER_INITIALIZE(flickerInfoUpdate);
    PARAMETER_INITIALIZE(flickerSampRateCtrl);

    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        = 0xd7ab08e5ad00022b;
        spectralProc.Load(localParams);
        localParams.NameHash        = 0xa68d9ebec69e3068;
        fakeFlickerDet.Load(localParams);
        localParams.NameHash        = 0xfb9a64ed98088fcd;
        frameSkipCtrl.Load(localParams);
        localParams.NameHash        = 0x849c452f15d5385e;
        flickerInfoUpdate.Load(localParams);
        localParams.NameHash        = 0xdabe8618182e7f61;
        flickerSampRateCtrl.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 AFDSpectralSensorProcessorType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        AFDSpectralSensorProcessorType* arrayPtr = (AFDSpectralSensorProcessorType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load module_versionStruct
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AFDSpectralSensorProcessorType::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 AFDSpectralSensorProcessorType::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* AFDSpectralSensorProcessorType::module_versionStruct::AllocArray(
    UINT32 __count)
{
    module_versionStruct* result = nullptr;
    if (__count > 0)
    {
        result = PARAMETER_NEW module_versionStruct[__count];
    }
    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load parameter_versionStruct
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AFDSpectralSensorProcessorType::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 AFDSpectralSensorProcessorType::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* AFDSpectralSensorProcessorType::parameter_versionStruct::AllocArray(
    UINT32 __count)
{
    parameter_versionStruct* result = nullptr;
    if (__count > 0)
    {
        result = PARAMETER_NEW parameter_versionStruct[__count];
    }
    return result;
}

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

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

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// 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 FrameSkipControlCoreDataType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void FrameSkipControlCoreDataType::Unload(ParameterFileSymbolTable* const __table)
{
    ParameterFileSymbolTable::ReleaseObject(__table, reservedParameters);
}

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

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

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

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

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

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

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload AFDSpectralSensorProcessorType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AFDSpectralSensorProcessorType::Unload(ParameterFileSymbolTable* const __table)
{
    parameter_version.Unload(__table);
    spectralProc.Unload(__table);
    fakeFlickerDet.Unload(__table);
    frameSkipCtrl.Unload(__table);
    flickerInfoUpdate.Unload(__table);
    flickerSampRateCtrl.Unload(__table);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload parameter_versionStruct
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void AFDSpectralSensorProcessorType::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 AFDSpectralSensorProcessorType::Release()
{
    ((AFDSpectralSensorProcessorTypeClass*)this)->Release();
}

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

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

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Create module, and return a new object
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
ParameterModule* AFDSpectralSensorProcessorTypeClass::Create(
    ModuleData* const    moduleData,
    DefaultModule* const defModule) const
{
    AFDSpectralSensorProcessorTypeClass* 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 = (AFDSpectralSensorProcessorTypeClass*)module;
        }
        else
        {
            cls = PARAMETER_NEW AFDSpectralSensorProcessorTypeClass(Name, moduleData);
            cls->SymbolTableID = id;
            defModule->AddModule((ParameterModule*)cls);
        }
    }
    else if (Version.Value != moduleData->Version.Value)
    {
        PARAMETER_LOG_ERROR(moduleData->SetManager, "Unable to create AFDSpectralSensorProcessorTypeClass, binary version (%lld) does not match source version (%lld)\n",
            moduleData->Version.Value, Version.Value);
    }
    else
    {
        PARAMETER_LOG_ERROR(moduleData->SetManager, "Unable to create AFDSpectralSensorProcessorTypeClass, 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 AFDSpectralSensorProcessorTypeClass::LoadModule(
    ParameterFileSymbolTable* const table)
{
    bool result = true;

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

    if (!Loaded)
    {
        AFDSpectralSensorProcessorTypeClass* 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, "AFDSpectralSensorProcessorTypeClass::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 AFDSpectralSensorProcessorTypeClass::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 AFDSpectralSensorProcessorTypeClass::Release()
{
    ParameterModule::Release();
}

AFDSPECTRALSENSOR_NAMESPACE_END
