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

#include "tmc_1_3_1.h"
#include "parametersetmanager.h"

TMC_1_3_1_NAMESPACE_BEGIN

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// SetValue/GetValue Functions
/// Gets or sets the requested value
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool tmc13_rgn_dataType::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, "gtm_percentage_tab") == 0)
    {
        __result = gtm_percentage_tab.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "ltm_percentage_tab") == 0)
    {
        __result = ltm_percentage_tab.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "dark_boost_ratio") == 0)
    {
        ParameterUtils::DoubleToString((double)dark_boost_ratio, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "dark_boost_offset_tab") == 0)
    {
        __result = dark_boost_offset_tab.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "tone_target_tab") == 0)
    {
        __result = tone_target_tab.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "tone_anchors_tab") == 0)
    {
        __result = tone_anchors_tab.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "tone_bright_adj") == 0)
    {
        ParameterUtils::DoubleToString((double)tone_bright_adj, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "tone_dark_adj") == 0)
    {
        ParameterUtils::DoubleToString((double)tone_dark_adj, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "stretch_bright_str") == 0)
    {
        ParameterUtils::DoubleToString((double)stretch_bright_str, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "stretch_dark_str") == 0)
    {
        ParameterUtils::DoubleToString((double)stretch_dark_str, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "hist_supr_range_start") == 0)
    {
        ParameterUtils::DoubleToString((double)hist_supr_range_start, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "hist_supr_range_end") == 0)
    {
        ParameterUtils::DoubleToString((double)hist_supr_range_end, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "hist_boost_range_start") == 0)
    {
        ParameterUtils::DoubleToString((double)hist_boost_range_start, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "hist_boost_range_end") == 0)
    {
        ParameterUtils::DoubleToString((double)hist_boost_range_end, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "hist_avg_range_start") == 0)
    {
        ParameterUtils::DoubleToString((double)hist_avg_range_start, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "hist_avg_range_end") == 0)
    {
        ParameterUtils::DoubleToString((double)hist_avg_range_end, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "hist_conv_kernel_tab") == 0)
    {
        __result = hist_conv_kernel_tab.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "hist_clip_slope") == 0)
    {
        ParameterUtils::DoubleToString((double)hist_clip_slope, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "hist_enhance_clamp") == 0)
    {
        ParameterUtils::DoubleToString((double)hist_enhance_clamp, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "hist_enhance_ratio_tab") == 0)
    {
        __result = hist_enhance_ratio_tab.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "contrast_bright_clip") == 0)
    {
        ParameterUtils::DoubleToString((double)contrast_bright_clip, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "contrast_dark_adj") == 0)
    {
        ParameterUtils::DoubleToString((double)contrast_dark_adj, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "contrast_he_bright_tab") == 0)
    {
        __result = contrast_he_bright_tab.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "contrast_he_dark_tab") == 0)
    {
        __result = contrast_he_dark_tab.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "hist_smoothing_str") == 0)
    {
        ParameterUtils::DoubleToString((double)hist_smoothing_str, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "hist_curve_smoothing_str") == 0)
    {
        ParameterUtils::DoubleToString((double)hist_curve_smoothing_str, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "scene_change_smoothing_str") == 0)
    {
        ParameterUtils::DoubleToString((double)scene_change_smoothing_str, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "scene_change_curve_smoothing_str") == 0)
    {
        ParameterUtils::DoubleToString((double)scene_change_curve_smoothing_str, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "scene_change_hist_delta_th1") == 0)
    {
        ParameterUtils::DoubleToString((double)scene_change_hist_delta_th1, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "scene_change_hist_delta_th2") == 0)
    {
        ParameterUtils::DoubleToString((double)scene_change_hist_delta_th2, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "scene_change_lux_idx_delta_th1") == 0)
    {
        ParameterUtils::DoubleToString((double)scene_change_lux_idx_delta_th1, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "scene_change_lux_idx_delta_th2") == 0)
    {
        ParameterUtils::DoubleToString((double)scene_change_lux_idx_delta_th2, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "stats_fusion_long_str") == 0)
    {
        ParameterUtils::DoubleToString((double)stats_fusion_long_str, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "stats_fusion_medium_str") == 0)
    {
        ParameterUtils::DoubleToString((double)stats_fusion_medium_str, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "stats_fusion_long_range") == 0)
    {
        ParameterUtils::DoubleToString((double)stats_fusion_long_range, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "stats_fusion_medium_range") == 0)
    {
        ParameterUtils::DoubleToString((double)stats_fusion_medium_range, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "stats_fusion_short_range") == 0)
    {
        ParameterUtils::DoubleToString((double)stats_fusion_short_range, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "adjustment_face_th1") == 0)
    {
        ParameterUtils::DoubleToString((double)adjustment_face_th1, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "adjustment_face_th2") == 0)
    {
        ParameterUtils::DoubleToString((double)adjustment_face_th2, __value, __size);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "adjustment_face_smoothing_str") == 0)
    {
        ParameterUtils::DoubleToString((double)adjustment_face_smoothing_str, __value, __size);
        __result = true;
    }

    return __result;
}

