function deviceStruct = splitHWParameterString(hwParamString)
% SPLITHWPARAMETERSTRING splits a string used to specify a
% hardware implementation registration into vendor and type
% will return an empty structure if the string does not contain
% a '->' delimiter.

%   Copyright 2018 The MathWorks, Inc.

   pat = '(?<Vendor>.+)(\s*->\s*)(?<Type>.+)\s*';
   deviceStruct = regexp(hwParamString, pat, 'names');
end