%% sdspmax2_rstfcn.tlc %% %% TLC code generation file for DSP Blockset Maximum block (sdspmax2) %% %% Copyright (c) 1995-2000 The MathWorks, Inc. %% $Revision: 1.3 $ $Date: 2000/05/09 18:55:41 $ %% %% Abstract: %% Manages the reset function prototype, creation, and invocation. %include "sdspmax2_generic.tlc" %include "sdspmax2_argscache.tlc" %include "sdspmax2_rstfcn_body.tlc" %include "sdspmax2_rstinline_body.tlc" %% Function: getRstMaxFcnName =============================================== %% Abstract: %% %function getRstMaxFcnName(block) void %return "%" %endfunction %% getRstMaxFcnName %% Function: getRstMaxFcnProto =============================================== %% Abstract: %% Return the reset-max function call prototype. %% Ex: %% "TMWDSP_RstMaxDVI(TMWDSP_MaxArgs *args)" %% %function getRstMaxFcnProto(block) void %return "void %(const % *args)" %endfunction %% getRstMaxFcnProto %% Function: GenerateRstMaxFcnComment ======================================== %% Abstract: %% %function GenerateRstMaxFcnComment(block) Output %% %\ %% %endfunction %% GenerateRstMaxFcnComment %% Function: GenerateRstMaxFcn ==================================================== %% Abstract: %% Render the reset-max computation function and prototype. %% Only render each variation ONCE. %% Any additional calls are simply ignored. %function GenerateRstMaxFcn(block) void %% We use the same arg cache for the reset %% function as the max function itself. %% % %assign fcn_name = getRstMaxFcnName(block) %% Check info so that we do not define this function more than once: %if JustCreatedCompiledModelRecord(fcn_name) %assign fcn_proto = getRstMaxFcnProto(block) %% Cache the function prototype %% %openfile buffer %% %\ extern %; %closefile buffer % %% Cache the max function itself: %% %openfile buffer %\ extern % % %closefile buffer % %endif %endfunction %% GenerateRstMaxFcn %% Function: CallRstMaxFcn ==================================================== %% Abstract: %function CallRstMaxFcn(block) Output %% %% Generate the appropriate reset-max function prototype, function %% body, and argument cache instance as necessary: %% %\ %% %% Both the RstMax and Max functions share the %% same argument cache: %% %(&%); %% %endfunction %% CallRstMaxFcn %% Function: GenerateRstMax ======================================== %% Abstract: %% %function GenerateRstMax(block) Output %% %if InlineMaxInstance(block) % %else % %endif %% %endfunction %% GenerateRstMax %% [EOF] sdspmax2_rstfcn.tlc