function value = rtw_implementation_props(model)
% RTW_IMPLEMENTATION_PROPERTIES - returns C specific implementation
% properties for a given target inside a MATLAB structure.  For
% example:
%
% value.ShiftRightIntArith   = true;
%
% Example
%   rtw_implementation_props('model_name')
%
% See also EXAMPLE_RTW_INFO_HOOK.
  
% Copyright 1994-2023 The MathWorks, Inc.

  cs = getActiveConfigSet(model);
  if strcmp(get_param(cs, 'TargetUnknown'), 'off')
    % Use model param values
    value.ShiftRightIntArith = strcmp(get_param(cs, 'TargetShiftRightIntArith'), 'on');
    value.IntDivRoundTo = get_param(cs,'TargetIntDivRoundTo');
    value.Endianess = get_param(cs, 'TargetEndianess');
    value.PreprocMaxBitsSint = get_param(cs, 'TargetPreprocMaxBitsSint');
    value.PreprocMaxBitsUint = get_param(cs, 'TargetPreprocMaxBitsUint');
    return;
  end

  % Model is pre-R14; use defaults
  value = rtw_host_implementation_props();
  value.PreprocMaxBitsSint = get_param(cs, 'TargetPreprocMaxBitsSint');
  value.PreprocMaxBitsUint = get_param(cs, 'TargetPreprocMaxBitsUint');
  
  
