81 lines
2.3 KiB
Plaintext
81 lines
2.3 KiB
Plaintext
%% File : hal_file_io.tlc
|
|
%% Created : Tue Nov 01 14:35:16 2022
|
|
%%
|
|
%% Description:
|
|
%% Simulink Coder wrapper functions interface generated for
|
|
%% S-function "hal_file_io.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_file_io "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_file_io_Start_wrapper(void);
|
|
|
|
extern void hal_file_io_Outputs_wrapper(const uint8_T *data,
|
|
const uint16_T *size,
|
|
const uint32_T *offset,
|
|
const uint8_T *opcode,
|
|
const uint8_T *session,
|
|
uint8_T *ret_data,
|
|
uint16_T *ret_size,
|
|
int32_T *ret,
|
|
boolean_T *in_progress,
|
|
const int_T y_width,
|
|
const int_T u_width);
|
|
|
|
extern void hal_file_io_Terminate_wrapper(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
%closefile externs
|
|
%<LibCacheExtern(externs)>
|
|
%%
|
|
%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 pu_width = LibBlockInputSignalWidth(0)
|
|
%assign py0 = LibBlockOutputSignalAddr(0, "", "", 0)
|
|
%assign py1 = LibBlockOutputSignalAddr(1, "", "", 0)
|
|
%assign py2 = LibBlockOutputSignalAddr(2, "", "", 0)
|
|
%assign py3 = LibBlockOutputSignalAddr(3, "", "", 0)
|
|
%assign py_width = LibBlockOutputSignalWidth(0)
|
|
hal_file_io_Outputs_wrapper(%<pu0>, %<pu1>, %<pu2>, %<pu3>, %<pu4>, %<py0>, %<py1>, %<py2>, %<py3>, %<py_width>, %<pu_width>);
|
|
%%
|
|
%endfunction
|
|
|
|
|
|
%% [EOF] hal_file_io.tlc
|
|
|