Files
slhal/hal_uart_out.tlc
T

90 lines
2.7 KiB
Plaintext

%% File : hal_uart_out.tlc
%% Created : Thu Mar 19 17:53:16 2020
%%
%% Description:
%% Simulink Coder wrapper functions interface generated for
%% S-function "hal_uart_out.c".
%%
%% File generated by S-function Builder Block
%%
%% For more information on using the Target Language with the
%% Simulink Coder, see the Target Language Compiler manual
%% (under Simulink Coder) in the "Inlining S-Functions"
%% chapter under the section and subsection:
%% "Writing Block Target Files to Inline S-Functions",
%% "Function-Based or Wrappered Code".
%%
%implements hal_uart_out "C"
%% Function: BlockTypeSetup ===================================================
%%
%% Purpose:
%% Set up external references for wrapper functions in the
%% generated code.
%%
%function BlockTypeSetup(block, system) Output
%openfile externs
#ifdef __cplusplus
extern "C" {
#endif
extern void hal_uart_out_Start_wrapper(const uint8_T *uart_id, const int_T p_width0);
extern void hal_uart_out_Outputs_wrapper(const uint8_T *buff,
const uint16_T *len,
const uint8_T *sep,
int32_T *ErrorCode,
const uint8_T *uart_id, const int_T p_width0,
const int_T u_width);
extern void hal_uart_out_Terminate_wrapper(const uint8_T *uart_id, const int_T p_width0);
#ifdef __cplusplus
}
#endif
%closefile externs
%<LibCacheExtern(externs)>
%%
%endfunction
%% Function: Start ============================================================
%%
%function Start(block, system) Output
/* %<Type> Block: %<Name> */
%assign nelements1 = LibBlockParameterSize(P1)
%assign param_width1 = nelements1[0] * nelements1[1]
%if (param_width1) > 1
%assign pp1 = LibBlockMatrixParameterBaseAddr(P1)
%else
%assign pp1 = LibBlockParameterAddr(P1, "", "", 0)
%endif
hal_uart_out_Start_wrapper(%<pp1>, %<param_width1>);
%endfunction
%% Function: Outputs ==========================================================
%%
%% Purpose:
%% Code generation rules for mdlOutputs function.
%%
%function Outputs(block, system) Output
%%
%assign pu0 = LibBlockInputSignalAddr(0, "", "", 0)
%assign pu1 = LibBlockInputSignalAddr(1, "", "", 0)
%assign pu2 = LibBlockInputSignalAddr(2, "", "", 0)
%assign pu_width = LibBlockInputSignalWidth(0)
%assign py0 = LibBlockOutputSignalAddr(0, "", "", 0)
%assign nelements1 = LibBlockParameterSize(P1)
%assign param_width1 = nelements1[0] * nelements1[1]
%if (param_width1) > 1
%assign pp1 = LibBlockMatrixParameterBaseAddr(P1)
%else
%assign pp1 = LibBlockParameterAddr(P1, "", "", 0)
%endif
hal_uart_out_Outputs_wrapper(%<pu0>, %<pu1>, %<pu2>, %<py0>, %<pp1>, %<param_width1>, %<pu_width>);
%%
%endfunction
%% [EOF] hal_uart_out.tlc