bool tmc13_rgn_dataType::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, "gtm_percentage_tab") == 0)
    {
        __result = gtm_percentage_tab.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "ltm_percentage_tab") == 0)
    {
        __result = ltm_percentage_tab.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "dark_boost_ratio") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            dark_boost_ratio = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "dark_boost_offset_tab") == 0)
    {
        __result = dark_boost_offset_tab.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "tone_target_tab") == 0)
    {
        __result = tone_target_tab.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "tone_anchors_tab") == 0)
    {
        __result = tone_anchors_tab.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "tone_bright_adj") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            tone_bright_adj = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "tone_dark_adj") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            tone_dark_adj = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "stretch_bright_str") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            stretch_bright_str = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "stretch_dark_str") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            stretch_dark_str = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "hist_supr_range_start") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            hist_supr_range_start = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "hist_supr_range_end") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            hist_supr_range_end = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "hist_boost_range_start") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            hist_boost_range_start = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "hist_boost_range_end") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            hist_boost_range_end = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "hist_avg_range_start") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            hist_avg_range_start = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "hist_avg_range_end") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            hist_avg_range_end = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "hist_conv_kernel_tab") == 0)
    {
        __result = hist_conv_kernel_tab.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "hist_clip_slope") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            hist_clip_slope = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "hist_enhance_clamp") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            hist_enhance_clamp = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "hist_enhance_ratio_tab") == 0)
    {
        __result = hist_enhance_ratio_tab.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "contrast_bright_clip") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            contrast_bright_clip = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "contrast_dark_adj") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            contrast_dark_adj = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "contrast_he_bright_tab") == 0)
    {
        __result = contrast_he_bright_tab.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "contrast_he_dark_tab") == 0)
    {
        __result = contrast_he_dark_tab.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "hist_smoothing_str") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            hist_smoothing_str = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "hist_curve_smoothing_str") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            hist_curve_smoothing_str = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "scene_change_smoothing_str") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            scene_change_smoothing_str = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "scene_change_curve_smoothing_str") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            scene_change_curve_smoothing_str = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "scene_change_hist_delta_th1") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            scene_change_hist_delta_th1 = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "scene_change_hist_delta_th2") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            scene_change_hist_delta_th2 = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "scene_change_lux_idx_delta_th1") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            scene_change_lux_idx_delta_th1 = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "scene_change_lux_idx_delta_th2") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            scene_change_lux_idx_delta_th2 = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "stats_fusion_long_str") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            stats_fusion_long_str = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "stats_fusion_medium_str") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            stats_fusion_medium_str = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "stats_fusion_long_range") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            stats_fusion_long_range = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "stats_fusion_medium_range") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            stats_fusion_medium_range = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "stats_fusion_short_range") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            stats_fusion_short_range = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "adjustment_face_th1") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            adjustment_face_th1 = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "adjustment_face_th2") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            adjustment_face_th2 = (float)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "adjustment_face_smoothing_str") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            adjustment_face_smoothing_str = (float)dblValue; 
        }
    }

    return __result;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    return __result;
}

bool tmc13_rgn_dataType::gtm_percentage_tabStruct::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, "gtm_percentage") == 0)
    {
        if (__index < gtm_percentageFixedCount)
        {
            ParameterUtils::DoubleToString((double)gtm_percentage[__index], __value, __size);
            __result = true;
        }
        else
        {
            SIZE_T __valuePos = 0;
            for (UINT32 i = 0; i < gtm_percentageFixedCount; i++)
            {
                if (i > 0)
                {
                    PARAMETER_STRCAT(__value, __size, ",");
                    __valuePos = PARAMETER_STRLEN(__value);
                }
                ParameterUtils::DoubleToString((double)gtm_percentage[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }

    return __result;
}

bool tmc13_rgn_dataType::gtm_percentage_tabStruct::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, "gtm_percentage") == 0)
    {
        if (__index < gtm_percentageFixedCount)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                gtm_percentage[__index] = (float)dblValue; 
            }
        }
        else
        {
            const SIZE_T __valueLen = PARAMETER_STRLEN(__value);
            UINT32 __valuePos = 0;

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

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

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

    return __result;
}

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

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

    return __result;
}

bool tmc13_rgn_dataType::ltm_percentage_tabStruct::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, "ltm_percentage") == 0)
    {
        if (__index < ltm_percentageFixedCount)
        {
            ParameterUtils::DoubleToString((double)ltm_percentage[__index], __value, __size);
            __result = true;
        }
        else
        {
            SIZE_T __valuePos = 0;
            for (UINT32 i = 0; i < ltm_percentageFixedCount; i++)
            {
                if (i > 0)
                {
                    PARAMETER_STRCAT(__value, __size, ",");
                    __valuePos = PARAMETER_STRLEN(__value);
                }
                ParameterUtils::DoubleToString((double)ltm_percentage[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }

    return __result;
}

bool tmc13_rgn_dataType::ltm_percentage_tabStruct::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, "ltm_percentage") == 0)
    {
        if (__index < ltm_percentageFixedCount)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                ltm_percentage[__index] = (float)dblValue; 
            }
        }
        else
        {
            const SIZE_T __valueLen = PARAMETER_STRLEN(__value);
            UINT32 __valuePos = 0;

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

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

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

    return __result;
}

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

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

    return __result;
}

bool tmc13_rgn_dataType::dark_boost_offset_tabStruct::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, "dark_boost_offset") == 0)
    {
        if (__index < dark_boost_offsetFixedCount)
        {
            ParameterUtils::DoubleToString((double)dark_boost_offset[__index], __value, __size);
            __result = true;
        }
        else
        {
            SIZE_T __valuePos = 0;
            for (UINT32 i = 0; i < dark_boost_offsetFixedCount; i++)
            {
                if (i > 0)
                {
                    PARAMETER_STRCAT(__value, __size, ",");
                    __valuePos = PARAMETER_STRLEN(__value);
                }
                ParameterUtils::DoubleToString((double)dark_boost_offset[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }

    return __result;
}

bool tmc13_rgn_dataType::dark_boost_offset_tabStruct::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, "dark_boost_offset") == 0)
    {
        if (__index < dark_boost_offsetFixedCount)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                dark_boost_offset[__index] = (float)dblValue; 
            }
        }
        else
        {
            const SIZE_T __valueLen = PARAMETER_STRLEN(__value);
            UINT32 __valuePos = 0;

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

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

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

    return __result;
}

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

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

    return __result;
}

