Files
slhal/hal_uart_init.tlc
T

96 lines
3.0 KiB
Plaintext

%% File : hal_uart_init.tlc
%% Created : Thu Mar 19 17:53:53 2020
%%
%% Description:
%% Simulink Coder wrapper functions interface generated for
%% S-function "hal_uart_init.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_init "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_init_Start_wrapper(const uint8_T *uart_id, const int_T p_width0);
extern void hal_uart_init_Outputs_wrapper(const uint32_T *baudrate,
const uint8_T *wordlen,
const uint8_T *stopbits,
const uint8_T *parity,
const uint16_T *buff_rx,
const uint16_T *buff_tx,
const uint32_T *opts,
int32_T *ErrCode,
const uint8_T *uart_id, const int_T p_width0);
extern void hal_uart_init_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_init_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 pu3 = LibBlockInputSignalAddr(3, "", "", 0)
%assign pu4 = LibBlockInputSignalAddr(4, "", "", 0)
%assign pu5 = LibBlockInputSignalAddr(5, "", "", 0)
%assign pu6 = LibBlockInputSignalAddr(6, "", "", 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_init_Outputs_wrapper(%<pu0>, %<pu1>, %<pu2>, %<pu3>, %<pu4>, %<pu5>, %<pu6>, %<py0>, %<pp1>, %<param_width1>);
%%
%endfunction
%% [EOF] hal_uart_init.tlc