function ret = VRef_Enable(hObj, varargin)
%PLLENABLE Set the state of the auto-detect

% Copyright 2013-2020 The MathWorks, Inc.

if ~isempty(varargin)
    Module = varargin{1};
else
    Module = 'ADC';
end
ret = 0;
if codertarget.target.isCoderTarget(hObj.getConfigSet())
    data = codertarget.data.getParameterValue(hObj, Module);
    ret = ~(data.ExternalReferenceSelector);
end
end