function map = getParameterMapForTargetRepositoryObject(obj)
%GETPARAMETERMAPFORTARGETREPOSITORYOBJECT gets the parameter mapping for a
% given targetrepository.physical.Microprocessor or
% targetrepository.physical.FPGA object. The returned mapping has
% properties that mirror the Hardware Implementation parameters

% Copyright 2018-2021 The MathWorks, Inc.

switch class(obj)
case 'target.internal.Processor'
map = RTW.TargetRepositoryProcessorParameterMap(obj);
case 'target.internal.FPGA'
map = RTW.TargetRepositoryFPGAParameterMap(obj);
otherwise
assert(false, 'Unrecognized target registry object');
end
end