function ret = qualificationSamplingPeriodCallback(hObj, tag, idx1, idx2, type)
%QUALIFICATIONSAMPLINGPERIODCALLBACK 

% Copyright 2012-2020 MathWorks, Inc.


ret = 0;
hCS = hObj.getConfigSet();
if codertarget.target.isCoderTarget(hCS)
    hCT = hCS.getComponent('Coder Target');
    data = hCT.CoderTargetData.(tag);
    fieldNames = fieldnames(data);
%This is done for Concerto - PUD Selection included in GPIO 192-9(F28M36x) and GPIO128-35(F28M35x)
%No More than 8 GPIOs in every group
    num_fields = (length(fieldNames)-1);
    if(num_fields > 8)
        num_fields = 8;
    end
    for i=1:num_fields
        thisField = fieldNames{i};
        val = data.(thisField);
        ret = ret || ~isequal(val, 'Synchronize to SYSCLKOUT only');
    end
end

end