bool tmc13_rgn_dataType::tone_target_tabStruct::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, "tone_target") == 0)
    {
        if (__index < tone_targetFixedCount)
        {
            ParameterUtils::DoubleToString((double)tone_target[__index], __value, __size);
            __result = true;
        }
        else
        {
            SIZE_T __valuePos = 0;
            for (UINT32 i = 0; i < tone_targetFixedCount; i++)
            {
                if (i > 0)
                {
                    PARAMETER_STRCAT(__value, __size, ",");
                    __valuePos = PARAMETER_STRLEN(__value);
                }
                ParameterUtils::DoubleToString((double)tone_target[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }

    return __result;
}

bool tmc13_rgn_dataType::tone_target_tabStruct::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, "tone_target") == 0)
    {
        if (__index < tone_targetFixedCount)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                tone_target[__index] = (float)dblValue; 
            }
        }
        else
        {
            const SIZE_T __valueLen = PARAMETER_STRLEN(__value);
            UINT32 __valuePos = 0;

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

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

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

    return __result;
}

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

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

    return __result;
}

bool tmc13_rgn_dataType::tone_anchors_tabStruct::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, "tone_anchors") == 0)
    {
        if (__index < tone_anchorsFixedCount)
        {
            ParameterUtils::DoubleToString((double)tone_anchors[__index], __value, __size);
            __result = true;
        }
        else
        {
            SIZE_T __valuePos = 0;
            for (UINT32 i = 0; i < tone_anchorsFixedCount; i++)
            {
                if (i > 0)
                {
                    PARAMETER_STRCAT(__value, __size, ",");
                    __valuePos = PARAMETER_STRLEN(__value);
                }
                ParameterUtils::DoubleToString((double)tone_anchors[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }

    return __result;
}

bool tmc13_rgn_dataType::tone_anchors_tabStruct::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, "tone_anchors") == 0)
    {
        if (__index < tone_anchorsFixedCount)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                tone_anchors[__index] = (float)dblValue; 
            }
        }
        else
        {
            const SIZE_T __valueLen = PARAMETER_STRLEN(__value);
            UINT32 __valuePos = 0;

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

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

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

    return __result;
}

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

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

    return __result;
}

bool tmc13_rgn_dataType::hist_conv_kernel_tabStruct::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, "hist_conv_kernel") == 0)
    {
        if (__index < hist_conv_kernelFixedCount)
        {
            ParameterUtils::DoubleToString((double)hist_conv_kernel[__index], __value, __size);
            __result = true;
        }
        else
        {
            SIZE_T __valuePos = 0;
            for (UINT32 i = 0; i < hist_conv_kernelFixedCount; i++)
            {
                if (i > 0)
                {
                    PARAMETER_STRCAT(__value, __size, ",");
                    __valuePos = PARAMETER_STRLEN(__value);
                }
                ParameterUtils::DoubleToString((double)hist_conv_kernel[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }

    return __result;
}

bool tmc13_rgn_dataType::hist_conv_kernel_tabStruct::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, "hist_conv_kernel") == 0)
    {
        if (__index < hist_conv_kernelFixedCount)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                hist_conv_kernel[__index] = (float)dblValue; 
            }
        }
        else
        {
            const SIZE_T __valueLen = PARAMETER_STRLEN(__value);
            UINT32 __valuePos = 0;

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

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

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

    return __result;
}

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

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

    return __result;
}

bool tmc13_rgn_dataType::hist_enhance_ratio_tabStruct::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, "hist_enhance_ratio") == 0)
    {
        if (__index < hist_enhance_ratioFixedCount)
        {
            ParameterUtils::DoubleToString((double)hist_enhance_ratio[__index], __value, __size);
            __result = true;
        }
        else
        {
            SIZE_T __valuePos = 0;
            for (UINT32 i = 0; i < hist_enhance_ratioFixedCount; i++)
            {
                if (i > 0)
                {
                    PARAMETER_STRCAT(__value, __size, ",");
                    __valuePos = PARAMETER_STRLEN(__value);
                }
                ParameterUtils::DoubleToString((double)hist_enhance_ratio[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }

    return __result;
}

bool tmc13_rgn_dataType::hist_enhance_ratio_tabStruct::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, "hist_enhance_ratio") == 0)
    {
        if (__index < hist_enhance_ratioFixedCount)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                hist_enhance_ratio[__index] = (float)dblValue; 
            }
        }
        else
        {
            const SIZE_T __valueLen = PARAMETER_STRLEN(__value);
            UINT32 __valuePos = 0;

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

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

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

    return __result;
}

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

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

    return __result;
}

bool tmc13_rgn_dataType::contrast_he_bright_tabStruct::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, "contrast_he_bright") == 0)
    {
        if (__index < contrast_he_brightFixedCount)
        {
            ParameterUtils::DoubleToString((double)contrast_he_bright[__index], __value, __size);
            __result = true;
        }
        else
        {
            SIZE_T __valuePos = 0;
            for (UINT32 i = 0; i < contrast_he_brightFixedCount; i++)
            {
                if (i > 0)
                {
                    PARAMETER_STRCAT(__value, __size, ",");
                    __valuePos = PARAMETER_STRLEN(__value);
                }
                ParameterUtils::DoubleToString((double)contrast_he_bright[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }

    return __result;
}

bool tmc13_rgn_dataType::contrast_he_bright_tabStruct::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, "contrast_he_bright") == 0)
    {
        if (__index < contrast_he_brightFixedCount)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                contrast_he_bright[__index] = (float)dblValue; 
            }
        }
        else
        {
            const SIZE_T __valueLen = PARAMETER_STRLEN(__value);
            UINT32 __valuePos = 0;

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

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

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

    return __result;
}

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

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

    return __result;
}

bool tmc13_rgn_dataType::contrast_he_dark_tabStruct::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, "contrast_he_dark") == 0)
    {
        if (__index < contrast_he_darkFixedCount)
        {
            ParameterUtils::DoubleToString((double)contrast_he_dark[__index], __value, __size);
            __result = true;
        }
        else
        {
            SIZE_T __valuePos = 0;
            for (UINT32 i = 0; i < contrast_he_darkFixedCount; i++)
            {
                if (i > 0)
                {
                    PARAMETER_STRCAT(__value, __size, ",");
                    __valuePos = PARAMETER_STRLEN(__value);
                }
                ParameterUtils::DoubleToString((double)contrast_he_dark[i], &__value[__valuePos], (INT32)(__size - __valuePos));
            }
            __result = true;
        }
    }

    return __result;
}

