function ret = OSCCLKEnable(hObj)
%OSCCLKENABLE Set the state of the auto-detect

% Copyright 2013-2020 MathWorks, Inc.


ret = 0; 
if codertarget.target.isCoderTarget(hObj.getConfigSet()) 
    data = codertarget.data.getParameterValue(hObj, 'Clocking'); 
    if isfield (data, 'UseInternalOsc')
        ret = ~(data.UseInternalOsc); 
    end
end 
end
