function [mapName, relativePathToMapFile, found] = getBlockHelpMapNameAndPath(block_type)
%  Returns the mapName and the relative path to the map file for this block_type

% Internal note: 
%   First column is the "System object name", corresponding to the block, 
%   Second column is the anchor ID, the doc uses for the block.
%   For core blocks, the first column is the 'BlockType'.

% Copyright 2019 The MathWorks, Inc.

blks = {... % System blocks
  'serdes.AGC'                  'serdes.AGC' ;...
  'serdes.CDR'                  'serdes.CDR' ;...
  'serdes.CTLE'                 'serdes.CTLE' ;...
  'serdes.DFECDR'               'serdes.DFECDR' ;...
  'serdes.FFE'                  'serdes.FFE' ;...
  'serdes.SaturatingAmplifier'  'serdes.SaturatingAmplifier' ;...
  'serdes.PassThrough'          'serdes.PassThrough' ;...
  'serdes.VGA'                  'serdes.VGA' ;...
  'serdes.ChannelLoss'          'serdes.ChannelLoss' ;...
  };

relativePathToMapFile = '/serdes/helptargets.map';
found = false;
% See whether or not the block is a SerDes Toolbox core or built-in
i = strcmp(block_type, blks(:,1));

if ~any(i)
  mapName = 'User Defined';
else
  found = true;
  mapName = blks(i,2);
end