bool tmc13_rgn_dataType::contrast_he_dark_tabStruct::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, "contrast_he_dark") == 0)
    {
        if (__index < contrast_he_darkFixedCount)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                contrast_he_dark[__index] = (float)dblValue; 
            }
        }
        else
        {
            const SIZE_T __valueLen = PARAMETER_STRLEN(__value);
            UINT32 __valuePos = 0;

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

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

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

    return __result;
}

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

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

    return __result;
}

bool triggerType::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, "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;
    }
    else if (PARAMETER_STRCMP(__name, "trigger") == 0)
    {
        if (__index < triggerCount)
        {
            __result = trigger[__index].GetValue(&__path[__pos], __value, __size);
        }
    }
    else if (PARAMETER_STRCMP(__name, "region") == 0)
    {
        if (regionExists)
        {
            __result = region.GetValue(&__path[__pos], __value, __size);
        }
    }

    return __result;
}

bool triggerType::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, "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; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "trigger") == 0)
    {
        if (__index < triggerCount)
        {
            __result = trigger[__index].SetValue(&__path[__pos], __value);
        }
    }
    else if (PARAMETER_STRCMP(__name, "region") == 0)
    {
        if (regionExists)
        {
            __result = region.SetValue(&__path[__pos], __value);
        }
    }

    return __result;
}

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

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

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

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

    return __result;
}

bool chromatix_tmc13_coreType::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, "mod_tmc13_trigger_data") == 0)
    {
        if (__index < mod_tmc13_trigger_dataCount)
        {
            __result = mod_tmc13_trigger_data[__index].GetValue(&__path[__pos], __value, __size);
        }
    }

    return __result;
}

bool chromatix_tmc13_coreType::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, "mod_tmc13_trigger_data") == 0)
    {
        if (__index < mod_tmc13_trigger_dataCount)
        {
            __result = mod_tmc13_trigger_data[__index].SetValue(&__path[__pos], __value);
        }
    }

    return __result;
}

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

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

    return __result;
}

bool chromatix_tmc13_reserveType::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, "use_gtm") == 0)
    {
        ParameterUtils::DoubleToString((double)use_gtm, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "use_ltm") == 0)
    {
        ParameterUtils::DoubleToString((double)use_ltm, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "curve_model") == 0)
    {
        ParameterUtils::DoubleToString((double)curve_model, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "curve_order") == 0)
    {
        ParameterUtils::DoubleToString((double)curve_order, __value, __size, 0);
        __result = true;
    }
    else if (PARAMETER_STRCMP(__name, "tone_max_ratio") == 0)
    {
        ParameterUtils::DoubleToString((double)tone_max_ratio, __value, __size);
        __result = true;
    }

    return __result;
}

bool chromatix_tmc13_reserveType::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, "use_gtm") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            use_gtm = (UINT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "use_ltm") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            use_ltm = (UINT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "curve_model") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            curve_model = (UINT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "curve_order") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            curve_order = (UINT32)dblValue; 
        }
    }
    else if (PARAMETER_STRCMP(__name, "tone_max_ratio") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            tone_max_ratio = (float)dblValue; 
        }
    }

    return __result;
}

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

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

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

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

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

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

    return __result;
}

bool chromatix_tmc13Type::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_section") == 0)
    {
        __result = enable_section.GetValue(&__path[__pos], __value, __size);
    }
    else 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, "control_variables") == 0)
    {
        __result = control_variables.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "private_information") == 0)
    {
        __result = private_information.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "chromatix_tmc13_reserve") == 0)
    {
        __result = chromatix_tmc13_reserve.GetValue(&__path[__pos], __value, __size);
    }
    else if (PARAMETER_STRCMP(__name, "chromatix_tmc13_core") == 0)
    {
        __result = chromatix_tmc13_core.GetValue(&__path[__pos], __value, __size);
    }

    return __result;
}

bool chromatix_tmc13Type::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_section") == 0)
    {
        __result = enable_section.SetValue(&__path[__pos], __value);
    }
    else 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, "control_variables") == 0)
    {
        __result = control_variables.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "private_information") == 0)
    {
        __result = private_information.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "chromatix_tmc13_reserve") == 0)
    {
        __result = chromatix_tmc13_reserve.SetValue(&__path[__pos], __value);
    }
    else if (PARAMETER_STRCMP(__name, "chromatix_tmc13_core") == 0)
    {
        __result = chromatix_tmc13_core.SetValue(&__path[__pos], __value);
    }

    return __result;
}

bool chromatix_tmc13Type::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_section
    if (__name[0] == '\0')
    {
        __result = true;
        __info.Add(ParameterParserInfo("enable_section", ParameterParserDataType::Structure));
    }
    else if (PARAMETER_STRCMP(__name, "enable_section") == 0)
    {
        __result = enable_section.GetInfo(&__path[__pos], __info);
    }

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

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

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

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

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

    return __result;
}

bool chromatix_tmc13Type::enable_sectionStruct::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, "tmc_enable") == 0)
    {
        ParameterUtils::DoubleToString((double)tmc_enable, __value, __size, 0);
        __result = true;
    }

    return __result;
}

bool chromatix_tmc13Type::enable_sectionStruct::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, "tmc_enable") == 0)
    {
        const double dblValue = ParameterUtils::StringToDouble(__value, __result);
        if (__result)
        {
            tmc_enable = (globalelements::enable_flag_type)dblValue; 
        }
    }

    return __result;
}

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

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

    return __result;
}

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

