function ret = EMIFDataWidth(hObj)
%EMIFDATAWIDTH Return the EMIF data bus width

% Copyright 2018 The MathWorks, Inc.

% Return 1 if 32 bit else return 0
ret = 0;
if codertarget.target.isCoderTarget(hObj.getConfigSet())
    data = codertarget.data.getParameterValue(hObj, 'EMIF1');
    if(data.CS0 && strcmp(data.BusWidth, '32')) || (data.CS2 && strcmp(data.CS2_AsyncDataWidth, '32')) || ...
        (data.CS3 && strcmp(data.CS3_AsyncDataWidth, '32')) || (data.CS4 && strcmp(data.CS4_AsyncDataWidth, '32'))
        ret = 0;
    else
        ret = 1;
    end
end
end