1 %% Copyright (C) 2013-2014 Czech Technical University in Prague
4 %% - Carlos Jenkins <carlos@jenkins.co.cr>
6 %% This document contains proprietary information belonging to Czech
7 %% Technical University in Prague. Passing on and copying of this
8 %% document, and communication of its contents is not permitted
9 %% without prior written authorization.
11 %% File : sfunction_scic.tlc
13 %% TLC file for inlining RPP serial communication configure block.
16 %% BlockTypeSetup() : refs/rtw_tlc.pdf p. 277
17 %% Outputs() : refs/rtw_tlc.pdf p. 281
20 %implements sfunction_scic "C"
25 %% Function: BlockInstanceSetup ================================================
26 %function BlockInstanceSetup(block, system) void
27 %if EXISTS("rpp_scic_in_model") == 0
28 %assign ::rpp_scic_in_model = 1
29 %<LibAddToCommonIncludes("rpp/rpp.h")>
31 %<LibBlockReportError(block, "Only one Serial Configure block is allowed in the model.")>
35 %% Function: BlockTypeSetup ====================================================
36 %function BlockTypeSetup(block, system) void
38 %% Ensure required header files are included
39 %<RppCommonBlockTypeSetup(block, system)>
40 %assign ::rpp_sci_present=1
45 %% Function: Start =============================================================
46 %function Start(block, system) Output
48 %if !SLibCodeGenForSim()
54 %assign p1_val = LibBlockParameterValue(p1, 0)
55 rpp_sci_setup(%<p1_val>);