bool chromatix_tmc13Type::control_variablesStruct::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, "control_var_type") == 0)
    {
        if (__index < control_var_typeCount)
        {
            ParameterUtils::DoubleToString((double)(UINT32)control_var_type[__index], __value, __size, 0);
            __result = true;
        }
        else
        {
            SIZE_T __valuePos = 0;
            for (UINT32 i = 0; i < control_var_typeCount; i++)
            {
                if (i > 0)
                {
                    PARAMETER_STRCAT(__value, __size, ",");
                    __valuePos = PARAMETER_STRLEN(__value);
                }
                ParameterUtils::DoubleToString((double)(UINT32)control_var_type[i], &__value[__valuePos], (INT32)(__size - __valuePos), 0);
            }
            __result = true;
        }
    }

    return __result;
}

bool chromatix_tmc13Type::control_variablesStruct::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, "control_var_type") == 0)
    {
        if (__index < control_var_typeCount)
        {
            const double dblValue = ParameterUtils::StringToDouble(__value, __result);
            if (__result)
            {
                control_var_type[__index] = (ispglobalelements::trigger_types)(UINT32)dblValue; 
            }
        }
        else
        {
            const SIZE_T __valueLen = PARAMETER_STRLEN(__value);
            UINT32 __valuePos = 0;

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

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

                const double dblValue = ParameterUtils::StringToDouble(__valueStr, __result);
                if (__result)
                {
                    control_var_type[__index] = (ispglobalelements::trigger_types)(UINT32)dblValue; 
                }
                __index++;
            }
            __result = true;
        }
    }

    return __result;
}

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

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

    return __result;
}

bool chromatix_tmc13Type::private_informationStruct::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, "led_sensitivity_trigger") == 0)
    {
        __result = led_sensitivity_trigger.GetValue(&__path[__pos], __value, __size);
    }

    return __result;
}

