function visible = CANConfigurationVisibility(hObj, module)
% CANCONFIGURATIONVISIBILITY Returns 1 if 'XCP on CAN' is selected as external mode, 0 else

% Copyright 2020-2021 The MathWorks, Inc.

visible = false;

if codertarget.target.isCoderTarget(hObj.getConfigSet())
    if strcmp(module,'ExternalMode')
        visible = isequal(codertarget.data.getParameterValue(hObj, 'ExtMode.Configuration'), 'XCP on CAN');
    end
end
end
