2020-03-20 10:02:51 +08:00
|
|
|
%% File : hal_pwm_in.tlc
|
2020-03-24 15:23:48 +08:00
|
|
|
%% Created : Tue Mar 24 14:54:40 2020
|
2020-03-20 10:02:51 +08:00
|
|
|
%%
|
|
|
|
|
%% Description:
|
|
|
|
|
%% Simulink Coder wrapper functions interface generated for
|
|
|
|
|
%% S-function "hal_pwm_in.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_pwm_in "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_pwm_in_Start_wrapper(void);
|
|
|
|
|
|
|
|
|
|
extern void hal_pwm_in_Outputs_wrapper(const uint16_T *start_idx,
|
|
|
|
|
uint16_T *pwm,
|
|
|
|
|
int32_T *ErrorCode,
|
|
|
|
|
const int_T y_width);
|
|
|
|
|
|
|
|
|
|
extern void hal_pwm_in_Terminate_wrapper(void);
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
%closefile externs
|
|
|
|
|
%<LibCacheExtern(externs)>
|
|
|
|
|
%%
|
|
|
|
|
%endfunction
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%% Function: Start ============================================================
|
|
|
|
|
%%
|
|
|
|
|
%function Start(block, system) Output
|
|
|
|
|
/* %<Type> Block: %<Name> */
|
|
|
|
|
hal_pwm_in_Start_wrapper();
|
|
|
|
|
%endfunction
|
|
|
|
|
%% Function: Outputs ==========================================================
|
|
|
|
|
%%
|
|
|
|
|
%% Purpose:
|
|
|
|
|
%% Code generation rules for mdlOutputs function.
|
|
|
|
|
%%
|
|
|
|
|
%function Outputs(block, system) Output
|
|
|
|
|
%%
|
|
|
|
|
%assign pu0 = LibBlockInputSignalAddr(0, "", "", 0)
|
|
|
|
|
%assign py0 = LibBlockOutputSignalAddr(0, "", "", 0)
|
|
|
|
|
%assign py1 = LibBlockOutputSignalAddr(1, "", "", 0)
|
|
|
|
|
%assign py_width = LibBlockOutputSignalWidth(0)
|
|
|
|
|
hal_pwm_in_Outputs_wrapper(%<pu0>, %<py0>, %<py1>, %<py_width>);
|
|
|
|
|
%%
|
|
|
|
|
%endfunction
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%% [EOF] hal_pwm_in.tlc
|
|
|
|
|
|