bool chromatix_tmc13Type::private_informationStruct::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, "led_sensitivity_trigger") == 0)
    {
        __result = led_sensitivity_trigger.SetValue(&__path[__pos], __value);
    }

    return __result;
}

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

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

    return __result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Default Constructor
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
chromatix_tmc13TypeClass::chromatix_tmc13TypeClass(
    const CHAR* name)
    : ParameterModule(name, MAJOR, MINOR, PATCH, nullptr)
{
    PARAMETER_INITIALIZE(SymbolTableID);
    PARAMETER_INITIALIZE(enable_section);
    PARAMETER_INITIALIZE(module_version);
    PARAMETER_INITIALIZE(parameter_version);
    PARAMETER_INITIALIZE(control_variables);
    PARAMETER_INITIALIZE(private_information);
    PARAMETER_INITIALIZE(chromatix_tmc13_reserve);
    PARAMETER_INITIALIZE(chromatix_tmc13_core);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Constructor
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
chromatix_tmc13TypeClass::chromatix_tmc13TypeClass(
    const CHAR*       name,
    ModuleData* const moduleData)
    : ParameterModule(name, MAJOR, MINOR, PATCH, moduleData)
{
    PARAMETER_INITIALIZE(SymbolTableID);
    PARAMETER_INITIALIZE(enable_section);
    PARAMETER_INITIALIZE(module_version);
    PARAMETER_INITIALIZE(parameter_version);
    PARAMETER_INITIALIZE(control_variables);
    PARAMETER_INITIALIZE(private_information);
    PARAMETER_INITIALIZE(chromatix_tmc13_reserve);
    PARAMETER_INITIALIZE(chromatix_tmc13_core);
}

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


////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load tmc13_rgn_dataType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void tmc13_rgn_dataType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(gtm_percentage_tab);
    PARAMETER_INITIALIZE(ltm_percentage_tab);
    PARAMETER_INITIALIZE(dark_boost_ratio);
    PARAMETER_INITIALIZE(dark_boost_offset_tab);
    PARAMETER_INITIALIZE(tone_target_tab);
    PARAMETER_INITIALIZE(tone_anchors_tab);
    PARAMETER_INITIALIZE(tone_bright_adj);
    PARAMETER_INITIALIZE(tone_dark_adj);
    PARAMETER_INITIALIZE(stretch_bright_str);
    PARAMETER_INITIALIZE(stretch_dark_str);
    PARAMETER_INITIALIZE(hist_supr_range_start);
    PARAMETER_INITIALIZE(hist_supr_range_end);
    PARAMETER_INITIALIZE(hist_boost_range_start);
    PARAMETER_INITIALIZE(hist_boost_range_end);
    PARAMETER_INITIALIZE(hist_avg_range_start);
    PARAMETER_INITIALIZE(hist_avg_range_end);
    PARAMETER_INITIALIZE(hist_conv_kernel_tab);
    PARAMETER_INITIALIZE(hist_clip_slope);
    PARAMETER_INITIALIZE(hist_enhance_clamp);
    PARAMETER_INITIALIZE(hist_enhance_ratio_tab);
    PARAMETER_INITIALIZE(contrast_bright_clip);
    PARAMETER_INITIALIZE(contrast_dark_adj);
    PARAMETER_INITIALIZE(contrast_he_bright_tab);
    PARAMETER_INITIALIZE(contrast_he_dark_tab);
    PARAMETER_INITIALIZE(hist_smoothing_str);
    PARAMETER_INITIALIZE(hist_curve_smoothing_str);
    PARAMETER_INITIALIZE(scene_change_smoothing_str);
    PARAMETER_INITIALIZE(scene_change_curve_smoothing_str);
    PARAMETER_INITIALIZE(scene_change_hist_delta_th1);
    PARAMETER_INITIALIZE(scene_change_hist_delta_th2);
    PARAMETER_INITIALIZE(scene_change_lux_idx_delta_th1);
    PARAMETER_INITIALIZE(scene_change_lux_idx_delta_th2);
    PARAMETER_INITIALIZE(stats_fusion_long_str);
    PARAMETER_INITIALIZE(stats_fusion_medium_str);
    PARAMETER_INITIALIZE(stats_fusion_long_range);
    PARAMETER_INITIALIZE(stats_fusion_medium_range);
    PARAMETER_INITIALIZE(stats_fusion_short_range);
    PARAMETER_INITIALIZE(adjustment_face_th1);
    PARAMETER_INITIALIZE(adjustment_face_th2);
    PARAMETER_INITIALIZE(adjustment_face_smoothing_str);

    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        = 0xd00089abc57ab8aa;
        gtm_percentage_tab.Load(localParams);
        localParams.NameHash        = 0xb0bc20fadc4d0e66;
        ltm_percentage_tab.Load(localParams);
        localParams.NameHash = 0x8bd97afaa2f91727;
        entry->ReadSimpleTypeFixedArray(&dark_boost_ratio, 1, localParams);
        localParams.NameHash        = 0xb95697288763f5ba;
        dark_boost_offset_tab.Load(localParams);
        localParams.NameHash        = 0x80ec3d59fdc061f5;
        tone_target_tab.Load(localParams);
        localParams.NameHash        = 0x969e67c13a41dc65;
        tone_anchors_tab.Load(localParams);
        localParams.NameHash = 0xb4008f042f385e19;
        entry->ReadSimpleTypeFixedArray(&tone_bright_adj, 1, localParams);
        localParams.NameHash = 0x91d55b5cc9e17236;
        entry->ReadSimpleTypeFixedArray(&tone_dark_adj, 1, localParams);
        localParams.NameHash = 0x90368ab2c81f739c;
        entry->ReadSimpleTypeFixedArray(&stretch_bright_str, 1, localParams);
        localParams.NameHash = 0xbe3350d7225e8787;
        entry->ReadSimpleTypeFixedArray(&stretch_dark_str, 1, localParams);
        localParams.NameHash = 0xc2eb4eceba61e2c8;
        entry->ReadSimpleTypeFixedArray(&hist_supr_range_start, 1, localParams);
        localParams.NameHash = 0xad7ce40687968065;
        entry->ReadSimpleTypeFixedArray(&hist_supr_range_end, 1, localParams);
        localParams.NameHash = 0x9ed52d96543613aa;
        entry->ReadSimpleTypeFixedArray(&hist_boost_range_start, 1, localParams);
        localParams.NameHash = 0xa3b1e3b13fd9fd50;
        entry->ReadSimpleTypeFixedArray(&hist_boost_range_end, 1, localParams);
        localParams.NameHash = 0x94a114b79c36f85b;
        entry->ReadSimpleTypeFixedArray(&hist_avg_range_start, 1, localParams);
        localParams.NameHash = 0xda41a12dba2b6ba6;
        entry->ReadSimpleTypeFixedArray(&hist_avg_range_end, 1, localParams);
        localParams.NameHash        = 0xdc4e68d51ff2ddea;
        hist_conv_kernel_tab.Load(localParams);
        localParams.NameHash = 0x8185e2239f05c697;
        entry->ReadSimpleTypeFixedArray(&hist_clip_slope, 1, localParams);
        localParams.NameHash = 0xba5af25160cac6de;
        entry->ReadSimpleTypeFixedArray(&hist_enhance_clamp, 1, localParams);
        localParams.NameHash        = 0xdd822daad482b9e9;
        hist_enhance_ratio_tab.Load(localParams);
        localParams.NameHash = 0xee6f226b2bfe0b7d;
        entry->ReadSimpleTypeFixedArray(&contrast_bright_clip, 1, localParams);
        localParams.NameHash = 0xac54122c7952da1c;
        entry->ReadSimpleTypeFixedArray(&contrast_dark_adj, 1, localParams);
        localParams.NameHash        = 0xce0921f748f50483;
        contrast_he_bright_tab.Load(localParams);
        localParams.NameHash        = 0xe9e6b56d084695d9;
        contrast_he_dark_tab.Load(localParams);
        localParams.NameHash = 0xc5e449df12a32f02;
        entry->ReadSimpleTypeFixedArray(&hist_smoothing_str, 1, localParams);
        localParams.NameHash = 0xde7a49d986cdd644;
        entry->ReadSimpleTypeFixedArray(&hist_curve_smoothing_str, 1, localParams);
        localParams.NameHash = 0xe9753e4d4b2aa7f6;
        entry->ReadSimpleTypeFixedArray(&scene_change_smoothing_str, 1, localParams);
        localParams.NameHash = 0x82db1ba439b15069;
        entry->ReadSimpleTypeFixedArray(&scene_change_curve_smoothing_str, 1, localParams);
        localParams.NameHash = 0xae6afc1d34179a30;
        entry->ReadSimpleTypeFixedArray(&scene_change_hist_delta_th1, 1, localParams);
        localParams.NameHash = 0xe746437c295b663e;
        entry->ReadSimpleTypeFixedArray(&scene_change_hist_delta_th2, 1, localParams);
        localParams.NameHash = 0xd7daf59fa521ec59;
        entry->ReadSimpleTypeFixedArray(&scene_change_lux_idx_delta_th1, 1, localParams);
        localParams.NameHash = 0x9ef64afeb86d1057;
        entry->ReadSimpleTypeFixedArray(&scene_change_lux_idx_delta_th2, 1, localParams);
        localParams.NameHash = 0xb1c0aa28aeb2b1ec;
        entry->ReadSimpleTypeFixedArray(&stats_fusion_long_str, 1, localParams);
        localParams.NameHash = 0xad198985a9ae4806;
        entry->ReadSimpleTypeFixedArray(&stats_fusion_medium_str, 1, localParams);
        localParams.NameHash = 0x89ac8d3e90be325c;
        entry->ReadSimpleTypeFixedArray(&stats_fusion_long_range, 1, localParams);
        localParams.NameHash = 0x9fd0fd0bb4b780e1;
        entry->ReadSimpleTypeFixedArray(&stats_fusion_medium_range, 1, localParams);
        localParams.NameHash = 0xbb4acb39b0dda58b;
        entry->ReadSimpleTypeFixedArray(&stats_fusion_short_range, 1, localParams);
        localParams.NameHash = 0xbfbebe1899ec6644;
        entry->ReadSimpleTypeFixedArray(&adjustment_face_th1, 1, localParams);
        localParams.NameHash = 0xf692017984a09a4a;
        entry->ReadSimpleTypeFixedArray(&adjustment_face_th2, 1, localParams);
        localParams.NameHash = 0x9afe9b4c7e46d746;
        entry->ReadSimpleTypeFixedArray(&adjustment_face_smoothing_str, 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 tmc13_rgn_dataType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        tmc13_rgn_dataType* arrayPtr = (tmc13_rgn_dataType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load tmc13_rgn_dataType_gtm_percentage_tabStruct
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void tmc13_rgn_dataType::gtm_percentage_tabStruct::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(gtm_percentage);

    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 = 0xd147601c42e3a7c6;
        entry->ReadSimpleTypeFixedArray<float>(gtm_percentage, gtm_percentageFixedCount,
            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 tmc13_rgn_dataType::gtm_percentage_tabStruct::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        gtm_percentage_tabStruct* arrayPtr = (gtm_percentage_tabStruct*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load tmc13_rgn_dataType_ltm_percentage_tabStruct
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void tmc13_rgn_dataType::ltm_percentage_tabStruct::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(ltm_percentage);

    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 = 0x80e72bdb95e89dff;
        entry->ReadSimpleTypeFixedArray<float>(ltm_percentage, ltm_percentageFixedCount,
            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 tmc13_rgn_dataType::ltm_percentage_tabStruct::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        ltm_percentage_tabStruct* arrayPtr = (ltm_percentage_tabStruct*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load tmc13_rgn_dataType_dark_boost_offset_tabStruct
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void tmc13_rgn_dataType::dark_boost_offset_tabStruct::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(dark_boost_offset);

    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 = 0x80c7b9b3485a2aea;
        entry->ReadSimpleTypeFixedArray<float>(dark_boost_offset, dark_boost_offsetFixedCount,
            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 tmc13_rgn_dataType::dark_boost_offset_tabStruct::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        dark_boost_offset_tabStruct* arrayPtr = (dark_boost_offset_tabStruct*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load tmc13_rgn_dataType_tone_target_tabStruct
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void tmc13_rgn_dataType::tone_target_tabStruct::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(tone_target);

    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 = 0xe25d7934a8440f33;
        entry->ReadSimpleTypeFixedArray<float>(tone_target, tone_targetFixedCount,
            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 tmc13_rgn_dataType::tone_target_tabStruct::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        tone_target_tabStruct* arrayPtr = (tone_target_tabStruct*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load tmc13_rgn_dataType_tone_anchors_tabStruct
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void tmc13_rgn_dataType::tone_anchors_tabStruct::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(tone_anchors);

    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 = 0x8dcfd0b72ba76871;
        entry->ReadSimpleTypeFixedArray<float>(tone_anchors, tone_anchorsFixedCount,
            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 tmc13_rgn_dataType::tone_anchors_tabStruct::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        tone_anchors_tabStruct* arrayPtr = (tone_anchors_tabStruct*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load tmc13_rgn_dataType_hist_conv_kernel_tabStruct
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void tmc13_rgn_dataType::hist_conv_kernel_tabStruct::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(hist_conv_kernel);

    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 = 0x8c79fd07dc8afa68;
        entry->ReadSimpleTypeFixedArray<float>(hist_conv_kernel, hist_conv_kernelFixedCount,
            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 tmc13_rgn_dataType::hist_conv_kernel_tabStruct::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        hist_conv_kernel_tabStruct* arrayPtr = (hist_conv_kernel_tabStruct*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load tmc13_rgn_dataType_hist_enhance_ratio_tabStruct
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void tmc13_rgn_dataType::hist_enhance_ratio_tabStruct::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(hist_enhance_ratio);

    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 = 0xbedac9c20ea4e5e7;
        entry->ReadSimpleTypeFixedArray<float>(hist_enhance_ratio, hist_enhance_ratioFixedCount,
            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 tmc13_rgn_dataType::hist_enhance_ratio_tabStruct::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        hist_enhance_ratio_tabStruct* arrayPtr = (hist_enhance_ratio_tabStruct*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load tmc13_rgn_dataType_contrast_he_bright_tabStruct
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void tmc13_rgn_dataType::contrast_he_bright_tabStruct::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(contrast_he_bright);

    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 = 0xb101dc245ee6626f;
        entry->ReadSimpleTypeFixedArray<float>(contrast_he_bright, contrast_he_brightFixedCount,
            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 tmc13_rgn_dataType::contrast_he_bright_tabStruct::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        contrast_he_bright_tabStruct* arrayPtr = (contrast_he_bright_tabStruct*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load tmc13_rgn_dataType_contrast_he_dark_tabStruct
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void tmc13_rgn_dataType::contrast_he_dark_tabStruct::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(contrast_he_dark);

    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 = 0xb22ddc4885078d64;
        entry->ReadSimpleTypeFixedArray<float>(contrast_he_dark, contrast_he_darkFixedCount,
            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 tmc13_rgn_dataType::contrast_he_dark_tabStruct::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        contrast_he_dark_tabStruct* arrayPtr = (contrast_he_dark_tabStruct*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load triggerType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void triggerType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(controlIndex);
    PARAMETER_INITIALIZE(type);
    PARAMETER_INITIALIZE(start);
    PARAMETER_INITIALIZE(end);
    PARAMETER_INITIALIZE(triggerCount);
    PARAMETER_INITIALIZE(trigger);
    PARAMETER_INITIALIZE(regionExists);
    PARAMETER_INITIALIZE(region);

    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);
        localParams.NameHash = 0x9d162d4c268294aa;
        entry->ReadStructureArray(trigger, triggerCount, triggerID, 0, localParams, __COUNTER__);
        localParams.NameHash = 0xd88d0d3e2d5b89d1;
        entry->ReadOptionalStructure(region, regionExists, regionID, 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 triggerType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        triggerType* arrayPtr = (triggerType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load chromatix_tmc13_coreType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void chromatix_tmc13_coreType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(mod_tmc13_trigger_dataCount);
    PARAMETER_INITIALIZE(mod_tmc13_trigger_data);

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

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load chromatix_tmc13_reserveType
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void chromatix_tmc13_reserveType::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(use_gtm);
    PARAMETER_INITIALIZE(use_ltm);
    PARAMETER_INITIALIZE(curve_model);
    PARAMETER_INITIALIZE(curve_order);
    PARAMETER_INITIALIZE(tone_max_ratio);

    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 = 0x847da142db080c40;
        entry->ReadSimpleTypeFixedArray(&use_gtm, 1, localParams);
        localParams.NameHash = 0xdaddecdba9c02253;
        entry->ReadSimpleTypeFixedArray(&use_ltm, 1, localParams);
        localParams.NameHash = 0xad34da8174b3c8b4;
        entry->ReadSimpleTypeFixedArray(&curve_model, 1, localParams);
        localParams.NameHash = 0x82fcab3fe9016e0f;
        entry->ReadSimpleTypeFixedArray(&curve_order, 1, localParams);
        localParams.NameHash = 0x9e40369a231e5180;
        entry->ReadSimpleTypeFixedArray(&tone_max_ratio, 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 chromatix_tmc13_reserveType::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        chromatix_tmc13_reserveType* arrayPtr = (chromatix_tmc13_reserveType*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load chromatix_tmc13Type
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void chromatix_tmc13Type::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(enable_section);
    PARAMETER_INITIALIZE(module_version);
    PARAMETER_INITIALIZE(parameter_version);
    PARAMETER_INITIALIZE(control_variables);
    PARAMETER_INITIALIZE(private_information);
    PARAMETER_INITIALIZE(chromatix_tmc13_reserve);
    PARAMETER_INITIALIZE(chromatix_tmc13_core);

    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        = 0xd52c240cf111efe4;
        enable_section.Load(localParams);
        localParams.NameHash        = 0xe11cd9f365a2599f;
        module_version.Load(localParams);
        localParams.NameHash        = 0xca3106e199a12935;
        parameter_version.Load(localParams);
        localParams.NameHash        = 0xaff2265ba7135b1d;
        control_variables.Load(localParams);
        localParams.NameHash        = 0xc19959ff6e1afe00;
        private_information.Load(localParams);
        localParams.NameHash        = 0xcd42f2a27f687373;
        chromatix_tmc13_reserve.Load(localParams);
        localParams.NameHash        = 0xe2792c27383ab81b;
        chromatix_tmc13_core.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 chromatix_tmc13Type::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        chromatix_tmc13Type* arrayPtr = (chromatix_tmc13Type*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load enable_sectionStruct
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void chromatix_tmc13Type::enable_sectionStruct::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(tmc_enable);

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

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

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

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load control_variablesStruct
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void chromatix_tmc13Type::control_variablesStruct::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(control_var_typeCount);
    PARAMETER_INITIALIZE(control_var_type);

    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 = 0xb4deb5959bf2270d;
        entry->ReadEnumArray(control_var_type, control_var_typeCount, control_var_typeID, 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 chromatix_tmc13Type::control_variablesStruct::LoadArray(
    ParameterLoadParameters& __params,
    void*                    __array,
    UINT32                   __count)
{
    if (__array != nullptr)
    {
        control_variablesStruct* arrayPtr = (control_variablesStruct*)__array;
        for (UINT32 i = 0; i < __count; i++)
        {
            __params.Index = i;
            arrayPtr[i].Load(__params);
        }
    }
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Load private_informationStruct
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void chromatix_tmc13Type::private_informationStruct::Load(
    ParameterLoadParameters& parentParams)
{
    PARAMETER_INITIALIZE(led_sensitivity_trigger);

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

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

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

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload chromatix_tmc13Type
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void chromatix_tmc13Type::Unload(ParameterFileSymbolTable* const __table)
{
    parameter_version.Unload(__table);
    control_variables.Unload(__table);
    chromatix_tmc13_core.Unload(__table);
}

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

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload control_variablesStruct
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void chromatix_tmc13Type::control_variablesStruct::Unload(ParameterFileSymbolTable* const __table)
{
    ParameterFileSymbolTable::ReleaseObject(__table, control_var_type);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Update the trigger type values
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void chromatix_tmc13TypeClass::UpdateTriggerType(
    control_variablesStruct* const control,
    triggerType* trigger,
    UINT32 const depth)
{
    if (depth < control->control_var_typeCount)
    {
        trigger->controlIndex = depth;
        trigger->type         = control->control_var_type[depth];

        for (UINT32 i = 0; i < trigger->triggerCount; i++)
        {
            UpdateTriggerType(control, &trigger->trigger[i], depth + 1);
        }
    }
}

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

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

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

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

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

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

    if (!Loaded)
    {
        chromatix_tmc13TypeClass* 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, "chromatix_tmc13TypeClass::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;

        if (result)
        {
            for (UINT32 i = 0; i < cls->chromatix_tmc13_core.mod_tmc13_trigger_dataCount; i++)
            {
                UpdateTriggerType(&cls->control_variables, &cls->chromatix_tmc13_core.mod_tmc13_trigger_data[i], 0);
            }
        }
        Modified++;
        Loaded = true;
    }

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

    return result;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// Unload module data
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void chromatix_tmc13TypeClass::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 chromatix_tmc13TypeClass::Release()
{
    ParameterModule::Release();
}

TMC_1_3_1_NAMESPACE_END
