classdef (Hidden = true) AutosarSfunction < rtw.pil.PILBlockSfunction
%AUTOSARSFUNCTION creates PIL host-side s-function for AUTOSAR Target
%
% This is an undocumented class. Its methods and properties are likely to
% change without warning from one release to the next.

% Copyright 2008-2020 The MathWorks, Inc.

methods
% constructor
function this = AutosarSfunction(silPILWrapperUtils, ...
sfunSourcePath, ...
sfunOutDir)
narginchk(3,3);

% Get reference to MF0
mf0Contents = silPILWrapperUtils.MF0ModelInfo;

% Package information to pass to super class constructor.
lHasResetFunction = false; %Ignore Reset Functions
lExposesITPorts = false;
timingInterfaceFlags = rtw.connectivity.TimingInterfaceFlags.fromMF0(mf0Contents, ...
lHasResetFunction, ...
lExposesITPorts);

% call super class constructor
this@rtw.pil.PILBlockSfunction(silPILWrapperUtils, ...
sfunSourcePath, ...
sfunOutDir, ...
'TimingInterfaceFlags', timingInterfaceFlags);
end
end
end