function ret = SlaveDataEnable(hObj, varargin)
%SLAVEDATAENABLE Enable slave specific parameters

% Copyright 2013-2023 The MathWorks, Inc.
if nargin == 1
    paramName = 'I2C';
else
    paramName =  varargin{1};
end 

ret = 0;
if codertarget.target.isCoderTarget(hObj.getConfigSet())
    data = codertarget.data.getParameterValue(hObj, paramName);
    ret = strcmp(data.Mode, 'Peripheral');
end
end
