Files
sunny360vfe_proj/controllers/get_snc_crc32.tlc
T

138 lines
3.9 KiB
Plaintext

%% File : get_snc_crc32.tlc
%% Created : Fri Jun 13 14:30:40 2025
%%
%% Description:
%% Simulink Coder wrapper functions interface generated for
%% S-function "get_snc_crc32.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 get_snc_crc32 "C"
%% Function: BlockTypeSetup ===================================================
%%
%% Purpose:
%% Set up external references for wrapper functions in the
%% generated code.
%%
%function BlockTypeSetup(block, system) Output
%assign uint32Type = LibGetDataTypeNameFromId(::CompiledModel.tSS_UINT32)
%assign uint8Type = LibGetDataTypeNameFromId(::CompiledModel.tSS_UINT8)
%assign intType = LibGetDataTypeNameFromId(::CompiledModel.tSS_INTEGER)
%if IsModelReferenceSimTarget() || CodeFormat == "S-Function" || ::isRAccel
%assign hFileName = "get_snc_crc32_accel_wrapper"
%assign hFileNameMacro = FEVAL("upper", hFileName)
%openfile hFile = "%<hFileName>.h"
%selectfile hFile
#ifndef _%<hFileNameMacro>_H_
#define _%<hFileNameMacro>_H_
#ifdef MATLAB_MEX_FILE
#include "tmwtypes.h"
#else
#include "rtwtypes.h"
#endif
#ifdef __cplusplus
#define SFB_EXTERN_C extern "C"
#else
#define SFB_EXTERN_C extern
#endif
SFB_EXTERN_C void get_snc_crc32_Outputs_wrapper_accel(const %<uint8Type> *ucBuffer,
const %<uint32Type> *u1Count,
%<uint32Type> *u1CRC,
const %<intType> u_0_width);
#undef SFB_EXTERN_C
#endif
%closefile hFile
%assign cFileName = "get_snc_crc32_accel_wrapper"
%openfile cFile = "%<cFileName>.c"
%selectfile cFile
#include <string.h>
#ifdef MATLAB_MEX_FILE
#include "tmwtypes.h"
#else
#include "rtwtypes.h"
#endif
#include "%<hFileName>.h"
extern void get_snc_crc32_Start_wrapper(void);
extern void get_snc_crc32_Outputs_wrapper(const %<uint8Type> *ucBuffer,
const %<uint32Type> *u1Count,
%<uint32Type> *u1CRC,
const %<intType> u_0_width);
extern void get_snc_crc32_Terminate_wrapper(void);
void get_snc_crc32_Outputs_wrapper_accel(const %<uint8Type> *ucBuffer,
const %<uint32Type> *u1Count,
%<uint32Type> *u1CRC,
const %<intType> u_0_width){
get_snc_crc32_Outputs_wrapper(ucBuffer,
u1Count,
u1CRC,
u_0_width);
}
%closefile cFile
%<LibAddToCommonIncludes("%<hFileName>.h")>
%else
%openfile externs
#ifdef __cplusplus
#define SFB_EXTERN_C extern "C"
#else
#define SFB_EXTERN_C extern
#endif
SFB_EXTERN_C void get_snc_crc32_Start_wrapper(void);
SFB_EXTERN_C void get_snc_crc32_Outputs_wrapper(const %<uint8Type> *ucBuffer,
const %<uint32Type> *u1Count,
%<uint32Type> *u1CRC,
const %<intType> u_0_width);
SFB_EXTERN_C void get_snc_crc32_Terminate_wrapper(void);
#undef SFB_EXTERN_C
%closefile externs
%<LibCacheExtern(externs)>
%endif
%%
%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 pu_0_width = LibBlockInputSignalWidth(0)
%assign py0 = LibBlockOutputSignalAddr(0, "", "", 0)
%if IsModelReferenceSimTarget() || CodeFormat == "S-Function" || ::isRAccel
get_snc_crc32_Outputs_wrapper_accel(%<pu0>, %<pu1>, %<py0>, %<pu_0_width>);
%else
get_snc_crc32_Outputs_wrapper(%<pu0>, %<pu1>, %<py0>, %<pu_0_width>);
%endif
%%
%endfunction
%% [EOF] get_snc_crc32.tlc